@acryldev/coding-capabilities 0.0.0-stage → 0.1.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 +21 -0
- package/lib/index.js +218 -0
- package/lib/index.js.map +1 -0
- package/lib/types/index.d.ts +90 -0
- package/package.json +63 -3
- package/README.md +0 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 WebBoxes s.r.o.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
const CODING_CAPABILITY_COMPOSITIONS = [
|
|
2
|
+
{
|
|
3
|
+
id: "persona",
|
|
4
|
+
surfaces: ["tui"],
|
|
5
|
+
loaderPatches: [{
|
|
6
|
+
id: "system-prompt",
|
|
7
|
+
name: "@deepseek-ai/dsh-system-prompt",
|
|
8
|
+
config: { persona: "You are a coding agent powered by the {{model}} model. Your working directory is {{cwd}}." }
|
|
9
|
+
}]
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
id: "agent-roster",
|
|
13
|
+
surfaces: ["tui"],
|
|
14
|
+
loaderPatches: [{ insert: [{
|
|
15
|
+
id: "agent-preset-registry",
|
|
16
|
+
name: "@deepseek-ai/dsh-agent-preset-registry",
|
|
17
|
+
config: { default: "standard" }
|
|
18
|
+
}] }]
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
id: "session-stats",
|
|
22
|
+
surfaces: ["tui"],
|
|
23
|
+
loaderPatches: [{ insert: [{
|
|
24
|
+
id: "session-stats",
|
|
25
|
+
name: "@deepseek-ai/dsh-session-stats"
|
|
26
|
+
}] }]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
id: "authorization",
|
|
30
|
+
surfaces: [
|
|
31
|
+
"tui",
|
|
32
|
+
"web",
|
|
33
|
+
"desktop"
|
|
34
|
+
],
|
|
35
|
+
loaderPatches: [{ insert: [{
|
|
36
|
+
id: "authorization",
|
|
37
|
+
name: "@deepseek-ai/dsh-authorization"
|
|
38
|
+
}] }]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
id: "acryl-settings",
|
|
42
|
+
surfaces: [
|
|
43
|
+
"tui",
|
|
44
|
+
"web",
|
|
45
|
+
"desktop"
|
|
46
|
+
],
|
|
47
|
+
requiresPackages: ["@acryldev/settings"],
|
|
48
|
+
loaderPatches: [{ insert: [{
|
|
49
|
+
id: "acryl-settings",
|
|
50
|
+
name: "@acryldev/settings"
|
|
51
|
+
}] }]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
id: "workspace",
|
|
55
|
+
surfaces: ["desktop", "web"],
|
|
56
|
+
requiresPackages: ["@acryldev/app-shell", "@acryldev/workspace"],
|
|
57
|
+
loaderPatches: [{ insert: [{
|
|
58
|
+
id: "acryl-app-shell",
|
|
59
|
+
name: "@acryldev/app-shell"
|
|
60
|
+
}, {
|
|
61
|
+
id: "acryl-workspace",
|
|
62
|
+
name: "@acryldev/workspace"
|
|
63
|
+
}] }]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
id: "plugin-admin",
|
|
67
|
+
surfaces: ["desktop", "web"],
|
|
68
|
+
requiresPackages: ["@acryldev/plugin-admin"],
|
|
69
|
+
loaderPatches: [{ insert: [{
|
|
70
|
+
id: "acryl-plugin-admin",
|
|
71
|
+
name: "@acryldev/plugin-admin"
|
|
72
|
+
}] }]
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
id: "sign-in",
|
|
76
|
+
surfaces: ["web", "desktop"],
|
|
77
|
+
requiresPackages: ["@acryldev/sign-in"],
|
|
78
|
+
loaderPatches: [{ insert: [{
|
|
79
|
+
id: "acryl-sign-in",
|
|
80
|
+
name: "@acryldev/sign-in"
|
|
81
|
+
}] }]
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
id: "launcher-screen",
|
|
85
|
+
surfaces: ["desktop", "web"],
|
|
86
|
+
requiresPackages: ["@acryldev/launcher-desktop"],
|
|
87
|
+
loaderPatches: [{ insert: [{
|
|
88
|
+
id: "acryl-launcher-desktop",
|
|
89
|
+
name: "@acryldev/launcher-desktop"
|
|
90
|
+
}] }]
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
id: "account-callback",
|
|
94
|
+
surfaces: ["tui"],
|
|
95
|
+
requiresPackages: ["@acryldev/sign-in"],
|
|
96
|
+
loaderPatches: [{ insert: [{
|
|
97
|
+
id: "acryl-sign-in-account-callback",
|
|
98
|
+
name: "@acryldev/sign-in/account-callback",
|
|
99
|
+
isolate: { webServer: "acryl-account-callback" }
|
|
100
|
+
}] }, {
|
|
101
|
+
id: "deepseek-account",
|
|
102
|
+
name: "@deepseek-ai/dsh-deepseek-account-platform",
|
|
103
|
+
isolate: { webServer: "acryl-account-callback" }
|
|
104
|
+
}]
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
id: "support",
|
|
108
|
+
surfaces: ["web"],
|
|
109
|
+
requiresPackages: ["@acryldev/support"],
|
|
110
|
+
loaderPatches: [{ insert: [{
|
|
111
|
+
id: "acryl-support",
|
|
112
|
+
name: "@acryldev/support"
|
|
113
|
+
}] }]
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
id: "agent-control-ui",
|
|
117
|
+
surfaces: ["desktop", "web"],
|
|
118
|
+
requiresPackages: ["@acryldev/agent-control"],
|
|
119
|
+
loaderPatches: [{ insert: [{
|
|
120
|
+
id: "acryl-agent-control",
|
|
121
|
+
name: "@acryldev/agent-control",
|
|
122
|
+
config: { online: true }
|
|
123
|
+
}] }]
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
id: "advanced-shell",
|
|
127
|
+
surfaces: ["desktop", "web"],
|
|
128
|
+
shellMode: "advanced",
|
|
129
|
+
loaderPatches: [
|
|
130
|
+
{
|
|
131
|
+
id: "ui-layout",
|
|
132
|
+
disabled: true
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
id: "ui-sidebar",
|
|
136
|
+
disabled: false
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
id: "ui-conversation",
|
|
140
|
+
disabled: false
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
];
|
|
145
|
+
/** The stock rows the ACRYL frame replaces: the advanced-shell capability's own patches, which a Blueprint with an `app-shell` row composes. */
|
|
146
|
+
const ADVANCED_SHELL_PATCHES = CODING_CAPABILITY_COMPOSITIONS.find((capability) => capability.id === "advanced-shell")?.loaderPatches ?? [];
|
|
147
|
+
/**
|
|
148
|
+
* The patches one root composes, for the surfaces that root serves.
|
|
149
|
+
*
|
|
150
|
+
* `existingRowIds` names rows the target profile's own bundle already
|
|
151
|
+
* composes before these patches apply (e.g. a `desktop`/`web`-flavored
|
|
152
|
+
* profile booted through the CLI/TUI's own generic `--profile <name>` path,
|
|
153
|
+
* whose `dsh-web-app`-based bundle already carries `agent-presets` natively).
|
|
154
|
+
* An `insert` is a Loader row that must not already exist - unlike a plain
|
|
155
|
+
* `id`-targeted patch, which only overrides one - so an `insert` entry whose
|
|
156
|
+
* id is already present is dropped rather than composed a second time: the
|
|
157
|
+
* capability's actual intent ("this profile ends up with the row") is
|
|
158
|
+
* already satisfied by the bundle, and inserting again throws `duplicate
|
|
159
|
+
* loader entry id` at boot (spec 034 T008). This does not special-case any
|
|
160
|
+
* one row id; it holds for every declared capability.
|
|
161
|
+
*
|
|
162
|
+
* Returns fresh objects on every call (`structuredClone`), because callers hand
|
|
163
|
+
* the result to a Loader composition that mutates it, and a shared frozen
|
|
164
|
+
* declaration would leak one surface's edits into the next root.
|
|
165
|
+
*/
|
|
166
|
+
function createAcrylCodingCapabilityPatches(surfaces, existingRowIds = /* @__PURE__ */ new Set(), only) {
|
|
167
|
+
return composePatches(CODING_CAPABILITY_COMPOSITIONS.filter((capability) => capability.shellMode === void 0 && isSelected(capability, only)), surfaces, existingRowIds);
|
|
168
|
+
}
|
|
169
|
+
/** `only` undefined means every declared capability; a Blueprint passes the subset it composes. */
|
|
170
|
+
function isSelected(capability, only) {
|
|
171
|
+
return only === void 0 || only.has(capability.id);
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* The patches that put a surface into one shell mode. Kept apart from
|
|
175
|
+
* {@link createAcrylCodingCapabilityPatches} because Desktop learns its mode only after the base rows
|
|
176
|
+
* (and its settings file) are composed, while Web is always `advanced`.
|
|
177
|
+
*/
|
|
178
|
+
function createAcrylShellCapabilityPatches(surfaces, shellMode, existingRowIds = /* @__PURE__ */ new Set(), only) {
|
|
179
|
+
return composePatches(CODING_CAPABILITY_COMPOSITIONS.filter((capability) => capability.shellMode === shellMode && isSelected(capability, only)), surfaces, existingRowIds);
|
|
180
|
+
}
|
|
181
|
+
/** The ACRYL-owned packages a surface must make resolvable for the capabilities it composes. */
|
|
182
|
+
function acrylCodingCapabilityPackages(surfaces, only) {
|
|
183
|
+
return [...new Set(CODING_CAPABILITY_COMPOSITIONS.filter((capability) => isSelected(capability, only) && capability.surfaces.some((surface) => surfaces.has(surface))).flatMap((capability) => capability.requiresPackages ?? []))];
|
|
184
|
+
}
|
|
185
|
+
function composePatches(capabilities, surfaces, existingRowIds) {
|
|
186
|
+
const patches = capabilities.filter((capability) => capability.surfaces.some((surface) => surfaces.has(surface))).flatMap((capability) => capability.loaderPatches).flatMap((patch) => {
|
|
187
|
+
if (patch.insert === void 0) return [patch];
|
|
188
|
+
const insert = patch.insert.filter((row) => row.id === void 0 || !existingRowIds.has(row.id));
|
|
189
|
+
return insert.length > 0 ? [{
|
|
190
|
+
...patch,
|
|
191
|
+
insert
|
|
192
|
+
}] : [];
|
|
193
|
+
});
|
|
194
|
+
return structuredClone(patches);
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* The composition a surface hands to its engine definition, anchored at the surface's own `package.json` so capability packages
|
|
198
|
+
* materialize from the app that composes them, not from the runtime.
|
|
199
|
+
*/
|
|
200
|
+
function codingCapabilitiesFor(anchor) {
|
|
201
|
+
return {
|
|
202
|
+
anchors: [anchor, new URL("../package.json", import.meta.url).href],
|
|
203
|
+
patches: createAcrylCodingCapabilityPatches,
|
|
204
|
+
shellPatches: createAcrylShellCapabilityPatches,
|
|
205
|
+
packages: acrylCodingCapabilityPackages,
|
|
206
|
+
appFramePatches: ADVANCED_SHELL_PATCHES
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* The composition anchored at this package itself, for a consumer that does not depend on the plugin packages: the runtime's integration
|
|
211
|
+
* tests boot a surface with the real composition this way (spec 051 T021's one dev-only edge). A surface anchors at its own `package.json`
|
|
212
|
+
* instead, via {@link codingCapabilitiesFor}.
|
|
213
|
+
*/
|
|
214
|
+
const codingCapabilities = codingCapabilitiesFor(new URL("../package.json", import.meta.url).href);
|
|
215
|
+
//#endregion
|
|
216
|
+
export { ADVANCED_SHELL_PATCHES, CODING_CAPABILITY_COMPOSITIONS, acrylCodingCapabilityPackages, codingCapabilities, codingCapabilitiesFor, createAcrylCodingCapabilityPatches, createAcrylShellCapabilityPatches };
|
|
217
|
+
|
|
218
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["/**\n * How ACRYL's coding capabilities compose on a product surface: which Loader rows each one inserts, which ACRYL-owned packages its\n * surface must make resolvable, and the composers that return exactly the set a surface (or a Blueprint) asks for.\n *\n * A capability is a declaration, not a branch: adding one to a surface is a data change here; a per-surface `if` in a caller (or a\n * row-id filter that silently drops rows for some surfaces) is the bug this table exists to remove. The Blueprint vocabulary (which\n * capability ids exist, and which need the framework router) stays in `@acryldev/harness-runtime`: Blueprint parsing is runtime domain,\n * while the composition of plugins is the surface's. The two tables must name the same ids; the test asserts it both ways.\n *\n * @module @acryldev/coding-capabilities\n */\n\nimport type { PatchOptions } from '@deepseek-ai/cordis-plugin-include'\n/** The product surfaces this package composes for; the runtime's Blueprint vocabulary declares the same names, and a runtime test holds the two tables' ids together. */\nexport type AcrylSurface = 'tui' | 'web' | 'desktop'\n\n/** The capability ids a Blueprint may name; the vocabulary's own table in the runtime is the authority, and the id sets are asserted equal. */\nexport type AcrylCodingCapabilityId =\n | 'persona'\n | 'agent-roster'\n | 'session-stats'\n | 'authorization'\n | 'acryl-settings'\n | 'workspace'\n | 'plugin-admin'\n | 'sign-in'\n | 'launcher-screen'\n | 'account-callback'\n | 'support'\n | 'agent-control-ui'\n | 'advanced-shell'\n\n/** The shell a surface renders the coding UI in (`compatibility` keeps the stock DSH frame; `advanced` is the ACRYL shell). */\nexport type AcrylShellMode = 'compatibility' | 'advanced'\n\n/** The input an engine definition takes from the surface that composes it (structurally the runtime's own `CodingCapabilities`). */\nexport interface CodingCapabilities {\n /** Installations whose `node_modules` may hold a named package, in order: the surface's own, then this package's. */\n readonly anchors: readonly string[]\n patches(surface: ReadonlySet<AcrylSurface>, existingRowIds: ReadonlySet<string>, only: ReadonlySet<AcrylCodingCapabilityId>): readonly PatchOptions[]\n shellPatches(surface: ReadonlySet<AcrylSurface>, shellMode: AcrylShellMode, existingRowIds: ReadonlySet<string>, only: ReadonlySet<AcrylCodingCapabilityId>): readonly PatchOptions[]\n packages(surface: ReadonlySet<AcrylSurface>, only: ReadonlySet<AcrylCodingCapabilityId>): readonly string[]\n readonly appFramePatches: readonly PatchOptions[]\n}\n\nexport interface CodingCapabilityComposition {\n readonly id: AcrylCodingCapabilityId\n /**\n * Product surfaces this capability declares itself for. A surface that hosts\n * the row's package should be listed; one that has no slot for it (a client\n * UI on a TUI, a native window off Electron) stays out, and its absence is\n * not an error.\n */\n readonly surfaces: readonly AcrylSurface[]\n readonly loaderPatches: readonly PatchOptions[]\n /**\n * ACRYL-owned packages the composing surface must make resolvable from its profile before the row can\n * load (Web links them into the profile's `node_modules`; Desktop resolves them through its own hook).\n */\n readonly requiresPackages?: readonly string[]\n /**\n * When set, the capability composes only for a surface running that shell mode, through\n * {@link createAcrylShellCapabilityPatches}; it is left out of {@link createAcrylCodingCapabilityPatches}.\n */\n readonly shellMode?: AcrylShellMode\n}\n\n/**\n * Agent presets for the TUI surface. DSH 0.2 removed the `dsh-agent-presets` package and its shipped `presets/` directory:\n * preset compositions are now declared in profile YAML and the `agent-preset-registry` row only selects among them\n * (spec 001 R18, R24). The `dsh-web-app` bundle declares its presets natively, so Web and Desktop need nothing here.\n * The TUI composes the registry with the default selection only, which leaves its roster empty until ACRYL declares\n * presets for it. DETACHED: re-attach by shipping preset patch files for the TUI.\n */\nconst agentPresetConfig: Record<string, unknown> = {\n default: 'standard',\n}\n\n/*\n * Rows the ACRYL runtime composes on top of a base profile. dsh-base alone\n * mounts no persona, no agent-preset service, and no session-stat projection;\n * these are what let a surface open a real coding agent. `hmr` is deliberately\n * NOT forced here: the boot guard in `engine-dsh.ts` must keep rejecting an\n * HMR-enabled profile in a non-exposed process, and each surface decides its\n * own HMR policy. Values are defaults a surface or user patch layer may\n * override.\n *\n * `system-prompt` is already in dsh-base's include tree, so a plain\n * id-targeted row overrides its config. `agent-presets`, `session-stats` and\n * `authorization` are NOT in the base include set, so they must be `insert`ed -\n * a plain row only overrides an existing entry, it does not create one (that is\n * why they silently never composed before).\n *\n * Why the split: web and desktop build on bundles (`dsh-web-app`) that already\n * compose their own persona, roster and session-stat rows, so ACRYL declares\n * those capabilities for `tui` only and lets those surfaces keep the bundle's\n * rows. The authorization service is the opposite case - every surface needs it\n * so `dsh-llm-pi-ai` has a seam to register OAuth sign-in flows into; without\n * it the pi-ai adapter stays PENDING and `/login` has no providers to offer.\n */\nexport const CODING_CAPABILITY_COMPOSITIONS: readonly CodingCapabilityComposition[] = [\n {\n id: 'persona',\n surfaces: ['tui'],\n loaderPatches: [\n {\n id: 'system-prompt',\n name: '@deepseek-ai/dsh-system-prompt',\n config: {\n persona: 'You are a coding agent powered by the {{model}} model. Your working directory is {{cwd}}.',\n },\n },\n ],\n },\n {\n id: 'agent-roster',\n surfaces: ['tui'],\n loaderPatches: [\n {\n insert: [\n { id: 'agent-preset-registry', name: '@deepseek-ai/dsh-agent-preset-registry', config: agentPresetConfig },\n ],\n },\n ],\n },\n {\n id: 'session-stats',\n surfaces: ['tui'],\n loaderPatches: [\n { insert: [{ id: 'session-stats', name: '@deepseek-ai/dsh-session-stats' }] },\n ],\n },\n {\n id: 'authorization',\n surfaces: ['tui', 'web', 'desktop'],\n loaderPatches: [\n { insert: [{ id: 'authorization', name: '@deepseek-ai/dsh-authorization' }] },\n ],\n },\n {\n // ACRYL's own surface preferences (shortcuts, desktop shell mode, notifications, market): one small settings\n // service backed by a YAML file in the ACRYL home, so these do not depend on the harness settings design\n // (spec 001 R22, R24). Every surface composes it; consumers use `ctx.acrylSettings`.\n id: 'acryl-settings',\n surfaces: ['tui', 'web', 'desktop'],\n requiresPackages: ['@acryldev/settings'],\n loaderPatches: [\n { insert: [{ id: 'acryl-settings', name: '@acryldev/settings' }] },\n ],\n },\n {\n // The ACRYL workspace (spec 040): Projects list, per-worktree tabbed canvas, Changes, Review, Checks and\n // Files panels, and the file editor. Composed once for both surfaces that render it; TUI has no slot for\n // it. Its client half only takes over the frame when the shell mode is `advanced`.\n // Re-attached on the DSH 0.2 branch (spec 001 R25): the tab strip and Projects panel own the main view through\n // `sessions/main-session.ts` (`retain(..., { source: 'mainView' })`) instead of the removed `ISessions.open`.\n id: 'workspace',\n surfaces: ['desktop', 'web'],\n // `@acryldev/workspace`'s client bundle does `require('@acryldev/app-shell/client')`; the client-modules Host\n // only resolves a `require()` target into a real browser module when that package is itself a scanned,\n // active Loader entry (`deepseek-harness/packages/client/modules/src/index.ts`'s manifest scan is over\n // Loader entries, not over any plugin's own `dsh.client.inject` list or its npm dependency graph) - found\n // live: `@acryldev/app-shell` shipped as a package.json dependency and a prebuild step but never as its own\n // row, so the Host booted clean (headless Loader smoke never renders a page) while the real browser threw\n // `require(\"@acryldev/app-shell/client\") missed the module table` the first time anything actually opened\n // `desktop.main`.\n requiresPackages: ['@acryldev/app-shell', '@acryldev/workspace'],\n loaderPatches: [\n { insert: [{ id: 'acryl-app-shell', name: '@acryldev/app-shell' }, { id: 'acryl-workspace', name: '@acryldev/workspace' }] },\n ],\n },\n {\n // Settings > Plugins > Lifecycle and Architecture: one Cordis plugin (Host routes, Client tabs) driven by\n // the `ctx.acrPluginLifecycle` service every surface publishes. It was Desktop-only inside `acryl-desktop`.\n id: 'plugin-admin',\n surfaces: ['desktop', 'web'],\n requiresPackages: ['@acryldev/plugin-admin'],\n loaderPatches: [\n { insert: [{ id: 'acryl-plugin-admin', name: '@acryldev/plugin-admin' }] },\n ],\n },\n {\n // Sign in to a model provider with an account (OAuth: Claude, ChatGPT/Codex and the rest of the catalog's flows) from\n // Settings > Models, over the harness's authorization flows; API keys stay on the Models page's own editor.\n id: 'sign-in',\n surfaces: ['web', 'desktop'],\n requiresPackages: ['@acryldev/sign-in'],\n loaderPatches: [\n { insert: [{ id: 'acryl-sign-in', name: '@acryldev/sign-in' }] },\n ],\n },\n {\n // The ACRYL screen (spec 050 T012): every app made with ACRYL on this machine, with New app, Add a folder, Start and Stop. A full-window layer over the\n // workspace in the frame's `shell.overlay` seat, open when the desktop app starts; the Host half lists, makes, starts and stops apps through the machine's\n // Node and npm. On Web and Desktop alike (surface sharing, spec 040); the terminal has its own screen (distribution/acryl-npm-launcher/tui) over the same list.\n id: 'launcher-screen',\n surfaces: ['desktop', 'web'],\n requiresPackages: ['@acryldev/launcher-desktop'],\n loaderPatches: [\n { insert: [{ id: 'acryl-launcher-desktop', name: '@acryldev/launcher-desktop' }] },\n ],\n },\n {\n // DeepSeek account sign-in from the terminal's /login. The terminal has no web server for DeepSeek's browser callback,\n // and DSH's would also wake the API gateway; this row serves the callback on its own loopback port, as `webServer` in\n // a realm only the `deepseek-account` row shares. The row id names the shared realm's capability, not only a package\n // (the documented exception: two rows share the realm `acryl-account-callback`).\n id: 'account-callback',\n surfaces: ['tui'],\n requiresPackages: ['@acryldev/sign-in'],\n loaderPatches: [\n { insert: [{ id: 'acryl-sign-in-account-callback', name: '@acryldev/sign-in/account-callback', isolate: { webServer: 'acryl-account-callback' } }] },\n { id: 'deepseek-account', name: '@deepseek-ai/dsh-deepseek-account-platform', isolate: { webServer: 'acryl-account-callback' } },\n ],\n },\n {\n // Web keeps log files and offers Settings > Support > Export diagnostics. Desktop already has both natively\n // (the file logger in the main process and the tray export), so this stays off Desktop on purpose.\n id: 'support',\n surfaces: ['web'],\n requiresPackages: ['@acryldev/support'],\n loaderPatches: [\n { insert: [{ id: 'acryl-support', name: '@acryldev/support' }] },\n ],\n },\n {\n // Agent Control (spec 041): the agent can look at and operate the ACRYL window, on the same terms on both\n // surfaces. One package (Host tools plus the in-page driver), joined by a same-origin WebSocket; every\n // click, type, select and key press is approved per call. A TUI has no page, so it is not declared here.\n id: 'agent-control-ui',\n surfaces: ['desktop', 'web'],\n requiresPackages: ['@acryldev/agent-control'],\n loaderPatches: [\n // `online`: the loopback gateway (secret-gated, this machine only) on, so the assistant's Claude agent and an outside CLI agent reach ACRYL's tools,\n // the launcher's among them (spec 050 T013). Every click, type and key press of the window driver is still approved per call.\n { insert: [{ id: 'acryl-agent-control', name: '@acryldev/agent-control', config: { online: true } }] },\n ],\n },\n {\n // Rows toggled so the ACRYL shell owns the frame: the stock layout off, the sidebar and conversation on.\n // The rows exist in the shared `dsh-web-app` bundle both surfaces build on.\n // Re-attached on the DSH 0.2 branch (spec 001 R25): `@acryldev/app-shell`'s layout state now implements 0.2's whole `ILayout`\n // (panelInfo, selectPanel, beginNavigation) and renders upstream's keyed `main` panels, so upstream's sidebars work on it.\n id: 'advanced-shell',\n surfaces: ['desktop', 'web'],\n shellMode: 'advanced',\n loaderPatches: [\n { id: 'ui-layout', disabled: true },\n { id: 'ui-sidebar', disabled: false },\n { id: 'ui-conversation', disabled: false },\n ],\n },\n]\n\n/** The stock rows the ACRYL frame replaces: the advanced-shell capability's own patches, which a Blueprint with an `app-shell` row composes. */\nexport const ADVANCED_SHELL_PATCHES: readonly PatchOptions[] =\n CODING_CAPABILITY_COMPOSITIONS.find(capability => capability.id === 'advanced-shell')?.loaderPatches ?? []\n\n/**\n * The patches one root composes, for the surfaces that root serves.\n *\n * `existingRowIds` names rows the target profile's own bundle already\n * composes before these patches apply (e.g. a `desktop`/`web`-flavored\n * profile booted through the CLI/TUI's own generic `--profile <name>` path,\n * whose `dsh-web-app`-based bundle already carries `agent-presets` natively).\n * An `insert` is a Loader row that must not already exist - unlike a plain\n * `id`-targeted patch, which only overrides one - so an `insert` entry whose\n * id is already present is dropped rather than composed a second time: the\n * capability's actual intent (\"this profile ends up with the row\") is\n * already satisfied by the bundle, and inserting again throws `duplicate\n * loader entry id` at boot (spec 034 T008). This does not special-case any\n * one row id; it holds for every declared capability.\n *\n * Returns fresh objects on every call (`structuredClone`), because callers hand\n * the result to a Loader composition that mutates it, and a shared frozen\n * declaration would leak one surface's edits into the next root.\n */\nexport function createAcrylCodingCapabilityPatches(\n surfaces: ReadonlySet<AcrylSurface>,\n existingRowIds: ReadonlySet<string> = new Set(),\n only?: ReadonlySet<AcrylCodingCapabilityId>,\n): readonly PatchOptions[] {\n return composePatches(\n CODING_CAPABILITY_COMPOSITIONS.filter(capability => capability.shellMode === undefined && isSelected(capability, only)),\n surfaces,\n existingRowIds,\n )\n}\n\n/** `only` undefined means every declared capability; a Blueprint passes the subset it composes. */\nfunction isSelected(capability: CodingCapabilityComposition, only: ReadonlySet<AcrylCodingCapabilityId> | undefined): boolean {\n return only === undefined || only.has(capability.id)\n}\n\n/**\n * The patches that put a surface into one shell mode. Kept apart from\n * {@link createAcrylCodingCapabilityPatches} because Desktop learns its mode only after the base rows\n * (and its settings file) are composed, while Web is always `advanced`.\n */\nexport function createAcrylShellCapabilityPatches(\n surfaces: ReadonlySet<AcrylSurface>,\n shellMode: AcrylShellMode,\n existingRowIds: ReadonlySet<string> = new Set(),\n only?: ReadonlySet<AcrylCodingCapabilityId>,\n): readonly PatchOptions[] {\n return composePatches(\n CODING_CAPABILITY_COMPOSITIONS.filter(capability => capability.shellMode === shellMode && isSelected(capability, only)),\n surfaces,\n existingRowIds,\n )\n}\n\n/** The ACRYL-owned packages a surface must make resolvable for the capabilities it composes. */\nexport function acrylCodingCapabilityPackages(\n surfaces: ReadonlySet<AcrylSurface>,\n only?: ReadonlySet<AcrylCodingCapabilityId>,\n): readonly string[] {\n return [...new Set(\n CODING_CAPABILITY_COMPOSITIONS\n .filter(capability => isSelected(capability, only) && capability.surfaces.some(surface => surfaces.has(surface)))\n .flatMap(capability => capability.requiresPackages ?? []),\n )]\n}\n\nfunction composePatches(\n capabilities: readonly CodingCapabilityComposition[],\n surfaces: ReadonlySet<AcrylSurface>,\n existingRowIds: ReadonlySet<string>,\n): readonly PatchOptions[] {\n const patches = capabilities\n .filter(capability => capability.surfaces.some(surface => surfaces.has(surface)))\n .flatMap(capability => capability.loaderPatches)\n .flatMap((patch): readonly PatchOptions[] => {\n if (patch.insert === undefined) return [patch]\n const insert = patch.insert.filter(row => row.id === undefined || !existingRowIds.has(row.id))\n return insert.length > 0 ? [{ ...patch, insert }] : []\n })\n return structuredClone(patches)\n}\n\n/**\n * The composition a surface hands to its engine definition, anchored at the surface's own `package.json` so capability packages\n * materialize from the app that composes them, not from the runtime.\n */\nexport function codingCapabilitiesFor(anchor: string): CodingCapabilities {\n return {\n anchors: [anchor, new URL('../package.json', import.meta.url).href],\n patches: createAcrylCodingCapabilityPatches,\n shellPatches: createAcrylShellCapabilityPatches,\n packages: acrylCodingCapabilityPackages,\n appFramePatches: ADVANCED_SHELL_PATCHES,\n }\n}\n\n/**\n * The composition anchored at this package itself, for a consumer that does not depend on the plugin packages: the runtime's integration\n * tests boot a surface with the real composition this way (spec 051 T021's one dev-only edge). A surface anchors at its own `package.json`\n * instead, via {@link codingCapabilitiesFor}.\n */\nexport const codingCapabilities: CodingCapabilities = codingCapabilitiesFor(new URL('../package.json', import.meta.url).href)\n"],"mappings":"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"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How ACRYL's coding capabilities compose on a product surface: which Loader rows each one inserts, which ACRYL-owned packages its
|
|
3
|
+
* surface must make resolvable, and the composers that return exactly the set a surface (or a Blueprint) asks for.
|
|
4
|
+
*
|
|
5
|
+
* A capability is a declaration, not a branch: adding one to a surface is a data change here; a per-surface `if` in a caller (or a
|
|
6
|
+
* row-id filter that silently drops rows for some surfaces) is the bug this table exists to remove. The Blueprint vocabulary (which
|
|
7
|
+
* capability ids exist, and which need the framework router) stays in `@acryldev/harness-runtime`: Blueprint parsing is runtime domain,
|
|
8
|
+
* while the composition of plugins is the surface's. The two tables must name the same ids; the test asserts it both ways.
|
|
9
|
+
*
|
|
10
|
+
* @module @acryldev/coding-capabilities
|
|
11
|
+
*/
|
|
12
|
+
import type { PatchOptions } from '@deepseek-ai/cordis-plugin-include';
|
|
13
|
+
/** The product surfaces this package composes for; the runtime's Blueprint vocabulary declares the same names, and a runtime test holds the two tables' ids together. */
|
|
14
|
+
export type AcrylSurface = 'tui' | 'web' | 'desktop';
|
|
15
|
+
/** The capability ids a Blueprint may name; the vocabulary's own table in the runtime is the authority, and the id sets are asserted equal. */
|
|
16
|
+
export type AcrylCodingCapabilityId = 'persona' | 'agent-roster' | 'session-stats' | 'authorization' | 'acryl-settings' | 'workspace' | 'plugin-admin' | 'sign-in' | 'launcher-screen' | 'account-callback' | 'support' | 'agent-control-ui' | 'advanced-shell';
|
|
17
|
+
/** The shell a surface renders the coding UI in (`compatibility` keeps the stock DSH frame; `advanced` is the ACRYL shell). */
|
|
18
|
+
export type AcrylShellMode = 'compatibility' | 'advanced';
|
|
19
|
+
/** The input an engine definition takes from the surface that composes it (structurally the runtime's own `CodingCapabilities`). */
|
|
20
|
+
export interface CodingCapabilities {
|
|
21
|
+
/** Installations whose `node_modules` may hold a named package, in order: the surface's own, then this package's. */
|
|
22
|
+
readonly anchors: readonly string[];
|
|
23
|
+
patches(surface: ReadonlySet<AcrylSurface>, existingRowIds: ReadonlySet<string>, only: ReadonlySet<AcrylCodingCapabilityId>): readonly PatchOptions[];
|
|
24
|
+
shellPatches(surface: ReadonlySet<AcrylSurface>, shellMode: AcrylShellMode, existingRowIds: ReadonlySet<string>, only: ReadonlySet<AcrylCodingCapabilityId>): readonly PatchOptions[];
|
|
25
|
+
packages(surface: ReadonlySet<AcrylSurface>, only: ReadonlySet<AcrylCodingCapabilityId>): readonly string[];
|
|
26
|
+
readonly appFramePatches: readonly PatchOptions[];
|
|
27
|
+
}
|
|
28
|
+
export interface CodingCapabilityComposition {
|
|
29
|
+
readonly id: AcrylCodingCapabilityId;
|
|
30
|
+
/**
|
|
31
|
+
* Product surfaces this capability declares itself for. A surface that hosts
|
|
32
|
+
* the row's package should be listed; one that has no slot for it (a client
|
|
33
|
+
* UI on a TUI, a native window off Electron) stays out, and its absence is
|
|
34
|
+
* not an error.
|
|
35
|
+
*/
|
|
36
|
+
readonly surfaces: readonly AcrylSurface[];
|
|
37
|
+
readonly loaderPatches: readonly PatchOptions[];
|
|
38
|
+
/**
|
|
39
|
+
* ACRYL-owned packages the composing surface must make resolvable from its profile before the row can
|
|
40
|
+
* load (Web links them into the profile's `node_modules`; Desktop resolves them through its own hook).
|
|
41
|
+
*/
|
|
42
|
+
readonly requiresPackages?: readonly string[];
|
|
43
|
+
/**
|
|
44
|
+
* When set, the capability composes only for a surface running that shell mode, through
|
|
45
|
+
* {@link createAcrylShellCapabilityPatches}; it is left out of {@link createAcrylCodingCapabilityPatches}.
|
|
46
|
+
*/
|
|
47
|
+
readonly shellMode?: AcrylShellMode;
|
|
48
|
+
}
|
|
49
|
+
export declare const CODING_CAPABILITY_COMPOSITIONS: readonly CodingCapabilityComposition[];
|
|
50
|
+
/** The stock rows the ACRYL frame replaces: the advanced-shell capability's own patches, which a Blueprint with an `app-shell` row composes. */
|
|
51
|
+
export declare const ADVANCED_SHELL_PATCHES: readonly PatchOptions[];
|
|
52
|
+
/**
|
|
53
|
+
* The patches one root composes, for the surfaces that root serves.
|
|
54
|
+
*
|
|
55
|
+
* `existingRowIds` names rows the target profile's own bundle already
|
|
56
|
+
* composes before these patches apply (e.g. a `desktop`/`web`-flavored
|
|
57
|
+
* profile booted through the CLI/TUI's own generic `--profile <name>` path,
|
|
58
|
+
* whose `dsh-web-app`-based bundle already carries `agent-presets` natively).
|
|
59
|
+
* An `insert` is a Loader row that must not already exist - unlike a plain
|
|
60
|
+
* `id`-targeted patch, which only overrides one - so an `insert` entry whose
|
|
61
|
+
* id is already present is dropped rather than composed a second time: the
|
|
62
|
+
* capability's actual intent ("this profile ends up with the row") is
|
|
63
|
+
* already satisfied by the bundle, and inserting again throws `duplicate
|
|
64
|
+
* loader entry id` at boot (spec 034 T008). This does not special-case any
|
|
65
|
+
* one row id; it holds for every declared capability.
|
|
66
|
+
*
|
|
67
|
+
* Returns fresh objects on every call (`structuredClone`), because callers hand
|
|
68
|
+
* the result to a Loader composition that mutates it, and a shared frozen
|
|
69
|
+
* declaration would leak one surface's edits into the next root.
|
|
70
|
+
*/
|
|
71
|
+
export declare function createAcrylCodingCapabilityPatches(surfaces: ReadonlySet<AcrylSurface>, existingRowIds?: ReadonlySet<string>, only?: ReadonlySet<AcrylCodingCapabilityId>): readonly PatchOptions[];
|
|
72
|
+
/**
|
|
73
|
+
* The patches that put a surface into one shell mode. Kept apart from
|
|
74
|
+
* {@link createAcrylCodingCapabilityPatches} because Desktop learns its mode only after the base rows
|
|
75
|
+
* (and its settings file) are composed, while Web is always `advanced`.
|
|
76
|
+
*/
|
|
77
|
+
export declare function createAcrylShellCapabilityPatches(surfaces: ReadonlySet<AcrylSurface>, shellMode: AcrylShellMode, existingRowIds?: ReadonlySet<string>, only?: ReadonlySet<AcrylCodingCapabilityId>): readonly PatchOptions[];
|
|
78
|
+
/** The ACRYL-owned packages a surface must make resolvable for the capabilities it composes. */
|
|
79
|
+
export declare function acrylCodingCapabilityPackages(surfaces: ReadonlySet<AcrylSurface>, only?: ReadonlySet<AcrylCodingCapabilityId>): readonly string[];
|
|
80
|
+
/**
|
|
81
|
+
* The composition a surface hands to its engine definition, anchored at the surface's own `package.json` so capability packages
|
|
82
|
+
* materialize from the app that composes them, not from the runtime.
|
|
83
|
+
*/
|
|
84
|
+
export declare function codingCapabilitiesFor(anchor: string): CodingCapabilities;
|
|
85
|
+
/**
|
|
86
|
+
* The composition anchored at this package itself, for a consumer that does not depend on the plugin packages: the runtime's integration
|
|
87
|
+
* tests boot a surface with the real composition this way (spec 051 T021's one dev-only edge). A surface anchors at its own `package.json`
|
|
88
|
+
* instead, via {@link codingCapabilitiesFor}.
|
|
89
|
+
*/
|
|
90
|
+
export declare const codingCapabilities: CodingCapabilities;
|
package/package.json
CHANGED
|
@@ -1,6 +1,66 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acryldev/coding-capabilities",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "How ACRYL's coding capabilities compose on each product surface: the Loader rows, the packages a surface must make resolvable, and the shell-mode split. The Blueprint vocabulary stays in @acryldev/harness-runtime.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/acryldev/acryl.git",
|
|
9
|
+
"directory": "plugins/coding-capabilities"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://github.com/acryldev/acryl/tree/main/plugins/coding-capabilities#readme",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/acryldev/acryl/issues"
|
|
14
|
+
},
|
|
15
|
+
"type": "module",
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": "^22.19.0 || >=24.0.0"
|
|
18
|
+
},
|
|
19
|
+
"main": "lib/index.js",
|
|
20
|
+
"types": "lib/types/index.d.ts",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./lib/types/index.d.ts",
|
|
24
|
+
"default": "./lib/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./package.json": "./package.json"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@deepseek-ai/cordis-plugin-include": "1.0.9",
|
|
30
|
+
"@acryldev/ui": "0.4.0",
|
|
31
|
+
"@acryldev/agent-control": "0.1.0",
|
|
32
|
+
"@acryldev/app-save": "0.1.0",
|
|
33
|
+
"@acryldev/app-shell": "0.2.1",
|
|
34
|
+
"@acryldev/brand": "0.1.0",
|
|
35
|
+
"@acryldev/command-reply": "0.1.0",
|
|
36
|
+
"@acryldev/launcher-desktop": "0.1.9",
|
|
37
|
+
"@acryldev/mount-anchors": "0.1.0",
|
|
38
|
+
"@acryldev/plugin-admin": "0.2.2",
|
|
39
|
+
"@acryldev/plugin-context": "0.1.2",
|
|
40
|
+
"@acryldev/plugin-hub": "0.1.1",
|
|
41
|
+
"@acryldev/settings": "0.2.1",
|
|
42
|
+
"@acryldev/shortcuts": "0.1.0",
|
|
43
|
+
"@acryldev/sign-in": "0.2.3",
|
|
44
|
+
"@acryldev/support": "0.2.2",
|
|
45
|
+
"@acryldev/system-prompt": "0.3.0",
|
|
46
|
+
"@acryldev/ui-tui": "0.1.0",
|
|
47
|
+
"@acryldev/workspace": "0.2.4",
|
|
48
|
+
"@acryldev/cordis-plugin-market": "0.1.0",
|
|
49
|
+
"@acryldev/brand-client": "0.2.1"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@types/node": "^22.20.0",
|
|
53
|
+
"tsdown": "0.22.2",
|
|
54
|
+
"typescript": "6.0.3",
|
|
55
|
+
"vitest": "4.1.11"
|
|
56
|
+
},
|
|
57
|
+
"files": [
|
|
58
|
+
"lib/**"
|
|
59
|
+
],
|
|
60
|
+
"scripts": {
|
|
61
|
+
"build": "node scripts/clean.mjs && tsdown && tsc -p tsconfig.json --emitDeclarationOnly",
|
|
62
|
+
"typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.tests.json --noEmit",
|
|
63
|
+
"test": "vitest run",
|
|
64
|
+
"check": "pnpm run build && pnpm run typecheck && pnpm run test"
|
|
65
|
+
}
|
|
6
66
|
}
|
package/README.md
DELETED