@remnic/core 10.0.129 → 10.0.131
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/access-admin-ops-surface.js +2 -2
- package/dist/access-cli.js +2 -2
- package/dist/access-extraction-force-flush.js +2 -2
- package/dist/access-http-briefing.js +2 -2
- package/dist/access-http-query.js +2 -2
- package/dist/access-http.js +2 -2
- package/dist/access-identity-continuity-surface.js +2 -2
- package/dist/access-lcm-surface.js +2 -2
- package/dist/access-mcp.js +2 -2
- package/dist/access-observe-write-surface.js +2 -2
- package/dist/access-operations-batch.js +2 -2
- package/dist/access-operations.js +2 -2
- package/dist/access-recall-concurrency.js +2 -2
- package/dist/access-recall-response.js +2 -2
- package/dist/access-recall-surface.js +2 -2
- package/dist/access-service.js +2 -2
- package/dist/adapters/agy.d.ts +22 -0
- package/dist/adapters/agy.d.ts.map +1 -0
- package/dist/adapters/index.js +1 -1
- package/dist/adapters/registry.d.ts.map +1 -1
- package/dist/adapters/registry.js +1 -1
- package/dist/{chunk-OEP5XRTB.js → chunk-GCHM5BYL.js} +27 -1
- package/dist/chunk-GCHM5BYL.js.map +1 -0
- package/dist/{chunk-OWNMYYG3.js → chunk-RMU3O74L.js} +2 -2
- package/dist/{chunk-ZT7EJUNT.js → chunk-W5GGKQVS.js} +2 -2
- package/dist/cli.js +2 -2
- package/dist/explicit-capture.js +2 -2
- package/dist/index.js +2 -2
- package/dist/orchestration/backlog-scheduler.js +3 -3
- package/dist/orchestration/buffer-drain-runner.js +3 -3
- package/dist/orchestrator.js +2 -2
- package/dist/recall-navigation.js +2 -2
- package/package.json +2 -2
- package/src/adapters/agy.test.ts +75 -0
- package/src/adapters/agy.ts +45 -0
- package/src/adapters/grok-opencode.test.ts +1 -0
- package/src/adapters/registry.ts +2 -0
- package/dist/chunk-OEP5XRTB.js.map +0 -1
- /package/dist/{chunk-OWNMYYG3.js.map → chunk-RMU3O74L.js.map} +0 -0
- /package/dist/{chunk-ZT7EJUNT.js.map → chunk-W5GGKQVS.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AccessAdminOpsSurface
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RMU3O74L.js";
|
|
4
4
|
import "./chunk-B3DR2JBZ.js";
|
|
5
5
|
import "./chunk-GOZXQNIM.js";
|
|
6
6
|
import "./chunk-H4CKS5B2.js";
|
|
@@ -68,7 +68,7 @@ import "./chunk-I7TR2OCU.js";
|
|
|
68
68
|
import "./chunk-VQ7B2Q6M.js";
|
|
69
69
|
import "./chunk-2524MOWK.js";
|
|
70
70
|
import "./chunk-6O3SGRJD.js";
|
|
71
|
-
import "./chunk-
|
|
71
|
+
import "./chunk-GCHM5BYL.js";
|
|
72
72
|
import "./chunk-3JKYQBLC.js";
|
|
73
73
|
import "./chunk-7RKSJVOQ.js";
|
|
74
74
|
import "./chunk-ZTJPFACY.js";
|
package/dist/access-cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EngramAccessService,
|
|
3
3
|
Orchestrator
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RMU3O74L.js";
|
|
5
5
|
import "./chunk-B3DR2JBZ.js";
|
|
6
6
|
import "./chunk-GOZXQNIM.js";
|
|
7
7
|
import "./chunk-H4CKS5B2.js";
|
|
@@ -69,7 +69,7 @@ import "./chunk-I7TR2OCU.js";
|
|
|
69
69
|
import "./chunk-VQ7B2Q6M.js";
|
|
70
70
|
import "./chunk-2524MOWK.js";
|
|
71
71
|
import "./chunk-6O3SGRJD.js";
|
|
72
|
-
import "./chunk-
|
|
72
|
+
import "./chunk-GCHM5BYL.js";
|
|
73
73
|
import "./chunk-3JKYQBLC.js";
|
|
74
74
|
import "./chunk-7RKSJVOQ.js";
|
|
75
75
|
import "./chunk-ZTJPFACY.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
extractionForceFlush
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RMU3O74L.js";
|
|
4
4
|
import "./chunk-B3DR2JBZ.js";
|
|
5
5
|
import "./chunk-GOZXQNIM.js";
|
|
6
6
|
import "./chunk-H4CKS5B2.js";
|
|
@@ -68,7 +68,7 @@ import "./chunk-I7TR2OCU.js";
|
|
|
68
68
|
import "./chunk-VQ7B2Q6M.js";
|
|
69
69
|
import "./chunk-2524MOWK.js";
|
|
70
70
|
import "./chunk-6O3SGRJD.js";
|
|
71
|
-
import "./chunk-
|
|
71
|
+
import "./chunk-GCHM5BYL.js";
|
|
72
72
|
import "./chunk-3JKYQBLC.js";
|
|
73
73
|
import "./chunk-7RKSJVOQ.js";
|
|
74
74
|
import "./chunk-ZTJPFACY.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
respondBriefingHttp
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RMU3O74L.js";
|
|
4
4
|
import "./chunk-B3DR2JBZ.js";
|
|
5
5
|
import "./chunk-GOZXQNIM.js";
|
|
6
6
|
import "./chunk-H4CKS5B2.js";
|
|
@@ -68,7 +68,7 @@ import "./chunk-I7TR2OCU.js";
|
|
|
68
68
|
import "./chunk-VQ7B2Q6M.js";
|
|
69
69
|
import "./chunk-2524MOWK.js";
|
|
70
70
|
import "./chunk-6O3SGRJD.js";
|
|
71
|
-
import "./chunk-
|
|
71
|
+
import "./chunk-GCHM5BYL.js";
|
|
72
72
|
import "./chunk-3JKYQBLC.js";
|
|
73
73
|
import "./chunk-7RKSJVOQ.js";
|
|
74
74
|
import "./chunk-ZTJPFACY.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
optionalNamespaceKindQueryParam,
|
|
4
4
|
optionalQueryString,
|
|
5
5
|
positiveIntQueryParam
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RMU3O74L.js";
|
|
7
7
|
import "./chunk-B3DR2JBZ.js";
|
|
8
8
|
import "./chunk-GOZXQNIM.js";
|
|
9
9
|
import "./chunk-H4CKS5B2.js";
|
|
@@ -71,7 +71,7 @@ import "./chunk-I7TR2OCU.js";
|
|
|
71
71
|
import "./chunk-VQ7B2Q6M.js";
|
|
72
72
|
import "./chunk-2524MOWK.js";
|
|
73
73
|
import "./chunk-6O3SGRJD.js";
|
|
74
|
-
import "./chunk-
|
|
74
|
+
import "./chunk-GCHM5BYL.js";
|
|
75
75
|
import "./chunk-3JKYQBLC.js";
|
|
76
76
|
import "./chunk-7RKSJVOQ.js";
|
|
77
77
|
import "./chunk-ZTJPFACY.js";
|
package/dist/access-http.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EngramAccessHttpServer,
|
|
3
3
|
resolveDefaultAdminConsolePublicDir
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RMU3O74L.js";
|
|
5
5
|
import "./chunk-B3DR2JBZ.js";
|
|
6
6
|
import "./chunk-GOZXQNIM.js";
|
|
7
7
|
import "./chunk-H4CKS5B2.js";
|
|
@@ -69,7 +69,7 @@ import "./chunk-I7TR2OCU.js";
|
|
|
69
69
|
import "./chunk-VQ7B2Q6M.js";
|
|
70
70
|
import "./chunk-2524MOWK.js";
|
|
71
71
|
import "./chunk-6O3SGRJD.js";
|
|
72
|
-
import "./chunk-
|
|
72
|
+
import "./chunk-GCHM5BYL.js";
|
|
73
73
|
import "./chunk-3JKYQBLC.js";
|
|
74
74
|
import "./chunk-7RKSJVOQ.js";
|
|
75
75
|
import "./chunk-ZTJPFACY.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AccessIdentityContinuitySurface
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RMU3O74L.js";
|
|
4
4
|
import "./chunk-B3DR2JBZ.js";
|
|
5
5
|
import "./chunk-GOZXQNIM.js";
|
|
6
6
|
import "./chunk-H4CKS5B2.js";
|
|
@@ -68,7 +68,7 @@ import "./chunk-I7TR2OCU.js";
|
|
|
68
68
|
import "./chunk-VQ7B2Q6M.js";
|
|
69
69
|
import "./chunk-2524MOWK.js";
|
|
70
70
|
import "./chunk-6O3SGRJD.js";
|
|
71
|
-
import "./chunk-
|
|
71
|
+
import "./chunk-GCHM5BYL.js";
|
|
72
72
|
import "./chunk-3JKYQBLC.js";
|
|
73
73
|
import "./chunk-7RKSJVOQ.js";
|
|
74
74
|
import "./chunk-ZTJPFACY.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AccessLcmSurface
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RMU3O74L.js";
|
|
4
4
|
import "./chunk-B3DR2JBZ.js";
|
|
5
5
|
import "./chunk-GOZXQNIM.js";
|
|
6
6
|
import "./chunk-H4CKS5B2.js";
|
|
@@ -68,7 +68,7 @@ import "./chunk-I7TR2OCU.js";
|
|
|
68
68
|
import "./chunk-VQ7B2Q6M.js";
|
|
69
69
|
import "./chunk-2524MOWK.js";
|
|
70
70
|
import "./chunk-6O3SGRJD.js";
|
|
71
|
-
import "./chunk-
|
|
71
|
+
import "./chunk-GCHM5BYL.js";
|
|
72
72
|
import "./chunk-3JKYQBLC.js";
|
|
73
73
|
import "./chunk-7RKSJVOQ.js";
|
|
74
74
|
import "./chunk-ZTJPFACY.js";
|
package/dist/access-mcp.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
EngramMcpServer,
|
|
3
3
|
MCP_MIGRATED_OPERATIONS,
|
|
4
4
|
MCP_SUPPORTED_PROTOCOL_VERSIONS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-RMU3O74L.js";
|
|
6
6
|
import "./chunk-B3DR2JBZ.js";
|
|
7
7
|
import "./chunk-GOZXQNIM.js";
|
|
8
8
|
import "./chunk-H4CKS5B2.js";
|
|
@@ -70,7 +70,7 @@ import "./chunk-I7TR2OCU.js";
|
|
|
70
70
|
import "./chunk-VQ7B2Q6M.js";
|
|
71
71
|
import "./chunk-2524MOWK.js";
|
|
72
72
|
import "./chunk-6O3SGRJD.js";
|
|
73
|
-
import "./chunk-
|
|
73
|
+
import "./chunk-GCHM5BYL.js";
|
|
74
74
|
import "./chunk-3JKYQBLC.js";
|
|
75
75
|
import "./chunk-7RKSJVOQ.js";
|
|
76
76
|
import "./chunk-ZTJPFACY.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AccessObserveWriteSurface
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RMU3O74L.js";
|
|
4
4
|
import "./chunk-B3DR2JBZ.js";
|
|
5
5
|
import "./chunk-GOZXQNIM.js";
|
|
6
6
|
import "./chunk-H4CKS5B2.js";
|
|
@@ -68,7 +68,7 @@ import "./chunk-I7TR2OCU.js";
|
|
|
68
68
|
import "./chunk-VQ7B2Q6M.js";
|
|
69
69
|
import "./chunk-2524MOWK.js";
|
|
70
70
|
import "./chunk-6O3SGRJD.js";
|
|
71
|
-
import "./chunk-
|
|
71
|
+
import "./chunk-GCHM5BYL.js";
|
|
72
72
|
import "./chunk-3JKYQBLC.js";
|
|
73
73
|
import "./chunk-7RKSJVOQ.js";
|
|
74
74
|
import "./chunk-ZTJPFACY.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-RMU3O74L.js";
|
|
2
2
|
import "./chunk-B3DR2JBZ.js";
|
|
3
3
|
import "./chunk-GOZXQNIM.js";
|
|
4
4
|
import "./chunk-H4CKS5B2.js";
|
|
@@ -66,7 +66,7 @@ import "./chunk-I7TR2OCU.js";
|
|
|
66
66
|
import "./chunk-VQ7B2Q6M.js";
|
|
67
67
|
import "./chunk-2524MOWK.js";
|
|
68
68
|
import "./chunk-6O3SGRJD.js";
|
|
69
|
-
import "./chunk-
|
|
69
|
+
import "./chunk-GCHM5BYL.js";
|
|
70
70
|
import "./chunk-3JKYQBLC.js";
|
|
71
71
|
import "./chunk-7RKSJVOQ.js";
|
|
72
72
|
import "./chunk-ZTJPFACY.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
memoryGetOperation,
|
|
23
23
|
memorySearchOperation,
|
|
24
24
|
memoryStoreOperation
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-RMU3O74L.js";
|
|
26
26
|
import "./chunk-B3DR2JBZ.js";
|
|
27
27
|
import "./chunk-GOZXQNIM.js";
|
|
28
28
|
import "./chunk-H4CKS5B2.js";
|
|
@@ -90,7 +90,7 @@ import "./chunk-I7TR2OCU.js";
|
|
|
90
90
|
import "./chunk-VQ7B2Q6M.js";
|
|
91
91
|
import "./chunk-2524MOWK.js";
|
|
92
92
|
import "./chunk-6O3SGRJD.js";
|
|
93
|
-
import "./chunk-
|
|
93
|
+
import "./chunk-GCHM5BYL.js";
|
|
94
94
|
import "./chunk-3JKYQBLC.js";
|
|
95
95
|
import "./chunk-7RKSJVOQ.js";
|
|
96
96
|
import "./chunk-ZTJPFACY.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
createAndStartFlight,
|
|
5
5
|
leadRecallFlight,
|
|
6
6
|
withRecallConcurrency
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RMU3O74L.js";
|
|
8
8
|
import "./chunk-B3DR2JBZ.js";
|
|
9
9
|
import "./chunk-GOZXQNIM.js";
|
|
10
10
|
import "./chunk-H4CKS5B2.js";
|
|
@@ -72,7 +72,7 @@ import "./chunk-I7TR2OCU.js";
|
|
|
72
72
|
import "./chunk-VQ7B2Q6M.js";
|
|
73
73
|
import "./chunk-2524MOWK.js";
|
|
74
74
|
import "./chunk-6O3SGRJD.js";
|
|
75
|
-
import "./chunk-
|
|
75
|
+
import "./chunk-GCHM5BYL.js";
|
|
76
76
|
import "./chunk-3JKYQBLC.js";
|
|
77
77
|
import "./chunk-7RKSJVOQ.js";
|
|
78
78
|
import "./chunk-ZTJPFACY.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assembleRecallResponse
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RMU3O74L.js";
|
|
4
4
|
import "./chunk-B3DR2JBZ.js";
|
|
5
5
|
import "./chunk-GOZXQNIM.js";
|
|
6
6
|
import "./chunk-H4CKS5B2.js";
|
|
@@ -68,7 +68,7 @@ import "./chunk-I7TR2OCU.js";
|
|
|
68
68
|
import "./chunk-VQ7B2Q6M.js";
|
|
69
69
|
import "./chunk-2524MOWK.js";
|
|
70
70
|
import "./chunk-6O3SGRJD.js";
|
|
71
|
-
import "./chunk-
|
|
71
|
+
import "./chunk-GCHM5BYL.js";
|
|
72
72
|
import "./chunk-3JKYQBLC.js";
|
|
73
73
|
import "./chunk-7RKSJVOQ.js";
|
|
74
74
|
import "./chunk-ZTJPFACY.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AccessRecallSurface
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RMU3O74L.js";
|
|
4
4
|
import "./chunk-B3DR2JBZ.js";
|
|
5
5
|
import "./chunk-GOZXQNIM.js";
|
|
6
6
|
import "./chunk-H4CKS5B2.js";
|
|
@@ -68,7 +68,7 @@ import "./chunk-I7TR2OCU.js";
|
|
|
68
68
|
import "./chunk-VQ7B2Q6M.js";
|
|
69
69
|
import "./chunk-2524MOWK.js";
|
|
70
70
|
import "./chunk-6O3SGRJD.js";
|
|
71
|
-
import "./chunk-
|
|
71
|
+
import "./chunk-GCHM5BYL.js";
|
|
72
72
|
import "./chunk-3JKYQBLC.js";
|
|
73
73
|
import "./chunk-7RKSJVOQ.js";
|
|
74
74
|
import "./chunk-ZTJPFACY.js";
|
package/dist/access-service.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
buildProjectedGovernanceProposedActions,
|
|
5
5
|
hasGroupedGovernanceActions,
|
|
6
6
|
shapeMemorySummary
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RMU3O74L.js";
|
|
8
8
|
import "./chunk-B3DR2JBZ.js";
|
|
9
9
|
import "./chunk-GOZXQNIM.js";
|
|
10
10
|
import "./chunk-H4CKS5B2.js";
|
|
@@ -72,7 +72,7 @@ import "./chunk-I7TR2OCU.js";
|
|
|
72
72
|
import "./chunk-VQ7B2Q6M.js";
|
|
73
73
|
import "./chunk-2524MOWK.js";
|
|
74
74
|
import "./chunk-6O3SGRJD.js";
|
|
75
|
-
import "./chunk-
|
|
75
|
+
import "./chunk-GCHM5BYL.js";
|
|
76
76
|
import "./chunk-3JKYQBLC.js";
|
|
77
77
|
import "./chunk-7RKSJVOQ.js";
|
|
78
78
|
import "./chunk-ZTJPFACY.js";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type AdapterContext, type EngramAdapter, type ResolvedIdentity } from "./types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Antigravity CLI (agy) adapter.
|
|
4
|
+
*
|
|
5
|
+
* Detection: agy's MCP clientInfo.name contains "agy" in the initialize
|
|
6
|
+
* handshake. The bundled stdio→HTTP proxy also sends
|
|
7
|
+
* X-Engram-Client-Id: agy-cli (matching the lifecycle hook runner's
|
|
8
|
+
* client id) so detection does not depend on the handshake alone.
|
|
9
|
+
*
|
|
10
|
+
* Namespace can be set with the X-Engram-Namespace header; the proxy
|
|
11
|
+
* forwards REMNIC_NAMESPACE/ENGRAM_NAMESPACE as that header.
|
|
12
|
+
*
|
|
13
|
+
* Principal overrides are intentionally handled only by the HTTP server's
|
|
14
|
+
* trustPrincipalHeader gate. Adapters must not independently trust
|
|
15
|
+
* X-Engram-Principal.
|
|
16
|
+
*/
|
|
17
|
+
export declare class AgyAdapter implements EngramAdapter {
|
|
18
|
+
readonly id = "agy";
|
|
19
|
+
matches(context: AdapterContext): boolean;
|
|
20
|
+
resolveIdentity(context: AdapterContext): ResolvedIdentity;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=agy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agy.d.ts","sourceRoot":"","sources":["../../src/adapters/agy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEzG;;;;;;;;;;;;;;GAcG;AACH,qBAAa,UAAW,YAAW,aAAa;IAC9C,QAAQ,CAAC,EAAE,SAAS;IAEpB,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO;IAYzC,eAAe,CAAC,OAAO,EAAE,cAAc,GAAG,gBAAgB;CAY3D"}
|
package/dist/adapters/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/adapters/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/adapters/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAUlF;;;;GAIG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAkB;gBAE/B,QAAQ,CAAC,EAAE,aAAa,EAAE;IAatC;;;OAGG;IACH,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,gBAAgB,GAAG,IAAI;IAmBzD,kCAAkC;IAClC,IAAI,IAAI,MAAM,EAAE;CAGjB"}
|
|
@@ -17,6 +17,31 @@ import {
|
|
|
17
17
|
headerValue
|
|
18
18
|
} from "./chunk-NJAIR57U.js";
|
|
19
19
|
|
|
20
|
+
// src/adapters/agy.ts
|
|
21
|
+
var AgyAdapter = class {
|
|
22
|
+
id = "agy";
|
|
23
|
+
matches(context) {
|
|
24
|
+
const clientName = context.clientInfo?.name?.toLowerCase() ?? "";
|
|
25
|
+
if (clientName.includes("agy")) return true;
|
|
26
|
+
const clientId = headerValue(context.headers, "x-engram-client-id");
|
|
27
|
+
if (clientId && (clientId.toLowerCase() === "agy-cli" || clientId.toLowerCase() === "agy")) {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
resolveIdentity(context) {
|
|
33
|
+
const mcpSessionId = headerValue(context.headers, "mcp-session-id");
|
|
34
|
+
const namespaceHeader = headerValue(context.headers, "x-engram-namespace");
|
|
35
|
+
return {
|
|
36
|
+
namespace: namespaceHeader ?? "agy",
|
|
37
|
+
namespaceExplicit: namespaceHeader !== void 0,
|
|
38
|
+
principal: "agy",
|
|
39
|
+
sessionKey: mcpSessionId ?? context.sessionKey,
|
|
40
|
+
adapterId: this.id
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
|
|
20
45
|
// src/adapters/grok.ts
|
|
21
46
|
var GrokAdapter = class {
|
|
22
47
|
id = "grok";
|
|
@@ -75,6 +100,7 @@ var AdapterRegistry = class {
|
|
|
75
100
|
new HermesAdapter(),
|
|
76
101
|
new ReplitAdapter(),
|
|
77
102
|
new CodexAdapter(),
|
|
103
|
+
new AgyAdapter(),
|
|
78
104
|
new DevinAdapter(),
|
|
79
105
|
new ClaudeCodeAdapter(),
|
|
80
106
|
new GrokAdapter(),
|
|
@@ -114,4 +140,4 @@ export {
|
|
|
114
140
|
OpenCodeAdapter,
|
|
115
141
|
AdapterRegistry
|
|
116
142
|
};
|
|
117
|
-
//# sourceMappingURL=chunk-
|
|
143
|
+
//# sourceMappingURL=chunk-GCHM5BYL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/adapters/agy.ts","../src/adapters/grok.ts","../src/adapters/opencode.ts","../src/adapters/registry.ts"],"sourcesContent":["import { headerValue, type AdapterContext, type EngramAdapter, type ResolvedIdentity } from \"./types.js\";\n\n/**\n * Antigravity CLI (agy) adapter.\n *\n * Detection: agy's MCP clientInfo.name contains \"agy\" in the initialize\n * handshake. The bundled stdio→HTTP proxy also sends\n * X-Engram-Client-Id: agy-cli (matching the lifecycle hook runner's\n * client id) so detection does not depend on the handshake alone.\n *\n * Namespace can be set with the X-Engram-Namespace header; the proxy\n * forwards REMNIC_NAMESPACE/ENGRAM_NAMESPACE as that header.\n *\n * Principal overrides are intentionally handled only by the HTTP server's\n * trustPrincipalHeader gate. Adapters must not independently trust\n * X-Engram-Principal.\n */\nexport class AgyAdapter implements EngramAdapter {\n readonly id = \"agy\";\n\n matches(context: AdapterContext): boolean {\n const clientName = context.clientInfo?.name?.toLowerCase() ?? \"\";\n if (clientName.includes(\"agy\")) return true;\n\n const clientId = headerValue(context.headers, \"x-engram-client-id\");\n if (clientId && (clientId.toLowerCase() === \"agy-cli\" || clientId.toLowerCase() === \"agy\")) {\n return true;\n }\n\n return false;\n }\n\n resolveIdentity(context: AdapterContext): ResolvedIdentity {\n const mcpSessionId = headerValue(context.headers, \"mcp-session-id\");\n const namespaceHeader = headerValue(context.headers, \"x-engram-namespace\");\n\n return {\n namespace: namespaceHeader ?? \"agy\",\n namespaceExplicit: namespaceHeader !== undefined,\n principal: \"agy\",\n sessionKey: mcpSessionId ?? context.sessionKey,\n adapterId: this.id,\n };\n }\n}\n","import { headerValue, type AdapterContext, type EngramAdapter, type ResolvedIdentity } from \"./types.js\";\n\n/**\n * Grok adapter.\n *\n * Detection: Grok clients identify themselves with a clientInfo name\n * containing \"grok\" in the MCP initialize handshake, and send\n * User-Agent: grok/<version> on HTTP requests. The exact clientInfo\n * name is not yet stable across Grok surfaces (desktop app, CLI), so\n * detection uses a contains-match for forward compatibility.\n *\n * User-configured identification is also supported via headers:\n * \"headers\": { \"X-Engram-Client-Id\": \"grok\" }\n *\n * Principal overrides are intentionally handled only by the HTTP server's\n * trustPrincipalHeader gate. Adapters must not independently trust\n * X-Engram-Principal.\n */\nexport class GrokAdapter implements EngramAdapter {\n readonly id = \"grok\";\n\n matches(context: AdapterContext): boolean {\n // Primary: MCP clientInfo from initialize handshake\n const clientName = context.clientInfo?.name?.toLowerCase() ?? \"\";\n if (clientName.includes(\"grok\")) return true;\n\n // Fallback: User-Agent header (\"grok/<version>\")\n const ua = headerValue(context.headers, \"user-agent\");\n if (ua && ua.toLowerCase().startsWith(\"grok/\")) return true;\n\n // Fallback: user-configured client identifier header\n const clientId = headerValue(context.headers, \"x-engram-client-id\");\n if (clientId?.toLowerCase() === \"grok\") return true;\n\n return false;\n }\n\n resolveIdentity(context: AdapterContext): ResolvedIdentity {\n // MCP session ID (standard MCP header, server-assigned)\n const mcpSessionId = headerValue(context.headers, \"mcp-session-id\");\n\n // Namespace: explicit header > default\n const namespaceHeader = headerValue(context.headers, \"x-engram-namespace\");\n\n return {\n namespace: namespaceHeader ?? \"grok\",\n namespaceExplicit: namespaceHeader !== undefined,\n principal: \"grok\",\n sessionKey: mcpSessionId ?? context.sessionKey,\n adapterId: this.id,\n };\n }\n}\n","import { headerValue, type AdapterContext, type EngramAdapter, type ResolvedIdentity } from \"./types.js\";\n\n/**\n * OpenCode adapter.\n *\n * Detection: OpenCode identifies itself as \"opencode\" in the MCP\n * clientInfo of its initialize handshake, and sends\n * User-Agent: opencode/<version> on HTTP requests.\n *\n * User-configured identification is also supported via headers in the\n * OpenCode MCP server config:\n * \"headers\": { \"X-Engram-Client-Id\": \"opencode\" }\n *\n * Principal overrides are intentionally handled only by the HTTP server's\n * trustPrincipalHeader gate. Adapters must not independently trust\n * X-Engram-Principal.\n */\nexport class OpenCodeAdapter implements EngramAdapter {\n readonly id = \"opencode\";\n\n matches(context: AdapterContext): boolean {\n // Primary: MCP clientInfo from initialize handshake\n const clientName = context.clientInfo?.name?.toLowerCase() ?? \"\";\n if (clientName.includes(\"opencode\")) return true;\n\n // Fallback: User-Agent header (\"opencode/<version>\")\n const ua = headerValue(context.headers, \"user-agent\");\n if (ua && ua.toLowerCase().startsWith(\"opencode/\")) return true;\n\n // Fallback: user-configured client identifier header\n const clientId = headerValue(context.headers, \"x-engram-client-id\");\n if (clientId?.toLowerCase() === \"opencode\") return true;\n\n return false;\n }\n\n resolveIdentity(context: AdapterContext): ResolvedIdentity {\n // MCP session ID (standard MCP header, server-assigned)\n const mcpSessionId = headerValue(context.headers, \"mcp-session-id\");\n\n // Namespace: explicit header > default\n const namespaceHeader = headerValue(context.headers, \"x-engram-namespace\");\n\n return {\n namespace: namespaceHeader ?? \"opencode\",\n namespaceExplicit: namespaceHeader !== undefined,\n principal: \"opencode\",\n sessionKey: mcpSessionId ?? context.sessionKey,\n adapterId: this.id,\n };\n }\n}\n","import type { AdapterContext, EngramAdapter, ResolvedIdentity } from \"./types.js\";\nimport { ClaudeCodeAdapter } from \"./claude-code.js\";\nimport { CodexAdapter } from \"./codex.js\";\nimport { AgyAdapter } from \"./agy.js\";\nimport { DevinAdapter } from \"./devin.js\";\nimport { GrokAdapter } from \"./grok.js\";\nimport { OpenCodeAdapter } from \"./opencode.js\";\nimport { ReplitAdapter } from \"./replit.js\";\nimport { HermesAdapter } from \"./hermes.js\";\n\n/**\n * Adapter registry. Attempts to identify which external system is\n * connecting by checking each registered adapter in order. Falls back\n * to explicit namespace/principal from the request args.\n */\nexport class AdapterRegistry {\n private readonly adapters: EngramAdapter[];\n\n constructor(adapters?: EngramAdapter[]) {\n this.adapters = adapters ?? [\n new HermesAdapter(),\n new ReplitAdapter(),\n new CodexAdapter(),\n new AgyAdapter(),\n new DevinAdapter(),\n new ClaudeCodeAdapter(),\n new GrokAdapter(),\n new OpenCodeAdapter(),\n ];\n }\n\n /**\n * Try each adapter in order. Return the first match, or null if\n * no adapter recognizes the request context.\n */\n resolve(context: AdapterContext): ResolvedIdentity | null {\n for (const adapter of this.adapters) {\n if (adapter.matches(context)) {\n return adapter.resolveIdentity(context);\n }\n }\n const namespace = context.namespace?.trim();\n const principal = context.principal?.trim();\n if (namespace && principal) {\n return {\n namespace,\n principal,\n sessionKey: context.sessionKey,\n adapterId: \"explicit\",\n };\n }\n return null;\n }\n\n /** List registered adapter IDs */\n list(): string[] {\n return this.adapters.map((a) => a.id);\n }\n}\n"],"mappings":"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","names":[]}
|
|
@@ -185,7 +185,7 @@ import {
|
|
|
185
185
|
} from "./chunk-2524MOWK.js";
|
|
186
186
|
import {
|
|
187
187
|
AdapterRegistry
|
|
188
|
-
} from "./chunk-
|
|
188
|
+
} from "./chunk-GCHM5BYL.js";
|
|
189
189
|
import {
|
|
190
190
|
WHO_KNOWS_DEFAULT_LIMIT,
|
|
191
191
|
WHO_KNOWS_MCP_TOOLS,
|
|
@@ -67314,4 +67314,4 @@ export {
|
|
|
67314
67314
|
EngramAccessService,
|
|
67315
67315
|
AccessAdminOpsSurface
|
|
67316
67316
|
};
|
|
67317
|
-
//# sourceMappingURL=chunk-
|
|
67317
|
+
//# sourceMappingURL=chunk-RMU3O74L.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
ExtractionDrain,
|
|
3
3
|
TurnIngestionCoordinator,
|
|
4
4
|
shouldSkipImplicitExtraction
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-RMU3O74L.js";
|
|
6
6
|
import {
|
|
7
7
|
headerConnector,
|
|
8
8
|
renderExtractionConversation,
|
|
@@ -447,4 +447,4 @@ export {
|
|
|
447
447
|
ClaimBufferStorage,
|
|
448
448
|
BufferDrainRunner
|
|
449
449
|
};
|
|
450
|
-
//# sourceMappingURL=chunk-
|
|
450
|
+
//# sourceMappingURL=chunk-W5GGKQVS.js.map
|
package/dist/cli.js
CHANGED
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
runWorkProductStatusCliCommand,
|
|
92
92
|
runWorkProjectCliCommand,
|
|
93
93
|
runWorkTaskCliCommand
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-RMU3O74L.js";
|
|
95
95
|
import "./chunk-B3DR2JBZ.js";
|
|
96
96
|
import "./chunk-GOZXQNIM.js";
|
|
97
97
|
import "./chunk-H4CKS5B2.js";
|
|
@@ -159,7 +159,7 @@ import "./chunk-I7TR2OCU.js";
|
|
|
159
159
|
import "./chunk-VQ7B2Q6M.js";
|
|
160
160
|
import "./chunk-2524MOWK.js";
|
|
161
161
|
import "./chunk-6O3SGRJD.js";
|
|
162
|
-
import "./chunk-
|
|
162
|
+
import "./chunk-GCHM5BYL.js";
|
|
163
163
|
import "./chunk-3JKYQBLC.js";
|
|
164
164
|
import "./chunk-7RKSJVOQ.js";
|
|
165
165
|
import "./chunk-ZTJPFACY.js";
|
package/dist/explicit-capture.js
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
shouldSkipImplicitExtraction,
|
|
9
9
|
stripInlineExplicitCaptureNotes,
|
|
10
10
|
validateExplicitCaptureInput
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-RMU3O74L.js";
|
|
12
12
|
import "./chunk-B3DR2JBZ.js";
|
|
13
13
|
import "./chunk-GOZXQNIM.js";
|
|
14
14
|
import "./chunk-H4CKS5B2.js";
|
|
@@ -76,7 +76,7 @@ import "./chunk-I7TR2OCU.js";
|
|
|
76
76
|
import "./chunk-VQ7B2Q6M.js";
|
|
77
77
|
import "./chunk-2524MOWK.js";
|
|
78
78
|
import "./chunk-6O3SGRJD.js";
|
|
79
|
-
import "./chunk-
|
|
79
|
+
import "./chunk-GCHM5BYL.js";
|
|
80
80
|
import "./chunk-3JKYQBLC.js";
|
|
81
81
|
import "./chunk-7RKSJVOQ.js";
|
|
82
82
|
import "./chunk-ZTJPFACY.js";
|
package/dist/index.js
CHANGED
|
@@ -259,7 +259,7 @@ import {
|
|
|
259
259
|
writeManifest,
|
|
260
260
|
writeMeetingEpisodeMemory,
|
|
261
261
|
writeTimelineState
|
|
262
|
-
} from "./chunk-
|
|
262
|
+
} from "./chunk-RMU3O74L.js";
|
|
263
263
|
import {
|
|
264
264
|
WEARABLE_SOURCE_PREFIX,
|
|
265
265
|
WearablesInputError,
|
|
@@ -471,7 +471,7 @@ import "./chunk-I7TR2OCU.js";
|
|
|
471
471
|
import "./chunk-VQ7B2Q6M.js";
|
|
472
472
|
import "./chunk-2524MOWK.js";
|
|
473
473
|
import "./chunk-6O3SGRJD.js";
|
|
474
|
-
import "./chunk-
|
|
474
|
+
import "./chunk-GCHM5BYL.js";
|
|
475
475
|
import "./chunk-3JKYQBLC.js";
|
|
476
476
|
import "./chunk-7RKSJVOQ.js";
|
|
477
477
|
import "./chunk-ZTJPFACY.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BufferDrainRunner
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-W5GGKQVS.js";
|
|
4
|
+
import "../chunk-RMU3O74L.js";
|
|
5
5
|
import "../chunk-B3DR2JBZ.js";
|
|
6
6
|
import "../chunk-GOZXQNIM.js";
|
|
7
7
|
import "../chunk-H4CKS5B2.js";
|
|
@@ -69,7 +69,7 @@ import "../chunk-I7TR2OCU.js";
|
|
|
69
69
|
import "../chunk-VQ7B2Q6M.js";
|
|
70
70
|
import "../chunk-2524MOWK.js";
|
|
71
71
|
import "../chunk-6O3SGRJD.js";
|
|
72
|
-
import "../chunk-
|
|
72
|
+
import "../chunk-GCHM5BYL.js";
|
|
73
73
|
import "../chunk-3JKYQBLC.js";
|
|
74
74
|
import "../chunk-7RKSJVOQ.js";
|
|
75
75
|
import "../chunk-ZTJPFACY.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BufferDrainRunner,
|
|
3
3
|
ClaimBufferStorage
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-W5GGKQVS.js";
|
|
5
|
+
import "../chunk-RMU3O74L.js";
|
|
6
6
|
import "../chunk-B3DR2JBZ.js";
|
|
7
7
|
import "../chunk-GOZXQNIM.js";
|
|
8
8
|
import "../chunk-H4CKS5B2.js";
|
|
@@ -70,7 +70,7 @@ import "../chunk-I7TR2OCU.js";
|
|
|
70
70
|
import "../chunk-VQ7B2Q6M.js";
|
|
71
71
|
import "../chunk-2524MOWK.js";
|
|
72
72
|
import "../chunk-6O3SGRJD.js";
|
|
73
|
-
import "../chunk-
|
|
73
|
+
import "../chunk-GCHM5BYL.js";
|
|
74
74
|
import "../chunk-3JKYQBLC.js";
|
|
75
75
|
import "../chunk-7RKSJVOQ.js";
|
|
76
76
|
import "../chunk-ZTJPFACY.js";
|
package/dist/orchestrator.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
mergeGraphExpandedResults,
|
|
7
7
|
qmdStartupCollectionChecksWithTimeout,
|
|
8
8
|
resolveEffectiveIdentityInjectionMode
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RMU3O74L.js";
|
|
10
10
|
import "./chunk-B3DR2JBZ.js";
|
|
11
11
|
import "./chunk-GOZXQNIM.js";
|
|
12
12
|
import "./chunk-H4CKS5B2.js";
|
|
@@ -76,7 +76,7 @@ import "./chunk-I7TR2OCU.js";
|
|
|
76
76
|
import "./chunk-VQ7B2Q6M.js";
|
|
77
77
|
import "./chunk-2524MOWK.js";
|
|
78
78
|
import "./chunk-6O3SGRJD.js";
|
|
79
|
-
import "./chunk-
|
|
79
|
+
import "./chunk-GCHM5BYL.js";
|
|
80
80
|
import "./chunk-3JKYQBLC.js";
|
|
81
81
|
import "./chunk-7RKSJVOQ.js";
|
|
82
82
|
import "./chunk-ZTJPFACY.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runRecallNavigation
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RMU3O74L.js";
|
|
4
4
|
import "./chunk-B3DR2JBZ.js";
|
|
5
5
|
import "./chunk-GOZXQNIM.js";
|
|
6
6
|
import "./chunk-H4CKS5B2.js";
|
|
@@ -68,7 +68,7 @@ import "./chunk-I7TR2OCU.js";
|
|
|
68
68
|
import "./chunk-VQ7B2Q6M.js";
|
|
69
69
|
import "./chunk-2524MOWK.js";
|
|
70
70
|
import "./chunk-6O3SGRJD.js";
|
|
71
|
-
import "./chunk-
|
|
71
|
+
import "./chunk-GCHM5BYL.js";
|
|
72
72
|
import "./chunk-3JKYQBLC.js";
|
|
73
73
|
import "./chunk-7RKSJVOQ.js";
|
|
74
74
|
import "./chunk-ZTJPFACY.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remnic/core",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.131",
|
|
4
4
|
"description": "Framework-agnostic Remnic memory engine — orchestrator, storage, extraction, search, trust zones",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -3396,7 +3396,7 @@
|
|
|
3396
3396
|
"core"
|
|
3397
3397
|
],
|
|
3398
3398
|
"peerDependencies": {
|
|
3399
|
-
"@remnic/coding-graph": "^10.0.
|
|
3399
|
+
"@remnic/coding-graph": "^10.0.131"
|
|
3400
3400
|
},
|
|
3401
3401
|
"peerDependenciesMeta": {
|
|
3402
3402
|
"@remnic/coding-graph": {
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import assert from "node:assert/strict";
|
|
2
|
+
import test from "node:test";
|
|
3
|
+
|
|
4
|
+
import { AdapterRegistry } from "./registry.js";
|
|
5
|
+
import { AgyAdapter } from "./agy.js";
|
|
6
|
+
import type { AdapterContext } from "./types.js";
|
|
7
|
+
|
|
8
|
+
function context(overrides: Partial<AdapterContext> = {}): AdapterContext {
|
|
9
|
+
return { headers: {}, ...overrides };
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
test("AgyAdapter matches clientInfo names containing agy", () => {
|
|
13
|
+
const adapter = new AgyAdapter();
|
|
14
|
+
assert.equal(adapter.matches(context({ clientInfo: { name: "agy" } })), true);
|
|
15
|
+
assert.equal(adapter.matches(context({ clientInfo: { name: "agy-cli" } })), true);
|
|
16
|
+
assert.equal(adapter.matches(context({ clientInfo: { name: "Agy" } })), true);
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
test("AgyAdapter matches the configured client-id header", () => {
|
|
20
|
+
const adapter = new AgyAdapter();
|
|
21
|
+
assert.equal(
|
|
22
|
+
adapter.matches(context({ headers: { "X-Engram-Client-Id": "agy-cli" } })),
|
|
23
|
+
true,
|
|
24
|
+
);
|
|
25
|
+
assert.equal(
|
|
26
|
+
adapter.matches(context({ headers: { "X-Engram-Client-Id": "agy" } })),
|
|
27
|
+
true,
|
|
28
|
+
);
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
test("AgyAdapter rejects unrelated clients", () => {
|
|
32
|
+
const adapter = new AgyAdapter();
|
|
33
|
+
assert.equal(adapter.matches(context()), false);
|
|
34
|
+
assert.equal(adapter.matches(context({ clientInfo: { name: "claude-code" } })), false);
|
|
35
|
+
assert.equal(adapter.matches(context({ clientInfo: { name: "codex-mcp-client" } })), false);
|
|
36
|
+
assert.equal(
|
|
37
|
+
adapter.matches(context({ headers: { "X-Engram-Client-Id": "claude-code" } })),
|
|
38
|
+
false,
|
|
39
|
+
);
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
test("AgyAdapter resolves agy namespace and principal with header overrides", () => {
|
|
43
|
+
const adapter = new AgyAdapter();
|
|
44
|
+
assert.deepEqual(
|
|
45
|
+
adapter.resolveIdentity(context({ headers: { "mcp-session-id": "sess-1" } })),
|
|
46
|
+
{
|
|
47
|
+
namespace: "agy",
|
|
48
|
+
namespaceExplicit: false,
|
|
49
|
+
principal: "agy",
|
|
50
|
+
sessionKey: "sess-1",
|
|
51
|
+
adapterId: "agy",
|
|
52
|
+
},
|
|
53
|
+
);
|
|
54
|
+
assert.deepEqual(
|
|
55
|
+
adapter.resolveIdentity(
|
|
56
|
+
context({ headers: { "x-engram-namespace": "team-space" } }),
|
|
57
|
+
),
|
|
58
|
+
{
|
|
59
|
+
namespace: "team-space",
|
|
60
|
+
namespaceExplicit: true,
|
|
61
|
+
principal: "agy",
|
|
62
|
+
sessionKey: undefined,
|
|
63
|
+
adapterId: "agy",
|
|
64
|
+
},
|
|
65
|
+
);
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
test("registry resolves Agy requests before the Claude Code adapter", () => {
|
|
69
|
+
const registry = new AdapterRegistry();
|
|
70
|
+
const identity = registry.resolve(
|
|
71
|
+
context({ headers: { "x-engram-client-id": "agy-cli" } }),
|
|
72
|
+
);
|
|
73
|
+
assert.equal(identity?.adapterId, "agy");
|
|
74
|
+
assert.equal(identity?.namespace, "agy");
|
|
75
|
+
});
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { headerValue, type AdapterContext, type EngramAdapter, type ResolvedIdentity } from "./types.js";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Antigravity CLI (agy) adapter.
|
|
5
|
+
*
|
|
6
|
+
* Detection: agy's MCP clientInfo.name contains "agy" in the initialize
|
|
7
|
+
* handshake. The bundled stdio→HTTP proxy also sends
|
|
8
|
+
* X-Engram-Client-Id: agy-cli (matching the lifecycle hook runner's
|
|
9
|
+
* client id) so detection does not depend on the handshake alone.
|
|
10
|
+
*
|
|
11
|
+
* Namespace can be set with the X-Engram-Namespace header; the proxy
|
|
12
|
+
* forwards REMNIC_NAMESPACE/ENGRAM_NAMESPACE as that header.
|
|
13
|
+
*
|
|
14
|
+
* Principal overrides are intentionally handled only by the HTTP server's
|
|
15
|
+
* trustPrincipalHeader gate. Adapters must not independently trust
|
|
16
|
+
* X-Engram-Principal.
|
|
17
|
+
*/
|
|
18
|
+
export class AgyAdapter implements EngramAdapter {
|
|
19
|
+
readonly id = "agy";
|
|
20
|
+
|
|
21
|
+
matches(context: AdapterContext): boolean {
|
|
22
|
+
const clientName = context.clientInfo?.name?.toLowerCase() ?? "";
|
|
23
|
+
if (clientName.includes("agy")) return true;
|
|
24
|
+
|
|
25
|
+
const clientId = headerValue(context.headers, "x-engram-client-id");
|
|
26
|
+
if (clientId && (clientId.toLowerCase() === "agy-cli" || clientId.toLowerCase() === "agy")) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
resolveIdentity(context: AdapterContext): ResolvedIdentity {
|
|
34
|
+
const mcpSessionId = headerValue(context.headers, "mcp-session-id");
|
|
35
|
+
const namespaceHeader = headerValue(context.headers, "x-engram-namespace");
|
|
36
|
+
|
|
37
|
+
return {
|
|
38
|
+
namespace: namespaceHeader ?? "agy",
|
|
39
|
+
namespaceExplicit: namespaceHeader !== undefined,
|
|
40
|
+
principal: "agy",
|
|
41
|
+
sessionKey: mcpSessionId ?? context.sessionKey,
|
|
42
|
+
adapterId: this.id,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
}
|
package/src/adapters/registry.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { AdapterContext, EngramAdapter, ResolvedIdentity } from "./types.js";
|
|
2
2
|
import { ClaudeCodeAdapter } from "./claude-code.js";
|
|
3
3
|
import { CodexAdapter } from "./codex.js";
|
|
4
|
+
import { AgyAdapter } from "./agy.js";
|
|
4
5
|
import { DevinAdapter } from "./devin.js";
|
|
5
6
|
import { GrokAdapter } from "./grok.js";
|
|
6
7
|
import { OpenCodeAdapter } from "./opencode.js";
|
|
@@ -20,6 +21,7 @@ export class AdapterRegistry {
|
|
|
20
21
|
new HermesAdapter(),
|
|
21
22
|
new ReplitAdapter(),
|
|
22
23
|
new CodexAdapter(),
|
|
24
|
+
new AgyAdapter(),
|
|
23
25
|
new DevinAdapter(),
|
|
24
26
|
new ClaudeCodeAdapter(),
|
|
25
27
|
new GrokAdapter(),
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/adapters/grok.ts","../src/adapters/opencode.ts","../src/adapters/registry.ts"],"sourcesContent":["import { headerValue, type AdapterContext, type EngramAdapter, type ResolvedIdentity } from \"./types.js\";\n\n/**\n * Grok adapter.\n *\n * Detection: Grok clients identify themselves with a clientInfo name\n * containing \"grok\" in the MCP initialize handshake, and send\n * User-Agent: grok/<version> on HTTP requests. The exact clientInfo\n * name is not yet stable across Grok surfaces (desktop app, CLI), so\n * detection uses a contains-match for forward compatibility.\n *\n * User-configured identification is also supported via headers:\n * \"headers\": { \"X-Engram-Client-Id\": \"grok\" }\n *\n * Principal overrides are intentionally handled only by the HTTP server's\n * trustPrincipalHeader gate. Adapters must not independently trust\n * X-Engram-Principal.\n */\nexport class GrokAdapter implements EngramAdapter {\n readonly id = \"grok\";\n\n matches(context: AdapterContext): boolean {\n // Primary: MCP clientInfo from initialize handshake\n const clientName = context.clientInfo?.name?.toLowerCase() ?? \"\";\n if (clientName.includes(\"grok\")) return true;\n\n // Fallback: User-Agent header (\"grok/<version>\")\n const ua = headerValue(context.headers, \"user-agent\");\n if (ua && ua.toLowerCase().startsWith(\"grok/\")) return true;\n\n // Fallback: user-configured client identifier header\n const clientId = headerValue(context.headers, \"x-engram-client-id\");\n if (clientId?.toLowerCase() === \"grok\") return true;\n\n return false;\n }\n\n resolveIdentity(context: AdapterContext): ResolvedIdentity {\n // MCP session ID (standard MCP header, server-assigned)\n const mcpSessionId = headerValue(context.headers, \"mcp-session-id\");\n\n // Namespace: explicit header > default\n const namespaceHeader = headerValue(context.headers, \"x-engram-namespace\");\n\n return {\n namespace: namespaceHeader ?? \"grok\",\n namespaceExplicit: namespaceHeader !== undefined,\n principal: \"grok\",\n sessionKey: mcpSessionId ?? context.sessionKey,\n adapterId: this.id,\n };\n }\n}\n","import { headerValue, type AdapterContext, type EngramAdapter, type ResolvedIdentity } from \"./types.js\";\n\n/**\n * OpenCode adapter.\n *\n * Detection: OpenCode identifies itself as \"opencode\" in the MCP\n * clientInfo of its initialize handshake, and sends\n * User-Agent: opencode/<version> on HTTP requests.\n *\n * User-configured identification is also supported via headers in the\n * OpenCode MCP server config:\n * \"headers\": { \"X-Engram-Client-Id\": \"opencode\" }\n *\n * Principal overrides are intentionally handled only by the HTTP server's\n * trustPrincipalHeader gate. Adapters must not independently trust\n * X-Engram-Principal.\n */\nexport class OpenCodeAdapter implements EngramAdapter {\n readonly id = \"opencode\";\n\n matches(context: AdapterContext): boolean {\n // Primary: MCP clientInfo from initialize handshake\n const clientName = context.clientInfo?.name?.toLowerCase() ?? \"\";\n if (clientName.includes(\"opencode\")) return true;\n\n // Fallback: User-Agent header (\"opencode/<version>\")\n const ua = headerValue(context.headers, \"user-agent\");\n if (ua && ua.toLowerCase().startsWith(\"opencode/\")) return true;\n\n // Fallback: user-configured client identifier header\n const clientId = headerValue(context.headers, \"x-engram-client-id\");\n if (clientId?.toLowerCase() === \"opencode\") return true;\n\n return false;\n }\n\n resolveIdentity(context: AdapterContext): ResolvedIdentity {\n // MCP session ID (standard MCP header, server-assigned)\n const mcpSessionId = headerValue(context.headers, \"mcp-session-id\");\n\n // Namespace: explicit header > default\n const namespaceHeader = headerValue(context.headers, \"x-engram-namespace\");\n\n return {\n namespace: namespaceHeader ?? \"opencode\",\n namespaceExplicit: namespaceHeader !== undefined,\n principal: \"opencode\",\n sessionKey: mcpSessionId ?? context.sessionKey,\n adapterId: this.id,\n };\n }\n}\n","import type { AdapterContext, EngramAdapter, ResolvedIdentity } from \"./types.js\";\nimport { ClaudeCodeAdapter } from \"./claude-code.js\";\nimport { CodexAdapter } from \"./codex.js\";\nimport { DevinAdapter } from \"./devin.js\";\nimport { GrokAdapter } from \"./grok.js\";\nimport { OpenCodeAdapter } from \"./opencode.js\";\nimport { ReplitAdapter } from \"./replit.js\";\nimport { HermesAdapter } from \"./hermes.js\";\n\n/**\n * Adapter registry. Attempts to identify which external system is\n * connecting by checking each registered adapter in order. Falls back\n * to explicit namespace/principal from the request args.\n */\nexport class AdapterRegistry {\n private readonly adapters: EngramAdapter[];\n\n constructor(adapters?: EngramAdapter[]) {\n this.adapters = adapters ?? [\n new HermesAdapter(),\n new ReplitAdapter(),\n new CodexAdapter(),\n new DevinAdapter(),\n new ClaudeCodeAdapter(),\n new GrokAdapter(),\n new OpenCodeAdapter(),\n ];\n }\n\n /**\n * Try each adapter in order. Return the first match, or null if\n * no adapter recognizes the request context.\n */\n resolve(context: AdapterContext): ResolvedIdentity | null {\n for (const adapter of this.adapters) {\n if (adapter.matches(context)) {\n return adapter.resolveIdentity(context);\n }\n }\n const namespace = context.namespace?.trim();\n const principal = context.principal?.trim();\n if (namespace && principal) {\n return {\n namespace,\n principal,\n sessionKey: context.sessionKey,\n adapterId: \"explicit\",\n };\n }\n return null;\n }\n\n /** List registered adapter IDs */\n list(): string[] {\n return this.adapters.map((a) => a.id);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAkBO,IAAM,cAAN,MAA2C;AAAA,EACvC,KAAK;AAAA,EAEd,QAAQ,SAAkC;AAExC,UAAM,aAAa,QAAQ,YAAY,MAAM,YAAY,KAAK;AAC9D,QAAI,WAAW,SAAS,MAAM,EAAG,QAAO;AAGxC,UAAM,KAAK,YAAY,QAAQ,SAAS,YAAY;AACpD,QAAI,MAAM,GAAG,YAAY,EAAE,WAAW,OAAO,EAAG,QAAO;AAGvD,UAAM,WAAW,YAAY,QAAQ,SAAS,oBAAoB;AAClE,QAAI,UAAU,YAAY,MAAM,OAAQ,QAAO;AAE/C,WAAO;AAAA,EACT;AAAA,EAEA,gBAAgB,SAA2C;AAEzD,UAAM,eAAe,YAAY,QAAQ,SAAS,gBAAgB;AAGlE,UAAM,kBAAkB,YAAY,QAAQ,SAAS,oBAAoB;AAEzE,WAAO;AAAA,MACL,WAAW,mBAAmB;AAAA,MAC9B,mBAAmB,oBAAoB;AAAA,MACvC,WAAW;AAAA,MACX,YAAY,gBAAgB,QAAQ;AAAA,MACpC,WAAW,KAAK;AAAA,IAClB;AAAA,EACF;AACF;;;ACnCO,IAAM,kBAAN,MAA+C;AAAA,EAC3C,KAAK;AAAA,EAEd,QAAQ,SAAkC;AAExC,UAAM,aAAa,QAAQ,YAAY,MAAM,YAAY,KAAK;AAC9D,QAAI,WAAW,SAAS,UAAU,EAAG,QAAO;AAG5C,UAAM,KAAK,YAAY,QAAQ,SAAS,YAAY;AACpD,QAAI,MAAM,GAAG,YAAY,EAAE,WAAW,WAAW,EAAG,QAAO;AAG3D,UAAM,WAAW,YAAY,QAAQ,SAAS,oBAAoB;AAClE,QAAI,UAAU,YAAY,MAAM,WAAY,QAAO;AAEnD,WAAO;AAAA,EACT;AAAA,EAEA,gBAAgB,SAA2C;AAEzD,UAAM,eAAe,YAAY,QAAQ,SAAS,gBAAgB;AAGlE,UAAM,kBAAkB,YAAY,QAAQ,SAAS,oBAAoB;AAEzE,WAAO;AAAA,MACL,WAAW,mBAAmB;AAAA,MAC9B,mBAAmB,oBAAoB;AAAA,MACvC,WAAW;AAAA,MACX,YAAY,gBAAgB,QAAQ;AAAA,MACpC,WAAW,KAAK;AAAA,IAClB;AAAA,EACF;AACF;;;ACrCO,IAAM,kBAAN,MAAsB;AAAA,EACV;AAAA,EAEjB,YAAY,UAA4B;AACtC,SAAK,WAAW,YAAY;AAAA,MAC1B,IAAI,cAAc;AAAA,MAClB,IAAI,cAAc;AAAA,MAClB,IAAI,aAAa;AAAA,MACjB,IAAI,aAAa;AAAA,MACjB,IAAI,kBAAkB;AAAA,MACtB,IAAI,YAAY;AAAA,MAChB,IAAI,gBAAgB;AAAA,IACtB;AAAA,EACF;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,QAAQ,SAAkD;AACxD,eAAW,WAAW,KAAK,UAAU;AACnC,UAAI,QAAQ,QAAQ,OAAO,GAAG;AAC5B,eAAO,QAAQ,gBAAgB,OAAO;AAAA,MACxC;AAAA,IACF;AACA,UAAM,YAAY,QAAQ,WAAW,KAAK;AAC1C,UAAM,YAAY,QAAQ,WAAW,KAAK;AAC1C,QAAI,aAAa,WAAW;AAC1B,aAAO;AAAA,QACL;AAAA,QACA;AAAA,QACA,YAAY,QAAQ;AAAA,QACpB,WAAW;AAAA,MACb;AAAA,IACF;AACA,WAAO;AAAA,EACT;AAAA;AAAA,EAGA,OAAiB;AACf,WAAO,KAAK,SAAS,IAAI,CAAC,MAAM,EAAE,EAAE;AAAA,EACtC;AACF;","names":[]}
|
|
File without changes
|
|
File without changes
|