@arcforge/types 2.0.139 → 2.0.141
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/package.json
CHANGED
|
@@ -84,6 +84,43 @@ export type AxonRuntimeEvent =
|
|
|
84
84
|
{ name: string; artifact?: ArtifactInstalled },
|
|
85
85
|
{ name: string; error: AxonError; artifact?: ArtifactInstalled }
|
|
86
86
|
>
|
|
87
|
+
/**
|
|
88
|
+
* Moving already-installed artifacts to newer published versions.
|
|
89
|
+
*
|
|
90
|
+
* ── Plural, unlike install and uninstall ────────────────────────────────
|
|
91
|
+
*
|
|
92
|
+
* Those two act on one name because that is how a user asks for them. An
|
|
93
|
+
* update is naturally a SET — "update everything that is out of date" is
|
|
94
|
+
* the common case, and the module installer applies it as one manifest
|
|
95
|
+
* write, one `bun install` and one reload. Modelling it as N single-name
|
|
96
|
+
* spans would put N restarts on the timeline for one user action, and
|
|
97
|
+
* would misreport the atomicity: those modules moved together or not at
|
|
98
|
+
* all.
|
|
99
|
+
*
|
|
100
|
+
* ── `updated` and `failed` are both carried ─────────────────────────────
|
|
101
|
+
*
|
|
102
|
+
* A batch settles PARTIALLY. One unpublished or unreachable name must not
|
|
103
|
+
* discard the versions that did move, so the completion records both sides
|
|
104
|
+
* rather than reducing to a boolean. `:failed` stays for a real fault —
|
|
105
|
+
* disk, a broken install — where nothing can be said about individual
|
|
106
|
+
* names.
|
|
107
|
+
*
|
|
108
|
+
* `artifact` for the same reason install and uninstall carry it: updating
|
|
109
|
+
* an agent's module and updating a terminal extension are the same
|
|
110
|
+
* operation aimed at different places, and "updated @cody/vim" is
|
|
111
|
+
* ambiguous without it.
|
|
112
|
+
*/
|
|
113
|
+
& AxonSpan<
|
|
114
|
+
"axon:update",
|
|
115
|
+
{ names: string[]; artifact?: ArtifactInstalled },
|
|
116
|
+
{
|
|
117
|
+
names: string[]
|
|
118
|
+
artifact?: ArtifactInstalled
|
|
119
|
+
updated: Array<{ name: string; version: string }>
|
|
120
|
+
failed: Array<{ name: string; error: string }>
|
|
121
|
+
},
|
|
122
|
+
{ names: string[]; error: AxonError; artifact?: ArtifactInstalled }
|
|
123
|
+
>
|
|
87
124
|
// ── Model change (config edit, then a reload rides the hot-swap path) ───
|
|
88
125
|
// The agent is the same agent; only the engine underneath it moved.
|
|
89
126
|
// `dropped` names options the previous provider had that the new one
|