nextclaw 0.45.0 → 0.45.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.
@@ -1,8 +1,10 @@
1
1
  #!/usr/bin/env node
2
- import { t as createNextclawDistribution } from "../../nextclaw-distribution.utils-Bba2GRvc.js";
2
+ import { n as repairPackagedPortableRunnerPermissions, t as createNextclawDistribution } from "../../nextclaw-distribution.utils-Dryg4WzA.js";
3
3
  import { NextclawDistributionService } from "@nextclaw/service";
4
4
  //#region src/cli/app/index.ts
5
- NextclawDistributionService.configureRuntime(createNextclawDistribution(import.meta.url));
5
+ const distribution = createNextclawDistribution(import.meta.url);
6
+ repairPackagedPortableRunnerPermissions(distribution);
7
+ NextclawDistributionService.configureRuntime(distribution);
6
8
  const { nextclawCliProgram } = await import("../../nextclaw-cli-app-Bwa2L2Jv.js");
7
9
  await nextclawCliProgram.parseAsync(process.argv);
8
10
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../src/cli/app/index.ts"],"sourcesContent":["#!/usr/bin/env node\nimport { NextclawDistributionService } from \"@nextclaw/service\";\nimport { createNextclawDistribution } from \"@nextclaw-cli/cli/shared/lib/distribution/index.js\";\n\nNextclawDistributionService.configureRuntime(\n createNextclawDistribution(import.meta.url),\n);\n\nconst { nextclawCliProgram } = await import(\"./nextclaw-cli-app.js\");\nawait nextclawCliProgram.parseAsync(process.argv);\n"],"mappings":";;;;AAIA,4BAA4B,iBAC1B,2BAA2B,OAAO,KAAK,IAAI,CAC5C;AAED,MAAM,EAAE,uBAAuB,MAAM,OAAO;AAC5C,MAAM,mBAAmB,WAAW,QAAQ,KAAK"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/cli/app/index.ts"],"sourcesContent":["#!/usr/bin/env node\nimport { NextclawDistributionService } from \"@nextclaw/service\";\nimport {\n createNextclawDistribution,\n repairPackagedPortableRunnerPermissions,\n} from \"@nextclaw-cli/cli/shared/lib/distribution/index.js\";\n\nconst distribution = createNextclawDistribution(import.meta.url);\nrepairPackagedPortableRunnerPermissions(distribution);\nNextclawDistributionService.configureRuntime(\n distribution,\n);\n\nconst { nextclawCliProgram } = await import(\"./nextclaw-cli-app.js\");\nawait nextclawCliProgram.parseAsync(process.argv);\n"],"mappings":";;;;AAOA,MAAM,eAAe,2BAA2B,OAAO,KAAK,IAAI;AAChE,wCAAwC,aAAa;AACrD,4BAA4B,iBAC1B,aACD;AAED,MAAM,EAAE,uBAAuB,MAAM,OAAO;AAC5C,MAAM,mBAAmB,WAAW,QAAQ,KAAK"}
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { t as createNextclawDistribution } from "../../nextclaw-distribution.utils-Bba2GRvc.js";
2
+ import { t as createNextclawDistribution } from "../../nextclaw-distribution.utils-Dryg4WzA.js";
3
3
  import { NextclawDistributionService, runNextclawNpmRuntimeLauncher } from "@nextclaw/service";
4
4
  //#region src/cli/launcher/index.ts
5
5
  NextclawDistributionService.configure(createNextclawDistribution(import.meta.url));
@@ -1,4 +1,4 @@
1
- import { readFileSync } from "node:fs";
1
+ import { accessSync, chmodSync, constants, existsSync, readFileSync, statSync } from "node:fs";
2
2
  import { basename, dirname, resolve } from "node:path";
3
3
  import { fileURLToPath } from "node:url";
4
4
  //#region src/cli/shared/lib/distribution/nextclaw-distribution.utils.ts
@@ -20,7 +20,23 @@ function createNextclawDistribution(importMetaUrl) {
20
20
  portableServiceRunnerPath: resolve(packageRoot, "resources/native", `${process.platform}-${process.arch}`, portableRunnerExecutable)
21
21
  };
22
22
  }
23
+ function repairPackagedPortableRunnerPermissions(distribution) {
24
+ if (process.platform === "win32") return false;
25
+ const runnerPath = distribution.portableServiceRunnerPath?.trim();
26
+ if (!runnerPath || !existsSync(runnerPath)) return false;
27
+ const runnerStat = statSync(runnerPath);
28
+ if (!runnerStat.isFile()) return false;
29
+ try {
30
+ accessSync(runnerPath, constants.X_OK);
31
+ return false;
32
+ } catch {
33
+ chmodSync(runnerPath, runnerStat.mode & 511 | 73);
34
+ accessSync(runnerPath, constants.X_OK);
35
+ process.stderr.write(`[nextclaw] restored executable permission for bundled Portable Service App runner: ${runnerPath}\n`);
36
+ return true;
37
+ }
38
+ }
23
39
  //#endregion
24
- export { createNextclawDistribution as t };
40
+ export { repairPackagedPortableRunnerPermissions as n, createNextclawDistribution as t };
25
41
 
