@jaromil/gestalt 0.20.1 → 0.20.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.
package/lib/gestalt.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // GESTALT_CLI_VERSION='0.20.1'
2
+ // GESTALT_CLI_VERSION='0.20.2'
3
3
  // GESTALT_UPDATED_MANAGER_API='1'
4
4
  /*! tuiuiu.js
5
5
  MIT License
@@ -2366,6 +2366,11 @@ async function manageSkills(context, operation, outputMode = "text", recovery =
2366
2366
  report.recoveryCommand = "gestalt skills update";
2367
2367
  report.reason = error.message.slice(0, 512);
2368
2368
  }
2369
+ if (outputMode === "version") {
2370
+ const value = report.status === "ready" ? report.version : report.status === "missing" ? "NOT INSTALLED (optional)" : `${report.status.toUpperCase()} (see gestalt skills status)`;
2371
+ console2.log("Gestalt Skills".padEnd(24) + value);
2372
+ return;
2373
+ }
2369
2374
  if (outputMode === "json") console2.log(JSON.stringify(report));
2370
2375
  else {
2371
2376
  console2.log(`Gestalt skills ${report.status.toUpperCase()}${report.version ? ` (${report.version}; ${report.revision})` : ""}`);
@@ -35810,7 +35815,7 @@ async function runCli(invocation, streams, metadata, handlers = {}) {
35810
35815
  return 0;
35811
35816
  }
35812
35817
  if (alias === "version" && !handlers.version) {
35813
- await write2(`gestalt ${metadata.version}
35818
+ await write2(`Gestalt Manager ${metadata.version}
35814
35819
  `);
35815
35820
  return 0;
35816
35821
  }
@@ -37937,17 +37942,19 @@ async function verifyContextRuntime(context) {
37937
37942
  return runtime;
37938
37943
  }
37939
37944
  async function version(context, metadata) {
37940
- await context.streams.stdout(Buffer.from(`gestalt ${metadata.version}
37945
+ await context.streams.stdout(Buffer.from(`Gestalt Manager ${metadata.version}
37941
37946
  `));
37942
37947
  if (process.platform !== "win32") {
37943
37948
  const mobile = await context.query(context.mobile(), ["--version"]);
37944
37949
  if (mobile !== null) await context.print("Gestalt Mobile", mobile);
37945
37950
  }
37946
37951
  const inventory = await context.inventory();
37947
- for (const name2 of ["gestalt", "context-mode"]) {
37952
+ for (const [name2, label] of [["gestalt", "Gestalt Agents"], ["context-mode", "Context Mode"]]) {
37948
37953
  const value = pluginVersion(inventory, name2);
37949
- if (value) await context.print(name2, value);
37954
+ if (value) await context.print(label, value);
37950
37955
  }
37956
+ const skillsContext = new SetupContext(context.invocation, context.streams, context.paths, metadata.version);
37957
+ await manageSkills(skillsContext, "status", "version");
37951
37958
  for (const [name2, label] of [["codex", "Codex CLI"], ["kimi", "Kimi CLI"]]) {
37952
37959
  const value = await context.executableVersion(name2);
37953
37960
  if (value !== null) await context.print(label, value);
@@ -39855,7 +39862,7 @@ function packagedWindowsHelper() {
39855
39862
  async function continueUpdatedManager(invocation, streams, options) {
39856
39863
  if (options.commands?.apiVersion !== 1 || typeof options.commands.launch !== "function" || !options.signal || invocation.argv[0] !== "__updated-manager") throw new Error("invalid managed updated-manager handoff");
39857
39864
  let unknown = false;
39858
- const metadata = { version: "0.20.1", help: "Usage: gestalt <command> [options]\n\nManage Gestalt Agents and Gestalt Mobile in isolated, user-owned directories.\n\nCommands:\n install [--extra-skills] Install or reconcile Agents, optional skills, and Mobile.\n agents install, update Install or reconcile Agents and context-mode only.\n update [COMPONENT] [--extra-skills]\n Update all installed managed components (default).\n update-restart [COMPONENT] [--extra-skills]\n Update from a live Mobile session, then restart Mobile.\n cli [--] [args...] Start Codex with ~/.codex-gestalt as CODEX_HOME.\n mobile [--] [args...] Start the managed Gestalt Mobile executable.\n Workspace defaults to ~/gestalt; override with --cwd ROOT.\n mobile reset-passkeys --public-origin ORIGIN --confirm\n Reset the local Mobile passkeys and browser sessions for a new hostname.\n scratch inspect --cwd ROOT --owner ID\n Inspect an empty Mobile containment fence (read-only).\n scratch recover --cwd ROOT --owner ID --expect TOKEN --confirm-quiescent\n Offline recovery after all owner processes have stopped.\n playwright install [VERSION] Install MCP; add missing system Chrome on Debian amd64.\n playwright update [VERSION] Stage, verify and activate an explicit package update.\n playwright version [--json] Read versioned installation metadata.\n playwright doctor [--json] [--launch] [--executable-path PATH] Check package and Chrome; optionally test a local page.\n playwright mcp --cwd ROOT Managed headless stdio (workspace profile).\n serena install Install private uv, Python 3.13 and tested Serena.\n serena update [VERSION] Validate and activate a release; retain prior tooling.\n serena version, -V Read installed package metadata without creating state.\n serena doctor [--cwd ROOT] Check install, sandbox, MCP tools and optional language readiness.\n serena index --cwd ROOT Explicit native symbol/cache warmup for one project.\n serena mcp --cwd ROOT Confined workspace MCP; always Codex context and editing mode.\n path [NAME|--json] Print managed executable and runtime paths.\n skills install, update Maintain the optional Dyne.org skill collection only.\n skills status [--json] Read installed version, revision and integrity.\n skills-export [ARCHIVE] Export installed skills and skill profiles.\n skills-import ARCHIVE Import a skills archive into this installation.\n doctor [--cwd ROOT] Check prerequisites and installation.\n version Print manager and detected component versions.\n help Show this help.\n\nUpdate components (also accepted as --component COMPONENT):\n all Gestalt core plus installed Serena and Playwright (default).\n gestalt Manager, Agents, Mobile, and context-mode runtime.\n serena Latest stable Serena and its private uv/Python tooling.\n playwright Stable Playwright MCP package; Chrome is externally maintained.\n\nOptional components absent from this installation are skipped by 'all'.\nSelecting serena or playwright explicitly installs or updates that component only.\n--extra-skills applies only to all or gestalt; it adds curated third-party skills.\nNode, npm, Codex, Kimi, and system language servers are externally maintained.\n\nEnvironment:\n CODEX_HOME Isolated Codex home (default: ~/.codex-gestalt).\n GESTALT_HOME Runtime and Mobile root (default: ~/.gestalt).\n GESTALT_INSTALL_BASE_URL Manager update source (default: https://dyne.github.io/gestalt).\n GESTALT_MARKETPLACE Marketplace source (default: dyne/gestalt-agents).\n GESTALT_MARKETPLACE_NAME Codex checkout name (default: dyne-gestalt-agents).\n GESTALT_MOBILE_VERSION npm version or tag (default: latest).\n GESTALT_SKILLS_SOURCE Collection source override (always unverified).\n GESTALT_SKILLS_REF Collection Git ref or immutable revision (default: main).\n" };
39865
+ const metadata = { version: "0.20.2", help: "Usage: gestalt <command> [options]\n\nManage Gestalt Agents and Gestalt Mobile in isolated, user-owned directories.\n\nCommands:\n install [--extra-skills] Install or reconcile Agents, optional skills, and Mobile.\n agents install, update Install or reconcile Agents and context-mode only.\n update [COMPONENT] [--extra-skills]\n Update all installed managed components (default).\n update-restart [COMPONENT] [--extra-skills]\n Update from a live Mobile session, then restart Mobile.\n cli [--] [args...] Start Codex with ~/.codex-gestalt as CODEX_HOME.\n mobile [--] [args...] Start the managed Gestalt Mobile executable.\n Workspace defaults to ~/gestalt; override with --cwd ROOT.\n mobile reset-passkeys --public-origin ORIGIN --confirm\n Reset the local Mobile passkeys and browser sessions for a new hostname.\n scratch inspect --cwd ROOT --owner ID\n Inspect an empty Mobile containment fence (read-only).\n scratch recover --cwd ROOT --owner ID --expect TOKEN --confirm-quiescent\n Offline recovery after all owner processes have stopped.\n playwright install [VERSION] Install MCP; add missing system Chrome on Debian amd64.\n playwright update [VERSION] Stage, verify and activate an explicit package update.\n playwright version [--json] Read versioned installation metadata.\n playwright doctor [--json] [--launch] [--executable-path PATH] Check package and Chrome; optionally test a local page.\n playwright mcp --cwd ROOT Managed headless stdio (workspace profile).\n serena install Install private uv, Python 3.13 and tested Serena.\n serena update [VERSION] Validate and activate a release; retain prior tooling.\n serena version, -V Read installed package metadata without creating state.\n serena doctor [--cwd ROOT] Check install, sandbox, MCP tools and optional language readiness.\n serena index --cwd ROOT Explicit native symbol/cache warmup for one project.\n serena mcp --cwd ROOT Confined workspace MCP; always Codex context and editing mode.\n path [NAME|--json] Print managed executable and runtime paths.\n skills install, update Maintain the optional Dyne.org skill collection only.\n skills status [--json] Read installed version, revision and integrity.\n skills-export [ARCHIVE] Export installed skills and skill profiles.\n skills-import ARCHIVE Import a skills archive into this installation.\n doctor [--cwd ROOT] Check prerequisites and installation.\n version Print manager and detected component versions.\n help Show this help.\n\nUpdate components (also accepted as --component COMPONENT):\n all Gestalt core plus installed Serena and Playwright (default).\n gestalt Manager, Agents, Mobile, and context-mode runtime.\n serena Latest stable Serena and its private uv/Python tooling.\n playwright Stable Playwright MCP package; Chrome is externally maintained.\n\nOptional components absent from this installation are skipped by 'all'.\nSelecting serena or playwright explicitly installs or updates that component only.\n--extra-skills applies only to all or gestalt; it adds curated third-party skills.\nNode, npm, Codex, Kimi, and system language servers are externally maintained.\n\nEnvironment:\n CODEX_HOME Isolated Codex home (default: ~/.codex-gestalt).\n GESTALT_HOME Runtime and Mobile root (default: ~/.gestalt).\n GESTALT_INSTALL_BASE_URL Manager update source (default: https://dyne.github.io/gestalt).\n GESTALT_MARKETPLACE Marketplace source (default: dyne/gestalt-agents).\n GESTALT_MARKETPLACE_NAME Codex checkout name (default: dyne-gestalt-agents).\n GESTALT_MOBILE_VERSION npm version or tag (default: latest).\n GESTALT_SKILLS_SOURCE Collection source override (always unverified).\n GESTALT_SKILLS_REF Collection Git ref or immutable revision (default: main).\n" };
39859
39866
  const status = await runCli(
39860
39867
  { argv: [...invocation.argv], cwd: invocation.cwd, environment: { ...invocation.environment } },
39861
39868
  streams,
@@ -39902,7 +39909,7 @@ async function main2() {
39902
39909
  const selected = selectInteractiveRuntime({ legacyManager: fileURLToPath7(new URL("./legacy/gestalt", import.meta.url)) });
39903
39910
  if (selected.kind === "unix-compatibility") selected.exec({ argv, cwd: process.cwd(), environment });
39904
39911
  }
39905
- const metadata = { version: "0.20.1", help: "Usage: gestalt <command> [options]\n\nManage Gestalt Agents and Gestalt Mobile in isolated, user-owned directories.\n\nCommands:\n install [--extra-skills] Install or reconcile Agents, optional skills, and Mobile.\n agents install, update Install or reconcile Agents and context-mode only.\n update [COMPONENT] [--extra-skills]\n Update all installed managed components (default).\n update-restart [COMPONENT] [--extra-skills]\n Update from a live Mobile session, then restart Mobile.\n cli [--] [args...] Start Codex with ~/.codex-gestalt as CODEX_HOME.\n mobile [--] [args...] Start the managed Gestalt Mobile executable.\n Workspace defaults to ~/gestalt; override with --cwd ROOT.\n mobile reset-passkeys --public-origin ORIGIN --confirm\n Reset the local Mobile passkeys and browser sessions for a new hostname.\n scratch inspect --cwd ROOT --owner ID\n Inspect an empty Mobile containment fence (read-only).\n scratch recover --cwd ROOT --owner ID --expect TOKEN --confirm-quiescent\n Offline recovery after all owner processes have stopped.\n playwright install [VERSION] Install MCP; add missing system Chrome on Debian amd64.\n playwright update [VERSION] Stage, verify and activate an explicit package update.\n playwright version [--json] Read versioned installation metadata.\n playwright doctor [--json] [--launch] [--executable-path PATH] Check package and Chrome; optionally test a local page.\n playwright mcp --cwd ROOT Managed headless stdio (workspace profile).\n serena install Install private uv, Python 3.13 and tested Serena.\n serena update [VERSION] Validate and activate a release; retain prior tooling.\n serena version, -V Read installed package metadata without creating state.\n serena doctor [--cwd ROOT] Check install, sandbox, MCP tools and optional language readiness.\n serena index --cwd ROOT Explicit native symbol/cache warmup for one project.\n serena mcp --cwd ROOT Confined workspace MCP; always Codex context and editing mode.\n path [NAME|--json] Print managed executable and runtime paths.\n skills install, update Maintain the optional Dyne.org skill collection only.\n skills status [--json] Read installed version, revision and integrity.\n skills-export [ARCHIVE] Export installed skills and skill profiles.\n skills-import ARCHIVE Import a skills archive into this installation.\n doctor [--cwd ROOT] Check prerequisites and installation.\n version Print manager and detected component versions.\n help Show this help.\n\nUpdate components (also accepted as --component COMPONENT):\n all Gestalt core plus installed Serena and Playwright (default).\n gestalt Manager, Agents, Mobile, and context-mode runtime.\n serena Latest stable Serena and its private uv/Python tooling.\n playwright Stable Playwright MCP package; Chrome is externally maintained.\n\nOptional components absent from this installation are skipped by 'all'.\nSelecting serena or playwright explicitly installs or updates that component only.\n--extra-skills applies only to all or gestalt; it adds curated third-party skills.\nNode, npm, Codex, Kimi, and system language servers are externally maintained.\n\nEnvironment:\n CODEX_HOME Isolated Codex home (default: ~/.codex-gestalt).\n GESTALT_HOME Runtime and Mobile root (default: ~/.gestalt).\n GESTALT_INSTALL_BASE_URL Manager update source (default: https://dyne.github.io/gestalt).\n GESTALT_MARKETPLACE Marketplace source (default: dyne/gestalt-agents).\n GESTALT_MARKETPLACE_NAME Codex checkout name (default: dyne-gestalt-agents).\n GESTALT_MOBILE_VERSION npm version or tag (default: latest).\n GESTALT_SKILLS_SOURCE Collection source override (always unverified).\n GESTALT_SKILLS_REF Collection Git ref or immutable revision (default: main).\n" };
39912
+ const metadata = { version: "0.20.2", help: "Usage: gestalt <command> [options]\n\nManage Gestalt Agents and Gestalt Mobile in isolated, user-owned directories.\n\nCommands:\n install [--extra-skills] Install or reconcile Agents, optional skills, and Mobile.\n agents install, update Install or reconcile Agents and context-mode only.\n update [COMPONENT] [--extra-skills]\n Update all installed managed components (default).\n update-restart [COMPONENT] [--extra-skills]\n Update from a live Mobile session, then restart Mobile.\n cli [--] [args...] Start Codex with ~/.codex-gestalt as CODEX_HOME.\n mobile [--] [args...] Start the managed Gestalt Mobile executable.\n Workspace defaults to ~/gestalt; override with --cwd ROOT.\n mobile reset-passkeys --public-origin ORIGIN --confirm\n Reset the local Mobile passkeys and browser sessions for a new hostname.\n scratch inspect --cwd ROOT --owner ID\n Inspect an empty Mobile containment fence (read-only).\n scratch recover --cwd ROOT --owner ID --expect TOKEN --confirm-quiescent\n Offline recovery after all owner processes have stopped.\n playwright install [VERSION] Install MCP; add missing system Chrome on Debian amd64.\n playwright update [VERSION] Stage, verify and activate an explicit package update.\n playwright version [--json] Read versioned installation metadata.\n playwright doctor [--json] [--launch] [--executable-path PATH] Check package and Chrome; optionally test a local page.\n playwright mcp --cwd ROOT Managed headless stdio (workspace profile).\n serena install Install private uv, Python 3.13 and tested Serena.\n serena update [VERSION] Validate and activate a release; retain prior tooling.\n serena version, -V Read installed package metadata without creating state.\n serena doctor [--cwd ROOT] Check install, sandbox, MCP tools and optional language readiness.\n serena index --cwd ROOT Explicit native symbol/cache warmup for one project.\n serena mcp --cwd ROOT Confined workspace MCP; always Codex context and editing mode.\n path [NAME|--json] Print managed executable and runtime paths.\n skills install, update Maintain the optional Dyne.org skill collection only.\n skills status [--json] Read installed version, revision and integrity.\n skills-export [ARCHIVE] Export installed skills and skill profiles.\n skills-import ARCHIVE Import a skills archive into this installation.\n doctor [--cwd ROOT] Check prerequisites and installation.\n version Print manager and detected component versions.\n help Show this help.\n\nUpdate components (also accepted as --component COMPONENT):\n all Gestalt core plus installed Serena and Playwright (default).\n gestalt Manager, Agents, Mobile, and context-mode runtime.\n serena Latest stable Serena and its private uv/Python tooling.\n playwright Stable Playwright MCP package; Chrome is externally maintained.\n\nOptional components absent from this installation are skipped by 'all'.\nSelecting serena or playwright explicitly installs or updates that component only.\n--extra-skills applies only to all or gestalt; it adds curated third-party skills.\nNode, npm, Codex, Kimi, and system language servers are externally maintained.\n\nEnvironment:\n CODEX_HOME Isolated Codex home (default: ~/.codex-gestalt).\n GESTALT_HOME Runtime and Mobile root (default: ~/.gestalt).\n GESTALT_INSTALL_BASE_URL Manager update source (default: https://dyne.github.io/gestalt).\n GESTALT_MARKETPLACE Marketplace source (default: dyne/gestalt-agents).\n GESTALT_MARKETPLACE_NAME Codex checkout name (default: dyne-gestalt-agents).\n GESTALT_MOBILE_VERSION npm version or tag (default: latest).\n GESTALT_SKILLS_SOURCE Collection source override (always unverified).\n GESTALT_SKILLS_REF Collection Git ref or immutable revision (default: main).\n" };
39906
39913
  const ownershipHelper = packagedWindowsHelper();
39907
39914
  return runCli(
39908
39915
  { argv, cwd: process.cwd(), environment },
@@ -3,7 +3,7 @@
3
3
  set -Eeuo pipefail
4
4
  IFS=$'\n\t'
5
5
 
6
- readonly GESTALT_CLI_VERSION='0.20.1'
6
+ readonly GESTALT_CLI_VERSION='0.20.2'
7
7
  readonly DEFAULT_INSTALL_BASE_URL='https://dyne.github.io/gestalt'
8
8
  readonly DEFAULT_MARKETPLACE='dyne/gestalt-agents'
9
9
  readonly DEFAULT_MARKETPLACE_NAME='dyne-gestalt-agents'
@@ -2468,6 +2468,11 @@ command_skills() {
2468
2468
  *) die 'usage: gestalt skills install|update|status [--json]' ;;
2469
2469
  esac
2470
2470
  [[ $operation == status ]] || (($# == 1)) || die 'skills maintenance does not accept additional arguments'
2471
+ run_skills "$operation" "$output_mode"
2472
+ }
2473
+
2474
+ run_skills() {
2475
+ local -r operation=$1 output_mode=$2
2471
2476
  require_command node
2472
2477
  if [[ $operation != status ]]; then require_command git; fi
2473
2478
  node - "$operation" "$codex_home" "$DEFAULT_SKILLS_SOURCE" "$DEFAULT_SKILLS_REF" "$output_mode" <<'JS'
@@ -2741,6 +2746,13 @@ function status() {
2741
2746
  report.status = 'damaged'; report.integrity = 'invalid'; report.verifiedSource = false;
2742
2747
  report.recoveryCommand = 'gestalt skills update'; report.reason = error.message.slice(0, 512);
2743
2748
  }
2749
+ if (outputMode === 'version') {
2750
+ const value = report.status === 'ready' ? report.version
2751
+ : report.status === 'missing' ? 'NOT INSTALLED (optional)'
2752
+ : `${report.status.toUpperCase()} (see gestalt skills status)`;
2753
+ console.log(value);
2754
+ return;
2755
+ }
2744
2756
  if (outputMode === 'json') console.log(JSON.stringify(report));
2745
2757
  else {
2746
2758
  console.log(`Gestalt skills ${report.status.toUpperCase()}${report.version ? ` (${report.version}; ${report.revision})` : ''}`);
@@ -5462,8 +5474,8 @@ print_check() {
5462
5474
  }
5463
5475
 
5464
5476
  command_version() {
5465
- local value plugin
5466
- printf 'gestalt %s\n' "$GESTALT_CLI_VERSION"
5477
+ local value plugin label
5478
+ printf 'Gestalt Manager %s\n' "$GESTALT_CLI_VERSION"
5467
5479
  if [[ -x $mobile_bin ]]; then
5468
5480
  value=$("$mobile_bin" --version 2>/dev/null) && print_check 'Gestalt Mobile' "$value"
5469
5481
  fi
@@ -5471,8 +5483,12 @@ command_version() {
5471
5483
  [[ -d $codex_home ]] || break
5472
5484
  value=$(CODEX_HOME=$codex_home codex plugin list --marketplace "$marketplace_name" --json 2>/dev/null |
5473
5485
  read_plugin_version "$plugin" 2>/dev/null) || continue
5474
- print_check "$plugin" "$value"
5486
+ label='Context Mode'
5487
+ if [[ $plugin == gestalt ]]; then label='Gestalt Agents'; fi
5488
+ print_check "$label" "$value"
5475
5489
  done
5490
+ value=$(run_skills status version 2>/dev/null) || value='UNKNOWN (see gestalt skills status)'
5491
+ print_check 'Gestalt Skills' "$value"
5476
5492
  if command -v codex >/dev/null 2>&1; then
5477
5493
  value=$(codex --version 2>/dev/null) && print_check 'Codex CLI' "$value"
5478
5494
  fi
@@ -2,7 +2,7 @@
2
2
  "source": "src/cli/platform/native/owned-process.c",
3
3
  "license": "MIT (full license in source)",
4
4
  "sourceSha256": "8b8499245e4213e3e842497f815d4b0d19685bcd806b461fdacb66119500ad58",
5
- "artifactSha256": "1c8651dc02a96bfa3c180493621b1980baf011c376bdcd6ea2a7fd0d9799fb05",
5
+ "artifactSha256": "33299d7332e29adc9068a19ebd394c34cf1b9eb3c55d0229c902848d50e52d34",
6
6
  "platform": "win32",
7
7
  "architecture": "x64",
8
8
  "node": "v24.22.3",
@@ -23,7 +23,7 @@
23
23
  "advapi32.lib",
24
24
  "netapi32.lib"
25
25
  ],
26
- "observedAt": "2026-11-24T02:04:45.250Z",
26
+ "observedAt": "2026-11-25T21:04:26.231Z",
27
27
  "sourceInputs": [
28
28
  {
29
29
  "path": "src/cli/platform/native/owned-process.c",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jaromil/gestalt",
3
3
  "type": "module",
4
- "version": "0.20.1",
4
+ "version": "0.20.2",
5
5
  "description": "Manage Gestalt's isolated Codex profile, agent skills and Mobile installation",
6
6
  "license": "AGPL-3.0-or-later",
7
7
  "author": "Dyne.org foundation",
@@ -44,5 +44,5 @@
44
44
  "access": "public",
45
45
  "registry": "https://registry.npmjs.org/"
46
46
  },
47
- "gitHead": "7521f35ba2a6bbe81fb4ae88af5de26e5382ade5"
47
+ "gitHead": "89db02fb605dfc9660276865c018db7f124a6239"
48
48
  }