@remnic/core 10.0.176 → 10.0.178
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 +8 -8
- package/dist/access-cli.js +8 -8
- package/dist/access-extraction-force-flush-preempt.js +8 -8
- package/dist/access-extraction-force-flush.js +8 -8
- package/dist/access-http-briefing.js +8 -8
- package/dist/access-http-query.js +8 -8
- package/dist/access-http.js +8 -8
- package/dist/access-identity-continuity-surface.js +8 -8
- package/dist/access-lcm-surface.js +8 -8
- package/dist/access-mcp.js +8 -8
- package/dist/access-observe-write-surface.js +8 -8
- package/dist/access-operations-batch.js +8 -8
- package/dist/access-operations.js +8 -8
- package/dist/access-recall-concurrency.js +8 -8
- package/dist/access-recall-response.js +8 -8
- package/dist/access-recall-surface.js +8 -8
- package/dist/access-service.js +8 -8
- package/dist/buffer-add-turns-bounded.js +2 -2
- package/dist/buffer-admission-idempotency.d.ts +10 -1
- package/dist/buffer-admission-idempotency.d.ts.map +1 -1
- package/dist/buffer-admission-idempotency.js +1 -1
- package/dist/buffer.js +3 -3
- package/dist/{chunk-AQ6V47Q7.js → chunk-5IHFERCT.js} +2 -2
- package/dist/{chunk-CFFYGKDJ.js → chunk-AJVCM2E3.js} +2 -2
- package/dist/{chunk-EQSOXIIH.js → chunk-BIUHAA2L.js} +2 -2
- package/dist/{chunk-GFOLOYAR.js → chunk-NIIWKDIU.js} +2 -2
- package/dist/{chunk-5EP2V675.js → chunk-O5ZCDK32.js} +2 -2
- package/dist/chunk-O5ZCDK32.js.map +1 -0
- package/dist/{chunk-VRDG7XFJ.js → chunk-TQ4BQ6Q6.js} +6 -6
- package/dist/{chunk-MFJM35R7.js → chunk-W5H2LHFD.js} +2 -2
- package/dist/{chunk-4TIGRBKH.js → chunk-WHKE2JCE.js} +4 -4
- package/dist/{chunk-SMDZTJ2D.js → chunk-ZWOYG256.js} +16 -2
- package/dist/chunk-ZWOYG256.js.map +1 -0
- package/dist/cli.js +8 -8
- package/dist/connectors/index.js +2 -2
- package/dist/explicit-capture.js +8 -8
- package/dist/extraction.js +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -8
- package/dist/orchestration/backlog-scheduler.js +9 -9
- package/dist/orchestration/buffer-drain-runner.js +9 -9
- package/dist/orchestrator.js +8 -8
- package/dist/recall-navigation.js +8 -8
- package/dist/source-agent-qualifier.js +3 -3
- package/dist/tokens.d.ts +13 -0
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +7 -1
- package/package.json +2 -2
- package/src/buffer-admission-idempotency.test.ts +16 -0
- package/src/buffer-admission-idempotency.ts +10 -1
- package/src/index.ts +1 -1
- package/src/tokens.ts +29 -1
- package/dist/chunk-5EP2V675.js.map +0 -1
- package/dist/chunk-SMDZTJ2D.js.map +0 -1
- /package/dist/{chunk-AQ6V47Q7.js.map → chunk-5IHFERCT.js.map} +0 -0
- /package/dist/{chunk-CFFYGKDJ.js.map → chunk-AJVCM2E3.js.map} +0 -0
- /package/dist/{chunk-EQSOXIIH.js.map → chunk-BIUHAA2L.js.map} +0 -0
- /package/dist/{chunk-GFOLOYAR.js.map → chunk-NIIWKDIU.js.map} +0 -0
- /package/dist/{chunk-VRDG7XFJ.js.map → chunk-TQ4BQ6Q6.js.map} +0 -0
- /package/dist/{chunk-MFJM35R7.js.map → chunk-W5H2LHFD.js.map} +0 -0
- /package/dist/{chunk-4TIGRBKH.js.map → chunk-WHKE2JCE.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assembleRecallResponse
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TQ4BQ6Q6.js";
|
|
4
4
|
import "./chunk-PQM3B54K.js";
|
|
5
5
|
import "./chunk-NWZEDYHT.js";
|
|
6
6
|
import "./chunk-GOZXQNIM.js";
|
|
@@ -194,11 +194,11 @@ import "./chunk-PHRLJFWZ.js";
|
|
|
194
194
|
import "./chunk-64NJRYU2.js";
|
|
195
195
|
import "./chunk-BPPUH5JM.js";
|
|
196
196
|
import "./chunk-LEO4MQ3S.js";
|
|
197
|
-
import "./chunk-
|
|
197
|
+
import "./chunk-W5H2LHFD.js";
|
|
198
198
|
import "./chunk-EI6V5UXY.js";
|
|
199
|
-
import "./chunk-
|
|
200
|
-
import "./chunk-
|
|
201
|
-
import "./chunk-
|
|
199
|
+
import "./chunk-5IHFERCT.js";
|
|
200
|
+
import "./chunk-NIIWKDIU.js";
|
|
201
|
+
import "./chunk-ZWOYG256.js";
|
|
202
202
|
import "./chunk-54V4BZWP.js";
|
|
203
203
|
import "./chunk-2CGLBUW3.js";
|
|
204
204
|
import "./chunk-DOWACHYO.js";
|
|
@@ -296,7 +296,7 @@ import "./chunk-2LSZVONP.js";
|
|
|
296
296
|
import "./chunk-DEUNUKTD.js";
|
|
297
297
|
import "./chunk-LXY5VVGM.js";
|
|
298
298
|
import "./chunk-GKCXTSFF.js";
|
|
299
|
-
import "./chunk-
|
|
299
|
+
import "./chunk-BIUHAA2L.js";
|
|
300
300
|
import "./chunk-3SP7EZWA.js";
|
|
301
301
|
import "./chunk-FDLPNFKE.js";
|
|
302
302
|
import "./chunk-CSAKJVXW.js";
|
|
@@ -323,9 +323,9 @@ import "./chunk-4TZOOUMK.js";
|
|
|
323
323
|
import "./chunk-FNFURZBZ.js";
|
|
324
324
|
import "./chunk-GZFKCLRC.js";
|
|
325
325
|
import "./chunk-EKUI7I2X.js";
|
|
326
|
-
import "./chunk-
|
|
326
|
+
import "./chunk-AJVCM2E3.js";
|
|
327
327
|
import "./chunk-6ZELOK6O.js";
|
|
328
|
-
import "./chunk-
|
|
328
|
+
import "./chunk-O5ZCDK32.js";
|
|
329
329
|
import "./chunk-QW27DOHG.js";
|
|
330
330
|
import "./chunk-KF7PQ7G2.js";
|
|
331
331
|
import "./chunk-C6WMSXCJ.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AccessRecallSurface
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TQ4BQ6Q6.js";
|
|
4
4
|
import "./chunk-PQM3B54K.js";
|
|
5
5
|
import "./chunk-NWZEDYHT.js";
|
|
6
6
|
import "./chunk-GOZXQNIM.js";
|
|
@@ -194,11 +194,11 @@ import "./chunk-PHRLJFWZ.js";
|
|
|
194
194
|
import "./chunk-64NJRYU2.js";
|
|
195
195
|
import "./chunk-BPPUH5JM.js";
|
|
196
196
|
import "./chunk-LEO4MQ3S.js";
|
|
197
|
-
import "./chunk-
|
|
197
|
+
import "./chunk-W5H2LHFD.js";
|
|
198
198
|
import "./chunk-EI6V5UXY.js";
|
|
199
|
-
import "./chunk-
|
|
200
|
-
import "./chunk-
|
|
201
|
-
import "./chunk-
|
|
199
|
+
import "./chunk-5IHFERCT.js";
|
|
200
|
+
import "./chunk-NIIWKDIU.js";
|
|
201
|
+
import "./chunk-ZWOYG256.js";
|
|
202
202
|
import "./chunk-54V4BZWP.js";
|
|
203
203
|
import "./chunk-2CGLBUW3.js";
|
|
204
204
|
import "./chunk-DOWACHYO.js";
|
|
@@ -296,7 +296,7 @@ import "./chunk-2LSZVONP.js";
|
|
|
296
296
|
import "./chunk-DEUNUKTD.js";
|
|
297
297
|
import "./chunk-LXY5VVGM.js";
|
|
298
298
|
import "./chunk-GKCXTSFF.js";
|
|
299
|
-
import "./chunk-
|
|
299
|
+
import "./chunk-BIUHAA2L.js";
|
|
300
300
|
import "./chunk-3SP7EZWA.js";
|
|
301
301
|
import "./chunk-FDLPNFKE.js";
|
|
302
302
|
import "./chunk-CSAKJVXW.js";
|
|
@@ -323,9 +323,9 @@ import "./chunk-4TZOOUMK.js";
|
|
|
323
323
|
import "./chunk-FNFURZBZ.js";
|
|
324
324
|
import "./chunk-GZFKCLRC.js";
|
|
325
325
|
import "./chunk-EKUI7I2X.js";
|
|
326
|
-
import "./chunk-
|
|
326
|
+
import "./chunk-AJVCM2E3.js";
|
|
327
327
|
import "./chunk-6ZELOK6O.js";
|
|
328
|
-
import "./chunk-
|
|
328
|
+
import "./chunk-O5ZCDK32.js";
|
|
329
329
|
import "./chunk-QW27DOHG.js";
|
|
330
330
|
import "./chunk-KF7PQ7G2.js";
|
|
331
331
|
import "./chunk-C6WMSXCJ.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-TQ4BQ6Q6.js";
|
|
8
8
|
import "./chunk-PQM3B54K.js";
|
|
9
9
|
import "./chunk-NWZEDYHT.js";
|
|
10
10
|
import "./chunk-GOZXQNIM.js";
|
|
@@ -198,11 +198,11 @@ import "./chunk-PHRLJFWZ.js";
|
|
|
198
198
|
import "./chunk-64NJRYU2.js";
|
|
199
199
|
import "./chunk-BPPUH5JM.js";
|
|
200
200
|
import "./chunk-LEO4MQ3S.js";
|
|
201
|
-
import "./chunk-
|
|
201
|
+
import "./chunk-W5H2LHFD.js";
|
|
202
202
|
import "./chunk-EI6V5UXY.js";
|
|
203
|
-
import "./chunk-
|
|
204
|
-
import "./chunk-
|
|
205
|
-
import "./chunk-
|
|
203
|
+
import "./chunk-5IHFERCT.js";
|
|
204
|
+
import "./chunk-NIIWKDIU.js";
|
|
205
|
+
import "./chunk-ZWOYG256.js";
|
|
206
206
|
import "./chunk-54V4BZWP.js";
|
|
207
207
|
import "./chunk-2CGLBUW3.js";
|
|
208
208
|
import "./chunk-DOWACHYO.js";
|
|
@@ -300,7 +300,7 @@ import "./chunk-2LSZVONP.js";
|
|
|
300
300
|
import "./chunk-DEUNUKTD.js";
|
|
301
301
|
import "./chunk-LXY5VVGM.js";
|
|
302
302
|
import "./chunk-GKCXTSFF.js";
|
|
303
|
-
import "./chunk-
|
|
303
|
+
import "./chunk-BIUHAA2L.js";
|
|
304
304
|
import "./chunk-3SP7EZWA.js";
|
|
305
305
|
import "./chunk-FDLPNFKE.js";
|
|
306
306
|
import "./chunk-CSAKJVXW.js";
|
|
@@ -327,9 +327,9 @@ import "./chunk-4TZOOUMK.js";
|
|
|
327
327
|
import "./chunk-FNFURZBZ.js";
|
|
328
328
|
import "./chunk-GZFKCLRC.js";
|
|
329
329
|
import "./chunk-EKUI7I2X.js";
|
|
330
|
-
import "./chunk-
|
|
330
|
+
import "./chunk-AJVCM2E3.js";
|
|
331
331
|
import "./chunk-6ZELOK6O.js";
|
|
332
|
-
import "./chunk-
|
|
332
|
+
import "./chunk-O5ZCDK32.js";
|
|
333
333
|
import "./chunk-QW27DOHG.js";
|
|
334
334
|
import "./chunk-KF7PQ7G2.js";
|
|
335
335
|
import "./chunk-C6WMSXCJ.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addTurnsBoundedWithAdmissionKey
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AJVCM2E3.js";
|
|
4
4
|
import "./chunk-6ZELOK6O.js";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-O5ZCDK32.js";
|
|
6
6
|
import "./chunk-AJQI2XCB.js";
|
|
7
7
|
import "./chunk-MEVBSF6T.js";
|
|
8
8
|
import "./chunk-3WCASNQZ.js";
|
|
@@ -3,7 +3,16 @@ export interface BufferAdmissionIdempotencyState {
|
|
|
3
3
|
admissionIdempotency?: Record<string, number>;
|
|
4
4
|
admissionIdempotencyOrder?: string[];
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* FIFO bound on recorded observe-buffer admission keys per session buffer.
|
|
8
|
+
* 4096 retains the most recent keys per session — roughly two
|
|
9
|
+
* hours at typical capture load. A replay of more than 4096 keys for one
|
|
10
|
+
* session still evicts its oldest keys, so a complete 5000-entry outbox
|
|
11
|
+
* replay for a single hot session is not guaranteed; the previous
|
|
12
|
+
* 512-entry ring only covered about fifteen minutes, so any drain outage
|
|
13
|
+
* longer than that made duplicate captures likely once replay caught up.
|
|
14
|
+
*/
|
|
15
|
+
export declare const BUFFER_ADMISSION_IDEMPOTENCY_CAP = 4096;
|
|
7
16
|
/** Client observe idempotency keys are namespaced by durable capture scope. */
|
|
8
17
|
export declare function scopeObserveBufferAdmissionIdempotencyKey(input: {
|
|
9
18
|
sessionKey: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buffer-admission-idempotency.d.ts","sourceRoot":"","sources":["../src/buffer-admission-idempotency.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,MAAM,WAAW,+BAA+B;IAC9C,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9C,yBAAyB,CAAC,EAAE,MAAM,EAAE,CAAC;CACtC;AAED,eAAO,MAAM,gCAAgC,
|
|
1
|
+
{"version":3,"file":"buffer-admission-idempotency.d.ts","sourceRoot":"","sources":["../src/buffer-admission-idempotency.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,MAAM,WAAW,+BAA+B;IAC9C,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9C,yBAAyB,CAAC,EAAE,MAAM,EAAE,CAAC;CACtC;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,gCAAgC,OAAO,CAAC;AAErD,+EAA+E;AAC/E,wBAAgB,yCAAyC,CAAC,KAAK,EAAE;IAC/D,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB,GAAG,MAAM,CAIT;AAED,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,+BAA+B,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAY5G;AAED,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,+BAA+B,GAAG,MAAM,EAAE,CAYhG;AAED,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,+BAA+B,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAK/G;AAED,wBAAgB,qCAAqC,CAAC,KAAK,EAAE,+BAA+B,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAWlI"}
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
hasBufferedAdmissionIdempotencyKey,
|
|
6
6
|
recordBufferedAdmissionIdempotencyKey,
|
|
7
7
|
scopeObserveBufferAdmissionIdempotencyKey
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-O5ZCDK32.js";
|
|
9
9
|
import "./chunk-PZ5AY32C.js";
|
|
10
10
|
export {
|
|
11
11
|
BUFFER_ADMISSION_IDEMPOTENCY_CAP,
|
package/dist/buffer.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SmartBuffer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BIUHAA2L.js";
|
|
4
4
|
import "./chunk-3SP7EZWA.js";
|
|
5
5
|
import "./chunk-FDLPNFKE.js";
|
|
6
6
|
import "./chunk-CSAKJVXW.js";
|
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
} from "./chunk-XAIRTELU.js";
|
|
13
13
|
import "./chunk-RADARJEC.js";
|
|
14
14
|
import "./chunk-TRFSTCQK.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-AJVCM2E3.js";
|
|
16
16
|
import "./chunk-6ZELOK6O.js";
|
|
17
17
|
import {
|
|
18
18
|
BUFFER_ADMISSION_IDEMPOTENCY_CAP
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-O5ZCDK32.js";
|
|
20
20
|
import "./chunk-YVUNHNB6.js";
|
|
21
21
|
import "./chunk-H3FZVNRN.js";
|
|
22
22
|
import "./chunk-ZJP66Q4I.js";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
BUILTIN_CONNECTORS,
|
|
3
3
|
isValidConnectorId,
|
|
4
4
|
loadRegistry
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NIIWKDIU.js";
|
|
6
6
|
import {
|
|
7
7
|
applyExtractionSourceGrounding
|
|
8
8
|
} from "./chunk-ULLGI6XR.js";
|
|
@@ -130,4 +130,4 @@ export {
|
|
|
130
130
|
renderExtractionConversation,
|
|
131
131
|
applyGroundingWithConnector
|
|
132
132
|
};
|
|
133
|
-
//# sourceMappingURL=chunk-
|
|
133
|
+
//# sourceMappingURL=chunk-5IHFERCT.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
hasBufferedAdmissionIdempotencyKey,
|
|
6
6
|
recordBufferedAdmissionIdempotencyKey
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-O5ZCDK32.js";
|
|
8
8
|
import {
|
|
9
9
|
refuseOverCapBatch,
|
|
10
10
|
resolveMaxTurnsPerSession
|
|
@@ -76,4 +76,4 @@ async function addTurnsBoundedWithAdmissionKey(host, batches, admissionKey, onRe
|
|
|
76
76
|
export {
|
|
77
77
|
addTurnsBoundedWithAdmissionKey
|
|
78
78
|
};
|
|
79
|
-
//# sourceMappingURL=chunk-
|
|
79
|
+
//# sourceMappingURL=chunk-AJVCM2E3.js.map
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./chunk-TRFSTCQK.js";
|
|
15
15
|
import {
|
|
16
16
|
addTurnsBoundedWithAdmissionKey
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-AJVCM2E3.js";
|
|
18
18
|
import {
|
|
19
19
|
selectEvictedBufferKeys
|
|
20
20
|
} from "./chunk-6ZELOK6O.js";
|
|
@@ -941,4 +941,4 @@ var SmartBuffer = class {
|
|
|
941
941
|
export {
|
|
942
942
|
SmartBuffer
|
|
943
943
|
};
|
|
944
|
-
//# sourceMappingURL=chunk-
|
|
944
|
+
//# sourceMappingURL=chunk-BIUHAA2L.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
loadTokenStore,
|
|
6
6
|
revokeToken,
|
|
7
7
|
saveTokenStore
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZWOYG256.js";
|
|
9
9
|
import {
|
|
10
10
|
getConnectorsDir,
|
|
11
11
|
getRegistryPath
|
|
@@ -3456,4 +3456,4 @@ export {
|
|
|
3456
3456
|
resolveWeCloneProxyConfigPath,
|
|
3457
3457
|
buildWeCloneProxyConfig
|
|
3458
3458
|
};
|
|
3459
|
-
//# sourceMappingURL=chunk-
|
|
3459
|
+
//# sourceMappingURL=chunk-NIIWKDIU.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/buffer-admission-idempotency.ts
|
|
2
|
-
var BUFFER_ADMISSION_IDEMPOTENCY_CAP =
|
|
2
|
+
var BUFFER_ADMISSION_IDEMPOTENCY_CAP = 4096;
|
|
3
3
|
function scopeObserveBufferAdmissionIdempotencyKey(input) {
|
|
4
4
|
const principal = input.principal?.trim() ?? "";
|
|
5
5
|
const client = input.clientKey.trim();
|
|
@@ -57,4 +57,4 @@ export {
|
|
|
57
57
|
hasBufferedAdmissionIdempotencyKey,
|
|
58
58
|
recordBufferedAdmissionIdempotencyKey
|
|
59
59
|
};
|
|
60
|
-
//# sourceMappingURL=chunk-
|
|
60
|
+
//# sourceMappingURL=chunk-O5ZCDK32.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/buffer-admission-idempotency.ts"],"sourcesContent":["/** Fields on {@link BufferState} used by observe-buffer idempotency (#3368). */\nexport interface BufferAdmissionIdempotencyState {\n admissionIdempotency?: Record<string, number>;\n admissionIdempotencyOrder?: string[];\n}\n\n/**\n * FIFO bound on recorded observe-buffer admission keys per session buffer.\n * 4096 retains the most recent keys per session — roughly two\n * hours at typical capture load. A replay of more than 4096 keys for one\n * session still evicts its oldest keys, so a complete 5000-entry outbox\n * replay for a single hot session is not guaranteed; the previous\n * 512-entry ring only covered about fifteen minutes, so any drain outage\n * longer than that made duplicate captures likely once replay caught up.\n */\nexport const BUFFER_ADMISSION_IDEMPOTENCY_CAP = 4096;\n\n/** Client observe idempotency keys are namespaced by durable capture scope. */\nexport function scopeObserveBufferAdmissionIdempotencyKey(input: {\n sessionKey: string;\n writeNamespace: string;\n principal?: string;\n clientKey: string;\n}): string {\n const principal = input.principal?.trim() ?? \"\";\n const client = input.clientKey.trim();\n return `obs\\u001f${input.writeNamespace}\\u001f${principal}\\u001f${input.sessionKey}\\u001e${client}`;\n}\n\nexport function ensureAdmissionIdempotencyMap(state: BufferAdmissionIdempotencyState): Record<string, number> {\n const existing = state.admissionIdempotency;\n if (existing && Object.getPrototypeOf(existing) === null) return existing;\n // SAFETY: prototype-free map contract for observe idempotency keys (#3368).\n const map = Object.create(null) as Record<string, number>;\n if (existing) {\n for (const key of Object.keys(existing)) {\n if (Object.hasOwn(existing, key)) map[key] = existing[key]!;\n }\n }\n state.admissionIdempotency = map;\n return map;\n}\n\nexport function ensureAdmissionIdempotencyOrder(state: BufferAdmissionIdempotencyState): string[] {\n if (!state.admissionIdempotencyOrder) {\n state.admissionIdempotencyOrder = [];\n }\n const order = state.admissionIdempotencyOrder;\n const map = state.admissionIdempotency;\n if (map) {\n for (const key of Object.keys(map)) {\n if (Object.hasOwn(map, key) && !order.includes(key)) order.push(key);\n }\n }\n return order;\n}\n\nexport function hasBufferedAdmissionIdempotencyKey(state: BufferAdmissionIdempotencyState, key: string): boolean {\n const trimmed = key.trim();\n if (!trimmed) return false;\n const map = state.admissionIdempotency;\n return map !== undefined && Object.hasOwn(map, trimmed);\n}\n\nexport function recordBufferedAdmissionIdempotencyKey(state: BufferAdmissionIdempotencyState, key: string, turnCount: number): void {\n const trimmed = key.trim();\n if (!trimmed || turnCount <= 0) return;\n const map = ensureAdmissionIdempotencyMap(state);\n const order = ensureAdmissionIdempotencyOrder(state);\n map[trimmed] = turnCount;\n if (!order.includes(trimmed)) order.push(trimmed);\n while (order.length > BUFFER_ADMISSION_IDEMPOTENCY_CAP) {\n const evicted = order.shift();\n if (evicted !== undefined) delete map[evicted];\n }\n}\n"],"mappings":";AAeO,IAAM,mCAAmC;AAGzC,SAAS,0CAA0C,OAK/C;AACT,QAAM,YAAY,MAAM,WAAW,KAAK,KAAK;AAC7C,QAAM,SAAS,MAAM,UAAU,KAAK;AACpC,SAAO,OAAY,MAAM,cAAc,IAAS,SAAS,IAAS,MAAM,UAAU,IAAS,MAAM;AACnG;AAEO,SAAS,8BAA8B,OAAgE;AAC5G,QAAM,WAAW,MAAM;AACvB,MAAI,YAAY,OAAO,eAAe,QAAQ,MAAM,KAAM,QAAO;AAEjE,QAAM,MAAM,uBAAO,OAAO,IAAI;AAC9B,MAAI,UAAU;AACZ,eAAW,OAAO,OAAO,KAAK,QAAQ,GAAG;AACvC,UAAI,OAAO,OAAO,UAAU,GAAG,EAAG,KAAI,GAAG,IAAI,SAAS,GAAG;AAAA,IAC3D;AAAA,EACF;AACA,QAAM,uBAAuB;AAC7B,SAAO;AACT;AAEO,SAAS,gCAAgC,OAAkD;AAChG,MAAI,CAAC,MAAM,2BAA2B;AACpC,UAAM,4BAA4B,CAAC;AAAA,EACrC;AACA,QAAM,QAAQ,MAAM;AACpB,QAAM,MAAM,MAAM;AAClB,MAAI,KAAK;AACP,eAAW,OAAO,OAAO,KAAK,GAAG,GAAG;AAClC,UAAI,OAAO,OAAO,KAAK,GAAG,KAAK,CAAC,MAAM,SAAS,GAAG,EAAG,OAAM,KAAK,GAAG;AAAA,IACrE;AAAA,EACF;AACA,SAAO;AACT;AAEO,SAAS,mCAAmC,OAAwC,KAAsB;AAC/G,QAAM,UAAU,IAAI,KAAK;AACzB,MAAI,CAAC,QAAS,QAAO;AACrB,QAAM,MAAM,MAAM;AAClB,SAAO,QAAQ,UAAa,OAAO,OAAO,KAAK,OAAO;AACxD;AAEO,SAAS,sCAAsC,OAAwC,KAAa,WAAyB;AAClI,QAAM,UAAU,IAAI,KAAK;AACzB,MAAI,CAAC,WAAW,aAAa,EAAG;AAChC,QAAM,MAAM,8BAA8B,KAAK;AAC/C,QAAM,QAAQ,gCAAgC,KAAK;AACnD,MAAI,OAAO,IAAI;AACf,MAAI,CAAC,MAAM,SAAS,OAAO,EAAG,OAAM,KAAK,OAAO;AAChD,SAAO,MAAM,SAAS,kCAAkC;AACtD,UAAM,UAAU,MAAM,MAAM;AAC5B,QAAI,YAAY,OAAW,QAAO,IAAI,OAAO;AAAA,EAC/C;AACF;","names":[]}
|
|
@@ -598,16 +598,16 @@ import {
|
|
|
598
598
|
} from "./chunk-LEO4MQ3S.js";
|
|
599
599
|
import {
|
|
600
600
|
ExtractionEngine
|
|
601
|
-
} from "./chunk-
|
|
601
|
+
} from "./chunk-W5H2LHFD.js";
|
|
602
602
|
import {
|
|
603
603
|
wrapWorkLayerContext
|
|
604
604
|
} from "./chunk-EI6V5UXY.js";
|
|
605
605
|
import {
|
|
606
606
|
CONNECTOR_LABEL_MAX_LENGTH
|
|
607
|
-
} from "./chunk-
|
|
607
|
+
} from "./chunk-5IHFERCT.js";
|
|
608
608
|
import {
|
|
609
609
|
isValidConnectorId
|
|
610
|
-
} from "./chunk-
|
|
610
|
+
} from "./chunk-NIIWKDIU.js";
|
|
611
611
|
import {
|
|
612
612
|
ProfilingCollector,
|
|
613
613
|
formatProfileTraceAscii
|
|
@@ -801,7 +801,7 @@ import {
|
|
|
801
801
|
} from "./chunk-GKCXTSFF.js";
|
|
802
802
|
import {
|
|
803
803
|
SmartBuffer
|
|
804
|
-
} from "./chunk-
|
|
804
|
+
} from "./chunk-BIUHAA2L.js";
|
|
805
805
|
import {
|
|
806
806
|
ExtractionDeadlineError,
|
|
807
807
|
ExtractionRunCoordinator,
|
|
@@ -892,7 +892,7 @@ import {
|
|
|
892
892
|
} from "./chunk-FNFURZBZ.js";
|
|
893
893
|
import {
|
|
894
894
|
scopeObserveBufferAdmissionIdempotencyKey
|
|
895
|
-
} from "./chunk-
|
|
895
|
+
} from "./chunk-O5ZCDK32.js";
|
|
896
896
|
import {
|
|
897
897
|
AMBIENT_CAPTURE_PROMPT_RULE,
|
|
898
898
|
isHighImpactPersonalFact
|
|
@@ -68044,4 +68044,4 @@ export {
|
|
|
68044
68044
|
EngramAccessService,
|
|
68045
68045
|
AccessAdminOpsSurface
|
|
68046
68046
|
};
|
|
68047
|
-
//# sourceMappingURL=chunk-
|
|
68047
|
+
//# sourceMappingURL=chunk-TQ4BQ6Q6.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
headerConnector,
|
|
7
7
|
renderExtractionConversation,
|
|
8
8
|
resolveSourceConnector
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5IHFERCT.js";
|
|
10
10
|
import {
|
|
11
11
|
normalizeReasoningTrace
|
|
12
12
|
} from "./chunk-54V4BZWP.js";
|
|
@@ -2458,4 +2458,4 @@ export {
|
|
|
2458
2458
|
shouldEnableLocalExtractionThinking,
|
|
2459
2459
|
ExtractionEngine
|
|
2460
2460
|
};
|
|
2461
|
-
//# sourceMappingURL=chunk-
|
|
2461
|
+
//# sourceMappingURL=chunk-W5H2LHFD.js.map
|
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
ExtractionDrain,
|
|
3
3
|
TurnIngestionCoordinator,
|
|
4
4
|
shouldSkipImplicitExtraction
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TQ4BQ6Q6.js";
|
|
6
6
|
import {
|
|
7
7
|
headerConnector,
|
|
8
8
|
renderExtractionConversation,
|
|
9
9
|
resolveSourceConnector
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5IHFERCT.js";
|
|
11
11
|
import {
|
|
12
12
|
SmartBuffer
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-BIUHAA2L.js";
|
|
14
14
|
import {
|
|
15
15
|
selfDeps
|
|
16
16
|
} from "./chunk-JUROR7PB.js";
|
|
@@ -447,4 +447,4 @@ export {
|
|
|
447
447
|
ClaimBufferStorage,
|
|
448
448
|
BufferDrainRunner
|
|
449
449
|
};
|
|
450
|
-
//# sourceMappingURL=chunk-
|
|
450
|
+
//# sourceMappingURL=chunk-WHKE2JCE.js.map
|
|
@@ -28,6 +28,17 @@ var TOKEN_PREFIXES = {
|
|
|
28
28
|
"generic-mcp": "remnic_gm_",
|
|
29
29
|
"chatgpt": "remnic_cg_"
|
|
30
30
|
};
|
|
31
|
+
var OAUTH_CONNECTOR_IDS = ["chatgpt", "claude-ai"];
|
|
32
|
+
var OAUTH_APP_CONNECTOR_PREFIX = "oauth-app-";
|
|
33
|
+
function isOAuthConnector(connector) {
|
|
34
|
+
if (connector === void 0) return false;
|
|
35
|
+
return OAUTH_CONNECTOR_IDS.some((id) => id === connector) || connector.startsWith(OAUTH_APP_CONNECTOR_PREFIX);
|
|
36
|
+
}
|
|
37
|
+
function oauthTokenPrefix(connector) {
|
|
38
|
+
if (connector === "claude-ai") return "remnic_ca_";
|
|
39
|
+
if (connector.startsWith(OAUTH_APP_CONNECTOR_PREFIX)) return "remnic_oa_";
|
|
40
|
+
return void 0;
|
|
41
|
+
}
|
|
31
42
|
function defaultTokensPath() {
|
|
32
43
|
return path.join(resolveHomeDir(), ".remnic", "tokens.json");
|
|
33
44
|
}
|
|
@@ -177,7 +188,7 @@ function saveTokenStore(store, tokensPath) {
|
|
|
177
188
|
}
|
|
178
189
|
}
|
|
179
190
|
function buildTokenEntry(connector, capabilities) {
|
|
180
|
-
const prefix = TOKEN_PREFIXES[connector] ?? "remnic_xx_";
|
|
191
|
+
const prefix = TOKEN_PREFIXES[connector] ?? oauthTokenPrefix(connector) ?? "remnic_xx_";
|
|
181
192
|
const token = prefix + randomBytes(24).toString("hex");
|
|
182
193
|
return {
|
|
183
194
|
token,
|
|
@@ -241,6 +252,9 @@ function resolveConnectorFromToken(token, tokensPath) {
|
|
|
241
252
|
}
|
|
242
253
|
|
|
243
254
|
export {
|
|
255
|
+
OAUTH_CONNECTOR_IDS,
|
|
256
|
+
OAUTH_APP_CONNECTOR_PREFIX,
|
|
257
|
+
isOAuthConnector,
|
|
244
258
|
loadTokenStore,
|
|
245
259
|
saveTokenStore,
|
|
246
260
|
buildTokenEntry,
|
|
@@ -253,4 +267,4 @@ export {
|
|
|
253
267
|
getAllValidTokensCached,
|
|
254
268
|
resolveConnectorFromToken
|
|
255
269
|
};
|
|
256
|
-
//# sourceMappingURL=chunk-
|
|
270
|
+
//# sourceMappingURL=chunk-ZWOYG256.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/tokens.ts"],"sourcesContent":["/**\n * Token management for Remnic multi-connector auth.\n *\n * Manages per-connector tokens in ~/.remnic/tokens.json.\n * Each connector gets a unique token with a recognizable prefix.\n */\n\nimport fs from \"node:fs\";\nimport path from \"node:path\";\nimport { randomBytes, randomUUID } from \"node:crypto\";\nimport { resolveHomeDir } from \"./runtime/env.js\";\nimport {\n TOKEN_CAPABILITIES_VERSION,\n normalizeCapabilities,\n type TokenCapabilities,\n} from \"./access-token-capabilities.js\";\n\nexport interface TokenEntry {\n token: string;\n connector: string;\n createdAt: string;\n /**\n * Versioned capabilities record (issue #1837). PRESENT ⇒ the token was\n * minted by the capability-aware path; its ops/namespaces axes are\n * enforced (absent axis ⇒ unrestricted on that axis; empty array ⇒ deny\n * all; non-empty ⇒ allow-list). ABSENT ⇒ a pre-feature legacy entry ⇒\n * unrestricted (full access), purely for backward compatibility — this is\n * the ONLY path by which full access is granted by omission. Every new\n * token carries an explicit record (even `{ version: 1 }` for a deliberate\n * unrestricted mint), so a new token can never silently gain full access.\n */\n capabilities?: TokenCapabilities;\n}\n\nexport interface TokenStore {\n tokens: TokenEntry[];\n}\n\nconst TOKEN_PREFIXES: Record<string, string> = {\n \"openclaw\": \"remnic_oc_\",\n \"claude-code\": \"remnic_cc_\",\n \"codex-cli\": \"remnic_cx_\",\n \"codex\": \"remnic_cx_\",\n \"hermes\": \"remnic_hm_\",\n \"pi\": \"remnic_pi_\",\n \"omp\": \"remnic_op_\",\n \"replit\": \"remnic_rl_\",\n \"cursor\": \"remnic_cu_\",\n \"cline\": \"remnic_cl_\",\n \"github-copilot\": \"remnic_gh_\",\n \"roo-code\": \"remnic_rc_\",\n \"windsurf\": \"remnic_ws_\",\n \"amp\": \"remnic_am_\",\n \"generic-mcp\": \"remnic_gm_\",\n \"chatgpt\": \"remnic_cg_\",\n};\n\n/**\n * Connector ids minted by the OAuth facade (remnic-server oauth.ts), one per\n * linked app so linking one app never rotates another app's token:\n * `chatgpt`, `claude-ai`, and `oauth-app-<origin>` (percent-encoded\n * scheme + redirect host + port) for any other app.\n * Tokens under these ids are pinned to `/mcp` by the access server's path\n * policy.\n */\nexport const OAUTH_CONNECTOR_IDS = [\"chatgpt\", \"claude-ai\"] as const;\n\n/** Prefix for per-origin OAuth connector ids of apps other than ChatGPT/Claude. */\nexport const OAUTH_APP_CONNECTOR_PREFIX = \"oauth-app-\";\n\n/** True when `connector` is an OAuth-minted connector (pinned to `/mcp`). */\nexport function isOAuthConnector(connector: string | undefined): boolean {\n if (connector === undefined) return false;\n return (\n OAUTH_CONNECTOR_IDS.some((id) => id === connector) ||\n connector.startsWith(OAUTH_APP_CONNECTOR_PREFIX)\n );\n}\n\nfunction oauthTokenPrefix(connector: string): string | undefined {\n if (connector === \"claude-ai\") return \"remnic_ca_\";\n if (connector.startsWith(OAUTH_APP_CONNECTOR_PREFIX)) return \"remnic_oa_\";\n return undefined;\n}\n\nfunction defaultTokensPath(): string {\n return path.join(resolveHomeDir(), \".remnic\", \"tokens.json\");\n}\n\nfunction legacyTokensPath(): string {\n return path.join(resolveHomeDir(), \".engram\", \"tokens.json\");\n}\n\nfunction resolveReadPath(tokensPath?: string): string {\n const primary = tokensPath ?? defaultTokensPath();\n if (tokensPath) return primary;\n if (fs.existsSync(primary)) return primary;\n const legacy = legacyTokensPath();\n return fs.existsSync(legacy) ? legacy : primary;\n}\n\nfunction ensureDir(filePath: string): void {\n const dir = path.dirname(filePath);\n fs.mkdirSync(dir, { recursive: true });\n}\n\nfunction isEnoent(error: unknown): boolean {\n return error instanceof Error && \"code\" in error && (error as NodeJS.ErrnoException).code === \"ENOENT\";\n}\n\nfunction validateTokenEntry(raw: unknown, index: number): TokenEntry {\n if (typeof raw !== \"object\" || raw === null || Array.isArray(raw)) {\n throw new Error(`invalid token entry at index ${index}: expected object`);\n }\n const entry = raw as Record<string, unknown>;\n if (typeof entry.token !== \"string\" || entry.token.length === 0) {\n throw new Error(`invalid token entry at index ${index}: token must be a non-empty string`);\n }\n if (typeof entry.connector !== \"string\" || entry.connector.length === 0) {\n throw new Error(`invalid token entry at index ${index}: connector must be a non-empty string`);\n }\n const capabilities = entry.capabilities !== undefined\n ? normalizeCapabilities(entry.capabilities)\n : undefined;\n return {\n token: entry.token,\n connector: entry.connector,\n createdAt:\n typeof entry.createdAt === \"string\" && entry.createdAt.length > 0\n ? entry.createdAt\n : new Date(0).toISOString(),\n ...(capabilities ? { capabilities } : {}),\n };\n}\n\nfunction parseTokenStore(rawText: string, filePath: string): { store: TokenStore; migratedLegacy: boolean } {\n let raw: unknown;\n try {\n raw = JSON.parse(rawText);\n } catch (error) {\n throw new Error(\n `failed to parse token store at ${filePath}: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n\n if (typeof raw === \"object\" && raw !== null && !Array.isArray(raw)) {\n const record = raw as Record<string, unknown>;\n if (record.tokens !== undefined) {\n if (!Array.isArray(record.tokens)) {\n throw new Error(`invalid token store at ${filePath}: tokens must be an array`);\n }\n return {\n store: {\n tokens: record.tokens.map((entry, index) => validateTokenEntry(entry, index)),\n },\n migratedLegacy: false,\n };\n }\n\n // Migrate legacy flat-map format: { \"connector\": \"token_value\", ... }\n const migrated: TokenEntry[] = [];\n for (const [key, value] of Object.entries(record)) {\n if (typeof value === \"string\" && value.length > 0) {\n migrated.push(\n validateTokenEntry(\n { token: value, connector: key, createdAt: new Date().toISOString() },\n migrated.length,\n ),\n );\n }\n }\n if (migrated.length > 0) {\n return { store: { tokens: migrated }, migratedLegacy: true };\n }\n }\n\n throw new Error(`invalid token store at ${filePath}: expected token array or legacy connector map`);\n}\n\nexport function loadTokenStore(tokensPath?: string): TokenStore {\n const p = resolveReadPath(tokensPath);\n try {\n const rawText = fs.readFileSync(p, \"utf8\");\n const { store, migratedLegacy } = parseTokenStore(rawText, p);\n if (migratedLegacy) {\n // Auto-migrate legacy flat-map stores in new format. This is best-effort:\n // a migration write failure must not hide the successfully parsed tokens.\n try {\n saveTokenStore(store, tokensPath);\n } catch {\n // Migration write failed (e.g., read-only fs) — still return parsed tokens.\n }\n }\n return store;\n } catch (error) {\n if (isEnoent(error)) {\n return { tokens: [] };\n }\n throw error;\n }\n}\n\nfunction fsyncDirectoryBestEffort(dirPath: string): void {\n let dirFd: number | null = null;\n try {\n dirFd = fs.openSync(dirPath, \"r\");\n fs.fsyncSync(dirFd);\n } catch {\n // Directory fsync is not supported on every platform/filesystem.\n } finally {\n if (dirFd !== null) {\n try { fs.closeSync(dirFd); } catch { /* ignore */ }\n }\n }\n}\n\nexport function saveTokenStore(store: TokenStore, tokensPath?: string): void {\n const p = tokensPath ?? defaultTokensPath();\n ensureDir(p);\n const validated: TokenStore = {\n tokens: store.tokens.map((entry, index) => validateTokenEntry(entry, index)),\n };\n const dir = path.dirname(p);\n const tmpPath = path.join(dir, `.${path.basename(p)}.${process.pid}.${randomUUID()}.tmp`);\n let fd: number | null = null;\n try {\n fd = fs.openSync(tmpPath, \"w\", 0o600);\n fs.writeFileSync(fd, JSON.stringify(validated, null, 2) + \"\\n\", \"utf8\");\n fs.fsyncSync(fd);\n fs.closeSync(fd);\n fd = null;\n fs.renameSync(tmpPath, p);\n // Tighten permissions on pre-existing files after atomic replacement.\n try { fs.chmodSync(p, 0o600); } catch { /* ignore on platforms without chmod */ }\n fsyncDirectoryBestEffort(dir);\n invalidateTokenCache();\n } catch (error) {\n if (fd !== null) {\n try { fs.closeSync(fd); } catch { /* ignore */ }\n }\n try { fs.rmSync(tmpPath, { force: true }); } catch { /* ignore cleanup failure */ }\n throw error;\n }\n}\n\n/**\n * Build a TokenEntry candidate WITHOUT saving it to the store.\n * Callers use this when they need to defer the save until after a\n * dependent write (e.g. Hermes config.yaml) succeeds — see\n * commitTokenEntry() to persist the candidate.\n */\nexport function buildTokenEntry(connector: string, capabilities?: TokenCapabilities): TokenEntry {\n const prefix = TOKEN_PREFIXES[connector] ?? oauthTokenPrefix(connector) ?? \"remnic_xx_\";\n const token = prefix + randomBytes(24).toString(\"hex\");\n // Every newly-built entry carries an EXPLICIT capabilities record (issue\n // #1837). When none is requested, record a deliberate unrestricted\n // `{ version: 1 }` — never an omitted field — so \"full access via omission\"\n // is reachable only by pre-feature legacy entries lacking the marker.\n return {\n token,\n connector,\n createdAt: new Date().toISOString(),\n capabilities: capabilities ?? { version: TOKEN_CAPABILITIES_VERSION },\n };\n}\n\n/**\n * Persist a pre-built TokenEntry into the store, replacing any existing\n * entry for the same connector. Used together with buildTokenEntry() when\n * the caller wants to defer the save until after a dependent write succeeds.\n *\n * For transactional rollback, callers should snapshot the full store via\n * loadTokenStore() BEFORE calling commitTokenEntry() and restore it with\n * saveTokenStore() on failure. A full-store snapshot handles partial writes\n * of tokens.json atomically — single-entry restore via the return value is\n * insufficient because if this function throws during saveTokenStore, the\n * return statement never executes (UXJI/UXJT fix).\n */\nexport function commitTokenEntry(entry: TokenEntry, tokensPath?: string): void {\n const store = loadTokenStore(tokensPath);\n store.tokens = store.tokens.filter((t) => t.connector !== entry.connector);\n store.tokens.push(entry);\n saveTokenStore(store, tokensPath);\n}\n\nexport function generateToken(\n connector: string,\n tokensPath?: string,\n capabilities?: TokenCapabilities,\n): TokenEntry {\n const store = loadTokenStore(tokensPath);\n\n // Remove existing token for this connector\n store.tokens = store.tokens.filter((t) => t.connector !== connector);\n\n const entry = buildTokenEntry(connector, capabilities);\n store.tokens.push(entry);\n saveTokenStore(store, tokensPath);\n return entry;\n}\n\nexport function listTokens(tokensPath?: string): TokenEntry[] {\n return loadTokenStore(tokensPath).tokens;\n}\n\nexport function revokeToken(connector: string, tokensPath?: string): boolean {\n const store = loadTokenStore(tokensPath);\n const before = store.tokens.length;\n store.tokens = store.tokens.filter((t) => t.connector !== connector);\n if (store.tokens.length < before) {\n saveTokenStore(store, tokensPath);\n return true;\n }\n return false;\n}\n\nexport function getAllValidTokens(tokensPath?: string): string[] {\n return loadTokenStore(tokensPath).tokens.map((t) => t.token);\n}\n\n// Cached token-entry snapshot to avoid synchronous disk I/O on every HTTP\n// request. Re-reads tokens.json at most once per TTL interval (default 5s).\n// There is deliberately exactly ONE cache: validation (token strings) and\n// identity (connector ids) are derived from the SAME snapshot, so a token\n// can never validate against a fresher snapshot than the one that resolves\n// its connector. saveTokenStore() invalidates on every mutation, so a\n// freshly minted or revoked token is coherent immediately.\nconst TOKEN_CACHE_TTL_MS = 5_000;\nlet _cachedEntries: TokenEntry[] = [];\nlet _cachedAt = 0;\nlet _cachedPath: string | undefined;\n\nfunction invalidateTokenCache(): void {\n _cachedEntries = [];\n _cachedAt = 0;\n _cachedPath = undefined;\n}\n\n/** Cached token-entry snapshot ({token, connector} pairs). */\nexport function getAllValidTokenEntriesCached(tokensPath?: string): readonly TokenEntry[] {\n const now = Date.now();\n if (now - _cachedAt < TOKEN_CACHE_TTL_MS && tokensPath === _cachedPath) return _cachedEntries;\n _cachedEntries = loadTokenStore(tokensPath).tokens;\n _cachedAt = now;\n _cachedPath = tokensPath;\n return _cachedEntries;\n}\n\nexport function getAllValidTokensCached(tokensPath?: string): string[] {\n return getAllValidTokenEntriesCached(tokensPath).map((entry) => entry.token);\n}\n\nexport function resolveConnectorFromToken(token: string, tokensPath?: string): string | undefined {\n return loadTokenStore(tokensPath).tokens.find((t) => t.token === token)?.connector;\n}\n"],"mappings":";;;;;;;;;AAOA,OAAO,QAAQ;AACf,OAAO,UAAU;AACjB,SAA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ACrE,SAAO,8BAA8B,UAAU,EAAE,IAAI,CAAC,UAAU,MAAM,KAAK;AAC7E;AAEO,SAAS,0BAA0B,OAAe,YAAyC;AAChG,SAAO,eAAe,UAAU,EAAE,OAAO,KAAK,CAAC,MAAM,EAAE,UAAU,KAAK,GAAG;AAC3E;","names":[]}
|
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-TQ4BQ6Q6.js";
|
|
95
95
|
import "./chunk-PQM3B54K.js";
|
|
96
96
|
import "./chunk-NWZEDYHT.js";
|
|
97
97
|
import "./chunk-GOZXQNIM.js";
|
|
@@ -285,11 +285,11 @@ import "./chunk-PHRLJFWZ.js";
|
|
|
285
285
|
import "./chunk-64NJRYU2.js";
|
|
286
286
|
import "./chunk-BPPUH5JM.js";
|
|
287
287
|
import "./chunk-LEO4MQ3S.js";
|
|
288
|
-
import "./chunk-
|
|
288
|
+
import "./chunk-W5H2LHFD.js";
|
|
289
289
|
import "./chunk-EI6V5UXY.js";
|
|
290
|
-
import "./chunk-
|
|
291
|
-
import "./chunk-
|
|
292
|
-
import "./chunk-
|
|
290
|
+
import "./chunk-5IHFERCT.js";
|
|
291
|
+
import "./chunk-NIIWKDIU.js";
|
|
292
|
+
import "./chunk-ZWOYG256.js";
|
|
293
293
|
import "./chunk-54V4BZWP.js";
|
|
294
294
|
import "./chunk-2CGLBUW3.js";
|
|
295
295
|
import "./chunk-DOWACHYO.js";
|
|
@@ -387,7 +387,7 @@ import "./chunk-2LSZVONP.js";
|
|
|
387
387
|
import "./chunk-DEUNUKTD.js";
|
|
388
388
|
import "./chunk-LXY5VVGM.js";
|
|
389
389
|
import "./chunk-GKCXTSFF.js";
|
|
390
|
-
import "./chunk-
|
|
390
|
+
import "./chunk-BIUHAA2L.js";
|
|
391
391
|
import "./chunk-3SP7EZWA.js";
|
|
392
392
|
import "./chunk-FDLPNFKE.js";
|
|
393
393
|
import "./chunk-CSAKJVXW.js";
|
|
@@ -414,9 +414,9 @@ import "./chunk-4TZOOUMK.js";
|
|
|
414
414
|
import "./chunk-FNFURZBZ.js";
|
|
415
415
|
import "./chunk-GZFKCLRC.js";
|
|
416
416
|
import "./chunk-EKUI7I2X.js";
|
|
417
|
-
import "./chunk-
|
|
417
|
+
import "./chunk-AJVCM2E3.js";
|
|
418
418
|
import "./chunk-6ZELOK6O.js";
|
|
419
|
-
import "./chunk-
|
|
419
|
+
import "./chunk-O5ZCDK32.js";
|
|
420
420
|
import "./chunk-QW27DOHG.js";
|
|
421
421
|
import "./chunk-KF7PQ7G2.js";
|
|
422
422
|
import "./chunk-C6WMSXCJ.js";
|
package/dist/connectors/index.js
CHANGED
|
@@ -29,8 +29,8 @@ import {
|
|
|
29
29
|
upsertHermesConfig,
|
|
30
30
|
validateMarketplaceManifest,
|
|
31
31
|
writeMarketplaceManifest
|
|
32
|
-
} from "../chunk-
|
|
33
|
-
import "../chunk-
|
|
32
|
+
} from "../chunk-NIIWKDIU.js";
|
|
33
|
+
import "../chunk-ZWOYG256.js";
|
|
34
34
|
import {
|
|
35
35
|
runCodexMaterialize
|
|
36
36
|
} from "../chunk-V425GW5W.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-TQ4BQ6Q6.js";
|
|
12
12
|
import "./chunk-PQM3B54K.js";
|
|
13
13
|
import "./chunk-NWZEDYHT.js";
|
|
14
14
|
import "./chunk-GOZXQNIM.js";
|
|
@@ -202,11 +202,11 @@ import "./chunk-PHRLJFWZ.js";
|
|
|
202
202
|
import "./chunk-64NJRYU2.js";
|
|
203
203
|
import "./chunk-BPPUH5JM.js";
|
|
204
204
|
import "./chunk-LEO4MQ3S.js";
|
|
205
|
-
import "./chunk-
|
|
205
|
+
import "./chunk-W5H2LHFD.js";
|
|
206
206
|
import "./chunk-EI6V5UXY.js";
|
|
207
|
-
import "./chunk-
|
|
208
|
-
import "./chunk-
|
|
209
|
-
import "./chunk-
|
|
207
|
+
import "./chunk-5IHFERCT.js";
|
|
208
|
+
import "./chunk-NIIWKDIU.js";
|
|
209
|
+
import "./chunk-ZWOYG256.js";
|
|
210
210
|
import "./chunk-54V4BZWP.js";
|
|
211
211
|
import "./chunk-2CGLBUW3.js";
|
|
212
212
|
import "./chunk-DOWACHYO.js";
|
|
@@ -304,7 +304,7 @@ import "./chunk-2LSZVONP.js";
|
|
|
304
304
|
import "./chunk-DEUNUKTD.js";
|
|
305
305
|
import "./chunk-LXY5VVGM.js";
|
|
306
306
|
import "./chunk-GKCXTSFF.js";
|
|
307
|
-
import "./chunk-
|
|
307
|
+
import "./chunk-BIUHAA2L.js";
|
|
308
308
|
import "./chunk-3SP7EZWA.js";
|
|
309
309
|
import "./chunk-FDLPNFKE.js";
|
|
310
310
|
import "./chunk-CSAKJVXW.js";
|
|
@@ -331,9 +331,9 @@ import "./chunk-4TZOOUMK.js";
|
|
|
331
331
|
import "./chunk-FNFURZBZ.js";
|
|
332
332
|
import "./chunk-GZFKCLRC.js";
|
|
333
333
|
import "./chunk-EKUI7I2X.js";
|
|
334
|
-
import "./chunk-
|
|
334
|
+
import "./chunk-AJVCM2E3.js";
|
|
335
335
|
import "./chunk-6ZELOK6O.js";
|
|
336
|
-
import "./chunk-
|
|
336
|
+
import "./chunk-O5ZCDK32.js";
|
|
337
337
|
import "./chunk-QW27DOHG.js";
|
|
338
338
|
import "./chunk-KF7PQ7G2.js";
|
|
339
339
|
import "./chunk-C6WMSXCJ.js";
|
package/dist/extraction.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ExtractionEngine,
|
|
3
3
|
shouldEnableLocalExtractionThinking
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-W5H2LHFD.js";
|
|
5
5
|
import "./chunk-EI6V5UXY.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-5IHFERCT.js";
|
|
7
|
+
import "./chunk-NIIWKDIU.js";
|
|
8
|
+
import "./chunk-ZWOYG256.js";
|
|
9
9
|
import "./chunk-54V4BZWP.js";
|
|
10
10
|
import "./chunk-2CGLBUW3.js";
|
|
11
11
|
import "./chunk-DOWACHYO.js";
|
package/dist/index.d.ts
CHANGED
|
@@ -141,7 +141,7 @@ export { CONNECTOR_ID_PATTERN, isValidConnectorId, persistableConnectorConfig, r
|
|
|
141
141
|
export { builtInLiveConnectorDefinitions, hasEnabledLiveConnector, runLiveConnectorsOnce, type LiveConnectorDefinition, type LiveConnectorRunItem, type LiveConnectorSkipReason, type LiveConnectorsRunSummary, } from "./live-connectors-runner.js";
|
|
142
142
|
export { CONNECTORS_OUTPUT_FORMATS, parseConnectorsFormat, parseConnectorsListOptions, parseConnectorsStatusOptions, parseConnectorsRunName, renderConnectorsList, renderConnectorsRunResult, runConnectorPollOnce, type ConnectorRow, type ConnectorRunResult, type ConnectorsOutputFormat, type ParsedConnectorsListOptions, type ParsedConnectorsStatusOptions, type RunConnectorPollOnceArgs, } from "./connectors-cli.js";
|
|
143
143
|
export { listSpaces, getActiveSpace, createSpace, deleteSpace, switchSpace, pushToSpace, pullFromSpace, shareSpace, promoteSpace, mergeSpaces, loadManifest, saveManifest, getAuditLog, getSpacesDir, getManifestPath, type Space, type SpaceKind, type SpaceManifest, type SpaceSwitchResult, type SpacePushResult, type SpacePullResult, type SpaceShareResult, type SpacePromoteResult, type ConflictEntry, type MergeResult, type AuditEntry, } from "./spaces/index.js";
|
|
144
|
-
export { buildTokenEntry, commitTokenEntry, generateToken, listTokens, revokeToken, getAllValidTokens, getAllValidTokensCached, getAllValidTokenEntriesCached, resolveConnectorFromToken, loadTokenStore, saveTokenStore, type TokenEntry, type TokenStore, } from "./tokens.js";
|
|
144
|
+
export { buildTokenEntry, commitTokenEntry, generateToken, listTokens, revokeToken, getAllValidTokens, getAllValidTokensCached, getAllValidTokenEntriesCached, resolveConnectorFromToken, OAUTH_CONNECTOR_IDS, OAUTH_APP_CONNECTOR_PREFIX, isOAuthConnector, loadTokenStore, saveTokenStore, type TokenEntry, type TokenStore, } from "./tokens.js";
|
|
145
145
|
export { TOKEN_CAPABILITIES_VERSION, capabilityAllowsNamespace, capabilityAllowsOp, isCapabilityRestricted, isValidNamespaceValue, normalizeCapabilities, tokenCapabilityStore, validateCapabilitiesForMint, type TokenCapabilities, } from "./access-token-capabilities.js";
|
|
146
146
|
export { OPERATION_NAMES, type OperationName } from "./access-boundary.js";
|
|
147
147
|
export { runCodexMaterialize, runPostConsolidationMaterialize, type RunMaterializeOptions, type PostConsolidationMaterializeOptions, } from "./connectors/codex-materialize-runner.js";
|