@vibesdotdev/plugins 0.0.0-stage → 1.0.0-rc.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/LICENSE +18 -0
- package/README.md +54 -2
- package/VIBES.md +165 -0
- package/dist/ai/index.d.ts +4 -0
- package/dist/ai/index.d.ts.map +1 -0
- package/dist/ai/index.js +3 -0
- package/dist/ai/index.js.map +1 -0
- package/dist/ai/plugin.impl.cloud.d.ts +4 -0
- package/dist/ai/plugin.impl.cloud.d.ts.map +1 -0
- package/dist/ai/plugin.impl.cloud.js +32 -0
- package/dist/ai/plugin.impl.cloud.js.map +1 -0
- package/dist/ai/plugin.impl.consumer.d.ts +7 -0
- package/dist/ai/plugin.impl.consumer.d.ts.map +1 -0
- package/dist/ai/plugin.impl.consumer.js +222 -0
- package/dist/ai/plugin.impl.consumer.js.map +1 -0
- package/dist/auth/consumer.plugin.d.ts +3 -0
- package/dist/auth/consumer.plugin.d.ts.map +1 -0
- package/dist/auth/consumer.plugin.js +105 -0
- package/dist/auth/consumer.plugin.js.map +1 -0
- package/dist/auth/index.d.ts +2 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/index.js +2 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/auth/plugin.d.ts +4 -0
- package/dist/auth/plugin.d.ts.map +1 -0
- package/dist/auth/plugin.js +33 -0
- package/dist/auth/plugin.js.map +1 -0
- package/dist/automation/consumer.plugin.d.ts +3 -0
- package/dist/automation/consumer.plugin.d.ts.map +1 -0
- package/dist/automation/consumer.plugin.js +92 -0
- package/dist/automation/consumer.plugin.js.map +1 -0
- package/dist/automation/index.d.ts +2 -0
- package/dist/automation/index.d.ts.map +1 -0
- package/dist/automation/index.js +2 -0
- package/dist/automation/index.js.map +1 -0
- package/dist/automation/plugin.d.ts +4 -0
- package/dist/automation/plugin.d.ts.map +1 -0
- package/dist/automation/plugin.js +30 -0
- package/dist/automation/plugin.js.map +1 -0
- package/dist/bun/host.d.ts +44 -0
- package/dist/bun/host.d.ts.map +1 -0
- package/dist/bun/host.js +71 -0
- package/dist/bun/host.js.map +1 -0
- package/dist/cli/child-failure.d.ts +37 -0
- package/dist/cli/child-failure.d.ts.map +1 -0
- package/dist/cli/child-failure.js +86 -0
- package/dist/cli/child-failure.js.map +1 -0
- package/dist/cli/context.d.ts +12 -0
- package/dist/cli/context.d.ts.map +1 -0
- package/dist/cli/context.js +11 -0
- package/dist/cli/context.js.map +1 -0
- package/dist/cli/execution.d.ts +10 -0
- package/dist/cli/execution.d.ts.map +1 -0
- package/dist/cli/execution.js +20 -0
- package/dist/cli/execution.js.map +1 -0
- package/dist/cli/failure-facts.d.ts +16 -0
- package/dist/cli/failure-facts.d.ts.map +1 -0
- package/dist/cli/failure-facts.js +39 -0
- package/dist/cli/failure-facts.js.map +1 -0
- package/dist/cli/package-manager.consumer.d.ts +106 -0
- package/dist/cli/package-manager.consumer.d.ts.map +1 -0
- package/dist/cli/package-manager.consumer.js +258 -0
- package/dist/cli/package-manager.consumer.js.map +1 -0
- package/dist/cli/plugin.d.ts +9 -0
- package/dist/cli/plugin.d.ts.map +1 -0
- package/dist/cli/plugin.js +34 -0
- package/dist/cli/plugin.js.map +1 -0
- package/dist/cli/plugins.add.cli-command.descriptor.d.ts +36 -0
- package/dist/cli/plugins.add.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/plugins.add.cli-command.descriptor.js +31 -0
- package/dist/cli/plugins.add.cli-command.descriptor.js.map +1 -0
- package/dist/cli/plugins.add.cli-command.impl.consumer.d.ts +63 -0
- package/dist/cli/plugins.add.cli-command.impl.consumer.d.ts.map +1 -0
- package/dist/cli/plugins.add.cli-command.impl.consumer.js +206 -0
- package/dist/cli/plugins.add.cli-command.impl.consumer.js.map +1 -0
- package/dist/cli/plugins.cli-group.descriptor.d.ts +4 -0
- package/dist/cli/plugins.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/plugins.cli-group.descriptor.js +10 -0
- package/dist/cli/plugins.cli-group.descriptor.js.map +1 -0
- package/dist/cli/plugins.host.cli-command.descriptor.d.ts +31 -0
- package/dist/cli/plugins.host.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/plugins.host.cli-command.descriptor.js +37 -0
- package/dist/cli/plugins.host.cli-command.descriptor.js.map +1 -0
- package/dist/cli/plugins.host.cli-command.impl.consumer.d.ts +29 -0
- package/dist/cli/plugins.host.cli-command.impl.consumer.d.ts.map +1 -0
- package/dist/cli/plugins.host.cli-command.impl.consumer.js +109 -0
- package/dist/cli/plugins.host.cli-command.impl.consumer.js.map +1 -0
- package/dist/cli/plugins.link.cli-command.descriptor.d.ts +35 -0
- package/dist/cli/plugins.link.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/plugins.link.cli-command.descriptor.js +32 -0
- package/dist/cli/plugins.link.cli-command.descriptor.js.map +1 -0
- package/dist/cli/plugins.link.cli-command.impl.consumer.d.ts +31 -0
- package/dist/cli/plugins.link.cli-command.impl.consumer.d.ts.map +1 -0
- package/dist/cli/plugins.link.cli-command.impl.consumer.js +104 -0
- package/dist/cli/plugins.link.cli-command.impl.consumer.js.map +1 -0
- package/dist/cli/plugins.list.cli-command.descriptor.d.ts +26 -0
- package/dist/cli/plugins.list.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/plugins.list.cli-command.descriptor.js +22 -0
- package/dist/cli/plugins.list.cli-command.descriptor.js.map +1 -0
- package/dist/cli/plugins.list.cli-command.impl.consumer.d.ts +116 -0
- package/dist/cli/plugins.list.cli-command.impl.consumer.d.ts.map +1 -0
- package/dist/cli/plugins.list.cli-command.impl.consumer.js +343 -0
- package/dist/cli/plugins.list.cli-command.impl.consumer.js.map +1 -0
- package/dist/cli/plugins.remove.cli-command.descriptor.d.ts +31 -0
- package/dist/cli/plugins.remove.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/plugins.remove.cli-command.descriptor.js +26 -0
- package/dist/cli/plugins.remove.cli-command.descriptor.js.map +1 -0
- package/dist/cli/plugins.remove.cli-command.impl.consumer.d.ts +30 -0
- package/dist/cli/plugins.remove.cli-command.impl.consumer.d.ts.map +1 -0
- package/dist/cli/plugins.remove.cli-command.impl.consumer.js +80 -0
- package/dist/cli/plugins.remove.cli-command.impl.consumer.js.map +1 -0
- package/dist/cli/plugins.unlink.cli-command.descriptor.d.ts +31 -0
- package/dist/cli/plugins.unlink.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/plugins.unlink.cli-command.descriptor.js +21 -0
- package/dist/cli/plugins.unlink.cli-command.descriptor.js.map +1 -0
- package/dist/cli/plugins.unlink.cli-command.impl.consumer.d.ts +76 -0
- package/dist/cli/plugins.unlink.cli-command.impl.consumer.d.ts.map +1 -0
- package/dist/cli/plugins.unlink.cli-command.impl.consumer.js +190 -0
- package/dist/cli/plugins.unlink.cli-command.impl.consumer.js.map +1 -0
- package/dist/cli/registry-sign-in.consumer.d.ts +80 -0
- package/dist/cli/registry-sign-in.consumer.d.ts.map +1 -0
- package/dist/cli/registry-sign-in.consumer.js +199 -0
- package/dist/cli/registry-sign-in.consumer.js.map +1 -0
- package/dist/cli/roll.d.ts +230 -0
- package/dist/cli/roll.d.ts.map +1 -0
- package/dist/cli/roll.js +569 -0
- package/dist/cli/roll.js.map +1 -0
- package/dist/cli/schemas/context.d.ts +10 -0
- package/dist/cli/schemas/context.d.ts.map +1 -0
- package/dist/cli/schemas/context.js +3 -0
- package/dist/cli/schemas/context.js.map +1 -0
- package/dist/cli/schemas/scopes.d.ts +37 -0
- package/dist/cli/schemas/scopes.d.ts.map +1 -0
- package/dist/cli/schemas/scopes.js +11 -0
- package/dist/cli/schemas/scopes.js.map +1 -0
- package/dist/cli/schemas/unlink.d.ts +18 -0
- package/dist/cli/schemas/unlink.d.ts.map +1 -0
- package/dist/cli/schemas/unlink.js +3 -0
- package/dist/cli/schemas/unlink.js.map +1 -0
- package/dist/cli/schemas/update.d.ts +77 -0
- package/dist/cli/schemas/update.d.ts.map +1 -0
- package/dist/cli/schemas/update.js +3 -0
- package/dist/cli/schemas/update.js.map +1 -0
- package/dist/cli/scopes.d.ts +50 -0
- package/dist/cli/scopes.d.ts.map +1 -0
- package/dist/cli/scopes.js +90 -0
- package/dist/cli/scopes.js.map +1 -0
- package/dist/cli/seed.d.ts +232 -0
- package/dist/cli/seed.d.ts.map +1 -0
- package/dist/cli/seed.js +590 -0
- package/dist/cli/seed.js.map +1 -0
- package/dist/cli/self-update.d.ts +120 -0
- package/dist/cli/self-update.d.ts.map +1 -0
- package/dist/cli/self-update.js +274 -0
- package/dist/cli/self-update.js.map +1 -0
- package/dist/cli/update.cli-command.descriptor.d.ts +62 -0
- package/dist/cli/update.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/update.cli-command.descriptor.js +49 -0
- package/dist/cli/update.cli-command.descriptor.js.map +1 -0
- package/dist/cli/update.cli-command.impl.consumer.d.ts +178 -0
- package/dist/cli/update.cli-command.impl.consumer.d.ts.map +1 -0
- package/dist/cli/update.cli-command.impl.consumer.js +750 -0
- package/dist/cli/update.cli-command.impl.consumer.js.map +1 -0
- package/dist/comms/consumer.plugin.d.ts +3 -0
- package/dist/comms/consumer.plugin.d.ts.map +1 -0
- package/dist/comms/consumer.plugin.js +108 -0
- package/dist/comms/consumer.plugin.js.map +1 -0
- package/dist/comms/index.d.ts +2 -0
- package/dist/comms/index.d.ts.map +1 -0
- package/dist/comms/index.js +2 -0
- package/dist/comms/index.js.map +1 -0
- package/dist/comms/plugin.d.ts +4 -0
- package/dist/comms/plugin.d.ts.map +1 -0
- package/dist/comms/plugin.js +30 -0
- package/dist/comms/plugin.js.map +1 -0
- package/dist/consumer.d.ts +3 -0
- package/dist/consumer.d.ts.map +1 -0
- package/dist/consumer.js +3 -0
- package/dist/consumer.js.map +1 -0
- package/dist/consumer.plugin.d.ts +63 -0
- package/dist/consumer.plugin.d.ts.map +1 -0
- package/dist/consumer.plugin.js +89 -0
- package/dist/consumer.plugin.js.map +1 -0
- package/dist/core/consumer.plugin.d.ts +4 -0
- package/dist/core/consumer.plugin.d.ts.map +1 -0
- package/dist/core/consumer.plugin.js +358 -0
- package/dist/core/consumer.plugin.js.map +1 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +2 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/optional-member.d.ts +11 -0
- package/dist/core/optional-member.d.ts.map +1 -0
- package/dist/core/optional-member.js +68 -0
- package/dist/core/optional-member.js.map +1 -0
- package/dist/core/optional-plugin.d.ts +40 -0
- package/dist/core/optional-plugin.d.ts.map +1 -0
- package/dist/core/optional-plugin.js +107 -0
- package/dist/core/optional-plugin.js.map +1 -0
- package/dist/core/plugin.d.ts +10 -0
- package/dist/core/plugin.d.ts.map +1 -0
- package/dist/core/plugin.js +64 -0
- package/dist/core/plugin.js.map +1 -0
- package/dist/core/setup-requirements.descriptors.d.ts +7 -0
- package/dist/core/setup-requirements.descriptors.d.ts.map +1 -0
- package/dist/core/setup-requirements.descriptors.js +117 -0
- package/dist/core/setup-requirements.descriptors.js.map +1 -0
- package/dist/data/consumer.plugin.d.ts +3 -0
- package/dist/data/consumer.plugin.d.ts.map +1 -0
- package/dist/data/consumer.plugin.js +99 -0
- package/dist/data/consumer.plugin.js.map +1 -0
- package/dist/data/index.d.ts +2 -0
- package/dist/data/index.d.ts.map +1 -0
- package/dist/data/index.js +2 -0
- package/dist/data/index.js.map +1 -0
- package/dist/data/plugin.d.ts +4 -0
- package/dist/data/plugin.d.ts.map +1 -0
- package/dist/data/plugin.js +37 -0
- package/dist/data/plugin.js.map +1 -0
- package/dist/devtools/consumer.plugin.d.ts +3 -0
- package/dist/devtools/consumer.plugin.d.ts.map +1 -0
- package/dist/devtools/consumer.plugin.js +323 -0
- package/dist/devtools/consumer.plugin.js.map +1 -0
- package/dist/devtools/index.d.ts +2 -0
- package/dist/devtools/index.d.ts.map +1 -0
- package/dist/devtools/index.js +2 -0
- package/dist/devtools/index.js.map +1 -0
- package/dist/devtools/plugin.d.ts +4 -0
- package/dist/devtools/plugin.d.ts.map +1 -0
- package/dist/devtools/plugin.js +34 -0
- package/dist/devtools/plugin.js.map +1 -0
- package/dist/filesystem/index.d.ts +2 -0
- package/dist/filesystem/index.d.ts.map +1 -0
- package/dist/filesystem/index.js +2 -0
- package/dist/filesystem/index.js.map +1 -0
- package/dist/filesystem/plugin.d.ts +4 -0
- package/dist/filesystem/plugin.d.ts.map +1 -0
- package/dist/filesystem/plugin.js +21 -0
- package/dist/filesystem/plugin.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/plugin.d.ts +7 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/plugin.js +16 -0
- package/dist/plugin.js.map +1 -0
- package/dist/schemas/ai.d.ts +119 -0
- package/dist/schemas/ai.d.ts.map +1 -0
- package/dist/schemas/ai.js +84 -0
- package/dist/schemas/ai.js.map +1 -0
- package/dist/schemas/auth.d.ts +15 -0
- package/dist/schemas/auth.d.ts.map +1 -0
- package/dist/schemas/auth.js +19 -0
- package/dist/schemas/auth.js.map +1 -0
- package/dist/schemas/automation.d.ts +66 -0
- package/dist/schemas/automation.d.ts.map +1 -0
- package/dist/schemas/automation.js +36 -0
- package/dist/schemas/automation.js.map +1 -0
- package/dist/schemas/comms.d.ts +13 -0
- package/dist/schemas/comms.d.ts.map +1 -0
- package/dist/schemas/comms.js +27 -0
- package/dist/schemas/comms.js.map +1 -0
- package/dist/schemas/core.d.ts +102 -0
- package/dist/schemas/core.d.ts.map +1 -0
- package/dist/schemas/core.js +124 -0
- package/dist/schemas/core.js.map +1 -0
- package/dist/schemas/data.d.ts +13 -0
- package/dist/schemas/data.d.ts.map +1 -0
- package/dist/schemas/data.js +25 -0
- package/dist/schemas/data.js.map +1 -0
- package/dist/schemas/devtools.d.ts +33 -0
- package/dist/schemas/devtools.d.ts.map +1 -0
- package/dist/schemas/devtools.js +56 -0
- package/dist/schemas/devtools.js.map +1 -0
- package/dist/schemas/family.d.ts +11 -0
- package/dist/schemas/family.d.ts.map +1 -0
- package/dist/schemas/family.js +21 -0
- package/dist/schemas/family.js.map +1 -0
- package/dist/schemas/filesystem.d.ts +25 -0
- package/dist/schemas/filesystem.d.ts.map +1 -0
- package/dist/schemas/filesystem.js +24 -0
- package/dist/schemas/filesystem.js.map +1 -0
- package/dist/schemas/host.d.ts +10 -0
- package/dist/schemas/host.d.ts.map +1 -0
- package/dist/schemas/host.js +2 -0
- package/dist/schemas/host.js.map +1 -0
- package/dist/schemas/optional-member.d.ts +67 -0
- package/dist/schemas/optional-member.d.ts.map +1 -0
- package/dist/schemas/optional-member.js +31 -0
- package/dist/schemas/optional-member.js.map +1 -0
- package/dist/schemas/roll.d.ts +47 -0
- package/dist/schemas/roll.d.ts.map +1 -0
- package/dist/schemas/roll.js +18 -0
- package/dist/schemas/roll.js.map +1 -0
- package/dist/schemas/tui.d.ts +33 -0
- package/dist/schemas/tui.d.ts.map +1 -0
- package/dist/schemas/tui.js +95 -0
- package/dist/schemas/tui.js.map +1 -0
- package/dist/schemas/ui.d.ts +15 -0
- package/dist/schemas/ui.d.ts.map +1 -0
- package/dist/schemas/ui.js +45 -0
- package/dist/schemas/ui.js.map +1 -0
- package/dist/tui/code-sessions-tui-plugin-shim.d.ts +7 -0
- package/dist/tui/code-sessions-tui-plugin-shim.d.ts.map +1 -0
- package/dist/tui/code-sessions-tui-plugin-shim.js +2 -0
- package/dist/tui/code-sessions-tui-plugin-shim.js.map +1 -0
- package/dist/tui/index.d.ts +8 -0
- package/dist/tui/index.d.ts.map +1 -0
- package/dist/tui/index.js +8 -0
- package/dist/tui/index.js.map +1 -0
- package/dist/tui/plugin.d.ts +53 -0
- package/dist/tui/plugin.d.ts.map +1 -0
- package/dist/tui/plugin.js +350 -0
- package/dist/tui/plugin.js.map +1 -0
- package/dist/ui/consumer.plugin.d.ts +3 -0
- package/dist/ui/consumer.plugin.d.ts.map +1 -0
- package/dist/ui/consumer.plugin.js +75 -0
- package/dist/ui/consumer.plugin.js.map +1 -0
- package/dist/ui/index.d.ts +2 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +2 -0
- package/dist/ui/index.js.map +1 -0
- package/dist/ui/plugin.d.ts +4 -0
- package/dist/ui/plugin.d.ts.map +1 -0
- package/dist/ui/plugin.js +35 -0
- package/dist/ui/plugin.js.map +1 -0
- package/host-start.mjs +39 -0
- package/host.mjs +24 -0
- package/package.json +437 -4
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import type { CommandExecutionStartInfo } from '@vibesdotdev/cli/schemas/surface';
|
|
2
|
+
import type { CLICommandAssetDescriptor } from '@vibesdotdev/cli/schemas/types';
|
|
3
|
+
import { type RuntimeRef } from '@vibesdotdev/kernel';
|
|
4
|
+
import { PluginsCLICommand, type PluginsCLIContext } from './context.ts';
|
|
5
|
+
import type { ScopeReport, UpdateFailure } from './schemas/update.ts';
|
|
6
|
+
export type { ScopeReport, UpdateFailure } from './schemas/update.ts';
|
|
7
|
+
/**
|
|
8
|
+
* The published release base: the `assets` origin the production
|
|
9
|
+
* `config/environment` declares, under {@link RELEASE_DOWNLOADS_PATH}.
|
|
10
|
+
* Releases are published only to production, whatever environment this host
|
|
11
|
+
* calls (the desktop release reads its origin by the same rule), so this
|
|
12
|
+
* reads the production declaration rather than the active one; `--mirror`
|
|
13
|
+
* retargets. A runtime that declares no production `assets` origin refuses
|
|
14
|
+
* `release-origin-undeclared`.
|
|
15
|
+
*/
|
|
16
|
+
export declare function publishedReleaseBase(runtime: Pick<RuntimeRef, 'query' | 'hasKind'>): Promise<string>;
|
|
17
|
+
/** `latest.json` under a release base (the declared `--mirror`, else the published base), trailing slashes trimmed. */
|
|
18
|
+
export declare function latestManifestUrl(base: string): string;
|
|
19
|
+
/**
|
|
20
|
+
* Which scope reports make `vibes update` FAIL.
|
|
21
|
+
*
|
|
22
|
+
* A command that reports `NOT VERIFIED` and exits 0 is the absence-looks-like-
|
|
23
|
+
* success defect: the shipped draft did exactly that, so a scope whose
|
|
24
|
+
* verification boot could not compose, and a `$VIBES_HOME` the command refused
|
|
25
|
+
* to touch at all, both read as "updated" to CI, to a script, and to the WU-07
|
|
26
|
+
* harness. Pure and exported so the rule is testable without booting a child.
|
|
27
|
+
*
|
|
28
|
+
* Not a failure: a benign skip (`no workspace plugin list to update`, a home
|
|
29
|
+
* delegated to a host workspace) — nothing was asked for and nothing broke.
|
|
30
|
+
*
|
|
31
|
+
* `--dry-run` suppresses only the VERIFICATION half: nothing was installed, so
|
|
32
|
+
* nothing was booted, so an unverified scope is not a defect. A REFUSAL is not
|
|
33
|
+
* suppressed — a foreign or fossil `$VIBES_HOME`, or a link glob whose parent
|
|
34
|
+
* is gone, is a fact about the scope as it stands, not about the install that
|
|
35
|
+
* did not run, and `vibes update --dry-run` in CI has to be able to see it.
|
|
36
|
+
*/
|
|
37
|
+
/** A surface omission is verified because the kernel refused to import the declared export. */
|
|
38
|
+
export declare function isUnverifiedPluginRow(row: {
|
|
39
|
+
plugin: string;
|
|
40
|
+
status: string;
|
|
41
|
+
reason?: string;
|
|
42
|
+
}): boolean;
|
|
43
|
+
export declare function collectUpdateFailures(reports: ReadonlyArray<Pick<ScopeReport, 'scope' | 'root' | 'verified' | 'verifyDetail' | 'skipped' | 'failed'>>, options: {
|
|
44
|
+
dryRun: boolean;
|
|
45
|
+
}): UpdateFailure[];
|
|
46
|
+
/**
|
|
47
|
+
* `vibes update` — seed, install, verify, roll (plan §5).
|
|
48
|
+
*
|
|
49
|
+
* ### Ordering: self FIRST, then the graph, then ONE roll
|
|
50
|
+
*
|
|
51
|
+
* `--self` runs before any scope work and the census roll runs exactly once at
|
|
52
|
+
* the end. Rolling before the binary is replaced re-stales every body just
|
|
53
|
+
* rolled — the executable freshness nerve fires on the new inode — so the
|
|
54
|
+
* draft's "roll, then swap" order produced two rolls and a `pm status` Build
|
|
55
|
+
* column reading STALE immediately after a successful update.
|
|
56
|
+
*
|
|
57
|
+
* ### What triggers the roll: THREE reasons, one nerve each
|
|
58
|
+
*
|
|
59
|
+
* 1. the module graph moved (a scope's `bun.lock` digest changed);
|
|
60
|
+
* 2. `--self` installed a new release over this executable;
|
|
61
|
+
* 3. a body in the census is **already** executing a replaced file.
|
|
62
|
+
*
|
|
63
|
+
* The third one is not redundant. A local `bun run build:install` swaps
|
|
64
|
+
* `~/.local/bin/vibes` by atomic rename: no lock moves and `--self` downloaded
|
|
65
|
+
* nothing, so on reasons 1–2 alone `vibes update` reported "nothing changed, so
|
|
66
|
+
* no body was rolled" in the same minute `vibes pm status` reported "⚠ PM
|
|
67
|
+
* daemon (pid …) runs a replaced vibes executable". Two surfaces, one fact,
|
|
68
|
+
* and the surface that could FIX it held the weaker predicate. The census now
|
|
69
|
+
* consumes the same executable nerve `pm status` and PM's
|
|
70
|
+
* `ExecutableFreshnessReconciler` consume (`markReplacedExecutables`), so a
|
|
71
|
+
* body running a replaced executable is rolled and the receipt says why.
|
|
72
|
+
*
|
|
73
|
+
* ### Per scope
|
|
74
|
+
*
|
|
75
|
+
* preflight (schema, glob parents, foreign-owner refusal, `workspace:*`
|
|
76
|
+
* declarations) → `bun install` → a SCOPED `bun update <enabled registry
|
|
77
|
+
* packages> @vibesdotdev/plugins`, never a fleet-wide `bun update` at a
|
|
78
|
+
* 232-member root → verification by spawning the SHIPPING path
|
|
79
|
+
* (`vibes plugins list --json --scope <kind>` with `VIBES_HOST_ROOT` bound to
|
|
80
|
+
* the scope root), where every row must read `loaded`.
|
|
81
|
+
*
|
|
82
|
+
* The verification deliberately re-enters the real executable rather than
|
|
83
|
+
* inspecting the manifest we just wrote. A manifest is a claim; a boot is a
|
|
84
|
+
* measurement, and it is the only thing that proves the scope this command
|
|
85
|
+
* just changed can still compose.
|
|
86
|
+
*
|
|
87
|
+
* ### Exit code
|
|
88
|
+
*
|
|
89
|
+
* A scope that did not verify, and a scope the command REFUSED to touch, both
|
|
90
|
+
* make `vibes update` exit non-zero — after the full report (including the
|
|
91
|
+
* `--json` envelope) has been printed. The draft printed `NOT VERIFIED` and
|
|
92
|
+
* exited 0, so a refused `$VIBES_HOME` and a scope that cannot compose read as
|
|
93
|
+
* success to CI, to a script and to the WU-07 harness. Benign skips (a
|
|
94
|
+
* workspace with no plugin list, a home delegated to a host workspace) are not
|
|
95
|
+
* failures. `--dry-run` never fails a VERIFICATION — it installs nothing, so
|
|
96
|
+
* it boots nothing — but a REFUSED scope still exits non-zero under it: the
|
|
97
|
+
* refusal describes the scope as it stands, not the install that did not run.
|
|
98
|
+
* The rule lives in `collectUpdateFailures`.
|
|
99
|
+
*
|
|
100
|
+
* ### Foreign / fossil manifests
|
|
101
|
+
*
|
|
102
|
+
* A `$VIBES_HOME/package.json` whose name is not `vibes-global` is somebody
|
|
103
|
+
* else's file (or the 24-April fossil). We refuse it by name and print
|
|
104
|
+
* `vibes update --repair --global`; `--repair` then backs it up as
|
|
105
|
+
* `*.fossil-<stamp>` and prints kept|dropped. Nothing is merged silently and
|
|
106
|
+
* nothing is deleted without a backup line.
|
|
107
|
+
*/
|
|
108
|
+
export default class UpdateCLICommand extends PluginsCLICommand {
|
|
109
|
+
constructor(descriptor: CLICommandAssetDescriptor, context: PluginsCLIContext);
|
|
110
|
+
execute(args: CommandExecutionStartInfo['args'], options: CommandExecutionStartInfo['options']): Promise<void>;
|
|
111
|
+
/** Replace the running executable from the declared `--mirror`, else the published release base. */
|
|
112
|
+
private updateSelf;
|
|
113
|
+
/** Version of the running host: the host's own version fact, the one `--version` reports. */
|
|
114
|
+
private hostVersion;
|
|
115
|
+
private updateScope;
|
|
116
|
+
/** Seed an absent home, repair a fossil one, or refuse a foreign one by name. */
|
|
117
|
+
private prepareGlobal;
|
|
118
|
+
/**
|
|
119
|
+
* The specifiers a scope has ENABLED, read through the SAME resolution the
|
|
120
|
+
* bootstrap loader composes from.
|
|
121
|
+
*
|
|
122
|
+
* The workspace half used to call `resolveWorkspaceListTarget`, the WRITER's
|
|
123
|
+
* target resolver, which reports an empty list for a `vibes.config.ts`
|
|
124
|
+
* because it refuses to rewrite a module. `update --workspace` therefore saw
|
|
125
|
+
* nothing to update for plan §3's PRIMARY workspace surface — the file
|
|
126
|
+
* requirement #1 tells users to write — and skipped the scope with
|
|
127
|
+
* `no workspace plugin list to update`. It now reads Runtime's
|
|
128
|
+
* `readWorkspacePluginSurfaces` (`@vibesdotdev/kernel/bootstrap`, the
|
|
129
|
+
* owner of workspace composition formats) over the handed runtime's
|
|
130
|
+
* selected `runtime/loader`, the same reader the workspace composition and
|
|
131
|
+
* `plugins list` read: `vibes.config.{ts,js,json}#plugins` primary,
|
|
132
|
+
* `package.json#vibes.plugins` fallback.
|
|
133
|
+
*
|
|
134
|
+
* A SHADOWED fallback list is deliberately not included. `bun update` here
|
|
135
|
+
* targets the packages this scope composes; a specifier the effective surface
|
|
136
|
+
* overrides is not composed, and installing it would make `vibes update`
|
|
137
|
+
* disagree with the boot it uses to verify itself.
|
|
138
|
+
*/
|
|
139
|
+
private selectionsFor;
|
|
140
|
+
/**
|
|
141
|
+
* The scope's install inputs. An unreadable or malformed manifest is the
|
|
142
|
+
* typed `plugin-scope-manifest-unreadable` refusal, carried into the report
|
|
143
|
+
* as a refused scope (SPEC: a refused scope exits non-zero) and kept whole
|
|
144
|
+
* as the command's cause; every other failure propagates.
|
|
145
|
+
*/
|
|
146
|
+
private readDeclarations;
|
|
147
|
+
/**
|
|
148
|
+
* On-disk rules that decide whether bun may run at all.
|
|
149
|
+
*
|
|
150
|
+
* `benign` separates "there is nothing here to do" (a delegated home owns
|
|
151
|
+
* no packages — the update belongs to the host workspace) from "the request
|
|
152
|
+
* could not be carried out" (a link glob whose parent directory is gone).
|
|
153
|
+
* Only the second kind fails the command; conflating them would make
|
|
154
|
+
* `vibes update --global` on a delegated machine exit non-zero forever.
|
|
155
|
+
*/
|
|
156
|
+
private preflight;
|
|
157
|
+
/**
|
|
158
|
+
* Boot the SHIPPING path against the scope root and require every row to be
|
|
159
|
+
* composed. A manifest that parses is not a scope that composes.
|
|
160
|
+
*
|
|
161
|
+
* Two details that are easy to get wrong and were measured, not guessed:
|
|
162
|
+
*
|
|
163
|
+
* - The child's cwd is the scope root only for the WORKSPACE scope. Setting
|
|
164
|
+
* it to `$VIBES_HOME` for the global scope made bootstrap read
|
|
165
|
+
* `$VIBES_HOME/package.json#vibes.plugins` as the *workspace* fallback
|
|
166
|
+
* list (there is no config there, so the cwd IS the workspace root), so
|
|
167
|
+
* the workspace batch claimed every global specifier and the global batch
|
|
168
|
+
* reported `deduped` for all of them.
|
|
169
|
+
* - `deduped` is therefore accepted alongside `loaded`: it means the very
|
|
170
|
+
* same specifier was already selected by an earlier scope in that process,
|
|
171
|
+
* so the plugin IS composed. `missing` and `failed` are the real failures,
|
|
172
|
+
* and `shadowed` is reported as a warning detail because another plugin
|
|
173
|
+
* owns the id.
|
|
174
|
+
*/
|
|
175
|
+
private verifyScope;
|
|
176
|
+
private emit;
|
|
177
|
+
}
|
|
178
|
+
//# sourceMappingURL=update.cli-command.impl.consumer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.cli-command.impl.consumer.d.ts","sourceRoot":"","sources":["../../src/cli/update.cli-command.impl.consumer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAClF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAKhF,OAAO,EAWN,KAAK,UAAU,EACf,MAAM,qBAAqB,CAAC;AAM7B,OAAO,EAAE,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAoBzE,OAAO,KAAK,EAGX,WAAW,EAGX,aAAa,EAEb,MAAM,qBAAqB,CAAC;AAE7B,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AA0BtE;;;;;;;;GAQG;AACH,wBAAsB,oBAAoB,CAAC,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,SAAS,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAU1G;AAED,uHAAuH;AACvH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEtD;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,+FAA+F;AAC/F,wBAAgB,qBAAqB,CAAC,GAAG,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAIvG;AAED,wBAAgB,qBAAqB,CACpC,OAAO,EAAE,aAAa,CACrB,IAAI,CAAC,WAAW,EAAE,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,cAAc,GAAG,SAAS,GAAG,QAAQ,CAAC,CACxF,EACD,OAAO,EAAE;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,GAC1B,aAAa,EAAE,CA0BjB;AA6CD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AACH,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,iBAAiB;gBAClD,UAAU,EAAE,yBAAyB,EAAE,OAAO,EAAE,iBAAiB;IAIvE,OAAO,CAAC,IAAI,EAAE,yBAAyB,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,yBAAyB,CAAC,SAAS,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAwEpH,oGAAoG;YACtF,UAAU;IAuCxB,6FAA6F;IAC7F,OAAO,CAAC,WAAW;YAML,WAAW;IA4HzB,iFAAiF;YACnE,aAAa;IAuC3B;;;;;;;;;;;;;;;;;;;;OAoBG;YACW,aAAa;IAuB3B;;;;;OAKG;YACW,gBAAgB;IAU9B;;;;;;;;OAQG;IACH,OAAO,CAAC,SAAS;IAsBjB;;;;;;;;;;;;;;;;;OAiBG;YACW,WAAW;IAsDzB,OAAO,CAAC,IAAI;CAyEZ"}
|