@meetopenbot/claude-code 0.1.5 → 0.1.6
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 +9 -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,9 +19715,9 @@ 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",
|
|
19720
|
+
variant: "basic",
|
|
19721
19721
|
metadata: {
|
|
19722
19722
|
type: "claude_tool",
|
|
19723
19723
|
phase: "call",
|
|
@@ -19762,12 +19762,12 @@ var claudeCodeRuntime = (options = {}) => (builder) => {
|
|
|
19762
19762
|
kind: "message",
|
|
19763
19763
|
widgetId: toolCallWidgetId(res.toolUseId),
|
|
19764
19764
|
title: toolTitleByUseId.get(res.toolUseId)?.title ?? "",
|
|
19765
|
-
description: "",
|
|
19766
19765
|
body: formatToolResultBody(
|
|
19767
19766
|
toolTitleByUseId.get(res.toolUseId)?.input,
|
|
19768
19767
|
body
|
|
19769
19768
|
),
|
|
19770
19769
|
display: "collapsed",
|
|
19770
|
+
variant: "basic",
|
|
19771
19771
|
...state ? { state } : {},
|
|
19772
19772
|
metadata: {
|
|
19773
19773
|
type: "claude_tool",
|
|
@@ -19838,8 +19838,7 @@ ${errorMessage}`
|
|
|
19838
19838
|
kind: "message",
|
|
19839
19839
|
title: "API Key Saved",
|
|
19840
19840
|
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" }]
|
|
19841
|
+
state: "submitted"
|
|
19843
19842
|
}
|
|
19844
19843
|
});
|
|
19845
19844
|
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.6",
|
|
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
|
+
}
|