@ai-primitives-hub/core 0.0.1-alpha.2 → 0.0.1-alpha.3

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.
Files changed (78) hide show
  1. package/dist/domain/bundle/types.d.ts +8 -0
  2. package/dist/domain/bundle/types.d.ts.map +1 -1
  3. package/dist/domain/bundle/types.js +11 -0
  4. package/dist/domain/bundle/types.js.map +1 -1
  5. package/dist/domain/collection/manifest-validator.d.ts +33 -2
  6. package/dist/domain/collection/manifest-validator.d.ts.map +1 -1
  7. package/dist/domain/collection/manifest-validator.js +291 -1
  8. package/dist/domain/collection/manifest-validator.js.map +1 -1
  9. package/dist/domain/collection/types.d.ts +106 -0
  10. package/dist/domain/collection/types.d.ts.map +1 -1
  11. package/dist/domain/collection/types.js +8 -12
  12. package/dist/domain/collection/types.js.map +1 -1
  13. package/dist/domain/collection/validate.d.ts +1 -1
  14. package/dist/domain/collection/validate.d.ts.map +1 -1
  15. package/dist/domain/collection/validate.js +17 -2
  16. package/dist/domain/collection/validate.js.map +1 -1
  17. package/dist/domain/hub/validate.d.ts +22 -14
  18. package/dist/domain/hub/validate.d.ts.map +1 -1
  19. package/dist/domain/hub/validate.js +138 -3
  20. package/dist/domain/hub/validate.js.map +1 -1
  21. package/dist/domain/index.d.ts +2 -0
  22. package/dist/domain/index.d.ts.map +1 -1
  23. package/dist/domain/index.js +2 -0
  24. package/dist/domain/index.js.map +1 -1
  25. package/dist/domain/install/integrity.d.ts +67 -0
  26. package/dist/domain/install/integrity.d.ts.map +1 -0
  27. package/dist/domain/install/integrity.js +98 -0
  28. package/dist/domain/install/integrity.js.map +1 -0
  29. package/dist/domain/install/layout.d.ts +124 -0
  30. package/dist/domain/install/layout.d.ts.map +1 -1
  31. package/dist/domain/install/layout.js +119 -0
  32. package/dist/domain/install/layout.js.map +1 -1
  33. package/dist/domain/install/target.d.ts +19 -3
  34. package/dist/domain/install/target.d.ts.map +1 -1
  35. package/dist/domain/install/target.js +12 -1
  36. package/dist/domain/install/target.js.map +1 -1
  37. package/dist/domain/mcp/index.d.ts +6 -0
  38. package/dist/domain/mcp/index.d.ts.map +1 -0
  39. package/dist/domain/mcp/index.js +22 -0
  40. package/dist/domain/mcp/index.js.map +1 -0
  41. package/dist/domain/mcp/inputs.d.ts +58 -0
  42. package/dist/domain/mcp/inputs.d.ts.map +1 -0
  43. package/dist/domain/mcp/inputs.js +59 -0
  44. package/dist/domain/mcp/inputs.js.map +1 -0
  45. package/dist/domain/primitive/types.d.ts +11 -1
  46. package/dist/domain/primitive/types.d.ts.map +1 -1
  47. package/dist/domain/primitive/types.js +60 -1
  48. package/dist/domain/primitive/types.js.map +1 -1
  49. package/dist/domain/source/types.d.ts +1 -1
  50. package/dist/domain/source/types.d.ts.map +1 -1
  51. package/dist/index.d.ts +10 -0
  52. package/dist/index.d.ts.map +1 -1
  53. package/dist/index.js +13 -1
  54. package/dist/index.js.map +1 -1
  55. package/dist/ports/azure-devops-api.d.ts +19 -0
  56. package/dist/ports/azure-devops-api.d.ts.map +1 -0
  57. package/dist/ports/azure-devops-api.js +10 -0
  58. package/dist/ports/azure-devops-api.js.map +1 -0
  59. package/dist/ports/filesystem.d.ts +11 -0
  60. package/dist/ports/filesystem.d.ts.map +1 -1
  61. package/dist/ports/index.d.ts +3 -0
  62. package/dist/ports/index.d.ts.map +1 -1
  63. package/dist/ports/index.js +3 -0
  64. package/dist/ports/index.js.map +1 -1
  65. package/dist/ports/log-sink.d.ts +18 -0
  66. package/dist/ports/log-sink.d.ts.map +1 -0
  67. package/dist/ports/log-sink.js +14 -0
  68. package/dist/ports/log-sink.js.map +1 -0
  69. package/dist/ports/primitive-index-store.d.ts +29 -0
  70. package/dist/ports/primitive-index-store.d.ts.map +1 -0
  71. package/dist/ports/primitive-index-store.js +3 -0
  72. package/dist/ports/primitive-index-store.js.map +1 -0
  73. package/dist/ports/target-writer.d.ts +40 -0
  74. package/dist/ports/target-writer.d.ts.map +1 -1
  75. package/dist/public/schemas/collection.schema.json +26 -2
  76. package/dist/public/schemas/deployment-manifest.schema.json +254 -0
  77. package/dist/public/schemas/hub-config.schema.json +4 -2
  78. package/package.json +8 -8
