@nextclaw/companion 0.1.31 → 0.1.32-beta.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,100 @@
1
1
  # @nextclaw/companion
2
2
 
3
+ ## 0.1.32-beta.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Auto-generated full public beta release batch.
8
+
9
+ Packages:
10
+ - @nextclaw/agent-chat
11
+ - @nextclaw/aigen
12
+ - @nextclaw/app-runtime
13
+ - @nextclaw/app-sdk
14
+ - @nextclaw/browser-connector
15
+ - @nextclaw/channel-extension-dingtalk
16
+ - @nextclaw/channel-extension-discord
17
+ - @nextclaw/channel-extension-email
18
+ - @nextclaw/channel-extension-feishu
19
+ - @nextclaw/channel-extension-slack
20
+ - @nextclaw/channel-extension-telegram
21
+ - @nextclaw/channel-extension-wecom
22
+ - @nextclaw/channel-extension-weixin
23
+ - @nextclaw/channel-extension-whatsapp
24
+ - @nextclaw/client-sdk
25
+ - @nextclaw/companion
26
+ - @nextclaw/core
27
+ - @nextclaw/feishu-core
28
+ - @nextclaw/mcp
29
+ - @nextclaw/ncp
30
+ - @nextclaw/ncp-agent-runtime
31
+ - @nextclaw/ncp-agent-runtime-next
32
+ - @nextclaw/ncp-http-agent-client
33
+ - @nextclaw/ncp-http-agent-server
34
+ - @nextclaw/ncp-mcp
35
+ - @nextclaw/ncp-react
36
+ - @nextclaw/ncp-react-ui
37
+ - @nextclaw/ncp-toolkit
38
+ - @nextclaw/nextclaw-hermes-acp-bridge
39
+ - @nextclaw/nextclaw-narp-runtime-claude-code-sdk
40
+ - @nextclaw/nextclaw-narp-runtime-opencode
41
+ - @nextclaw/nextclaw-narp-stdio-runtime-wrapper
42
+ - @nextclaw/nextclaw-ncp-runtime-adapter-hermes-http
43
+ - @nextclaw/nextclaw-ncp-runtime-claude-code-sdk
44
+ - @nextclaw/nextclaw-ncp-runtime-http-client
45
+ - @nextclaw/nextclaw-ncp-runtime-stdio-client
46
+ - @nextclaw/remote
47
+ - @nextclaw/runtime
48
+ - @nextclaw/shared
49
+ - nextclaw
50
+
51
+ - Updated dependencies
52
+ - @nextclaw/client-sdk@0.4.4-beta.1
53
+
54
+ ## 0.1.32-beta.0
55
+
56
+ ### Patch Changes
57
+
58
+ - Auto-generated full public beta release batch.
59
+
60
+ Packages:
61
+ - @nextclaw/agent-chat
62
+ - @nextclaw/aigen
63
+ - @nextclaw/app-runtime
64
+ - @nextclaw/app-sdk
65
+ - @nextclaw/browser-connector
66
+ - @nextclaw/channel-extension-dingtalk
67
+ - @nextclaw/channel-extension-discord
68
+ - @nextclaw/channel-extension-email
69
+ - @nextclaw/channel-extension-feishu
70
+ - @nextclaw/channel-extension-qq
71
+ - @nextclaw/channel-extension-slack
72
+ - @nextclaw/channel-extension-telegram
73
+ - @nextclaw/channel-extension-wecom
74
+ - @nextclaw/channel-extension-weixin
75
+ - @nextclaw/channel-extension-whatsapp
76
+ - @nextclaw/client-sdk
77
+ - @nextclaw/companion
78
+ - @nextclaw/extension-sdk
79
+ - @nextclaw/feishu-core
80
+ - @nextclaw/mcp
81
+ - @nextclaw/ncp-agent-runtime
82
+ - @nextclaw/ncp-http-agent-client
83
+ - @nextclaw/ncp-http-agent-server
84
+ - @nextclaw/ncp-mcp
85
+ - @nextclaw/ncp-react
86
+ - @nextclaw/ncp-react-ui
87
+ - @nextclaw/nextclaw-hermes-acp-bridge
88
+ - @nextclaw/nextclaw-ncp-runtime-adapter-hermes-http
89
+ - @nextclaw/nextclaw-ncp-runtime-http-client
90
+ - @nextclaw/remote
91
+ - @nextclaw/runtime
92
+ - @nextclaw/service
93
+ - nextclaw
94
+
95
+ - Updated dependencies
96
+ - @nextclaw/client-sdk@0.4.4-beta.0
97
+
3
98
  ## 0.1.31
