You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1bdc20a
Browse filesBrowse the repository at this point in the historyBrowse files
* fix(workflow-code): keep js template escapes verbatim, add table/knowledge/file agent tool forms, pin create fingerprint
- js/py/sh/json/md tagged templates now store the raw text written between the
backticks (only \` and \${ are escapes), so js`/\s+/` stores /\s+/ instead of
silently dropping the backslash. The printer writes code back so compile
reads exactly the stored text, using ${'...'} for what raw text cannot hold.
- The catalog marks the built-in blocks the agent tool picker offers
(agentTool), so table.tool.queryRows(...), knowledge.tool.search(...) and
file.tool.read(...) compile and print instead of requiring raw().
- A source write now prints its answer with the workspace's resource keys for
any resource the source wrote by id, so the returned fingerprint matches the
next read and a pinned deploy (create --deploy no longer fails with a
draft-changed conflict).
* fix(workflow-code): read verbatim tags through the file's SDK imports in the character check
A cooked t imported as js skipped the NUL/lone-surrogate check while compile still read it cooked. Also documents that agentTool marks hidden legacy versions.
* docs(workflow-sdk): show a table operation as an agent tool in the agents cookbook
Copy file name to clipboardExpand all lines: apps/docs/content/docs/workflows/code/syntax.mdx
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -160,6 +160,8 @@ The optional third argument holds what belongs to the block, not to its settings
160
160
|`` json`…` ``| JSON text kept as written |
161
161
|`` md`…` ``| Markdown, such as a note's content |
162
162
163
+
Code and markup (`js`, `py`, `sh`, `json`, `md`) are stored exactly as written between the backticks, like `String.raw`: `` js`/\s+/.test(x)` `` stores `/\s+/.test(x)`. Only `` \` `` and `\${` are escapes, for a backtick and a literal `${` in the code. A `t` template is text and reads like a JavaScript string, so `\n` in it is a newline.
164
+
163
165
### Resource helpers
164
166
165
167
A key is the resource's stable key in the workspace; `.sim/sdk/workspace.d.ts` lists them. A key with no live resource is `E_MAT_UNKNOWN_RESOURCE` on apply.
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/tool-input.tsx
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/utils.ts
0 commit comments