@nextclaw/service 0.7.8-beta.1 → 0.7.8
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/controllers/commands/session/session-command.controller.d.ts +1 -0
- package/dist/controllers/commands/session/session-command.controller.d.ts.map +1 -1
- package/dist/controllers/commands/session/session-command.controller.js +3 -0
- package/dist/controllers/commands/session/session-command.controller.js.map +1 -1
- package/package.json +21 -21
|
@@ -13,6 +13,7 @@ declare class SessionCommands {
|
|
|
13
13
|
rename: (sessionId: string, label: string, options?: SessionCommandOptions) => Promise<void>;
|
|
14
14
|
setProject: (sessionId: string, projectRoot: string, options?: SessionCommandOptions) => Promise<void>;
|
|
15
15
|
clearProject: (sessionId: string, options?: SessionCommandOptions) => Promise<void>;
|
|
16
|
+
setPinned: (sessionId: string, pinned: boolean, options?: SessionCommandOptions) => Promise<void>;
|
|
16
17
|
delete: (sessionId: string, options: SessionDeleteCommandOptions) => Promise<void>;
|
|
17
18
|
private update;
|
|
18
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-command.controller.d.ts","names":[],"sources":["../../../../src/controllers/commands/session/session-command.controller.ts"],"mappings":";;;KAEY,qBAAA;EACV,IAAA;AAAA;AAAA,KAGU,2BAAA,GAA8B,qBAAA;EACxC,OAAA;AAAA;AAAA,cAGW,eAAA;EAAA,iBACkB,YAAA;cAAA,YAAA,SAAqB,yBAAA;EAElD,MAAA,GACE,SAAA,UACA,KAAA,UACA,OAAA,GAAS,qBAAA,KACR,OAAA;EAIH,UAAA,GACE,SAAA,UACA,WAAA,UACA,OAAA,GAAS,qBAAA,KACR,OAAA;EAIH,YAAA,GACE,SAAA,UACA,OAAA,GAAS,qBAAA,KACR,OAAA;EAIH,MAAA,GACE,SAAA,UACA,OAAA,EAAS,2BAAA,KACR,OAAA;EAAA,QAqBK,MAAA;AAAA"}
|
|
1
|
+
{"version":3,"file":"session-command.controller.d.ts","names":[],"sources":["../../../../src/controllers/commands/session/session-command.controller.ts"],"mappings":";;;KAEY,qBAAA;EACV,IAAA;AAAA;AAAA,KAGU,2BAAA,GAA8B,qBAAA;EACxC,OAAA;AAAA;AAAA,cAGW,eAAA;EAAA,iBACkB,YAAA;cAAA,YAAA,SAAqB,yBAAA;EAElD,MAAA,GACE,SAAA,UACA,KAAA,UACA,OAAA,GAAS,qBAAA,KACR,OAAA;EAIH,UAAA,GACE,SAAA,UACA,WAAA,UACA,OAAA,GAAS,qBAAA,KACR,OAAA;EAIH,YAAA,GACE,SAAA,UACA,OAAA,GAAS,qBAAA,KACR,OAAA;EAIH,SAAA,GAAmB,SAAA,UAAmB,MAAA,WAAiB,OAAA,GAAS,qBAAA,KAA6B,OAAA;EAI7F,MAAA,GACE,SAAA,UACA,OAAA,EAAS,2BAAA,KACR,OAAA;EAAA,QAqBK,MAAA;AAAA"}
|
|
@@ -12,6 +12,9 @@ var SessionCommands = class {
|
|
|
12
12
|
clearProject = async (sessionId, options = {}) => {
|
|
13
13
|
await this.update(sessionId, { projectRoot: null }, options);
|
|
14
14
|
};
|
|
15
|
+
setPinned = async (sessionId, pinned, options = {}) => {
|
|
16
|
+
await this.update(sessionId, { pinned }, options);
|
|
17
|
+
};
|
|
15
18
|
delete = async (sessionId, options) => {
|
|
16
19
|
if (options.confirm !== sessionId) throw new Error(`--confirm must exactly match the session id: ${sessionId}`);
|
|
17
20
|
const { kernel, harness } = await this.createKernel();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-command.controller.js","names":[],"sources":["../../../../src/controllers/commands/session/session-command.controller.ts"],"sourcesContent":["import type { createNextclawApplication } from \"@nextclaw/harness\";\n\nexport type SessionCommandOptions = {\n json?: boolean;\n};\n\nexport type SessionDeleteCommandOptions = SessionCommandOptions & {\n confirm: string;\n};\n\nexport class SessionCommands {\n constructor(private readonly createKernel: typeof createNextclawApplication) {}\n\n rename = async (\n sessionId: string,\n label: string,\n options: SessionCommandOptions = {},\n ): Promise<void> => {\n await this.update(sessionId, { label }, options);\n };\n\n setProject = async (\n sessionId: string,\n projectRoot: string,\n options: SessionCommandOptions = {},\n ): Promise<void> => {\n await this.update(sessionId, { projectRoot }, options);\n };\n\n clearProject = async (\n sessionId: string,\n options: SessionCommandOptions = {},\n ): Promise<void> => {\n await this.update(sessionId, { projectRoot: null }, options);\n };\n\n delete = async (\n sessionId: string,\n options: SessionDeleteCommandOptions,\n ): Promise<void> => {\n if (options.confirm !== sessionId) {\n throw new Error(`--confirm must exactly match the session id: ${sessionId}`);\n }\n const { kernel, harness } = await this.createKernel();\n try {\n const session = await kernel.sessionManager.getSession(sessionId);\n if (!session) {\n throw new Error(`Session not found: ${sessionId}`);\n }\n kernel.sessionRunManager.deleteSessionRun(sessionId);\n await kernel.sessionManager.deleteSession(sessionId);\n const result = { deleted: true, sessionId };\n console.log(options.json\n ? JSON.stringify(result, null, 2)\n : `Deleted session ${sessionId}`);\n } finally {\n await harness.dispose();\n }\n };\n\n private update = async (\n sessionId: string,\n patch: { label?: string; projectRoot?: string | null },\n options: SessionCommandOptions,\n ): Promise<void> => {\n const { kernel, harness } = await this.createKernel();\n try {\n const session = await kernel.sessionManager.patchSessionSettings(sessionId, patch);\n if (!session) {\n throw new Error(`Session not found: ${sessionId}`);\n }\n console.log(options.json\n ? JSON.stringify(session, null, 2)\n : `Updated session ${session.sessionId}`);\n } finally {\n await harness.dispose();\n }\n };\n}\n"],"mappings":";AAUA,IAAa,kBAAb,MAA6B;CAC3B,YAAY,cAAiE;AAAhD,OAAA,eAAA;;CAE7B,SAAS,OACP,WACA,OACA,UAAiC,EAAE,KACjB;AAClB,QAAM,KAAK,OAAO,WAAW,EAAE,OAAO,EAAE,QAAQ;;CAGlD,aAAa,OACX,WACA,aACA,UAAiC,EAAE,KACjB;AAClB,QAAM,KAAK,OAAO,WAAW,EAAE,aAAa,EAAE,QAAQ;;CAGxD,eAAe,OACb,WACA,UAAiC,EAAE,KACjB;AAClB,QAAM,KAAK,OAAO,WAAW,EAAE,aAAa,MAAM,EAAE,QAAQ;;CAG9D,SAAS,OACP,WACA,YACkB;AAClB,MAAI,QAAQ,YAAY,UACtB,OAAM,IAAI,MAAM,gDAAgD,YAAY;EAE9E,MAAM,EAAE,QAAQ,YAAY,MAAM,KAAK,cAAc;AACrD,MAAI;AAEF,OAAI,CADY,MAAM,OAAO,eAAe,WAAW,UAAU,CAE/D,OAAM,IAAI,MAAM,sBAAsB,YAAY;AAEpD,UAAO,kBAAkB,iBAAiB,UAAU;AACpD,SAAM,OAAO,eAAe,cAAc,UAAU;GACpD,MAAM,SAAS;IAAE,SAAS;IAAM;IAAW;AAC3C,WAAQ,IAAI,QAAQ,OAChB,KAAK,UAAU,QAAQ,MAAM,EAAE,GAC/B,mBAAmB,YAAY;YAC3B;AACR,SAAM,QAAQ,SAAS;;;CAI3B,SAAiB,OACf,WACA,OACA,YACkB;EAClB,MAAM,EAAE,QAAQ,YAAY,MAAM,KAAK,cAAc;AACrD,MAAI;GACF,MAAM,UAAU,MAAM,OAAO,eAAe,qBAAqB,WAAW,MAAM;AAClF,OAAI,CAAC,QACH,OAAM,IAAI,MAAM,sBAAsB,YAAY;AAEpD,WAAQ,IAAI,QAAQ,OAChB,KAAK,UAAU,SAAS,MAAM,EAAE,GAChC,mBAAmB,QAAQ,YAAY;YACnC;AACR,SAAM,QAAQ,SAAS"}
|
|
1
|
+
{"version":3,"file":"session-command.controller.js","names":[],"sources":["../../../../src/controllers/commands/session/session-command.controller.ts"],"sourcesContent":["import type { createNextclawApplication } from \"@nextclaw/harness\";\n\nexport type SessionCommandOptions = {\n json?: boolean;\n};\n\nexport type SessionDeleteCommandOptions = SessionCommandOptions & {\n confirm: string;\n};\n\nexport class SessionCommands {\n constructor(private readonly createKernel: typeof createNextclawApplication) {}\n\n rename = async (\n sessionId: string,\n label: string,\n options: SessionCommandOptions = {},\n ): Promise<void> => {\n await this.update(sessionId, { label }, options);\n };\n\n setProject = async (\n sessionId: string,\n projectRoot: string,\n options: SessionCommandOptions = {},\n ): Promise<void> => {\n await this.update(sessionId, { projectRoot }, options);\n };\n\n clearProject = async (\n sessionId: string,\n options: SessionCommandOptions = {},\n ): Promise<void> => {\n await this.update(sessionId, { projectRoot: null }, options);\n };\n\n setPinned = async (sessionId: string, pinned: boolean, options: SessionCommandOptions = {}): Promise<void> => {\n await this.update(sessionId, { pinned }, options);\n };\n\n delete = async (\n sessionId: string,\n options: SessionDeleteCommandOptions,\n ): Promise<void> => {\n if (options.confirm !== sessionId) {\n throw new Error(`--confirm must exactly match the session id: ${sessionId}`);\n }\n const { kernel, harness } = await this.createKernel();\n try {\n const session = await kernel.sessionManager.getSession(sessionId);\n if (!session) {\n throw new Error(`Session not found: ${sessionId}`);\n }\n kernel.sessionRunManager.deleteSessionRun(sessionId);\n await kernel.sessionManager.deleteSession(sessionId);\n const result = { deleted: true, sessionId };\n console.log(options.json\n ? JSON.stringify(result, null, 2)\n : `Deleted session ${sessionId}`);\n } finally {\n await harness.dispose();\n }\n };\n\n private update = async (\n sessionId: string,\n patch: { label?: string; projectRoot?: string | null; pinned?: boolean },\n options: SessionCommandOptions,\n ): Promise<void> => {\n const { kernel, harness } = await this.createKernel();\n try {\n const session = await kernel.sessionManager.patchSessionSettings(sessionId, patch);\n if (!session) {\n throw new Error(`Session not found: ${sessionId}`);\n }\n console.log(options.json\n ? JSON.stringify(session, null, 2)\n : `Updated session ${session.sessionId}`);\n } finally {\n await harness.dispose();\n }\n };\n}\n"],"mappings":";AAUA,IAAa,kBAAb,MAA6B;CAC3B,YAAY,cAAiE;AAAhD,OAAA,eAAA;;CAE7B,SAAS,OACP,WACA,OACA,UAAiC,EAAE,KACjB;AAClB,QAAM,KAAK,OAAO,WAAW,EAAE,OAAO,EAAE,QAAQ;;CAGlD,aAAa,OACX,WACA,aACA,UAAiC,EAAE,KACjB;AAClB,QAAM,KAAK,OAAO,WAAW,EAAE,aAAa,EAAE,QAAQ;;CAGxD,eAAe,OACb,WACA,UAAiC,EAAE,KACjB;AAClB,QAAM,KAAK,OAAO,WAAW,EAAE,aAAa,MAAM,EAAE,QAAQ;;CAG9D,YAAY,OAAO,WAAmB,QAAiB,UAAiC,EAAE,KAAoB;AAC5G,QAAM,KAAK,OAAO,WAAW,EAAE,QAAQ,EAAE,QAAQ;;CAGnD,SAAS,OACP,WACA,YACkB;AAClB,MAAI,QAAQ,YAAY,UACtB,OAAM,IAAI,MAAM,gDAAgD,YAAY;EAE9E,MAAM,EAAE,QAAQ,YAAY,MAAM,KAAK,cAAc;AACrD,MAAI;AAEF,OAAI,CADY,MAAM,OAAO,eAAe,WAAW,UAAU,CAE/D,OAAM,IAAI,MAAM,sBAAsB,YAAY;AAEpD,UAAO,kBAAkB,iBAAiB,UAAU;AACpD,SAAM,OAAO,eAAe,cAAc,UAAU;GACpD,MAAM,SAAS;IAAE,SAAS;IAAM;IAAW;AAC3C,WAAQ,IAAI,QAAQ,OAChB,KAAK,UAAU,QAAQ,MAAM,EAAE,GAC/B,mBAAmB,YAAY;YAC3B;AACR,SAAM,QAAQ,SAAS;;;CAI3B,SAAiB,OACf,WACA,OACA,YACkB;EAClB,MAAM,EAAE,QAAQ,YAAY,MAAM,KAAK,cAAc;AACrD,MAAI;GACF,MAAM,UAAU,MAAM,OAAO,eAAe,qBAAqB,WAAW,MAAM;AAClF,OAAI,CAAC,QACH,OAAM,IAAI,MAAM,sBAAsB,YAAY;AAEpD,WAAQ,IAAI,QAAQ,OAChB,KAAK,UAAU,SAAS,MAAM,EAAE,GAChC,mBAAmB,QAAQ,YAAY;YACnC;AACR,SAAM,QAAQ,SAAS"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextclaw/service",
|
|
3
|
-
"version": "0.7.8
|
|
3
|
+
"version": "0.7.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "NextClaw long-running service host and runtime lifecycle.",
|
|
6
6
|
"type": "module",
|
|
@@ -42,31 +42,31 @@
|
|
|
42
42
|
"chokidar": "^3.6.0",
|
|
43
43
|
"commander": "^12.1.0",
|
|
44
44
|
"jszip": "^3.10.1",
|
|
45
|
-
"@nextclaw/
|
|
46
|
-
"@nextclaw/
|
|
47
|
-
"@nextclaw/channel-extension-
|
|
48
|
-
"@nextclaw/channel-extension-
|
|
45
|
+
"@nextclaw/harness": "0.2.28",
|
|
46
|
+
"@nextclaw/channel-extension-dingtalk": "0.2.55",
|
|
47
|
+
"@nextclaw/channel-extension-discord": "0.2.55",
|
|
48
|
+
"@nextclaw/channel-extension-qq": "0.2.40",
|
|
49
49
|
"@nextclaw/channel-extension-feishu": "0.2.42",
|
|
50
|
-
"@nextclaw/channel-extension-
|
|
51
|
-
"@nextclaw/channel-extension-
|
|
50
|
+
"@nextclaw/channel-extension-email": "0.2.55",
|
|
51
|
+
"@nextclaw/channel-extension-slack": "0.2.55",
|
|
52
|
+
"@nextclaw/channel-extension-wecom": "0.2.55",
|
|
52
53
|
"@nextclaw/channel-extension-weixin": "0.2.42",
|
|
53
|
-
"@nextclaw/
|
|
54
|
-
"@nextclaw/channel-extension-
|
|
55
|
-
"@nextclaw/channel-extension-
|
|
56
|
-
"@nextclaw/
|
|
57
|
-
"@nextclaw/mcp": "0.3.56
|
|
54
|
+
"@nextclaw/client-sdk": "0.12.14",
|
|
55
|
+
"@nextclaw/channel-extension-telegram": "0.2.55",
|
|
56
|
+
"@nextclaw/channel-extension-whatsapp": "0.2.55",
|
|
57
|
+
"@nextclaw/core": "0.18.6",
|
|
58
|
+
"@nextclaw/mcp": "0.3.56",
|
|
59
|
+
"@nextclaw/kernel": "0.19.2",
|
|
58
60
|
"@nextclaw/ncp": "0.11.3",
|
|
59
|
-
"@nextclaw/ncp-agent-runtime": "0.4.28
|
|
60
|
-
"@nextclaw/kernel": "0.19.2-beta.1",
|
|
61
|
-
"@nextclaw/ncp-mcp": "0.2.56-beta.0",
|
|
61
|
+
"@nextclaw/ncp-agent-runtime": "0.4.28",
|
|
62
62
|
"@nextclaw/nextclaw-hermes-acp-bridge": "0.3.25",
|
|
63
|
-
"@nextclaw/nextclaw-ncp-runtime-http-client": "0.3.27",
|
|
64
|
-
"@nextclaw/nextclaw-ncp-runtime-stdio-client": "0.3.56-beta.0",
|
|
65
63
|
"@nextclaw/ncp-toolkit": "0.6.28",
|
|
66
|
-
"@nextclaw/
|
|
67
|
-
"@nextclaw/
|
|
68
|
-
"@nextclaw/
|
|
69
|
-
"@nextclaw/
|
|
64
|
+
"@nextclaw/nextclaw-ncp-runtime-stdio-client": "0.3.56",
|
|
65
|
+
"@nextclaw/remote": "0.3.71",
|
|
66
|
+
"@nextclaw/ncp-mcp": "0.2.56",
|
|
67
|
+
"@nextclaw/nextclaw-ncp-runtime-http-client": "0.3.27",
|
|
68
|
+
"@nextclaw/server": "0.23.14",
|
|
69
|
+
"@nextclaw/runtime": "0.4.55",
|
|
70
70
|
"@nextclaw/shared": "0.8.4"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|