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 5f1a29e
Browse filesBrowse the repository at this point in the historyBrowse files
perf(cli): load a manual run's draft once and keep embedded CLI results lean (#8625)
* perf(cli): load a manual run's draft once and keep embedded CLI results lean
- Manual runs reuse the draft state the use case loaded to pick and validate
the trigger, instead of reading the draft tables twice more in the execute
service and the execution core. The trigger is now chosen from the same
snapshot that runs.
- Embedded (in-app agent) synchronous runs ask for file references without
inline base64 unless --include-file-base64 is passed; --async never sends it.
- Embedded logs get leaves the workflow snapshot out unless
--include-workflow-state is passed, via a new embeddedRequestDefault contract
field. The installed CLI and public API defaults are unchanged.
- Add test-cli-run-latency-e2e.ts, which times both commands per segment
against a running app and writes a JSON report; CI runs a short pass.
* fix(cli): cover followed runs, assert lean results, own CI step for the CLI E2E
- Embedded --follow runs also ask for file references only.
- The E2E asserts this checkout's embedded results carry no inline file bytes
or workflow snapshot; a compared CLI build is measured, not asserted.
- Run the CLI E2E against its own self-hosted app: hosted billing admits runs
through Redis, which the HTTP E2E job does not provision.
* fix(cli): remove the CLI E2E's execution logs and snapshots on cleanup
Copy file name to clipboardExpand all lines: apps/docs/content/docs/cli/logs.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ sim logs get <runId> [options]
31
31
32
32
| Option | Required | Description |
33
33
| --- | --- | --- |
34
-
|`--include-workflow-state`| No | Include the saved workflow snapshot (default: true). Set false to omit block configuration from a log read. Other run fields are unchanged. |
34
+
|`--include-workflow-state`| No | Include the saved workflow snapshot (default: true; Sim’s in-app agent leaves it out unless this flag is passed). Set false to omit block configuration from a log read. Other run fields are unchanged. |
35
35
|`--no-include-workflow-state`| No | Send --include-workflow-state as false. |
36
36
|`--trace`| No | Show expanded trace spans with inputs, outputs, errors, timing, and cost. |
Copy file name to clipboardExpand all lines: apps/docs/content/docs/cli/reference.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2751,7 +2751,7 @@ sim logs get <runId> [options]
2751
2751
2752
2752
| Option | Required | Description |
2753
2753
| --- | --- | --- |
2754
-
|`--include-workflow-state`| No | Include the saved workflow snapshot (default: true). Set false to omit block configuration from a log read. Other run fields are unchanged. |
2754
+
|`--include-workflow-state`| No | Include the saved workflow snapshot (default: true; Sim’s in-app agent leaves it out unless this flag is passed). Set false to omit block configuration from a log read. Other run fields are unchanged. |
2755
2755
|`--no-include-workflow-state`| No | Send --include-workflow-state as false. |
2756
2756
|`--trace`| No | Show expanded trace spans with inputs, outputs, errors, timing, and cost. |
2757
2757
@@ -6695,7 +6695,7 @@ sim workflows run <workflowId> [options]
6695
6695
|`--async`| No | Queue the run and return immediately. |
6696
6696
|`--execution-timeout-seconds <value>`| No | Maximum duration of an asynchronous run, in seconds, capped by the plan's execution timeout. Requires `async: true`; otherwise returns `400`. |
6697
6697
|`--select-output <value...>`| No | Return blockName.path values (e.g. agent_1.content), or childWorkflowId.blockName.path for a child workflow (applies to every invocation) — in blockOutputs on a sync run, or from the streamed result with --follow; missing paths are omitted. Not available with --async (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
6698
-
|`--include-file-base64`| No | Inline eligible output files as base64 content. Rejected when `async` is true. |
6698
+
|`--include-file-base64`| No | Inline eligible output files as base64 content (default: true; Sim’s in-app agent gets file references only unless this flag is passed). Rejected when `async` is true. |
6699
6699
|`--no-include-file-base64`| No | Send --include-file-base64 as false. |
6700
6700
|`--base64-max-bytes <value>`| No | Maximum total bytes of file content to inline as base64, lowering but never raising the server limit of 16 MiB. Rejected when `async` is true. |
6701
6701
|`--run-id <value>`| No | One-shot identifier for this run; NOT an idempotency key — reusing a claimed value fails with RUN_ID_CONFLICT instead of replaying the first result, and a fresh value starts another run. |
Copy file name to clipboardExpand all lines: apps/docs/content/docs/cli/workflows.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -633,7 +633,7 @@ sim workflows run <workflowId> [options]
633
633
|`--async`| No | Queue the run and return immediately. |
634
634
|`--execution-timeout-seconds <value>`| No | Maximum duration of an asynchronous run, in seconds, capped by the plan's execution timeout. Requires `async: true`; otherwise returns `400`. |
635
635
|`--select-output <value...>`| No | Return blockName.path values (e.g. agent_1.content), or childWorkflowId.blockName.path for a child workflow (applies to every invocation) — in blockOutputs on a sync run, or from the streamed result with --follow; missing paths are omitted. Not available with --async (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
636
-
|`--include-file-base64`| No | Inline eligible output files as base64 content. Rejected when `async` is true. |
636
+
|`--include-file-base64`| No | Inline eligible output files as base64 content (default: true; Sim’s in-app agent gets file references only unless this flag is passed). Rejected when `async` is true. |
637
637
|`--no-include-file-base64`| No | Send --include-file-base64 as false. |
638
638
|`--base64-max-bytes <value>`| No | Maximum total bytes of file content to inline as base64, lowering but never raising the server limit of 16 MiB. Rejected when `async` is true. |
639
639
|`--run-id <value>`| No | One-shot identifier for this run; NOT an idempotency key — reusing a claimed value fails with RUN_ID_CONFLICT instead of replaying the first result, and a fresh value starts another run. |
0 commit comments