wicked-crew 0.18.21 → 0.18.22
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/api/audit.d.ts +28 -1
- package/dist/api/audit.d.ts.map +1 -1
- package/dist/api/audit.js +90 -9
- package/dist/api/audit.js.map +1 -1
- package/dist/api/auth.d.ts +7 -0
- package/dist/api/auth.d.ts.map +1 -1
- package/dist/api/auth.js +53 -10
- package/dist/api/auth.js.map +1 -1
- package/dist/api/capture.d.ts +11 -2
- package/dist/api/capture.d.ts.map +1 -1
- package/dist/api/capture.js +7 -2
- package/dist/api/capture.js.map +1 -1
- package/dist/api/chat-context.d.ts +6 -1
- package/dist/api/chat-context.d.ts.map +1 -1
- package/dist/api/chat-context.js +45 -11
- package/dist/api/chat-context.js.map +1 -1
- package/dist/api/chat-proposals.d.ts +24 -7
- package/dist/api/chat-proposals.d.ts.map +1 -1
- package/dist/api/chat-proposals.js +98 -18
- package/dist/api/chat-proposals.js.map +1 -1
- package/dist/api/chat-scope.d.ts +6 -2
- package/dist/api/chat-scope.d.ts.map +1 -1
- package/dist/api/chat-scope.js +13 -7
- package/dist/api/chat-scope.js.map +1 -1
- package/dist/api/cluster-status.d.ts +17 -0
- package/dist/api/cluster-status.d.ts.map +1 -1
- package/dist/api/cluster-status.js +70 -3
- package/dist/api/cluster-status.js.map +1 -1
- package/dist/api/compose-facts.d.ts +35 -0
- package/dist/api/compose-facts.d.ts.map +1 -0
- package/dist/api/compose-facts.js +46 -0
- package/dist/api/compose-facts.js.map +1 -0
- package/dist/api/cut-read.d.ts +62 -0
- package/dist/api/cut-read.d.ts.map +1 -0
- package/dist/api/cut-read.js +101 -0
- package/dist/api/cut-read.js.map +1 -0
- package/dist/api/desk-snoozes.d.ts +54 -0
- package/dist/api/desk-snoozes.d.ts.map +1 -0
- package/dist/api/desk-snoozes.js +174 -0
- package/dist/api/desk-snoozes.js.map +1 -0
- package/dist/api/diagnostics.d.ts +4 -0
- package/dist/api/diagnostics.d.ts.map +1 -1
- package/dist/api/diagnostics.js +15 -7
- package/dist/api/diagnostics.js.map +1 -1
- package/dist/api/disk-stores.d.ts +66 -0
- package/dist/api/disk-stores.d.ts.map +1 -0
- package/dist/api/disk-stores.js +206 -0
- package/dist/api/disk-stores.js.map +1 -0
- package/dist/api/gate-cache.d.ts +8 -0
- package/dist/api/gate-cache.d.ts.map +1 -1
- package/dist/api/gate-cache.js +8 -1
- package/dist/api/gate-cache.js.map +1 -1
- package/dist/api/mcp.d.ts +16 -0
- package/dist/api/mcp.d.ts.map +1 -1
- package/dist/api/mcp.js +118 -1
- package/dist/api/mcp.js.map +1 -1
- package/dist/api/needs.d.ts +3 -0
- package/dist/api/needs.d.ts.map +1 -1
- package/dist/api/needs.js +7 -3
- package/dist/api/needs.js.map +1 -1
- package/dist/api/post-hoc-deliver.d.ts +7 -0
- package/dist/api/post-hoc-deliver.d.ts.map +1 -1
- package/dist/api/post-hoc-deliver.js +16 -5
- package/dist/api/post-hoc-deliver.js.map +1 -1
- package/dist/api/product-publish.d.ts +242 -0
- package/dist/api/product-publish.d.ts.map +1 -0
- package/dist/api/product-publish.js +902 -0
- package/dist/api/product-publish.js.map +1 -0
- package/dist/api/product.d.ts +5 -6
- package/dist/api/product.d.ts.map +1 -1
- package/dist/api/product.js +4 -4
- package/dist/api/product.js.map +1 -1
- package/dist/api/proposal-cut.d.ts +95 -0
- package/dist/api/proposal-cut.d.ts.map +1 -0
- package/dist/api/proposal-cut.js +231 -0
- package/dist/api/proposal-cut.js.map +1 -0
- package/dist/api/requirements.d.ts +3 -3
- package/dist/api/requirements.js +3 -3
- package/dist/api/routes.d.ts +15 -0
- package/dist/api/routes.d.ts.map +1 -1
- package/dist/api/routes.js +410 -88
- package/dist/api/routes.js.map +1 -1
- package/dist/api/run-liveness.d.ts.map +1 -1
- package/dist/api/run-liveness.js +3 -1
- package/dist/api/run-liveness.js.map +1 -1
- package/dist/api/run-timing-index.d.ts +10 -0
- package/dist/api/run-timing-index.d.ts.map +1 -1
- package/dist/api/run-timing-index.js +29 -9
- package/dist/api/run-timing-index.js.map +1 -1
- package/dist/api/seat-container-login.d.ts +11 -17
- package/dist/api/seat-container-login.d.ts.map +1 -1
- package/dist/api/seat-container-login.js +36 -69
- package/dist/api/seat-container-login.js.map +1 -1
- package/dist/api/system-snapshot.d.ts +2 -1
- package/dist/api/system-snapshot.d.ts.map +1 -1
- package/dist/api/system-snapshot.js +17 -6
- package/dist/api/system-snapshot.js.map +1 -1
- package/dist/api/ui-text.d.ts.map +1 -1
- package/dist/api/ui-text.js +3 -1
- package/dist/api/ui-text.js.map +1 -1
- package/dist/apps/store.d.ts +11 -0
- package/dist/apps/store.d.ts.map +1 -1
- package/dist/apps/store.js +47 -0
- package/dist/apps/store.js.map +1 -1
- package/dist/apps-server/server/lib/bundle/server.mjs +12 -2
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +27 -52
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/start-stand-ins.d.ts +13 -0
- package/dist/cli/start-stand-ins.d.ts.map +1 -0
- package/dist/cli/start-stand-ins.js +30 -0
- package/dist/cli/start-stand-ins.js.map +1 -0
- package/dist/core/adapter.d.ts +43 -6
- package/dist/core/adapter.d.ts.map +1 -1
- package/dist/core/adapter.js +169 -30
- package/dist/core/adapter.js.map +1 -1
- package/dist/core/ado-env.d.ts +17 -0
- package/dist/core/ado-env.d.ts.map +1 -0
- package/dist/core/ado-env.js +34 -0
- package/dist/core/ado-env.js.map +1 -0
- package/dist/core/deliver-text.d.ts +17 -0
- package/dist/core/deliver-text.d.ts.map +1 -1
- package/dist/core/deliver-text.js +76 -1
- package/dist/core/deliver-text.js.map +1 -1
- package/dist/core/deliver.d.ts +6 -0
- package/dist/core/deliver.d.ts.map +1 -1
- package/dist/core/deliver.js +12 -4
- package/dist/core/deliver.js.map +1 -1
- package/dist/core/exec.d.ts +1 -10
- package/dist/core/exec.d.ts.map +1 -1
- package/dist/core/exec.js +4 -17
- package/dist/core/exec.js.map +1 -1
- package/dist/core/governance-store.d.ts +3 -1
- package/dist/core/governance-store.d.ts.map +1 -1
- package/dist/core/governance-store.js +7 -2
- package/dist/core/governance-store.js.map +1 -1
- package/dist/core/repo-clone.d.ts.map +1 -1
- package/dist/core/repo-clone.js +2 -1
- package/dist/core/repo-clone.js.map +1 -1
- package/dist/core/run-log-facts.d.ts +56 -0
- package/dist/core/run-log-facts.d.ts.map +1 -0
- package/dist/core/run-log-facts.js +230 -0
- package/dist/core/run-log-facts.js.map +1 -0
- package/dist/core/shutdown.d.ts +27 -0
- package/dist/core/shutdown.d.ts.map +1 -1
- package/dist/core/shutdown.js +72 -0
- package/dist/core/shutdown.js.map +1 -1
- package/dist/core/stand-in.d.ts +40 -0
- package/dist/core/stand-in.d.ts.map +1 -0
- package/dist/core/stand-in.js +118 -0
- package/dist/core/stand-in.js.map +1 -0
- package/dist/core/types.d.ts +17 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js.map +1 -1
- package/dist/editors/pack-extras.d.ts +162 -0
- package/dist/editors/pack-extras.d.ts.map +1 -0
- package/dist/editors/pack-extras.js +596 -0
- package/dist/editors/pack-extras.js.map +1 -0
- package/dist/editors/pack-install.d.ts +15 -7
- package/dist/editors/pack-install.d.ts.map +1 -1
- package/dist/editors/pack-install.js +140 -19
- package/dist/editors/pack-install.js.map +1 -1
- package/dist/editors/registry.d.ts +42 -3
- package/dist/editors/registry.d.ts.map +1 -1
- package/dist/editors/registry.js +114 -11
- package/dist/editors/registry.js.map +1 -1
- package/dist/editors/routes.d.ts +10 -5
- package/dist/editors/routes.d.ts.map +1 -1
- package/dist/editors/routes.js +45 -11
- package/dist/editors/routes.js.map +1 -1
- package/dist/interactive/bridge-pool.d.ts +5 -2
- package/dist/interactive/bridge-pool.d.ts.map +1 -1
- package/dist/interactive/bridge-pool.js +4 -1
- package/dist/interactive/bridge-pool.js.map +1 -1
- package/dist/interactive/landing-guard.d.ts.map +1 -1
- package/dist/interactive/landing-guard.js +79 -5
- package/dist/interactive/landing-guard.js.map +1 -1
- package/dist/knowledge/adapters/toolbox/memory.d.ts.map +1 -1
- package/dist/knowledge/adapters/toolbox/memory.js +3 -2
- package/dist/knowledge/adapters/toolbox/memory.js.map +1 -1
- package/dist/knowledge/trackers/set.d.ts +28 -0
- package/dist/knowledge/trackers/set.d.ts.map +1 -1
- package/dist/knowledge/trackers/set.js +26 -0
- package/dist/knowledge/trackers/set.js.map +1 -1
- package/dist/mcp/policies.d.ts +35 -0
- package/dist/mcp/policies.d.ts.map +1 -1
- package/dist/mcp/policies.js +138 -1
- package/dist/mcp/policies.js.map +1 -1
- package/dist/mcp/registry-store.d.ts +10 -0
- package/dist/mcp/registry-store.d.ts.map +1 -1
- package/dist/mcp/registry-store.js.map +1 -1
- package/dist/mcp/registry.d.ts +40 -3
- package/dist/mcp/registry.d.ts.map +1 -1
- package/dist/mcp/registry.js +211 -16
- package/dist/mcp/registry.js.map +1 -1
- package/dist/mcp/trigger-names.d.ts +32 -0
- package/dist/mcp/trigger-names.d.ts.map +1 -0
- package/dist/mcp/trigger-names.js +529 -0
- package/dist/mcp/trigger-names.js.map +1 -0
- package/dist/skills/store.d.ts +11 -1
- package/dist/skills/store.d.ts.map +1 -1
- package/dist/skills/store.js +37 -3
- package/dist/skills/store.js.map +1 -1
- package/dist/studio/apps-standalone/fixture.js +3 -3
- package/dist/studio/assets/{KnowledgeGraph-yP4WsnST.js → KnowledgeGraph-D6RRLDnV.js} +1 -1
- package/dist/studio/assets/{index-DW53FKuT.js → index-BLo9vFQI.js} +324 -310
- package/dist/studio/assets/index-xW21Gkam.css +32 -0
- package/dist/studio/editors/wicked-apps/editor.json +1 -1
- package/dist/studio/editors/wicked-apps/index.html +1 -1
- package/dist/studio/editors/wicked-deck/editor.json +1 -1
- package/dist/studio/editors/wicked-deck/index.html +1 -1
- package/dist/studio/editors/wicked-doc/editor.json +1 -1
- package/dist/studio/editors/wicked-doc/index.html +1 -1
- package/dist/studio/editors/wicked-insights/editor.json +1 -1
- package/dist/studio/editors/wicked-insights/index.html +1 -1
- package/dist/studio/editors/wicked-page/editor.json +1 -1
- package/dist/studio/editors/wicked-page/index.html +1 -1
- package/dist/studio/editors/wicked-video/editor.json +1 -1
- package/dist/studio/editors/wicked-video/index.html +1 -1
- package/dist/studio/index.html +2 -2
- package/dist/studio/testid-inventory.json +539 -5
- package/dist/team/routes.d.ts +4 -1
- package/dist/team/routes.d.ts.map +1 -1
- package/dist/team/routes.js +1 -1
- package/dist/team/routes.js.map +1 -1
- package/dist/voice/tts.d.ts +6 -0
- package/dist/voice/tts.d.ts.map +1 -1
- package/dist/voice/tts.js +16 -1
- package/dist/voice/tts.js.map +1 -1
- package/endpoint-manifest.json +85 -6
- package/package.json +4 -4
- package/voice-locks/darwin-arm64-cp310.txt +12 -0
- package/voice-locks/darwin-arm64-cp311.txt +8 -0
- package/voice-locks/darwin-arm64-cp312.txt +8 -0
- package/voice-locks/darwin-arm64-cp313.txt +8 -0
- package/voice-locks/darwin-arm64-cp314.txt +8 -0
- package/voice-locks/darwin-arm64-cp39.txt +12 -0
- package/voice-locks/darwin-x64-cp310.txt +12 -0
- package/voice-locks/darwin-x64-cp311.txt +12 -0
- package/voice-locks/darwin-x64-cp312.txt +12 -0
- package/voice-locks/darwin-x64-cp313.txt +12 -0
- package/voice-locks/darwin-x64-cp39.txt +12 -0
- package/voice-locks/linux-arm64-cp310.txt +12 -0
- package/voice-locks/linux-arm64-cp311.txt +8 -0
- package/voice-locks/linux-arm64-cp312.txt +8 -0
- package/voice-locks/linux-arm64-cp313.txt +8 -0
- package/voice-locks/linux-arm64-cp314.txt +8 -0
- package/voice-locks/linux-arm64-cp39.txt +12 -0
- package/voice-locks/linux-x64-cp310.txt +12 -0
- package/voice-locks/linux-x64-cp311.txt +8 -0
- package/voice-locks/linux-x64-cp312.txt +8 -0
- package/voice-locks/linux-x64-cp313.txt +8 -0
- package/voice-locks/linux-x64-cp314.txt +8 -0
- package/voice-locks/linux-x64-cp39.txt +12 -0
- package/dist/studio/assets/index-DNaLjJ7M.css +0 -32
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* crew#1703 (DES-artifact-editor-plugins §3.2 "Add these"): the skills and blocks a pack ships with its editors.
|
|
3
|
+
*
|
|
4
|
+
* One consent: the person approves the pack's skill directories and block ids exactly as the refusal listed them,
|
|
5
|
+
* together with its editors' permissions and its run plugins' topics, and the approval carries the refusal's
|
|
6
|
+
* `digest`, which covers the manifest, every skill file and every block's steps, so a pack that changed after the
|
|
7
|
+
* person looked is refused. Everything is read and checked before the conformance run and before any write:
|
|
8
|
+
* - each skill goes to the daemon skills root (the one every worker is handed, as a published snapshot) under the
|
|
9
|
+
* key `wicked-garden-<skill dir>`, its frontmatter `name:` line rewritten to that key and nothing else (coord ruling
|
|
10
|
+
* (a), 2026-11-24): a worker invokes it as `wicked-garden:<skill dir>`. The store's own add/replace guards run on
|
|
11
|
+
* it first (`SkillsStore.previewWrite`);
|
|
12
|
+
* - each block's preset (`{id, label, phases}`) becomes a preset named by the block id with one step per phase, and
|
|
13
|
+
* every phase must be a catalog phase (ruling (b)): otherwise the block is refused naming the phase and the catalog
|
|
14
|
+
* phases it could use;
|
|
15
|
+
* - a skill key or preset name that is not this pack's own is a 409. A pack is known by its name, as the editor
|
|
16
|
+
* registry knows it (`EditorRegistry.installPack`): installing a pack of the same name again replaces its own
|
|
17
|
+
* skills and presets, and the consent lists them (`replaces`) so the person sees what is replaced.
|
|
18
|
+
* Reads stay inside the pack: no link in any path component, leaves opened no-follow, bounded files, entries and bytes.
|
|
19
|
+
*/
|
|
20
|
+
import type { InstalledPackSkill, Preset, PresetStep, SkillPublishResult } from '../core/types.js';
|
|
21
|
+
import type { SkillsRuntime } from '../skills/runtime.js';
|
|
22
|
+
import { type SkillsStore } from '../skills/store.js';
|
|
23
|
+
/** What the person approved: the pack's skill directories and block ids, and the digest the refusal showed. */
|
|
24
|
+
export interface PackApproval {
|
|
25
|
+
skills: string[];
|
|
26
|
+
blocks: string[];
|
|
27
|
+
digest?: string | undefined;
|
|
28
|
+
}
|
|
29
|
+
/** The daemon skills root, and how to publish it so workers get what was added. */
|
|
30
|
+
export interface PackSkillsPort {
|
|
31
|
+
store: Pick<SkillsStore, 'manifest' | 'revision' | 'add' | 'replace' | 'enable' | 'disable' | 'previewWrite' | 'isPublishing' | 'listFiles' | 'resolveSkillFile' | 'currentSnapshotPaced' | 'snapshotSkillsOf'>;
|
|
32
|
+
publish(): Promise<Pick<SkillPublishResult, 'verdict' | 'findings' | 'snapshot'>>;
|
|
33
|
+
/** Settles once the daemon's skills boot (seed, first publish) has landed; every skills write waits for it. */
|
|
34
|
+
ready?(): Promise<void>;
|
|
35
|
+
}
|
|
36
|
+
/** The daemon's skills runtime as a port: publish exactly as `POST /skills/publish` does (the export runs inside the
|
|
37
|
+
* store's in-flight window), and wait for the boot ladder first, as every `/skills` request does. */
|
|
38
|
+
export declare function packSkillsPort(runtime: SkillsRuntime): PackSkillsPort;
|
|
39
|
+
/** The engine's preset store and phase catalog (the adapter). */
|
|
40
|
+
export interface PackPresetsPort {
|
|
41
|
+
catalogIds(): Promise<ReadonlySet<string> | null>;
|
|
42
|
+
listPresets(): Promise<Preset[]>;
|
|
43
|
+
putPreset(name: string, steps: PresetStep[], projectId?: string, createdBy?: string): Promise<Preset>;
|
|
44
|
+
deletePreset(name: string): Promise<boolean>;
|
|
45
|
+
/** The registered workflow definitions (built-in and system): a block may not take one's name. */
|
|
46
|
+
listWorkflows?(): ReadonlyArray<{
|
|
47
|
+
id: string;
|
|
48
|
+
}>;
|
|
49
|
+
}
|
|
50
|
+
/** A refusal: the HTTP status, the code, and the plain reason. */
|
|
51
|
+
export declare class PackExtrasRefusal extends Error {
|
|
52
|
+
readonly status: 409 | 422;
|
|
53
|
+
readonly code: string;
|
|
54
|
+
constructor(status: 409 | 422, code: string, message: string);
|
|
55
|
+
}
|
|
56
|
+
export interface SkillPlan extends InstalledPackSkill {
|
|
57
|
+
files: Record<string, string>;
|
|
58
|
+
/** This pack installed it before: an update replaces it in place. */
|
|
59
|
+
own: boolean;
|
|
60
|
+
}
|
|
61
|
+
export interface BlockPlan {
|
|
62
|
+
id: string;
|
|
63
|
+
steps: PresetStep[];
|
|
64
|
+
/** The preset this pack wrote before, now replaced (restored if the install fails after the write). */
|
|
65
|
+
previous: Preset | null;
|
|
66
|
+
}
|
|
67
|
+
export interface ExtrasPlan {
|
|
68
|
+
skills: SkillPlan[];
|
|
69
|
+
blocks: BlockPlan[];
|
|
70
|
+
/** The skill keys and preset names this install replaces (this pack's own, from an earlier install). */
|
|
71
|
+
replaces: string[];
|
|
72
|
+
/** sha256 over the manifest, every skill file and every block's steps: what the person approves. */
|
|
73
|
+
digest: string;
|
|
74
|
+
}
|
|
75
|
+
/** Bounds on what a pack may bring. */
|
|
76
|
+
export declare const PACK_EXTRAS_MAX = 200;
|
|
77
|
+
export declare const PACK_SKILL_MAX_FILES = 200;
|
|
78
|
+
export declare const PACK_SKILL_MAX_ENTRIES = 1000;
|
|
79
|
+
export declare const PACK_SKILL_MAX_DEPTH = 16;
|
|
80
|
+
export declare const PACK_SKILL_MAX_BYTES: number;
|
|
81
|
+
export declare const PACK_PRESET_MAX_BYTES: number;
|
|
82
|
+
/** The key a pack skill directory is installed under. */
|
|
83
|
+
export declare function installedKey(dir: string): string;
|
|
84
|
+
/**
|
|
85
|
+
* The skills the root holds stamped as the pack's (`origin: pack:<name>`), named by the install record or not: only this
|
|
86
|
+
* pack's install writes that stamp (`store.add` checks it), so a skill written before a failed record write or a restart
|
|
87
|
+
* is still the pack's (crew#1915). `[]` when there is no skills root or it is not seeded; `null` when it does not read.
|
|
88
|
+
*/
|
|
89
|
+
export declare function packStampedSkills(port: PackSkillsPort | null, packName: string): Promise<InstalledPackSkill[] | null>;
|
|
90
|
+
/** The pack's skills with their installed keys, in the pack's order. */
|
|
91
|
+
export declare function installedSkillsOf(skills: readonly string[]): InstalledPackSkill[];
|
|
92
|
+
/** Does `approve` name exactly these skills and blocks? Returns what differs, empty when it does. */
|
|
93
|
+
export declare function approvalDiff(approve: PackApproval, skills: readonly string[], blocks: readonly string[]): string[];
|
|
94
|
+
/**
|
|
95
|
+
* Rewrite the frontmatter's top-level `name` key to `key`; nothing else changes. The key may carry spaces before its
|
|
96
|
+
* colon (`name : x` is the same YAML key). A frontmatter without one gets it added as its first line.
|
|
97
|
+
*/
|
|
98
|
+
export declare function withInstalledName(text: string, key: string): string;
|
|
99
|
+
/** The preset owner stamp a pack's block presets carry (`created_by`). */
|
|
100
|
+
/** The origin a pack's skills carry in the skills root (`SkillEntry.origin`): they are the pack's, not an operator
|
|
101
|
+
* change, so the daemon's garden auto-refresh keeps running. */
|
|
102
|
+
export declare function packSkillOrigin(packName: string): string;
|
|
103
|
+
export declare function packPresetOwner(packName: string): string;
|
|
104
|
+
/**
|
|
105
|
+
* Read and check everything the pack's skills and blocks need, before anything runs or is written.
|
|
106
|
+
* `owned` = the skill keys and preset names an earlier install of this same pack recorded.
|
|
107
|
+
*/
|
|
108
|
+
export declare function planExtras(input: {
|
|
109
|
+
root: string;
|
|
110
|
+
manifestText: string;
|
|
111
|
+
manifest: Record<string, unknown>;
|
|
112
|
+
packName: string;
|
|
113
|
+
skills: readonly string[];
|
|
114
|
+
blocks: ReadonlyArray<Record<string, unknown>>;
|
|
115
|
+
skillsPort: PackSkillsPort | null;
|
|
116
|
+
presetsPort: PackPresetsPort | null;
|
|
117
|
+
owned: {
|
|
118
|
+
skills: ReadonlySet<string>;
|
|
119
|
+
presets: ReadonlySet<string>;
|
|
120
|
+
};
|
|
121
|
+
}): Promise<ExtrasPlan>;
|
|
122
|
+
/** Write the block presets (before the registry commits). Returns how to put back what was there: `undo` answers
|
|
123
|
+
* what it could not put back (empty when everything was). */
|
|
124
|
+
export declare function writePresets(plan: ExtrasPlan, presets: PackPresetsPort | null, packName: string): Promise<{
|
|
125
|
+
undo(): Promise<string[]>;
|
|
126
|
+
}>;
|
|
127
|
+
/**
|
|
128
|
+
* Write the pack's skills into the skills root (after the registry committed), then publish so workers get them.
|
|
129
|
+
* The writes run in one synchronous pass once no publish is in flight, so no publish can capture half of them. The
|
|
130
|
+
* person approved the pack's skills, so each one is switched on. If a write fails (the store changed since the plan)
|
|
131
|
+
* or the publish is blocked, the pass is put back: each replaced skill gets its earlier files and switch, and each
|
|
132
|
+
* added one is switched off. Answers `null`, or the reason workers do not have the skills yet (the install stands).
|
|
133
|
+
*/
|
|
134
|
+
export declare function writeSkills(plan: ExtrasPlan, port: PackSkillsPort | null, opts?: {
|
|
135
|
+
waitMs?: number;
|
|
136
|
+
origin?: string;
|
|
137
|
+
}): Promise<string | null>;
|
|
138
|
+
/** What a withdrawal switched off and deleted, and what it could not do. */
|
|
139
|
+
export interface PackWithdrawal {
|
|
140
|
+
/** Pack skills switched off (they stay in the skills root, out of every published generation). */
|
|
141
|
+
skills: string[];
|
|
142
|
+
/** Presets deleted (only those still carrying the pack's stamp). */
|
|
143
|
+
presets: string[];
|
|
144
|
+
error?: string;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Withdraw what a pack added (crew#1703, coord round 2 F1): when its last editor is removed, or an update no longer
|
|
148
|
+
* ships a skill or block. The skills root has no removal, so each skill is switched off and the root published, so
|
|
149
|
+
* workers stop getting it; a preset is deleted while it still carries the pack's stamp (one someone else saved
|
|
150
|
+
* since is theirs). The pack keeps them as its own, so installing it again brings them back.
|
|
151
|
+
*/
|
|
152
|
+
export declare function withdrawPackExtras(input: {
|
|
153
|
+
packName: string;
|
|
154
|
+
skills: readonly string[];
|
|
155
|
+
presets: readonly string[];
|
|
156
|
+
skillsPort: PackSkillsPort | null;
|
|
157
|
+
presetsPort: PackPresetsPort | null;
|
|
158
|
+
waitMs?: number;
|
|
159
|
+
/** The pack's last editor is going: every skill stamped as the pack's leaves too, named by the record or not. */
|
|
160
|
+
wholePack?: boolean;
|
|
161
|
+
}): Promise<PackWithdrawal>;
|
|
162
|
+
//#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