@inventarch/cli 1.1.1 → 2.0.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.
Files changed (116) hide show
  1. package/LANGUAGE.md +2 -2
  2. package/README.md +17 -4
  3. package/SPEC.md +51 -7
  4. package/assets/base/0305ca741b1dfec97ff35fbeb36d4a66a0c9c0614b730fe14fcdac0f1565e28a.ia.tgz +0 -0
  5. package/assets/base.json +3 -3
  6. package/assets/host/3d2c8530db8d14755410b17be8228a230d88de96f9dc78f953979d3ca7c6ea62.tgz +0 -0
  7. package/assets/host.json +4 -4
  8. package/assets/vocabulary.json +436 -4
  9. package/dist/bundled-base.d.ts +18 -0
  10. package/dist/bundled-base.d.ts.map +1 -0
  11. package/dist/bundled-base.js +44 -0
  12. package/dist/bundled-base.js.map +1 -0
  13. package/dist/capture.d.ts +108 -0
  14. package/dist/capture.d.ts.map +1 -0
  15. package/dist/capture.js +346 -0
  16. package/dist/capture.js.map +1 -0
  17. package/dist/claude-cli.js +1 -1
  18. package/dist/claude-cli.js.map +1 -1
  19. package/dist/commands.d.ts +23 -1
  20. package/dist/commands.d.ts.map +1 -1
  21. package/dist/commands.js +201 -10
  22. package/dist/commands.js.map +1 -1
  23. package/dist/compile.d.ts +5 -0
  24. package/dist/compile.d.ts.map +1 -1
  25. package/dist/compile.js +40 -51
  26. package/dist/compile.js.map +1 -1
  27. package/dist/consumer.d.ts +48 -7
  28. package/dist/consumer.d.ts.map +1 -1
  29. package/dist/consumer.js +142 -29
  30. package/dist/consumer.js.map +1 -1
  31. package/dist/decline.d.ts.map +1 -1
  32. package/dist/decline.js +15 -7
  33. package/dist/decline.js.map +1 -1
  34. package/dist/distribute.d.ts +68 -16
  35. package/dist/distribute.d.ts.map +1 -1
  36. package/dist/distribute.js +243 -110
  37. package/dist/distribute.js.map +1 -1
  38. package/dist/doctor.d.ts.map +1 -1
  39. package/dist/doctor.js +113 -60
  40. package/dist/doctor.js.map +1 -1
  41. package/dist/format.d.ts +2 -2
  42. package/dist/format.d.ts.map +1 -1
  43. package/dist/format.js +19 -11
  44. package/dist/format.js.map +1 -1
  45. package/dist/home-remedy.d.ts +8 -4
  46. package/dist/home-remedy.d.ts.map +1 -1
  47. package/dist/home-remedy.js +8 -4
  48. package/dist/home-remedy.js.map +1 -1
  49. package/dist/host-projection.d.ts +73 -6
  50. package/dist/host-projection.d.ts.map +1 -1
  51. package/dist/host-projection.js +296 -38
  52. package/dist/host-projection.js.map +1 -1
  53. package/dist/host.d.ts +106 -30
  54. package/dist/host.d.ts.map +1 -1
  55. package/dist/host.js +270 -139
  56. package/dist/host.js.map +1 -1
  57. package/dist/init.d.ts +285 -37
  58. package/dist/init.d.ts.map +1 -1
  59. package/dist/init.js +1270 -205
  60. package/dist/init.js.map +1 -1
  61. package/dist/inspect.d.ts +26 -2
  62. package/dist/inspect.d.ts.map +1 -1
  63. package/dist/inspect.js +117 -52
  64. package/dist/inspect.js.map +1 -1
  65. package/dist/main.d.ts.map +1 -1
  66. package/dist/main.js +3 -1
  67. package/dist/main.js.map +1 -1
  68. package/dist/migration-journal.d.ts +35 -0
  69. package/dist/migration-journal.d.ts.map +1 -0
  70. package/dist/migration-journal.js +205 -0
  71. package/dist/migration-journal.js.map +1 -0
  72. package/dist/next.d.ts +21 -0
  73. package/dist/next.d.ts.map +1 -0
  74. package/dist/next.js +210 -0
  75. package/dist/next.js.map +1 -0
  76. package/dist/operation-help.d.ts.map +1 -1
  77. package/dist/operation-help.js +14 -3
  78. package/dist/operation-help.js.map +1 -1
  79. package/dist/pack.d.ts +3 -1
  80. package/dist/pack.d.ts.map +1 -1
  81. package/dist/pack.js +56 -11
  82. package/dist/pack.js.map +1 -1
  83. package/dist/position.d.ts +22 -0
  84. package/dist/position.d.ts.map +1 -0
  85. package/dist/position.js +242 -0
  86. package/dist/position.js.map +1 -0
  87. package/dist/project.d.ts +42 -0
  88. package/dist/project.d.ts.map +1 -0
  89. package/dist/project.js +232 -0
  90. package/dist/project.js.map +1 -0
  91. package/dist/read.d.ts +31 -0
  92. package/dist/read.d.ts.map +1 -0
  93. package/dist/read.js +152 -0
  94. package/dist/read.js.map +1 -0
  95. package/dist/render.d.ts +19 -0
  96. package/dist/render.d.ts.map +1 -1
  97. package/dist/render.js +44 -1
  98. package/dist/render.js.map +1 -1
  99. package/dist/session.d.ts +12 -1
  100. package/dist/session.d.ts.map +1 -1
  101. package/dist/session.js +68 -6
  102. package/dist/session.js.map +1 -1
  103. package/dist/user-host.d.ts.map +1 -1
  104. package/dist/user-host.js +7 -5
  105. package/dist/user-host.js.map +1 -1
  106. package/dist/validate.d.ts +1 -2
  107. package/dist/validate.d.ts.map +1 -1
  108. package/dist/validate.js +6 -27
  109. package/dist/validate.js.map +1 -1
  110. package/dist/vocabulary.d.ts +4 -0
  111. package/dist/vocabulary.d.ts.map +1 -1
  112. package/dist/vocabulary.js +12 -7
  113. package/dist/vocabulary.js.map +1 -1
  114. package/package.json +6 -6
  115. package/assets/base/78bff5eb3188b628c06d2f1cf1477fb1bfcea874ec3863ae112b4972b8e81517.ia.tgz +0 -0
  116. package/assets/host/b97e367bbf15db09f552d6bd6dd3701210efe77931d34b57ccb85240957aba61.tgz +0 -0
