@jaromil/gestalt 0.20.0 → 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.
|
|
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(`
|
|
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(`
|
|
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(
|
|
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.
|
|
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.
|
|
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 },
|
package/lib/legacy/gestalt
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
set -Eeuo pipefail
|
|
4
4
|
IFS=$'\n\t'
|
|
5
5
|
|
|
6
|
-
readonly GESTALT_CLI_VERSION='0.20.
|
|
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'
|
|
@@ -837,6 +837,8 @@ Commands:
|
|
|
837
837
|
cli [--] [args...] Start Codex with ~/.codex-gestalt as CODEX_HOME.
|
|
838
838
|
mobile [--] [args...] Start the managed Gestalt Mobile executable.
|
|
839
839
|
Workspace defaults to ~/gestalt; override with --cwd ROOT.
|
|
840
|
+
mobile reset-passkeys --public-origin ORIGIN --confirm
|
|
841
|
+
Reset the local Mobile passkeys and browser sessions for a new hostname.
|
|
840
842
|
scratch inspect --cwd ROOT --owner ID
|
|
841
843
|
Inspect an empty Mobile containment fence (read-only).
|
|
842
844
|
scratch recover --cwd ROOT --owner ID --expect TOKEN --confirm-quiescent
|
|
@@ -2466,6 +2468,11 @@ command_skills() {
|
|
|
2466
2468
|
*) die 'usage: gestalt skills install|update|status [--json]' ;;
|
|
2467
2469
|
esac
|
|
2468
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
|
|
2469
2476
|
require_command node
|
|
2470
2477
|
if [[ $operation != status ]]; then require_command git; fi
|
|
2471
2478
|
node - "$operation" "$codex_home" "$DEFAULT_SKILLS_SOURCE" "$DEFAULT_SKILLS_REF" "$output_mode" <<'JS'
|
|
@@ -2739,6 +2746,13 @@ function status() {
|
|
|
2739
2746
|
report.status = 'damaged'; report.integrity = 'invalid'; report.verifiedSource = false;
|
|
2740
2747
|
report.recoveryCommand = 'gestalt skills update'; report.reason = error.message.slice(0, 512);
|
|
2741
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
|
+
}
|
|
2742
2756
|
if (outputMode === 'json') console.log(JSON.stringify(report));
|
|
2743
2757
|
else {
|
|
2744
2758
|
console.log(`Gestalt skills ${report.status.toUpperCase()}${report.version ? ` (${report.version}; ${report.revision})` : ''}`);
|
|
@@ -5377,6 +5391,10 @@ command_mobile() {
|
|
|
5377
5391
|
local mobile_arg_index
|
|
5378
5392
|
|
|
5379
5393
|
strip_separator "$@"
|
|
5394
|
+
if [[ ${forwarded_args[0]:-} == reset-passkeys ]]; then
|
|
5395
|
+
[[ -x $mobile_bin ]] || die 'Gestalt Mobile is not installed; install it with gestalt update first'
|
|
5396
|
+
exec "$mobile_bin" "${forwarded_args[@]}"
|
|
5397
|
+
fi
|
|
5380
5398
|
# Reject obsolete manually supplied options before installation or startup.
|
|
5381
5399
|
# Stored descriptors are adapted separately by the explicit restart worker.
|
|
5382
5400
|
for ((mobile_arg_index = 0; mobile_arg_index < ${#forwarded_args[@]}; mobile_arg_index++)); do
|
|
@@ -5456,8 +5474,8 @@ print_check() {
|
|
|
5456
5474
|
}
|
|
5457
5475
|
|
|
5458
5476
|
command_version() {
|
|
5459
|
-
local value plugin
|
|
5460
|
-
printf '
|
|
5477
|
+
local value plugin label
|
|
5478
|
+
printf 'Gestalt Manager %s\n' "$GESTALT_CLI_VERSION"
|
|
5461
5479
|
if [[ -x $mobile_bin ]]; then
|
|
5462
5480
|
value=$("$mobile_bin" --version 2>/dev/null) && print_check 'Gestalt Mobile' "$value"
|
|
5463
5481
|
fi
|
|
@@ -5465,8 +5483,12 @@ command_version() {
|
|
|
5465
5483
|
[[ -d $codex_home ]] || break
|
|
5466
5484
|
value=$(CODEX_HOME=$codex_home codex plugin list --marketplace "$marketplace_name" --json 2>/dev/null |
|
|
5467
5485
|
read_plugin_version "$plugin" 2>/dev/null) || continue
|
|
5468
|
-
|
|
5486
|
+
label='Context Mode'
|
|
5487
|
+
if [[ $plugin == gestalt ]]; then label='Gestalt Agents'; fi
|
|
5488
|
+
print_check "$label" "$value"
|
|
5469
5489
|
done
|
|
5490
|
+
value=$(run_skills status version 2>/dev/null) || value='UNKNOWN (see gestalt skills status)'
|
|
5491
|
+
print_check 'Gestalt Skills' "$value"
|
|
5470
5492
|
if command -v codex >/dev/null 2>&1; then
|
|
5471
5493
|
value=$(codex --version 2>/dev/null) && print_check 'Codex CLI' "$value"
|
|
5472
5494
|
fi
|
|
Binary file
|
|
@@ -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": "
|
|
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-
|
|
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.
|
|
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": "
|
|
47
|
+
"gitHead": "89db02fb605dfc9660276865c018db7f124a6239"
|
|
48
48
|
}
|