@webskill/sdk 0.2.1 → 0.2.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.
@@ -636,18 +636,21 @@ var ProcessSandboxExecutor = class {
636
636
  async #spawnSlot(key) {
637
637
  const artifactDir = await mkdtemp(path.join(tmpdir(), "webskill-psbx-out-")).then((d) => d.split(path.sep).join("/"));
638
638
  const entry = processEntryPath();
639
+ const child = fork(entry, [], {
640
+ execArgv: [
641
+ "--permission",
642
+ ...readAllow(path.dirname(entry)),
643
+ ...readAllow(toPlatform$2(key)),
644
+ ...readAllow(artifactDir),
645
+ ...writeAllow(artifactDir)
646
+ ],
647
+ silent: false
648
+ });
649
+ child.unref();
650
+ child.channel?.unref();
639
651
  return {
640
652
  key,
641
- child: fork(entry, [], {
642
- execArgv: [
643
- "--permission",
644
- ...readAllow(path.dirname(entry)),
645
- ...readAllow(toPlatform$2(key)),
646
- ...readAllow(artifactDir),
647
- ...writeAllow(artifactDir)
648
- ],
649
- silent: false
650
- }),
653
+ child,
651
654
  busy: false,
652
655
  artifactDir
653
656
  };
@@ -1,6 +1,6 @@
1
1
  import { A as unzipWithLimits, b as isValidSkillName, d as assertSafePathSegment, j as validateSkills, k as resolveInsideRoot, u as WebSkillError } from "./dist-D0saNPi_.js";
2
2
  import { S as WebSkillRuntime } from "./dist-DrySSQ5R.js";
3
- import { i as NodeFS, s as ProcessSandboxExecutor, u as exportArchive } from "./dist-BRGQcLqR.js";
3
+ import { i as NodeFS, s as ProcessSandboxExecutor, u as exportArchive } from "./dist-Cn9GpW6Q.js";
4
4
  import path from "node:path";
5
5
  import { tmpdir } from "node:os";
6
6
  import { mkdtemp } from "node:fs/promises";
package/dist/node.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { i as SKILL_MANIFEST_FILE, r as SKILLS_LOCKFILE } from "./dist-D0saNPi_.js";
2
2
  import { T as createScriptContext } from "./dist-DrySSQ5R.js";
3
3
  import { i as probeLlmCapabilities } from "./env--jJB-TSX-04klhTYi.js";
4
- import { a as NodeScriptExecutor, c as SandboxedScriptExecutor, d as readArchiveManifest, i as NodeFS, l as SkillManager, n as FileArtifactStore, o as OxcSchemaInferer, r as FileMemoryStore, s as ProcessSandboxExecutor, t as CliUiBridge, u as exportArchive } from "./dist-BRGQcLqR.js";
4
+ import { a as NodeScriptExecutor, c as SandboxedScriptExecutor, d as readArchiveManifest, i as NodeFS, l as SkillManager, n as FileArtifactStore, o as OxcSchemaInferer, r as FileMemoryStore, s as ProcessSandboxExecutor, t as CliUiBridge, u as exportArchive } from "./dist-Cn9GpW6Q.js";
5
5
 
6
6
  export { CliUiBridge, FileArtifactStore, FileMemoryStore, NodeFS, NodeScriptExecutor, OxcSchemaInferer, ProcessSandboxExecutor, SKILLS_LOCKFILE, SKILL_MANIFEST_FILE, SandboxedScriptExecutor, SkillManager, createScriptContext, exportArchive, probeLlmCapabilities, readArchiveManifest };
@@ -197,6 +197,7 @@ process.on("message", (msg) => {
197
197
  process.exit(1);
198
198
  });
199
199
  });
200
+ process.on("disconnect", () => process.exit(0));
200
201
 
201
202
  //#endregion
202
203
  export { };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webskill/sdk",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "WebSkill \u2014 browser/Node agent skill runtime (skills, tools, MCP, governance, UI)",
5
5
  "license": "MIT",
6
6
  "type": "module",