@@ -46,6 +46,20 @@ export interface PlanView {
46
46
  readonly planOut: string | null;
47
47
  /** Hosts whose projection this workspace owns; `applyPlan` refreshes each after the install commits. */
48
48
  readonly refresh: readonly HostName[];
49
+ readonly projectionFiles: readonly {
50
+ readonly host: HostName;
51
+ readonly files: readonly {
52
+ readonly path: string;
53
+ readonly action: string;
54
+ }[];
55
+ }[];
56
+ /**
57
+ * The refreshed hosts that own a steward-guard registration an earlier release made, which their refresh retires
58
+ * before any projection file changes (B11); a plan lists the retirement.
59
+ */
60
+ readonly retire: readonly HostName[];
61
+ /** After an apply, the refreshed hosts whose refresh retired that registration; empty before an apply. */
62
+ readonly retired: readonly HostName[];
49
63
  /** Whether `--root` was given, so every `ia host` command printed carries it (`rootedNext`). */
50
64
  readonly rooted: boolean;
51
65
  }
@@ -58,24 +72,52 @@ export declare function changeRows(plan: InstallationPlan, previous: Distributio
58
72
  * is reported as a CLI failure at class 4 rather than relabelled with a service code the service never raised.
59
73
  *
60
74
  * The next action depends on the route the failure arrived on, because the repair does. On the catalog route the
61
- * archive remedy applies: retry, or name the archive in a local catalog entry and resolve from that catalog offline.
62
- * On the registry route — the default since registry discovery — a catalog-only remedy is wrong twice over: `--offline`
63
- * without `--catalog` reads no catalog, and the failure is the registry's. Registry-route failures therefore name the
64
- * registry sources, whether the failure was an index, `ia-registry.json` ("Registry request …") or an artifact fetched
65
- * from an HTTPS registry ("Artifact request …"). The other registry failures each have their own remedy: the built-in
66
- * default that is not available ("The default registry …"), a document over the 4 MiB bound ("Registry document …",
67
- * a limit a retry cannot fix), and a directory registry that lists a release whose artifact file it lacks. All of
68
- * these stay class 4: remote or registry content the user cannot fix in the workspace. Two registry refusals are
69
- * class 3 and carry the remedy §4 and §7 name for them: an unmapped provider, and a request only a licensed release
70
- * satisfies.
75
+ * archive remedy applies: retry once the host is reachable. On the registry route — the default since registry
76
+ * discovery — a catalog remedy is wrong twice over: `--offline` without `--catalog` reads no catalog, and the failure
77
+ * is the registry's. Registry-route failures therefore name the registry's network access, whether the failure was an
78
+ * index, `ia-registry.json` ("Registry request …") or an artifact fetched from an HTTPS registry ("Artifact
79
+ * request …"). The other registry failures each have their own remedy: the built-in default that is not available
80
+ * ("The default registry …", whose message names every other source), a document over the 4 MiB bound ("Registry
81
+ * document …", a limit a retry cannot fix, so another registry is chosen at the level that chose this one), and a
82
+ * directory registry that lists a release whose artifact file it lacks. All of these stay class 4: remote or registry
83
+ * content the user cannot fix in the workspace. Two registry refusals are class 3 and carry the remedy §4 and §7 name
84
+ * for them: an unmapped provider, and a request only a licensed release satisfies.
71
85
  *
72
86
  * Every other refusal passes through with its code and class, located at the file it names when the service located
73
87
  * it (`.path`, e.g. `.ia/registries.json`), so §4.3's `where` is null only when there is genuinely no location.
88
+ *
89
+ * Design row 27: each remedy names one command, one of this invocation's `Reruns`, so a retry, a repaired registry
90
+ * map or a deleted cache file is followed by a command the user can run as printed.
74
91
  */
75
92
  export type Route = 'catalog' | 'registry';
76
- /** Registry spec §4's remedy for an unmapped provider; `ia doctor` names the same one. */
93
+ /**
94
+ * The commands this invocation's remedies name (design row 27), each spelled from its parsed arguments and runnable
95
+ * as printed. `again` is its plan, without `--apply`, which acquires and verifies once more and applies nothing; it
96
+ * may still fill the archive cache, and `--plan-out` writes the plan file. `restore` has no preview, so its `again` is
97
+ * the apply itself.
98
+ */
99
+ export interface Reruns {
100
+ readonly again: string;
101
+ /** `again` without `--offline`, the one rerun that fetches a deleted cache file again; `again` itself when online. */
102
+ readonly online: string;
103
+ /** The same command from a local catalog: its source replaced by `--catalog <file>`, which `--registry` excludes. */
104
+ readonly local: string;
105
+ /** Which registry spec §4 level chose the registry: `--registry`, `IA_REGISTRY`, or the per-provider map below them. */
106
+ readonly chosen: 'flag' | 'variable' | 'map';
107
+ /** The same command with `--registry <url|dir>` in place of the registry the flag named. */
108
+ readonly another: string;
109
+ /** `update`'s: the install that has to come first, with the range `--to` named. */
110
+ readonly install: string;
111
+ /** `update`'s: the overview that lists the installed generation's direct requests. */
112
+ readonly inspect: string;
113
+ }
114
+ /**
115
+ * Registry spec §4's remedy for an unmapped provider, as `ia doctor` prints it. The exported 1.x text is unchanged
116
+ * (decision release-bump); a refusal names `UNMAPPED_NEXT` instead, whose one command is the rerun (design row 27).
117
+ */
77
118
  export declare const UNMAPPED = "Every requested and locked package's provider needs a registry. Map the provider to an HTTPS URL or a workspace directory in .ia/registries.json, or pass --registry <url|dir>.";
78
119
  export interface PlanRequest {
120
+ readonly packageRoot?: string;
79
121
  readonly signal?: AbortSignal | undefined;
80
122
  readonly root: string;
81
123
  readonly operation: Operation;
@@ -87,6 +129,11 @@ export interface PlanRequest {
87
129
  readonly allowWithdrawn: boolean;
88
130
  readonly planOut: string | undefined;
89
131
  readonly invocation: string;
132
+ /**
133
+ * The commands this request's remedies name. Optional, so a 1.x request keeps its form (decision release-bump): when
134
+ * absent they are spelled from the request itself (`requestReruns`).
135
+ */
136
+ readonly reruns?: Reruns;
90
137
  /** Whether the invocation named `--root`; commands printed for a registered projection then carry it. */
91
138
  readonly rooted?: boolean;
92
139
  /** The registered projections, when the caller already found them; otherwise they are found here. */
@@ -101,17 +148,21 @@ export interface PlanRequest {
101
148
  /** §2.8: a positional adds or repins one direct request; `--requests` supplies the whole set the native path reads. */
102
149
  export declare function mergeRequests(previous: DistributionLock | undefined, ids: readonly string[]): readonly Dependency[];
103
150
  /**
104
- * Host registration spec §4: the hosts whose projection this workspace owns. Ownership is the state file's presence,
105
- * as `ia host` and `ia doctor` decide it. `restore` changes no admitted system, so it has none to refresh.
151
+ * Host registration spec §4: the hosts whose projection this workspace owns (`projectedHosts`), a projection `ia
152
+ * project` wrote without a registration included. `restore` changes no admitted system, so it has none to refresh.
106
153
  */
107
154
  export declare const registeredProjections: (root: string, operation: Operation) => readonly HostName[];
108
155
  /**
109
156
  * Host registration spec §4: `--apply` refuses before any install write when a registered projection would refuse.
110
157
  * A hand edit to an owned file is the refusal the refresh would raise (§6.3), so it is found here, before
111
- * acquisition, the saved plan or the lock is touched; the remedy is the one `ia host` and `ia doctor` name for it.
158
+ * acquisition, the saved plan or the lock is touched; the remedy is the one `ia doctor` names for it, its rerun
159
+ * `projectionRerun`'s: `ia host <host> --apply` for a registered host, `ia project <host> --apply` for a projection
160
+ * `ia project` wrote without a registration (task ia-project-verb).
112
161
  * Missing, outdated and unowned files do not block: the refresh rewrites the first two and never touches the third.
113
162
  * A file the mechanism cannot read — an unreadable ownership state, an aliased or oversized managed file — would
114
- * refuse the refresh too, so it is refused here, located at that file, with the repair `ia host` names for it.
163
+ * refuse the refresh too, so it is refused here, located at that file, with the repair `ia host` names for it. So is
164
+ * a steward-guard registration the refresh's retirement (B11) would refuse: an unreadable guard state, or a guard
165
+ * group changed by hand; a pending host journal that refuses the retirement's plan names its own recovery.
115
166
  */
116
167
  export declare function requireProjectionsClean(root: string, hosts: readonly HostName[], rooted: boolean): void;
117
168
  export declare function collectPlan(request: PlanRequest): Promise<PlanView>;
@@ -124,7 +175,8 @@ export declare function collectPlan(request: PlanRequest): Promise<PlanView>;
124
175
  */
125
176
  export declare function applyPlan(view: PlanView): PlanView;
126
177
  /**
127
- * The `--json` envelope (§2.8): `{version: 1, command, plan, applied?, refresh?, registries?, withdrawn?, planOut?}`.
178
+ * The `--json` envelope (§2.8): `{version: 1, command, plan, applied?, refresh?, retire?, retired?, registries?,
179
+ * withdrawn?, planOut?}`.
128
180
  *
129
181
  * - `plan` is the planner's own value, unchanged.
130
182
  * - `registries` (registry spec §6.1) is present only when registries were the source: one `{provider, base, level}`
@@ -1 +1 @@
1
- {"version":3,"file":"distribute.d.ts","sourceRoot":"","sources":["../src/distribute.ts"],"names":[],"mappings":"AA+CA,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAEhF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAUzE,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAgBvF,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAIrD,OAAO,KAAK,EAAE,YAAY,EAAc,MAAM,aAAa,CAAC;AAc5D,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AACpE,4FAA4F;AAC5F,eAAO,MAAM,OAAO,QAAoD,CAAC;AACzE,oHAAoH;AACpH,eAAO,MAAM,WAAW,MAAM,CAAC;AAE/B,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAA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