sim 2.1.18-dev.133.1 → 2.1.18

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 (75) hide show
  1. package/dist/index.js +3654 -4127
  2. package/package.json +2 -12
  3. package/dist/auth/device-flow.d.ts +0 -39
  4. package/dist/auth/oauth-flow.d.ts +0 -119
  5. package/dist/auth/refresh.d.ts +0 -16
  6. package/dist/commands/auth.d.ts +0 -5
  7. package/dist/commands/configure.d.ts +0 -2
  8. package/dist/commands/credentials.d.ts +0 -3
  9. package/dist/commands/protocol/chat.d.ts +0 -11
  10. package/dist/commands/protocol/files-get.d.ts +0 -25
  11. package/dist/commands/protocol/files-upload.d.ts +0 -2
  12. package/dist/commands/protocol/index.d.ts +0 -3
  13. package/dist/commands/protocol/knowledge-document-upload.d.ts +0 -2
  14. package/dist/commands/protocol/knowledge-export.d.ts +0 -14
  15. package/dist/commands/protocol/logs-follow.d.ts +0 -39
  16. package/dist/commands/protocol/resource-directory.d.ts +0 -24
  17. package/dist/commands/protocol/result.d.ts +0 -2
  18. package/dist/commands/protocol/tables-import.d.ts +0 -2
  19. package/dist/commands/protocol/workflow-run-follow.d.ts +0 -56
  20. package/dist/commands/protocol/workflow-run-get.d.ts +0 -15
  21. package/dist/commands/protocol/workflow-run-wait.d.ts +0 -3
  22. package/dist/commands/protocol/workspace-operation-wait.d.ts +0 -14
  23. package/dist/commands/secrets.d.ts +0 -3
  24. package/dist/commands/telemetry.d.ts +0 -2
  25. package/dist/commands/update.d.ts +0 -2
  26. package/dist/config/index.d.ts +0 -2
  27. package/dist/config/ini.d.ts +0 -111
  28. package/dist/config/json-file.d.ts +0 -18
  29. package/dist/config/paths.d.ts +0 -29
  30. package/dist/config/profile.d.ts +0 -210
  31. package/dist/context.d.ts +0 -21
  32. package/dist/contract/commands.d.ts +0 -14
  33. package/dist/contract/types.d.ts +0 -306
  34. package/dist/embed-context.d.ts +0 -79
  35. package/dist/embed-output.d.ts +0 -15
  36. package/dist/embed.d.ts +0 -40
  37. package/dist/environment.d.ts +0 -22
  38. package/dist/generated/v2-api.d.ts +0 -15057
  39. package/dist/helpers.d.ts +0 -9
  40. package/dist/http/client.d.ts +0 -173
  41. package/dist/http/environment.d.ts +0 -24
  42. package/dist/http/ndjson.d.ts +0 -5
  43. package/dist/output/io.d.ts +0 -5
  44. package/dist/output/presentation.d.ts +0 -4
  45. package/dist/output/render.d.ts +0 -60
  46. package/dist/output/terminal-text.d.ts +0 -17
  47. package/dist/output/trace.d.ts +0 -3
  48. package/dist/output/truncation.d.ts +0 -3
  49. package/dist/program.d.ts +0 -21
  50. package/dist/runtime/build.d.ts +0 -38
  51. package/dist/runtime/derive.d.ts +0 -20
  52. package/dist/runtime/execute.d.ts +0 -32
  53. package/dist/runtime/naming.d.ts +0 -25
  54. package/dist/runtime/options.d.ts +0 -9
  55. package/dist/runtime/renamed.d.ts +0 -6
  56. package/dist/runtime/request.d.ts +0 -110
  57. package/dist/runtime/result.d.ts +0 -41
  58. package/dist/runtime/types.d.ts +0 -23
  59. package/dist/runtime.d.ts +0 -5
  60. package/dist/runtime.js +0 -21864
  61. package/dist/telemetry/client-info.d.ts +0 -20
  62. package/dist/telemetry/coding-agent.d.ts +0 -31
  63. package/dist/telemetry/index.d.ts +0 -4
  64. package/dist/telemetry/invocation.d.ts +0 -98
  65. package/dist/telemetry/policy.d.ts +0 -38
  66. package/dist/telemetry/state.d.ts +0 -47
  67. package/dist/telemetry/transport.d.ts +0 -47
  68. package/dist/terminal/secret-input.d.ts +0 -15
  69. package/dist/terminal.d.ts +0 -7
  70. package/dist/transfer/local-file.d.ts +0 -16
  71. package/dist/transfer/streaming-upload.d.ts +0 -16
  72. package/dist/transfer/upload-session.d.ts +0 -18
  73. package/dist/update/check.d.ts +0 -53
  74. package/dist/update/install.d.ts +0 -20
  75. package/dist/version.d.ts +0 -10