@@ -30,6 +30,15 @@ export interface ScopedLayoutDef {
30
30
  * Defaults to `["deployment-manifest.yml", "README.md"]` if absent.
31
31
  */
32
32
  readonly skipPaths?: readonly string[];
33
+ /**
34
+ * MCP config file for this target type **at this scope**.
35
+ *
36
+ * Absent means the IDE has no MCP config file at this scope — it is NOT
37
+ * inherited from the `user` scope. Inheriting would make a repository-scope
38
+ * install write into the user's home config (Windsurf and Copilot CLI have no
39
+ * workspace-level MCP file), so absence must stay meaningful.
40
+ */
41
+ readonly mcpConfig?: McpLayoutConfig;
33
42
  }
34
43
  /**
35
44
  * Per-target-type layout definition. Holds one entry per scope.
@@ -42,6 +51,121 @@ export interface TargetLayoutDef {
42
51
  /** Layout for repository-scoped targets. Falls back to `user` if absent. */
43
52
  readonly repository?: ScopedLayoutDef;
44
53
  }
54
+ /**
55
+ * The JSON key used for MCP server entries in an IDE config file.
56
+ * VS Code Copilot uses `'servers'`; all other known IDEs use `'mcpServers'`.
57
+ */
58
+ export type McpServersKey = 'servers' | 'mcpServers';
59
+ /**
60
+ * MCP config file description for one IDE at one scope.
61
+ * Stored in default-layouts.json alongside the primitive layout definitions
62
+ * so that all IDE-specific path decisions live in one place.
63
+ *
64
+ * Note: there is deliberately no `format` field. Every file is read with the JSONC
65
+ * parser (which accepts plain JSON), and every write currently reformats the file via
66
+ * `JSON.stringify`, so nothing would branch on it. A format field belongs here only
67
+ * once comment-preserving writes exist to consume it.
68
+ */
69
+ export interface McpLayoutConfig {
70
+ /**
71
+ * Full path template to the MCP config file, e.g.
72
+ * `"${HOME}/.kiro/settings/mcp.json"` or `"${workspaceRoot}/.vscode/mcp.json"`.
73
+ * Tokens are resolved by `resolvePathTokens`.
74
+ */
75
+ readonly path: string;
76
+ /**
77
+ * JSON root key used for MCP server entries.
78
+ * VS Code Copilot uses `'servers'`; all other known IDEs use `'mcpServers'`.
79
+ */
80
+ readonly serversKey: McpServersKey;
81
+ /**
82
+ * Whether the host resolves `${input:id}` placeholders against an `inputs` array,
83
+ * prompting the user for the value. This is a VS Code Copilot feature.
84
+ *
85
+ * Defaults to `false` when absent, because only VS Code is known to support it.
86
+ *
87
+ * A host that does not support inputs receives the placeholder as a literal string,
88
+ * so the server is written successfully and then fails at startup. Callers must
89
+ * therefore check this before installing a server that references an input, rather
90
+ * than relying on the write succeeding.
91
+ */
92
+ readonly supportsInputs?: boolean;
93
+ }
94
+ /**
95
+ * Token used in path templates for the user home directory.
96
+ */
97
+ export declare const HOME_TOKEN = "${HOME}";
98
+ /**
99
+ * Token used in path templates for the workspace root.
100
+ * Resolved from `target.rootPath ?? target.path` at install time.
101
+ */
102
+ export declare const WORKSPACE_ROOT_TOKEN = "${workspaceRoot}";
103
+ /**
104
+ * Token used in path templates for the VS Code user data `User` directory.
105
+ *
106
+ * VS Code is the only supported host whose config directory is neither
107
+ * HOME-relative nor identical across platforms: it follows each OS's app-data
108
+ * convention (`%APPDATA%\Code\User`, `~/Library/Application Support/Code/User`,
109
+ * `~/.config/Code/User`), the `Code` segment varies by variant (Insiders,
110
+ * Cursor, Windsurf, Kiro), and portable installs, `--user-data-dir` and remote
111
+ * sessions move it entirely. The delivery layer therefore resolves this token
112
+ * from the running host rather than from a static template.
113
+ */
114
+ export declare const VSCODE_USER_DIR_TOKEN = "${vscodeUserDir}";
115
+ /**
116
+ * Thrown when a path template contains a token that no caller supplied.
117
+ * Failing loudly prevents an unresolved token reaching the filesystem, where it
118
+ * would silently create a directory literally named `${...}`.
119
+ */
120
+ export declare class UnresolvedPathTokenError extends Error {
121
+ /** The token that could not be resolved, including delimiters. */
122
+ readonly token: string;
123
+ /** The template the token appeared in. */
124
+ readonly template: string;
125
+ constructor(
126
+ /** The token that could not be resolved, including delimiters. */
127
+ token: string,
128
+ /** The template the token appeared in. */
129
+ template: string);
130
+ }
131
+ /**
132
+ * Expand `${VAR}` tokens and leading `~` in a path template.
133
+ * Pure: no IO. Converged from `expandPath` in `file-tree-writer` so both
134
+ * MCP path resolution and primitive layout resolution use the same logic.
135
+ * @param template - Path string possibly containing `${VAR}` or `~`.
136
+ * @param env - Environment variable map (e.g. `process.env`).
137
+ * @returns Expanded path with all tokens replaced.
138
+ */
139
+ export declare function expandPath(template: string, env: Record<string, string | undefined>): string;
140
+ /**
141
+ * Resolve every `${token}` in a path template against an explicit token map.
142
+ *
143
+ * Unlike `expandPath`, this accepts tokens of any casing (so `${HOME}`,
144
+ * `${workspaceRoot}` and `${vscodeUserDir}` all work through one code path) and
145
+ * throws `UnresolvedPathTokenError` on a token the caller did not supply,
146
+ * rather than substituting an empty string or leaving the token in place.
147
+ *
148
+ * A token whose value is an empty string is treated as unresolved: an empty
149
+ * `${HOME}` would silently turn `${HOME}/.kiro/mcp.json` into an absolute
150
+ * `/.kiro/mcp.json`, writing outside the user's home directory.
151
+ *
152
+ * Pure: no IO.
153
+ * @param template - Path template, e.g. `"${HOME}/.kiro/settings/mcp.json"`.
154
+ * @param tokens - Token name (without delimiters) to replacement value.
155
+ * @returns The template with every token replaced.
156
+ * @throws {UnresolvedPathTokenError} When a token is missing or empty.
157
+ */
158
+ export declare function resolvePathTokens(template: string, tokens: Readonly<Record<string, string | undefined>>): string;
159
+ /**
160
+ * Resolve the path of an MCP config file for one scope.
161
+ * Thin wrapper over `resolvePathTokens` that names the intent at call sites.
162
+ * Pure: no IO.
163
+ * @param config - MCP layout config for the target IDE at one scope.
164
+ * @param tokens - Token name to replacement value.
165
+ * @returns Fully resolved MCP config file path.
166
+ * @throws {UnresolvedPathTokenError} When the template needs a token that was not supplied.
167
+ */
168
+ export declare function resolveMcpConfigPath(config: McpLayoutConfig, tokens: Readonly<Record<string, string | undefined>>): string;
45
169
  /**
46
170
  * Root shape of an `ai-primitives-hub-layouts.yml` (or `.json`) config file.
47
171
  * Keyed by target type identifier (e.g. `"vscode"`, `"kiro"`).
@@ -1 +1 @@
1
- {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../src/domain/install/layout.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACtD;;;OAGG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACxC;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,sCAAsC;IACtC,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAC;IAC/B,4EAA4E;IAC5E,QAAQ,CAAC,UAAU,CAAC,EAAE,eAAe,CAAC;CACvC;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC;CAC7D;AAED;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEhD;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC3B,qEAAqE;IACrE,OAAO,EAAE,MAAM,CAAC;IAChB,iEAAiE;IACjE,UAAU,EAAE,UAAU,CAAC;IACvB,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,GAAG,EAAE,OAAO,GAAG,mBAAmB,CAoB7E"}
1
+ {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../src/domain/install/layout.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,QAAQ,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C,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG,MAAM,CAO5F;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,GACnD,MAAM,CAQR;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,eAAe,EACvB,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,GACnD,MAAM,CAER;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC;CAC7D;AAED;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEhD;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC3B,qEAAqE;IACrE,OAAO,EAAE,MAAM,CAAC;IAChB,iEAAiE;IACjE,UAAU,EAAE,UAAU,CAAC;IACvB,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,GAAG,EAAE,OAAO,GAAG,mBAAmB,CAoB7E"}
@@ -11,7 +11,107 @@
11
11
  * @module domain/install/layout
12
12
  */
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.UnresolvedPathTokenError = exports.VSCODE_USER_DIR_TOKEN = exports.WORKSPACE_ROOT_TOKEN = exports.HOME_TOKEN = void 0;
15
+ exports.expandPath = expandPath;
16
+ exports.resolvePathTokens = resolvePathTokens;
17
+ exports.resolveMcpConfigPath = resolveMcpConfigPath;
14
18
  exports.validateTargetLayoutsConfig = validateTargetLayoutsConfig;
