@jaromil/gestalt 0.20.4 → 0.21.0
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.
|
|
2
|
+
// GESTALT_CLI_VERSION='0.21.0'
|
|
3
3
|
// GESTALT_UPDATED_MANAGER_API='1'
|
|
4
4
|
/*! tuiuiu.js
|
|
5
5
|
MIT License
|
|
@@ -35838,6 +35838,7 @@ var internalCommandNames = [
|
|
|
35838
35838
|
];
|
|
35839
35839
|
var commandAliases = { "--help": "help", "-h": "help", "--version": "version", "-V": "version" };
|
|
35840
35840
|
var retiredCommandNames = ["xerj"];
|
|
35841
|
+
var updateComponents = ["all", "gestalt", "mobile", "serena", "playwright"];
|
|
35841
35842
|
|
|
35842
35843
|
// src/cli/dispatch.ts
|
|
35843
35844
|
async function runCli(invocation, streams, metadata, handlers = {}) {
|
|
@@ -38215,18 +38216,18 @@ function parseUpdateOptions(argv) {
|
|
|
38215
38216
|
}
|
|
38216
38217
|
if (token === "--help" || token === "-h") return { component: component2, extra, help: true };
|
|
38217
38218
|
if (token === "--component") {
|
|
38218
|
-
if (!argv[index + 1]) throw new Error("--component requires all, gestalt, serena, or playwright");
|
|
38219
|
+
if (!argv[index + 1]) throw new Error("--component requires all, gestalt, mobile, serena, or playwright");
|
|
38219
38220
|
if (selected) throw new Error("select only one update component");
|
|
38220
38221
|
component2 = argv[++index];
|
|
38221
38222
|
selected = true;
|
|
38222
|
-
} else if (
|
|
38223
|
+
} else if (updateComponents.some((name2) => name2 === token)) {
|
|
38223
38224
|
if (selected) throw new Error("select only one update component");
|
|
38224
38225
|
component2 = token;
|
|
38225
38226
|
selected = true;
|
|
38226
38227
|
} else throw new Error(`unknown update option or component: ${token} (run 'gestalt update --help')`);
|
|
38227
38228
|
}
|
|
38228
38229
|
if (component2 === "xerj") throw new Error(retirement);
|
|
38229
|
-
if (!
|
|
38230
|
+
if (!updateComponents.some((name2) => name2 === component2)) throw new Error(`unknown update component: ${component2} (choose all, gestalt, mobile, serena, or playwright)`);
|
|
38230
38231
|
if (extra && !["all", "gestalt"].includes(component2)) throw new Error("--extra-skills requires the all or gestalt update component");
|
|
38231
38232
|
return { component: component2, extra, help: false };
|
|
38232
38233
|
}
|
|
@@ -38308,6 +38309,12 @@ async function runInstall(context, extra, operations = defaults, platform = proc
|
|
|
38308
38309
|
}
|
|
38309
38310
|
async function runUpdate(context, options, originalArgv, resumed, operations = defaults, platform = process.platform) {
|
|
38310
38311
|
requireSelection(options.component, platform);
|
|
38312
|
+
if (options.component === "mobile") {
|
|
38313
|
+
await operations.mobile(context);
|
|
38314
|
+
await context.log("update complete (mobile)");
|
|
38315
|
+
context.check();
|
|
38316
|
+
return false;
|
|
38317
|
+
}
|
|
38311
38318
|
if (options.component === "all" || options.component === "gestalt") {
|
|
38312
38319
|
if (await operations.manager(context, originalArgv, resumed)) return true;
|
|
38313
38320
|
await context.prepareHomes();
|
|
@@ -39905,7 +39912,7 @@ function packagedWindowsHelper() {
|
|
|
39905
39912
|
async function continueUpdatedManager(invocation, streams, options) {
|
|
39906
39913
|
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");
|
|
39907
39914
|
let unknown = false;
|
|
39908
|
-
const metadata = { version: "0.
|
|
39915
|
+
const metadata = { version: "0.21.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 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] [--prune-offline]\n Reuse a matching release; prune older ones after browser shutdown.\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] [--prune-offline]\n Update Serena; optionally remove inactive releases after shutdown.\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 mobile Gestalt Mobile package only.\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" };
|
|
39909
39916
|
const status = await runCli(
|
|
39910
39917
|
{ argv: [...invocation.argv], cwd: invocation.cwd, environment: { ...invocation.environment } },
|
|
39911
39918
|
streams,
|
|
@@ -39956,7 +39963,7 @@ async function main2() {
|
|
|
39956
39963
|
const selected = selectInteractiveRuntime({ legacyManager: fileURLToPath7(new URL("./legacy/gestalt", import.meta.url)) });
|
|
39957
39964
|
if (selected.kind === "unix-compatibility") selected.exec({ argv, cwd: process.cwd(), environment });
|
|
39958
39965
|
}
|
|
39959
|
-
const metadata = { version: "0.
|
|
39966
|
+
const metadata = { version: "0.21.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 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] [--prune-offline]\n Reuse a matching release; prune older ones after browser shutdown.\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] [--prune-offline]\n Update Serena; optionally remove inactive releases after shutdown.\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 mobile Gestalt Mobile package only.\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" };
|
|
39960
39967
|
const ownershipHelper = packagedWindowsHelper();
|
|
39961
39968
|
return runCli(
|
|
39962
39969
|
{ 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.
|
|
6
|
+
readonly GESTALT_CLI_VERSION='0.21.0'
|
|
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'
|
|
@@ -868,6 +868,7 @@ Commands:
|
|
|
868
868
|
Update components (also accepted as --component COMPONENT):
|
|
869
869
|
all Gestalt core plus installed Serena and Playwright (default).
|
|
870
870
|
gestalt Manager, Agents, Mobile, and context-mode runtime.
|
|
871
|
+
mobile Gestalt Mobile package only.
|
|
871
872
|
serena Latest stable Serena and its private uv/Python tooling.
|
|
872
873
|
playwright Stable Playwright MCP package; Chrome is externally maintained.
|
|
873
874
|
|
|
@@ -2064,6 +2065,7 @@ try {
|
|
|
2064
2065
|
!Array.isArray(d.tools) || !['find_symbol','get_symbols_overview','replace_symbol_body'].every(n => d.tools.some(t => t.name === n && t.inputSchema))) throw Error();
|
|
2065
2066
|
for (const p of [d.python, d.executable, d.uv]) fs.accessSync(p, fs.constants.X_OK);
|
|
2066
2067
|
if (!fs.statSync(d.pythonInstallDir).isDirectory()) throw Error();
|
|
2068
|
+
if (process.argv[3] === 'installed') { console.log(d.version); process.exit(0); }
|
|
2067
2069
|
const py = spawnSync(d.python, ['-I', '-B', '-c',
|
|
2068
2070
|
'import importlib.metadata, json, sys; print(json.dumps({"serena":importlib.metadata.version("serena-agent"),"python":".".join(map(str,sys.version_info[:3]))}))'],
|
|
2069
2071
|
{encoding:'utf8',timeout:5000,maxBuffer:65536});
|
|
@@ -4012,6 +4014,11 @@ command_install() {
|
|
|
4012
4014
|
command_update() {
|
|
4013
4015
|
parse_update_options "$@"
|
|
4014
4016
|
case $update_component in
|
|
4017
|
+
mobile)
|
|
4018
|
+
install_mobile
|
|
4019
|
+
log 'update complete (mobile)'
|
|
4020
|
+
return 0
|
|
4021
|
+
;;
|
|
4015
4022
|
all | gestalt)
|
|
4016
4023
|
update_manager
|
|
4017
4024
|
prepare_agents_homes
|
|
@@ -4061,13 +4068,13 @@ parse_update_options() {
|
|
|
4061
4068
|
--extra-skills) include_extra_skills=true ;;
|
|
4062
4069
|
-h | --help) usage; exit 0 ;;
|
|
4063
4070
|
--component)
|
|
4064
|
-
(($# >= 2)) || die '--component requires all, gestalt, serena, or playwright'
|
|
4071
|
+
(($# >= 2)) || die '--component requires all, gestalt, mobile, serena, or playwright'
|
|
4065
4072
|
[[ $component_selected == false ]] || die 'select only one update component'
|
|
4066
4073
|
update_component=$2
|
|
4067
4074
|
component_selected=true
|
|
4068
4075
|
shift
|
|
4069
4076
|
;;
|
|
4070
|
-
all | gestalt | serena | playwright)
|
|
4077
|
+
all | gestalt | mobile | serena | playwright)
|
|
4071
4078
|
[[ $component_selected == false ]] || die 'select only one update component'
|
|
4072
4079
|
update_component=$1
|
|
4073
4080
|
component_selected=true
|
|
@@ -4078,8 +4085,8 @@ parse_update_options() {
|
|
|
4078
4085
|
done
|
|
4079
4086
|
case $update_component in
|
|
4080
4087
|
xerj) die 'Xerj has been retired; run gestalt update to migrate managed configuration. User data is retained.' ;;
|
|
4081
|
-
all | gestalt | serena | playwright) ;;
|
|
4082
|
-
*) die "unknown update component: $update_component (choose all, gestalt, serena, or playwright)" ;;
|
|
4088
|
+
all | gestalt | mobile | serena | playwright) ;;
|
|
4089
|
+
*) die "unknown update component: $update_component (choose all, gestalt, mobile, serena, or playwright)" ;;
|
|
4083
4090
|
esac
|
|
4084
4091
|
[[ $include_extra_skills == false || $update_component == all || $update_component == gestalt ]] ||
|
|
4085
4092
|
die '--extra-skills requires the all or gestalt update component'
|
|
@@ -5553,9 +5560,7 @@ command_mobile() {
|
|
|
5553
5560
|
GESTALT_AGENTS_VERSION="$gestalt_agents_version" \
|
|
5554
5561
|
GESTALT_AGENTS_PLUGIN_ROOT="$gestalt_plugin_root" \
|
|
5555
5562
|
GESTALT_CONTEXT_MODE_VERSION="$context_mode_version" \
|
|
5556
|
-
GESTALT_SERENA_VERSION="$(serena_versions
|
|
5557
|
-
GESTALT_UV_VERSION="$(serena_versions uv 2>/dev/null || true)" \
|
|
5558
|
-
GESTALT_SERENA_PYTHON_VERSION="$(serena_versions python 2>/dev/null || true)" \
|
|
5563
|
+
GESTALT_SERENA_VERSION="$(serena_versions installed 2>/dev/null || true)" \
|
|
5559
5564
|
GESTALT_CONTEXT_MODE_PLUGIN_ROOT="$context_mode_plugin_root" \
|
|
5560
5565
|
GESTALT_CONTEXT_MODE_RUNTIME="$context_mode_runtime" \
|
|
5561
5566
|
GESTALT_MOBILE_BIN="$mobile_bin" \
|
|
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": "a3bc5f298001dfc680a30074ceb929765c4d1b11628d3201c9c11ffd880503e7",
|
|
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-12-
|
|
26
|
+
"observedAt": "2026-12-06T03:24:45.126Z",
|
|
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.
|
|
4
|
+
"version": "0.21.0",
|
|
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": "de602d1e2cb46270ecee14c3994961746fbcfccc"
|
|
48
48
|
}
|