@cortexkit/pi-magic-context 0.49.44 → 0.49.46
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/auto-search-worker.js +4 -4
- package/dist/chunk-embedding-write-worker.js +6 -6
- package/dist/{compartment-chunk-embedding-jpcme6tz.js → compartment-chunk-embedding-nyjs3dfh.js} +5 -5
- package/dist/{embedding-backfill-v9b8gkmp.js → embedding-backfill-er9jc4xf.js} +8 -8
- package/dist/embedding-worker.js +3 -3
- package/dist/{index-wt7vmyj4.js → index-000fthre.js} +4 -0
- package/dist/{index-c1dqxr10.js → index-3g9fnq6y.js} +2 -1
- package/dist/{index-f9qet7y8.js → index-4sa1rx3h.js} +3 -3
- package/dist/{index-gtd9kaaf.js → index-6bedye3n.js} +6 -6
- package/dist/{index-j2x88zk0.js → index-7esg5v2x.js} +6 -3
- package/dist/{index-ck8wj35v.js → index-bbbp8zs1.js} +1 -1
- package/dist/{index-fjmghcbx.js → index-ewf0sd7d.js} +30 -21
- package/dist/{index-025nxwc9.js → index-fzadydec.js} +3 -3
- package/dist/{index-rzfr7wdv.js → index-gwvahsdz.js} +1 -1
- package/dist/{index-wwsfevck.js → index-jaqdcqwz.js} +1 -1
- package/dist/{index-gg9r701n.js → index-nvgq29cw.js} +3 -3
- package/dist/{index-zttw4vew.js → index-qt711raa.js} +6 -6
- package/dist/{index-9tcbabqr.js → index-rcenqffj.js} +63 -21
- package/dist/{index-xf3ndcqd.js → index-tsg6swzr.js} +1 -1
- package/dist/{index-pb0ygvpa.js → index-v7m1nqwz.js} +2 -2
- package/dist/{index-p1jxxsth.js → index-wwf9vxpf.js} +2 -2
- package/dist/{index-pwp6zyx3.js → index-zchc0df8.js} +1 -1
- package/dist/{index-gajhgp4k.js → index-zwbgxt01.js} +3 -3
- package/dist/index.js +246 -36
- package/dist/{message-fts-rowid-map-hmgyfxxa.js → message-fts-rowid-map-ff4qg3e4.js} +2 -2
- package/dist/{message-index-bounded-1gj1pwjy.js → message-index-bounded-cqn6x6fc.js} +6 -6
- package/dist/migration-worker.js +4 -4
- package/dist/{project-embedding-registry-e81zewts.js → project-embedding-registry-ysaezfqw.js} +7 -7
- package/dist/raw-ordinal-warmup-worker.js +7 -7
- package/dist/{read-session-chunk-r9qy3jzj.js → read-session-chunk-0ecmbegv.js} +4 -4
- package/dist/{read-session-raw-a9ntjqap.js → read-session-raw-nttnwy8p.js} +1 -1
- package/dist/{render-dvmk12tf.js → render-s6k2xqhj.js} +10 -10
- package/dist/{search-archive-23s9g6dx.js → search-archive-qza20zkm.js} +6 -6
- package/dist/{search-khaxkbs1.js → search-p4fj69gn.js} +12 -12
- package/dist/{storage-tags-p9y3bnw7.js → storage-tags-g0j9mr4b.js} +2 -2
- package/dist/subagent-entry.js +17 -17
- package/dist/tag-snapshot-worker-pi.js +6 -6
- package/dist/{v2-archive-reader-z7qgxxp0.js → v2-archive-reader-2v7a879f.js} +1 -1
- package/package.json +1 -1
|
@@ -27,12 +27,12 @@ serveWorkerJobs(async (initial, port) => {
|
|
|
27
27
|
{ Database, registerSqliteDiagnosticSink },
|
|
28
28
|
{ log }
|
|
29
29
|
] = await Promise.all([
|
|
30
|
-
import("./embedding-backfill-
|
|
30
|
+
import("./embedding-backfill-er9jc4xf.js"),
|
|
31
31
|
import("./embedding-cache-7rp4gqzr.js"),
|
|
32
32
|
import("./storage-memory-0ndn65fm.js"),
|
|
33
|
-
import("./project-embedding-registry-
|
|
34
|
-
import("./search-
|
|
35
|
-
import("./compartment-chunk-embedding-
|
|
33
|
+
import("./project-embedding-registry-ysaezfqw.js"),
|
|
34
|
+
import("./search-p4fj69gn.js"),
|
|
35
|
+
import("./compartment-chunk-embedding-nyjs3dfh.js"),
|
|
36
36
|
import("./embedding-activity-ew6dshfd.js"),
|
|
37
37
|
import("./harness-9872e0ym.js"),
|
|
38
38
|
import("./sqlite-v89bj0yy.js"),
|
|
@@ -11,20 +11,20 @@ import {
|
|
|
11
11
|
isWorkerCloseMessage,
|
|
12
12
|
exitOnWorkerClose
|
|
13
13
|
} from "./index-x2n261wp.js";
|
|
14
|
-
import"./index-
|
|
14
|
+
import"./index-000fthre.js";
|
|
15
15
|
import"./index-gymgz20n.js";
|
|
16
16
|
import"./index-dnp1jjar.js";
|
|
17
|
-
import"./index-
|
|
17
|
+
import"./index-gwvahsdz.js";
|
|
18
18
|
import"./index-8sqebjzk.js";
|
|
19
19
|
import"./index-wfqysrwq.js";
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
20
|
+
import"./index-3g9fnq6y.js";
|
|
21
|
+
import"./index-bbbp8zs1.js";
|
|
22
22
|
import {
|
|
23
23
|
replaceCompartmentChunkEmbeddings2,
|
|
24
24
|
recordChunkEmbedBackoff2,
|
|
25
25
|
loadUnembeddedSessionChunkCandidates2,
|
|
26
26
|
countUnembeddedSessionCompartments2
|
|
27
|
-
} from "./index-
|
|
27
|
+
} from "./index-4sa1rx3h.js";
|
|
28
28
|
import {
|
|
29
29
|
recordSessionProjectIdentity,
|
|
30
30
|
acquireGitSweepLease,
|
|
@@ -35,7 +35,7 @@ import"./index-6pk49fc3.js";
|
|
|
35
35
|
import {
|
|
36
36
|
LATEST_SUPPORTED_VERSION,
|
|
37
37
|
enforceSchemaFence
|
|
38
|
-
} from "./index-
|
|
38
|
+
} from "./index-wwf9vxpf.js";
|
|
39
39
|
import"./index-3bb24eb6.js";
|
|
40
40
|
import"./index-d107f484.js";
|
|
41
41
|
import"./index-yacs388s.js";
|
package/dist/{compartment-chunk-embedding-jpcme6tz.js → compartment-chunk-embedding-nyjs3dfh.js}
RENAMED
|
@@ -24,14 +24,14 @@ import {
|
|
|
24
24
|
countSessionCompartmentEmbedCoverage2,
|
|
25
25
|
countSessionCompartmentEmbedCoveragePolite2,
|
|
26
26
|
countUnembeddedSessionCompartmentsPolite2
|
|
27
|
-
} from "./index-
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
27
|
+
} from "./index-4sa1rx3h.js";
|
|
28
|
+
import"./index-gwvahsdz.js";
|
|
29
|
+
import"./index-bbbp8zs1.js";
|
|
30
|
+
import"./index-3g9fnq6y.js";
|
|
31
31
|
import"./index-wfqysrwq.js";
|
|
32
32
|
import"./index-8sqebjzk.js";
|
|
33
33
|
import"./index-0wtm7g7f.js";
|
|
34
|
-
import"./index-
|
|
34
|
+
import"./index-000fthre.js";
|
|
35
35
|
import"./index-2qtx0q6h.js";
|
|
36
36
|
import"./index-gymgz20n.js";
|
|
37
37
|
import"./index-0h2mkab2.js";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ensureMemoryEmbeddings2
|
|
3
|
-
} from "./index-
|
|
4
|
-
import"./index-
|
|
3
|
+
} from "./index-zwbgxt01.js";
|
|
4
|
+
import"./index-rcenqffj.js";
|
|
5
5
|
import"./index-9p40dgkm.js";
|
|
6
6
|
import"./index-hgd00nas.js";
|
|
7
7
|
import"./index-yhzhdp3m.js";
|
|
8
8
|
import"./index-mp0gh04g.js";
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
9
|
+
import"./index-4sa1rx3h.js";
|
|
10
|
+
import"./index-tsg6swzr.js";
|
|
11
|
+
import"./index-gwvahsdz.js";
|
|
12
12
|
import"./index-gzk7d940.js";
|
|
13
13
|
import"./index-6pk49fc3.js";
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
14
|
+
import"./index-bbbp8zs1.js";
|
|
15
|
+
import"./index-3g9fnq6y.js";
|
|
16
16
|
import"./index-wfqysrwq.js";
|
|
17
17
|
import"./index-8sqebjzk.js";
|
|
18
18
|
import"./index-0wtm7g7f.js";
|
|
19
|
-
import"./index-
|
|
19
|
+
import"./index-000fthre.js";
|
|
20
20
|
import"./index-2qtx0q6h.js";
|
|
21
21
|
import"./index-gymgz20n.js";
|
|
22
22
|
import"./index-0h2mkab2.js";
|
package/dist/embedding-worker.js
CHANGED
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
} from "./index-gymgz20n.js";
|
|
7
7
|
import"./index-dnp1jjar.js";
|
|
8
8
|
import"./index-gzk7d940.js";
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
9
|
+
import"./index-gwvahsdz.js";
|
|
10
|
+
import"./index-000fthre.js";
|
|
11
11
|
import"./index-2qtx0q6h.js";
|
|
12
12
|
import {
|
|
13
13
|
resolveLocalEmbeddingWorkerRuntime,
|
|
14
14
|
getLocalEmbeddingNativeMemoryStats,
|
|
15
15
|
LocalEmbeddingProvider
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-tsg6swzr.js";
|
|
17
17
|
import {
|
|
18
18
|
setStoragePrivatePermissionEnforcement
|
|
19
19
|
} from "./index-81nthk8j.js";
|
|
@@ -393,6 +393,7 @@ function extractToolCallSummaries(parts) {
|
|
|
393
393
|
}
|
|
394
394
|
return summaries;
|
|
395
395
|
}
|
|
396
|
+
var COMMAND_ARG_MAX_CHARS = 200;
|
|
396
397
|
function extractKeyArg(_toolName, input) {
|
|
397
398
|
if (!input)
|
|
398
399
|
return null;
|
|
@@ -410,6 +411,9 @@ function extractKeyArg(_toolName, input) {
|
|
|
410
411
|
return input.module;
|
|
411
412
|
if (typeof input.action === "string")
|
|
412
413
|
return input.action;
|
|
414
|
+
if (typeof input.command === "string") {
|
|
415
|
+
return truncateArg(normalizeText(input.command), COMMAND_ARG_MAX_CHARS);
|
|
416
|
+
}
|
|
413
417
|
return null;
|
|
414
418
|
}
|
|
415
419
|
function truncateArg(value, maxLen = 60) {
|
|
@@ -427,7 +427,8 @@ var RAW_SUMMARY_TOOL_INPUT_KEYS = [
|
|
|
427
427
|
"query",
|
|
428
428
|
"symbol",
|
|
429
429
|
"module",
|
|
430
|
-
"action"
|
|
430
|
+
"action",
|
|
431
|
+
"command"
|
|
431
432
|
];
|
|
432
433
|
function summaryStringField(jsonPath) {
|
|
433
434
|
return `CASE WHEN json_type(data, '${jsonPath}') = 'text' THEN substr(json_extract(data, '${jsonPath}'), 1, ${RAW_SUMMARY_ARG_MAX_CHARS}) END`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getTokenEstimatorFingerprint,
|
|
3
3
|
estimateTokens
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-000fthre.js";
|
|
5
5
|
import {
|
|
6
6
|
getHarness2
|
|
7
7
|
} from "./index-0h2mkab2.js";
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
} from "./index-gymgz20n.js";
|
|
11
11
|
import {
|
|
12
12
|
isSynapseEmbeddingTruncated
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-gwvahsdz.js";
|
|
14
14
|
import {
|
|
15
15
|
messageFtsOrdinalRangeIsMapped2
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-bbbp8zs1.js";
|
|
17
17
|
import {
|
|
18
18
|
isKnownAutocommit
|
|
19
19
|
} from "./index-nrzkqte4.js";
|
|
@@ -39,15 +39,15 @@ import {
|
|
|
39
39
|
expandToolPart,
|
|
40
40
|
visitRawSessionMessages2,
|
|
41
41
|
readRawSessionMessageById2
|
|
42
|
-
} from "./index-
|
|
42
|
+
} from "./index-7esg5v2x.js";
|
|
43
43
|
import {
|
|
44
44
|
isRecord,
|
|
45
45
|
providerVisibleMessage,
|
|
46
46
|
getTagById2
|
|
47
|
-
} from "./index-
|
|
47
|
+
} from "./index-zchc0df8.js";
|
|
48
48
|
import {
|
|
49
49
|
estimateTokens
|
|
50
|
-
} from "./index-
|
|
50
|
+
} from "./index-000fthre.js";
|
|
51
51
|
import {
|
|
52
52
|
prepareCachedStatement2,
|
|
53
53
|
withSqliteBackgroundWriter2,
|
|
@@ -64,17 +64,17 @@ import {
|
|
|
64
64
|
import {
|
|
65
65
|
isPidAlive,
|
|
66
66
|
readProcessStartTime
|
|
67
|
-
} from "./index-
|
|
67
|
+
} from "./index-wwf9vxpf.js";
|
|
68
68
|
import {
|
|
69
69
|
gaDatabasePath2,
|
|
70
70
|
V2StoreReader2
|
|
71
71
|
} from "./index-ea37qn4x.js";
|
|
72
72
|
import {
|
|
73
73
|
deleteUnmappedMessageFtsRows2
|
|
74
|
-
} from "./index-
|
|
74
|
+
} from "./index-bbbp8zs1.js";
|
|
75
75
|
import {
|
|
76
76
|
deleteChunkEmbedBackoffForSession2
|
|
77
|
-
} from "./index-
|
|
77
|
+
} from "./index-4sa1rx3h.js";
|
|
78
78
|
import {
|
|
79
79
|
invalidateAutoEmbedSession,
|
|
80
80
|
drainBackgroundBatches
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
TAG_SELECT_COLUMNS2,
|
|
24
24
|
getCandidateToolOwners2,
|
|
25
25
|
pickNearestPriorOwner2
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-zchc0df8.js";
|
|
27
27
|
import {
|
|
28
28
|
OMO_INTERNAL_INITIATOR_MARKER,
|
|
29
29
|
isSystemDirective,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
formatBlock,
|
|
40
40
|
compactTextForSummary,
|
|
41
41
|
mergeCommitHashes
|
|
42
|
-
} from "./index-
|
|
42
|
+
} from "./index-000fthre.js";
|
|
43
43
|
import {
|
|
44
44
|
Database2,
|
|
45
45
|
prepareCachedStatement2
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
hasRawSessionMessageByIdFromDb2,
|
|
72
72
|
readRawSeedTailFromDb2,
|
|
73
73
|
readRawSessionBoundaryEndpointsFromDb2
|
|
74
|
-
} from "./index-
|
|
74
|
+
} from "./index-3g9fnq6y.js";
|
|
75
75
|
import {
|
|
76
76
|
markHostUnservedRow,
|
|
77
77
|
isHostUnservedRow
|
|
@@ -219,6 +219,9 @@ function detectLatestTurnThinkingMismatch(error) {
|
|
|
219
219
|
}
|
|
220
220
|
var PREFIX_BOUND_THINKING_MODELS = [
|
|
221
221
|
["fable", 5, 1],
|
|
222
|
+
["fable", 5, 2],
|
|
223
|
+
["mythos", 5, 1],
|
|
224
|
+
["mythos", 5, 2],
|
|
222
225
|
["opus", 5, 5],
|
|
223
226
|
["sonnet", 5, 5],
|
|
224
227
|
["haiku", 5, 5]
|
|
@@ -38,25 +38,25 @@ import {
|
|
|
38
38
|
} from "./index-135e8hvg.js";
|
|
39
39
|
import {
|
|
40
40
|
estimateTokens
|
|
41
|
-
} from "./index-
|
|
41
|
+
} from "./index-000fthre.js";
|
|
42
42
|
import {
|
|
43
43
|
SubcClient,
|
|
44
44
|
connectionFileExists,
|
|
45
45
|
SYNAPSE_DEFAULT_MODEL,
|
|
46
46
|
toSynapseLaneDescriptor,
|
|
47
47
|
SynapseEmbeddingProvider
|
|
48
|
-
} from "./index-
|
|
48
|
+
} from "./index-gwvahsdz.js";
|
|
49
49
|
import {
|
|
50
50
|
inRootAsyncContext2,
|
|
51
51
|
Database2
|
|
52
52
|
} from "./index-2qtx0q6h.js";
|
|
53
53
|
import {
|
|
54
54
|
noteRawSessionSummaryRowWritten2
|
|
55
|
-
} from "./index-
|
|
55
|
+
} from "./index-3g9fnq6y.js";
|
|
56
56
|
import {
|
|
57
57
|
piHarnessKindFromExecutable,
|
|
58
58
|
getErrorMessage
|
|
59
|
-
} from "./index-
|
|
59
|
+
} from "./index-wwf9vxpf.js";
|
|
60
60
|
import {
|
|
61
61
|
getOrCreateSessionMeta,
|
|
62
62
|
updateSessionMeta,
|
|
@@ -70,10 +70,10 @@ import {
|
|
|
70
70
|
renderMessageByOrdinal2,
|
|
71
71
|
renderVerboseRange2,
|
|
72
72
|
renderItemByTag2
|
|
73
|
-
} from "./index-
|
|
73
|
+
} from "./index-6bedye3n.js";
|
|
74
74
|
import {
|
|
75
75
|
getLastIndexedOrdinal
|
|
76
|
-
} from "./index-
|
|
76
|
+
} from "./index-fzadydec.js";
|
|
77
77
|
import {
|
|
78
78
|
setNoteLastReadAt,
|
|
79
79
|
getPersistedCompactionMarkerState,
|
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
hasRawMessageProvider2,
|
|
84
84
|
setRawMessageProvider2,
|
|
85
85
|
readSessionChunk2
|
|
86
|
-
} from "./index-
|
|
86
|
+
} from "./index-7esg5v2x.js";
|
|
87
87
|
import {
|
|
88
88
|
stableStringify
|
|
89
89
|
} from "./index-yacs388s.js";
|
|
@@ -109,8 +109,9 @@ import {
|
|
|
109
109
|
} from "./index-yhzhdp3m.js";
|
|
110
110
|
import {
|
|
111
111
|
preflightLocalEmbeddingPooling
|
|
112
|
-
} from "./index-
|
|
112
|
+
} from "./index-tsg6swzr.js";
|
|
113
113
|
import {
|
|
114
|
+
withQueryEmbeddingDeadline,
|
|
114
115
|
markProjectLoadUntrusted2,
|
|
115
116
|
drainProjectEmbeddingIdentityMaintenance2,
|
|
116
117
|
registerProjectEmbedding2,
|
|
@@ -120,7 +121,7 @@ import {
|
|
|
120
121
|
unregisterProjectEmbedding2,
|
|
121
122
|
getProjectEmbeddingSnapshot2,
|
|
122
123
|
embedTextForProject2
|
|
123
|
-
} from "./index-
|
|
124
|
+
} from "./index-rcenqffj.js";
|
|
124
125
|
import {
|
|
125
126
|
directoryHasGitMetadata,
|
|
126
127
|
resolveProjectIdentityForSession,
|
|
@@ -133,7 +134,7 @@ import {
|
|
|
133
134
|
resolveMemoriesByIdsForSearch2,
|
|
134
135
|
unifiedSearch2,
|
|
135
136
|
formatSearchResults2
|
|
136
|
-
} from "./index-
|
|
137
|
+
} from "./index-qt711raa.js";
|
|
137
138
|
import {
|
|
138
139
|
TODO_STATUSES,
|
|
139
140
|
TODO_PRIORITIES,
|
|
@@ -144,7 +145,7 @@ import {
|
|
|
144
145
|
getInertWhitespaceAssistantTagsByNumbers2,
|
|
145
146
|
getTagNumberByMessageId2,
|
|
146
147
|
getTagsBySession2
|
|
147
|
-
} from "./index-
|
|
148
|
+
} from "./index-zchc0df8.js";
|
|
148
149
|
import {
|
|
149
150
|
resolveOpenCodeDbPath,
|
|
150
151
|
assertOpenCodeStoreGeneration
|
|
@@ -183,7 +184,7 @@ import {
|
|
|
183
184
|
} from "./index-2kmwjq42.js";
|
|
184
185
|
import {
|
|
185
186
|
renderSearchArchive2
|
|
186
|
-
} from "./index-
|
|
187
|
+
} from "./index-v7m1nqwz.js";
|
|
187
188
|
import {
|
|
188
189
|
computeNormalizedHash
|
|
189
190
|
} from "./index-9x1f96r8.js";
|
|
@@ -608,6 +609,11 @@ function deriveWindowGeometry(providerID, modelID, catalogLimit, options = {}) {
|
|
|
608
609
|
const requestedOutput = Math.min(output ?? OPENCODE_OUTPUT_CAP, OPENCODE_OUTPUT_CAP);
|
|
609
610
|
usableHard = hardWindow - requestedOutput;
|
|
610
611
|
}
|
|
612
|
+
let hardWithoutInputCap;
|
|
613
|
+
if (isFinitePositive(input) && input < usableHard) {
|
|
614
|
+
hardWithoutInputCap = Math.max(MIN_PLAUSIBLE_CONTEXT_LIMIT, Math.floor(usableHard));
|
|
615
|
+
usableHard = input;
|
|
616
|
+
}
|
|
611
617
|
usableHard = Math.max(MIN_PLAUSIBLE_CONTEXT_LIMIT, Math.floor(usableHard));
|
|
612
618
|
if (usableHard < usableSoft) {
|
|
613
619
|
logGeometryClampOnce(`${providerID}/${modelID}|${usableSoft}|${usableHard}`, `usable hard limit clamped for ${providerID}/${modelID}: ${usableHard} → ${usableSoft} (window limit inversion)`, options.log);
|
|
@@ -624,7 +630,8 @@ function deriveWindowGeometry(providerID, modelID, catalogLimit, options = {}) {
|
|
|
624
630
|
reserveSource,
|
|
625
631
|
geometry,
|
|
626
632
|
windowSource,
|
|
627
|
-
absoluteWall: Math.floor(hardWindow)
|
|
633
|
+
absoluteWall: Math.floor(hardWindow),
|
|
634
|
+
...hardWithoutInputCap !== undefined ? { hardWithoutInputCap } : {}
|
|
628
635
|
}
|
|
629
636
|
};
|
|
630
637
|
}
|
|
@@ -646,11 +653,13 @@ function applyProvenInputFloor(geometry, provenInputTokens) {
|
|
|
646
653
|
}
|
|
647
654
|
const trustedAbsoluteWall = hasTrustedAbsoluteWall(geometry);
|
|
648
655
|
const window = trustedAbsoluteWall ? geometry.derivation.window : Math.max(geometry.derivation.window, provenInputTokens);
|
|
656
|
+
const inputCapDisproved = geometry.derivation.hardWithoutInputCap !== undefined && provenInputTokens > geometry.usableHard;
|
|
657
|
+
const hardBeforeFloor = inputCapDisproved ? geometry.derivation.hardWithoutInputCap : geometry.usableHard;
|
|
649
658
|
return {
|
|
650
659
|
geometry: {
|
|
651
660
|
...geometry,
|
|
652
661
|
usableSoft: provenInputTokens,
|
|
653
|
-
usableHard: trustedAbsoluteWall ?
|
|
662
|
+
usableHard: trustedAbsoluteWall ? hardBeforeFloor : Math.max(hardBeforeFloor, provenInputTokens),
|
|
654
663
|
derivation: {
|
|
655
664
|
...geometry.derivation,
|
|
656
665
|
window,
|
|
@@ -7609,9 +7618,9 @@ var FULL_PARAMETER_DESCRIPTIONS = {
|
|
|
7609
7618
|
},
|
|
7610
7619
|
ctx_memory: {
|
|
7611
7620
|
action: "write | update | archive | merge | get",
|
|
7612
|
-
content: "The memory text — one standalone fact (write, update, merge).",
|
|
7613
|
-
category: "Kind of fact
|
|
7614
|
-
ids: "Memory ids from <project-memory>: one for update, one or more for archive, two or more for merge, 1–20 for get.",
|
|
7621
|
+
content: "The memory text — one standalone fact (write, update, merge). Archive and get take an empty string.",
|
|
7622
|
+
category: "Kind of fact: the new fact's kind for write; on update/merge, the memory's current category to keep it. Archive and get ignore it.",
|
|
7623
|
+
ids: "Memory ids from <project-memory>: one for update, one or more for archive, two or more for merge, 1–20 for get. Write takes an empty list.",
|
|
7615
7624
|
reason: "Why it is being archived (optional)."
|
|
7616
7625
|
},
|
|
7617
7626
|
ctx_search: {
|
|
@@ -7644,9 +7653,9 @@ var LIGHT_PARAMETER_DESCRIPTIONS = {
|
|
|
7644
7653
|
},
|
|
7645
7654
|
ctx_memory: {
|
|
7646
7655
|
action: "write | update | archive | merge | get",
|
|
7647
|
-
content: "One standalone fact (write, update, merge).",
|
|
7648
|
-
category: "Kind of fact (
|
|
7649
|
-
ids: "Ids from <project-memory>: one for update, 1+ for archive, 2+ for merge, 1–20 for get.",
|
|
7656
|
+
content: "One standalone fact (write, update, merge). Archive and get: empty string.",
|
|
7657
|
+
category: "Kind of fact (write; on update/merge pass the current category to keep it). Archive and get ignore it.",
|
|
7658
|
+
ids: "Ids from <project-memory>: one for update, 1+ for archive, 2+ for merge, 1–20 for get. Write: empty list.",
|
|
7650
7659
|
reason: "Why it is archived (optional)."
|
|
7651
7660
|
},
|
|
7652
7661
|
ctx_search: {
|
|
@@ -10053,7 +10062,7 @@ function createCtxSearchTool(deps) {
|
|
|
10053
10062
|
memoryEnabled,
|
|
10054
10063
|
embeddingEnabled,
|
|
10055
10064
|
embedQuery: async (text, signal) => {
|
|
10056
|
-
const result = await embedTextForProject2(projectIdentity, text,
|
|
10065
|
+
const result = await withQueryEmbeddingDeadline((embeddingSignal) => embedTextForProject2(projectIdentity, text, embeddingSignal, "query"), signal);
|
|
10057
10066
|
return result?.vector ?? null;
|
|
10058
10067
|
},
|
|
10059
10068
|
isEmbeddingRuntimeEnabled: () => embeddingEnabled === true,
|
|
@@ -6,16 +6,16 @@ import {
|
|
|
6
6
|
removeNestedBlocks,
|
|
7
7
|
hasMeaningfulUserText2,
|
|
8
8
|
extractTexts2
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-000fthre.js";
|
|
10
10
|
import {
|
|
11
11
|
cleanUserText2
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-7esg5v2x.js";
|
|
13
13
|
import {
|
|
14
14
|
recordMessageFtsRowid2,
|
|
15
15
|
recordIndexedMessageTime2,
|
|
16
16
|
messageFtsOrdinalRangeIsMapped2,
|
|
17
17
|
deleteUnmappedMessageFtsRows2
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-bbbp8zs1.js";
|
|
19
19
|
import {
|
|
20
20
|
logSlowWriteTransaction
|
|
21
21
|
} from "./index-0wtm7g7f.js";
|
|
@@ -139,9 +139,9 @@ async function serveV2ArchiveReads2(port, openConnections) {
|
|
|
139
139
|
import("./sqlite-v89bj0yy.js"),
|
|
140
140
|
import("./store-reader-2m80zs5z.js"),
|
|
141
141
|
import("./store-v60q7dje.js"),
|
|
142
|
-
import("./read-session-chunk-
|
|
143
|
-
import("./render-
|
|
144
|
-
import("./search-archive-
|
|
142
|
+
import("./read-session-chunk-0ecmbegv.js"),
|
|
143
|
+
import("./render-s6k2xqhj.js"),
|
|
144
|
+
import("./search-archive-qza20zkm.js"),
|
|
145
145
|
import("./expand-attachments-8sxeyj26.js")
|
|
146
146
|
]);
|
|
147
147
|
const pool = new V2StoreReaderPool;
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./index-gymgz20n.js";
|
|
16
16
|
import {
|
|
17
17
|
SubcClient
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-gwvahsdz.js";
|
|
19
19
|
import {
|
|
20
20
|
inRootAsyncContext2,
|
|
21
21
|
getSqliteDatabasePath2,
|
|
@@ -24,13 +24,13 @@ import {
|
|
|
24
24
|
} from "./index-2qtx0q6h.js";
|
|
25
25
|
import {
|
|
26
26
|
runSessionWarmupWorker
|
|
27
|
-
} from "./index-
|
|
27
|
+
} from "./index-3g9fnq6y.js";
|
|
28
28
|
import {
|
|
29
29
|
buildCanonicalChunkTextFromFts2,
|
|
30
30
|
loadCompartmentChunkEmbeddingsForSearch2,
|
|
31
31
|
peekCompartmentChunkSearchPool2,
|
|
32
32
|
warmCompartmentChunkSearchPool2
|
|
33
|
-
} from "./index-
|
|
33
|
+
} from "./index-4sa1rx3h.js";
|
|
34
34
|
import {
|
|
35
35
|
saveCommitEmbedding,
|
|
36
36
|
loadProjectCommitEmbeddings,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
getProjectEmbeddingSnapshot2,
|
|
48
48
|
embedTextForProject2,
|
|
49
49
|
embedItemsForProject2
|
|
50
|
-
} from "./index-
|
|
50
|
+
} from "./index-rcenqffj.js";
|
|
51
51
|
import {
|
|
52
52
|
recordEmbeddingMeasurement
|
|
53
53
|
} from "./index-hgd00nas.js";
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
isEmbeddingEnabled,
|
|
64
64
|
embedText,
|
|
65
65
|
ensureMemoryEmbeddings2
|
|
66
|
-
} from "./index-
|
|
66
|
+
} from "./index-zwbgxt01.js";
|
|
67
67
|
import {
|
|
68
68
|
getMemorySelectColumns2,
|
|
69
69
|
isMemoryRow2,
|
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
clearIndexedMessages,
|
|
92
92
|
indexSingleMessage,
|
|
93
93
|
indexMessagesAfterOrdinal
|
|
94
|
-
} from "./index-
|
|
94
|
+
} from "./index-fzadydec.js";
|
|
95
95
|
import {
|
|
96
96
|
MESSAGE_FTS_SESSION_FILTER_SQL,
|
|
97
97
|
withMessageFtsSessionFilter
|