@ipab/cli 0.1.0-rc.8 → 0.1.0-rc.9

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 CHANGED
@@ -3,7 +3,7 @@
3
3
  Node subprocess App host for IPAB (InterPlanetary Artifact Bundle). **Not a
4
4
  sandbox**: only execute Apps you trust.
5
5
 
6
- `0.1.0-rc.8` is being prepared, not published. It adds private Pivot networking
6
+ `0.1.0-rc.8` is published on the `rc` channel. It adds private Pivot networking
7
7
  and a foreground coordinator, State v6/root-State references, local Swarm alias
8
8
  management and aligned human-readable lists. Upgrade every Swarm client before
9
9
  activating the new networking: rc.7 rejects the new Profile `pivot` field,
@@ -54,15 +54,18 @@ stdio behavior. Stdout text is never interpreted as a result CID.
54
54
 
55
55
  Current source replaces `setup` with `ipab doctor`: read-only inspection of
56
56
  state/configuration, managed Kubo, HOME identity, local Swarm registration and
57
- compatible updates. `ipab doctor --fix --yes` authorizes only safe missing
58
- components and compatible stable Kubo upgrades within `^0.43.2`. Healthy current
59
- components require neither prompting nor download; archives are automatically
60
- verified and cached in the protected state directory. No daemon is contacted,
61
- started or stopped, and damaged credentials/installations are never replaced.
62
- For existing unverified Kubo, authorized repair downloads/caches the
63
- same-version official archive and compares bytes without executing or
64
- reinstalling the program. Matching bytes are reused; a mismatch is an error and
65
- never overwritten. Independent CID/local Store use still does not require Kubo.
57
+ compatible updates, plus the bundled IPAB Skill for detected global Agents.
58
+ `ipab doctor --fix --yes` also authorizes bundled Skill installation/updates,
59
+ without requiring a Swarm; custom edits and Swarm-managed installations are
60
+ protected. It otherwise authorizes only safe missing components and compatible
61
+ stable Kubo upgrades within `^0.43.2`. Healthy current components require
62
+ neither prompting nor download; archives are automatically verified and cached
63
+ in the protected state directory. No daemon is contacted, started or stopped,
64
+ and damaged credentials/installations are never replaced. For existing
65
+ unverified Kubo, authorized repair downloads/caches the same-version official
66
+ archive and compares bytes without executing or reinstalling the program.
67
+ Matching bytes are reused; a mismatch is an error and never overwritten.
68
+ Independent CID/local Store use still does not require Kubo.
66
69
 
67
70
  `0.1.0-rc.5` is published, with Kubo installation progress and cancellation,
68
71
  protected state storage, Scope request retries and local alias references in
@@ -74,11 +77,21 @@ ipab --version
74
77
  ipab --help
