@nextclaw/companion 0.1.31 → 0.1.32-beta.0

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,49 @@
1
1
  # @nextclaw/companion
2
2
 
3
+ ## 0.1.32-beta.0
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-qq
20
+ - @nextclaw/channel-extension-slack
21
+ - @nextclaw/channel-extension-telegram
22
+ - @nextclaw/channel-extension-wecom
23
+ - @nextclaw/channel-extension-weixin
24
+ - @nextclaw/channel-extension-whatsapp
25
+ - @nextclaw/client-sdk
26
+ - @nextclaw/companion
27
+ - @nextclaw/extension-sdk
28
+ - @nextclaw/feishu-core
29
+ - @nextclaw/mcp
30
+ - @nextclaw/ncp-agent-runtime
31
+ - @nextclaw/ncp-http-agent-client
32
+ - @nextclaw/ncp-http-agent-server
33
+ - @nextclaw/ncp-mcp
34
+ - @nextclaw/ncp-react
35
+ - @nextclaw/ncp-react-ui
36
+ - @nextclaw/nextclaw-hermes-acp-bridge
37
+ - @nextclaw/nextclaw-ncp-runtime-adapter-hermes-http
38
+ - @nextclaw/nextclaw-ncp-runtime-http-client
39
+ - @nextclaw/remote
40
+ - @nextclaw/runtime
41
+ - @nextclaw/service
42
+ - nextclaw
43
+
44
+ - Updated dependencies
45
+ - @nextclaw/client-sdk@0.4.4-beta.0
46
+
3
47
  ## 0.1.31
4
48
 
5
49
  ### 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.0",
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.0"
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
- });