26
- //# sourceMappingURL=nextclaw-distribution.utils-Bba2GRvc.js.map
42
+ //# sourceMappingURL=nextclaw-distribution.utils-Dryg4WzA.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nextclaw-distribution.utils-Dryg4WzA.js","names":[],"sources":["../src/cli/shared/lib/distribution/nextclaw-distribution.utils.ts"],"sourcesContent":["import { accessSync, chmodSync, constants, existsSync, readFileSync, statSync } from \"node:fs\";\nimport { basename, dirname, resolve } from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport type { NextclawDistribution } from \"@nextclaw/service\";\n\nexport function createNextclawDistribution(importMetaUrl: string): NextclawDistribution {\n const entrypoint = fileURLToPath(importMetaUrl);\n const packageRoot = resolve(dirname(entrypoint), \"../../..\");\n const { version } = JSON.parse(readFileSync(resolve(packageRoot, \"package.json\"), \"utf-8\")) as { version?: string };\n const portableRunnerExecutable = process.platform === \"win32\"\n ? \"nextclaw-wasmtime-runner.exe\"\n : \"nextclaw-wasmtime-runner\";\n return {\n version: typeof version === \"string\" ? version : \"0.0.0\",\n appEntrypoint: resolve(packageRoot, \"dist/cli/app/index.js\"),\n launcherVersion: typeof version === \"string\" ? version : \"0.0.0\",\n launcherEntrypoint: resolve(dirname(entrypoint), \"../launcher\", basename(entrypoint)),\n launchedByLauncher: false,\n templatesDir: resolve(packageRoot, \"templates\"),\n uiDistDir: resolve(packageRoot, \"ui-dist\"),\n runtimeUpdatePublicKeyPath: resolve(packageRoot, \"resources/update-bundle-public.pem\"),\n builtInAppsDirectory: resolve(packageRoot, \"resources/apps\"),\n portableServiceRunnerPath: resolve(\n packageRoot,\n \"resources/native\",\n `${process.platform}-${process.arch}`,\n portableRunnerExecutable,\n )\n };\n}\n\nexport function repairPackagedPortableRunnerPermissions(distribution: NextclawDistribution): boolean {\n if (process.platform === \"win32\") return false;\n const runnerPath = distribution.portableServiceRunnerPath?.trim();\n if (!runnerPath || !existsSync(runnerPath)) return false;\n const runnerStat = statSync(runnerPath);\n if (!runnerStat.isFile()) return false;\n try {\n accessSync(runnerPath, constants.X_OK);\n return false;\n } catch {\n chmodSync(runnerPath, (runnerStat.mode & 0o777) | 0o111);\n accessSync(runnerPath, constants.X_OK);\n process.stderr.write(`[nextclaw] restored executable permission for bundled Portable Service App runner: ${runnerPath}\\n`);\n return true;\n }\n}\n"],"mappings":";;;;AAKA,SAAgB,2BAA2B,eAA6C;CACtF,MAAM,aAAa,cAAc,cAAc;CAC/C,MAAM,cAAc,QAAQ,QAAQ,WAAW,EAAE,WAAW;CAC5D,MAAM,EAAE,YAAY,KAAK,MAAM,aAAa,QAAQ,aAAa,eAAe,EAAE,QAAQ,CAAC;CAC3F,MAAM,2BAA2B,QAAQ,aAAa,UAClD,iCACA;AACJ,QAAO;EACL,SAAS,OAAO,YAAY,WAAW,UAAU;EACjD,eAAe,QAAQ,aAAa,wBAAwB;EAC5D,iBAAiB,OAAO,YAAY,WAAW,UAAU;EACzD,oBAAoB,QAAQ,QAAQ,WAAW,EAAE,eAAe,SAAS,WAAW,CAAC;EACrF,oBAAoB;EACpB,cAAc,QAAQ,aAAa,YAAY;EAC/C,WAAW,QAAQ,aAAa,UAAU;EAC1C,4BAA4B,QAAQ,aAAa,qCAAqC;EACtF,sBAAsB,QAAQ,aAAa,iBAAiB;EAC5D,2BAA2B,QACzB,aACA,oBACA,GAAG,QAAQ,SAAS,GAAG,QAAQ,QAC/B,yBACD;EACF;;AAGH,SAAgB,wCAAwC,cAA6C;AACnG,KAAI,QAAQ,aAAa,QAAS,QAAO;CACzC,MAAM,aAAa,aAAa,2BAA2B,MAAM;AACjE,KAAI,CAAC,cAAc,CAAC,WAAW,WAAW,CAAE,QAAO;CACnD,MAAM,aAAa,SAAS,WAAW;AACvC,KAAI,CAAC,WAAW,QAAQ,CAAE,QAAO;AACjC,KAAI;AACF,aAAW,YAAY,UAAU,KAAK;AACtC,SAAO;SACD;AACN,YAAU,YAAa,WAAW,OAAO,MAAS,GAAM;AACxD,aAAW,YAAY,UAAU,KAAK;AACtC,UAAQ,OAAO,MAAM,sFAAsF,WAAW,IAAI;AAC1H,SAAO"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextclaw",
3
- "version": "0.45.0",
3
+ "version": "0.45.1",
4
4
  "description": "Powerful AI assistant for coordinating agents, skills, CLI tools, automations, and messaging apps.",
