omp-antigravity-acp-provider 0.1.39 → 0.1.40
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/extension/runtime.mjs
CHANGED
|
@@ -24340,9 +24340,11 @@ var TOOL_ROUTING = "Supplied OMP tools are exposed by the authenticated pi-bridg
|
|
|
24340
24340
|
function systemRouting(mode) {
|
|
24341
24341
|
return TOOL_ROUTING + (mode === "disabled" ? "\nAntigravity-native tools are disabled for this session. Report a missing capability instead of substituting one." : "");
|
|
24342
24342
|
}
|
|
24343
|
+
var OFFICIAL_AGENT_NAMES = /* @__PURE__ */ new Set(["antigravity-acp", "Antigravity ACP Server"]);
|
|
24343
24344
|
function supportsSessionRouting(initialize) {
|
|
24345
|
+
const name = initialize?.agentInfo?.name;
|
|
24344
24346
|
const version2 = initialize?.agentInfo?.version?.match(/^(\d+)\.(\d+)\.(\d+)$/);
|
|
24345
|
-
return
|
|
24347
|
+
return typeof name === "string" && OFFICIAL_AGENT_NAMES.has(name) && initialize.agentCapabilities?._meta?.antigravity?.systemPrompt?.append === true && !!version2 && Number(version2[1]) === 1 && (Number(version2[2]) > 4 || Number(version2[2]) === 4 && Number(version2[3]) >= 1);
|
|
24346
24348
|
}
|
|
24347
24349
|
function sessionRoutingRequest(request, initialize, mode) {
|
|
24348
24350
|
if (!supportsSessionRouting(initialize)) {
|
|
@@ -14,6 +14,8 @@ export function parseNativeToolMode(value: unknown): NativeToolMode {
|
|
|
14
14
|
throw new Error("nativeTools must be prefer or disabled");
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
const OFFICIAL_AGENT_NAMES = new Set(["antigravity-acp", "Antigravity ACP Server"]);
|
|
18
|
+
|
|
17
19
|
export interface InitializeMetadata {
|
|
18
20
|
agentInfo?: { name?: string; version?: string };
|
|
19
21
|
agentCapabilities?: {
|
|
@@ -41,8 +43,9 @@ export interface SessionRpcRequest {
|
|
|
41
43
|
}
|
|
42
44
|
|
|
43
45
|
export function supportsSessionRouting(initialize: InitializeMetadata | undefined): boolean {
|
|
46
|
+
const name = initialize?.agentInfo?.name;
|
|
44
47
|
const version = initialize?.agentInfo?.version?.match(/^(\d+)\.(\d+)\.(\d+)$/);
|
|
45
|
-
return
|
|
48
|
+
return typeof name === "string" && OFFICIAL_AGENT_NAMES.has(name) &&
|
|
46
49
|
initialize.agentCapabilities?._meta?.antigravity?.systemPrompt?.append === true &&
|
|
47
50
|
!!version && Number(version[1]) === 1 &&
|
|
48
51
|
(Number(version[2]) > 4 || (Number(version[2]) === 4 && Number(version[3]) >= 1));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omp-antigravity-acp-provider",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.40",
|
|
4
4
|
"ompAcpBundle": 1,
|
|
5
5
|
"description": "Google Antigravity ACP provider for Oh My Pi (OMP), with tool bridging and per-model thinking; derived from zacbemis/pi-antigravity-acp-provider",
|
|
6
6
|
"type": "module",
|