@gitroll/tacitt-cli 0.6.8 → 0.6.9
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/README.md +1 -1
- package/dist/{agent-setup-YlFIJz-h.mjs → agent-setup-CODlN6zl.mjs} +1 -1
- package/dist/agent-setup-worker.mjs +4 -4
- package/dist/cli.mjs +5 -5
- package/dist/codex-title-worker.mjs +1 -1
- package/dist/configured-preview-worker.mjs +4 -4
- package/dist/configured-session-worker.mjs +4 -4
- package/dist/{heap-DsE74_-n.mjs → heap-Dt3-d27v.mjs} +2 -2
- package/dist/inspection-worker.mjs +3 -3
- package/dist/{job-CeSf9UCC.mjs → job-BQXssW46.mjs} +3 -3
- package/dist/{model-f_QnDyyb.mjs → model-CSx2dP_P.mjs} +1 -1
- package/dist/operation-executor.mjs +2 -2
- package/dist/preview-worker.mjs +1 -1
- package/dist/{query-CaBXQlpF.mjs → query-CfhcS4gd.mjs} +168 -112
- package/dist/{run-RA_8zZsL.mjs → run-xlOaKCk8.mjs} +2 -2
- package/dist/{src-BBjnljUs.mjs → src-BgsEnMsy.mjs} +3 -3
- package/dist/{src-d7n58sbH.mjs → src-DzKuzGVH.mjs} +183 -147
- package/dist/{src-p_uJNjV3.mjs → src-V9GHLZQs.mjs} +1 -1
- package/dist/store-database-worker.mjs +1 -1
- package/dist/web/assets/{index-B6kJ6XXF.js → index-9UfCT_2C.js} +1 -1
- package/dist/web/index.html +1 -1
- package/package.json +1 -1
- package/skills/tacitt/SKILL.md +3 -3
- package/skills/tacitt/references/commands.md +50 -11
- package/skills/tacitt/references/journey.md +1 -1
- package/skills/tacitt/references/parallel-review.md +21 -0
- package/skills/tacitt/scripts/INDEX.md +39 -36
- package/skills/tacitt/scripts/journey-scan-timing.d.mts +15 -0
- package/skills/tacitt/scripts/journey-scan-timing.mjs +153 -1
- package/skills/tacitt/scripts/journey.mjs +15 -0
- package/skills/tacitt/scripts/review.mjs +280 -36
- package/LICENSE +0 -11
|
@@ -1192,152 +1192,6 @@ function requireSelecting(run) {
|
|
|
1192
1192
|
if (run.phase !== "selecting") throw new ApplicationError("INVALID_TRANSITION");
|
|
1193
1193
|
}
|
|
1194
1194
|
//#endregion
|
|
1195
|
-
//#region packages/application/src/journey/preview.ts
|
|
1196
|
-
const journeyRenderSchema = z.object({
|
|
1197
|
-
journeyId: journeyIdSchema,
|
|
1198
|
-
workId: journeyIdSchema
|
|
1199
|
-
}).strict();
|
|
1200
|
-
/** One Work, or several in one call where each Work renders or fails on its own. */
|
|
1201
|
-
const journeyRenderInputSchema = z.union([journeyRenderSchema, z.object({
|
|
1202
|
-
journeyId: journeyIdSchema,
|
|
1203
|
-
workIds: z.array(journeyIdSchema).min(1).max(256)
|
|
1204
|
-
}).strict()]);
|
|
1205
|
-
const journeyPreviewSchema = journeyRenderSchema.extend({ cursor: z.object({
|
|
1206
|
-
sha256: journeyDigestSchema,
|
|
1207
|
-
after: z.number().int().min(-1)
|
|
1208
|
-
}).strict().optional() }).strict();
|
|
1209
|
-
z.object({
|
|
1210
|
-
workId: journeyIdSchema,
|
|
1211
|
-
revision: z.number().int().nonnegative(),
|
|
1212
|
-
sha256: journeyDigestSchema,
|
|
1213
|
-
title: z.string(),
|
|
1214
|
-
rows: z.array(z.object({
|
|
1215
|
-
ordinal: z.number().int().nonnegative(),
|
|
1216
|
-
sessionId: z.string(),
|
|
1217
|
-
role: z.enum(["user", "assistant"]),
|
|
1218
|
-
text: z.string()
|
|
1219
|
-
}).strict()),
|
|
1220
|
-
cursor: z.object({
|
|
1221
|
-
sha256: journeyDigestSchema,
|
|
1222
|
-
after: z.number().int().min(-1)
|
|
1223
|
-
}).strict().nullable()
|
|
1224
|
-
}).strict();
|
|
1225
|
-
//#endregion
|
|
1226
|
-
//#region packages/application/src/journey/privacy/findings.ts
|
|
1227
|
-
/** UTF-16 source coordinates; contexts are local private evidence, never journey state. */
|
|
1228
|
-
const journeyFindingsSchema = journeyPreviewSchema;
|
|
1229
|
-
const journeyFindingSchema = z.object({
|
|
1230
|
-
ordinal: z.number().int().nonnegative(),
|
|
1231
|
-
termKey: z.string(),
|
|
1232
|
-
value: z.string(),
|
|
1233
|
-
type: termTypeSchema,
|
|
1234
|
-
disposition: z.enum(["hidden", "pending"]),
|
|
1235
|
-
reason: z.string(),
|
|
1236
|
-
entryPath: z.string(),
|
|
1237
|
-
basis: z.enum([
|
|
1238
|
-
"static-original",
|
|
1239
|
-
"static-base",
|
|
1240
|
-
"classification-metadata",
|
|
1241
|
-
"scan-source"
|
|
1242
|
-
]),
|
|
1243
|
-
source: z.discriminatedUnion("kind", [
|
|
1244
|
-
z.object({
|
|
1245
|
-
kind: z.literal("session"),
|
|
1246
|
-
sessionId: z.string(),
|
|
1247
|
-
sourcePartId: z.string().nullable(),
|
|
1248
|
-
recordIndex: z.number().int().nonnegative(),
|
|
1249
|
-
pointer: z.string()
|
|
1250
|
-
}).strict(),
|
|
1251
|
-
z.object({
|
|
1252
|
-
kind: z.literal("metadata"),
|
|
1253
|
-
field: z.string()
|
|
1254
|
-
}).strict(),
|
|
1255
|
-
z.object({
|
|
1256
|
-
kind: z.literal("setup"),
|
|
1257
|
-
pointer: z.string()
|
|
1258
|
-
}).strict()
|
|
1259
|
-
]),
|
|
1260
|
-
start: z.number().int().nonnegative(),
|
|
1261
|
-
end: z.number().int().nonnegative(),
|
|
1262
|
-
context: z.object({
|
|
1263
|
-
text: z.string(),
|
|
1264
|
-
start: z.number().int().nonnegative(),
|
|
1265
|
-
matchStart: z.number().int().nonnegative(),
|
|
1266
|
-
matchEnd: z.number().int().nonnegative()
|
|
1267
|
-
}).strict()
|
|
1268
|
-
}).strict();
|
|
1269
|
-
z.object({
|
|
1270
|
-
workId: z.uuid(),
|
|
1271
|
-
countScope: z.literal("source-evidence"),
|
|
1272
|
-
revision: z.number().int().nonnegative(),
|
|
1273
|
-
sha256: z.string(),
|
|
1274
|
-
rows: z.array(journeyFindingSchema).max(32),
|
|
1275
|
-
cursor: journeyPreviewSchema.shape.cursor.unwrap().nullable()
|
|
1276
|
-
}).strict();
|
|
1277
|
-
const journeyFindingImpactSchema = z.object({
|
|
1278
|
-
journeyId: z.uuid(),
|
|
1279
|
-
termKeys: z.array(z.string()).min(1).max(2e4),
|
|
1280
|
-
cursor: journeyPreviewSchema.shape.cursor
|
|
1281
|
-
}).strict();
|
|
1282
|
-
//#endregion
|
|
1283
|
-
//#region packages/application/src/journey/privacy/record.ts
|
|
1284
|
-
/** Merge independently reviewed occurrences into one journey-wide decision. */
|
|
1285
|
-
function mergePrivacyTerms(state, incoming) {
|
|
1286
|
-
const terms = new Map(state.privacy.terms.map((term) => [privacyTermKey(term), term]));
|
|
1287
|
-
const overrides = /* @__PURE__ */ new Map();
|
|
1288
|
-
for (const item of state.valueOverrides ?? []) {
|
|
1289
|
-
const value = item.value.normalize("NFC");
|
|
1290
|
-
if (!overrides.has(value)) overrides.set(value, item);
|
|
1291
|
-
}
|
|
1292
|
-
for (const term of incoming) {
|
|
1293
|
-
const key = privacyTermKey(term), prior = terms.get(key);
|
|
1294
|
-
const override = overrides.get(term.value.normalize("NFC"));
|
|
1295
|
-
const preference = state.groups.find((group) => group.key === `type:${term.type}` && group.origin === "preference");
|
|
1296
|
-
const disposition = !termTypeInfo[term.type].asked ? "hidden" : override ? override.choice === "hide" ? "hidden" : "keep" : preference?.choice ? preference.choice === "hide" ? "hidden" : "keep" : prior?.disposition === "hidden" || term.disposition === "hidden" ? "hidden" : prior && prior.disposition !== term.disposition ? "pending" : term.disposition;
|
|
1297
|
-
const sources = [...new Map([...prior?.sources ?? [], ...term.sources].map((source) => [JSON.stringify(source.kind === "session" ? [
|
|
1298
|
-
source.workId,
|
|
1299
|
-
source.batchId,
|
|
1300
|
-
source.chunkId
|
|
1301
|
-
] : [source.workId, source.field]), source])).values()];
|
|
1302
|
-
terms.set(key, {
|
|
1303
|
-
...term,
|
|
1304
|
-
disposition,
|
|
1305
|
-
sources,
|
|
1306
|
-
reason: prior && prior.disposition !== term.disposition ? disposition === "pending" ? "Conflicting scan judgments require a contextual decision." : disposition === "hidden" ? "A Hidden judgment for this keyword takes precedence." : term.reason : term.reason
|
|
1307
|
-
});
|
|
1308
|
-
}
|
|
1309
|
-
const values = Map.groupBy([...terms.values()], (term) => term.value.normalize("NFC"));
|
|
1310
|
-
for (const same of values.values()) if (same.some((term) => !termTypeInfo[term.type].asked)) for (const term of same) terms.set(privacyTermKey(term), {
|
|
1311
|
-
...term,
|
|
1312
|
-
disposition: "hidden"
|
|
1313
|
-
});
|
|
1314
|
-
else if (overrides.has(same[0]?.value.normalize("NFC") ?? "")) {
|
|
1315
|
-
const override = overrides.get(same[0]?.value.normalize("NFC") ?? "");
|
|
1316
|
-
for (const term of same) terms.set(privacyTermKey(term), {
|
|
1317
|
-
...term,
|
|
1318
|
-
disposition: override?.choice === "hide" ? "hidden" : "keep"
|
|
1319
|
-
});
|
|
1320
|
-
} else if (same.some((term) => term.disposition === "hidden")) for (const term of same) terms.set(privacyTermKey(term), {
|
|
1321
|
-
...term,
|
|
1322
|
-
disposition: "hidden",
|
|
1323
|
-
reason: term.disposition === "hidden" ? term.reason : "A Hidden judgment for this NFC keyword takes precedence across term types."
|
|
1324
|
-
});
|
|
1325
|
-
else if (new Set(same.map((term) => term.disposition)).size > 1) for (const term of same) terms.set(privacyTermKey(term), {
|
|
1326
|
-
...term,
|
|
1327
|
-
disposition: "pending",
|
|
1328
|
-
reason: "Conflicting scan judgments require a contextual decision."
|
|
1329
|
-
});
|
|
1330
|
-
return {
|
|
1331
|
-
...state.privacy,
|
|
1332
|
-
terms: [...terms.values()],
|
|
1333
|
-
packageApproval: null
|
|
1334
|
-
};
|
|
1335
|
-
}
|
|
1336
|
-
/** A journey-wide literal can affect selected Works even when its reporting Work was Dropped. */
|
|
1337
|
-
function activePrivacyTerms(state) {
|
|
1338
|
-
return state.works.some((work) => work.access !== "drop" && work.rootSessionIds.length > 0) ? state.privacy.terms : [];
|
|
1339
|
-
}
|
|
1340
|
-
//#endregion
|
|
1341
1195
|
//#region packages/application/src/journey/placement/readiness.ts
|
|
1342
1196
|
function hasCompleteWorkDescription(work) {
|
|
1343
1197
|
return work.placement === "placed" && !!work.description.trim() && work.classificationRecommendation !== null;
|
|
@@ -1754,6 +1608,64 @@ function hasCurrentStaticReview(state, work) {
|
|
|
1754
1608
|
return work.staticReview !== void 0 && work.staticReview.snapshotId === state.snapshotId && work.staticReview.inputRevision === work.inputRevision;
|
|
1755
1609
|
}
|
|
1756
1610
|
//#endregion
|
|
1611
|
+
//#region packages/application/src/journey/privacy/record.ts
|
|
1612
|
+
/** Merge independently reviewed occurrences into one journey-wide decision. */
|
|
1613
|
+
function mergePrivacyTerms(state, incoming) {
|
|
1614
|
+
const terms = new Map(state.privacy.terms.map((term) => [privacyTermKey(term), term]));
|
|
1615
|
+
const overrides = /* @__PURE__ */ new Map();
|
|
1616
|
+
for (const item of state.valueOverrides ?? []) {
|
|
1617
|
+
const value = item.value.normalize("NFC");
|
|
1618
|
+
if (!overrides.has(value)) overrides.set(value, item);
|
|
1619
|
+
}
|
|
1620
|
+
for (const term of incoming) {
|
|
1621
|
+
const key = privacyTermKey(term), prior = terms.get(key);
|
|
1622
|
+
const override = overrides.get(term.value.normalize("NFC"));
|
|
1623
|
+
const preference = state.groups.find((group) => group.key === `type:${term.type}` && group.origin === "preference");
|
|
1624
|
+
const disposition = !termTypeInfo[term.type].asked ? "hidden" : override ? override.choice === "hide" ? "hidden" : "keep" : preference?.choice ? preference.choice === "hide" ? "hidden" : "keep" : prior?.disposition === "hidden" || term.disposition === "hidden" ? "hidden" : prior && prior.disposition !== term.disposition ? "pending" : term.disposition;
|
|
1625
|
+
const sources = [...new Map([...prior?.sources ?? [], ...term.sources].map((source) => [JSON.stringify(source.kind === "session" ? [
|
|
1626
|
+
source.workId,
|
|
1627
|
+
source.batchId,
|
|
1628
|
+
source.chunkId
|
|
1629
|
+
] : [source.workId, source.field]), source])).values()];
|
|
1630
|
+
terms.set(key, {
|
|
1631
|
+
...term,
|
|
1632
|
+
disposition,
|
|
1633
|
+
sources,
|
|
1634
|
+
reason: prior && prior.disposition !== term.disposition ? disposition === "pending" ? "Conflicting scan judgments require a contextual decision." : disposition === "hidden" ? "A Hidden judgment for this keyword takes precedence." : term.reason : term.reason
|
|
1635
|
+
});
|
|
1636
|
+
}
|
|
1637
|
+
const values = Map.groupBy([...terms.values()], (term) => term.value.normalize("NFC"));
|
|
1638
|
+
for (const same of values.values()) if (same.some((term) => !termTypeInfo[term.type].asked)) for (const term of same) terms.set(privacyTermKey(term), {
|
|
1639
|
+
...term,
|
|
1640
|
+
disposition: "hidden"
|
|
1641
|
+
});
|
|
1642
|
+
else if (overrides.has(same[0]?.value.normalize("NFC") ?? "")) {
|
|
1643
|
+
const override = overrides.get(same[0]?.value.normalize("NFC") ?? "");
|
|
1644
|
+
for (const term of same) terms.set(privacyTermKey(term), {
|
|
1645
|
+
...term,
|
|
1646
|
+
disposition: override?.choice === "hide" ? "hidden" : "keep"
|
|
1647
|
+
});
|
|
1648
|
+
} else if (same.some((term) => term.disposition === "hidden")) for (const term of same) terms.set(privacyTermKey(term), {
|
|
1649
|
+
...term,
|
|
1650
|
+
disposition: "hidden",
|
|
1651
|
+
reason: term.disposition === "hidden" ? term.reason : "A Hidden judgment for this NFC keyword takes precedence across term types."
|
|
1652
|
+
});
|
|
1653
|
+
else if (new Set(same.map((term) => term.disposition)).size > 1) for (const term of same) terms.set(privacyTermKey(term), {
|
|
1654
|
+
...term,
|
|
1655
|
+
disposition: "pending",
|
|
1656
|
+
reason: "Conflicting scan judgments require a contextual decision."
|
|
1657
|
+
});
|
|
1658
|
+
return {
|
|
1659
|
+
...state.privacy,
|
|
1660
|
+
terms: [...terms.values()],
|
|
1661
|
+
packageApproval: null
|
|
1662
|
+
};
|
|
1663
|
+
}
|
|
1664
|
+
/** A journey-wide literal can affect selected Works even when its reporting Work was Dropped. */
|
|
1665
|
+
function activePrivacyTerms(state) {
|
|
1666
|
+
return state.works.some((work) => work.access !== "drop" && work.rootSessionIds.length > 0) ? state.privacy.terms : [];
|
|
1667
|
+
}
|
|
1668
|
+
//#endregion
|
|
1757
1669
|
//#region packages/application/src/journey/policy/commands.ts
|
|
1758
1670
|
const journeyFindingReferenceSchema = z.object({
|
|
1759
1671
|
batchId: journeyIdSchema,
|
|
@@ -2403,6 +2315,127 @@ function respondPrivacy(state, action, source) {
|
|
|
2403
2315
|
return null;
|
|
2404
2316
|
}
|
|
2405
2317
|
//#endregion
|
|
2318
|
+
//#region packages/application/src/journey/send/displayed-scope.ts
|
|
2319
|
+
function hash(value) {
|
|
2320
|
+
return createHash("sha256").update(JSON.stringify(value)).digest("hex");
|
|
2321
|
+
}
|
|
2322
|
+
/** Artifact-independent authorization: packaging progress cannot expand this scope. */
|
|
2323
|
+
function requestedScope(journey) {
|
|
2324
|
+
return hash({
|
|
2325
|
+
privacy: privacyDecisionDigest(journey),
|
|
2326
|
+
configurationId: journey.configurationId,
|
|
2327
|
+
confirmedHideRevision: journey.confirmedHideRevision ?? 0,
|
|
2328
|
+
consent: journey.consent,
|
|
2329
|
+
profile: journey.profile,
|
|
2330
|
+
works: journey.works.map((work) => ({
|
|
2331
|
+
id: work.id,
|
|
2332
|
+
inputRevision: work.inputRevision,
|
|
2333
|
+
access: work.access,
|
|
2334
|
+
accessConfirmed: work.accessConfirmed,
|
|
2335
|
+
included: isIncludedWork(work),
|
|
2336
|
+
placement: work.placement,
|
|
2337
|
+
suggestion: work.suggestion
|
|
2338
|
+
}))
|
|
2339
|
+
});
|
|
2340
|
+
}
|
|
2341
|
+
/** Host-issued review fence; clients echo it without hashing private decision data. */
|
|
2342
|
+
function displayedScopeDigest(journey) {
|
|
2343
|
+
return hash({
|
|
2344
|
+
scope: requestedScope(journey),
|
|
2345
|
+
phase: journey.phase === "review" ? "ready" : journey.phase,
|
|
2346
|
+
pendingHideId: journey.pendingHideId,
|
|
2347
|
+
abandonedAt: journey.abandonedAt
|
|
2348
|
+
});
|
|
2349
|
+
}
|
|
2350
|
+
//#endregion
|
|
2351
|
+
//#region packages/application/src/journey/preview.ts
|
|
2352
|
+
const journeyRenderSchema = z.object({
|
|
2353
|
+
journeyId: journeyIdSchema,
|
|
2354
|
+
workId: journeyIdSchema
|
|
2355
|
+
}).strict();
|
|
2356
|
+
/** One Work, or several in one call where each Work renders or fails on its own. */
|
|
2357
|
+
const journeyRenderInputSchema = z.union([journeyRenderSchema, z.object({
|
|
2358
|
+
journeyId: journeyIdSchema,
|
|
2359
|
+
workIds: z.array(journeyIdSchema).min(1).max(256)
|
|
2360
|
+
}).strict()]);
|
|
2361
|
+
const journeyPreviewSchema = journeyRenderSchema.extend({ cursor: z.object({
|
|
2362
|
+
sha256: journeyDigestSchema,
|
|
2363
|
+
after: z.number().int().min(-1)
|
|
2364
|
+
}).strict().optional() }).strict();
|
|
2365
|
+
z.object({
|
|
2366
|
+
workId: journeyIdSchema,
|
|
2367
|
+
revision: z.number().int().nonnegative(),
|
|
2368
|
+
sha256: journeyDigestSchema,
|
|
2369
|
+
title: z.string(),
|
|
2370
|
+
rows: z.array(z.object({
|
|
2371
|
+
ordinal: z.number().int().nonnegative(),
|
|
2372
|
+
sessionId: z.string(),
|
|
2373
|
+
role: z.enum(["user", "assistant"]),
|
|
2374
|
+
text: z.string()
|
|
2375
|
+
}).strict()),
|
|
2376
|
+
cursor: z.object({
|
|
2377
|
+
sha256: journeyDigestSchema,
|
|
2378
|
+
after: z.number().int().min(-1)
|
|
2379
|
+
}).strict().nullable()
|
|
2380
|
+
}).strict();
|
|
2381
|
+
//#endregion
|
|
2382
|
+
//#region packages/application/src/journey/privacy/findings.ts
|
|
2383
|
+
/** UTF-16 source coordinates; contexts are local private evidence, never journey state. */
|
|
2384
|
+
const journeyFindingsSchema = journeyPreviewSchema;
|
|
2385
|
+
const journeyFindingSchema = z.object({
|
|
2386
|
+
ordinal: z.number().int().nonnegative(),
|
|
2387
|
+
termKey: z.string(),
|
|
2388
|
+
value: z.string(),
|
|
2389
|
+
type: termTypeSchema,
|
|
2390
|
+
disposition: z.enum(["hidden", "pending"]),
|
|
2391
|
+
reason: z.string(),
|
|
2392
|
+
entryPath: z.string(),
|
|
2393
|
+
basis: z.enum([
|
|
2394
|
+
"static-original",
|
|
2395
|
+
"static-base",
|
|
2396
|
+
"classification-metadata",
|
|
2397
|
+
"scan-source"
|
|
2398
|
+
]),
|
|
2399
|
+
source: z.discriminatedUnion("kind", [
|
|
2400
|
+
z.object({
|
|
2401
|
+
kind: z.literal("session"),
|
|
2402
|
+
sessionId: z.string(),
|
|
2403
|
+
sourcePartId: z.string().nullable(),
|
|
2404
|
+
recordIndex: z.number().int().nonnegative(),
|
|
2405
|
+
pointer: z.string()
|
|
2406
|
+
}).strict(),
|
|
2407
|
+
z.object({
|
|
2408
|
+
kind: z.literal("metadata"),
|
|
2409
|
+
field: z.string()
|
|
2410
|
+
}).strict(),
|
|
2411
|
+
z.object({
|
|
2412
|
+
kind: z.literal("setup"),
|
|
2413
|
+
pointer: z.string()
|
|
2414
|
+
}).strict()
|
|
2415
|
+
]),
|
|
2416
|
+
start: z.number().int().nonnegative(),
|
|
2417
|
+
end: z.number().int().nonnegative(),
|
|
2418
|
+
context: z.object({
|
|
2419
|
+
text: z.string(),
|
|
2420
|
+
start: z.number().int().nonnegative(),
|
|
2421
|
+
matchStart: z.number().int().nonnegative(),
|
|
2422
|
+
matchEnd: z.number().int().nonnegative()
|
|
2423
|
+
}).strict()
|
|
2424
|
+
}).strict();
|
|
2425
|
+
z.object({
|
|
2426
|
+
workId: z.uuid(),
|
|
2427
|
+
countScope: z.literal("source-evidence"),
|
|
2428
|
+
revision: z.number().int().nonnegative(),
|
|
2429
|
+
sha256: z.string(),
|
|
2430
|
+
rows: z.array(journeyFindingSchema).max(32),
|
|
2431
|
+
cursor: journeyPreviewSchema.shape.cursor.unwrap().nullable()
|
|
2432
|
+
}).strict();
|
|
2433
|
+
const journeyFindingImpactSchema = z.object({
|
|
2434
|
+
journeyId: z.uuid(),
|
|
2435
|
+
termKeys: z.array(z.string()).min(1).max(2e4),
|
|
2436
|
+
cursor: journeyPreviewSchema.shape.cursor
|
|
2437
|
+
}).strict();
|
|
2438
|
+
//#endregion
|
|
2406
2439
|
//#region packages/application/src/journey/scope/classification.ts
|
|
2407
2440
|
const count$10 = z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER);
|
|
2408
2441
|
const classificationCursorSchema = z.object({
|
|
@@ -6261,6 +6294,7 @@ function journeyView(state, now) {
|
|
|
6261
6294
|
const terms = activePrivacyTerms(state);
|
|
6262
6295
|
return {
|
|
6263
6296
|
...safe,
|
|
6297
|
+
displayedScopeDigest: displayedScopeDigest(state),
|
|
6264
6298
|
privacy: {
|
|
6265
6299
|
...state.privacy,
|
|
6266
6300
|
terms
|
|
@@ -6952,6 +6986,7 @@ const version$1 = z.number().int().nonnegative();
|
|
|
6952
6986
|
const sendPrepareSchema = z.object({
|
|
6953
6987
|
journeyId: journeyIdSchema,
|
|
6954
6988
|
expectedJourneyRevision: version$1,
|
|
6989
|
+
displayedScopeDigest: journeyDigestSchema.optional(),
|
|
6955
6990
|
idempotencyKey: journeyIdSchema
|
|
6956
6991
|
}).strict();
|
|
6957
6992
|
const sendActionSchema = z.object({
|
|
@@ -6963,6 +6998,7 @@ const sendActionSchema = z.object({
|
|
|
6963
6998
|
}).strict();
|
|
6964
6999
|
const sendStartSchema = sendActionSchema.extend({
|
|
6965
7000
|
scopeDigest: journeyDigestSchema,
|
|
7001
|
+
displayedScopeDigest: journeyDigestSchema.optional(),
|
|
6966
7002
|
confirmedWorkIds: z.array(journeyIdSchema),
|
|
6967
7003
|
confirmedOmittedWorkIds: z.array(journeyIdSchema)
|
|
6968
7004
|
}).strict();
|
|
@@ -13412,4 +13448,4 @@ function equivalenceDuplicates(batch) {
|
|
|
13412
13448
|
return bindings.sort();
|
|
13413
13449
|
}
|
|
13414
13450
|
//#endregion
|
|
13415
|
-
export { settingsBatchSchema as $, reviewTransportBytes as $n,
|
|
13451
|
+
export { settingsBatchSchema as $, reviewTransportBytes as $n, isReadingComplete as $r, projectPreparationProgress as $t, deviceAuthorizationSchema as A, maximumHideIndexTokens as An, applyCardAnswers as Ar, nativeAdapterVersions as At, inspectionStartSchema as B, confirmedHideTerms as Bn, staticSessionResourceSchema as Br, classificationWorks as Bt, rebindReviewOverlay as C, confirmedHideDeltaSchema as Cn, journeyFindingImpactSchema as Cr, sendPrepareSchema as Ct, staticallyHiddenFindings as D, termHideAdditions as Dn, journeyRenderSchema as Dr, currentJourneyAdapters as Dt, guardedFindingText as E, settleConfirmedHides as En, journeyRenderInputSchema as Er, settleCorrections as Et, sourceIdentityEvidence as F, bTermMatcher as Fn, nativeRespondSchema as Fr, journeyBatchReadSchema as Ft, validateInspectionClaim as G, retireWorkDescription as Gn, sendArtifactSchema as Gr, journeyContextSchema as Gt, validateInspectionBatches as H, journeyConfirmedHides as Hn, agentSourceSchema as Hr, newJourneyWork as Ht, withSourceEvidence as I, bWordBounded as In, mergePrivacyTerms as Ir, journeyReviewStorageQuerySchema as It, validateInspectionInputs as J, workCorrectionBinding as Jn, sendResolutionSchema as Jr, hidePublishSchema as Jt, validateInspectionFence as K, workDecisionDigest as Kn, sendReceiptSchema as Kr, hideBeginSchema as Kt, agentSetupKey as L, confirmedHideGroupIds as Ln, hasCurrentStaticReview as Lr, applyClassificationProposal as Lt, profileUrlMatchesIdentity as M, bContainment as Mn, privacyDecisionDigest as Mr, validateAttemptAppend as Mt, readAccountAvatarUrl as N, bExceptionRanges as Nn, nativeEventsSchema as Nr, journeyGuidance as Nt, createAccount as O, addHideIndexTokens as On, displayedScopeDigest as Or, obsoleteJourney as Ot, storedCredentialSchema as P, bMaskedHits as Pn, nativeGetSchema as Pr, applyClassification as Pt, inspectionInputs as Q, reviewRepairResourceSchema as Qn, isIncludedWork as Qr, journeyPolicyRespondSchema as Qt, createApplication as R, confirmedHideKey as Rn, staticReviewDigest as Rr, classificationCommitSchema as Rt, rebindReviewAlignment as S, confirmedHideAdditions as Sn, journeyClassificationSessionsSchema as Sr, sendChoiceSchema as St, reviewBatchReuse as T, renderedHideValue as Tn, journeyPreviewSchema as Tr, sendStartSchema as Tt, validateInspectionRequest as U, maskedHitsStale as Un, agentSourcesSchema as Ur, reviewCompileSchema as Ut, validateInspectionBatch as V, dictionaryHides as Vn, agentSourcePathSegment as Vr, retireScanGeneration as Vt, inspectionQuerySchema as W, syncTermGroups as Wn, journeySendSchema as Wr, journeyContextQuerySchema as Wt, validateInspectionContribution as X, reviewCandidateResourceSchema as Xn, hasCompleteWorkDescription as Xr, journeySearchSaveSchema as Xt, validateInspectionQuery as Y, reviewCandidateInputSchema as Yn, sendSettingsSchema as Yr, journeySearchResultSchema as Yt, validateDetectionSummary as Z, reviewRepairInputSchema as Zn, isClassifying as Zr, searchScopeDigest as Zt, changeJourney as _, selectFrozenConfiguration as _i, sessionUsefulnessInputSchema as _n, emptyPreparationFacts as _r, emptyTermsRevision as _t, bCrossSegmentReviewSchema as a, packageCommandSchema as ai, reviewAttemptResourceSchema as an, scanPreparationDigest as ar, defaultAgentSetupInclusion as at, isGenericPublicTerm as b, journeyCommitSchema as bn, preparationStartSchema as br, replaceSensitiveTermsSchema as bt, reconstructBFields as c, gitMetadataBudgetBytes as ci, sessionReconcileInputSchema as cn, scanGitSeedsResource as cr, resolveFailureLocation as ct, resolveGroupSplit as d, sourceChangePolicy as di, sessionRereadInputSchema as dn, validateScanExclusion as dr, manualUploadBindingSchema as dt, isSelectedWork as ei, journeyResourceQuerySchema as en, bReviewDigest as er, settingsQuerySchema as et, selectedValueMembers as f, recommendParallelism as fi, sessionRereadResourceSchema as fn, resolveSourceSelection as fr, manualUploadChoiceSchema as ft, semanticGroupKey as g, freezeConfiguration as gi, sessionReviewStatusSchema as gn, journeyPreparationProgressSchema as gr, candidateSortAvailable as gt, hideScopeDigest as h, defaultScopedSettings as hi, sessionReviewResourceSchema as hn, journeyInventorySchema as hr, manualUploadStartSchema as ht, validateBCrossSegmentReview as i, commandSchema as ii, sortingApplySchema as in, scanCanonicalResourceSchema as ir, classifyAgentSetup as it, deviceProfileScopeSchema as j, packHideIndex as jn, assertJourneyPrivacyReady as jr, attemptBudgetCodePoints as jt, accountProfileSchema as k, hideKeyId as kn, requestedScope as kr, metadataProcessingVersion as kt, chooseCheapPlacement as l, producerVersion as li, sessionReconcileResultSchema as ln, verifiedScanGitSeeds as lr, validateFailureLocation as lt, activeJourneyTerms as m, effectiveTreatmentSchema as mi, sessionReviewQuerySchema as mn, journeyInventoryReadSchema as mr, manualUploadSchema as mt, scanBatchEquivalenceDigest as n, selectedWorks as ni, journeyIsolateSchema as nn, planBRepair as nr, reviewInventory as nt, bRereadDigest as o, selectionBatchSchema as oi, reviewAttemptsQuerySchema as on, scanSessionResourceSchema as or, maximumAgentSetupSessions as ot, splitSelectorValues as p, approvedTreatmentSchema as pi, sessionReviewInputSchema as pn, journeyInventoryQuerySchema as pr, manualUploadPrepareSchema as pt, validateInspectionHead as q, workPrivacyDecisions as qn, sendReplaceResultSchema as qr, hideFinishSchema as qt, locateTermEvidence as r, withReadingProgress as ri, journeyPlaceSchema as rn, scanAliasResourceSchema as rr, appendSensitiveTerms as rt, reconcileBSession as s, selectionSchema as si, reviewAttemptsResultSchema as sn, scanGitSeedsId as sr, artifactFailureDetailSchema as st, scanBatchContextDigest as t, isSkippedWork as ti, journeyResourceSchema as tn, mergeBRepair as tr, readWorkspaceOutcomes as tt, reviseGroupMembership as u, stateSchema as ui, sessionReconciliationResourceSchema as un, scanExclusionResourceSchema as ur, manualUploadActionSchema as ut, projectJourneyInventory as v, staticCatalogRef as vi, sessionUsefulnessResourceSchema as vn, preparationBeginSchema as vr, maximumTermsFileBytes as vt, rebindReviewSubmit as w, readConfirmedHideChange as wn, journeyFindingsSchema as wr, sendRequestSchema as wt, bReviewScope as x, journeyEventSchema as xn, validatePreparationFacts as xr, sendActionSchema as xt, preparationScope as y, journeyCommitResultSchema as yn, preparationSettlementSchema as yr, normalizeSensitiveTerms as yt, inspectionCancelSchema as z, confirmedHideKinds as zn, staticSessionId as zr, classificationPartition as zt };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { $n as detectStatic, An as createReplacementKey, Bn as nativeItems, En as walkNativeFields, Fn as entityDictionaryVersion, Gn as validateProfile, H as codePointLength, Hn as transformRecords, In as nativeParserVersion, Jn as validatePlan, Ln as redactionImplementationVersion, Mn as projectNativeRecord, Nn as parseNativeRecord, Pn as cleanupImplementationVersion, Qn as resolveLimits, Qt as safeCode, Un as frameRecords, V as bDigest, Vn as nativeText, Wn as retainedMainTextNodes, Xn as defaultLimits, Xt as ApplicationError, Zn as recordPointerLimits, _n as reviewRoles, bn as createSessionPreparation, c as textDigest, dr as fail$1, fn as nativeSourceIdentitySchema, fr as isProcessingCode, gn as mainReviewRole, hn as projectNativeReviewInput, in as sourceKey, ir as createEntityMatcher, j as bDuplicateShift, jn as sessionNonce, k as bBindingCap, lr as defaultDetectionLimits, mn as processNativeRecord, nn as reviewFamilies, nr as jsonSpans, o as reviewDigest, on as sourceSnapshotId, pn as withMandatoryCustomTerms, qn as buildPlan, rr as agentContextLocation, tn as familySelected, ur as ProcessingError, vn as createSentenceContext, wn as createDetectionSummary, x as createBAnalysisUnits, xn as bindInspection, yn as renderNative, zn as nativeField } from "./locate-BWkblijS.mjs";
|
|
2
2
|
import { t as createZstdFrameCheck } from "./frame-Dj5Zs6UW.mjs";
|
|
3
|
-
import { F as sourceIdentityEvidence, I as withSourceEvidence, In as bWordBounded, L as agentSetupKey, Mn as bContainment, Nn as bExceptionRanges,
|
|
3
|
+
import { F as sourceIdentityEvidence, Hr as agentSourceSchema, I as withSourceEvidence, In as bWordBounded, L as agentSetupKey, Mn as bContainment, Nn as bExceptionRanges, Vr as agentSourcePathSegment, at as defaultAgentSetupInclusion, di as sourceChangePolicy, fr as resolveSourceSelection, it as classifyAgentSetup, kt as metadataProcessingVersion, pi as approvedTreatmentSchema, vi as staticCatalogRef } from "./src-DzKuzGVH.mjs";
|
|
4
4
|
import { constants } from "node:fs";
|
|
5
5
|
import { link, lstat, mkdir, open, readFile, readdir, realpath, rm, rmdir, stat, unlink } from "node:fs/promises";
|
|
6
6
|
import { execFile, fork, spawn } from "node:child_process";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as createExecutor, t as assertStoreHeap } from "./heap-
|
|
1
|
+
import { i as createExecutor, t as assertStoreHeap } from "./heap-Dt3-d27v.mjs";
|
|
2
2
|
import { parentPort } from "node:worker_threads";
|
|
3
3
|
//#region packages/local-host/src/store/worker/entry.ts
|
|
4
4
|
if (!parentPort) throw new Error("STORE_WORKER_REQUIRED");
|