@skastr0/prism-darwin-x64 0.4.1 → 0.4.2
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/bin/prism +0 -0
- package/package.json +2 -3
- package/types/content-hash.d.ts +0 -14
- package/types/lowerer-capabilities.d.ts +27 -73
- package/types/types.d.ts +1 -10
package/bin/prism
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skastr0/prism-darwin-x64",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Prism standalone CLI binary for macOS x64.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,10 +17,9 @@
|
|
|
17
17
|
"access": "public"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@modelcontextprotocol/sdk": "1.29.0",
|
|
21
20
|
"@opencode-ai/plugin": "^1.15.13",
|
|
22
21
|
"@opentui/core-darwin-x64": "0.4.1",
|
|
23
|
-
"@skastr0/prism-sdk": "0.4.
|
|
22
|
+
"@skastr0/prism-sdk": "0.4.2",
|
|
24
23
|
"effect": "^3.21.1",
|
|
25
24
|
"typescript": "^5.8.3",
|
|
26
25
|
"zod": "4.4.3"
|
package/types/content-hash.d.ts
CHANGED
|
@@ -1,15 +1 @@
|
|
|
1
1
|
export declare const computeContentHash: (content: string | Uint8Array) => string;
|
|
2
|
-
/**
|
|
3
|
-
* Normalizes the dynamic `mcpServers[*].url` authority (host:port) out of a
|
|
4
|
-
* generated MCP HTTP config before hashing, so an owner daemon rebinding to a
|
|
5
|
-
* different ephemeral port is never mistaken for content drift. Detection is
|
|
6
|
-
* purely structural (`{ mcpServers: { url: "http(s)://..." } }`); content that
|
|
7
|
-
* does not match this shape is returned unchanged.
|
|
8
|
-
*/
|
|
9
|
-
export declare const normalizeMcpHttpConfigForHash: (content: string) => string;
|
|
10
|
-
/**
|
|
11
|
-
* Content hash for a generated MCP HTTP config owned file. Equal for two
|
|
12
|
-
* renders that differ only in the dynamic port/url authority; still differs
|
|
13
|
-
* for a genuine content change (e.g. an added/removed server entry).
|
|
14
|
-
*/
|
|
15
|
-
export declare const computeMcpHttpConfigContentHash: (content: string) => string;
|
|
@@ -10,9 +10,9 @@ export interface CompileTargetCapabilities {
|
|
|
10
10
|
readonly hooks: CompileSurfaceSupport;
|
|
11
11
|
readonly skillPermissions: SkillPermissionSupport;
|
|
12
12
|
}
|
|
13
|
-
export declare const LOWERER_SURFACE_IDS: readonly ["pluginBundle", "rules", "commands", "agents", "skills", "generatedTools", "hooks", "
|
|
13
|
+
export declare const LOWERER_SURFACE_IDS: readonly ["pluginBundle", "rules", "commands", "agents", "skills", "generatedTools", "hooks", "agentConfig"];
|
|
14
14
|
export type LowererSurfaceId = (typeof LOWERER_SURFACE_IDS)[number];
|
|
15
|
-
export declare const LOWERER_SURFACE_KINDS: readonly ["native-plugin-api", "native-plugin-bundle", "
|
|
15
|
+
export declare const LOWERER_SURFACE_KINDS: readonly ["native-plugin-api", "native-plugin-bundle", "markdown-file", "direct-file", "config-patch", "unsupported"];
|
|
16
16
|
export type LowererSurfaceKind = (typeof LOWERER_SURFACE_KINDS)[number];
|
|
17
17
|
export type HarnessFamily = "coding-harness" | "claw-harness";
|
|
18
18
|
export interface LowererSurfaceCapability {
|
|
@@ -68,20 +68,15 @@ export declare const LOWERER_CAPABILITIES: {
|
|
|
68
68
|
readonly summary: "Compile bundles targeted skills and orbit skills as Agent Skills.";
|
|
69
69
|
};
|
|
70
70
|
readonly generatedTools: {
|
|
71
|
-
readonly kind: "
|
|
72
|
-
readonly path: "<prism-home>/runtime/
|
|
73
|
-
readonly summary: "Canonical tools lower to the
|
|
71
|
+
readonly kind: "direct-file";
|
|
72
|
+
readonly path: "<prism-home>/runtime/tools/<plugin>/runtime.mjs";
|
|
73
|
+
readonly summary: "Canonical tools lower to the CLI runtime; agents invoke via `prism tools invoke`.";
|
|
74
74
|
};
|
|
75
75
|
readonly hooks: {
|
|
76
76
|
readonly kind: "native-plugin-bundle";
|
|
77
77
|
readonly path: "<generated-plugin>/hooks/hooks.json";
|
|
78
78
|
readonly summary: "Hooks are bundled in Claude Code's plugin hook layout.";
|
|
79
79
|
};
|
|
80
|
-
readonly mcpConfig: {
|
|
81
|
-
readonly kind: "native-plugin-bundle";
|
|
82
|
-
readonly path: "<generated-plugin>/.mcp.json";
|
|
83
|
-
readonly summary: "MCP config is plugin-local, not a global settings patch.";
|
|
84
|
-
};
|
|
85
80
|
readonly agentConfig: LowererSurfaceCapability;
|
|
86
81
|
};
|
|
87
82
|
};
|
|
@@ -126,7 +121,6 @@ export declare const LOWERER_CAPABILITIES: {
|
|
|
126
121
|
readonly path: "<generated-plugin>/dist/server.mjs";
|
|
127
122
|
readonly summary: "Hooks lower through the OpenCode plugin API.";
|
|
128
123
|
};
|
|
129
|
-
readonly mcpConfig: LowererSurfaceCapability;
|
|
130
124
|
readonly agentConfig: {
|
|
131
125
|
readonly kind: "config-patch";
|
|
132
126
|
readonly path: "<opencode-root>/opencode.json#agent.<name>";
|
|
@@ -151,7 +145,6 @@ export declare const LOWERER_CAPABILITIES: {
|
|
|
151
145
|
};
|
|
152
146
|
readonly generatedTools: LowererSurfaceCapability;
|
|
153
147
|
readonly hooks: LowererSurfaceCapability;
|
|
154
|
-
readonly mcpConfig: LowererSurfaceCapability;
|
|
155
148
|
readonly agentConfig: LowererSurfaceCapability;
|
|
156
149
|
};
|
|
157
150
|
readonly notes: readonly ["OpenClaw remains Prism skills-only for now."];
|
|
@@ -172,20 +165,15 @@ export declare const LOWERER_CAPABILITIES: {
|
|
|
172
165
|
readonly summary: "Install and compile write Hermes skill folders.";
|
|
173
166
|
};
|
|
174
167
|
readonly generatedTools: {
|
|
175
|
-
readonly kind: "
|
|
176
|
-
readonly path: "<prism-home>/runtime/
|
|
177
|
-
readonly summary: "Canonical tools lower to the
|
|
168
|
+
readonly kind: "direct-file";
|
|
169
|
+
readonly path: "<prism-home>/runtime/tools/<plugin>/runtime.mjs";
|
|
170
|
+
readonly summary: "Canonical tools lower to the CLI runtime; agents invoke via `prism tools invoke`.";
|
|
178
171
|
};
|
|
179
172
|
readonly hooks: {
|
|
180
173
|
readonly kind: "config-patch";
|
|
181
174
|
readonly path: "<hermes-root>/config.yaml#hooks";
|
|
182
175
|
readonly summary: "Compile patches managed Hermes hook entries and wrapper files.";
|
|
183
176
|
};
|
|
184
|
-
readonly mcpConfig: {
|
|
185
|
-
readonly kind: "config-patch";
|
|
186
|
-
readonly path: "<hermes-root>/config.yaml#mcp_servers";
|
|
187
|
-
readonly summary: "Compile patches the Hermes MCP server map.";
|
|
188
|
-
};
|
|
189
177
|
readonly agentConfig: LowererSurfaceCapability;
|
|
190
178
|
};
|
|
191
179
|
};
|
|
@@ -217,20 +205,15 @@ export declare const LOWERER_CAPABILITIES: {
|
|
|
217
205
|
readonly summary: "Install and compile write Agent Skill folders.";
|
|
218
206
|
};
|
|
219
207
|
readonly generatedTools: {
|
|
220
|
-
readonly kind: "
|
|
221
|
-
readonly path: "<prism-home>/runtime/
|
|
222
|
-
readonly summary: "Canonical tools lower to the
|
|
208
|
+
readonly kind: "direct-file";
|
|
209
|
+
readonly path: "<prism-home>/runtime/tools/<plugin>/runtime.mjs";
|
|
210
|
+
readonly summary: "Canonical tools lower to the CLI runtime; agents invoke via `prism tools invoke`.";
|
|
223
211
|
};
|
|
224
212
|
readonly hooks: {
|
|
225
213
|
readonly kind: "config-patch";
|
|
226
214
|
readonly path: "<codex-root>/config.toml#hooks";
|
|
227
215
|
readonly summary: "Compile patches managed Codex hook entries and wrapper files.";
|
|
228
216
|
};
|
|
229
|
-
readonly mcpConfig: {
|
|
230
|
-
readonly kind: "config-patch";
|
|
231
|
-
readonly path: "<codex-root>/config.toml#mcp_servers";
|
|
232
|
-
readonly summary: "Compile patches generated MCP server tables.";
|
|
233
|
-
};
|
|
234
217
|
readonly agentConfig: {
|
|
235
218
|
readonly kind: "direct-file";
|
|
236
219
|
readonly path: "<codex-root>/agents/<name>.toml";
|
|
@@ -266,20 +249,15 @@ export declare const LOWERER_CAPABILITIES: {
|
|
|
266
249
|
readonly summary: "Compile bundles targeted skills and orbit skills.";
|
|
267
250
|
};
|
|
268
251
|
readonly generatedTools: {
|
|
269
|
-
readonly kind: "
|
|
270
|
-
readonly path: "<prism-home>/runtime/
|
|
271
|
-
readonly summary: "Canonical tools lower to the
|
|
252
|
+
readonly kind: "direct-file";
|
|
253
|
+
readonly path: "<prism-home>/runtime/tools/<plugin>/runtime.mjs";
|
|
254
|
+
readonly summary: "Canonical tools lower to the CLI runtime; agents invoke via `prism tools invoke`.";
|
|
272
255
|
};
|
|
273
256
|
readonly hooks: {
|
|
274
257
|
readonly kind: "native-plugin-bundle";
|
|
275
258
|
readonly path: "<generated-plugin>/hooks.json";
|
|
276
259
|
readonly summary: "Hooks are bundled in Antigravity plugin format.";
|
|
277
260
|
};
|
|
278
|
-
readonly mcpConfig: {
|
|
279
|
-
readonly kind: "native-plugin-bundle";
|
|
280
|
-
readonly path: "<generated-plugin>/mcp_config.json";
|
|
281
|
-
readonly summary: "MCP config is plugin-local for generated plugin bundles.";
|
|
282
|
-
};
|
|
283
261
|
readonly agentConfig: {
|
|
284
262
|
readonly kind: "native-plugin-bundle";
|
|
285
263
|
readonly path: "<generated-plugin>/agents/";
|
|
@@ -319,20 +297,15 @@ export declare const LOWERER_CAPABILITIES: {
|
|
|
319
297
|
readonly summary: "Compile bundles targeted plugin skills and orbit skills into the generated Kimi plugin.";
|
|
320
298
|
};
|
|
321
299
|
readonly generatedTools: {
|
|
322
|
-
readonly kind: "
|
|
323
|
-
readonly path: "<prism-home>/runtime/
|
|
324
|
-
readonly summary: "Canonical tools lower to the
|
|
300
|
+
readonly kind: "direct-file";
|
|
301
|
+
readonly path: "<prism-home>/runtime/tools/<plugin>/runtime.mjs";
|
|
302
|
+
readonly summary: "Canonical tools lower to the CLI runtime; agents invoke via `prism tools invoke`.";
|
|
325
303
|
};
|
|
326
304
|
readonly hooks: {
|
|
327
305
|
readonly kind: "config-patch";
|
|
328
306
|
readonly path: "<kimi-root>/config.toml#hooks";
|
|
329
307
|
readonly summary: "Hooks lower to managed [[hooks]] config entries plus generated wrapper scripts.";
|
|
330
308
|
};
|
|
331
|
-
readonly mcpConfig: {
|
|
332
|
-
readonly kind: "native-plugin-bundle";
|
|
333
|
-
readonly path: "<generated-plugin>/kimi.plugin.json#mcpServers + <kimi-root>/plugins/installed.json";
|
|
334
|
-
readonly summary: "MCP config is plugin-local and enabled through Kimi's installed plugin record; Prism patches config.toml only for hooks.";
|
|
335
|
-
};
|
|
336
309
|
readonly agentConfig: {
|
|
337
310
|
readonly kind: "native-plugin-bundle";
|
|
338
311
|
readonly path: "<generated-plugin>/skills/prism-agent-<name>/SKILL.md";
|
|
@@ -382,7 +355,6 @@ export declare const LOWERER_CAPABILITIES: {
|
|
|
382
355
|
readonly path: "<generated-plugin>.ts";
|
|
383
356
|
readonly summary: "Supported Prism hooks lower to Amp amp.on(...) plugin event handlers; session.end fails closed because Amp has no native session-end event.";
|
|
384
357
|
};
|
|
385
|
-
readonly mcpConfig: LowererSurfaceCapability;
|
|
386
358
|
readonly agentConfig: LowererSurfaceCapability;
|
|
387
359
|
};
|
|
388
360
|
readonly notes: readonly ["Amp generated commands, tools, and supported hooks use the native plugin API; compiled agents currently lower as role-skill guidance.", "Amp exposes session.start, tool.call, tool.result, agent.start, and agent.end plugin events; Prism does not map portable session.end to agent.end."];
|
|
@@ -415,19 +387,14 @@ export declare const LOWERER_CAPABILITIES: {
|
|
|
415
387
|
readonly summary: "Install writes Agent Skill folders.";
|
|
416
388
|
};
|
|
417
389
|
readonly generatedTools: {
|
|
418
|
-
readonly kind: "
|
|
419
|
-
readonly path: "<prism-home>/runtime/
|
|
420
|
-
readonly summary: "Canonical tools lower to the
|
|
390
|
+
readonly kind: "direct-file";
|
|
391
|
+
readonly path: "<prism-home>/runtime/tools/<plugin>/runtime.mjs";
|
|
392
|
+
readonly summary: "Canonical tools lower to the CLI runtime; agents invoke via `prism tools invoke`.";
|
|
421
393
|
};
|
|
422
394
|
readonly hooks: LowererSurfaceCapability;
|
|
423
|
-
readonly mcpConfig: {
|
|
424
|
-
readonly kind: "config-patch";
|
|
425
|
-
readonly path: "<cursor-root>/mcp.json#mcpServers";
|
|
426
|
-
readonly summary: "Compile patches a compiler-owned Cursor MCP server entry.";
|
|
427
|
-
};
|
|
428
395
|
readonly agentConfig: LowererSurfaceCapability;
|
|
429
396
|
};
|
|
430
|
-
readonly notes: readonly ["Cursor compile support is tools-only for now; compiled agents, orbits, hooks, and skill permission visibility remain unsupported.", "Cursor command artifacts install through a local plugin bundle under ~/.cursor/plugins/local so Prism uses Cursor's native command discovery instead of direct command files.", "Cursor Agent Skills are docs-backed under .cursor/skills and ~/.cursor/skills, so Prism keeps install-phase skills direct.", "Cursor
|
|
397
|
+
readonly notes: readonly ["Cursor compile support is tools-only for now; compiled agents, orbits, hooks, and skill permission visibility remain unsupported.", "Cursor command artifacts install through a local plugin bundle under ~/.cursor/plugins/local so Prism uses Cursor's native command discovery instead of direct command files.", "Cursor Agent Skills are docs-backed under .cursor/skills and ~/.cursor/skills, so Prism keeps install-phase skills direct.", "Cursor canonical tools are CLI-only (`prism tools invoke`); no mcp.json patch is emitted."];
|
|
431
398
|
};
|
|
432
399
|
readonly "factory-droid": {
|
|
433
400
|
readonly harness: "factory-droid";
|
|
@@ -461,20 +428,15 @@ export declare const LOWERER_CAPABILITIES: {
|
|
|
461
428
|
readonly summary: "Compiled bundles own targeted skills; skills-only plugins still install direct skills.";
|
|
462
429
|
};
|
|
463
430
|
readonly generatedTools: {
|
|
464
|
-
readonly kind: "
|
|
465
|
-
readonly path: "<prism-home>/runtime/
|
|
466
|
-
readonly summary: "Canonical tools lower to the
|
|
431
|
+
readonly kind: "direct-file";
|
|
432
|
+
readonly path: "<prism-home>/runtime/tools/<plugin>/runtime.mjs";
|
|
433
|
+
readonly summary: "Canonical tools lower to the CLI runtime; agents invoke via `prism tools invoke`.";
|
|
467
434
|
};
|
|
468
435
|
readonly hooks: {
|
|
469
436
|
readonly kind: "native-plugin-bundle";
|
|
470
437
|
readonly path: "<generated-plugin>/hooks/hooks.json";
|
|
471
438
|
readonly summary: "Hooks are bundled in Factory plugin format.";
|
|
472
439
|
};
|
|
473
|
-
readonly mcpConfig: {
|
|
474
|
-
readonly kind: "native-plugin-bundle";
|
|
475
|
-
readonly path: "<generated-plugin>/mcp.json";
|
|
476
|
-
readonly summary: "MCP config is plugin-local; Prism does not patch settings.json.";
|
|
477
|
-
};
|
|
478
440
|
readonly agentConfig: {
|
|
479
441
|
readonly kind: "native-plugin-bundle";
|
|
480
442
|
readonly path: "<generated-plugin>/droids/";
|
|
@@ -523,7 +485,6 @@ export declare const LOWERER_CAPABILITIES: {
|
|
|
523
485
|
readonly path: "<generated-package>/extensions/prism-extension.js and <generated-package>/hooks/";
|
|
524
486
|
readonly summary: "Hooks lower through Pi extension events and generated wrapper files.";
|
|
525
487
|
};
|
|
526
|
-
readonly mcpConfig: LowererSurfaceCapability;
|
|
527
488
|
readonly agentConfig: {
|
|
528
489
|
readonly kind: "markdown-file";
|
|
529
490
|
readonly path: "~/.pi/agents/<name>.md or .pi/agents/<name>.md";
|
|
@@ -573,7 +534,6 @@ export declare const LOWERER_CAPABILITIES: {
|
|
|
573
534
|
readonly path: "<omp-root>/extensions/prism-generated-<plugin>/";
|
|
574
535
|
readonly summary: "Hooks lower through OMP's native extension API.";
|
|
575
536
|
};
|
|
576
|
-
readonly mcpConfig: LowererSurfaceCapability;
|
|
577
537
|
readonly agentConfig: {
|
|
578
538
|
readonly kind: "direct-file";
|
|
579
539
|
readonly path: "<omp-root>/agents/";
|
|
@@ -610,20 +570,15 @@ export declare const LOWERER_CAPABILITIES: {
|
|
|
610
570
|
readonly summary: "Compile bundles targeted skills and orbit skills.";
|
|
611
571
|
};
|
|
612
572
|
readonly generatedTools: {
|
|
613
|
-
readonly kind: "
|
|
614
|
-
readonly path: "<prism-home>/runtime/
|
|
615
|
-
readonly summary: "Canonical tools lower to the
|
|
573
|
+
readonly kind: "direct-file";
|
|
574
|
+
readonly path: "<prism-home>/runtime/tools/<plugin>/runtime.mjs";
|
|
575
|
+
readonly summary: "Canonical tools lower to the CLI runtime; agents invoke via `prism tools invoke`.";
|
|
616
576
|
};
|
|
617
577
|
readonly hooks: {
|
|
618
578
|
readonly kind: "native-plugin-bundle";
|
|
619
579
|
readonly path: "<generated-plugin>/hooks/hooks.json";
|
|
620
580
|
readonly summary: "Hooks are bundled in Grok plugin format.";
|
|
621
581
|
};
|
|
622
|
-
readonly mcpConfig: {
|
|
623
|
-
readonly kind: "config-patch";
|
|
624
|
-
readonly path: "<grok-root>/config.toml#mcp_servers";
|
|
625
|
-
readonly summary: "Compile patches a managed [mcp_servers] stdio-shim region; grok does not resolve plugin-bundle .mcp.json files.";
|
|
626
|
-
};
|
|
627
582
|
readonly agentConfig: {
|
|
628
583
|
readonly kind: "native-plugin-bundle";
|
|
629
584
|
readonly path: "<generated-plugin>/agents/";
|
|
@@ -662,7 +617,6 @@ export declare const LOWERER_CAPABILITIES: {
|
|
|
662
617
|
readonly path: "project: hooks.v1.json; global: config.json#hooks json-array-member + hooks/*.mjs";
|
|
663
618
|
readonly summary: "Project scope writes hooks.v1.json; global scope upserts Prism entries into config.json hooks without whole-file adopt. Wrappers under hooks/.";
|
|
664
619
|
};
|
|
665
|
-
readonly mcpConfig: LowererSurfaceCapability;
|
|
666
620
|
readonly agentConfig: {
|
|
667
621
|
readonly kind: "direct-file";
|
|
668
622
|
readonly path: "ephemeral --agent-config for workflow runs";
|
package/types/types.d.ts
CHANGED
|
@@ -22,7 +22,6 @@ export interface HarnessConfig {
|
|
|
22
22
|
supportsCommands: boolean;
|
|
23
23
|
supportsAgents: boolean;
|
|
24
24
|
supportsSkills: boolean;
|
|
25
|
-
supportsMCP: boolean;
|
|
26
25
|
alternativeRulesFiles?: string[];
|
|
27
26
|
}
|
|
28
27
|
export declare const PLUGIN_ARTIFACT_TYPES: readonly ["rules", "commands", "agents", "skills"];
|
|
@@ -34,16 +33,8 @@ export type TargetPresetId = (typeof TARGET_PRESET_IDS)[number];
|
|
|
34
33
|
export type PluginTargetId = HarnessId | TargetPresetId;
|
|
35
34
|
export type AnyArtifactType = PluginArtifactType | CompileArtifactType;
|
|
36
35
|
export type PluginManifestTargets = Partial<Record<AnyArtifactType, PluginTargetId[]>>;
|
|
37
|
-
|
|
38
|
-
export interface PluginRuntimeMcpHarnessConfig {
|
|
39
|
-
transport?: PrismMcpTransport;
|
|
40
|
-
host?: string;
|
|
41
|
-
port?: number;
|
|
42
|
-
connectTimeoutMs?: number;
|
|
43
|
-
toolTimeoutMs?: number;
|
|
44
|
-
}
|
|
36
|
+
/** Reserved plugin runtime knobs. MCP harness config is retired. */
|
|
45
37
|
export interface PluginRuntimeConfig {
|
|
46
|
-
mcp?: Partial<Record<HarnessId, PluginRuntimeMcpHarnessConfig>>;
|
|
47
38
|
}
|
|
48
39
|
export interface PluginManifest {
|
|
49
40
|
name: string;
|