@oxygen-agent/cli 1.274.15 → 1.275.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/README.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1325,6 +1325,8 @@ export function createProgram() {
|
|
|
1325
1325
|
.option("--table-ids <ids>", "Comma-separated table ids to attach.")
|
|
1326
1326
|
.option("--deep-links <urls>", "Comma-separated https://oxygen-agent.com/... links.")
|
|
1327
1327
|
.option("--slack-permalink <url>", "Slack message permalink (https://*.slack.com/...) to attach as context.")
|
|
1328
|
+
.option("--slack-channel-id <id>", "Slack channel id (e.g. C0123ABC456) the report came from.")
|
|
1329
|
+
.option("--customer-workspace <label>", "Customer workspace (org name/slug) a forwarded report concerns.")
|
|
1328
1330
|
.option("--json", "Print a JSON envelope.")
|
|
1329
1331
|
.action(async (options) => {
|
|
1330
1332
|
await handleAsyncAction("support ticket create", options, () => requestOxygen("/api/cli/support/tickets", {
|
|
@@ -1370,6 +1372,32 @@ export function createProgram() {
|
|
|
1370
1372
|
}))
|
|
1371
1373
|
.addCommand(new Command("admin")
|
|
1372
1374
|
.description("Staff-only support triage commands.")
|
|
1375
|
+
.addCommand(new Command("file")
|
|
1376
|
+
.description("File a support ticket into a customer's workspace on their behalf (staff only).")
|
|
1377
|
+
.requiredOption("--organization <organization>", "Target organization id or slug the ticket belongs to.")
|
|
1378
|
+
.requiredOption("--subject <subject>", "One-line summary of the customer's request.")
|
|
1379
|
+
.option("--body <body>", "The customer's request in their words, plus any staff notes.")
|
|
1380
|
+
.option("--severity <severity>", "low | normal | high. Defaults to normal.")
|
|
1381
|
+
.option("--category <category>", "Optional category label, e.g. bug, feature, question.")
|
|
1382
|
+
.option("--source <source>", "Where the ticket originated. Only slack is supported today.")
|
|
1383
|
+
.option("--operation <operation>", "The operation/tool involved, if known.")
|
|
1384
|
+
.option("--error-code <code>", "The error envelope code, if known.")
|
|
1385
|
+
.option("--run-ids <ids>", "Comma-separated run ids to attach.")
|
|
1386
|
+
.option("--table-ids <ids>", "Comma-separated table ids to attach.")
|
|
1387
|
+
.option("--deep-links <urls>", "Comma-separated https://oxygen-agent.com/... links.")
|
|
1388
|
+
.option("--slack-permalink <url>", "Slack message permalink (https://*.slack.com/...) to attach as context.")
|
|
1389
|
+
.option("--slack-channel-id <id>", "Slack channel id (e.g. C0123ABC456) the report came from.")
|
|
1390
|
+
.option("--customer-workspace <label>", "Customer workspace label when --org is not the customer's own org.")
|
|
1391
|
+
.option("--json", "Print a JSON envelope.")
|
|
1392
|
+
.action(async (options) => {
|
|
1393
|
+
await handleAsyncAction("support admin file", options, () => requestOxygen("/api/cli/admin/support/tickets", {
|
|
1394
|
+
method: "POST",
|
|
1395
|
+
body: {
|
|
1396
|
+
...buildSupportTicketBody(options),
|
|
1397
|
+
organization: readOption(options.organization),
|
|
1398
|
+
},
|
|
1399
|
+
}));
|
|
1400
|
+
}))
|
|
1373
1401
|
.addCommand(new Command("list")
|
|
1374
1402
|
.description("List support tickets across all organizations (staff only).")
|
|
1375
1403
|
.option("--status <status>", "Filter by status.")
|
|
@@ -12231,6 +12259,10 @@ function buildSupportTicketBody(options) {
|
|
|
12231
12259
|
context.error_code = readOption(options.errorCode);
|
|
12232
12260
|
if (readOption(options.slackPermalink))
|
|
12233
12261
|
context.slack_permalink = readOption(options.slackPermalink);
|
|
12262
|
+
if (readOption(options.slackChannelId))
|
|
12263
|
+
context.slack_channel_id = readOption(options.slackChannelId);
|
|
12264
|
+
if (readOption(options.customerWorkspace))
|
|
12265
|
+
context.customer_workspace = readOption(options.customerWorkspace);
|
|
12234
12266
|
const runIds = readCsvOption(options.runIds);
|
|
12235
12267
|
const tableIds = readCsvOption(options.tableIds);
|
|
12236
12268
|
const deepLinks = readCsvOption(options.deepLinks);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const OXYGEN_VERSION = "1.
|
|
1
|
+
export declare const OXYGEN_VERSION = "1.275.1";
|
|
2
2
|
export declare const OXYGEN_MINIMUM_CLI_VERSION = "1.181.0";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const OXYGEN_VERSION = "1.
|
|
1
|
+
export const OXYGEN_VERSION = "1.275.1";
|
|
2
2
|
// Bump this only when deployed CLI/API contracts require a newer CLI.
|
|
3
3
|
// 1.181.0: paid table action runs and background columns run require
|
|
4
4
|
// approved=true in addition to max_credits; older CLIs cannot send the flag.
|