sim 2.2.9-preview.207.1 → 2.2.9-preview.209.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.
@@ -9442,6 +9442,11 @@ export type UpdateCredentialBody = {
9442
9442
  authMethod?: string;
9443
9443
  privateKey?: string;
9444
9444
  username?: string;
9445
+ tenancyOcid?: string;
9446
+ userOcid?: string;
9447
+ fingerprint?: string;
9448
+ privateKeyPassphrase?: string;
9449
+ region?: string;
9445
9450
  };
9446
9451
  type UpdateCredentialResponseRef0 = {
9447
9452
  id: string;
@@ -18137,7 +18142,7 @@ export declare const V2_OPERATIONS: {
18137
18142
  };
18138
18143
  readonly serviceAccountJson: {
18139
18144
  readonly kind: 'string';
18140
- readonly describe: 'Write-only Google service-account JSON key.';
18145
+ readonly describe: 'Write-only provider service-account JSON configuration, including Oracle Database connection fields.';
18141
18146
  };
18142
18147
  readonly apiToken: {
18143
18148
  readonly kind: 'string';
@@ -18196,6 +18201,26 @@ export declare const V2_OPERATIONS: {
18196
18201
  readonly kind: 'string';
18197
18202
  readonly describe: 'Provider run-as username.';
18198
18203
  };
18204
+ readonly tenancyOcid: {
18205
+ readonly kind: 'string';
18206
+ readonly describe: 'OCI tenancy OCID.';
18207
+ };
18208
+ readonly userOcid: {
18209
+ readonly kind: 'string';
18210
+ readonly describe: 'OCI user OCID.';
18211
+ };
18212
+ readonly fingerprint: {
18213
+ readonly kind: 'string';
18214
+ readonly describe: 'OCI API-key fingerprint.';
18215
+ };
18216
+ readonly privateKeyPassphrase: {
18217
+ readonly kind: 'string';
18218
+ readonly describe: 'Write-only OCI private-key passphrase.';
18219
+ };
18220
+ readonly region: {
18221
+ readonly kind: 'string';
18222
+ readonly describe: 'OCI home region.';
18223
+ };
18199
18224
  };
18200
18225
  };
18201
18226
  readonly updateCustomTool: {
package/dist/index.js CHANGED
@@ -16512,7 +16512,7 @@ var V2_OPERATIONS = {
16512
16512
  },
16513
16513
  serviceAccountJson: {
16514
16514
  kind: "string",
16515
- describe: "Write-only Google service-account JSON key."
16515
+ describe: "Write-only provider service-account JSON configuration, including Oracle Database connection fields."
16516
16516
  },
16517
16517
  apiToken: { kind: "string", describe: "Write-only provider API token." },
16518
16518
  domain: { kind: "string", describe: "Provider account domain." },
@@ -16534,7 +16534,12 @@ var V2_OPERATIONS = {
16534
16534
  },
16535
16535
  authMethod: { kind: "string", describe: "Provider authentication method." },
16536
16536
  privateKey: { kind: "string", describe: "Write-only PEM private key." },
16537
- username: { kind: "string", describe: "Provider run-as username." }
16537
+ username: { kind: "string", describe: "Provider run-as username." },
16538
+ tenancyOcid: { kind: "string", describe: "OCI tenancy OCID." },
16539
+ userOcid: { kind: "string", describe: "OCI user OCID." },
16540
+ fingerprint: { kind: "string", describe: "OCI API-key fingerprint." },
16541
+ privateKeyPassphrase: { kind: "string", describe: "Write-only OCI private-key passphrase." },
16542
+ region: { kind: "string", describe: "OCI home region." }
16538
16543
  }
16539
16544
  },
16540
16545
  updateCustomTool: {
@@ -17323,6 +17328,13 @@ var V2_OPERATIONS = {
17323
17328
  }
17324
17329
  };
17325
17330
 
17331
+ // src/runtime/called-operations.ts
17332
+ var CALLED_OPERATIONS = new WeakMap;
17333
+ function callsOperations(command, operations) {
17334
+ CALLED_OPERATIONS.set(command, operations);
17335
+ return command;
17336
+ }
17337
+
17326
17338
  // src/commands/auth.ts
17327
17339
  var MAX_INTERACTIVE_WORKSPACES = 1000;
