@camstack/addon-agent-ui 1.2.189 → 1.2.190
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/dist/addon.js +66 -3
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -28370,6 +28370,59 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
|
|
|
28370
28370
|
var RestartAddonResultSchema = unknown();
|
|
28371
28371
|
var InstallPackageResultSchema = unknown();
|
|
28372
28372
|
var ReloadPackagesResultSchema = unknown();
|
|
28373
|
+
/**
|
|
28374
|
+
* What an uninstall did on ONE node.
|
|
28375
|
+
* - `uninstalled` — removed: runner(s) stopped, caps gone, code deleted.
|
|
28376
|
+
* - `not-installed` — the node did not have it (nothing to do).
|
|
28377
|
+
* - `refused` — protected / bootstrap package; nothing touched.
|
|
28378
|
+
* - `failed` — attempted and did not complete; `error` says why.
|
|
28379
|
+
* - `pending-reconnect` — the node is OFFLINE: its record was pruned so the
|
|
28380
|
+
* back-fill never returns the package, and the stale-addon sweep removes the
|
|
28381
|
+
* copy when the node registers again (only once the hub no longer has it).
|
|
28382
|
+
*/
|
|
28383
|
+
var UninstallNodeOutcomeSchema = _enum([
|
|
28384
|
+
"uninstalled",
|
|
28385
|
+
"not-installed",
|
|
28386
|
+
"refused",
|
|
28387
|
+
"failed",
|
|
28388
|
+
"pending-reconnect"
|
|
28389
|
+
]);
|
|
28390
|
+
var UninstallNodeResultSchema = object({
|
|
28391
|
+
nodeId: string(),
|
|
28392
|
+
outcome: UninstallNodeOutcomeSchema,
|
|
28393
|
+
error: string().optional(),
|
|
28394
|
+
addonIds: array(string()).readonly(),
|
|
28395
|
+
runnersStopped: array(string()).readonly(),
|
|
28396
|
+
warnings: array(string()).readonly()
|
|
28397
|
+
});
|
|
28398
|
+
var UninstallPackageResultSchema = object({
|
|
28399
|
+
/** Every targeted node ended `uninstalled`, `not-installed` or `pending-reconnect`. */
|
|
28400
|
+
success: boolean(),
|
|
28401
|
+
packageName: string(),
|
|
28402
|
+
results: array(UninstallNodeResultSchema).readonly()
|
|
28403
|
+
});
|
|
28404
|
+
/**
|
|
28405
|
+
* `unreachable` lists online agents whose status read FAILED — absence from
|
|
28406
|
+
* `installations` is only "not installed" for a node that answered (D315).
|
|
28407
|
+
*/
|
|
28408
|
+
var PackageInstallationsSchema = object({
|
|
28409
|
+
installations: array(object({
|
|
28410
|
+
packageName: string(),
|
|
28411
|
+
nodeId: string(),
|
|
28412
|
+
nodeName: string(),
|
|
28413
|
+
isHub: boolean(),
|
|
28414
|
+
isOnline: boolean(),
|
|
28415
|
+
version: string().nullable(),
|
|
28416
|
+
addonIds: array(string()).readonly(),
|
|
28417
|
+
source: _enum(["live", "recorded"]),
|
|
28418
|
+
/** The hub installs this package too. `false` on an agent row = an orphan. */
|
|
28419
|
+
onHub: boolean()
|
|
28420
|
+
})).readonly(),
|
|
28421
|
+
unreachable: array(object({
|
|
28422
|
+
nodeId: string(),
|
|
28423
|
+
error: string()
|
|
28424
|
+
})).readonly()
|
|
28425
|
+
});
|
|
28373
28426
|
var BulkUpdateItemStatusSchema = _enum([
|
|
28374
28427
|
"queued",
|
|
28375
28428
|
"updating",
|
|
@@ -28452,10 +28505,14 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
|
28452
28505
|
}), method(object({ packageName: string() }), InstallPackageResultSchema, {
|
|
28453
28506
|
kind: "mutation",
|
|
28454
28507
|
auth: "admin"
|
|
28455
|
-
}), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({
|
|
28508
|
+
}), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({
|
|
28509
|
+
packageName: string().min(1),
|
|
28510
|
+
nodeId: string().optional(),
|
|
28511
|
+
everywhere: boolean().optional()
|
|
28512
|
+
}), UninstallPackageResultSchema, {
|
|
28456
28513
|
kind: "mutation",
|
|
28457
28514
|
auth: "admin"
|
|
28458
|
-
}), method(_void(), ReloadPackagesResultSchema, {
|
|
28515
|
+
}), method(object({ packageName: string().optional() }), PackageInstallationsSchema, { auth: "admin" }), method(_void(), ReloadPackagesResultSchema, {
|
|
28459
28516
|
kind: "mutation",
|
|
28460
28517
|
auth: "admin"
|
|
28461
28518
|
}), method(object({ query: string().optional() }), array(SearchResultSchema)), method(object({ nodeId: string().optional() }), array(PackageUpdateSchema).readonly(), { auth: "admin" }), method(object({
|
|
@@ -36744,6 +36801,12 @@ Object.freeze({
|
|
|
36744
36801
|
addonId: null,
|
|
36745
36802
|
access: "view"
|
|
36746
36803
|
},
|
|
36804
|
+
"addons.listInstallations": {
|
|
36805
|
+
capName: "addons",
|
|
36806
|
+
capScope: "system",
|
|
36807
|
+
addonId: null,
|
|
36808
|
+
access: "view"
|
|
36809
|
+
},
|
|
36747
36810
|
"addons.listJobs": {
|
|
36748
36811
|
capName: "addons",
|
|
36749
36812
|
capScope: "system",
|
|
@@ -48856,7 +48919,7 @@ var AgentUIAddon = class extends BaseAddon {
|
|
|
48856
48919
|
capability: adminUiCapability,
|
|
48857
48920
|
provider: {
|
|
48858
48921
|
getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
|
|
48859
|
-
getVersion: async () => ({ version: "1.2.
|
|
48922
|
+
getVersion: async () => ({ version: "1.2.190" })
|
|
48860
48923
|
}
|
|
48861
48924
|
}];
|
|
48862
48925
|
}
|