19
+ /**
20
+ * Token used in path templates for the user home directory.
21
+ */
22
+ exports.HOME_TOKEN = '${HOME}';
23
+ /**
24
+ * Token used in path templates for the workspace root.
25
+ * Resolved from `target.rootPath ?? target.path` at install time.
26
+ */
27
+ exports.WORKSPACE_ROOT_TOKEN = '${workspaceRoot}';
28
+ /**
29
+ * Token used in path templates for the VS Code user data `User` directory.
30
+ *
31
+ * VS Code is the only supported host whose config directory is neither
32
+ * HOME-relative nor identical across platforms: it follows each OS's app-data
33
+ * convention (`%APPDATA%\Code\User`, `~/Library/Application Support/Code/User`,
34
+ * `~/.config/Code/User`), the `Code` segment varies by variant (Insiders,
35
+ * Cursor, Windsurf, Kiro), and portable installs, `--user-data-dir` and remote
36
+ * sessions move it entirely. The delivery layer therefore resolves this token
37
+ * from the running host rather than from a static template.
38
+ */
39
+ exports.VSCODE_USER_DIR_TOKEN = '${vscodeUserDir}';
40
+ /**
41
+ * Thrown when a path template contains a token that no caller supplied.
42
+ * Failing loudly prevents an unresolved token reaching the filesystem, where it
43
+ * would silently create a directory literally named `${...}`.
44
+ */
45
+ class UnresolvedPathTokenError extends Error {
46
+ token;
47
+ template;
48
+ constructor(
49
+ /** The token that could not be resolved, including delimiters. */
50
+ token,
51
+ /** The template the token appeared in. */
52
+ template) {
53
+ super(`Unresolved token "${token}" in path template "${template}"`);
54
+ this.token = token;
55
+ this.template = template;
56
+ this.name = 'UnresolvedPathTokenError';
57
+ }
58
+ }
59
+ exports.UnresolvedPathTokenError = UnresolvedPathTokenError;
60
+ /**
61
+ * Expand `${VAR}` tokens and leading `~` in a path template.
62
+ * Pure: no IO. Converged from `expandPath` in `file-tree-writer` so both
63
+ * MCP path resolution and primitive layout resolution use the same logic.
64
+ * @param template - Path string possibly containing `${VAR}` or `~`.
65
+ * @param env - Environment variable map (e.g. `process.env`).
66
+ * @returns Expanded path with all tokens replaced.
67
+ */
68
+ function expandPath(template, env) {
69
+ let out = template.replaceAll(/\$\{([A-Z0-9_]+)\}/g, (_m, name) => env[name] ?? '');
70
+ if (out.startsWith('~')) {
71
+ const home = env.HOME ?? env.USERPROFILE ?? '';
72
+ out = home + out.slice(1);
73
+ }
74
+ return out;
75
+ }
76
+ /**
77
+ * Resolve every `${token}` in a path template against an explicit token map.
78
+ *
79
+ * Unlike `expandPath`, this accepts tokens of any casing (so `${HOME}`,
80
+ * `${workspaceRoot}` and `${vscodeUserDir}` all work through one code path) and
81
+ * throws `UnresolvedPathTokenError` on a token the caller did not supply,
82
+ * rather than substituting an empty string or leaving the token in place.
83
+ *
84
+ * A token whose value is an empty string is treated as unresolved: an empty
85
+ * `${HOME}` would silently turn `${HOME}/.kiro/mcp.json` into an absolute
86
+ * `/.kiro/mcp.json`, writing outside the user's home directory.
87
+ *
88
+ * Pure: no IO.
89
+ * @param template - Path template, e.g. `"${HOME}/.kiro/settings/mcp.json"`.
90
+ * @param tokens - Token name (without delimiters) to replacement value.
91
+ * @returns The template with every token replaced.
92
+ * @throws {UnresolvedPathTokenError} When a token is missing or empty.
93
+ */
94
+ function resolvePathTokens(template, tokens) {
95
+ return template.replaceAll(/\$\{([^}]+)\}/g, (_match, name) => {
96
+ const value = tokens[name];
97
+ if (value === undefined || value === '') {
98
+ throw new UnresolvedPathTokenError(`\${${name}}`, template);
99
+ }
100
+ return value;
101
+ });
102
+ }
103
+ /**
104
+ * Resolve the path of an MCP config file for one scope.
105
+ * Thin wrapper over `resolvePathTokens` that names the intent at call sites.
106
+ * Pure: no IO.
107
+ * @param config - MCP layout config for the target IDE at one scope.
108
+ * @param tokens - Token name to replacement value.
109
+ * @returns Fully resolved MCP config file path.
110
+ * @throws {UnresolvedPathTokenError} When the template needs a token that was not supplied.
111
+ */
112
+ function resolveMcpConfigPath(config, tokens) {
113
+ return resolvePathTokens(config.path, tokens);
114
+ }
15
115
  /**
16
116
  * Validate an unknown value as a `TargetLayoutsConfig`.
17
117
  * Returns the typed config or throws with a descriptive message.
@@ -66,5 +166,24 @@ function validateScopedLayoutDef(raw, path) {
66
166
  }
67
167
  }
68
168
  }
169
+ if (obj.mcpConfig !== undefined) {
170
+ validateMcpLayoutConfig(obj.mcpConfig, `${path}.mcpConfig`);
171
+ }
172
+ }
173
+ const MCP_SERVERS_KEYS = new Set(['servers', 'mcpServers']);
174
+ function validateMcpLayoutConfig(raw, path) {
175
+ if (raw === null || typeof raw !== 'object') {
176
+ throw new TypeError(`layout config: "${path}" must be an object`);
177
+ }
178
+ const obj = raw;
179
+ if (typeof obj.path !== 'string' || obj.path.length === 0) {
180
+ throw new TypeError(`layout config: "${path}.path" must be a non-empty string`);
181
+ }
182
+ if (typeof obj.serversKey !== 'string' || !MCP_SERVERS_KEYS.has(obj.serversKey)) {
183
+ throw new TypeError(`layout config: "${path}.serversKey" must be one of ${[...MCP_SERVERS_KEYS].join(', ')}`);
184
+ }
185
+ if (obj.supportsInputs !== undefined && typeof obj.supportsInputs !== 'boolean') {
186
+ throw new TypeError(`layout config: "${path}.supportsInputs" must be a boolean`);
187
+ }
69
188
  }
70
189
  //# sourceMappingURL=layout.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"layout.js","sourceRoot":"","sources":["../../../src/domain/install/layout.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;AA8EH,kEAoBC;AA3BD;;;;;;GAMG;AACH,SAAgB,2BAA2B,CAAC,GAAY;IACtD,IAAI,GAAG,KAAK,IAAI,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;QAC5C,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;IACrD,CAAC;IACD,MAAM,GAAG,GAAG,GAA8B,CAAC;IAC3C,IAAI,GAAG,CAAC,OAAO,KAAK,IAAI,IAAI,OAAO,GAAG,CAAC,OAAO,KAAK,QAAQ,EAAE,CAAC;QAC5D,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;IAChE,CAAC;IACD,MAAM,OAAO,GAAG,GAAG,CAAC,OAAkC,CAAC;IACvD,KAAK,MAAM,CAAC,IAA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ACD,MAAM,GAAG,GAAG,GAA8B,CAAC;IAC3C,IAAI,OAAO,GAAG,CAAC,IAAI,KAAK,QAAQ,IAAI,GAAG,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC1D,MAAM,IAAI,SAAS,CAAC,mBAAmB,IAAI,mCAAmC,CAAC,CAAC;IAClF,CAAC;IACD,IAAI,OAAO,GAAG,CAAC,UAAU,KAAK,QAAQ,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC;QAChF,MAAM,IAAI,SAAS,CACjB,mBAAmB,IAAI,+BAA+B,CAAC,GAAG,gBAAgB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CACzF,CAAC;IACJ,CAAC;IACD,IAAI,GAAG,CAAC,cAAc,KAAK,SAAS,IAAI,OAAO,GAAG,CAAC,cAAc,KAAK,SAAS,EAAE,CAAC;QAChF,MAAM,IAAI,SAAS,CAAC,mBAAmB,IAAI,oCAAoC,CAAC,CAAC;IACnF,CAAC;AACH,CAAC"}
@@ -15,11 +15,12 @@
15
15
  * consumes this type (`app`, Phase 4), not a type-system constraint here.
16
16
  * @module domain/install/target
17
17
  */
