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.
- package/dist/index.js +3654 -4127
- package/package.json +2 -12
- package/dist/auth/device-flow.d.ts +0 -39
- package/dist/auth/oauth-flow.d.ts +0 -119
- package/dist/auth/refresh.d.ts +0 -16
- package/dist/commands/auth.d.ts +0 -5
- package/dist/commands/configure.d.ts +0 -2
- package/dist/commands/credentials.d.ts +0 -3
- package/dist/commands/protocol/chat.d.ts +0 -11
- package/dist/commands/protocol/files-get.d.ts +0 -25
- package/dist/commands/protocol/files-upload.d.ts +0 -2
- package/dist/commands/protocol/index.d.ts +0 -3
- package/dist/commands/protocol/knowledge-document-upload.d.ts +0 -2
- package/dist/commands/protocol/knowledge-export.d.ts +0 -14
- package/dist/commands/protocol/logs-follow.d.ts +0 -39
- package/dist/commands/protocol/resource-directory.d.ts +0 -24
- package/dist/commands/protocol/result.d.ts +0 -2
- package/dist/commands/protocol/tables-import.d.ts +0 -2
- package/dist/commands/protocol/workflow-run-follow.d.ts +0 -56
- package/dist/commands/protocol/workflow-run-get.d.ts +0 -15
- package/dist/commands/protocol/workflow-run-wait.d.ts +0 -3
- package/dist/commands/protocol/workspace-operation-wait.d.ts +0 -14
- package/dist/commands/secrets.d.ts +0 -3
- package/dist/commands/telemetry.d.ts +0 -2
- package/dist/commands/update.d.ts +0 -2
- package/dist/config/index.d.ts +0 -2
- package/dist/config/ini.d.ts +0 -111
- package/dist/config/json-file.d.ts +0 -18
- package/dist/config/paths.d.ts +0 -29
- package/dist/config/profile.d.ts +0 -210
- package/dist/context.d.ts +0 -21
- package/dist/contract/commands.d.ts +0 -14
- package/dist/contract/types.d.ts +0 -306
- package/dist/embed-context.d.ts +0 -79
- package/dist/embed-output.d.ts +0 -15
- package/dist/embed.d.ts +0 -40
- package/dist/environment.d.ts +0 -22
- package/dist/generated/v2-api.d.ts +0 -15057
- package/dist/helpers.d.ts +0 -9
- package/dist/http/client.d.ts +0 -173
- package/dist/http/environment.d.ts +0 -24
- package/dist/http/ndjson.d.ts +0 -5
- package/dist/output/io.d.ts +0 -5
- package/dist/output/presentation.d.ts +0 -4
- package/dist/output/render.d.ts +0 -60
- package/dist/output/terminal-text.d.ts +0 -17
- package/dist/output/trace.d.ts +0 -3
- package/dist/output/truncation.d.ts +0 -3
- package/dist/program.d.ts +0 -21
- package/dist/runtime/build.d.ts +0 -38
- package/dist/runtime/derive.d.ts +0 -20
- package/dist/runtime/execute.d.ts +0 -32
- package/dist/runtime/naming.d.ts +0 -25
- package/dist/runtime/options.d.ts +0 -9
- package/dist/runtime/renamed.d.ts +0 -6
- package/dist/runtime/request.d.ts +0 -110
- package/dist/runtime/result.d.ts +0 -41
- package/dist/runtime/types.d.ts +0 -23
- package/dist/runtime.d.ts +0 -5
- package/dist/runtime.js +0 -21864
- package/dist/telemetry/client-info.d.ts +0 -20
- package/dist/telemetry/coding-agent.d.ts +0 -31
- package/dist/telemetry/index.d.ts +0 -4
- package/dist/telemetry/invocation.d.ts +0 -98
- package/dist/telemetry/policy.d.ts +0 -38
- package/dist/telemetry/state.d.ts +0 -47
- package/dist/telemetry/transport.d.ts +0 -47
- package/dist/terminal/secret-input.d.ts +0 -15
- package/dist/terminal.d.ts +0 -7
- package/dist/transfer/local-file.d.ts +0 -16
- package/dist/transfer/streaming-upload.d.ts +0 -16
- package/dist/transfer/upload-session.d.ts +0 -18
- package/dist/update/check.d.ts +0 -53
- package/dist/update/install.d.ts +0 -20
- 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>;
|
package/dist/environment.d.ts
DELETED
|
@@ -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;
|