@super-one/cli 0.50.2-alpha → 0.50.3-alpha
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/MANIFEST.json +2 -2
- package/lib/cli.mjs +37 -13
- package/package.json +1 -1
package/MANIFEST.json
CHANGED
package/lib/cli.mjs
CHANGED
|
@@ -372,7 +372,7 @@ var init_host_action_superone_descriptors = __esm({
|
|
|
372
372
|
},
|
|
373
373
|
{
|
|
374
374
|
"name": "read_manual",
|
|
375
|
-
"description": "Read bundled SuperOne manuals. Omit domain to list all domains; pass domain to list its topics; pass domain with topic to read one topic. For widget, pass either topic or modules, never both. Use product/debug for support and runtime paths, miniapp/overview before mini-app development, and media/overview before provider-specific options. Use config_read for live settings and widget_list_templates for saved widgets.",
|
|
375
|
+
"description": "Read bundled SuperOne manuals. Omit domain to list all domains; pass domain to list its topics; pass domain with topic to read one topic. For widget, pass either topic or modules, never both. Use product/contribute for GitHub issues and PRs (issue-first, optional red\u2013green), product/debug for support and runtime paths, miniapp/overview before mini-app development, and media/overview before provider-specific options. Use config_read for live settings and widget_list_templates for saved widgets.",
|
|
376
376
|
"inputSchema": {
|
|
377
377
|
"type": "object",
|
|
378
378
|
"properties": {
|
|
@@ -18260,6 +18260,26 @@ function consumerForHarness(harness) {
|
|
|
18260
18260
|
if (harness === "codex") return "chat:codex";
|
|
18261
18261
|
return null;
|
|
18262
18262
|
}
|
|
18263
|
+
function listHarnessApiProviders(store, harness) {
|
|
18264
|
+
const consumer = consumerForHarness(harness);
|
|
18265
|
+
if (!consumer) return [];
|
|
18266
|
+
const platforms = platformsForNode(store);
|
|
18267
|
+
const out = [];
|
|
18268
|
+
for (const cred of store.listCredentials()) {
|
|
18269
|
+
const platform2 = findPlatform(platforms, cred.platformId);
|
|
18270
|
+
const plan = findPlan(platform2, cred.planId);
|
|
18271
|
+
if (!platform2 || !plan) continue;
|
|
18272
|
+
const endpoints = effectiveEndpoints(platform2, plan, cred);
|
|
18273
|
+
if (!selectEndpoint(plan, consumer, void 0, cred, endpoints)) continue;
|
|
18274
|
+
out.push({
|
|
18275
|
+
id: cred.id,
|
|
18276
|
+
name: platform2.name ?? cred.name,
|
|
18277
|
+
...platform2.brand ? { brand: platform2.brand } : {},
|
|
18278
|
+
...cred.name ? { keyName: cred.name } : {}
|
|
18279
|
+
});
|
|
18280
|
+
}
|
|
18281
|
+
return out;
|
|
18282
|
+
}
|
|
18263
18283
|
function buildHarnessEnv(harness, resolved) {
|
|
18264
18284
|
if (!resolved) return {};
|
|
18265
18285
|
const env = { ...resolved.extraEnv ?? {} };
|
|
@@ -40947,6 +40967,7 @@ function createXaiCorrelationState() {
|
|
|
40947
40967
|
workflowToolByRunId: /* @__PURE__ */ new Map(),
|
|
40948
40968
|
workflowRevision: /* @__PURE__ */ new Map(),
|
|
40949
40969
|
workflowStarted: /* @__PURE__ */ new Set(),
|
|
40970
|
+
workflowOwnedSubagents: /* @__PURE__ */ new Set(),
|
|
40950
40971
|
subagentToolById: /* @__PURE__ */ new Map(),
|
|
40951
40972
|
subagentStarted: /* @__PURE__ */ new Set(),
|
|
40952
40973
|
bgTaskById: /* @__PURE__ */ new Map(),
|
|
@@ -41237,15 +41258,16 @@ function mapWorkflowUpdated(u, state) {
|
|
|
41237
41258
|
}
|
|
41238
41259
|
if (WORKFLOW_TERMINAL.has(status)) {
|
|
41239
41260
|
const taskStatus = status === "complete" || status === "completed" ? "completed" : status === "cancelled" || status === "canceled" ? "stopped" : "failed";
|
|
41261
|
+
const resultText = resultSummary || pauseMessage || lastEventDetail || void 0;
|
|
41240
41262
|
events.push({
|
|
41241
41263
|
type: "task_notification",
|
|
41242
41264
|
taskId: runId,
|
|
41243
41265
|
...toolUseId ? { toolUseId } : {},
|
|
41244
41266
|
taskStatus,
|
|
41245
41267
|
outputFile: "",
|
|
41246
|
-
summary: phaseLine ||
|
|
41268
|
+
summary: resultSummary || phaseLine || pauseMessage || status,
|
|
41247
41269
|
usage: usage2,
|
|
41248
|
-
...
|
|
41270
|
+
...resultText ? { resultText } : {},
|
|
41249
41271
|
...phaseFields
|
|
41250
41272
|
});
|
|
41251
41273
|
return events;
|
|
@@ -41255,9 +41277,9 @@ function mapWorkflowUpdated(u, state) {
|
|
|
41255
41277
|
taskId: runId,
|
|
41256
41278
|
...toolUseId ? { toolUseId } : {},
|
|
41257
41279
|
description,
|
|
41258
|
-
summary: phaseLine || status,
|
|
41280
|
+
summary: phaseLine || pauseMessage || status,
|
|
41259
41281
|
usage: usage2,
|
|
41260
|
-
...lastEventDetail || lastEvent ? { activityText: lastEventDetail ?? lastEvent } : {},
|
|
41282
|
+
...lastEventDetail || lastEvent || pauseMessage ? { activityText: pauseMessage ?? lastEventDetail ?? lastEvent } : {},
|
|
41261
41283
|
...phaseFields
|
|
41262
41284
|
});
|
|
41263
41285
|
return events;
|
|
@@ -41327,16 +41349,16 @@ function mapSubagentSpawned(u, state) {
|
|
|
41327
41349
|
state.subagentStarted.add(id);
|
|
41328
41350
|
const description = strField(u, "description") ?? id;
|
|
41329
41351
|
const subagentType = strField(u, "subagent_type", "subagentType");
|
|
41330
|
-
const toolUseId = state.subagentToolById.get(id);
|
|
41331
41352
|
const workflowRunId = strField(u, "workflow_run_id", "workflowRunId");
|
|
41332
|
-
if (workflowRunId
|
|
41333
|
-
|
|
41334
|
-
|
|
41353
|
+
if (workflowRunId) {
|
|
41354
|
+
state.workflowOwnedSubagents.add(id);
|
|
41355
|
+
state.subagentToolById.delete(id);
|
|
41335
41356
|
}
|
|
41357
|
+
const toolUseId = workflowRunId ? void 0 : state.subagentToolById.get(id);
|
|
41336
41358
|
return [{
|
|
41337
41359
|
type: "task_started",
|
|
41338
41360
|
taskId: id,
|
|
41339
|
-
...
|
|
41361
|
+
...toolUseId ? { toolUseId } : {},
|
|
41340
41362
|
description,
|
|
41341
41363
|
...subagentType ? { taskType: subagentType } : {}
|
|
41342
41364
|
}];
|
|
@@ -41344,6 +41366,7 @@ function mapSubagentSpawned(u, state) {
|
|
|
41344
41366
|
function mapSubagentProgress(u, state) {
|
|
41345
41367
|
const id = strField(u, "subagent_id", "subagentId");
|
|
41346
41368
|
if (!id) return [];
|
|
41369
|
+
if (state.workflowOwnedSubagents.has(id)) return [];
|
|
41347
41370
|
const events = [];
|
|
41348
41371
|
if (!state.subagentStarted.has(id)) {
|
|
41349
41372
|
state.subagentStarted.add(id);
|
|
@@ -41373,6 +41396,7 @@ function mapSubagentProgress(u, state) {
|
|
|
41373
41396
|
function mapSubagentFinished(u, state) {
|
|
41374
41397
|
const id = strField(u, "subagent_id", "subagentId");
|
|
41375
41398
|
if (!id) return [];
|
|
41399
|
+
if (state.workflowOwnedSubagents.has(id)) return [];
|
|
41376
41400
|
const status = (strField(u, "status") ?? "completed").toLowerCase();
|
|
41377
41401
|
const taskStatus = status === "completed" || status === "complete" ? "completed" : status === "cancelled" || status === "canceled" ? "stopped" : "failed";
|
|
41378
41402
|
const toolUseId = state.subagentToolById.get(id);
|
|
@@ -57155,8 +57179,8 @@ import { fileURLToPath } from "node:url";
|
|
|
57155
57179
|
function resolveCliReleaseVersion() {
|
|
57156
57180
|
const fromEnv = process.env.SUPERONE_CLI_VERSION?.trim();
|
|
57157
57181
|
if (fromEnv) return fromEnv;
|
|
57158
|
-
if ("0.50.
|
|
57159
|
-
return "0.50.
|
|
57182
|
+
if ("0.50.3-alpha".trim()) {
|
|
57183
|
+
return "0.50.3-alpha".trim();
|
|
57160
57184
|
}
|
|
57161
57185
|
const fromDist = readDistManifestVersion();
|
|
57162
57186
|
if (fromDist) return fromDist;
|
|
@@ -65643,7 +65667,7 @@ var CollaborationService = class {
|
|
|
65643
65667
|
},
|
|
65644
65668
|
models: models.length > 0 ? models : [{ id: "default", name: "Default" }],
|
|
65645
65669
|
efforts: [...efforts],
|
|
65646
|
-
apiProviders:
|
|
65670
|
+
apiProviders: listHarnessApiProviders(providers, harnessId)
|
|
65647
65671
|
});
|
|
65648
65672
|
};
|
|
65649
65673
|
if (sessionProviders) {
|
package/package.json
CHANGED