@meetopenbot/claude-code 0.1.5 → 0.1.7
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.js +7 -10
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -19407,7 +19407,7 @@ var buildApiKeyWidget = (agentId, threadId, reason) => uiWidget({
|
|
|
19407
19407
|
kind: "form",
|
|
19408
19408
|
widgetId: `claude_code_api_key_request_${Date.now()}`,
|
|
19409
19409
|
title: "Anthropic API Key Required",
|
|
19410
|
-
description: `Claude Code could not authenticate (${reason}). Provide an Anthropic API key to continue. The key is stored as a workspace variable on your machine and never leaves your local runtime.`,
|
|
19410
|
+
description: `Claude Code could not authenticate (${reason}). Provide an Anthropic API key to continue. You can [get your API key from the Anthropic Console](https://console.anthropic.com/settings/keys). The key is stored as a workspace variable on your machine and never leaves your local runtime.`,
|
|
19411
19411
|
fields: [
|
|
19412
19412
|
{
|
|
19413
19413
|
id: "apiKey",
|
|
@@ -19673,11 +19673,6 @@ var claudeCodeRuntime = (options = {}) => (builder) => {
|
|
|
19673
19673
|
const emittedToolCallIds = /* @__PURE__ */ new Set();
|
|
19674
19674
|
const emittedToolResultIds = /* @__PURE__ */ new Set();
|
|
19675
19675
|
const toolTitleByUseId = /* @__PURE__ */ new Map();
|
|
19676
|
-
yield agentOutput({
|
|
19677
|
-
agentId: context.state.agentId,
|
|
19678
|
-
threadId,
|
|
19679
|
-
content: "Claude is starting..."
|
|
19680
|
-
});
|
|
19681
19676
|
for await (const message of QA$({ prompt: userContent, options: sdkOptions })) {
|
|
19682
19677
|
if ("session_id" in message && typeof message.session_id === "string") {
|
|
19683
19678
|
lastSessionId = message.session_id;
|
|
@@ -19685,6 +19680,11 @@ var claudeCodeRuntime = (options = {}) => (builder) => {
|
|
|
19685
19680
|
if (!authWidgetYielded && message.type === "assistant" && (message.error === "authentication_failed" || message.error === "oauth_org_not_allowed")) {
|
|
19686
19681
|
authWidgetYielded = true;
|
|
19687
19682
|
yield buildApiKeyWidget(context.state.agentId, threadId, message.error);
|
|
19683
|
+
yield agentOutput({
|
|
19684
|
+
agentId: context.state.agentId,
|
|
19685
|
+
threadId,
|
|
19686
|
+
content: "Claude needs an API key to continue. Please provide ANTHROPIC_API_KEY as a variable from the workspace settings or inside the widget above."
|
|
19687
|
+
});
|
|
19688
19688
|
return;
|
|
19689
19689
|
}
|
|
19690
19690
|
if (message.type === "assistant") {
|
|
@@ -19715,7 +19715,6 @@ var claudeCodeRuntime = (options = {}) => (builder) => {
|
|
|
19715
19715
|
kind: "message",
|
|
19716
19716
|
widgetId: toolCallWidgetId(tool.toolUseId),
|
|
19717
19717
|
title: toolTitleByUseId.get(tool.toolUseId)?.title ?? "",
|
|
19718
|
-
description: "",
|
|
19719
19718
|
body: formatToolInputBody(tool.input),
|
|
19720
19719
|
display: "collapsed",
|
|
19721
19720
|
metadata: {
|
|
@@ -19762,7 +19761,6 @@ var claudeCodeRuntime = (options = {}) => (builder) => {
|
|
|
19762
19761
|
kind: "message",
|
|
19763
19762
|
widgetId: toolCallWidgetId(res.toolUseId),
|
|
19764
19763
|
title: toolTitleByUseId.get(res.toolUseId)?.title ?? "",
|
|
19765
|
-
description: "",
|
|
19766
19764
|
body: formatToolResultBody(
|
|
19767
19765
|
toolTitleByUseId.get(res.toolUseId)?.input,
|
|
19768
19766
|
body
|
|
@@ -19838,8 +19836,7 @@ ${errorMessage}`
|
|
|
19838
19836
|
kind: "message",
|
|
19839
19837
|
title: "API Key Saved",
|
|
19840
19838
|
body: `Saved ${envVar} as a workspace variable. You can now continue the conversation.`,
|
|
19841
|
-
state: "submitted"
|
|
19842
|
-
actions: [{ id: "ok", label: "Got it", variant: "primary" }]
|
|
19839
|
+
state: "submitted"
|
|
19843
19840
|
}
|
|
19844
19841
|
});
|
|
19845
19842
|
yield agentOutput({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meetopenbot/claude-code",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Claude Code plugin for OpenBot",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@anthropic-ai/claude-agent-sdk": "^0.2.138",
|
|
22
|
-
"@meetopenbot/plugin-sdk": "^0.1.
|
|
22
|
+
"@meetopenbot/plugin-sdk": "^0.1.4"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/node": "^20.10.1",
|
|
26
26
|
"esbuild": "^0.21.0",
|
|
27
27
|
"zod": "^4.3.5"
|
|
28
28
|
}
|
|
29
|
-
}
|
|
29
|
+
}
|