18
+ import type { PrimitiveKind } from '../primitive/types';
18
19
  import type { InstallationScope, RepositoryCommitMode } from './types';
19
20
  /**
20
21
  * All target types known to `ai-primitives-hub-next`.
21
22
  */
22
- export declare const TARGET_TYPES: readonly ["vscode", "vscode-insiders", "copilot-cli", "kiro", "windsurf", "claude-code"];
23
+ export declare const TARGET_TYPES: readonly ["vscode", "vscode-insiders", "copilot-cli", "kiro", "kiro-cli", "windsurf", "claude-code", "cursor", "opencode", "devin", "devin-cli"];
23
24
  /**
24
25
  * Target type discriminant.
25
26
  */
@@ -39,7 +40,7 @@ export interface TargetBase {
39
40
  /** Override the platform-default config path for this target. */
40
41
  path?: string;
41
42
  /** Restrict which primitive kinds this target accepts, e.g. `['prompt', 'agent']`. */
42
- allowedKinds?: string[];
43
+ allowedKinds?: PrimitiveKind[];
43
44
  }
44
45
  export interface VsCodeTarget extends TargetBase {
45
46
  type: 'vscode' | 'vscode-insiders';
@@ -50,16 +51,31 @@ export interface CopilotCliTarget extends TargetBase {
50
51
  export interface KiroTarget extends TargetBase {
51
52
  type: 'kiro';
52
53
  }
54
+ export interface KiroCliTarget extends TargetBase {
55
+ type: 'kiro-cli';
56
+ }
53
57
  export interface WindsurfTarget extends TargetBase {
54
58
  type: 'windsurf';
55
59
  }
56
60
  export interface ClaudeCodeTarget extends TargetBase {
57
61
  type: 'claude-code';
58
62
  }
63
+ export interface CursorTarget extends TargetBase {
64
+ type: 'cursor';
65
+ }
66
+ export interface OpencodeTarget extends TargetBase {
67
+ type: 'opencode';
68
+ }
69
+ export interface DevinTarget extends TargetBase {
70
+ type: 'devin';
71
+ }
72
+ export interface DevinCliTarget extends TargetBase {
73
+ type: 'devin-cli';
74
+ }
59
75
  /**
60
76
  * Tagged union of every target type.
61
77
  */
62
- export type Target = VsCodeTarget | CopilotCliTarget | KiroTarget | WindsurfTarget | ClaudeCodeTarget;
78
+ export type Target = VsCodeTarget | CopilotCliTarget | KiroTarget | KiroCliTarget | WindsurfTarget | ClaudeCodeTarget | CursorTarget | OpencodeTarget | DevinTarget | DevinCliTarget;
63
79
  /**
64
80
  * Type guard for `Target`. Pure; no IO — safe to use directly against
65
81
  * parsed YAML/JSON config nodes.
@@ -1 +1 @@
1
- {"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../src/domain/install/target.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,KAAK,EACV,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,eAAO,MAAM,YAAY,0FAOf,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,iE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BAAgB,GAChB,YAAY,GACZ,cAAc,GACd,WAAW,GACX,cAAc,CAAC;AAKnB;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAwBxD"}
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TARGET_TYPES = void 0;
4
4
  exports.isTarget = isTarget;
5
+ const types_1 = require("../primitive/types");
5
6
  /**
6
7
  * All target types known to `ai-primitives-hub-next`.
7
8
  */
@@ -10,8 +11,13 @@ exports.TARGET_TYPES = [
10
11
  'vscode-insiders',
11
12
  'copilot-cli',
12
13
  'kiro',
14
+ 'kiro-cli',
13
15
  'windsurf',
14
- 'claude-code'
16
+ 'claude-code',
17
+ 'cursor',
18
+ 'opencode',
19
+ 'devin',
20
+ 'devin-cli'
15
21
  ];
16
22
  const INSTALLATION_SCOPES = ['user', 'workspace', 'repository'];
17
23
  const COMMIT_MODES = ['commit', 'local-only'];
@@ -38,6 +44,11 @@ function isTarget(value) {
38
44
  if (candidate.commitMode !== undefined && !COMMIT_MODES.includes(candidate.commitMode)) {
39
45
  return false;
40
46
  }
47
+ if (candidate.allowedKinds !== undefined
48
+ && (!Array.isArray(candidate.allowedKinds)
49
+ || candidate.allowedKinds.some((kind) => !(0, types_1.isPrimitiveKind)(kind)))) {
50
+ return false;
51
+ }
41
52
  return true;
42
53
  }
43
54
  //# sourceMappingURL=target.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"target.js","sourceRoot":"","sources":["../../../src/domain/install/target.ts"],"names":[],"mappings":";;;AAgGA,4BAmBC;AA7FD;;GAEG;AACU,QAAA,YAAY,GAAG;IAC1B,QAAQ;IACR,iBAAiB;IACjB,aAAa;IACb,MAAM;IACN,UAAU;IACV,aAAa;CACL,CAAC;AAuDX,MAAM,mBAAmB,GAAsB,CAAC,MAAM,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC;AACnF,MAAM,YAAY,GAAsB,C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.
3
+ * @module domain/mcp
4
+ */
5
+ export * from './inputs';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domain/mcp/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,UAAU,CAAC"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /**
18
+ * MCP (Model Context Protocol) domain types and pure helpers.
19
+ * @module domain/mcp
20
+ */
21
+ __exportStar(require("./inputs"), exports);
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domain/mcp/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,2CAAyB"}
@@ -0,0 +1,58 @@
1
+ /**
2
+ * MCP input reference scanning — pure domain logic.
3
+ *
4
+ * `${input:id}` is a host-specific feature (currently VS Code Copilot): an
5
+ * `inputs` array at the root of an MCP config file declares the values the
6
+ * IDE should prompt for, and each server config can reference them via
7
+ * `${input:id}` placeholders.
8
+ *
9
+ * This module provides only the generic scanner and minimal types needed by
10
+ * use-case orchestration in `@ai-primitives-hub/app`. The full
11
+ * IDE-specific input definition interface (`McpInputDefinition`) lives in
12
+ * the delivery layer (`apps/vscode-extension/src/types/mcp.ts`).
13
+ *
14
+ * Pure: no IO, no side effects, no framework imports.
15
+ * @module domain/mcp/inputs
16
+ */
17
+ /**
18
+ * Minimal shape for an input declaration — just enough for merge/derive
19
+ * logic to identify and deduplicate entries by `id`.
20
+ *
21
+ * The full schema (password, options, default, etc.) is delivery-layer
22
+ * specific and defined in the extension's type file.
23
+ */
24
+ export interface McpInputDeclaration {
25
+ /** Unique identifier referenced by `${input:<id>}` placeholders. */
26
+ id: string;
27
+ /** Discriminator for the prompt type. */
28
+ type: string;
29
+ /** Human-readable label shown in the IDE prompt. */
30
+ description?: string;
31
+ }
32
+ /**
33
+ * A minimal server config shape sufficient for input-reference scanning.
34
+ * The full per-IDE server shapes live in the extension layer; this interface
35
+ * only captures the fields that may carry `${input:id}` tokens.
36
+ */
37
+ export interface McpServerInputView {
38
+ /** stdio server command string */
39
+ command?: string;
40
+ /** stdio server arguments */
41
+ args?: string[];
42
+ /** stdio server environment variables */
43
+ env?: Record<string, string>;
44
+ /** remote server URL */
45
+ url?: string;
46
+ /** remote server request headers (common source of `${input:id}` tokens) */
47
+ headers?: Record<string, string>;
48
+ }
49
+ /**
50
+ * Collect all `${input:id}` references from a map of server configurations.
51
+ *
52
+ * Scans command, args, env values, URL, and header values for every server.
53
+ * Pure: no IO.
54
+ * @param servers - Server config map (prefixed server name → config).
55
+ * @returns Set of referenced input ids (without the `${input:…}` delimiters).
56
+ */
57
+ export declare function collectInputReferences(servers: Record<string, McpServerInputView>): Set<string>;
58
+ //# sourceMappingURL=inputs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../../src/domain/mcp/inputs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;GAMG;AACH,MAAM,WAAW,mBAAmB;IAClC,oEAAoE;IACpE,EAAE,EAAE,MAAM,CAAC;IACX,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,oDAAoD;IACpD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC,kCAAkC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,6BAA6B;IAC7B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,yCAAyC;IACzC,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,wBAAwB;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,4EAA4E;IAC5E,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,GAC1C,GAAG,CAAC,MAAM,CAAC,CAiCb"}
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /**
3
+ * MCP input reference scanning — pure domain logic.
4
+ *
5
+ * `${input:id}` is a host-specific feature (currently VS Code Copilot): an
6
+ * `inputs` array at the root of an MCP config file declares the values the
7
+ * IDE should prompt for, and each server config can reference them via
8
+ * `${input:id}` placeholders.
9
+ *
10
+ * This module provides only the generic scanner and minimal types needed by
11
+ * use-case orchestration in `@ai-primitives-hub/app`. The full
12
+ * IDE-specific input definition interface (`McpInputDefinition`) lives in
13
+ * the delivery layer (`apps/vscode-extension/src/types/mcp.ts`).
14
+ *
15
+ * Pure: no IO, no side effects, no framework imports.
16
+ * @module domain/mcp/inputs
17
+ */
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.collectInputReferences = collectInputReferences;
20
+ /**
21
+ * Collect all `${input:id}` references from a map of server configurations.
22
+ *
23
+ * Scans command, args, env values, URL, and header values for every server.
24
+ * Pure: no IO.
25
+ * @param servers - Server config map (prefixed server name → config).
26
+ * @returns Set of referenced input ids (without the `${input:…}` delimiters).
27
+ */
28
+ function collectInputReferences(servers) {
29
+ const inputPattern = /\$\{input:([^}]+)\}/g;
30
+ const referenced = new Set();
31
+ const scan = (value) => {
32
+ if (!value) {
33
+ return;
34
+ }
35
+ let match;
36
+ while ((match = inputPattern.exec(value)) !== null) {
37
+ referenced.add(match[1]);
38
+ }
39
+ };
40
+ for (const config of Object.values(servers)) {
41
+ scan(config.url);
42
+ scan(config.command);
43
+ config.args?.forEach((v) => {
44
+ scan(v);
45
+ });
46
+ if (config.env) {
47
+ Object.values(config.env).forEach((v) => {
48
+ scan(v);
49
+ });
50
+ }
51
+ if (config.headers) {
52
+ Object.values(config.headers).forEach((v) => {
53
+ scan(v);
54
+ });
55
+ }
56
+ }
57
+ return referenced;
58
+ }
59
+ //# sourceMappingURL=inputs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inputs.js","sourceRoot":"","sources":["../../../src/domain/mcp/inputs.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;AA4CH,wDAmCC;AA3CD;;;;;;;GAOG;AACH,SAAgB,sBAAsB,CACpC,OAA2C;IAE3C,MAAM,YAAY,GAAG,sBAAsB,CAAC;IAC5C,MAAM,UAAU,GAAG,IAAI,GAAG,EAAU,CAAC;IAErC,MAAM,IAAI,GAAG,CAAC,KAAyB,EAAQ,EAAE;QAC/C,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,OAAO;QACT,CAAC;QACD,IAAI,KAA6B,CAAC;QAClC,OAAO,CAAC,KAAK,GAAG,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC;YACnD,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QAC3B,CAAC;IACH,CAAC,CAAC;IAEF,KAAK,MAAM,MAAM,IAAI,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC;QAC5C,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACjB,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACrB,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YACzB,IAAI,CAAC,CAAC,CAAC,CAAC;QACV,CAAC,CAAC,CAAC;QACH,IAAI,MAAM,CAAC,GAAG,EAAE,CAAC;YACf,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;gBACtC,IAAI,CAAC,CAAC,CAAC,CAAC;YACV,CAAC,CAAC,CAAC;QACL,CAAC;QACD,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;YACnB,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;gBAC1C,IAAI,CAAC,CAAC,CAAC,CAAC;YACV,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,OAAO,UAAU,CAAC;AACpB,CAAC"}
@@ -21,13 +21,21 @@
21
21
  * @module domain/primitive/types
22
22
  */
23
23
  import type { BundleRef } from '../bundle/types';
24
- export declare const PRIMITIVE_KINDS: readonly ["prompt", "instruction", "chat-mode", "agent", "skill", "plugin", "hook", "mcp-server"];
24
+ export declare const PRIMITIVE_KINDS: readonly ["prompt", "instruction", "chat-mode", "agent", "skill", "plugin", "hook", "mcp-server", "steering", "spec", "command", "rule", "output-style", "tool", "power", "knowledge", "playbook"];
25
25
  export type PrimitiveKind = typeof PRIMITIVE_KINDS[number];
26
26
  /**
27
27
  * Type guard for `PrimitiveKind`.
28
28
  * @param value - Candidate value.
29
29
  */
30
30
  export declare function isPrimitiveKind(value: unknown): value is PrimitiveKind;
31
+ /**
32
+ * Translate legacy route names and manifest aliases into canonical primitive
33
+ * kinds. Persisted target configuration may contain route names from older
34
+ * releases, but all runtime comparisons use the semantic vocabulary above.
35
+ * @param value - Canonical kind or legacy route/manifest alias.
36
+ * @returns Canonical primitive kind, or null for an unknown value.
37
+ */
38
+ export declare function normalizePrimitiveKind(value: unknown): PrimitiveKind | null;
31
39
  /**
32
40
  * A single harvested, searchable primitive.
33
41
  */
@@ -51,6 +59,8 @@ export interface Primitive {
51
59
  model?: string;
52
60
  /** Short excerpt of the primitive's body, for search result previews. */
53
61
  bodyPreview: string;
62
+ /** Optional longer extractive summary of the primitive's body (~80 words). */
63
+ bodySummary?: string;
54
64
  /** Content hash, for change detection between harvests. */
55
65
  contentHash: string;
56
66
  rating?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/domain/primitive/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,KAAK,EACV,SAAS,EACV,MAAM,iBAAiB,CAAC;AAEzB,eAAO,MAAM,eAAe,mGASlB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AAE3D;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,aAAa,CAEtE;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,4EAA4E;IAC5E,EAAE,EAAE,MAAM,CAAC;IACX,oDAAoD;IACpD,MAAM,EAAE,SAAS,CAAC;IAClB,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,iEAAiE;IACjE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,+CAA+C;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yEAAyE;IACzE,WAAW,EAAE,MAAM,CAA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