75
78
  ```
76
79
 
77
- Node.js 22.20.0 or newer is required for all commands. Shipped template and IPAB
78
- Skill CARs are creation seeds only: new Swarms include typed root State
79
- configuration, all four templates and ordinary `ipab/skills/ipab` in their first
80
- HEAD. Runtime `builtin:skill.ipab` is removed; cached exact CIDs remain usable
81
- offline. Upgrades never overwrite existing Swarms.
80
+ Node.js 22.20.0 or newer is required for all commands. Shipped template CARs are
81
+ creation seeds; the Skill CAR also supports doctor bootstrap: new Swarms include
82
+ typed root State configuration, all four templates and ordinary
83
+ `ipab/skills/ipab` in their first HEAD. Runtime `builtin:skill.ipab` is removed;
84
+ cached exact CIDs remain usable offline. Upgrades never overwrite existing
85
+ Swarms.
86
+
87
+ Actual Swarm network activation starts a background IPAB daemon on demand, one
88
+ per state directory, and waits for authenticated loopback readiness. Concurrent
89
+ commands reuse it; launch failures are explicit. Logs are in
90
+ `swarm-daemon/daemon.log`. No OS service or login task is registered; after a
91
+ reboot, the device stays offline until its next network operation. Help/version,
92
+ doctor, local operations and status/members inspections do not start the
93
+ manager. `ipab daemon` remains a foreground alternative when no manager already
94
+ owns the state directory.
82
95
 
83
96
  `ipab skills list` discovers the selected Swarm's exact typed Skills via root
84
97
  skillPath (legacy v2/v3/v4 use Meta.skillPath) and reports shared Names, payload
@@ -86,21 +99,25 @@ CIDs and installation status. `ipab skills sync [NAMES...]` uses the pinned
86
99
  official `npx skills@1.9.1` installer; NAMES accept install identities
87
100
  (`ipab code-review`) or full shared Names (`ipab/skills/ipab`), resolved against
88
101
  the same verified snapshot. The installer runs globally with `--copy`; repeat
89
- `--agent AGENT`, or use detected global agents. Skills operations require
90
- Node >=22.20.0. There is one selected Swarm per invocation and no `--all`.
91
- `--dry-run` previews source, installer version, agents, paths and file changes
92
- without npx. Noninteractive installation needs `--yes`, which skips IPAB consent
93
- only, never ownership/local-edit/cross-Swarm or symlink/junction protections.
94
- Removed sources are not automatically uninstalled. Account-wide attribution and
95
- pending recovery preserve partial successes, which are reported with nonzero
96
- status. Skill scripts/hooks do not run; the trusted installer is not a sandbox.
97
- Its telemetry, remote audits and npm lifecycle scripts are disabled. Shipping or
98
- installing a Skill does not configure automatic Agent loading. Old v5 State
99
- roots without skillPath retain their exact type/configuration on ordinary writes
100
- and require a new seeded Swarm with explicitly republished reviewed Names before
101
- Skills operations. A user Name ipab never overrides root configuration. Only
102
- legacy v2/v3/v4 standalone Meta can migrate by explicit new typed Meta
103
- publication with `--expect`; both known standalone Meta types remain readable.
102
+ `--agent AGENT`, or default to `universal` (`~/.agents/skills`). Doctor
103
+ bootstrap separately targets detected global Agents and never enables overrides.
104
+ Skills operations require Node >=22.20.0. There is one selected Swarm per
105
+ invocation and no `--all`. `--dry-run` previews source, installer version,
106
+ agents, paths and file changes without npx. Noninteractive installation needs
107
+ `--yes`, which skips IPAB consent only. Explicit `--override-existing` permits
108
+ replacement of unmanaged content and local edits at selected targets;
109
+ cross-source ownership, unselected paths, concurrent changes and
110
+ symlink/junction protections remain enforced. Removed sources are not
111
+ automatically uninstalled. Account-wide attribution and pending recovery
112
+ preserve partial successes, which are reported with nonzero status. Skill
113
+ scripts/hooks do not run; the trusted installer is not a sandbox. Its telemetry,
114
+ remote audits and npm lifecycle scripts are disabled. Shipping or installing a
115
+ Skill does not configure automatic Agent loading. Old v5 State roots without
116
+ skillPath retain their exact type/configuration on ordinary writes and require a
117
+ new seeded Swarm with explicitly republished reviewed Names before Skills
118
+ operations. A user Name ipab never overrides root configuration. Only legacy
119
+ v2/v3/v4 standalone Meta can migrate by explicit new typed Meta publication with
120
+ `--expect`; both known standalone Meta types remain readable.
104
121
 
105
122
  See the [user guide](https://github.com/silvermoon-work/ipab#readme) and
106
123
  [command reference](https://github.com/silvermoon-work/ipab/blob/main/docs/reference.md)
@@ -0,0 +1,14 @@
1
+ import { type SkillsPort } from "./skills.js";
2
+ export declare function inspectBundledSkills(port?: SkillsPort): Promise<{
3
+ status: "not-checked";
4
+ repairable: boolean;
5
+ message: string;
6
+ guidance: string;
7
+ } | {
8
+ status: "missing" | "ok" | "invalid";
9
+ repairable: boolean;
10
+ message: string;
11
+ guidance: string;
12
+ }>;
13
+ export declare function installBundledSkills(env: NodeJS.ProcessEnv, preview: (text: string) => void, port?: SkillsPort): Promise<void>;
14
+ //# sourceMappingURL=bundled-skills.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundled-skills.d.ts","sourceRoot":"","sources":["../src/bundled-skills.ts"],"names":[],"mappings":"AAEA,OAAO,EAKL,KAAK,UAAU,EAChB,MAAM,aAAa,CAAC;AAGrB,wBAAsB,oBAAoB,CACxC,IAAI,GAAE,UAA+B;;;;;;;;;;GAGtC;AAED,wBAAsB,oBAAoB,CACxC,GAAG,EAAE,MAAM,CAAC,UAAU,EACtB,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,EAC/B,IAAI,GAAE,UAA+B,iBAuCtC"}
@@ -0,0 +1,34 @@
1
+ import { join } from "node:path";
2
+ import { bundledSkillSource } from "./skill-source.js";
3
+ import { inspectBundledSkill, manageSkills, officialSkillsPort, bundledSkillOrigin, } from "./skills.js";
4
+ import { HostError } from "./errors.js";
5
+ export async function inspectBundledSkills(port = officialSkillsPort) {
6
+ return inspectBundledSkill(await bundledSkillSource(), port);
7
+ }
8
+ export async function installBundledSkills(env, preview, port = officialSkillsPort) {
9
+ const catalog = await port.catalog();
10
+ const agents = catalog.detected
11
+ .filter((agent) => catalog.supported.some((entry) => entry.id === agent.id && entry.globalSkillsDir !== null))
12
+ .map((agent) => agent.id);
13
+ if (!agents.length)
14
+ throw new HostError("No globally supported agents detected. Install an Agent, then retry ipab doctor --fix.");
15
+ const result = await manageSkills({ env, bundledSkill: await bundledSkillSource() }, bundledSkillOrigin, {
16
+ sync: true,
17
+ names: [],
18
+ agents,
19
+ overrideExisting: false,
20
+ dryRun: false,
21
+ yes: true,
22
+ tty: false,
23
+ confirm: () => Promise.resolve(false),
24
+ preview,
25
+ }, port);
26
+ if (!result.ok)
27
+ throw new HostError([
28
+ "Bundled IPAB Skill installation failed; existing custom content was preserved.",
29
+ ...result.items.flatMap((item) => item.problems),
30
+ ...result.results.flatMap((item) => (item.error ? [item.error] : [])),
31
+ `Inspect ${join(port.home, ".ipab", "skills", "installations.json")} and retry ipab doctor --fix.`,
32
+ ].join("\n"));
33
+ }
34
+ //# sourceMappingURL=bundled-skills.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundled-skills.js","sourceRoot":"","sources":["../src/bundled-skills.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EACL,mBAAmB,EACnB,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,GAEnB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,OAAmB,kBAAkB;IAErC,OAAO,mBAAmB,CAAC,MAAM,kBAAkB,EAAE,EAAE,IAAI,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,GAAsB,EACtB,OAA+B,EAC/B,OAAmB,kBAAkB;IAErC,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;IACrC,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ;SAC5B,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAChB,OAAO,CAAC,SAAS,CAAC,IAAI,CACpB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,KAAK,CAAC,EAAE,IAAI,KAAK,CAAC,e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AAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC;IAC1C,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;CAClB;AAwBD,wBAAgB,KAAK,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAycrD;AAwlDD,wBAAsB,MAAM,CAC1B,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,EAAE,GAAE,EAAc,EAClB,GAAG,GAAE,MAAM,CAAC,UAAwB,GACnC,OAAO,CAAC,MAAM,CAAC,CAOjB"}
package/dist/cli.js CHANGED
@@ -16,6 +16,7 @@ import { initApp } from "./app-authoring.js";
16
16
  import { assembleBundle } from "./assembly.js";
17
17
  import { getBundle } from "./get.js";
18
18
  import { doctorDevice, doctorText } from "./doctor.js";
19
+ import { ensureDaemon, serveDaemon } from "./daemon.js";
19
20
  import { keyId } from "@ipab/bundle/pointer/crypto";
20
21
  import { createSwarm, swarmDaemon, requestMembership, approveMembership, exportRequest, removeMember, resumeRemoval, updateProfile, accountProfile, updateAccountProfile, swarmMembers, inspectSwarmStatus, verifiedRequest, verifiedRequestStream, membershipRequestSummary, updateSwarm, searchNames, formatNameReference, resolveReference, parseNameReference, formalName, publish, pinNameSubscription, pinReference, swarmRegistrations, swarmAssociation, setSwarmAssociation, removeSwarmAssociation, resolveTemplateSelector, templateName, swarmTemplates, setSwarmTemplate, removeSwarmTemplate, } from "./swarm.js";
21
22
  import { schemaAlias } from "./app-definition.js";
@@ -73,7 +74,7 @@ export const processIO = {
73
74
  const commands = {
74
75
  daemon: "daemon [--swarm URL_OR_ALIAS]",
75
76
  "skills list": "skills list [--refresh | --no-refresh]",
76
- "skills sync": "skills sync [NAMES...] [--agent AGENT]... [--dry-run] [--yes] [--refresh | --no-refresh]",
77
+ "skills sync": "skills sync [NAMES...] [--agent AGENT]... [--override-existing] [--dry-run] [--yes] [--refresh | --no-refresh]",
77
78
  doctor: "doctor [--fix [--yes]]",
78
79
  profile: "profile [--name NAME] [--description TEXT]",
79
80
  "swarm create": "swarm create [--service URL] [--resume OPERATION]",
@@ -138,7 +139,8 @@ const commandHelp = {
138
139
  notes: [
139
140
  "Manages all registered Swarms independently, or only the explicitly selected --swarm; ignores the saved default.",
140
141
  "Probes pivot candidates, refreshes approved profiles and retries with cooldown. Diagnostics go to stderr.",
141
- "Ctrl-C / TERM drains operations and releases the device/state-dir lock; Kubo stays running. Run under your own supervisor if desired.",
142
+ "Swarm network operations start one background daemon on demand per state-dir; local commands, doctor and status/members inspections do not. No OS startup service is installed.",
143
+ "Ctrl-C / TERM drains foreground operations and releases the device/state-dir lock; Kubo stays running. An existing background daemon already owns this lock.",
142
144
  "Role and relay candidate changes restart only the verified managed Kubo node.",
143
145
  ],
144
146
  },
@@ -213,9 +215,10 @@ const commandHelp = {
213
215
  "NAMES Install identities, e.g. ipab code-review, or full shared Names such as ipab/skills/ipab. Resolved from one verified snapshot; omit for all Skills.",
214
216
  ],
215
217
  options: [
216
- "--agent AGENT Repeatable globally supported agent ID; default is detected agents.",
218
+ "--agent AGENT Repeatable globally supported agent ID; default is universal (~/.agents/skills).",
219
+ "--override-existing Replace non-IPAB-managed Skills and local edits at selected targets.",
217
220
  "--dry-run Preview without invoking npx or changing installed Skills.",
218
- "--yes Skip IPAB consent only; conflicts and local edits remain protected.",
221
+ "--yes Skip IPAB consent only; does not imply --override-existing.",
219
222
  "--refresh / --no-refresh Refresh HEAD now / reuse a valid verified snapshot.",
220
223
  ],
221
224
  examples: [
@@ -226,7 +229,7 @@ const commandHelp = {
226
229
  "Global installs only, through official skills@1.9.1 with --copy. Requires Node >=22.20.0.",
227
230
  "Non-interactive execution requires --yes. Installer version, source, paths and agents are shown first.",
228
231
  "No Skill hooks/scripts run. The trusted installer is not sandboxed. Telemetry and remote audits are disabled.",
229
- "Non-IPAB installs, local edits, cross-Swarm collisions and symlink/junction aliases are never overwritten. Removed sources are reported, not deleted.",
232
+ "Non-IPAB installs and local edits require --override-existing. Cross-Swarm collisions and symlink/junction aliases remain protected. Removed sources are reported, not deleted.",
230
233
  "Partial failures report individual results, preserve pending attribution and exit nonzero; retry the same sync.",
231
234
  ],
232
235
  },
@@ -261,7 +264,8 @@ const commandHelp = {
261
264
  "--yes Authorize planned repairs without prompting; requires --fix.",
262
265
  ],
263
266
  notes: [
264
- "Always checks local state/configuration, managed Kubo, HOME identity, local Swarm registry and compatible updates.",
267
+ "Always checks local state/configuration, managed Kubo, HOME identity, local Swarm registry, compatible updates and the CLI-bundled IPAB Skill for detected Agents.",
268
+ "--fix also installs/updates the bundled IPAB Skill globally using the pinned official installer, without joining a Swarm. Custom content and Swarm-managed Skills are never overwritten.",
265
269
  "Inspection never creates state, locks, credentials or caches. Official release metadata may be queried; unavailable updates are not claimed current.",
266
270
  "Healthy current components are reused without download or confirmation. Fixed protected archive cache is automatic.",
267
271
  "Unverified existing Kubo: --fix may download/cache its exact-version official archive for byte comparison only; never execute it to authenticate itself or overwrite a mismatch.",
@@ -1154,7 +1158,7 @@ export function parse(argv) {
1154
1158
  syntax("API key must be provided through '-' and piped stdin; never pass it in command arguments.");
1155
1159
  const booleans = result.path.startsWith("skills ")
1156
1160
  ? result.path === "skills sync"
1157
- ? ["dry-run", "yes", "force", "no-force"]
1161
+ ? ["dry-run", "yes", "override-existing", "force", "no-force"]
1158
1162
  : ["force", "no-force"]
1159
1163
  : result.path === "doctor"
1160
1164
  ? ["fix", "yes"]
@@ -1518,6 +1522,15 @@ async function performCli(argv, io, env) {
1518
1522
  cacheTtl: Number(value("swarm.cacheTtl")),
1519
1523
  listen: value("swarm.listen") === "loopback" ? "loopback" : "lan",
1520
1524
  pivot: Boolean(value("swarm.pivot")),
1525
+ ...(parsed.path === "daemon"
1526
+ ? {
1527
+ daemonReady: () => serveDaemon(stateLocation(parsed.flags, env).path, parsed.flags.swarm === undefined ? undefined : requireSwarm()),
1528
+ }
1529
+ : {
1530
+ ensureDaemon: () => ensureDaemon(stateLocation(parsed.flags, env).path, env, (text) => {
1531
+ io.err(text);
1532
+ }),
1533
+ }),
1521
1534
  forceRefresh: parsed.options.refresh || parsed.options.force
1522
1535
  ? true
1523
1536
  : parsed.options["no-refresh"] || parsed.options["no-force"]
@@ -1833,6 +1846,7 @@ async function performCli(argv, io, env) {
1833
1846
  sync: parsed.path === "skills sync",
1834
1847
  names: parsed.positional,
1835
1848
  agents: parsed.agents ?? [],
1849
+ overrideExisting: Boolean(parsed.options["override-existing"]),
1836
1850
  dryRun: Boolean(parsed.options["dry-run"]),
1837
1851
  yes: Boolean(parsed.options.yes),
1838
1852
  tty: io.tty,