17328
17340
  function openBrowser(url) {
@@ -17843,7 +17855,7 @@ function presentVerification(verification) {
17843
17855
  }
17844
17856
  }
17845
17857
  function whoamiCommand() {
17846
- return new Command("whoami").description("Show the resolved profile, where each setting came from, and whether it works").option("--no-verify", "Skip the API check and only print the resolved settings").action(async (options, command) => {
17858
+ const whoami = new Command("whoami").description("Show the resolved profile, where each setting came from, and whether it works").option("--no-verify", "Skip the API check and only print the resolved settings").action(async (options, command) => {
17847
17859
  const { client, profile } = clientFrom(command);
17848
17860
  const { sources } = profile;
17849
17861
  const authentication = presentAuthentication(sources.credential);
@@ -17892,6 +17904,7 @@ function whoamiCommand() {
17892
17904
  if (exitCode !== 0)
17893
17905
  setSoftExitCode(exitCode);
17894
17906
  });
17907
+ return callsOperations(whoami, ["getMeta", "getWorkspace"]);
17895
17908
  }
17896
17909
  var PROFILE_COLUMNS = [
17897
17910
  { header: "", value: (row) => row.active ? styles3().green("*") : " " },
@@ -21742,7 +21755,7 @@ function ignoreBrokenPipe(stream) {
21742
21755
  };
21743
21756
  }
21744
21757
  function attachChat(program) {
21745
- program.command("chat").description("Ask Sim and print the reply").argument("<message>", "What to ask Sim").allowExcessArguments(false).option("-c, --conversation <id>", "Continue the conversation with this ID").addHelpText("after", `
21758
+ const chat = program.command("chat").description("Ask Sim and print the reply").argument("<message>", "What to ask Sim").allowExcessArguments(false).option("-c, --conversation <id>", "Continue the conversation with this ID").addHelpText("after", `
21746
21759
  Each turn prints the reply on stdout and the conversation ID on stderr; pass
21747
21760
  that ID back with -c to continue the same conversation. With --output json or
21748
21761
  yaml the reply is not streamed — the finished result is printed as one
@@ -21808,6 +21821,7 @@ Examples:
21808
21821
  restorePipeHandling?.();
21809
21822
  }
21810
21823
  });
21824
+ callsOperations(chat, ["chat"]);
21811
21825
  }
21812
21826
 
21813
21827
  // src/commands/protocol/files-get.ts
@@ -22024,7 +22038,8 @@ function attachFileGet(files) {
22024
22038
  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));
22025
22039
  }
22026
22040
  function attachFileVersionDownload(versions) {
22027
- 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));
22041
+ 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));
22042
+ callsOperations(download, ["downloadFileVersion"]);
22028
22043
  }
22029
22044
 
22030
22045
  // src/transfer/upload-session.ts
@@ -0,0 +1,11 @@
1
+ import type { Command } from 'commander';
2
+ import type { V2OperationName } from '../generated/v2-api';
3
+ /**
4
+ * Records the v2 operations a hand-written command calls.
5
+ *
6
+ * A generated command is one operation and the command inventory finds it by path. A
7
+ * hand-written one is opaque until it says what it calls, and the inventory needs that
8
+ * to describe it truthfully, such as whether every call is open to a Mothership caller.
9
+ */
10
+ export declare function callsOperations(command: Command, operations: readonly V2OperationName[]): Command;
11
+ export declare function calledOperations(command: Command): readonly V2OperationName[] | undefined;
package/dist/runtime.js CHANGED
@@ -16561,7 +16561,7 @@ var V2_OPERATIONS = {
16561
16561
  },
16562
16562
  serviceAccountJson: {
16563
16563
  kind: "string",
16564
- describe: "Write-only Google service-account JSON key."
16564
+ describe: "Write-only provider service-account JSON configuration, including Oracle Database connection fields."
16565
16565
  },
16566
16566
  apiToken: { kind: "string", describe: "Write-only provider API token." },
16567
16567
  domain: { kind: "string", describe: "Provider account domain." },
@@ -16583,7 +16583,12 @@ var V2_OPERATIONS = {
16583
16583
  },
16584
16584
  authMethod: { kind: "string", describe: "Provider authentication method." },
16585
16585
  privateKey: { kind: "string", describe: "Write-only PEM private key." },
