@jaromil/gestalt 0.17.1 → 0.18.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/README.md +16 -0
- package/lib/gestalt.mjs +37236 -4070
- package/lib/legacy/gestalt +19 -20
- package/lib/native/gestalt-owned-process.exe +0 -0
- package/lib/native/gestalt-owned-process.exe.provenance.json +2 -2
- package/package.json +2 -2
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.18.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'
|
|
@@ -3906,6 +3906,16 @@ command_update() {
|
|
|
3906
3906
|
elif [[ $update_component == all ]]; then
|
|
3907
3907
|
log 'skipping Playwright (not installed; use gestalt playwright install)'
|
|
3908
3908
|
fi
|
|
3909
|
+
log 'running post-update diagnostics'
|
|
3910
|
+
if ! (
|
|
3911
|
+
case $update_component in
|
|
3912
|
+
all | gestalt) command_doctor ;;
|
|
3913
|
+
serena) run_doctor_command 'Serena doctor' command_serena doctor ;;
|
|
3914
|
+
playwright) run_doctor_command 'Playwright doctor' command_playwright doctor ;;
|
|
3915
|
+
esac
|
|
3916
|
+
); then
|
|
3917
|
+
log 'post-update diagnostics reported a problem; see the checks above'
|
|
3918
|
+
fi
|
|
3909
3919
|
log "update complete ($update_component)"
|
|
3910
3920
|
}
|
|
3911
3921
|
|
|
@@ -4233,6 +4243,8 @@ const args = process.argv.slice(2);
|
|
|
4233
4243
|
const manager = process.env.GESTALT_MANAGER_BIN;
|
|
4234
4244
|
const scratchNames=['GESTALT_SESSION_TMP_CONTEXT','TMPDIR','TMP','TEMP'];
|
|
4235
4245
|
const environment={...process.env};
|
|
4246
|
+
const profileRules = environment.GESTALT_LAUNCH_SKILL_RULES;
|
|
4247
|
+
delete environment.GESTALT_LAUNCH_SKILL_RULES;
|
|
4236
4248
|
let cliOwned=false,scratchApi;
|
|
4237
4249
|
if(Object.hasOwn(environment,scratchNames[0])) {
|
|
4238
4250
|
const source=(await readFile(manager,'utf8')).match(/^\/\/ BEGIN SESSION SCRATCH RUNTIME\n([\s\S]*?)^\/\/ END SESSION SCRATCH RUNTIME/m);
|
|
@@ -4438,7 +4450,7 @@ async function resolveNamedProfile(state, deadline = readinessDeadline, includeS
|
|
|
4438
4450
|
}
|
|
4439
4451
|
try { state = await resolveNamedProfile(state); } catch { state = undefined; diagnose('profile-discovery-unavailable'); }
|
|
4440
4452
|
const session = state?.layers?.find(layer => layer.name?.type === 'sessionFlags')?.config ?? {};
|
|
4441
|
-
let rules = session.skills?.config ?? explicitSkills?.config ?? [];
|
|
4453
|
+
let rules = profileRules ? JSON.parse(profileRules) : session.skills?.config ?? explicitSkills?.config ?? [];
|
|
4442
4454
|
if (!Array.isArray(rules)) rules = [];
|
|
4443
4455
|
// Preserve unrelated selectors from effective config and user session flags.
|
|
4444
4456
|
const servers = state?.config?.mcp_servers ?? {};
|
|
@@ -5196,7 +5208,6 @@ command_cli() {
|
|
|
5196
5208
|
command_cli_owned() {
|
|
5197
5209
|
check_node_version
|
|
5198
5210
|
require_command codex
|
|
5199
|
-
run_startup_diagnostics
|
|
5200
5211
|
verify_context_mode_installation
|
|
5201
5212
|
forwarded_args=("$@")
|
|
5202
5213
|
resolve_manager_target
|
|
@@ -5328,7 +5339,7 @@ command_mobile() {
|
|
|
5328
5339
|
local mobile_restart_dir mobile_restart_state mobile_restart_staged restart_cwd
|
|
5329
5340
|
local context_mode_runtime context_mode_plugin_root gestalt_plugin_root
|
|
5330
5341
|
local plugin_inventory='' gestalt_agents_version='' context_mode_version=''
|
|
5331
|
-
local
|
|
5342
|
+
local mobile_arg_index
|
|
5332
5343
|
|
|
5333
5344
|
strip_separator "$@"
|
|
5334
5345
|
# Reject obsolete manually supplied options before installation or startup.
|
|
@@ -5342,12 +5353,6 @@ command_mobile() {
|
|
|
5342
5353
|
log 'Gestalt Mobile is not installed; installing it now'
|
|
5343
5354
|
install_mobile
|
|
5344
5355
|
fi
|
|
5345
|
-
for ((mobile_arg_index = 0; mobile_arg_index < ${#forwarded_args[@]}; mobile_arg_index++)); do
|
|
5346
|
-
if [[ ${forwarded_args[mobile_arg_index]} == --cwd && -d ${forwarded_args[mobile_arg_index+1]:-} ]]; then
|
|
5347
|
-
mobile_workspace=${forwarded_args[mobile_arg_index+1]}
|
|
5348
|
-
fi
|
|
5349
|
-
done
|
|
5350
|
-
run_startup_diagnostics --cwd "$mobile_workspace"
|
|
5351
5356
|
plugin_inventory=$(CODEX_HOME=$codex_home codex plugin list \
|
|
5352
5357
|
--marketplace "$marketplace_name" --json 2>/dev/null) || plugin_inventory=''
|
|
5353
5358
|
if [[ -n $plugin_inventory ]]; then
|
|
@@ -5430,8 +5435,9 @@ command_version() {
|
|
|
5430
5435
|
print_check 'Serena' "${value:-NOT INSTALLED (optional)}"
|
|
5431
5436
|
value=$(command_playwright version 2>/dev/null || true)
|
|
5432
5437
|
print_check 'Playwright' "${value:-NOT INSTALLED (optional)}"
|
|
5433
|
-
|
|
5434
|
-
|
|
5438
|
+
if [[ -n $value ]]; then
|
|
5439
|
+
print_check 'Playwright readiness' 'NOT PROBED (use gestalt playwright doctor)'
|
|
5440
|
+
fi
|
|
5435
5441
|
value=$(serena_versions uv 2>/dev/null || true)
|
|
5436
5442
|
print_check 'uv (Serena)' "${value:-NOT INSTALLED (optional)}"
|
|
5437
5443
|
value=$(serena_versions python 2>/dev/null || true)
|
|
@@ -5792,13 +5798,6 @@ run_doctor_command() {
|
|
|
5792
5798
|
return 1
|
|
5793
5799
|
}
|
|
5794
5800
|
|
|
5795
|
-
run_startup_diagnostics() {
|
|
5796
|
-
log 'running startup diagnostics'
|
|
5797
|
-
if ! command_doctor "$@"; then
|
|
5798
|
-
log 'startup diagnostics reported a problem; launch will continue after required runtime checks'
|
|
5799
|
-
fi
|
|
5800
|
-
}
|
|
5801
|
-
|
|
5802
5801
|
run_codex_doctor() {
|
|
5803
5802
|
# Session scratch forwarding is required for session launches, but is optional
|
|
5804
5803
|
# for an operator's read-only diagnostics. Do not invent an owner or edit config.
|
|
@@ -5959,7 +5958,7 @@ command_doctor() {
|
|
|
5959
5958
|
printf "\nDiagnostics reported a problem; follow the failing check's guidance above. Use 'gestalt install' or 'gestalt update' only for missing or incompatible managed components.\n" >&2
|
|
5960
5959
|
return 1
|
|
5961
5960
|
fi
|
|
5962
|
-
printf "\nAll
|
|
5961
|
+
printf "\nAll diagnostics passed.\n"
|
|
5963
5962
|
}
|
|
5964
5963
|
|
|
5965
5964
|
main() {
|
|
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": "e7bf178c8c19d7e6ef9e7005b28339e1e2041fee7188a4126730df04f6431947",
|
|
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-23T07:18:44.884Z",
|
|
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.18.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": "
|
|
47
|
+
"gitHead": "42e48ca2fa173ac06cccdbd3d9b35efdd8fb3ea6"
|
|
48
48
|
}
|