@nextclaw/service 0.1.1 → 0.1.2

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.
@@ -3,7 +3,7 @@ import { PluginRegistry } from "@nextclaw/openclaw-compat";
3
3
  //#region src/commands/plugin/plugin-command-utils.d.ts
4
4
  declare const RESERVED_PROVIDER_IDS: string[];
5
5
  declare function buildReservedPluginLoadOptions(): {
6
- reservedToolNames: ("cron" | "read_file" | "write_file" | "edit_file" | "list_dir" | "exec" | "web_search" | "web_fetch" | "message" | "spawn" | "sessions_list" | "sessions_history" | "memory_search" | "memory_get" | "subagents" | "gateway")[];
6
+ reservedToolNames: ("read_file" | "write_file" | "edit_file" | "list_dir" | "exec" | "web_search" | "web_fetch" | "message" | "spawn" | "sessions_list" | "sessions_history" | "memory_search" | "memory_get" | "subagents" | "gateway" | "cron")[];
7
7
  reservedChannelIds: string[];
8
8
  reservedProviderIds: string[];
9
9
  reservedNcpAgentRuntimeKinds: string[];
@@ -5,6 +5,7 @@ type NpmRuntimeLauncherOptions = {
5
5
  argv: string[];
6
6
  env?: NodeJS.ProcessEnv;
7
7
  layout?: NpmRuntimeBundleLayoutStore;
8
+ packagedAppEntrypoint?: string;
8
9
  };
9
10
  declare class NpmRuntimeLauncher {
10
11
  private readonly options;
@@ -50,6 +50,7 @@ var NpmRuntimeLauncher = class {
50
50
  }
51
51
  };
52
52
  resolvePackagedAppEntrypoint = () => {
53
+ if (this.options.packagedAppEntrypoint) return this.options.packagedAppEntrypoint;
53
54
  return resolve(dirname(fileURLToPath(import.meta.url)), "../app/index.js");
54
55
  };
55
56
  };
@@ -86,6 +86,8 @@ declare class NextclawServiceRuntime {
86
86
  agent: (opts: AgentCommandOptions) => Promise<void>;
87
87
  update: (opts: UpdateCommandOptions) => Promise<void>;
88
88
  }
89
- declare const runNextclawNpmRuntimeLauncher: (argv?: string[]) => void;
89
+ declare const runNextclawNpmRuntimeLauncher: (argv?: string[], options?: {
90
+ packagedAppEntrypoint?: string;
91
+ }) => void;
90
92
  //#endregion
91
93
  export { NextclawServiceCommands, NextclawServiceRuntime, NextclawServiceRuntimeAccount, NextclawServiceRuntimeOptions, runNextclawNpmRuntimeLauncher };
@@ -385,8 +385,11 @@ var NextclawServiceRuntime = class {
385
385
  if (snapshot.requiresRestart && state && isProcessRunning(state.pid)) console.log(`Tip: restart ${APP_NAME} to apply the update.`);
386
386
  };
387
387
  };
388
- const runNextclawNpmRuntimeLauncher = (argv = process.argv) => {
389
- new NpmRuntimeLauncher({ argv }).run();
388
+ const runNextclawNpmRuntimeLauncher = (argv = process.argv, options = {}) => {
389
+ new NpmRuntimeLauncher({
390
+ argv,
391
+ packagedAppEntrypoint: options.packagedAppEntrypoint
392
+ }).run();
390
393
  };
391
394
  //#endregion
392
395
  export { NextclawServiceRuntime, runNextclawNpmRuntimeLauncher };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextclaw/service",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "private": false,
5
5
  "description": "NextClaw long-running service host and runtime lifecycle.",
6
6
  "type": "module",
@@ -34,23 +34,23 @@
34
34
  "commander": "^12.1.0",
35
35
  "jszip": "^3.10.1",
36
36
  "yaml": "^2.8.1",
37
+ "@nextclaw/kernel": "0.1.3",
37
38
  "@nextclaw/channel-extension-weixin": "0.1.1",
38
39
  "@nextclaw/core": "0.12.14",
39
- "@nextclaw/kernel": "0.1.3",
40
- "@nextclaw/ncp": "0.5.7",
41
40
  "@nextclaw/mcp": "0.1.79",
42
41
  "@nextclaw/ncp-agent-runtime": "0.3.17",
43
- "@nextclaw/ncp-http-agent-server": "0.3.19",
44
42
  "@nextclaw/ncp-mcp": "0.1.81",
45
- "@nextclaw/ncp-toolkit": "0.5.12",
43
+ "@nextclaw/ncp-http-agent-server": "0.3.19",
46
44
  "@nextclaw/nextclaw-hermes-acp-bridge": "0.1.6",
47
45
  "@nextclaw/nextclaw-ncp-runtime-http-client": "0.1.6",
46
+ "@nextclaw/ncp-toolkit": "0.5.12",
47
+ "@nextclaw/openclaw-compat": "1.0.14",
48
48
  "@nextclaw/nextclaw-ncp-runtime-stdio-client": "0.1.7",
49
49
  "@nextclaw/remote": "0.1.91",
50
50
  "@nextclaw/runtime": "0.2.46",
51
51
  "@nextclaw/shared": "0.1.1",
52
52
  "@nextclaw/server": "0.12.14",
53
- "@nextclaw/openclaw-compat": "1.0.14"
53
+ "@nextclaw/ncp": "0.5.7"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/node": "^20.17.6",