agentwheel 0.19.9 → 0.20.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/AGENT.md +3 -3
- package/README.md +28 -2
- package/dist/apply-7HJQQOCI.js +15 -0
- package/dist/{chunk-UQLRZV5W.js → chunk-7VPI5J5Y.js} +2 -31
- package/dist/chunk-EMDIG24I.js +34 -0
- package/dist/chunk-HOYIIUL5.js +3142 -0
- package/dist/chunk-USHT7FGV.js +2235 -0
- package/dist/{identify-ZL46CENS.js → identify-D64HZTUT.js} +2 -1
- package/dist/index.js +1560 -4067
- package/dist/transaction-IM5MZS4B.js +38 -0
- package/install.md +1 -1
- package/llms.txt +5 -4
- package/openpack.json +1 -1
- package/package.json +1 -1
- package/skills/agentwheel/SKILL.md +2 -2
- package/skills/agentwheel-discovery/SKILL.md +1 -1
- package/skills/agentwheel-smoke/scripts/smoke.mjs +8 -3
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
abortApplyJournal,
|
|
4
|
+
acquireApplyLock,
|
|
5
|
+
applyBackupDir,
|
|
6
|
+
applyJournalLinkDigest,
|
|
7
|
+
applyJournalPath,
|
|
8
|
+
applyLockPath,
|
|
9
|
+
assertApplyJournalRecoveryAllowed,
|
|
10
|
+
assertGovernedRuntimeTransportSupported,
|
|
11
|
+
localPathExists,
|
|
12
|
+
mutationMetadataForApplyJournal,
|
|
13
|
+
readApplyJournal,
|
|
14
|
+
readLinkedLocalApplyJournal,
|
|
15
|
+
recordBackup,
|
|
16
|
+
removeApplyJournal,
|
|
17
|
+
rollbackCompletedOperations,
|
|
18
|
+
writeApplyJournal
|
|
19
|
+
} from "./chunk-HOYIIUL5.js";
|
|
20
|
+
import "./chunk-7VPI5J5Y.js";
|
|
21
|
+
export {
|
|
22
|
+
abortApplyJournal,
|
|
23
|
+
acquireApplyLock,
|
|
24
|
+
applyBackupDir,
|
|
25
|
+
applyJournalLinkDigest,
|
|
26
|
+
applyJournalPath,
|
|
27
|
+
applyLockPath,
|
|
28
|
+
assertApplyJournalRecoveryAllowed,
|
|
29
|
+
assertGovernedRuntimeTransportSupported,
|
|
30
|
+
localPathExists,
|
|
31
|
+
mutationMetadataForApplyJournal,
|
|
32
|
+
readApplyJournal,
|
|
33
|
+
readLinkedLocalApplyJournal,
|
|
34
|
+
recordBackup,
|
|
35
|
+
removeApplyJournal,
|
|
36
|
+
rollbackCompletedOperations,
|
|
37
|
+
writeApplyJournal
|
|
38
|
+
};
|
package/install.md
CHANGED
|
@@ -48,7 +48,7 @@ agentwheel --version
|
|
|
48
48
|
agentwheel doctor --help
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
-
Named fleets require a schema
|
|
51
|
+
Named fleets require a CLI that supports schema v3 or newer. Upgrade Agentwheel first, verify
|
|
52
52
|
`agentwheel --version` and `agentwheel fleet --help`, then create, register, inspect, or plan fleet
|
|
53
53
|
state. Do not rewrite the config to an older schema or remove named-fleet data to make an old CLI
|
|
54
54
|
accept it.
|
package/llms.txt
CHANGED
|
@@ -27,7 +27,8 @@ agentwheel doctor --adapter codex --local
|
|
|
27
27
|
agentwheel install github:NestDevLab/agentwheel --adapter codex --local --skill agentwheel
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
Named fleets are optional and require
|
|
31
|
-
desired-state scope when it matters: `--user`, `--local`, or `--fleet <fleet-id>`.
|
|
32
|
-
verify `agentwheel fleet --help` before creating, registering, or reading fleet state;
|
|
33
|
-
configuration guide for registration, plan-digested normalization, and journal
|
|
30
|
+
Named fleets are optional and require an Agentwheel CLI that supports schema v3 or newer. Select
|
|
31
|
+
exactly one desired-state scope when it matters: `--user`, `--local`, or `--fleet <fleet-id>`.
|
|
32
|
+
Upgrade and verify `agentwheel fleet --help` before creating, registering, or reading fleet state;
|
|
33
|
+
see the fleet configuration guide for registration, plan-digested normalization, and journal
|
|
34
|
+
recovery.
|
package/openpack.json
CHANGED
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ allowed-tools: [Bash]
|
|
|
5
5
|
license: MIT
|
|
6
6
|
metadata:
|
|
7
7
|
author: NestDevLab
|
|
8
|
-
version: "0.
|
|
8
|
+
version: "0.20.0"
|
|
9
9
|
---
|
|
10
10
|
|
|
11
11
|
# agentwheel
|
|
@@ -309,7 +309,7 @@ Named fleets are optional control-plane configurations. Select one explicitly wi
|
|
|
309
309
|
local, and fleet scopes are isolated desired state: Agentwheel does not merge them, and no fleet
|
|
310
310
|
has global priority.
|
|
311
311
|
|
|
312
|
-
Named fleets
|
|
312
|
+
Named fleets use workspace schema v3 or newer and require a compatible Agentwheel CLI. Upgrade first, verify
|
|
313
313
|
`agentwheel --version` and `agentwheel fleet --help`, then create or register fleet state. Do not
|
|
314
314
|
downgrade the config, strip named-fleet data, or run an old CLI against it.
|
|
315
315
|
|
|
@@ -20,7 +20,7 @@ if (parsed.error) {
|
|
|
20
20
|
const config = findConfigs(cwd, home);
|
|
21
21
|
const harness = detectHarness(skillRoot, cwd, home);
|
|
22
22
|
const envHint = detectHarnessFromEnv();
|
|
23
|
-
const agentwheel = inspectAgentwheel(parsed.statusArgs, envHint, harness);
|
|
23
|
+
const agentwheel = inspectAgentwheel(parsed.statusArgs, envHint, harness, config);
|
|
24
24
|
const manifests = findStateFiles(harness.runtimeRoot ?? projectRootFromConfig(config.projectConfig) ?? cwd);
|
|
25
25
|
const assessment = assess({ harness, agentwheel, manifests, config });
|
|
26
26
|
const report = {
|
|
@@ -66,12 +66,16 @@ function parseArgs(args) {
|
|
|
66
66
|
return { json, statusArgs };
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
function inspectAgentwheel(statusArgs, hint, harness) {
|
|
69
|
+
function inspectAgentwheel(statusArgs, hint, harness, config) {
|
|
70
70
|
const which = run("command", ["-v", "agentwheel"], { shell: true });
|
|
71
71
|
const version = which.ok ? run("agentwheel", ["--version"]) : { ok: false, code: null, stdout: "", stderr: "agentwheel not found" };
|
|
72
72
|
let effectiveStatusArgs = hasWorkspaceScope(statusArgs)
|
|
73
73
|
? statusArgs
|
|
74
|
-
:
|
|
74
|
+
: config.project?.fleetId
|
|
75
|
+
? ["--fleet", config.project.fleetId, ...statusArgs]
|
|
76
|
+
: config.projectConfig
|
|
77
|
+
? statusArgs
|
|
78
|
+
: [...defaultWorkspaceScope(harness), ...statusArgs];
|
|
75
79
|
let status = which.ok ? run("agentwheel", ["status", ...effectiveStatusArgs]) : { ok: false, code: null, stdout: "", stderr: "agentwheel not found" };
|
|
76
80
|
if (!status.ok && effectiveStatusArgs.length === 0 && /Multiple runtime directories detected/i.test(status.stderr) && hint?.adapter) {
|
|
77
81
|
effectiveStatusArgs = ["--adapter", hint.adapter, "--installation-type", hint.installationType ?? "local"];
|
|
@@ -145,6 +149,7 @@ function summarizeConfig(path) {
|
|
|
145
149
|
try {
|
|
146
150
|
const json = JSON.parse(readFileSync(path, "utf8"));
|
|
147
151
|
return {
|
|
152
|
+
fleetId: typeof json.fleetId === "string" ? json.fleetId : null,
|
|
148
153
|
packages: Array.isArray(json.packages) ? json.packages.map((entry) => entry.name ?? entry.source ?? "unnamed") : [],
|
|
149
154
|
agents: json.agents && typeof json.agents === "object" ? Object.keys(json.agents) : [],
|
|
150
155
|
profiles: json.profiles && typeof json.profiles === "object" ? Object.keys(json.profiles) : [],
|