@sandbaseai/cli 0.1.12 → 0.1.13
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/catalog.d.ts +2 -2
- package/dist/catalog.js +1 -1
- package/dist/clients.js +6 -5
- package/dist/commands.js +33 -3
- package/package.json +1 -1
package/dist/catalog.d.ts
CHANGED
|
@@ -171,8 +171,8 @@ export declare const clientCatalog: readonly [{
|
|
|
171
171
|
readonly label: "ChatGPT";
|
|
172
172
|
readonly delivery: "remote_workspace";
|
|
173
173
|
readonly autoEligible: false;
|
|
174
|
-
readonly localAuthorization:
|
|
175
|
-
readonly installScriptEligible:
|
|
174
|
+
readonly localAuthorization: true;
|
|
175
|
+
readonly installScriptEligible: true;
|
|
176
176
|
}];
|
|
177
177
|
export type ClientCatalogEntry = (typeof clientCatalog)[number];
|
|
178
178
|
export type CatalogClient = ClientCatalogEntry["id"];
|
package/dist/catalog.js
CHANGED
|
@@ -23,7 +23,7 @@ export const clientCatalog = [
|
|
|
23
23
|
{ id: "pi", label: "Pi", delivery: "prompt", autoEligible: false, localAuthorization: true, installScriptEligible: true },
|
|
24
24
|
{ id: "claude-desktop", label: "Claude Desktop", delivery: "desktop_import", autoEligible: false, localAuthorization: true, installScriptEligible: true },
|
|
25
25
|
{ id: "cowork", label: "Cowork", delivery: "desktop_import", autoEligible: false, localAuthorization: true, installScriptEligible: true },
|
|
26
|
-
{ id: "chatgpt", label: "ChatGPT", delivery: "remote_workspace", autoEligible: false, localAuthorization:
|
|
26
|
+
{ id: "chatgpt", label: "ChatGPT", delivery: "remote_workspace", autoEligible: false, localAuthorization: true, installScriptEligible: true },
|
|
27
27
|
];
|
|
28
28
|
export function stableCatalog() {
|
|
29
29
|
return JSON.stringify({ schemaVersion: 1, clients: clientCatalog }, null, 2) + "\n";
|
package/dist/clients.js
CHANGED
|
@@ -41,7 +41,7 @@ export const nativeCapabilities = {
|
|
|
41
41
|
"qwen-code": { mcpMode: "auto", skillMode: "none", invocation: "mcp_chat", verification: "read_only_probe", guide: guide("Qwen Code", "Restart Qwen Code, open /mcp, and inspect SandBase settings/tools.", "The user-scope SandBase server is present in /mcp and settings readback."), uninstall: "managed_only", terminal: "action_required" },
|
|
42
42
|
windsurf: { mcpMode: "auto", skillMode: "none", invocation: "desktop_ui", verification: "read_only_probe", guide: guide("Windsurf", "Restart Windsurf and inspect Cascade MCP Servers.", "The SandBase remote server and tools are visible."), uninstall: "managed_only", terminal: "action_required" },
|
|
43
43
|
opencode: { mcpMode: "auto", skillMode: "none", invocation: "mcp_chat", verification: "read_only_probe", guide: guide("OpenCode", "Restart OpenCode and inspect its MCP server list.", "opencode2 mcp list reads back SandBase."), uninstall: "managed_only", terminal: "action_required" },
|
|
44
|
-
chatgpt: { mcpMode: "manual", skillMode: "none", invocation: "
|
|
44
|
+
chatgpt: { mcpMode: "manual", skillMode: "none", invocation: "desktop_ui", verification: "user_action", guide: guide("ChatGPT", "After SandBase authorization and local bridge preparation, use an eligible Business, Enterprise, or Edu workspace: enable Developer Mode, create the SandBase App, Scan Tools, and have an administrator publish it.", "In a fresh ChatGPT conversation, read back the published SandBase tools and complete one safe call; this CLI never writes ChatGPT configuration."), uninstall: "managed_only", terminal: "action_required" },
|
|
45
45
|
warp: { mcpMode: "auto", skillMode: "none", invocation: "desktop_ui", verification: "read_only_probe", guide: guide("Warp", "Approve the managed server with /agent-add-mcp, then inspect Warp's MCP server and tool readback.", "The owned user entry is present and Warp lists SandBase tools without a project override."), uninstall: "managed_only", terminal: "action_required" },
|
|
46
46
|
trae: { mcpMode: "none", skillMode: "prompt", invocation: "prompt", verification: "user_action", guide: guide("Trae", "Paste a SandBase MCP usage prompt into the client after configuring its supported integration.", "The client confirms the prompt or tool availability."), uninstall: "managed_only", terminal: "action_required" },
|
|
47
47
|
"kimi-cli": { mcpMode: "auto", skillMode: "none", invocation: "mcp_chat", verification: "read_only_probe", guide: guide("Kimi CLI", "Restart Kimi and inspect its persistent MCP list/test output.", "kimi mcp list/test read back SandBase tools."), uninstall: "managed_only", terminal: "action_required" },
|
|
@@ -78,14 +78,15 @@ function v2(client, capability) {
|
|
|
78
78
|
crush: { source: "https://github.com/charmbracelet/crush/blob/main/schema.json", retrieved: "2026-07-30", conclusion: "Crush supports a global top-level mcp stdio schema with project precedence; SandBase writes only static argv and never shell expansion.", kind: "first_party" },
|
|
79
79
|
"iflow-cli": { source: "https://github.com/iflow-ai/iflow-cli/blob/main/docs_en/examples/mcp.md", retrieved: "2026-07-30", conclusion: "The discontinued iFlow CLI exposes user-scope add-json/get/list/remove for existing legacy installations; vendor maintenance and service availability are not claimed.", kind: "first_party" },
|
|
80
80
|
warp: { source: "https://docs.warp.dev/agent-platform/capabilities/mcp/", retrieved: "2026-07-30", conclusion: "Warp supports user-level ~/.warp/.mcp.json command servers and explicit /agent-add-mcp approval/readback.", kind: "first_party" },
|
|
81
|
+
chatgpt: { source: "https://platform.openai.com/docs/mcp", retrieved: "2026-07-31", conclusion: "ChatGPT remote Apps require product-side Developer Mode, app creation, tool scanning, publication, and verification; SandBase CLI only prepares its owned credential and bridge.", kind: "first_party" },
|
|
81
82
|
antigravity: { source: "B-082 feature design r1", retrieved: "2026-07-30", conclusion: "Prompt-assisted authorization prepares an isolated local bridge without guessing private client schema.", kind: "first_party" },
|
|
82
83
|
trae: { source: "B-082 feature design r1", retrieved: "2026-07-30", conclusion: "Prompt-assisted authorization prepares an isolated local bridge without guessing private client schema.", kind: "first_party" },
|
|
83
84
|
qoder: { source: "B-082 feature design r1", retrieved: "2026-07-30", conclusion: "Prompt-assisted authorization prepares an isolated local bridge without guessing private client schema.", kind: "first_party" },
|
|
84
85
|
workbuddy: { source: "B-082 feature design r1", retrieved: "2026-07-30", conclusion: "Prompt-assisted authorization prepares an isolated local bridge without guessing private client schema.", kind: "first_party" },
|
|
85
86
|
pi: { source: "B-082 feature design r1", retrieved: "2026-07-30", conclusion: "Prompt-assisted authorization prepares an isolated local bridge without guessing private client schema.", kind: "first_party" },
|
|
86
87
|
};
|
|
87
|
-
const implemented =
|
|
88
|
-
const blocker =
|
|
88
|
+
const implemented = true;
|
|
89
|
+
const blocker = "This client batch has no completed installer and validator in the current iteration.";
|
|
89
90
|
if (!implemented)
|
|
90
91
|
return {
|
|
91
92
|
evidence: { source: "docs/design/features/REQ-20260728-e4a8c1b9d2f0-all-agent-native-capabilities/design.md#2.1", retrieved: "2026-07-29", conclusion: blocker, kind: "internal_blocker" },
|
|
@@ -96,8 +97,8 @@ function v2(client, capability) {
|
|
|
96
97
|
const skillInstaller = !hasSkill ? "none" : desktop ? "confirmation" : client === "claude-code" || client === "hermes" ? "private" : "shared";
|
|
97
98
|
const skillValidator = !hasSkill ? "none" : desktop || client === "cursor" || client === "claude-code" || client === "hermes" || client === "openclaw" ? "real_client_matrix" : "ownership_checksum";
|
|
98
99
|
return {
|
|
99
|
-
evidence: evidence[client], installer: { mcp: desktop ? "confirmation" : "adapter", skill: skillInstaller },
|
|
100
|
-
validator: { mcp: "read_back", skill: skillValidator }, implementation: "implemented", status: "confirmation_required",
|
|
100
|
+
evidence: evidence[client], installer: { mcp: desktop || client === "chatgpt" ? "confirmation" : "adapter", skill: skillInstaller },
|
|
101
|
+
validator: { mcp: client === "chatgpt" ? "confirmation" : "read_back", skill: skillValidator }, implementation: "implemented", status: "confirmation_required",
|
|
101
102
|
nextStep: capability.guide,
|
|
102
103
|
};
|
|
103
104
|
}
|
package/dist/commands.js
CHANGED
|
@@ -232,6 +232,29 @@ async function connectPromptAssisted(client, deps) {
|
|
|
232
232
|
throw error;
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
|
+
async function connectChatGPT(deps) {
|
|
236
|
+
const api = deps.api || new AuthorizationApi((process.env.SANDBASE_API_URL || "https://sandbase.ai").replace(/\/$/, ""));
|
|
237
|
+
const store = deps.store || new FileCredentialStore();
|
|
238
|
+
const log = deps.log || console.log;
|
|
239
|
+
const previous = await store.get("chatgpt");
|
|
240
|
+
const { authorizationId, exchange } = await authorize(api, "chatgpt", { open: deps.open || openBrowser, sleep, log, ...(deps.signal ? { signal: deps.signal } : {}) });
|
|
241
|
+
let bridgeResult;
|
|
242
|
+
try {
|
|
243
|
+
await store.save(recordFor("chatgpt", exchange));
|
|
244
|
+
bridgeResult = await installBridge();
|
|
245
|
+
log("chatgpt: status=action_required, authorization=completed, credential=stored, bridge=ready, chatgpt_app=not_configured, verification=not_verified, next_step=Use an eligible ChatGPT Business, Enterprise, or Edu workspace. Enable Developer Mode, open Apps and choose Create, register the SandBase remote MCP endpoint using the approved authentication method, run Scan Tools, have a workspace administrator review and publish the App, then start a fresh conversation and complete one safe SandBase tool call. The CLI did not write or change any ChatGPT configuration.");
|
|
246
|
+
exchange.cleanup_token = "";
|
|
247
|
+
}
|
|
248
|
+
catch (error) {
|
|
249
|
+
if (bridgeResult)
|
|
250
|
+
await rollbackBridge(bridgeResult).catch(() => undefined);
|
|
251
|
+
await restoreCredential(store, "chatgpt", previous).catch(() => undefined);
|
|
252
|
+
if (!(await compensate(api, authorizationId, exchange.cleanup_token)))
|
|
253
|
+
console.error("WARNING: automatic credential cleanup failed. Revoke the new CLI credential in SandBase Dashboard immediately.");
|
|
254
|
+
exchange.cleanup_token = "";
|
|
255
|
+
throw error;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
235
258
|
async function connectOne(client, deps) {
|
|
236
259
|
const api = deps.api || new AuthorizationApi((process.env.SANDBASE_API_URL || "https://sandbase.ai").replace(/\/$/, ""));
|
|
237
260
|
const store = deps.store || new FileCredentialStore();
|
|
@@ -241,7 +264,7 @@ async function connectOne(client, deps) {
|
|
|
241
264
|
const capability = nativeCapabilities[client];
|
|
242
265
|
const v2 = capabilityRegistry[client];
|
|
243
266
|
if (client === "chatgpt") {
|
|
244
|
-
|
|
267
|
+
await connectChatGPT(deps);
|
|
245
268
|
return;
|
|
246
269
|
}
|
|
247
270
|
await assertSharedSlotAvailable(client);
|
|
@@ -596,7 +619,9 @@ export async function doctor(client = "auto", store = new FileCredentialStore(),
|
|
|
596
619
|
let healthy = true;
|
|
597
620
|
for (const target of targets) {
|
|
598
621
|
if (target === "chatgpt") {
|
|
599
|
-
|
|
622
|
+
const [credential, bridge] = await Promise.all([store.get("chatgpt"), inspectBridge()]);
|
|
623
|
+
const ready = !!credential && validOwnedCredential("chatgpt", credential) && bridge === "ready";
|
|
624
|
+
console.log(`chatgpt: status=${ready ? "action_required" : "failed"}, authorization=${ready ? "completed" : "required"}, credential=${ready ? "present" : credential ? "invalid" : "missing"}, bridge=${bridge}, chatgpt_app=not_observable, verification=not_verified, next_step=${ready ? nativeCapabilities.chatgpt.guide : "Run sandbase connect --client chatgpt again to prepare the SandBase-owned credential and bridge. No ChatGPT configuration was changed."}`);
|
|
600
625
|
healthy = false;
|
|
601
626
|
continue;
|
|
602
627
|
}
|
|
@@ -703,7 +728,12 @@ export async function unregister(client = "auto", store = new FileCredentialStor
|
|
|
703
728
|
}
|
|
704
729
|
for (const target of targets) {
|
|
705
730
|
if (target === "chatgpt") {
|
|
706
|
-
|
|
731
|
+
const credential = await store.get("chatgpt");
|
|
732
|
+
if (credential && !validOwnedCredential("chatgpt", credential))
|
|
733
|
+
throw new Error("chatgpt credential ownership is unrecognized; no changes were made");
|
|
734
|
+
if (credential)
|
|
735
|
+
await store.remove("chatgpt");
|
|
736
|
+
console.log(`chatgpt: status=${credential ? "removed" : "missing"}, bridge=retained, third_party_config=preserved, next_step=Only the SandBase-owned local ChatGPT credential was removed. The shared bridge and every ChatGPT App/workspace setting were left untouched; ask a workspace administrator to unpublish or remove the App separately if required.`);
|
|
707
737
|
continue;
|
|
708
738
|
}
|
|
709
739
|
if (isPromptAssistedClient(target)) {
|