16586
- username: { kind: "string", describe: "Provider run-as username." }
16586
+ username: { kind: "string", describe: "Provider run-as username." },
16587
+ tenancyOcid: { kind: "string", describe: "OCI tenancy OCID." },
16588
+ userOcid: { kind: "string", describe: "OCI user OCID." },
16589
+ fingerprint: { kind: "string", describe: "OCI API-key fingerprint." },
16590
+ privateKeyPassphrase: { kind: "string", describe: "Write-only OCI private-key passphrase." },
16591
+ region: { kind: "string", describe: "OCI home region." }
16587
16592
  }
16588
16593
  },
16589
16594
  updateCustomTool: {
@@ -17372,6 +17377,13 @@ var V2_OPERATIONS = {
17372
17377
  }
17373
17378
  };
17374
17379
 
17380
+ // src/runtime/called-operations.ts
17381
+ var CALLED_OPERATIONS = new WeakMap;
17382
+ function callsOperations(command, operations) {
17383
+ CALLED_OPERATIONS.set(command, operations);
17384
+ return command;
17385
+ }
17386
+
17375
17387
  // src/commands/auth.ts
17376
17388
  var MAX_INTERACTIVE_WORKSPACES = 1000;
17377
17389
  function openBrowser(url) {
@@ -17892,7 +17904,7 @@ function presentVerification(verification) {
17892
17904
  }
17893
17905
  }
17894
17906
  function whoamiCommand() {
17895
- return new Command("whoami").description("Show the resolved profile, where each setting came from, and whether it works").option("--no-verify", "Skip the API check and only print the resolved settings").action(async (options, command) => {
17907
+ const whoami = new Command("whoami").description("Show the resolved profile, where each setting came from, and whether it works").option("--no-verify", "Skip the API check and only print the resolved settings").action(async (options, command) => {
17896
17908
  const { client, profile } = clientFrom(command);
17897
17909
  const { sources } = profile;
17898
17910
  const authentication = presentAuthentication(sources.credential);
@@ -17941,6 +17953,7 @@ function whoamiCommand() {
17941
17953
  if (exitCode !== 0)
17942
17954
  setSoftExitCode(exitCode);
17943
17955
  });
17956
+ return callsOperations(whoami, ["getMeta", "getWorkspace"]);
17944
17957
  }
17945
17958
  var PROFILE_COLUMNS = [
17946
17959
  { header: "", value: (row) => row.active ? styles3().green("*") : " " },
@@ -21791,7 +21804,7 @@ function ignoreBrokenPipe(stream) {
21791
21804
  };
21792
21805
  }
21793
21806
  function attachChat(program) {
21794
- program.command("chat").description("Ask Sim and print the reply").argument("<message>", "What to ask Sim").allowExcessArguments(false).option("-c, --conversation <id>", "Continue the conversation with this ID").addHelpText("after", `
21807
+ const chat = program.command("chat").description("Ask Sim and print the reply").argument("<message>", "What to ask Sim").allowExcessArguments(false).option("-c, --conversation <id>", "Continue the conversation with this ID").addHelpText("after", `
21795
21808
  Each turn prints the reply on stdout and the conversation ID on stderr; pass
21796
21809
  that ID back with -c to continue the same conversation. With --output json or
21797
21810
  yaml the reply is not streamed — the finished result is printed as one
@@ -21857,6 +21870,7 @@ Examples:
21857
21870
  restorePipeHandling?.();
21858
21871
  }
21859
21872
  });
21873
+ callsOperations(chat, ["chat"]);
21860
21874
  }
21861
21875
 
21862
21876
  // src/commands/protocol/files-get.ts
@@ -22073,7 +22087,8 @@ function attachFileGet(files) {
22073
22087
  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));
22074
22088
  }
22075
22089
  function attachFileVersionDownload(versions) {
22076
- 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));
22090
+ 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));
22091
+ callsOperations(download, ["downloadFileVersion"]);
22077
22092
  }
22078
22093
 
22079
22094
  // src/transfer/upload-session.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sim",
3
- "version": "2.2.9-preview.207.1",
3
+ "version": "2.2.9-preview.209.1",
4
4
  "description": "Sim CLI - talk to the Sim API from your terminal",
5
5
  "type": "module",
6
6
  "imports": {