@flashbacktech/tsclient 0.4.48 → 0.4.50

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.cjs CHANGED
@@ -359,6 +359,8 @@ function normalize(wire) {
359
359
  name: wire.name,
360
360
  orgId: wire.orgId,
361
361
  default: wire.default ?? false,
362
+ isReferenceProject: wire.isReferenceProject ?? false,
363
+ preferredAiProvider: wire.preferredAiProvider ?? null,
362
364
  users: wire.users ?? []
363
365
  };
364
366
  }
@@ -1387,6 +1389,54 @@ var PROVIDER_CATALOG = {
1387
1389
  }
1388
1390
  ]
1389
1391
  },
1392
+ OCI: {
1393
+ id: "OCI",
1394
+ displayName: "Oracle Cloud Infrastructure",
1395
+ capabilities: CAP_STORAGE,
1396
+ fields: [
1397
+ {
1398
+ path: "metadata.tenancyOcid",
1399
+ label: "Tenancy OCID",
1400
+ type: "text",
1401
+ required: true,
1402
+ placeholder: "ocid1.tenancy.oc1..aaaa\u2026",
1403
+ help: "The tenancy's OCID, from the OCI console (Profile \u2192 Tenancy)."
1404
+ },
1405
+ {
1406
+ path: "metadata.userOcid",
1407
+ label: "User OCID",
1408
+ type: "text",
1409
+ required: true,
1410
+ placeholder: "ocid1.user.oc1..aaaa\u2026",
1411
+ help: "The OCID of the user the API signing key belongs to."
1412
+ },
1413
+ {
1414
+ path: "metadata.fingerprint",
1415
+ label: "Key Fingerprint",
1416
+ type: "text",
1417
+ required: true,
1418
+ placeholder: "aa:bb:cc:dd:\u2026",
1419
+ help: "Fingerprint of the uploaded API signing key (shown next to the key in the console)."
1420
+ },
1421
+ {
1422
+ path: "secret",
1423
+ label: "API Private Key (PEM)",
1424
+ type: "pem",
1425
+ required: true,
1426
+ secret: true,
1427
+ placeholder: "-----BEGIN PRIVATE KEY-----\n\u2026\n-----END PRIVATE KEY-----",
1428
+ help: "Paste the PEM, or drop the .pem file. Passphrase-protected keys are rejected \u2014 the agent runs unattended. Encrypted at rest."
1429
+ },
1430
+ {
1431
+ path: "metadata.region",
1432
+ label: "Region",
1433
+ type: "text",
1434
+ required: false,
1435
+ placeholder: "us-phoenix-1",
1436
+ help: "Default region for the oci CLI / SDK. Optional \u2014 leave blank to use the SDK default."
1437
+ }
1438
+ ]
1439
+ },
1390
1440
  SSH: {
1391
1441
  id: "SSH",
1392
1442
  displayName: "SSH",
@@ -1748,7 +1798,7 @@ var PROVIDER_CATALOG = {
1748
1798
  ]
1749
1799
  }
1750
1800
  };
1751
- var PROVIDER_ORDER = ["AWS", "BEDROCK", "GCP", "AZURE", "SSH", "GITHUB", "GITLAB", "AZURE_DEVOPS", "OPENAI", "ANTHROPIC", "GEMINI", "SLACK", "TEAMS", "PAGERDUTY", "SMTP"];
1801
+ var PROVIDER_ORDER = ["AWS", "BEDROCK", "GCP", "AZURE", "OCI", "SSH", "GITHUB", "GITLAB", "AZURE_DEVOPS", "OPENAI", "ANTHROPIC", "GEMINI", "SLACK", "TEAMS", "PAGERDUTY", "SMTP"];
1752
1802
  function listProviders() {
1753
1803
  return PROVIDER_ORDER.flatMap((id) => PROVIDER_CATALOG[id] ? [PROVIDER_CATALOG[id]] : []);
1754
1804
  }
@@ -1914,6 +1964,12 @@ function computeDisplayHint(providerId, metadata) {
1914
1964
  const head = shortPrefix(client, 8);
1915
1965
  return head + (sub ? ` / sub:${shortPrefix(sub, 8)}` : "");
1916
1966
  }
1967
+ case "OCI": {
1968
+ const tenancy = str(metadata["tenancyOcid"]);
1969
+ const region = str(metadata["region"]);
1970
+ const head = shortPrefix(tenancy, 12);
1971
+ return head + (region ? ` / ${region}` : "");
1972
+ }
1917
1973
  case "SSH": {
1918
1974
  const user = str(metadata["user"]);
1919
1975
  const host = str(metadata["host"]);