@grackle-ai/common 0.55.0 → 0.56.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/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/runtime-manifest.d.ts +16 -0
- package/dist/runtime-manifest.d.ts.map +1 -0
- package/dist/runtime-manifest.js +35 -0
- package/dist/runtime-manifest.js.map +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,4 +3,6 @@ export * as powerline from "./gen/grackle/powerline/powerline_pb.js";
|
|
|
3
3
|
export * from "./types.js";
|
|
4
4
|
export * from "./enum-converters.js";
|
|
5
5
|
export * from "./search.js";
|
|
6
|
+
export { RUNTIME_MANIFESTS } from "./runtime-manifest.js";
|
|
7
|
+
export type { RuntimePackageManifest } from "./runtime-manifest.js";
|
|
6
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,6BAA6B,CAAC;AACvD,OAAO,KAAK,SAAS,MAAM,yCAAyC,CAAC;AACrE,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,6BAA6B,CAAC;AACvD,OAAO,KAAK,SAAS,MAAM,yCAAyC,CAAC;AACrE,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,YAAY,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC"}
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,6BAA6B,CAAC;AACvD,OAAO,KAAK,SAAS,MAAM,yCAAyC,CAAC;AACrE,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,6BAA6B,CAAC;AACvD,OAAO,KAAK,SAAS,MAAM,yCAAyC,CAAC;AACrE,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** Describes the npm packages required for a specific agent runtime. */
|
|
2
|
+
export interface RuntimePackageManifest {
|
|
3
|
+
/** Map of npm package name → semver range. */
|
|
4
|
+
packages: Record<string, string>;
|
|
5
|
+
/** When true, registers a module resolve hook for vscode-jsonrpc/node (copilot only). */
|
|
6
|
+
needsJsonRpcHook?: boolean;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Static manifest of all supported agent runtimes and their npm dependencies.
|
|
10
|
+
*
|
|
11
|
+
* Each entry maps a runtime name (as used in the registry) to the packages
|
|
12
|
+
* that must be installed for that runtime to function. These packages are
|
|
13
|
+
* installed lazily at spawn time into isolated per-runtime directories.
|
|
14
|
+
*/
|
|
15
|
+
export declare const RUNTIME_MANIFESTS: Readonly<Record<string, RuntimePackageManifest>>;
|
|
16
|
+
//# sourceMappingURL=runtime-manifest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-manifest.d.ts","sourceRoot":"","sources":["../src/runtime-manifest.ts"],"names":[],"mappings":"AAIA,wEAAwE;AACxE,MAAM,WAAW,sBAAsB;IACrC,8CAA8C;IAC9C,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,yFAAyF;IACzF,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAuB9E,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// ─── Runtime Package Manifest ───────────────────────────────
|
|
2
|
+
// Static mapping of runtime name → npm packages + versions.
|
|
3
|
+
// Lives in @grackle-ai/common so both PowerLine and adapter-sdk can use it.
|
|
4
|
+
/**
|
|
5
|
+
* Static manifest of all supported agent runtimes and their npm dependencies.
|
|
6
|
+
*
|
|
7
|
+
* Each entry maps a runtime name (as used in the registry) to the packages
|
|
8
|
+
* that must be installed for that runtime to function. These packages are
|
|
9
|
+
* installed lazily at spawn time into isolated per-runtime directories.
|
|
10
|
+
*/
|
|
11
|
+
export const RUNTIME_MANIFESTS = {
|
|
12
|
+
"claude-code": {
|
|
13
|
+
packages: { "@anthropic-ai/claude-agent-sdk": "^0.2.50" },
|
|
14
|
+
},
|
|
15
|
+
"copilot": {
|
|
16
|
+
packages: { "@github/copilot-sdk": "^0.1.29", "@github/copilot": "^1.0.7" },
|
|
17
|
+
needsJsonRpcHook: true,
|
|
18
|
+
},
|
|
19
|
+
"codex": {
|
|
20
|
+
packages: { "@openai/codex-sdk": "^0.111.0" },
|
|
21
|
+
},
|
|
22
|
+
"codex-acp": {
|
|
23
|
+
packages: { "@agentclientprotocol/sdk": "^0.16.1", "@zed-industries/codex-acp": "^0.10.0" },
|
|
24
|
+
},
|
|
25
|
+
"copilot-acp": {
|
|
26
|
+
packages: { "@agentclientprotocol/sdk": "^0.16.1", "@github/copilot": "^1.0.7" },
|
|
27
|
+
},
|
|
28
|
+
"claude-code-acp": {
|
|
29
|
+
packages: { "@agentclientprotocol/sdk": "^0.16.1", "@zed-industries/claude-agent-acp": "^0.22.0" },
|
|
30
|
+
},
|
|
31
|
+
"genaiscript": {
|
|
32
|
+
packages: { "genaiscript": "^2.5.1" },
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=runtime-manifest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-manifest.js","sourceRoot":"","sources":["../src/runtime-manifest.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,4DAA4D;AAC5D,4EAA4E;AAU5E;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAqD;IACjF,aAAa,EAAE;QACb,QAAQ,EAAE,EAAE,gCAAgC,EAAE,SAAS,EAAE;KAC1D;IACD,SAAS,EAAE;QACT,QAAQ,EAAE,EAAE,qBAAqB,EAAE,SAAS,EAAE,iBAAiB,EAAE,QAAQ,EAAE;QAC3E,gBAAgB,EAAE,IAAI;KACvB;IACD,OAAO,EAAE;QACP,QAAQ,EAAE,EAAE,mBAAmB,EAAE,UAAU,EAAE;KAC9C;IACD,WAAW,EAAE;QACX,QAAQ,EAAE,EAAE,0BAA0B,EAAE,SAAS,EAAE,2BAA2B,EAAE,SAAS,EAAE;KAC5F;IACD,aAAa,EAAE;QACb,QAAQ,EAAE,EAAE,0BAA0B,EAAE,SAAS,EAAE,iBAAiB,EAAE,QAAQ,EAAE;KACjF;IACD,iBAAiB,EAAE;QACjB,QAAQ,EAAE,EAAE,0BAA0B,EAAE,SAAS,EAAE,kCAAkC,EAAE,SAAS,EAAE;KACnG;IACD,aAAa,EAAE;QACb,QAAQ,EAAE,EAAE,aAAa,EAAE,QAAQ,EAAE;KACtC;CACF,CAAC"}
|