@flashbacktech/tsclient 0.4.49 → 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
@@ -1389,6 +1389,54 @@ var PROVIDER_CATALOG = {
1389
1389
  }
1390
1390
  ]
1391
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
+ },
1392
1440
  SSH: {
1393
1441
  id: "SSH",
1394
1442
  displayName: "SSH",
@@ -1750,7 +1798,7 @@ var PROVIDER_CATALOG = {
1750
1798
  ]
1751
1799
  }
1752
1800
  };
1753
- 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"];
1754
1802
  function listProviders() {
1755
1803
  return PROVIDER_ORDER.flatMap((id) => PROVIDER_CATALOG[id] ? [PROVIDER_CATALOG[id]] : []);
1756
1804
  }
@@ -1916,6 +1964,12 @@ function computeDisplayHint(providerId, metadata) {
1916
1964
  const head = shortPrefix(client, 8);
1917
1965
  return head + (sub ? ` / sub:${shortPrefix(sub, 8)}` : "");
1918
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
+ }
1919
1973
  case "SSH": {
1920
1974
  const user = str(metadata["user"]);
1921
1975
  const host = str(metadata["host"]);