@meetopenbot/claude-code 0.1.4 → 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.
Files changed (2) hide show
  1. package/dist/index.js +9 -5
  2. 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",
@@ -19680,6 +19680,11 @@ var claudeCodeRuntime = (options = {}) => (builder) => {
19680
19680
  if (!authWidgetYielded && message.type === "assistant" && (message.error === "authentication_failed" || message.error === "oauth_org_not_allowed")) {
19681
19681
  authWidgetYielded = true;
19682
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
+ });
19683
19688
  return;
19684
19689
  }
19685
19690
  if (message.type === "assistant") {
@@ -19710,9 +19715,9 @@ var claudeCodeRuntime = (options = {}) => (builder) => {
19710
19715
  kind: "message",
19711
19716
  widgetId: toolCallWidgetId(tool.toolUseId),
19712
19717
  title: toolTitleByUseId.get(tool.toolUseId)?.title ?? "",
19713
- description: "",
19714
19718
  body: formatToolInputBody(tool.input),
19715
19719
  display: "collapsed",
19720
+ variant: "basic",
19716
19721
  metadata: {
19717
19722
  type: "claude_tool",
19718
19723
  phase: "call",
@@ -19757,12 +19762,12 @@ var claudeCodeRuntime = (options = {}) => (builder) => {
19757
19762
  kind: "message",
19758
19763
  widgetId: toolCallWidgetId(res.toolUseId),
19759
19764
  title: toolTitleByUseId.get(res.toolUseId)?.title ?? "",
19760
- description: "",
19761
19765
  body: formatToolResultBody(
19762
19766
  toolTitleByUseId.get(res.toolUseId)?.input,
19763
19767
  body
19764
19768
  ),
19765
19769
  display: "collapsed",
19770
+ variant: "basic",
19766
19771
  ...state ? { state } : {},
19767
19772
  metadata: {
19768
19773
  type: "claude_tool",
@@ -19833,8 +19838,7 @@ ${errorMessage}`
19833
19838
  kind: "message",
19834
19839
  title: "API Key Saved",
19835
19840
  body: `Saved ${envVar} as a workspace variable. You can now continue the conversation.`,
19836
- state: "submitted",
19837
- actions: [{ id: "ok", label: "Got it", variant: "primary" }]
19841
+ state: "submitted"
19838
19842
  }
19839
19843
  });
19840
19844
  yield agentOutput({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetopenbot/claude-code",
3
- "version": "0.1.4",
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.2"
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
+ }