sim 2.2.32 → 2.2.33-preview.316.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/README.md +42 -0
  2. package/THIRD_PARTY_LICENSES +31 -0
  3. package/dist/auth/refresh.d.ts +2 -1
  4. package/dist/commands/protocol/files-get.d.ts +3 -0
  5. package/dist/commands/protocol/result.d.ts +7 -1
  6. package/dist/commands/protocol/source-dir.d.ts +263 -0
  7. package/dist/commands/protocol/source-exit-codes.d.ts +8 -0
  8. package/dist/commands/protocol/source-primer.d.ts +14 -0
  9. package/dist/commands/protocol/source-status.d.ts +145 -0
  10. package/dist/commands/protocol/source-tree.d.ts +159 -0
  11. package/dist/commands/protocol/source-ui.d.ts +89 -0
  12. package/dist/commands/protocol/stored-edges.d.ts +44 -0
  13. package/dist/commands/protocol/workflow-source-apply.d.ts +38 -0
  14. package/dist/commands/protocol/workflow-source-check.d.ts +70 -0
  15. package/dist/commands/protocol/workflow-source-get.d.ts +40 -0
  16. package/dist/commands/protocol/workflow-source-params.d.ts +7 -0
  17. package/dist/commands/protocol/workflow-source-status.d.ts +14 -0
  18. package/dist/commands/protocol/workspace-source-apply.d.ts +15 -0
  19. package/dist/commands/protocol/workspace-source-blobs.d.ts +111 -0
  20. package/dist/commands/protocol/workspace-source-check.d.ts +7 -0
  21. package/dist/commands/protocol/workspace-source-dir.d.ts +135 -0
  22. package/dist/commands/protocol/workspace-source-get.d.ts +13 -0
  23. package/dist/commands/protocol/workspace-source-status.d.ts +13 -0
  24. package/dist/embed-context.d.ts +6 -3
  25. package/dist/exit-codes.d.ts +66 -0
  26. package/dist/generated/v2-api.d.ts +1297 -1
  27. package/dist/http/client.d.ts +22 -0
  28. package/dist/index.js +58843 -20211
  29. package/dist/output/io.d.ts +6 -0
  30. package/dist/program.d.ts +1 -1
  31. package/dist/runtime.js +59083 -20451
  32. package/dist/terminal/interrupts.d.ts +23 -0
  33. package/dist/terminal/line-input.d.ts +8 -0
  34. package/dist/terminal.d.ts +1 -0
  35. package/package.json +5 -1
@@ -3,3 +3,9 @@ export declare function printLine(...args: unknown[]): void;
3
3
  export declare function printError(...args: unknown[]): void;
4
4
  export declare function writeStdout(chunk: string | Uint8Array): boolean;
5
5
  export declare function writeStderr(chunk: string | Uint8Array): boolean;
6
+ /**
7
+ * Waits until stdout and stderr have written out what the CLI printed. `process.exit` ends the
8
+ * process at once, and a pipe holds only 64 KiB, so exiting without this cuts a large result
9
+ * short for whatever reads it (`sim … | jq`) while the exit status still says success.
10
+ */
11
+ export declare function flushOutput(): Promise<void>;
package/dist/program.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Command } from 'commander';
2
2
  /** Root program description, shared by `--help` and the generated docs. */
3
3
  export declare const PROGRAM_DESCRIPTION = "Talk to the Sim API from your terminal";
4
- export declare const HELP_EPILOGUE = "\nProfiles work like the AWS CLI: settings live in ~/.sim/config, keys in\n~/.sim/credentials (0600), or under SIM_CONFIG_DIR when it is set. Select one\nwith -P, --profile, or SIM_PROFILE.\n\nWorkflow, knowledge-base and workspace IDs are bare UUIDs. Table IDs carry a\ntbl_ prefix and file IDs a wf_ one, so wf_ never names a workflow. An audit-log\nor custom-tool ID can open with a dash, which reads as a flag; put -- in front\nof it, as in sim audit-logs get -- -HlDcD1z76nK6R4crsUp0.\n\nExamples:\n $ sim cli search \"cancel a workflow run\" Find the command for a task\n $ sim login Authorize the default profile\n $ sim login --profile dev --endpoint http://localhost:3000\n $ sim profile add acme --workspace 7e2d9c14-6b83-4a55-8f01-c4d3e9a76b28\n $ sim workflows list\n $ sim logs list --level error --limit 20\n $ sim configure --set-output table Prefer tables over the JSON default\n $ sim --output table tables get tbl_9f3c1a05d4b7426e8c2f0917ab35de64\n $ sim knowledge search --query \"refund policy\" --kb 4c1b7f60-2d55-4a3e-9c18-70b6ea2f9d31\n $ sim workflows export 3a9e21d8-5f47-4c0b-b2ea-91d7c6034ef8 > wf.json\n $ sim workflows import --workflow @wf.json\n $ sim knowledge export 4c1b7f60-2d55-4a3e-9c18-70b6ea2f9d31 -o ./kb.simkb.zip\n $ sim knowledge import ./kb.simkb.zip --name \"Docs (copy)\"\n $ sim whoami --profile dev\n";
4
+ export declare const HELP_EPILOGUE = "\nProfiles work like the AWS CLI: settings live in ~/.sim/config, keys in\n~/.sim/credentials (0600), or under SIM_CONFIG_DIR when it is set. Select one\nwith -P, --profile, or SIM_PROFILE.\n\nWorkflow, knowledge-base and workspace IDs are bare UUIDs. Table IDs carry a\ntbl_ prefix and file IDs a wf_ one, so wf_ never names a workflow. An audit-log\nor custom-tool ID can open with a dash, which reads as a flag; put -- in front\nof it, as in sim audit-logs get -- -HlDcD1z76nK6R4crsUp0.\n\nExamples:\n $ sim cli search \"cancel a workflow run\" Find the command for a task\n $ sim login Authorize the default profile\n $ sim login --profile dev --endpoint http://localhost:3000\n $ sim profile add acme --workspace 7e2d9c14-6b83-4a55-8f01-c4d3e9a76b28\n $ sim workflows list\n $ sim logs list --level error --limit 20\n $ sim configure --set-output table Prefer tables over the JSON default\n $ sim --output table tables get tbl_9f3c1a05d4b7426e8c2f0917ab35de64\n $ sim knowledge search --query \"refund policy\" --kb 4c1b7f60-2d55-4a3e-9c18-70b6ea2f9d31\n $ sim workflows export 3a9e21d8-5f47-4c0b-b2ea-91d7c6034ef8 > wf.json\n $ sim workflows import --workflow @wf.json\n $ sim workflows source get 3a9e21d8-5f47-4c0b-b2ea-91d7c6034ef8 --dir ./wf\n $ sim knowledge export 4c1b7f60-2d55-4a3e-9c18-70b6ea2f9d31 -o ./kb.simkb.zip\n $ sim knowledge import ./kb.simkb.zip --name \"Docs (copy)\"\n $ sim whoami --profile dev\n";
5
5
  /**
6
6
  * Printed above group-level help when a coding agent runs the CLI.
7
7
  *