sim 2.2.9-preview.211.1 → 2.2.9-preview.213.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.
- package/dist/generated/v2-api.d.ts +69 -1
- package/dist/index.js +13 -3
- package/dist/runtime/called-operations.d.ts +13 -3
- package/dist/runtime.js +13 -3
- package/package.json +1 -1
|
@@ -3133,6 +3133,73 @@ type DeployWorkflowResponseRef3 = {
|
|
|
3133
3133
|
retryable: boolean;
|
|
3134
3134
|
};
|
|
3135
3135
|
type DeployWorkflowResponseRef4 = {
|
|
3136
|
+
sources: Array<{
|
|
3137
|
+
blockId: string;
|
|
3138
|
+
blockName: string | null;
|
|
3139
|
+
blockType: string | null;
|
|
3140
|
+
}>;
|
|
3141
|
+
sinks: Array<{
|
|
3142
|
+
blockId: string;
|
|
3143
|
+
blockName: string | null;
|
|
3144
|
+
blockType: string | null;
|
|
3145
|
+
}>;
|
|
3146
|
+
orphanBlocks: Array<{
|
|
3147
|
+
blockId: string;
|
|
3148
|
+
blockName: string | null;
|
|
3149
|
+
blockType: string | null;
|
|
3150
|
+
}>;
|
|
3151
|
+
emptyOutgoingPorts: Array<{
|
|
3152
|
+
blockId: string;
|
|
3153
|
+
blockName: string | null;
|
|
3154
|
+
blockType: string | null;
|
|
3155
|
+
handle: string;
|
|
3156
|
+
label: string;
|
|
3157
|
+
}>;
|
|
3158
|
+
invalidBranchPorts: Array<{
|
|
3159
|
+
blockId: string;
|
|
3160
|
+
blockName: string | null;
|
|
3161
|
+
blockType: string | null;
|
|
3162
|
+
sourceHandle: string;
|
|
3163
|
+
reason: string;
|
|
3164
|
+
}>;
|
|
3165
|
+
invalidConnectionTargets: Array<{
|
|
3166
|
+
sourceBlockId: string;
|
|
3167
|
+
sourceBlockName: string | null;
|
|
3168
|
+
sourceHandle: string | null;
|
|
3169
|
+
targetBlockId: string;
|
|
3170
|
+
reason: string;
|
|
3171
|
+
}>;
|
|
3172
|
+
fieldIssues: Array<{
|
|
3173
|
+
blockId: string;
|
|
3174
|
+
blockName: string | null;
|
|
3175
|
+
blockType: string | null;
|
|
3176
|
+
missingRequiredFields: Array<string>;
|
|
3177
|
+
inactiveModeValues: Array<{
|
|
3178
|
+
canonicalId: string;
|
|
3179
|
+
activeMemberId: string | null;
|
|
3180
|
+
inactiveMemberId: string;
|
|
3181
|
+
kind: 'credential' | 'resource' | 'other';
|
|
3182
|
+
}>;
|
|
3183
|
+
}>;
|
|
3184
|
+
unresolvedReferences: Array<{
|
|
3185
|
+
blockId: string;
|
|
3186
|
+
blockName: string | null;
|
|
3187
|
+
blockType: string | null;
|
|
3188
|
+
field: string;
|
|
3189
|
+
value: string | Array<string>;
|
|
3190
|
+
kind: 'credential' | 'resource' | 'custom-tool' | 'mcp-tool' | 'skill' | 'block-output';
|
|
3191
|
+
reason: string;
|
|
3192
|
+
}>;
|
|
3193
|
+
tableFieldIssues: Array<{
|
|
3194
|
+
blockId: string;
|
|
3195
|
+
blockName: string | null;
|
|
3196
|
+
blockType: string | null;
|
|
3197
|
+
field: string;
|
|
3198
|
+
tableName: string;
|
|
3199
|
+
}>;
|
|
3200
|
+
notes: Array<string>;
|
|
3201
|
+
};
|
|
3202
|
+
type DeployWorkflowResponseRef5 = {
|
|
3136
3203
|
id: string;
|
|
3137
3204
|
isDeployed: boolean;
|
|
3138
3205
|
deployedAt: string | null;
|
|
@@ -3140,9 +3207,10 @@ type DeployWorkflowResponseRef4 = {
|
|
|
3140
3207
|
activeDeployment: DeployWorkflowResponseRef0 | null;
|
|
3141
3208
|
latestDeploymentAttempt: DeployWorkflowResponseRef1 | null;
|
|
3142
3209
|
version?: number;
|
|
3210
|
+
lint: DeployWorkflowResponseRef4 | null;
|
|
3143
3211
|
};
|
|
3144
3212
|
export type DeployWorkflowResponse = {
|
|
3145
|
-
data:
|
|
3213
|
+
data: DeployWorkflowResponseRef5;
|
|
3146
3214
|
};
|
|
3147
3215
|
/** `POST /api/v2/workflow-mcp-servers/[serverId]/tools` */
|
|
3148
3216
|
export type DeployWorkflowMcpToolParams = {
|
package/dist/index.js
CHANGED
|
@@ -17330,6 +17330,11 @@ var V2_OPERATIONS = {
|
|
|
17330
17330
|
|
|
17331
17331
|
// src/runtime/called-operations.ts
|
|
17332
17332
|
var CALLED_OPERATIONS = new WeakMap;
|
|
17333
|
+
var RUNS_OPERATION = new WeakMap;
|
|
17334
|
+
function runsOperation(command, operation) {
|
|
17335
|
+
RUNS_OPERATION.set(command, operation);
|
|
17336
|
+
return command;
|
|
17337
|
+
}
|
|
17333
17338
|
function callsOperations(command, operations) {
|
|
17334
17339
|
CALLED_OPERATIONS.set(command, operations);
|
|
17335
17340
|
return command;
|
|
@@ -21387,6 +21392,7 @@ function refuseHelpAfterUnknownCommand(program) {
|
|
|
21387
21392
|
}
|
|
21388
21393
|
function configureOperation(command, operation, spec) {
|
|
21389
21394
|
const operationSpec = V2_OPERATIONS[operation];
|
|
21395
|
+
runsOperation(command, operation);
|
|
21390
21396
|
command.allowExcessArguments(false);
|
|
21391
21397
|
for (const alias of spec.aliases ?? [])
|
|
21392
21398
|
command.alias(alias);
|
|
@@ -21672,7 +21678,9 @@ function attachCredentialCommands(program) {
|
|
|
21672
21678
|
if (!credentials)
|
|
21673
21679
|
throw new Error("The generated credentials command group is missing");
|
|
21674
21680
|
acceptNameOnUpdate(credentials);
|
|
21675
|
-
credentials.command("create").argument("<providerId>", "Service-account provider to create a credential for").description(describeOperation(V2_OPERATIONS.createServiceAccountCredential, "Create a service-account credential using its discovered provider schema")).requiredOption("--name <displayName>", "Name shown for the credential in Sim (required)").requiredOption("--credentials <json|@file>", "Provider credentials as JSON (or @path / @- to read a file or stdin) (required)").option("--description <description>", "Optional credential description").option("--id <credentialId>", "Client-generated credential ID when provider discovery requires it").action((providerId, options, command) => createServiceAccount(command, providerId, options));
|
|
21681
|
+
const create = credentials.command("create").argument("<providerId>", "Service-account provider to create a credential for").description(describeOperation(V2_OPERATIONS.createServiceAccountCredential, "Create a service-account credential using its discovered provider schema")).requiredOption("--name <displayName>", "Name shown for the credential in Sim (required)").requiredOption("--credentials <json|@file>", "Provider credentials as JSON (or @path / @- to read a file or stdin) (required)").option("--description <description>", "Optional credential description").option("--id <credentialId>", "Client-generated credential ID when provider discovery requires it").action((providerId, options, command) => createServiceAccount(command, providerId, options));
|
|
21682
|
+
callsOperations(create, ["listCredentialProviders", "createServiceAccountCredential"]);
|
|
21683
|
+
runsOperation(create, "createServiceAccountCredential");
|
|
21676
21684
|
credentials.command("connect").argument("<providerId>", "OAuth provider to connect").description(describeOperation(V2_OPERATIONS.createCredentialConnection, "Create a short-lived link for connecting an OAuth provider")).requiredOption("--name <displayName>", "Name shown for the new credential in Sim (required)").action(async (providerId, options, command) => createConnectionLink(command, { providerId, displayName: options.name }));
|
|
21677
21685
|
credentials.command("reconnect").argument("<credentialId>", "Existing OAuth credential to re-authorize").description(describeOperation(V2_OPERATIONS.createCredentialConnection, "Create a short-lived link for reconnecting an OAuth credential")).action((credentialId, _options, command) => createConnectionLink(command, { credentialId }));
|
|
21678
21686
|
}
|
|
@@ -22040,7 +22048,8 @@ async function downloadToOutput(command, operation, pathParams, options) {
|
|
|
22040
22048
|
});
|
|
22041
22049
|
}
|
|
22042
22050
|
function attachFileGet(files) {
|
|
22043
|
-
files.command("get").argument("<fileId>", "File whose content to read").allowExcessArguments(false).description("Download a file’s content to stdout or a local file").option("-o, --output-file <path>", "Write content to a file instead of stdout").option("--force", "Overwrite --output-file if it already exists").action((fileId, options, command) => downloadToOutput(command, V2_OPERATIONS.downloadFile, { fileId }, options));
|
|
22051
|
+
const get = files.command("get").argument("<fileId>", "File whose content to read").allowExcessArguments(false).description("Download a file’s content to stdout or a local file").option("-o, --output-file <path>", "Write content to a file instead of stdout").option("--force", "Overwrite --output-file if it already exists").action((fileId, options, command) => downloadToOutput(command, V2_OPERATIONS.downloadFile, { fileId }, options));
|
|
22052
|
+
callsOperations(get, ["downloadFile"]);
|
|
22044
22053
|
}
|
|
22045
22054
|
function attachFileVersionDownload(versions) {
|
|
22046
22055
|
const download = versions.command("download").argument("<fileId>", "File identifier.").argument("<version>", "Version number.").allowExcessArguments(false).description("Download the content of one version of a file").option("-o, --output-file <path>", "Write content to a file instead of stdout").option("--force", "Overwrite --output-file if it already exists").action((fileId, version, options, command) => downloadToOutput(command, V2_OPERATIONS.downloadFileVersion, { fileId, version }, options));
|
|
@@ -22353,7 +22362,7 @@ function safeBaseName(name) {
|
|
|
22353
22362
|
return base && base !== "." && base !== ".." ? base : null;
|
|
22354
22363
|
}
|
|
22355
22364
|
function attachKnowledgeExport(knowledge) {
|
|
22356
|
-
knowledge.command("export").argument("<knowledgeBaseId>", "Knowledge base to export").allowExcessArguments(false).description("Export a knowledge base as a .simkb.zip bundle").option("-o, --output-file <path>", "Write the bundle to this path instead of the name the server suggests; pass - to stream it to stdout").option("--force", "Overwrite --output-file if it already exists").option("--no-vectors", "Leave chunk vectors out of the bundle, so an import re-embeds every chunk").action(async (knowledgeBaseId, options, command) => {
|
|
22365
|
+
const exportCommand = knowledge.command("export").argument("<knowledgeBaseId>", "Knowledge base to export").allowExcessArguments(false).description("Export a knowledge base as a .simkb.zip bundle").option("-o, --output-file <path>", "Write the bundle to this path instead of the name the server suggests; pass - to stream it to stdout").option("--force", "Overwrite --output-file if it already exists").option("--no-vectors", "Leave chunk vectors out of the bundle, so an import re-embeds every chunk").action(async (knowledgeBaseId, options, command) => {
|
|
22357
22366
|
const writesToStdout = options.outputFile === "-";
|
|
22358
22367
|
if (writesToStdout && options.force) {
|
|
22359
22368
|
throw new SimApiError("--force requires --output-file <path>", 0);
|
|
@@ -22386,6 +22395,7 @@ function attachKnowledgeExport(knowledge) {
|
|
|
22386
22395
|
vectors: options.vectors
|
|
22387
22396
|
});
|
|
22388
22397
|
});
|
|
22398
|
+
callsOperations(exportCommand, ["exportKnowledgeBase"]);
|
|
22389
22399
|
}
|
|
22390
22400
|
|
|
22391
22401
|
// src/commands/protocol/logs-follow.ts
|
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
import type { Command } from 'commander';
|
|
2
2
|
import type { V2OperationName } from '../generated/v2-api';
|
|
3
|
+
/**
|
|
4
|
+
* Records the one v2 operation whose request and response a command presents as its
|
|
5
|
+
* own: every generated command, and a hand-written one that prints a single call's result.
|
|
6
|
+
*
|
|
7
|
+
* The command inventory reads it here rather than mapping paths back to operations: a
|
|
8
|
+
* derived path can equal another operation's (`undeployWorkflow` derives
|
|
9
|
+
* `workflows deploy`), and a reverse lookup by path then describes the wrong one.
|
|
10
|
+
*/
|
|
11
|
+
export declare function runsOperation(command: Command, operation: V2OperationName): Command;
|
|
12
|
+
export declare function operationOf(command: Command): V2OperationName | undefined;
|
|
3
13
|
/**
|
|
4
14
|
* Records the v2 operations a hand-written command calls.
|
|
5
15
|
*
|
|
6
|
-
* A
|
|
7
|
-
*
|
|
8
|
-
*
|
|
16
|
+
* A hand-written command is opaque until it says what it calls, and the inventory needs
|
|
17
|
+
* that to describe it truthfully, such as whether every call is open to a Mothership
|
|
18
|
+
* caller.
|
|
9
19
|
*/
|
|
10
20
|
export declare function callsOperations(command: Command, operations: readonly V2OperationName[]): Command;
|
|
11
21
|
export declare function calledOperations(command: Command): readonly V2OperationName[] | undefined;
|
package/dist/runtime.js
CHANGED
|
@@ -17379,6 +17379,11 @@ var V2_OPERATIONS = {
|
|
|
17379
17379
|
|
|
17380
17380
|
// src/runtime/called-operations.ts
|
|
17381
17381
|
var CALLED_OPERATIONS = new WeakMap;
|
|
17382
|
+
var RUNS_OPERATION = new WeakMap;
|
|
17383
|
+
function runsOperation(command, operation) {
|
|
17384
|
+
RUNS_OPERATION.set(command, operation);
|
|
17385
|
+
return command;
|
|
17386
|
+
}
|
|
17382
17387
|
function callsOperations(command, operations) {
|
|
17383
17388
|
CALLED_OPERATIONS.set(command, operations);
|
|
17384
17389
|
return command;
|
|
@@ -21436,6 +21441,7 @@ function refuseHelpAfterUnknownCommand(program) {
|
|
|
21436
21441
|
}
|
|
21437
21442
|
function configureOperation(command, operation, spec) {
|
|
21438
21443
|
const operationSpec = V2_OPERATIONS[operation];
|
|
21444
|
+
runsOperation(command, operation);
|
|
21439
21445
|
command.allowExcessArguments(false);
|
|
21440
21446
|
for (const alias of spec.aliases ?? [])
|
|
21441
21447
|
command.alias(alias);
|
|
@@ -21721,7 +21727,9 @@ function attachCredentialCommands(program) {
|
|
|
21721
21727
|
if (!credentials)
|
|
21722
21728
|
throw new Error("The generated credentials command group is missing");
|
|
21723
21729
|
acceptNameOnUpdate(credentials);
|
|
21724
|
-
credentials.command("create").argument("<providerId>", "Service-account provider to create a credential for").description(describeOperation(V2_OPERATIONS.createServiceAccountCredential, "Create a service-account credential using its discovered provider schema")).requiredOption("--name <displayName>", "Name shown for the credential in Sim (required)").requiredOption("--credentials <json|@file>", "Provider credentials as JSON (or @path / @- to read a file or stdin) (required)").option("--description <description>", "Optional credential description").option("--id <credentialId>", "Client-generated credential ID when provider discovery requires it").action((providerId, options, command) => createServiceAccount(command, providerId, options));
|
|
21730
|
+
const create = credentials.command("create").argument("<providerId>", "Service-account provider to create a credential for").description(describeOperation(V2_OPERATIONS.createServiceAccountCredential, "Create a service-account credential using its discovered provider schema")).requiredOption("--name <displayName>", "Name shown for the credential in Sim (required)").requiredOption("--credentials <json|@file>", "Provider credentials as JSON (or @path / @- to read a file or stdin) (required)").option("--description <description>", "Optional credential description").option("--id <credentialId>", "Client-generated credential ID when provider discovery requires it").action((providerId, options, command) => createServiceAccount(command, providerId, options));
|
|
21731
|
+
callsOperations(create, ["listCredentialProviders", "createServiceAccountCredential"]);
|
|
21732
|
+
runsOperation(create, "createServiceAccountCredential");
|
|
21725
21733
|
credentials.command("connect").argument("<providerId>", "OAuth provider to connect").description(describeOperation(V2_OPERATIONS.createCredentialConnection, "Create a short-lived link for connecting an OAuth provider")).requiredOption("--name <displayName>", "Name shown for the new credential in Sim (required)").action(async (providerId, options, command) => createConnectionLink(command, { providerId, displayName: options.name }));
|
|
21726
21734
|
credentials.command("reconnect").argument("<credentialId>", "Existing OAuth credential to re-authorize").description(describeOperation(V2_OPERATIONS.createCredentialConnection, "Create a short-lived link for reconnecting an OAuth credential")).action((credentialId, _options, command) => createConnectionLink(command, { credentialId }));
|
|
21727
21735
|
}
|
|
@@ -22089,7 +22097,8 @@ async function downloadToOutput(command, operation, pathParams, options) {
|
|
|
22089
22097
|
});
|
|
22090
22098
|
}
|
|
22091
22099
|
function attachFileGet(files) {
|
|
22092
|
-
files.command("get").argument("<fileId>", "File whose content to read").allowExcessArguments(false).description("Download a file’s content to stdout or a local file").option("-o, --output-file <path>", "Write content to a file instead of stdout").option("--force", "Overwrite --output-file if it already exists").action((fileId, options, command) => downloadToOutput(command, V2_OPERATIONS.downloadFile, { fileId }, options));
|
|
22100
|
+
const get = files.command("get").argument("<fileId>", "File whose content to read").allowExcessArguments(false).description("Download a file’s content to stdout or a local file").option("-o, --output-file <path>", "Write content to a file instead of stdout").option("--force", "Overwrite --output-file if it already exists").action((fileId, options, command) => downloadToOutput(command, V2_OPERATIONS.downloadFile, { fileId }, options));
|
|
22101
|
+
callsOperations(get, ["downloadFile"]);
|
|
22093
22102
|
}
|
|
22094
22103
|
function attachFileVersionDownload(versions) {
|
|
22095
22104
|
const download = versions.command("download").argument("<fileId>", "File identifier.").argument("<version>", "Version number.").allowExcessArguments(false).description("Download the content of one version of a file").option("-o, --output-file <path>", "Write content to a file instead of stdout").option("--force", "Overwrite --output-file if it already exists").action((fileId, version, options, command) => downloadToOutput(command, V2_OPERATIONS.downloadFileVersion, { fileId, version }, options));
|
|
@@ -22402,7 +22411,7 @@ function safeBaseName(name) {
|
|
|
22402
22411
|
return base && base !== "." && base !== ".." ? base : null;
|
|
22403
22412
|
}
|
|
22404
22413
|
function attachKnowledgeExport(knowledge) {
|
|
22405
|
-
knowledge.command("export").argument("<knowledgeBaseId>", "Knowledge base to export").allowExcessArguments(false).description("Export a knowledge base as a .simkb.zip bundle").option("-o, --output-file <path>", "Write the bundle to this path instead of the name the server suggests; pass - to stream it to stdout").option("--force", "Overwrite --output-file if it already exists").option("--no-vectors", "Leave chunk vectors out of the bundle, so an import re-embeds every chunk").action(async (knowledgeBaseId, options, command) => {
|
|
22414
|
+
const exportCommand = knowledge.command("export").argument("<knowledgeBaseId>", "Knowledge base to export").allowExcessArguments(false).description("Export a knowledge base as a .simkb.zip bundle").option("-o, --output-file <path>", "Write the bundle to this path instead of the name the server suggests; pass - to stream it to stdout").option("--force", "Overwrite --output-file if it already exists").option("--no-vectors", "Leave chunk vectors out of the bundle, so an import re-embeds every chunk").action(async (knowledgeBaseId, options, command) => {
|
|
22406
22415
|
const writesToStdout = options.outputFile === "-";
|
|
22407
22416
|
if (writesToStdout && options.force) {
|
|
22408
22417
|
throw new SimApiError("--force requires --output-file <path>", 0);
|
|
@@ -22435,6 +22444,7 @@ function attachKnowledgeExport(knowledge) {
|
|
|
22435
22444
|
vectors: options.vectors
|
|
22436
22445
|
});
|
|
22437
22446
|
});
|
|
22447
|
+
callsOperations(exportCommand, ["exportKnowledgeBase"]);
|
|
22438
22448
|
}
|
|
22439
22449
|
|
|
22440
22450
|
// src/commands/protocol/logs-follow.ts
|