@jaromil/gestalt 0.17.0 → 0.17.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.
package/lib/gestalt.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // GESTALT_CLI_VERSION='0.17.0'
2
+ // GESTALT_CLI_VERSION='0.17.1'
3
3
  // GESTALT_UPDATED_MANAGER_API='1'
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1057,7 +1057,7 @@ async function runCli(invocation, streams, metadata, handlers = {}) {
1057
1057
  import path15 from "node:path";
1058
1058
 
1059
1059
  // src/cli/setup/agents.ts
1060
- import { readFile as readFile3, realpath as realpath5, rm, unlink as unlink3 } from "node:fs/promises";
1060
+ import { readFile as readFile3, realpath as realpath5, rename as rename3, rm, unlink as unlink3 } from "node:fs/promises";
1061
1061
  import path10 from "node:path";
1062
1062
  import { pathToFileURL } from "node:url";
1063
1063
 
@@ -2928,7 +2928,8 @@ async function setupPaths(environment, ownershipHelper) {
2928
2928
  throw new Error("CODEX_HOME and GESTALT_HOME must be separate, non-nested directories");
2929
2929
  }
2930
2930
  const marketplaceName = environment.GESTALT_MARKETPLACE_NAME || "dyne-gestalt-agents";
2931
- if (!/^[A-Za-z0-9._+-]+$/.test(marketplaceName)) throw new Error("invalid marketplace name");
2931
+ if (!/^[A-Za-z0-9._+-]+$/.test(marketplaceName) || marketplaceName === "." || marketplaceName === "..")
2932
+ throw new Error("invalid marketplace name");
2932
2933
  const manager = fileURLToPath2(import.meta.url);
2933
2934
  return {
2934
2935
  userHome,
@@ -3266,6 +3267,15 @@ async function acquireSetupGate(storage) {
3266
3267
 
3267
3268
  // src/cli/setup/agents.ts
3268
3269
  var setupCapabilities = ["async-owned-commands-v1", "host-filesystem-v1", "shared-context-v1"];
3270
+ var windowsAgentsRevision = "b4f783d75c0543010c665072bf7aef07f74f973f";
3271
+ async function moveMarketplaceCache(source, destination) {
3272
+ const entry = await optionalStat(source);
3273
+ if (!entry) return false;
3274
+ if (!entry.isDirectory() || await realpath5(source) !== source)
3275
+ throw new Error(`marketplace cache is not a direct directory: ${source}`);
3276
+ await rename3(source, destination);
3277
+ return true;
3278
+ }
3269
3279
  function installedPlugins(text) {
3270
3280
  const result = JSON.parse(text);
3271
3281
  const plugins = Array.isArray(result) ? result : result?.installed;
@@ -3309,7 +3319,7 @@ async function claimHomes(storages) {
3309
3319
  for (const release of releases.reverse()) await release();
3310
3320
  };
3311
3321
  }
3312
- async function setupAgents(context, mode, extraSkills) {
3322
+ async function setupAgents(context, _mode, extraSkills) {
3313
3323
  if (Number(process.versions.node.split(".")[0]) < 24) throw new Error(`Node.js 24 or newer is required; found ${process.versions.node}`);
3314
3324
  await context.require("npm");
3315
3325
  await context.require("codex");
@@ -3317,8 +3327,10 @@ async function setupAgents(context, mode, extraSkills) {
3317
3327
  const { codexHome, gestaltHome, marketplace, marketplaceName, userHome, manager } = context.paths;
3318
3328
  const codexStorage = await context.storage(codexHome), gestaltStorage = await context.storage(gestaltHome);
3319
3329
  const operation = await codexStorage.acquireLock(path10.join(codexHome, ".gestalt-manager-setup.lock"));
3330
+ const cache = path10.join(codexHome, ".tmp/marketplaces", marketplaceName);
3320
3331
  let releaseGate = null;
3321
3332
  let stage2 = null, original = null, snapshotReady = false, preserve = false, retainLocks = false;
3333
+ let registering = false, savedCache = null;
3322
3334
  const configFile = path10.join(codexHome, "config.toml");
3323
3335
  const normalize = async () => {
3324
3336
  const before = await readProfile(configFile), source = before?.bytes.toString("utf8") ?? "";
@@ -3343,19 +3355,22 @@ async function setupAgents(context, mode, extraSkills) {
3343
3355
  await releaseGate();
3344
3356
  releaseGate = null;
3345
3357
  const override = context.environment.GESTALT_AGENTS_SOURCE;
3346
- const sourceRoot = override ? await realpath5(override) : path10.join(codexHome, ".tmp/marketplaces", marketplaceName);
3358
+ const sourceRoot = override ? await realpath5(override) : cache;
3347
3359
  const setup = path10.join(sourceRoot, "gestalt-setup.mjs");
3348
- const action = mode === "install" && !await optionalStat(setup) ? "add" : "upgrade";
3349
- await context.log(`${action} marketplace ${override || marketplace} in ${codexHome}`);
3350
- if (override) await context.run("codex", ["plugin", "marketplace", "add", sourceRoot]);
3351
- else {
3352
- try {
3353
- await context.run("codex", ["plugin", "marketplace", action, action === "add" ? marketplace : marketplaceName]);
3354
- } catch {
3355
- context.check();
3356
- await context.log(`marketplace ${action} unavailable; attempting ${action === "add" ? "an upgrade" : "a fresh registration"}`);
3357
- await context.run("codex", ["plugin", "marketplace", action === "add" ? "upgrade" : "add", action === "add" ? marketplaceName : marketplace]);
3358
- }
3360
+ const marketplaces = original && parse(original.bytes.toString("utf8")).marketplaces;
3361
+ if (override) {
3362
+ await context.log(`add marketplace ${sourceRoot} in ${codexHome}`);
3363
+ await context.run("codex", ["plugin", "marketplace", "add", sourceRoot]);
3364
+ } else if (marketplaces && typeof marketplaces === "object" && Object.hasOwn(marketplaces, marketplaceName)) {
3365
+ await context.log(`upgrade marketplace ${marketplaceName} in ${codexHome}`);
3366
+ await context.run("codex", ["plugin", "marketplace", "upgrade", marketplaceName]);
3367
+ } else {
3368
+ const source = process.platform === "win32" && !context.environment.GESTALT_MARKETPLACE ? `${marketplace}@${windowsAgentsRevision}` : marketplace;
3369
+ const backup = path10.join(stage2, "previous-marketplace");
3370
+ if (await moveMarketplaceCache(cache, backup)) savedCache = backup;
3371
+ registering = true;
3372
+ await context.log(`add marketplace ${source} in ${codexHome}`);
3373
+ await context.run("codex", ["plugin", "marketplace", "add", source]);
3359
3374
  }
3360
3375
  if (!(await optionalStat(setup))?.isFile() || await realpath5(setup) !== setup)
3361
3376
  throw new Error(`marketplace native Node setup is missing or redirected: ${setup}; update Gestalt Agents to a native-capable release`);
@@ -3464,6 +3479,10 @@ async function setupAgents(context, mode, extraSkills) {
3464
3479
  const current = await readProfile(configFile);
3465
3480
  if (original) await replaceProfile(codexStorage, configFile, original.bytes, current);
3466
3481
  else if (current) await unlink3(configFile);
3482
+ if (registering && stage2) {
3483
+ await moveMarketplaceCache(cache, path10.join(stage2, "failed-marketplace"));
3484
+ if (savedCache) await rename3(savedCache, cache);
3485
+ }
3467
3486
  await context.log("previous configuration restored after owned setup writers stopped");
3468
3487
  } catch (rollback) {
3469
3488
  preserve = true;
@@ -3481,7 +3500,7 @@ async function setupAgents(context, mode, extraSkills) {
3481
3500
 
3482
3501
  // src/cli/setup/mobile.ts
3483
3502
  import { randomUUID as randomUUID5 } from "node:crypto";
3484
- import { cp, readFile as readFile4, realpath as realpath6, rename as rename3, rm as rm2 } from "node:fs/promises";
3503
+ import { cp, readFile as readFile4, realpath as realpath6, rename as rename4, rm as rm2 } from "node:fs/promises";
3485
3504
  import path11 from "node:path";
3486
3505
  function mobileHostSupport(platform = process.platform) {
3487
3506
  if (platform === "linux" || platform === "darwin") return { supported: true, prerequisite: null };
@@ -3531,10 +3550,10 @@ async function installMobile(context, explicit = false) {
3531
3550
  throw new Error(`installed Mobile package does not support ${process.platform}`);
3532
3551
  context.check();
3533
3552
  if (old) {
3534
- await rename3(destination, previous);
3553
+ await rename4(destination, previous);
3535
3554
  movedPrevious = true;
3536
3555
  }
3537
- await rename3(stage2, destination);
3556
+ await rename4(stage2, destination);
3538
3557
  activated = true;
3539
3558
  if (movedPrevious && context.canRollback()) await rm2(previous, { recursive: true });
3540
3559
  if (!context.canRollback()) {
@@ -3548,7 +3567,7 @@ async function installMobile(context, explicit = false) {
3548
3567
  await context.log(`Mobile update cleanup is unconfirmed; installation stage, previous package and lock retained at ${stage2}`);
3549
3568
  throw error;
3550
3569
  }
3551
- if (movedPrevious && !activated) await rename3(previous, destination);
3570
+ if (movedPrevious && !activated) await rename4(previous, destination);
3552
3571
  throw error;
3553
3572
  } finally {
3554
3573
  unlisten();
@@ -3558,7 +3577,7 @@ async function installMobile(context, explicit = false) {
3558
3577
  }
3559
3578
 
3560
3579
  // src/cli/setup/manager-update.ts
3561
- import { chmod as chmod2, lstat as lstat7, mkdir as mkdir4, mkdtemp, readFile as readFile5, rename as rename4, rm as rm3, writeFile as writeFile2 } from "node:fs/promises";
3580
+ import { chmod as chmod2, lstat as lstat7, mkdir as mkdir3, mkdtemp, readFile as readFile5, rename as rename5, rm as rm3, writeFile } from "node:fs/promises";
3562
3581
  import { tmpdir } from "node:os";
3563
3582
  import path12 from "node:path";
3564
3583
  import { fileURLToPath as fileURLToPath3, pathToFileURL as pathToFileURL2 } from "node:url";
@@ -3575,7 +3594,7 @@ async function updateManager(context, originalArgv, resumed) {
3575
3594
  if (!current) throw new Error(`could not resolve manager executable: ${target}`);
3576
3595
  const lockRoot = path12.join(directory, ".gestalt-manager-update.lock");
3577
3596
  if (process.platform === "win32") await windowsSystem({ operation: "create-directory", path: lockRoot });
3578
- else await mkdir4(lockRoot, { mode: 448 });
3597
+ else await mkdir3(lockRoot, { mode: 448 });
3579
3598
  const storage = await NativePrivateStorage.open(lockRoot, context.paths.unixProbe, context.windowsReadHelper);
3580
3599
  const lockIdentity = await lstat7(lockRoot, { bigint: true });
3581
3600
  const scratch = await mkdtemp(path12.join(tmpdir(), "gestalt-update."));
@@ -3610,7 +3629,7 @@ async function updateManager(context, originalArgv, resumed) {
3610
3629
  if (!/^#!\/usr\/bin\/env node\r?\n/.test(text) || (text.match(/^\/\/ GESTALT_CLI_VERSION='(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)'$/gm) ?? []).length !== 1 || (text.match(/^\/\/ GESTALT_UPDATED_MANAGER_API='1'$/gm) ?? []).length !== 1)
3611
3630
  throw new Error("downloaded manager is missing its native version or host update API v1 declaration");
3612
3631
  const downloaded = path12.join(scratch, "gestalt.mjs");
3613
- await writeFile2(downloaded, bytes, { mode: 384 });
3632
+ await writeFile(downloaded, bytes, { mode: 384 });
3614
3633
  phase = "validating";
3615
3634
  const receipt = { schemaVersion: 1, target, argv: [...originalArgv], downloadedSha256: digest(bytes) };
3616
3635
  await storage.replaceFile(path12.join(lockRoot, "transaction.json"), Buffer.from(JSON.stringify({ ...receipt, phase, promoted }) + "\n"));
@@ -3630,7 +3649,7 @@ async function updateManager(context, originalArgv, resumed) {
3630
3649
  if (process.platform === "win32") await windowsSystem({ operation: "replace", source: staged, path: target });
3631
3650
  else {
3632
3651
  await chmod2(staged, current.mode);
3633
- await rename4(staged, target);
3652
+ await rename5(staged, target);
3634
3653
  }
3635
3654
  promoted = true;
3636
3655
  phase = "installed-pending-continuation";
@@ -3667,7 +3686,7 @@ async function updateManager(context, originalArgv, resumed) {
3667
3686
  await rm3(lockRoot, { recursive: true });
3668
3687
  } else {
3669
3688
  const unknown = Buffer.from(JSON.stringify({ schemaVersion: 1, phase, promoted, scratch, claims: context.unknownOwnership }) + "\n");
3670
- await writeFile2(path12.join(scratch, "ownership-unknown.json"), unknown, { mode: 384 });
3689
+ await writeFile(path12.join(scratch, "ownership-unknown.json"), unknown, { mode: 384 });
3671
3690
  await storage.replaceFile(path12.join(lockRoot, "ownership-unknown.json"), unknown);
3672
3691
  await context.log(`manager update subprocess cleanup is unknown; update lock and temporary download retained at ${lockRoot} and ${scratch}`);
3673
3692
  }
@@ -5156,12 +5175,12 @@ function createDiagnosticHandlers(metadata, port, ownershipHelper) {
5156
5175
  // src/cli/runtime/skills-transfer.ts
5157
5176
  import path21 from "node:path";
5158
5177
  import { randomUUID as randomUUID8 } from "node:crypto";
5159
- import { cp as cp2, link, lstat as lstat11, mkdir as mkdir6, readFile as readFile9, readdir as readdir2, realpath as realpath9, rename as rename5, rm as rm5, symlink, unlink as unlink5, writeFile as writeFile4 } from "node:fs/promises";
5178
+ import { cp as cp2, link, lstat as lstat11, mkdir as mkdir5, readFile as readFile9, readdir as readdir2, realpath as realpath9, rename as rename6, rm as rm5, symlink, unlink as unlink5, writeFile as writeFile3 } from "node:fs/promises";
5160
5179
 
5161
5180
  // src/cli/platform/archive.ts
5162
5181
  init_windows_system();
5163
5182
  import { constants as constants4 } from "node:fs";
5164
- import { lstat as lstat10, open as open4, readdir, mkdir as mkdir5, realpath as realpath8, writeFile as writeFile3 } from "node:fs/promises";
5183
+ import { lstat as lstat10, open as open4, readdir, mkdir as mkdir4, realpath as realpath8, writeFile as writeFile2 } from "node:fs/promises";
5165
5184
  import path20 from "node:path";
5166
5185
  import { gunzipSync, gzipSync } from "node:zlib";
5167
5186
  var maximumArchive = 64 * 1024 * 1024;
@@ -5285,7 +5304,7 @@ var NativeArchives = class {
5285
5304
  for (const part of relative.split("/").filter(Boolean)) {
5286
5305
  cursor = path20.join(cursor, part);
5287
5306
  try {
5288
- await mkdir5(cursor, { mode: 448 });
5307
+ await mkdir4(cursor, { mode: 448 });
5289
5308
  } catch (error) {
5290
5309
  if (error.code !== "EEXIST") throw error;
5291
5310
  }
@@ -5297,7 +5316,7 @@ var NativeArchives = class {
5297
5316
  if (entry.kind === "directory") await parents(entry.path);
5298
5317
  else {
5299
5318
  await parents(path20.posix.dirname(entry.path));
5300
- await writeFile3(path20.join(directory, ...entry.path.split("/")), entry.data, { flag: "wx", mode: entry.mode });
5319
+ await writeFile2(path20.join(directory, ...entry.path.split("/")), entry.data, { flag: "wx", mode: entry.mode });
5301
5320
  }
5302
5321
  }
5303
5322
  }
@@ -5352,7 +5371,7 @@ var NativeArchives = class {
5352
5371
  entries.push(Buffer.alloc(1024));
5353
5372
  const compressed = gzipSync(Buffer.concat(entries));
5354
5373
  if (compressed.length > maximumArchive) throw new Error("Archive exceeds supported size");
5355
- await writeFile3(destination, compressed, { flag: "wx", mode: 384 });
5374
+ await writeFile2(destination, compressed, { flag: "wx", mode: 384 });
5356
5375
  }
5357
5376
  };
5358
5377
 
@@ -5419,11 +5438,11 @@ async function exportSkills(context, argv) {
5419
5438
  let skillCount = 0, profileCount = 0;
5420
5439
  const temporary = path21.join(parent, `.gestalt-skills-${randomUUID8()}.tar.gz`);
5421
5440
  try {
5422
- await mkdir6(bundle, { mode: 448 });
5441
+ await mkdir5(bundle, { mode: 448 });
5423
5442
  for (let index = 0; index < categories.length; index++) {
5424
5443
  context.check();
5425
5444
  const source = destinations[index], destination = path21.join(bundle, categories[index]);
5426
- await mkdir6(destination, { mode: 448 });
5445
+ await mkdir5(destination, { mode: 448 });
5427
5446
  const info = await optionalStat(source);
5428
5447
  if (!info) continue;
5429
5448
  if (!info.isDirectory() || info.isSymbolicLink()) throw new Error(`skill root must be a directory without links: ${source}`);
@@ -5459,9 +5478,9 @@ async function exportSkills(context, argv) {
5459
5478
  const profiles = path21.join(bundle, "skill-profiles"), collection = path21.join(context.paths.codexHome, "gestalt-skills/skills");
5460
5479
  if (await optionalStat(collection)) for (const profile of await readdir2(profiles)) {
5461
5480
  const file = path21.join(profiles, profile);
5462
- await writeFile4(file, (await readFile9(file, "utf8")).replaceAll(await realpath9(collection) + path21.sep, destinations[2] + path21.sep), { mode: 384 });
5481
+ await writeFile3(file, (await readFile9(file, "utf8")).replaceAll(await realpath9(collection) + path21.sep, destinations[2] + path21.sep), { mode: 384 });
5463
5482
  }
5464
- await writeFile4(path21.join(bundle, "manifest.json"), JSON.stringify({
5483
+ await writeFile3(path21.join(bundle, "manifest.json"), JSON.stringify({
5465
5484
  format: archiveRoot,
5466
5485
  version: 1,
5467
5486
  managerVersion: context.version,
@@ -5541,12 +5560,12 @@ async function importSkills(context, argv) {
5541
5560
  skillCount++;
5542
5561
  }
5543
5562
  context.check();
5544
- if (original) await rename5(target, previous);
5563
+ if (original) await rename6(target, previous);
5545
5564
  try {
5546
- await rename5(candidate, target);
5565
+ await rename6(candidate, target);
5547
5566
  record.promoted = true;
5548
5567
  } catch (error) {
5549
- if (original) await rename5(previous, target);
5568
+ if (original) await rename6(previous, target);
5550
5569
  throw error;
5551
5570
  }
5552
5571
  await transaction.storage.replaceFile(path21.join(transaction.directory, "journal.json"), Buffer.from(JSON.stringify({ schemaVersion: 1, promotions }) + "\n"));
@@ -5567,7 +5586,7 @@ async function importSkills(context, argv) {
5567
5586
  for (const file of createdLinks) await unlink5(file);
5568
5587
  for (const record of [...promotions].reverse()) {
5569
5588
  if (record.promoted) await rm5(record.target, { recursive: true });
5570
- if (await optionalStat(record.previous)) await rename5(record.previous, record.target);
5589
+ if (await optionalStat(record.previous)) await rename6(record.previous, record.target);
5571
5590
  }
5572
5591
  } catch {
5573
5592
  retain = true;
@@ -6666,7 +6685,7 @@ function packagedWindowsHelper() {
6666
6685
  async function continueUpdatedManager(invocation, streams, options) {
6667
6686
  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");
6668
6687
  let unknown = false;
6669
- const metadata = { version: "0.17.0", 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 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" };
6688
+ const metadata = { version: "0.17.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 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" };
6670
6689
  const status = await runCli(
6671
6690
  { argv: [...invocation.argv], cwd: invocation.cwd, environment: { ...invocation.environment } },
6672
6691
  streams,
@@ -6699,7 +6718,7 @@ async function main() {
6699
6718
  stdout: (bytes) => write(process.stdout, bytes),
6700
6719
  stderr: (bytes) => write(process.stderr, bytes)
6701
6720
  };
6702
- const metadata = { version: "0.17.0", 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 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" };
6721
+ const metadata = { version: "0.17.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 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" };
6703
6722
  const ownershipHelper = packagedWindowsHelper();
6704
6723
  return runCli(
6705
6724
  { argv: process.argv.slice(2), cwd: process.cwd(), environment: process.env },
@@ -3,7 +3,7 @@
3
3
  set -Eeuo pipefail
4
4
  IFS=$'\n\t'
5
5
 
6
- readonly GESTALT_CLI_VERSION='0.17.0'
6
+ readonly GESTALT_CLI_VERSION='0.17.1'
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'
@@ -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": "48f6559ad2157a7dfa8bf30f2418773ca6f3ae0ae1769e3700e40ce718e6be94",
5
+ "artifactSha256": "0ce1c832a7b0e2acf24116ea1738ba04f83c57c453258c6fba43ae5a340bc7c6",
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-19T19:59:39.620Z",
26
+ "observedAt": "2026-11-21T08:41:00.863Z",
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.17.0",
4
+ "version": "0.17.1",
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": "8ab9cc5e34195522a8c1ce1d045937d7fefb46e7"
47
+ "gitHead": "2730cb5270c100a9e4694e8154995730bd576962"
48
48
  }