@papillon6814/copi 0.1.0 → 0.2.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/LICENSE.unicode +39 -0
- package/README.md +57 -5
- package/dist/native/rename-exclusive-arm64 +0 -0
- package/dist/native/rename-exclusive-arm64.manifest.json +12 -0
- package/dist/src/apply.d.ts +9 -0
- package/dist/src/apply.js +110 -9
- package/dist/src/catalog.d.ts +21 -4
- package/dist/src/catalog.js +265 -133
- package/dist/src/cli.d.ts +2 -1
- package/dist/src/cli.js +73 -3
- package/dist/src/groups.js +8 -3
- package/dist/src/inspect.d.ts +3 -1
- package/dist/src/inspect.js +16 -6
- package/dist/src/instruction-reference.d.ts +6 -0
- package/dist/src/instruction-reference.js +21 -0
- package/dist/src/manage.d.ts +2 -0
- package/dist/src/manage.js +329 -0
- package/dist/src/migrate.d.ts +25 -0
- package/dist/src/migrate.js +171 -0
- package/dist/src/migration-backup.d.ts +22 -0
- package/dist/src/migration-backup.js +403 -0
- package/dist/src/migration-inventory.d.ts +9 -0
- package/dist/src/migration-inventory.js +237 -0
- package/dist/src/migration-resolution.d.ts +28 -0
- package/dist/src/migration-resolution.js +1618 -0
- package/dist/src/migration.d.ts +49 -0
- package/dist/src/migration.js +1004 -0
- package/dist/src/names.d.ts +11 -0
- package/dist/src/names.js +40 -0
- package/dist/src/native-placement.d.ts +16 -0
- package/dist/src/native-placement.js +557 -0
- package/dist/src/refresh.d.ts +20 -0
- package/dist/src/refresh.js +143 -0
- package/dist/src/resource-mutations.d.ts +45 -0
- package/dist/src/resource-mutations.js +225 -0
- package/dist/src/source-content.d.ts +4 -0
- package/dist/src/source-content.js +208 -0
- package/dist/src/storage-journal.d.ts +111 -0
- package/dist/src/storage-journal.js +613 -0
- package/dist/src/storage-root-lease.d.ts +7 -0
- package/dist/src/storage-root-lease.js +92 -0
- package/dist/src/storage-transaction.d.ts +100 -0
- package/dist/src/storage-transaction.js +3951 -0
- package/dist/src/terminal-editor.d.ts +8 -0
- package/dist/src/terminal-editor.js +391 -0
- package/dist/src/types.d.ts +18 -2
- package/dist/src/unicode-case-folding-data.d.ts +1 -0
- package/dist/src/unicode-case-folding-data.js +1596 -0
- package/dist/src/unicode-case-folding.d.ts +2 -0
- package/dist/src/unicode-case-folding.js +9 -0
- package/dist/src/wizard.d.ts +12 -3
- package/dist/src/wizard.js +287 -19
- package/package.json +5 -3
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ChangeApproval } from "./resource-mutations.ts";
|
|
2
|
+
import type { MigrationMaskedDiff, MigrationResult, MigrationViewItem, MigrationWarning } from "./migration.ts";
|
|
3
|
+
declare const preparedMigrationResolutionBrand: unique symbol;
|
|
4
|
+
export interface PreparedMigrationResolution {
|
|
5
|
+
readonly [preparedMigrationResolutionBrand]: true;
|
|
6
|
+
readonly reviewId: string;
|
|
7
|
+
}
|
|
8
|
+
export type MigrationResolutionStatus = "ready" | "blocked" | "not-needed";
|
|
9
|
+
export interface MigrationResolutionView {
|
|
10
|
+
readonly reviewId: string;
|
|
11
|
+
readonly status: MigrationResolutionStatus;
|
|
12
|
+
readonly backupDir: string | null;
|
|
13
|
+
readonly items: readonly MigrationViewItem[];
|
|
14
|
+
readonly conflicts: readonly string[];
|
|
15
|
+
readonly preservedPaths: readonly string[];
|
|
16
|
+
readonly maskedDiffs: readonly MigrationMaskedDiff[];
|
|
17
|
+
readonly sensitivePaths: readonly string[];
|
|
18
|
+
readonly warnings: readonly MigrationWarning[];
|
|
19
|
+
}
|
|
20
|
+
export type MigrationResolutionCheckpoint = "lease-acquired" | "before-claim-mkdir" | "after-claim-mkdir" | "after-claim-owner-temp-write" | "after-claim-owner-temp-sync" | "after-claim-owner-install" | "after-claim-directory-sync" | "after-claim-temp-unlink" | "after-claim-root-sync" | "before-record-temp-write" | "after-record-temp-write" | "after-record-temp-sync" | "after-record-install" | "after-record-root-sync" | "after-record-temp-unlink" | "after-record-temp-root-sync" | "before-action-intent" | "after-action-intent-temp-write" | "after-action-intent-temp-sync" | "after-action-intent-install" | "after-action-intent-root-sync" | "after-action-progress-temp-write" | "after-action-progress-temp-sync" | "after-action-progress-install" | "after-action-progress-root-sync" | "after-generation-temp-write" | "after-generation-temp-sync" | "after-generation-replace" | "after-generation-root-sync" | "before-action-unlink" | "after-action-unlink" | "before-action-parent-sync" | "after-action-parent-sync" | "after-terminal-update" | "before-record-unlink" | "after-record-unlink" | "after-record-unlink-root-sync";
|
|
21
|
+
/** @internal A deterministic crash seam for subprocess checkpoint tests. */
|
|
22
|
+
export declare function setMigrationResolutionCheckpointForTests(callback: ((point: MigrationResolutionCheckpoint, root: string) => void | Promise<void>) | undefined): void;
|
|
23
|
+
export declare function prepareMigrationResolution(libraryDir: string): Promise<PreparedMigrationResolution>;
|
|
24
|
+
export declare function readMigrationResolution(plan: PreparedMigrationResolution): MigrationResolutionView;
|
|
25
|
+
/** @internal Cooperating ordinary storage readers/writers call this while holding the O_EXLOCK root lease. */
|
|
26
|
+
export declare function resumeCompletedMigrationResolution(root: string, assertRootCurrent?: () => Promise<void>): Promise<void>;
|
|
27
|
+
export declare function commitMigrationResolution(plan: PreparedMigrationResolution, approval: ChangeApproval): Promise<MigrationResult>;
|
|
28
|
+
export {};
|