package/dist/embed.d.ts DELETED
@@ -1,40 +0,0 @@
1
- import { type EmbedContext, type EmbeddedCliIdentity } from './embed-context';
2
- import { SimClient } from './http/client';
3
- /**
4
- * In-process execution of one CLI invocation, for a server that already knows
5
- * who is calling: the caller supplies endpoint + credential + workspace
6
- * directly and the profile machinery (config files, env vars, login state) is
7
- * bypassed entirely. Everything else — command tree, flag parsing, request
8
- * building, output rendering — is the exact code the installed CLI runs, so
9
- * the two surfaces cannot drift.
10
- *
11
- * Concurrency-safe by construction: the identity and the output capture both
12
- * live in an AsyncLocalStorage context, so parallel embedded invocations (and
13
- * any ordinary console logging around them) never interleave.
14
- */
15
- export type { EmbeddedCliIdentity, EmbeddedFileSnapshot } from './embed-context';
16
- export type { ExportWorkflowResponse, ListFilesResponse, ListWorkflowsResponse, ReadFileTextResponse, } from './generated/v2-api';
17
- export { SimApiError, SimClient } from './http/client';
18
- export interface EmbeddedCliResult {
19
- exitCode: number;
20
- stdout: string;
21
- stderr: string;
22
- }
23
- /**
24
- * A typed v2 client bound to an embedded identity — for server-side augmentation
25
- * commands that reuse the v2 surface directly instead of re-parsing rendered
26
- * CLI output. Same endpoint/credential semantics as {@link runEmbeddedCli}.
27
- */
28
- export declare function createEmbeddedClient(identity: EmbeddedCliIdentity): SimClient;
29
- /**
30
- * Runs one CLI invocation in-process. `argv` is the token list exactly as the
31
- * terminal would receive it (no leading node/binary tokens). Errors the
32
- * installed CLI would print-and-exit-1 on come back the same way: rendered to
33
- * stderr, exitCode 1 — never thrown.
34
- */
35
- export declare function runEmbeddedCli(argv: string[], identity: EmbeddedCliIdentity, options?: {
36
- workingDirectory?: string;
37
- readFile?: EmbedContext['readFile'];
38
- openFile?: EmbedContext['openFile'];
39
- writeFile?: EmbedContext['writeFile'];
40
- }): Promise<EmbeddedCliResult>;
@@ -1,22 +0,0 @@
1
- /**
2
- * Facts about the process environment that more than one feature reads.
3
- *
4
- * The update notice and usage telemetry both suppress themselves in CI and
5
- * both read `SIM_*` switches; one definition keeps the two from disagreeing
6
- * about what "on" or "in CI" means.
7
- */
8
- /** Anything but unset, empty, `0` or `false` turns a switch on. */
9
- export declare function isEnabled(value: string | undefined): boolean;
10
- /** Whether any of the {@link CI_VARIABLES} says this is a CI job. */
11
- export declare function isCi(env?: NodeJS.ProcessEnv): boolean;
12
- /**
13
- * The Node proxy flags this process was started with, for a child that must
14
- * reach the network the same way.
15
- */
16
- export declare function proxyExecArgv(): string[];
17
- /**
18
- * The process environment for a helper child: proxy and TLS settings intact,
19
- * the named variables removed so a credential never reaches a process that
20
- * does not need it, and `extra` added on top.
21
- */
22
- export declare function childProcessEnv(strip: readonly string[], extra?: Partial<NodeJS.ProcessEnv>): NodeJS.ProcessEnv;