5
5
  "private": false,
6
6
  "type": "module",
@@ -44,19 +44,19 @@
44
44
  "@nextclaw/core": "0.17.11",
45
45
  "@nextclaw/app-runtime": "0.14.0",
46
46
  "@nextclaw/kernel": "0.12.0",
47
+ "@nextclaw/mcp": "0.3.38",
47
48
  "@nextclaw/ncp": "0.10.0",
48
49
  "@nextclaw/ncp-agent-runtime": "0.4.21",
49
- "@nextclaw/mcp": "0.3.38",
50
50
  "@nextclaw/ncp-mcp": "0.2.38",
51
51
  "@nextclaw/ncp-toolkit": "0.6.23",
52
+ "@nextclaw/nextclaw-hermes-acp-bridge": "0.3.21",
52
53
  "@nextclaw/nextclaw-ncp-runtime-http-client": "0.3.22",
53
54
  "@nextclaw/nextclaw-ncp-runtime-stdio-client": "0.3.38",
54
- "@nextclaw/nextclaw-hermes-acp-bridge": "0.3.21",
55
- "@nextclaw/runtime": "0.4.37",
56
- "@nextclaw/service": "0.4.0",
57
55
  "@nextclaw/remote": "0.3.47",
56
+ "@nextclaw/server": "0.20.0",
57
+ "@nextclaw/service": "0.4.1",
58
58
  "@nextclaw/shared": "0.4.29",
59
- "@nextclaw/server": "0.20.0"
59
+ "@nextclaw/runtime": "0.4.37"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/node": "^20.17.6",
@@ -1 +0,0 @@
1
- {"version":3,"file":"nextclaw-distribution.utils-Bba2GRvc.js","names":[],"sources":["../src/cli/shared/lib/distribution/nextclaw-distribution.utils.ts"],"sourcesContent":["import { readFileSync } from \"node:fs\";\nimport { basename, dirname, resolve } from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport type { NextclawDistribution } from \"@nextclaw/service\";\n\nexport function createNextclawDistribution(importMetaUrl: string): NextclawDistribution {\n const entrypoint = fileURLToPath(importMetaUrl);\n const packageRoot = resolve(dirname(entrypoint), \"../../..\");\n const { version } = JSON.parse(readFileSync(resolve(packageRoot, \"package.json\"), \"utf-8\")) as { version?: string };\n const portableRunnerExecutable = process.platform === \"win32\"\n ? \"nextclaw-wasmtime-runner.exe\"\n : \"nextclaw-wasmtime-runner\";\n return {\n version: typeof version === \"string\" ? version : \"0.0.0\",\n appEntrypoint: resolve(packageRoot, \"dist/cli/app/index.js\"),\n launcherVersion: typeof version === \"string\" ? version : \"0.0.0\",\n launcherEntrypoint: resolve(dirname(entrypoint), \"../launcher\", basename(entrypoint)),\n launchedByLauncher: false,\n templatesDir: resolve(packageRoot, \"templates\"),\n uiDistDir: resolve(packageRoot, \"ui-dist\"),\n runtimeUpdatePublicKeyPath: resolve(packageRoot, \"resources/update-bundle-public.pem\"),\n builtInAppsDirectory: resolve(packageRoot, \"resources/apps\"),\n portableServiceRunnerPath: resolve(\n packageRoot,\n \"resources/native\",\n `${process.platform}-${process.arch}`,\n portableRunnerExecutable,\n )\n };\n}\n"],"mappings":";;;;AAKA,SAAgB,2BAA2B,eAA6C;CACtF,MAAM,aAAa,cAAc,cAAc;CAC/C,MAAM,cAAc,QAAQ,QAAQ,WAAW,EAAE,WAAW;CAC5D,MAAM,EAAE,YAAY,KAAK,MAAM,aAAa,QAAQ,aAAa,eAAe,EAAE,QAAQ,CAAC;CAC3F,MAAM,2BAA2B,QAAQ,aAAa,UAClD,iCACA;AACJ,QAAO;EACL,SAAS,OAAO,YAAY,WAAW,UAAU;EACjD,eAAe,QAAQ,aAAa,wBAAwB;EAC5D,iBAAiB,OAAO,YAAY,WAAW,UAAU;EACzD,oBAAoB,QAAQ,QAAQ,WAAW,EAAE,eAAe,SAAS,WAAW,CAAC;EACrF,oBAAoB;EACpB,cAAc,QAAQ,aAAa,YAAY;EAC/C,WAAW,QAAQ,aAAa,UAAU;EAC1C,4BAA4B,QAAQ,aAAa,qCAAqC;EACtF,sBAAsB,QAAQ,aAAa,iBAAiB;EAC5D,2BAA2B,QACzB,aACA,oBACA,GAAG,QAAQ,SAAS,GAAG,QAAQ,QAC/B,yBACD;EACF"}