4
99
 
5
100
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextclaw/companion",
3
- "version": "0.1.31",
3
+ "version": "0.1.32-beta.1",
4
4
  "private": false,
5
5
  "description": "Standalone Electron companion shell for active NextClaw agents.",
6
6
  "author": "NextClaw Team",
@@ -16,7 +16,7 @@
16
16
  "react": "^18.3.1",
17
17
  "react-dom": "^18.3.1",
18
18
  "zustand": "^5.0.2",
19
- "@nextclaw/client-sdk": "0.4.3"
19
+ "@nextclaw/client-sdk": "0.4.4-beta.1"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/react": "^18.3.12",
package/tsconfig.json CHANGED
@@ -10,5 +10,6 @@
10
10
  "types": ["node", "electron"],
11
11
  "lib": ["DOM", "ES2022"]
12
12
  },
13
- "include": ["electron/**/*.ts", "src/**/*.ts", "src/**/*.tsx"]
13
+ "include": ["electron/**/*.ts", "src/**/*.ts", "src/**/*.tsx"],
14
+ "exclude": ["src/**/*.test.ts", "src/**/*.test.tsx"]
14
15
  }
@@ -1,45 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const vitest_1 = require("vitest");
4
- const companion_runtime_store_js_1 = require("../stores/companion-runtime.store.js");
5
- const companion_runtime_manager_js_1 = require("./companion-runtime.manager.js");
6
- (0, vitest_1.describe)("CompanionRuntimeManager", () => {
7
- (0, vitest_1.beforeEach)(() => {
8
- companion_runtime_store_js_1.useCompanionRuntimeStore.getState().reset();
9
- });
10
- (0, vitest_1.it)("prefers the most recently updated running session", () => {
11
- const manager = new companion_runtime_manager_js_1.CompanionRuntimeManager();
12
- const baseUrl = "http://127.0.0.1:55667";
13
- manager.baseUrl = baseUrl;
14
- const snapshot = manager.syncRuntimeSnapshot({
15
- agents: [{ id: "writer", displayName: "Writer" }],
16
- sessions: [
17
- { sessionId: "older", agentId: "writer", messageCount: 1, updatedAt: "2026-05-05T00:00:00.000Z", status: "running" },
18
- { sessionId: "newer", agentId: "writer", messageCount: 2, updatedAt: "2026-05-06T00:00:00.000Z", status: "running" }
19
- ]
20
- });
21
- (0, vitest_1.expect)(snapshot.currentView.sessionId).toBe("newer");
22
- (0, vitest_1.expect)(snapshot.currentView.title).toBe("Writer");
23
- (0, vitest_1.expect)(snapshot.connectionState).toBe("running");
24
- });
25
- (0, vitest_1.it)("falls back to an idle shell view when no running session exists", () => {
26
- const manager = new companion_runtime_manager_js_1.CompanionRuntimeManager();
27
- const baseUrl = "http://127.0.0.1:55667";
28
- manager.baseUrl = baseUrl;
29
- const snapshot = manager.syncRuntimeSnapshot({
30
- agents: [],
31
- sessions: []
32
- });
33
- (0, vitest_1.expect)(snapshot.currentView.state).toBe("idle");
34
- (0, vitest_1.expect)(snapshot.currentView.subtitle).toBe("No active agent");
35
- (0, vitest_1.expect)(snapshot.connectionState).toBe("idle");
36
- });
37
- (0, vitest_1.it)("produces an offline snapshot with a readable reason", () => {
38
- const manager = new companion_runtime_manager_js_1.CompanionRuntimeManager();
39
- manager.baseUrl = "http://127.0.0.1:55667";
40
- const snapshot = manager.applyOfflineState({ summary: "Cannot reach runtime" });
41
- (0, vitest_1.expect)(snapshot.connectionState).toBe("offline");
42
- (0, vitest_1.expect)(snapshot.currentView.state).toBe("offline");
43
- (0, vitest_1.expect)(snapshot.currentView.subtitle).toBe("Cannot reach runtime");
44
- });
45
- });