@inventarch/cli 2.0.0 → 3.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.
- package/README.md +11 -3
- package/SPEC.md +54 -11
- package/assets/base/08eaab3e1a6215d78283b82a94a0228367ac7bd78d0a746c56db79c8d7546c3a.ia.tgz +0 -0
- package/assets/base.json +3 -3
- package/assets/host/d7722e32fd0511df2a6dfdf2353e621fdff1cf559d5c8b7ac256c7eceac0452f.tgz +0 -0
- package/assets/host.json +4 -4
- package/assets/vocabulary.json +11 -3
- package/dist/adopt.d.ts +8 -0
- package/dist/adopt.d.ts.map +1 -0
- package/dist/adopt.js +60 -0
- package/dist/adopt.js.map +1 -0
- package/dist/author.d.ts +32 -0
- package/dist/author.d.ts.map +1 -0
- package/dist/author.js +226 -0
- package/dist/author.js.map +1 -0
- package/dist/briefing.d.ts +2 -0
- package/dist/briefing.d.ts.map +1 -1
- package/dist/briefing.js +15 -3
- package/dist/briefing.js.map +1 -1
- package/dist/capture.d.ts +12 -4
- package/dist/capture.d.ts.map +1 -1
- package/dist/capture.js +33 -19
- package/dist/capture.js.map +1 -1
- package/dist/commands.d.ts +7 -7
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js +129 -39
- package/dist/commands.js.map +1 -1
- package/dist/compile.d.ts +3 -3
- package/dist/compile.d.ts.map +1 -1
- package/dist/compile.js +9 -12
- package/dist/compile.js.map +1 -1
- package/dist/consumer.d.ts +11 -2
- package/dist/consumer.d.ts.map +1 -1
- package/dist/consumer.js +94 -18
- package/dist/consumer.js.map +1 -1
- package/dist/distribute.d.ts +6 -4
- package/dist/distribute.d.ts.map +1 -1
- package/dist/distribute.js +40 -11
- package/dist/distribute.js.map +1 -1
- package/dist/doctor-authority.d.ts +3 -0
- package/dist/doctor-authority.d.ts.map +1 -0
- package/dist/doctor-authority.js +65 -0
- package/dist/doctor-authority.js.map +1 -0
- package/dist/doctor-mounts.d.ts +4 -0
- package/dist/doctor-mounts.d.ts.map +1 -0
- package/dist/doctor-mounts.js +32 -0
- package/dist/doctor-mounts.js.map +1 -0
- package/dist/doctor.d.ts.map +1 -1
- package/dist/doctor.js +218 -23
- package/dist/doctor.js.map +1 -1
- package/dist/host-projection.d.ts +67 -9
- package/dist/host-projection.d.ts.map +1 -1
- package/dist/host-projection.js +401 -38
- package/dist/host-projection.js.map +1 -1
- package/dist/host.d.ts +58 -6
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +181 -45
- package/dist/host.js.map +1 -1
- package/dist/init.d.ts +18 -5
- package/dist/init.d.ts.map +1 -1
- package/dist/init.js +77 -21
- package/dist/init.js.map +1 -1
- package/dist/main.d.ts +1 -6
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +1 -6
- package/dist/main.js.map +1 -1
- package/dist/next.d.ts +1 -1
- package/dist/next.d.ts.map +1 -1
- package/dist/next.js +14 -8
- package/dist/next.js.map +1 -1
- package/dist/operation-help.js +1 -1
- package/dist/position.d.ts +1 -1
- package/dist/position.d.ts.map +1 -1
- package/dist/position.js +10 -8
- package/dist/position.js.map +1 -1
- package/dist/preview.d.ts +145 -0
- package/dist/preview.d.ts.map +1 -0
- package/dist/preview.js +962 -0
- package/dist/preview.js.map +1 -0
- package/dist/profile.d.ts +118 -0
- package/dist/profile.d.ts.map +1 -0
- package/dist/profile.js +362 -0
- package/dist/profile.js.map +1 -0
- package/dist/project.d.ts +8 -5
- package/dist/project.d.ts.map +1 -1
- package/dist/project.js +47 -16
- package/dist/project.js.map +1 -1
- package/dist/read.d.ts.map +1 -1
- package/dist/read.js +3 -0
- package/dist/read.js.map +1 -1
- package/dist/render.d.ts +16 -2
- package/dist/render.d.ts.map +1 -1
- package/dist/render.js +156 -5
- package/dist/render.js.map +1 -1
- package/dist/session.d.ts +31 -10
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js +31 -3
- package/dist/session.js.map +1 -1
- package/dist/user-host.d.ts +3 -3
- package/dist/user-host.js +10 -10
- package/dist/user-host.js.map +1 -1
- package/dist/validate.d.ts +28 -16
- package/dist/validate.d.ts.map +1 -1
- package/dist/validate.js +245 -23
- package/dist/validate.js.map +1 -1
- package/package.json +6 -6
- package/assets/base/0305ca741b1dfec97ff35fbeb36d4a66a0c9c0614b730fe14fcdac0f1565e28a.ia.tgz +0 -0
- package/assets/host/3d2c8530db8d14755410b17be8228a230d88de96f9dc78f953979d3ca7c6ea62.tgz +0 -0
package/dist/init.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { WorkspaceRelease } from '@inventarch/distribution/registry';
|
|
1
2
|
import type { Base, BasePin } from './bundled-base.js';
|
|
2
3
|
export { readBase, PIN_PATH, baseArchivePath, PACKAGE_ID } from './bundled-base.js';
|
|
3
4
|
export type { Base, BasePin } from './bundled-base.js';
|
|
@@ -6,7 +7,7 @@ import type { ProjectionAction } from '@inventarch/distribution/projection';
|
|
|
6
7
|
import type { Context, Result } from './consumer.js';
|
|
7
8
|
import type { HostApplied } from './host.js';
|
|
8
9
|
import type { HostName } from './host-projection.js';
|
|
9
|
-
import type { Capabilities } from './render.js';
|
|
10
|
+
import type { AdviceContext, Capabilities } from './render.js';
|
|
10
11
|
export type HostSelection = 'claude' | 'codex' | 'none';
|
|
11
12
|
/** M5.2 §4.1. `recovery-required` is never rendered as a plan: it refuses before anything reasons about the target. */
|
|
12
13
|
export type TargetState = 'fresh' | 'resumable' | 'recovery-required' | 'conflict';
|
|
@@ -85,6 +86,10 @@ export interface Starter {
|
|
|
85
86
|
readonly provenance: Provenance;
|
|
86
87
|
}
|
|
87
88
|
export interface InitView {
|
|
89
|
+
readonly adoption?: {
|
|
90
|
+
readonly id: string;
|
|
91
|
+
readonly release: WorkspaceRelease;
|
|
92
|
+
};
|
|
88
93
|
readonly root: string;
|
|
89
94
|
readonly owns: readonly {
|
|
90
95
|
readonly path: string;
|
|
@@ -151,12 +156,16 @@ export declare const DESCRIPTOR_PATH = ".ia/release.json";
|
|
|
151
156
|
export declare const STARTER_VERSION = "0.1.0";
|
|
152
157
|
/** The installer's lock, `acquire()` at apps/distribution/src/install.ts:70; `INSTALL_PATHS` does not name it. */
|
|
153
158
|
export declare const INSTALL_LOCK = ".ia/distributions/install-lock.json";
|
|
159
|
+
/** Plan amendment C20: where `ia author system <name>` writes a local system, as `ia init --system` does. */
|
|
160
|
+
export declare const systemPath: (name: string) => string;
|
|
154
161
|
/** Position-and-projection §3: the one file the three starter records share, at the root of the authored source. */
|
|
155
162
|
export declare const WORKSPACE_PATH = ".ia/src/workspace.ia";
|
|
156
163
|
/** Create-only: the local working state each clone makes for itself, never the authored records or the lock. */
|
|
157
164
|
export declare const IGNORE_PATH = ".ia/.gitignore";
|
|
158
165
|
export declare const IGNORE_TEXT = "work/\ndistributions/\n";
|
|
159
166
|
export declare function migrationIgnoreText(root: string): string;
|
|
167
|
+
/** A local system name `ia init --system` and `ia author system` accept: the id rule and the system-name ceiling. */
|
|
168
|
+
export declare const isSystemName: (name: string) => boolean;
|
|
160
169
|
/** M5.2 §4.3: `createFile`'s temporary name, `<target>.<randomUUID()>.tmp` (apps/distribution/src/files.ts:76). */
|
|
161
170
|
export declare const LEFTOVER: RegExp;
|
|
162
171
|
/** The installation, not the target, is at fault; `ia doctor` names the channel a reinstall goes through. */
|
|
@@ -198,7 +207,7 @@ export declare function starterSystem(name: string): string;
|
|
|
198
207
|
* The participant `@agent` implies no host permission, and its `@mandate` grants it closed moves over that workspace;
|
|
199
208
|
* the mandate's one prose clause claims nothing. Every name is the workspace's (decision identity-namespace).
|
|
200
209
|
*/
|
|
201
|
-
export declare function starterRecords(name: string, systems: readonly string[]): string;
|
|
210
|
+
export declare function starterRecords(name: string, systems: readonly string[], sources?: readonly string[]): string;
|
|
202
211
|
/**
|
|
203
212
|
* `--system`'s release root (position-and-projection §2 case 3: a distribution's roots are system registrations). It
|
|
204
213
|
* sits in the system folder, so the closure from it stays inside folders the packer can release
|
|
@@ -210,7 +219,7 @@ export declare function starterDistribution(name: string): string;
|
|
|
210
219
|
* `--system` the `@workspace` composes the local system after `systems` (position-and-projection §2 case 2: a
|
|
211
220
|
* repository that owns vocabulary composes its own system), so the packet renders a pointer line for it.
|
|
212
221
|
*/
|
|
213
|
-
export declare function starterFiles(name: string, systems: readonly string[], system: boolean): Pick<Starter, 'files' | 'records'>;
|
|
222
|
+
export declare function starterFiles(name: string, systems: readonly string[], system: boolean, sources?: readonly string[]): Pick<Starter, 'files' | 'records'>;
|
|
214
223
|
export type Git = (args: readonly string[], input?: string) => {
|
|
215
224
|
readonly status: number | null;
|
|
216
225
|
readonly stdout: string;
|
|
@@ -240,6 +249,10 @@ export declare const descriptorText: (descriptor: Descriptor) => string;
|
|
|
240
249
|
/** M5.2 §4.1: exactly the one request and the one package the pin describes. */
|
|
241
250
|
export declare const locksBase: (lock: DistributionLock | undefined, pin: BasePin) => boolean;
|
|
242
251
|
export interface InitRequest {
|
|
252
|
+
readonly adoption?: {
|
|
253
|
+
readonly id: string;
|
|
254
|
+
readonly release: WorkspaceRelease;
|
|
255
|
+
};
|
|
243
256
|
readonly root: string;
|
|
244
257
|
readonly host: HostSelection;
|
|
245
258
|
readonly id?: string | undefined;
|
|
@@ -287,7 +300,7 @@ export interface Projected {
|
|
|
287
300
|
*/
|
|
288
301
|
export declare function applyInit(view: InitView, options: ApplyOptions): Promise<Applied>;
|
|
289
302
|
export declare function initEnvelope(view: InitView, apply: boolean, applied?: Applied | null): unknown;
|
|
290
|
-
export declare function renderInit(view: InitView, caps: Capabilities): string;
|
|
303
|
+
export declare function renderInit(view: InitView, caps: Capabilities, supplied?: string, advice?: AdviceContext): string;
|
|
291
304
|
/** §2.8 rule 3's change summary for `init`: the plan's own blocks without the preview note or the footer. */
|
|
292
305
|
export declare const renderInitSummary: (view: InitView, caps: Capabilities) => string;
|
|
293
306
|
export declare function renderApplied(view: InitView, applied: Applied, caps: Capabilities): string;
|
|
@@ -451,7 +464,7 @@ export interface MigrationOptions {
|
|
|
451
464
|
*/
|
|
452
465
|
export declare function applyMigration(view: MigrationView, options: MigrationOptions): Promise<Migrated>;
|
|
453
466
|
export declare function migrationEnvelope(view: MigrationView, apply: boolean, applied?: Migrated | null): unknown;
|
|
454
|
-
export declare function renderMigration(view: MigrationView, caps: Capabilities): string;
|
|
467
|
+
export declare function renderMigration(view: MigrationView, caps: Capabilities, supplied?: string): string;
|
|
455
468
|
export declare function renderMigrated(view: MigrationView, applied: Migrated, caps: Capabilities): string;
|
|
456
469
|
/**
|
|
457
470
|
* A finished git run's answer, or null when git is not really there: it could not start, or it is the macOS stub
|
package/dist/init.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpF,YAAY,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAiFvD,OAAO,KAAK,EAAE,gBAAgB,EAAqB,MAAM,6BAA6B,CAAC;AAMvF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAa5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAIrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAe7C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAMrD,OAAO,KAAK,EAAE,YAAY,EAAqB,MAAM,aAAa,CAAC;AAcnE,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AACxD,uHAAuH;AACvH,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,WAAW,GAAG,mBAAmB,GAAG,UAAU,CAAC;AACnF;;;GAGG;AACH,MAAM,MAAM,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AA8CD,MAAM,WAAW,gBAAgB;IAC/B,8GAA8G;IAC9G,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IAC1C;;;OAGG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;CAC5D;AAoDD;;;;;GAKG;AACH,wBAAsB,cAAc,CAAC,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAuNtG;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,GAAE,QAAQ,GAAG,IAAW,GAAG,OAAO,CA6B/G;AAmKD,wBAAgB,eAAe,CAAC,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAgBlG;AAID,wBAAgB,cAAc,CAAC,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,GAAG,MAAM,CAiEjG;AA4BD;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE;IAChC,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC;IACnC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB,GAAG,UAAU,CAAC,GAAG,CAAC,CAQlB"}
|
package/dist/init.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { registryWorkspace } from './adopt.js';
|
|
2
|
+
import { adoptedBindings } from '@inventarch/db';
|
|
3
|
+
import { adoptionId, planAdoption, applyAdoption } from '@inventarch/distribution/registry';
|
|
1
4
|
import { readBase, PIN_PATH, PACKAGE_ID, DAMAGED } from './bundled-base.js';
|
|
2
5
|
export { readBase, PIN_PATH, baseArchivePath, PACKAGE_ID } from './bundled-base.js';
|
|
3
6
|
/**
|
|
@@ -51,6 +54,7 @@ import { readMigrationJournal, beginMigrationJournal, applyMigrationFiles, finis
|
|
|
51
54
|
import { spawnSync } from 'node:child_process';
|
|
52
55
|
import { accessSync, constants, existsSync, lstatSync, mkdirSync, readdirSync, readFileSync, realpathSync, statSync, unlinkSync, } from 'node:fs';
|
|
53
56
|
import { basename, dirname, isAbsolute, join, resolve } from 'node:path';
|
|
57
|
+
import { inertCommandRoot } from '@inventarch/runtime';
|
|
54
58
|
import { decodeReleaseDescriptor, deriveGenerationInputs, generationDigest, installationWorkspace, readExpandedBundle, DISTRIBUTION_ENGINE_VERSION, INSTALL_PATHS, sha256, } from '@inventarch/db/distribution';
|
|
55
59
|
import { verifyArchive } from '@inventarch/distribution/archive';
|
|
56
60
|
import { assertHostRegistrationIdle } from '@inventarch/distribution/host';
|
|
@@ -65,11 +69,11 @@ import { confirm, iaHomeOf, Interrupted, Refusal, refusalOf, respell } from './c
|
|
|
65
69
|
import { clearDecline, runDecline } from './decline.js';
|
|
66
70
|
import { CONFIRMATION, registeredProjections } from './distribute.js';
|
|
67
71
|
import { applyHostSet, collectHost, GUARD_RETIRED, hostNotes, JOURNALS, projectionRepair, recoverCommand, refusedPath, rootedNext, SETTINGS, STATE, THEN_RERUN, } from './host.js';
|
|
68
|
-
import { applyHostProjection, planFiles, planRetirement, readReceipt, renderProjectionFor } from './host-projection.js';
|
|
72
|
+
import { applyHostProjection, planFiles, planRetirement, preflightHooks, readReceipt, renderProjectionFor, } from './host-projection.js';
|
|
69
73
|
import { located } from './home-remedy.js';
|
|
70
74
|
import { findProgram, programEnv, programHome } from './program.js';
|
|
71
75
|
import { codeOf, openSession } from './session.js';
|
|
72
|
-
import { atom, blockSymbolWidth, document, entry, fieldRows, headerLine, quote, sectionLabel, truncateDigest, words, } from './render.js';
|
|
76
|
+
import { atom, blockSymbolWidth, document, entry, fieldRows, headerLine, quote, safeRootAdvice, sectionLabel, truncateDigest, words, } from './render.js';
|
|
73
77
|
/**
|
|
74
78
|
* Relative to the `@inventarch/cli` package root, as `assets/vocabulary.json` is (vocabulary.ts CATALOGUE_PATH). The base
|
|
75
79
|
* package's id is read from this pin and appears nowhere in this source: M5.1 §3.2 makes the pin the only authority.
|
|
@@ -80,7 +84,8 @@ export const STARTER_VERSION = '0.1.0';
|
|
|
80
84
|
export const INSTALL_LOCK = '.ia/distributions/install-lock.json';
|
|
81
85
|
const cachePath = (digest) => `.ia/distributions/cache/${digest}.ia.tgz`;
|
|
82
86
|
const systemFolder = (name) => `.ia/src/systems/${name}`;
|
|
83
|
-
|
|
87
|
+
/** Plan amendment C20: where `ia author system <name>` writes a local system, as `ia init --system` does. */
|
|
88
|
+
export const systemPath = (name) => `${systemFolder(name)}/system.ia`;
|
|
84
89
|
const distributionPath = (name) => `${systemFolder(name)}/records/distribution.ia`;
|
|
85
90
|
/** Position-and-projection §3: the one file the three starter records share, at the root of the authored source. */
|
|
86
91
|
export const WORKSPACE_PATH = '.ia/src/workspace.ia';
|
|
@@ -202,6 +207,8 @@ function migrationGitConflict(root, base, lock) {
|
|
|
202
207
|
/** `packages/db/src/distribution/codec.ts` packageId and identifier: the id rule and the system-name ceiling. */
|
|
203
208
|
const NAME = /^[a-z][a-z0-9-]*$/;
|
|
204
209
|
const NAME_LIMIT = 64;
|
|
210
|
+
/** A local system name `ia init --system` and `ia author system` accept: the id rule and the system-name ceiling. */
|
|
211
|
+
export const isSystemName = (name) => NAME.test(name) && name.length <= NAME_LIMIT;
|
|
205
212
|
/** M5.2 §4.3: `createFile`'s temporary name, `<target>.<randomUUID()>.tmp` (apps/distribution/src/files.ts:76). */
|
|
206
213
|
export const LEFTOVER = /^(system\.ia|workspace\.ia|distribution\.ia|release\.json|\.gitignore)\.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\.tmp$/;
|
|
207
214
|
/** The installation, not the target, is at fault; `ia doctor` names the channel a reinstall goes through. */
|
|
@@ -311,7 +318,7 @@ export function starterSystem(name) {
|
|
|
311
318
|
* The participant `@agent` implies no host permission, and its `@mandate` grants it closed moves over that workspace;
|
|
312
319
|
* the mandate's one prose clause claims nothing. Every name is the workspace's (decision identity-namespace).
|
|
313
320
|
*/
|
|
314
|
-
export function starterRecords(name, systems) {
|
|
321
|
+
export function starterRecords(name, systems, sources = []) {
|
|
315
322
|
return [
|
|
316
323
|
'#! ia 1.0',
|
|
317
324
|
'',
|
|
@@ -321,7 +328,7 @@ export function starterRecords(name, systems) {
|
|
|
321
328
|
' answers "Which systems does this workspace compose?"',
|
|
322
329
|
' composition',
|
|
323
330
|
` systems [${systems.map((system) => `@system ${system}`).join(', ')}]`,
|
|
324
|
-
|
|
331
|
+
` sources [${['.ia/src @authored', ...sources].map((source) => JSON.stringify(source)).join(', ')}]`,
|
|
325
332
|
` steward @agent ${name}`,
|
|
326
333
|
'',
|
|
327
334
|
`@agent ${name}`,
|
|
@@ -367,10 +374,10 @@ export function starterDistribution(name) {
|
|
|
367
374
|
* `--system` the `@workspace` composes the local system after `systems` (position-and-projection §2 case 2: a
|
|
368
375
|
* repository that owns vocabulary composes its own system), so the packet renders a pointer line for it.
|
|
369
376
|
*/
|
|
370
|
-
export function starterFiles(name, systems, system) {
|
|
377
|
+
export function starterFiles(name, systems, system, sources = []) {
|
|
371
378
|
return {
|
|
372
379
|
files: [
|
|
373
|
-
{ path: WORKSPACE_PATH, text: starterRecords(name, system ? [...systems, name] : systems) },
|
|
380
|
+
{ path: WORKSPACE_PATH, text: starterRecords(name, system ? [...systems, name] : systems, sources) },
|
|
374
381
|
...(system
|
|
375
382
|
? [
|
|
376
383
|
{ path: systemPath(name), text: starterSystem(name) },
|
|
@@ -537,7 +544,15 @@ export function collectInit(request) {
|
|
|
537
544
|
conflicts.push(identity.conflict);
|
|
538
545
|
const { name, id } = identity;
|
|
539
546
|
const provenance = readProvenance(request.git);
|
|
540
|
-
const
|
|
547
|
+
const sources = present
|
|
548
|
+
? adoptedBindings(root).map((binding) => `${binding.tree}/.ia/src @${binding.placement ?? 'adopted'}`)
|
|
549
|
+
: [];
|
|
550
|
+
if (request.adoption) {
|
|
551
|
+
const source = `.ia/open/${adoptionId(request.adoption.id)}/${request.adoption.release.revision}/.ia/src @open`;
|
|
552
|
+
if (!sources.includes(source))
|
|
553
|
+
sources.push(source);
|
|
554
|
+
}
|
|
555
|
+
const { files, records } = name === null ? { files: [], records: [] } : starterFiles(name, base.systems, system, sources);
|
|
541
556
|
// M5.2 §4.3: a temporary file `createFile` left beside one of this initialization's own targets.
|
|
542
557
|
const targets = new Set([...files.map((file) => file.path), IGNORE_PATH, DESCRIPTOR_PATH]);
|
|
543
558
|
// `.<uuid>.tmp` is 41 characters: the dot, a 36-character UUID and `.tmp`.
|
|
@@ -635,6 +650,7 @@ export function collectInit(request) {
|
|
|
635
650
|
...(host === 'none' ? [] : [{ id: 'project', status: 'pending', paths: [] }]),
|
|
636
651
|
];
|
|
637
652
|
return {
|
|
653
|
+
...(request.adoption ? { adoption: request.adoption } : {}),
|
|
638
654
|
root,
|
|
639
655
|
owns: ownedPaths(name, system),
|
|
640
656
|
state,
|
|
@@ -706,6 +722,8 @@ export async function applyInit(view, options) {
|
|
|
706
722
|
if (step('install').status === 'pending')
|
|
707
723
|
await installBase(root, base, 'install', { signal: options.signal, checkpoint }, resume);
|
|
708
724
|
boundary('install');
|
|
725
|
+
if (view.adoption)
|
|
726
|
+
applyAdoption(planAdoption(root, view.adoption.id, view.adoption.release, false));
|
|
709
727
|
// Step 4, author: create-only, so a starter file already present with these bytes is skipped and nothing is ever
|
|
710
728
|
// rewritten. The ignore file is written only where none exists; one the target already holds is its own.
|
|
711
729
|
for (const file of starter.files)
|
|
@@ -798,7 +816,7 @@ const conflictMessage = (conflicts, blocked) => conflicts.length === 1
|
|
|
798
816
|
function initializedNext(view) {
|
|
799
817
|
if (!view.conflicts.some((row) => row.path === DESCRIPTOR_PATH && row.reason === 'The target is already initialized'))
|
|
800
818
|
return null;
|
|
801
|
-
return `${existsSync(resolve(view.root, WORKSPACE_PATH)) || existsSync(resolve(view.root, SYSTEMS)) ? '' : 'Restore the authored .ia/src/workspace.ia from source control first. '}Run "ia position --root ${quote(view.root)}" to inspect this initialized workspace
|
|
819
|
+
return safeRootAdvice(`${existsSync(resolve(view.root, WORKSPACE_PATH)) || existsSync(resolve(view.root, SYSTEMS)) ? '' : 'Restore the authored .ia/src/workspace.ia from source control first. '}Run "ia position --root ${quote(view.root)}" to inspect this initialized workspace.`, [view.root]);
|
|
802
820
|
}
|
|
803
821
|
function conflictRefusal(view) {
|
|
804
822
|
return new Refusal('IA-CLI-CONFLICT', conflictMessage(view.conflicts, 'initialization'), 3, { path: view.root }, initializedNext(view) ?? `Run "${view.invocation}" to review the plan and its conflicts.`);
|
|
@@ -811,6 +829,18 @@ export function initEnvelope(view, apply, applied = null) {
|
|
|
811
829
|
root: view.root,
|
|
812
830
|
apply,
|
|
813
831
|
plan: {
|
|
832
|
+
...(view.adoption
|
|
833
|
+
? {
|
|
834
|
+
adoption: {
|
|
835
|
+
id: view.adoption.id,
|
|
836
|
+
version: view.adoption.release.version,
|
|
837
|
+
revision: view.adoption.release.revision,
|
|
838
|
+
placement: 'open',
|
|
839
|
+
band: 50,
|
|
840
|
+
files: view.adoption.release.files.map((file) => file.path),
|
|
841
|
+
},
|
|
842
|
+
}
|
|
843
|
+
: {}),
|
|
814
844
|
state: view.state,
|
|
815
845
|
...(initializedNext(view) === null ? {} : { next: initializedNext(view) }),
|
|
816
846
|
owns: view.owns.map((row) => row.path),
|
|
@@ -961,14 +991,29 @@ const planBlocks = (view, caps) => {
|
|
|
961
991
|
],
|
|
962
992
|
];
|
|
963
993
|
};
|
|
964
|
-
export function renderInit(view, caps) {
|
|
965
|
-
const next = view.state === 'conflict'
|
|
994
|
+
export function renderInit(view, caps, supplied, advice) {
|
|
995
|
+
const next = safeRootAdvice(view.state === 'conflict'
|
|
966
996
|
? (initializedNext(view) ?? `Resolve the conflicts above, then run "${view.invocation} --apply --yes".`)
|
|
967
|
-
: `Apply with "${view.invocation} --apply --yes".${view.state === 'resumable' ? ' Completed steps are skipped.' : ''}
|
|
997
|
+
: `Apply with "${view.invocation} --apply --yes".${view.state === 'resumable' ? ' Completed steps are skipped.' : ''}`, [view.root, supplied], advice);
|
|
968
998
|
return document([
|
|
969
999
|
headerLine('Plan', 'init', [{ text: view.root, column: 50 }], caps),
|
|
970
1000
|
entry([words('This is a preview. Nothing has been written.')], { depth: 1 }, caps),
|
|
1001
|
+
...(view.adoption
|
|
1002
|
+
? [
|
|
1003
|
+
entry([
|
|
1004
|
+
words(`Adopt ${view.adoption.id}@${view.adoption.release.version}, pinned ${view.adoption.release.revision}, as source-only material at @open (band 50).`),
|
|
1005
|
+
], { depth: 1 }, caps),
|
|
1006
|
+
]
|
|
1007
|
+
: []),
|
|
971
1008
|
...planBlocks(view, caps),
|
|
1009
|
+
...(view.directory === 'absent' &&
|
|
1010
|
+
(!inertCommandRoot(view.root) || (supplied !== undefined && !inertCommandRoot(supplied)))
|
|
1011
|
+
? [
|
|
1012
|
+
entry([
|
|
1013
|
+
words('Create the target directory without pasting its path into a shell, then enter it before running the suggested command.'),
|
|
1014
|
+
], { depth: 0 }, caps),
|
|
1015
|
+
]
|
|
1016
|
+
: []),
|
|
972
1017
|
entry([words(next)], { depth: 0, symbol: 'step' }, caps),
|
|
973
1018
|
], { leadingBlank: true });
|
|
974
1019
|
}
|
|
@@ -1020,14 +1065,19 @@ export function renderApplied(view, applied, caps) {
|
|
|
1020
1065
|
closingEntry(applied.distribution, caps),
|
|
1021
1066
|
], { leadingBlank: true });
|
|
1022
1067
|
}
|
|
1023
|
-
const renderDeclined = (view, caps) => document([
|
|
1068
|
+
const renderDeclined = (view, caps, supplied, advice) => document([
|
|
1024
1069
|
entry([words('Nothing was applied.')], { depth: 0, symbol: 'info' }, caps),
|
|
1025
|
-
entry([words(`Apply with "${view.invocation} --apply --yes"
|
|
1070
|
+
entry([words(safeRootAdvice(`Apply with "${view.invocation} --apply --yes".`, [view.root, supplied], advice))], { depth: 0, symbol: 'step' }, caps),
|
|
1026
1071
|
], { leadingBlank: true });
|
|
1027
1072
|
function invocationOf(context) {
|
|
1028
1073
|
const { args } = context;
|
|
1029
1074
|
const parts = ['ia init', ...args.positionals.map(quote)];
|
|
1030
1075
|
const id = args.value('id'), host = args.value('host');
|
|
1076
|
+
for (const option of ['adopt', 'registry']) {
|
|
1077
|
+
const value = args.value(option);
|
|
1078
|
+
if (value !== undefined)
|
|
1079
|
+
parts.push(`--${option}`, quote(value));
|
|
1080
|
+
}
|
|
1031
1081
|
if (id !== undefined)
|
|
1032
1082
|
parts.push('--id', quote(id));
|
|
1033
1083
|
if (args.flag('migrate'))
|
|
@@ -1041,6 +1091,8 @@ function invocationOf(context) {
|
|
|
1041
1091
|
export async function runInit(context) {
|
|
1042
1092
|
const { args, host } = context;
|
|
1043
1093
|
const id = args.value('id');
|
|
1094
|
+
if (args.value('registry') !== undefined && args.value('adopt') === undefined)
|
|
1095
|
+
throw new UsageError('ia init --registry requires --adopt');
|
|
1044
1096
|
// A malformed identity is usage (§3), decided before the target is read.
|
|
1045
1097
|
if (id !== undefined && (!PACKAGE_ID.test(id) || id.includes('..')))
|
|
1046
1098
|
throw new UsageError(`--id must be <provider/name>; got ${id}`);
|
|
@@ -1075,7 +1127,9 @@ async function initialize(context, root, id) {
|
|
|
1075
1127
|
const selected = (args.value('host') ?? 'none');
|
|
1076
1128
|
const apply = args.flag('apply');
|
|
1077
1129
|
const existing = statSync(root, { throwIfNoEntry: false }) === undefined ? dirname(root) : root;
|
|
1130
|
+
const adoption = args.value('adopt') === undefined ? undefined : await registryWorkspace(context, root, args.value('adopt'));
|
|
1078
1131
|
const view = collectInit({
|
|
1132
|
+
...(adoption ? { adoption } : {}),
|
|
1079
1133
|
root,
|
|
1080
1134
|
host: selected,
|
|
1081
1135
|
id,
|
|
@@ -1088,7 +1142,7 @@ async function initialize(context, root, id) {
|
|
|
1088
1142
|
? { exitCode: 0, stdout: JSON.stringify(initEnvelope(view, apply, applied)) + '\n', stderr: '' }
|
|
1089
1143
|
: {
|
|
1090
1144
|
exitCode: 0,
|
|
1091
|
-
stdout: applied === null ? renderInit(view, caps) : renderApplied(view, applied, caps),
|
|
1145
|
+
stdout: applied === null ? renderInit(view, caps, args.positionals[0], host) : renderApplied(view, applied, caps),
|
|
1092
1146
|
stderr: '',
|
|
1093
1147
|
};
|
|
1094
1148
|
// §2.1: conflicts are reported inside the plan and are not an error class, so a plan is always exit 0.
|
|
@@ -1098,7 +1152,7 @@ async function initialize(context, root, id) {
|
|
|
1098
1152
|
throw conflictRefusal(view);
|
|
1099
1153
|
// §2.8 rule 3, as `ia install` asks it: parsing already refused every `--apply` whose question cannot be answered.
|
|
1100
1154
|
if (!args.flag('yes') && !(await confirm(host.interaction, renderInitSummary(view, caps), CONFIRMATION)))
|
|
1101
|
-
return { exitCode: 0, stdout: renderDeclined(view, caps), stderr: '' };
|
|
1155
|
+
return { exitCode: 0, stdout: renderDeclined(view, caps, args.positionals[0], host), stderr: '' };
|
|
1102
1156
|
// The project effect, last (position-and-projection §3): the `ia host` path, whose apply writes the receipt.
|
|
1103
1157
|
const project = selected === 'none' ? undefined : (done) => registerHost(context, selected, root, done);
|
|
1104
1158
|
try {
|
|
@@ -1390,6 +1444,8 @@ export function collectMigration(request) {
|
|
|
1390
1444
|
for (const host of projected)
|
|
1391
1445
|
try {
|
|
1392
1446
|
const guard = planRetirement(root, host) === null ? 'none' : 'retire';
|
|
1447
|
+
// The hook step the projection effect runs (review finding H-R3), found before the migration plans its writes.
|
|
1448
|
+
preflightHooks(root, host);
|
|
1393
1449
|
hosts.push({ host, guard, files: migratedFiles(root, host) });
|
|
1394
1450
|
}
|
|
1395
1451
|
catch (error) {
|
|
@@ -1822,10 +1878,10 @@ const migrationBlocks = (view, caps) => {
|
|
|
1822
1878
|
];
|
|
1823
1879
|
};
|
|
1824
1880
|
const migrationHeader = (view, caps) => headerLine('Plan', `init --migrate from ${MIGRATES_FROM}`, [{ text: view.root, column: 50 }], caps);
|
|
1825
|
-
export function renderMigration(view, caps) {
|
|
1826
|
-
const next = view.conflicts.length > 0
|
|
1881
|
+
export function renderMigration(view, caps, supplied) {
|
|
1882
|
+
const next = safeRootAdvice(view.conflicts.length > 0
|
|
1827
1883
|
? `Resolve the conflicts above, then run "${view.invocation} --apply --yes".`
|
|
1828
|
-
: `Apply with "${view.invocation} --apply --yes"
|
|
1884
|
+
: `Apply with "${view.invocation} --apply --yes".`, [view.root, supplied]);
|
|
1829
1885
|
return document([
|
|
1830
1886
|
migrationHeader(view, caps),
|
|
1831
1887
|
entry([words('This is a preview. Nothing has been written.')], { depth: 1 }, caps),
|
|
@@ -1884,7 +1940,7 @@ async function migrate(context, root) {
|
|
|
1884
1940
|
? { exitCode: 0, stdout: JSON.stringify(migrationEnvelope(view, apply, applied)) + '\n', stderr: '' }
|
|
1885
1941
|
: {
|
|
1886
1942
|
exitCode: 0,
|
|
1887
|
-
stdout: applied === null ? renderMigration(view, caps) : renderMigrated(view, applied, caps),
|
|
1943
|
+
stdout: applied === null ? renderMigration(view, caps, args.positionals[0]) : renderMigrated(view, applied, caps),
|
|
1888
1944
|
stderr: '',
|
|
1889
1945
|
};
|
|
1890
1946
|
if (!apply)
|
|
@@ -1892,7 +1948,7 @@ async function migrate(context, root) {
|
|
|
1892
1948
|
if (view.conflicts.length > 0)
|
|
1893
1949
|
throw migrationRefusal(view);
|
|
1894
1950
|
if (!args.flag('yes') && !(await confirm(host.interaction, renderMigrationSummary(view, caps), CONFIRMATION)))
|
|
1895
|
-
return { exitCode: 0, stdout: renderDeclined(view, caps), stderr: '' };
|
|
1951
|
+
return { exitCode: 0, stdout: renderDeclined(view, caps, args.positionals[0]), stderr: '' };
|
|
1896
1952
|
return rendered(await applyMigration(view, { packageRoot: host.packageRoot, signal: host.signal }));
|
|
1897
1953
|
}
|
|
1898
1954
|
/**
|