@gitroll/tacitt-cli 0.6.4 → 0.6.6
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/LICENSE +11 -0
- package/README.md +31 -74
- package/dist/{agent-setup-C7iqLMYm.mjs → agent-setup-YlFIJz-h.mjs} +2 -2
- package/dist/agent-setup-worker.mjs +5 -5
- package/dist/cli.mjs +8 -8
- package/dist/codex-title-worker.mjs +1 -1
- package/dist/configured-preview-worker.mjs +5 -5
- package/dist/configured-session-worker.mjs +5 -5
- package/dist/{frame-BGFmADbg.mjs → frame-Dj5Zs6UW.mjs} +1 -1
- package/dist/{heap-DQbsSUrB.mjs → heap-DFHajqf2.mjs} +135 -6
- package/dist/inspection-worker.mjs +4 -4
- package/dist/{job-D4N5Pe91.mjs → job-DiewDY_E.mjs} +62 -28
- package/dist/{locate-CNU4z9G1.mjs → locate-BWkblijS.mjs} +1 -1
- package/dist/{model-CZeHzKif.mjs → model-f_QnDyyb.mjs} +1 -1
- package/dist/operation-executor.mjs +3 -3
- package/dist/preview-worker.mjs +1 -1
- package/dist/privacy-validator.mjs +1 -1
- package/dist/{query-BMvtisKu.mjs → query-D2L1WzCS.mjs} +73 -14
- package/dist/{run-u2EfHjz4.mjs → run-RA_8zZsL.mjs} +4 -4
- package/dist/{src-BgoSvnXe.mjs → src-BBjnljUs.mjs} +4 -4
- package/dist/{src-DmSIVU7-.mjs → src-d7n58sbH.mjs} +2 -2
- package/dist/{src-BRwicVza.mjs → src-p_uJNjV3.mjs} +3 -3
- package/dist/store-database-worker.mjs +1 -1
- package/dist/web/THIRD_PARTY_LICENSES.md +1 -1
- package/dist/web/assets/index-B6kJ6XXF.js +174 -0
- package/dist/web/index.html +1 -1
- package/package.json +4 -4
- package/skills/tacitt/scripts/privacy-validator.mjs +607 -375
- package/dist/web/assets/index-CndETc8f.js +0 -169
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as renderJobDigest, D as prepareCollectionProduction, E as checkReusableBundle, L as privateCollectionDirectory, M as readCollectionIndex, N as parseCollectionWorkspaceSummary, V as writeLogicalJourneyOutput, W as readConfiguredOutputInfo, at as windowsOwnerOnly, b as writeLogicalJourneyBase, d as verifyOutputShard, f as writeOutputShard, nt as makePrivateDirectory, ot as isWindowsAclFailure, rt as openPrivateFile, w as readConfiguredSearchFields, z as gitSeedsProvider } from "./src-
|
|
2
|
-
import { $t as safeField, F as bClassificationKey, Ft as termTypeInfo, H as codePointLength, Ht as journeyProfileAddressActionSchema, K as utf16Offset, Kt as passportAddressSchema, N as bUnitFragments, Qt as safeCode, Ut as journeyProfileLinksActionSchema, V as bDigest, Xt as ApplicationError, b as validateBReview, c as textDigest, h as reviewFindingsDigest, ht as journeyDescribeSchema, jt as reviewTermsInputSchema, l as validateReview, n as compileBFindings, nn as reviewFamilies, r as reviewBatchChunks, s as reviewSubmitSchema, t as locateTerms, z as bAnchorKey, zt as filterInventoryByPeriod } from "./locate-
|
|
3
|
-
import { $ as settingsBatchSchema, $r as journeyPreviewSchema, B as inspectionStartSchema, C as rebindReviewOverlay, Ct as sendPrepareSchema, D as staticallyHiddenFindings, Dn as termHideAdditions, Dr as nativeGetSchema, E as guardedFindingText, Er as nativeEventsSchema, It as journeyReviewStorageQuerySchema, Ln as confirmedHideGroupIds, Mr as staticSessionResourceSchema, On as addHideIndexTokens, Or as nativeRespondSchema, Qn as reviewRepairResourceSchema, Qr as journeyFindingsSchema, Qt as journeyPolicyRespondSchema, S as rebindReviewAlignment, Sn as confirmedHideAdditions, Sr as journeyClassificationSessionsSchema, St as sendChoiceSchema, T as reviewBatchReuse, Tn as renderedHideValue, Tt as sendStartSchema, Un as maskedHitsStale, Ut as reviewCompileSchema, W as inspectionQuerySchema, Wt as journeyContextQuerySchema, Xn as reviewCandidateResourceSchema, Yn as reviewCandidateInputSchema, Zn as reviewRepairInputSchema, Zr as journeyFindingImpactSchema, _n as sessionUsefulnessInputSchema, a as bCrossSegmentReviewSchema, ai as selectionSchema, an as reviewAttemptResourceSchema, b as isGenericPublicTerm, bt as replaceSensitiveTermsSchema, c as reconstructBFields, ci as stateSchema, cn as sessionReconcileInputSchema, ct as resolveFailureLocation, dn as sessionRereadInputSchema, ei as journeyRenderInputSchema, en as journeyResourceQuerySchema, er as bReviewDigest, et as settingsQuerySchema, f as selectedValueMembers, ft as manualUploadChoiceSchema, hi as selectFrozenConfiguration, ht as manualUploadStartSchema, i as validateBCrossSegmentReview, ii as selectionBatchSchema, jn as packHideIndex, kn as hideKeyId, mi as freezeConfiguration, mn as sessionReviewQuerySchema, n as scanBatchEquivalenceDigest, ni as commandSchema, nr as planBRepair, o as bRereadDigest, p as splitSelectorValues, pi as defaultScopedSettings, pn as sessionReviewInputSchema, pr as journeyInventoryQuerySchema, pt as manualUploadPrepareSchema, r as locateTermEvidence, ri as packageCommandSchema, rn as journeyPlaceSchema, s as reconcileBSession, si as producerVersion, t as scanBatchContextDigest, ti as journeyRenderSchema, tt as readWorkspaceOutcomes, ut as manualUploadActionSchema, vt as maximumTermsFileBytes, w as rebindReviewSubmit, wn as readConfirmedHideChange, wt as sendRequestSchema, x as bReviewScope, xt as sendActionSchema, z as inspectionCancelSchema } from "./src-
|
|
4
|
-
import { $ as checkVersion, A as resourceSelectionQuerySchema, B as termReuseQuerySchema, C as loadAcceptedReview, D as aggregateUsefulness, E as loadPrivateResource, F as validateUnitCandidate, G as requireActiveBatch, H as batchHeader, I as reuseQuerySchema, J as validateDatabase, K as initializeAndClaim, L as batchQuery, M as evaluateUnitEvidence, N as sameCandidateRequest, O as sessionUsefulnessRecommendation, P as validateCandidateAttempt, Q as validateState, R as isPrivateResourceKind, S as validateSessionBindings, T as loadBatch, U as createJourneyPayloadFiles, V as privateReviewHash, W as validateBatchBody, X as readBundleDirectory, Y as withDatabase, Z as readStoredState, _ as loadReconciliation, _t as isCoordinationBusy, a as decodeError, at as hasResetMarker, b as validatePreparationSelection, c as dropsAnchor, ct as privatePath, d as parseDelivery, dt as stateDirectory, et as schemaVersion, f as validateCandidate, ft as syncDirectory, g as loadPreparedBodies, gt as errorCode, h as loadPreparation, ht as StoreError, i as createExecutor, it as finishReset, j as inspectionQuerySchema$1, k as sessionQuery, l as replySchema, lt as readResetMarker, m as loadStatus, mt as withFileCheckTimings, n as releaseInheritedHeapFlags, nt as createDatabaseFile, o as ProtocolError, ot as inspectStateFiles, p as classificationJourneyCommit, pt as withStateSnapshot, q as ownership, r as storeHeapLimits, rt as databaseName, s as allowedReplies, st as present, tt as beginReset, u as operations, ut as recheckPrivatePath, v as loadRereadBodies, vt as isSqliteCorruption, w as loadAuthenticatedReview, x as validateSessionReconciliation, y as loadSessionBodies, z as privateResourceHeader } from "./heap-
|
|
1
|
+
import { A as renderJobDigest, D as prepareCollectionProduction, E as checkReusableBundle, L as privateCollectionDirectory, M as readCollectionIndex, N as parseCollectionWorkspaceSummary, V as writeLogicalJourneyOutput, W as readConfiguredOutputInfo, at as windowsOwnerOnly, b as writeLogicalJourneyBase, d as verifyOutputShard, f as writeOutputShard, nt as makePrivateDirectory, ot as isWindowsAclFailure, rt as openPrivateFile, w as readConfiguredSearchFields, z as gitSeedsProvider } from "./src-p_uJNjV3.mjs";
|
|
2
|
+
import { $t as safeField, F as bClassificationKey, Ft as termTypeInfo, H as codePointLength, Ht as journeyProfileAddressActionSchema, K as utf16Offset, Kt as passportAddressSchema, N as bUnitFragments, Qt as safeCode, Ut as journeyProfileLinksActionSchema, V as bDigest, Xt as ApplicationError, b as validateBReview, c as textDigest, h as reviewFindingsDigest, ht as journeyDescribeSchema, jt as reviewTermsInputSchema, l as validateReview, n as compileBFindings, nn as reviewFamilies, r as reviewBatchChunks, s as reviewSubmitSchema, t as locateTerms, z as bAnchorKey, zt as filterInventoryByPeriod } from "./locate-BWkblijS.mjs";
|
|
3
|
+
import { $ as settingsBatchSchema, $r as journeyPreviewSchema, B as inspectionStartSchema, C as rebindReviewOverlay, Ct as sendPrepareSchema, D as staticallyHiddenFindings, Dn as termHideAdditions, Dr as nativeGetSchema, E as guardedFindingText, Er as nativeEventsSchema, It as journeyReviewStorageQuerySchema, Ln as confirmedHideGroupIds, Mr as staticSessionResourceSchema, On as addHideIndexTokens, Or as nativeRespondSchema, Qn as reviewRepairResourceSchema, Qr as journeyFindingsSchema, Qt as journeyPolicyRespondSchema, S as rebindReviewAlignment, Sn as confirmedHideAdditions, Sr as journeyClassificationSessionsSchema, St as sendChoiceSchema, T as reviewBatchReuse, Tn as renderedHideValue, Tt as sendStartSchema, Un as maskedHitsStale, Ut as reviewCompileSchema, W as inspectionQuerySchema, Wt as journeyContextQuerySchema, Xn as reviewCandidateResourceSchema, Yn as reviewCandidateInputSchema, Zn as reviewRepairInputSchema, Zr as journeyFindingImpactSchema, _n as sessionUsefulnessInputSchema, a as bCrossSegmentReviewSchema, ai as selectionSchema, an as reviewAttemptResourceSchema, b as isGenericPublicTerm, bt as replaceSensitiveTermsSchema, c as reconstructBFields, ci as stateSchema, cn as sessionReconcileInputSchema, ct as resolveFailureLocation, dn as sessionRereadInputSchema, ei as journeyRenderInputSchema, en as journeyResourceQuerySchema, er as bReviewDigest, et as settingsQuerySchema, f as selectedValueMembers, ft as manualUploadChoiceSchema, hi as selectFrozenConfiguration, ht as manualUploadStartSchema, i as validateBCrossSegmentReview, ii as selectionBatchSchema, jn as packHideIndex, kn as hideKeyId, mi as freezeConfiguration, mn as sessionReviewQuerySchema, n as scanBatchEquivalenceDigest, ni as commandSchema, nr as planBRepair, o as bRereadDigest, p as splitSelectorValues, pi as defaultScopedSettings, pn as sessionReviewInputSchema, pr as journeyInventoryQuerySchema, pt as manualUploadPrepareSchema, r as locateTermEvidence, ri as packageCommandSchema, rn as journeyPlaceSchema, s as reconcileBSession, si as producerVersion, t as scanBatchContextDigest, ti as journeyRenderSchema, tt as readWorkspaceOutcomes, ut as manualUploadActionSchema, vt as maximumTermsFileBytes, w as rebindReviewSubmit, wn as readConfirmedHideChange, wt as sendRequestSchema, x as bReviewScope, xt as sendActionSchema, z as inspectionCancelSchema } from "./src-d7n58sbH.mjs";
|
|
4
|
+
import { $ as checkVersion, A as resourceSelectionQuerySchema, B as termReuseQuerySchema, C as loadAcceptedReview, D as aggregateUsefulness, E as loadPrivateResource, F as validateUnitCandidate, G as requireActiveBatch, H as batchHeader, I as reuseQuerySchema, J as validateDatabase, K as initializeAndClaim, L as batchQuery, M as evaluateUnitEvidence, N as sameCandidateRequest, O as sessionUsefulnessRecommendation, P as validateCandidateAttempt, Q as validateState, R as isPrivateResourceKind, S as validateSessionBindings, T as loadBatch, U as createJourneyPayloadFiles, V as privateReviewHash, W as validateBatchBody, X as readBundleDirectory, Y as withDatabase, Z as readStoredState, _ as loadReconciliation, _t as isCoordinationBusy, a as decodeError, at as hasResetMarker, b as validatePreparationSelection, c as dropsAnchor, ct as privatePath, d as parseDelivery, dt as stateDirectory, et as schemaVersion, f as validateCandidate, ft as syncDirectory, g as loadPreparedBodies, gt as errorCode, h as loadPreparation, ht as StoreError, i as createExecutor, it as finishReset, j as inspectionQuerySchema$1, k as sessionQuery, l as replySchema, lt as readResetMarker, m as loadStatus, mt as withFileCheckTimings, n as releaseInheritedHeapFlags, nt as createDatabaseFile, o as ProtocolError, ot as inspectStateFiles, p as classificationJourneyCommit, pt as withStateSnapshot, q as ownership, r as storeHeapLimits, rt as databaseName, s as allowedReplies, st as present, tt as beginReset, u as operations, ut as recheckPrivatePath, v as loadRereadBodies, vt as isSqliteCorruption, w as loadAuthenticatedReview, x as validateSessionReconciliation, y as loadSessionBodies, z as privateResourceHeader } from "./heap-DFHajqf2.mjs";
|
|
5
5
|
import { constants, write } from "node:fs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
import { copyFile, link, lstat, mkdir, mkdtemp, open, opendir, readFile, readdir, realpath, rename, rm, unlink, writeFile } from "node:fs/promises";
|
|
@@ -16,10 +16,10 @@ import { fastifyStatic } from "@fastify/static";
|
|
|
16
16
|
import { fastifyRequestHandler, fastifyTRPCPlugin } from "@trpc/server/adapters/fastify";
|
|
17
17
|
import { TRPCError, initTRPC } from "@trpc/server";
|
|
18
18
|
import { getHTTPStatusCodeFromError } from "@trpc/server/http";
|
|
19
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
19
20
|
import { ZipWriter } from "@zip.js/zip.js/index-native.js";
|
|
20
21
|
import { tmpdir } from "node:os";
|
|
21
22
|
import { pipeline } from "node:stream/promises";
|
|
22
|
-
import { AsyncLocalStorage } from "node:async_hooks";
|
|
23
23
|
import { DatabaseSync } from "node:sqlite";
|
|
24
24
|
import { Worker } from "node:worker_threads";
|
|
25
25
|
import { quote } from "shell-quote";
|
|
@@ -51,6 +51,27 @@ async function retrySharingViolation(operation) {
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
//#endregion
|
|
54
|
+
//#region packages/local-host/src/store/lane.ts
|
|
55
|
+
const background = new AsyncLocalStorage();
|
|
56
|
+
/**
|
|
57
|
+
* Store accesses started inside `work` wait behind every waiting foreground access, like the
|
|
58
|
+
* shared pool's ordinary lane behind its priority lane (Track B behind Track A, ADR 0172).
|
|
59
|
+
*/
|
|
60
|
+
function inBackgroundStoreLane(work) {
|
|
61
|
+
return background.run(true, work);
|
|
62
|
+
}
|
|
63
|
+
function isBackgroundStoreAccess() {
|
|
64
|
+
return background.getStore() === true;
|
|
65
|
+
}
|
|
66
|
+
const statusPoll = new AsyncLocalStorage();
|
|
67
|
+
/** Mark only recurring observation reads, never mutation or reviewStatus RPC work. */
|
|
68
|
+
function inBackgroundStatusPoll(work) {
|
|
69
|
+
return statusPoll.run(true, work);
|
|
70
|
+
}
|
|
71
|
+
function isBackgroundStatusPoll() {
|
|
72
|
+
return statusPoll.getStore() === true;
|
|
73
|
+
}
|
|
74
|
+
//#endregion
|
|
54
75
|
//#region packages/local-host/src/workflow-events.ts
|
|
55
76
|
/** One demand-driven read per host; consumers retain their own change detection/backpressure. */
|
|
56
77
|
function createWorkflowEvents(read, stopping) {
|
|
@@ -606,8 +627,9 @@ const operation = z.enum([
|
|
|
606
627
|
"journey.review.finish-usefulness",
|
|
607
628
|
"journey.review.select-reuse",
|
|
608
629
|
"journey.review.finish-reuse",
|
|
609
|
-
"journey.session.status.select",
|
|
610
|
-
"journey.session.status.finish",
|
|
630
|
+
"journey.session.status.project-select",
|
|
631
|
+
"journey.session.status.project-finish",
|
|
632
|
+
"journey.session.status.capture",
|
|
611
633
|
"journey.batch.put",
|
|
612
634
|
"journey.batch.read",
|
|
613
635
|
"journey.review.attempts",
|
|
@@ -657,6 +679,7 @@ const phase = z.enum([
|
|
|
657
679
|
"release",
|
|
658
680
|
"executor.begin",
|
|
659
681
|
"executor.run",
|
|
682
|
+
"executor.project",
|
|
660
683
|
"executor.read-for-write",
|
|
661
684
|
"executor.save",
|
|
662
685
|
"executor.abort",
|
|
@@ -935,10 +958,10 @@ function createRouter(application, account, stopping, delivery, nativeInspection
|
|
|
935
958
|
findings: t.procedure.input(journeyFindingsSchema).query(({ input, signal }) => native().findings(input, signal)),
|
|
936
959
|
findingImpact: t.procedure.input(journeyFindingImpactSchema).query(({ input, signal }) => native().findingImpact(input, signal)),
|
|
937
960
|
preview: t.procedure.input(journeyPreviewSchema).query(({ input, signal }) => native().preview(input, signal)),
|
|
938
|
-
get: t.procedure.input(nativeGetSchema).query(({ input, signal }) => readThroughContention(() => native().get(input), signal)),
|
|
961
|
+
get: t.procedure.input(nativeGetSchema).query(({ input, signal }) => readThroughContention(() => inBackgroundStatusPoll(() => native().get(input)), signal)),
|
|
939
962
|
presence: t.procedure.input(z.object({ journeyId: z.uuid() }).strict()).query(async ({ input }) => ({ agent: await agentPresence?.(input.journeyId) ?? null })),
|
|
940
963
|
inventory: t.procedure.input(journeyInventoryQuerySchema).query(({ input }) => native().inventory(input)),
|
|
941
|
-
events: t.procedure.input(nativeEventsSchema).query(({ input, signal }) => readThroughContention(() => native().events(input, signal), signal))
|
|
964
|
+
events: t.procedure.input(nativeEventsSchema).query(({ input, signal }) => readThroughContention(() => inBackgroundStatusPoll(() => native().events(input, signal)), signal))
|
|
942
965
|
}),
|
|
943
966
|
delivery: t.router({
|
|
944
967
|
list: t.procedure.query(() => delivery?.list() ?? []),
|
|
@@ -2036,19 +2059,6 @@ function createStoreLifetime() {
|
|
|
2036
2059
|
};
|
|
2037
2060
|
}
|
|
2038
2061
|
//#endregion
|
|
2039
|
-
//#region packages/local-host/src/store/lane.ts
|
|
2040
|
-
const background = new AsyncLocalStorage();
|
|
2041
|
-
/**
|
|
2042
|
-
* Store accesses started inside `work` wait behind every waiting foreground access, like the
|
|
2043
|
-
* shared pool's ordinary lane behind its priority lane (Track B behind Track A, ADR 0172).
|
|
2044
|
-
*/
|
|
2045
|
-
function inBackgroundStoreLane(work) {
|
|
2046
|
-
return background.run(true, work);
|
|
2047
|
-
}
|
|
2048
|
-
function isBackgroundStoreAccess() {
|
|
2049
|
-
return background.getStore() === true;
|
|
2050
|
-
}
|
|
2051
|
-
//#endregion
|
|
2052
2062
|
//#region packages/local-host/src/store/access.ts
|
|
2053
2063
|
function invalidResult(cause) {
|
|
2054
2064
|
return new StoreError("STATE_IO_ERROR", "The state database returned an invalid result.", { cause });
|
|
@@ -2363,6 +2373,17 @@ function createStoreAccess(directory, owner, channel, invalidate = () => {}, onF
|
|
|
2363
2373
|
}
|
|
2364
2374
|
async function runOperation(fenced, name, args, cache) {
|
|
2365
2375
|
const definition = operations[name];
|
|
2376
|
+
if (definition.project) {
|
|
2377
|
+
const reply = await channel.request({
|
|
2378
|
+
type: "project",
|
|
2379
|
+
id: nextId += 1,
|
|
2380
|
+
operation: name,
|
|
2381
|
+
args
|
|
2382
|
+
});
|
|
2383
|
+
if (reply.type === "failed") throw decodeError(reply.error);
|
|
2384
|
+
if (reply.type !== "done") throw new ProtocolError("UNEXPECTED_REPLY");
|
|
2385
|
+
return definition.decode(reply.result);
|
|
2386
|
+
}
|
|
2366
2387
|
const finish = await fenced(definition.write, async ({ root, verified, checkpoint, request, transaction }) => {
|
|
2367
2388
|
const load = () => transaction(async (id) => {
|
|
2368
2389
|
const reply = await request({
|
|
@@ -3352,12 +3373,25 @@ function withTermExclusions(status, suggestions) {
|
|
|
3352
3373
|
//#endregion
|
|
3353
3374
|
//#region packages/local-host/src/store/journey/reconciliation/status/staged.ts
|
|
3354
3375
|
async function readStagedStatus(leg, files, query, signal) {
|
|
3355
|
-
const
|
|
3376
|
+
const input = sessionReviewQuerySchema.parse(query);
|
|
3377
|
+
const selected = await leg.run("journey.session.status.capture", input);
|
|
3378
|
+
signal.throwIfAborted();
|
|
3379
|
+
const before = await leg.run("journey.session.status.project-select", {
|
|
3380
|
+
snapshot: selected,
|
|
3381
|
+
query: input
|
|
3382
|
+
});
|
|
3356
3383
|
const loaded = await loadStatus(files, before, signal);
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3384
|
+
const snapshot = await leg.run("journey.session.status.capture", input);
|
|
3385
|
+
signal.throwIfAborted();
|
|
3386
|
+
const status = await leg.run("journey.session.status.project-finish", {
|
|
3387
|
+
snapshot,
|
|
3388
|
+
packet: {
|
|
3389
|
+
before,
|
|
3390
|
+
loaded
|
|
3391
|
+
}
|
|
3392
|
+
});
|
|
3393
|
+
signal.throwIfAborted();
|
|
3394
|
+
return withTermExclusions(status, await loadTermExclusions(leg, files, before.query.journeyId, signal));
|
|
3361
3395
|
}
|
|
3362
3396
|
function createStagedStatus(access, files) {
|
|
3363
3397
|
return (query) => access.staged((leg, signal) => readStagedStatus(leg, files, query, signal));
|
|
@@ -6281,4 +6315,4 @@ async function runJourneyOutputJob(job, live, signal, onPath) {
|
|
|
6281
6315
|
};
|
|
6282
6316
|
}
|
|
6283
6317
|
//#endregion
|
|
6284
|
-
export { createExecutionPort as A, saveRemoteState as C, createPackagingProgressPort as D, exportDelivery as E,
|
|
6318
|
+
export { createExecutionPort as A, saveRemoteState as C, createPackagingProgressPort as D, exportDelivery as E, loadDeliveryResults as F, inBackgroundStatusPoll as I, inBackgroundStoreLane as L, withStateMutex as M, createDeliveryService as N, createStore as O, preflight as P, isBackgroundStatusPoll as R, readRemoteState as S, collectRemoteWorkers as T, staticBaseProduction as _, writeJourneyOutput as a, workApproval as b, mergeHideIndexTokens as c, runJourneyBaseJob as d, writeJourneyBase as f, staticBaseInputs as g, staticSessions as h, runJourneyOutputVerifyJob as i, startHost as j, readStateDump as k, packRenderHideIndex as l, saveStaticSession as m, runJourneyOutputJob as n, createHideIndexTokens as o, readStaticResult as p, runJourneyOutputShardJob as r, hideIndexTexts as s, journeyOutputJob as t, journeyBaseJob as u, readSelectedCaptures as v, journeyDirectory as w, isRemoteImport as x, prepareSourcePlan as y, retrySharingViolation as z };
|
|
@@ -10678,7 +10678,7 @@ function validateReview(batch, input) {
|
|
|
10678
10678
|
}
|
|
10679
10679
|
return input.findings;
|
|
10680
10680
|
}
|
|
10681
|
-
/** Derive legacy
|
|
10681
|
+
/** Derive legacy membership fields from verified B evidence; never accept a second conclusion. */
|
|
10682
10682
|
function compileBFindings(batch, evidence) {
|
|
10683
10683
|
const validated = validateBReview(batch.unit, evidence);
|
|
10684
10684
|
if (validated.issues.length) throw new ApplicationError("INCOMPLETE_REVIEW");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as executorRequestSchema, g as longCommands, i as invoke, m as parseOptions, n as readOperation, o as createRuntime, r as waitOperation, v as startupFailure } from "./query-
|
|
2
|
-
import { $t as safeField, Qt as safeCode, Xt as ApplicationError } from "./locate-
|
|
3
|
-
import "./src-
|
|
1
|
+
import { c as executorRequestSchema, g as longCommands, i as invoke, m as parseOptions, n as readOperation, o as createRuntime, r as waitOperation, v as startupFailure } from "./query-D2L1WzCS.mjs";
|
|
2
|
+
import { $t as safeField, Qt as safeCode, Xt as ApplicationError } from "./locate-BWkblijS.mjs";
|
|
3
|
+
import "./src-d7n58sbH.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { setTimeout } from "node:timers/promises";
|
|
6
6
|
//#region apps/cli/src/operation/executor.ts
|
package/dist/preview-worker.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as assertPreviewHeap, o as previewInputSchema, t as runPreview } from "./run-
|
|
1
|
+
import { n as assertPreviewHeap, o as previewInputSchema, t as runPreview } from "./run-RA_8zZsL.mjs";
|
|
2
2
|
import { parentPort, workerData } from "node:worker_threads";
|
|
3
3
|
//#region packages/harnesses/src/preview/worker/index.ts
|
|
4
4
|
function notify(message) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dt as privacyResolveSchema, Ot as privacyTermKey, t as locateTerms, wt as decisionCardInputSchema } from "./locate-
|
|
1
|
+
import { Dt as privacyResolveSchema, Ot as privacyTermKey, t as locateTerms, wt as decisionCardInputSchema } from "./locate-BWkblijS.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region apps/cli/src/skill-install/privacy-validator.ts
|
|
4
4
|
const suppliedTerms = z.array(z.object({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { $ as createCleanup, B as parallelismLimits, C as readOriginalSearchFields, F as SessionWorkerError, G as processJourneyMetadataFields, H as privateJourneyDirectory, I as sessionWorkerFailure, K as staticMaskCategory, O as captureLogicalJourneySources, P as createSharedSessionPool, Q as removeNamedTemporarySpools, R as defaultParallelism, T as createCollectionArtifacts, U as readLogicalJourneyFinalMasks, W as readConfiguredOutputInfo, Z as createTemporary, _ as processJourneyMetadata, a as scanReviewFields, at as windowsOwnerOnly, c as readSessionScanRecords, g as readCapturedOriginalRows, i as buildWorkScanBatches, it as restrictToOwner, j as runConfiguredSessionJob, k as capturedJourneyScope, l as scanPreparedSession, m as openConfiguredUpload, n as verifyPreparedSessionSources, nt as makePrivateDirectory, o as createWorkPieces, ot as isWindowsAclFailure, p as configuredSessionUploads, q as readWorkspacePair, r as prepareSessionScans, rt as openPrivateFile, s as readSessionScanFields, st as windowsAclCodes, t as preparedScanConfiguration, v as readStaticSessionMasks, w as readConfiguredSearchFields, y as staticSessionJobs, z as gitSeedsProvider } from "./src-
|
|
2
|
-
import { A as createExecutionPort, C as saveRemoteState, D as createPackagingProgressPort, E as exportDelivery, F as
|
|
3
|
-
import { $t as safeField, Bt as sessionPeriodSchema, Dn as createStaticProcessor, Fn as entityDictionaryVersion, Ft as termTypeInfo, Gt as ownerProfileSchema, Kt as passportAddressSchema, Ot as privacyTermKey, Qt as safeCode, Sn as currentDetectorVersion, T as bLiteralTerms, Un as frameRecords, Wt as mergeOwnerProfile, Xt as ApplicationError, Zt as UnfinishedJourneyError, an as observeSource, ar as admitCustomTerm, c as textDigest, ir as createEntityMatcher, nn as reviewFamilies, or as admitGitName, qt as profileHasChoices, tn as familySelected, ur as ProcessingError, zt as filterInventoryByPeriod } from "./locate-
|
|
4
|
-
import { a as mainTextChunks, c as previewInWorker, i as nearestSortingRepository, l as createNativeAdapters, n as createProjectEvidenceCollector, o as mainTextFields, r as sortingRepositoryId, s as textChunks, t as createHarnesses, u as createGitNameSeedProvider } from "./src-
|
|
5
|
-
import { $ as settingsBatchSchema, A as deviceAuthorizationSchema, Ar as staticReviewDigest, B as inspectionStartSchema, Br as sendResolutionSchema, Bt as classificationWorks, Ct as sendPrepareSchema, Dt as currentJourneyAdapters, Fn as bTermMatcher, Fr as agentSourcesSchema, Gn as retireWorkDescription, Gr as isReadingComplete, Hn as journeyConfirmedHides, Hr as hasCompleteWorkDescription, Ht as newJourneyWork, Ir as journeySendSchema, Jn as workCorrectionBinding, Kn as workDecisionDigest, Kr as isSelectedWork, Lr as sendArtifactSchema, M as profileUrlMatchesIdentity, N as readAccountAvatarUrl, O as createAccount, Ot as obsoleteJourney, P as storedCredentialSchema, Pr as agentSourceSchema, Pt as applyClassification, R as createApplication, Rr as sendReceiptSchema, St as sendChoiceSchema, Tr as privacyDecisionDigest, Tt as sendStartSchema, Ur as isClassifying, V as validateInspectionBatch, Vr as sendSettingsSchema, Vt as retireScanGeneration, W as inspectionQuerySchema, Wr as isIncludedWork, Yr as withReadingProgress, Yt as journeySearchResultSchema, Zt as searchScopeDigest, _ as changeJourney, _r as emptyPreparationFacts, _t as emptyTermsRevision, ai as selectionSchema, ar as scanPreparationDigest, bt as replaceSensitiveTermsSchema, cr as scanGitSeedsResource, et as settingsQuerySchema, ft as manualUploadChoiceSchema, h as hideScopeDigest, ht as manualUploadStartSchema, ii as selectionBatchSchema, j as deviceProfileScopeSchema, k as accountProfileSchema, kr as hasCurrentStaticReview, lr as verifiedScanGitSeeds, lt as validateFailureLocation, m as activeJourneyTerms, mt as manualUploadSchema, ni as commandSchema, or as scanSessionResourceSchema, pt as manualUploadPrepareSchema, ri as packageCommandSchema, rt as appendSensitiveTerms, si as producerVersion, sr as scanGitSeedsId, st as artifactFailureDetailSchema, ui as recommendParallelism, ur as scanExclusionResourceSchema, ut as manualUploadActionSchema, wr as assertJourneyPrivacyReady, wt as sendRequestSchema, xt as sendActionSchema, yt as normalizeSensitiveTerms, z as inspectionCancelSchema, zn as confirmedHideKinds, zr as sendReplaceResultSchema, zt as classificationPartition } from "./src-
|
|
6
|
-
import { _t as isCoordinationBusy } from "./heap-
|
|
7
|
-
import { t as createAgentSetupPort } from "./agent-setup-
|
|
1
|
+
import { $ as createCleanup, B as parallelismLimits, C as readOriginalSearchFields, F as SessionWorkerError, G as processJourneyMetadataFields, H as privateJourneyDirectory, I as sessionWorkerFailure, K as staticMaskCategory, O as captureLogicalJourneySources, P as createSharedSessionPool, Q as removeNamedTemporarySpools, R as defaultParallelism, T as createCollectionArtifacts, U as readLogicalJourneyFinalMasks, W as readConfiguredOutputInfo, Z as createTemporary, _ as processJourneyMetadata, a as scanReviewFields, at as windowsOwnerOnly, c as readSessionScanRecords, g as readCapturedOriginalRows, i as buildWorkScanBatches, it as restrictToOwner, j as runConfiguredSessionJob, k as capturedJourneyScope, l as scanPreparedSession, m as openConfiguredUpload, n as verifyPreparedSessionSources, nt as makePrivateDirectory, o as createWorkPieces, ot as isWindowsAclFailure, p as configuredSessionUploads, q as readWorkspacePair, r as prepareSessionScans, rt as openPrivateFile, s as readSessionScanFields, st as windowsAclCodes, t as preparedScanConfiguration, v as readStaticSessionMasks, w as readConfiguredSearchFields, y as staticSessionJobs, z as gitSeedsProvider } from "./src-p_uJNjV3.mjs";
|
|
2
|
+
import { A as createExecutionPort, C as saveRemoteState, D as createPackagingProgressPort, E as exportDelivery, F as loadDeliveryResults, L as inBackgroundStoreLane, M as withStateMutex, N as createDeliveryService, O as createStore, P as preflight, R as isBackgroundStatusPoll, S as readRemoteState, T as collectRemoteWorkers, _ as staticBaseProduction, a as writeJourneyOutput, b as workApproval, c as mergeHideIndexTokens, f as writeJourneyBase, g as staticBaseInputs, h as staticSessions, l as packRenderHideIndex, m as saveStaticSession, o as createHideIndexTokens, p as readStaticResult, s as hideIndexTexts, t as journeyOutputJob, u as journeyBaseJob, v as readSelectedCaptures, w as journeyDirectory, x as isRemoteImport, y as prepareSourcePlan, z as retrySharingViolation } from "./job-DiewDY_E.mjs";
|
|
3
|
+
import { $t as safeField, Bt as sessionPeriodSchema, Dn as createStaticProcessor, Fn as entityDictionaryVersion, Ft as termTypeInfo, Gt as ownerProfileSchema, Kt as passportAddressSchema, Ot as privacyTermKey, Qt as safeCode, Sn as currentDetectorVersion, T as bLiteralTerms, Un as frameRecords, Wt as mergeOwnerProfile, Xt as ApplicationError, Zt as UnfinishedJourneyError, an as observeSource, ar as admitCustomTerm, c as textDigest, ir as createEntityMatcher, nn as reviewFamilies, or as admitGitName, qt as profileHasChoices, tn as familySelected, ur as ProcessingError, zt as filterInventoryByPeriod } from "./locate-BWkblijS.mjs";
|
|
4
|
+
import { a as mainTextChunks, c as previewInWorker, i as nearestSortingRepository, l as createNativeAdapters, n as createProjectEvidenceCollector, o as mainTextFields, r as sortingRepositoryId, s as textChunks, t as createHarnesses, u as createGitNameSeedProvider } from "./src-BBjnljUs.mjs";
|
|
5
|
+
import { $ as settingsBatchSchema, A as deviceAuthorizationSchema, Ar as staticReviewDigest, B as inspectionStartSchema, Br as sendResolutionSchema, Bt as classificationWorks, Ct as sendPrepareSchema, Dt as currentJourneyAdapters, Fn as bTermMatcher, Fr as agentSourcesSchema, Gn as retireWorkDescription, Gr as isReadingComplete, Hn as journeyConfirmedHides, Hr as hasCompleteWorkDescription, Ht as newJourneyWork, Ir as journeySendSchema, Jn as workCorrectionBinding, Kn as workDecisionDigest, Kr as isSelectedWork, Lr as sendArtifactSchema, M as profileUrlMatchesIdentity, N as readAccountAvatarUrl, O as createAccount, Ot as obsoleteJourney, P as storedCredentialSchema, Pr as agentSourceSchema, Pt as applyClassification, R as createApplication, Rr as sendReceiptSchema, St as sendChoiceSchema, Tr as privacyDecisionDigest, Tt as sendStartSchema, Ur as isClassifying, V as validateInspectionBatch, Vr as sendSettingsSchema, Vt as retireScanGeneration, W as inspectionQuerySchema, Wr as isIncludedWork, Yr as withReadingProgress, Yt as journeySearchResultSchema, Zt as searchScopeDigest, _ as changeJourney, _r as emptyPreparationFacts, _t as emptyTermsRevision, ai as selectionSchema, ar as scanPreparationDigest, bt as replaceSensitiveTermsSchema, cr as scanGitSeedsResource, et as settingsQuerySchema, ft as manualUploadChoiceSchema, h as hideScopeDigest, ht as manualUploadStartSchema, ii as selectionBatchSchema, j as deviceProfileScopeSchema, k as accountProfileSchema, kr as hasCurrentStaticReview, lr as verifiedScanGitSeeds, lt as validateFailureLocation, m as activeJourneyTerms, mt as manualUploadSchema, ni as commandSchema, or as scanSessionResourceSchema, pt as manualUploadPrepareSchema, ri as packageCommandSchema, rt as appendSensitiveTerms, si as producerVersion, sr as scanGitSeedsId, st as artifactFailureDetailSchema, ui as recommendParallelism, ur as scanExclusionResourceSchema, ut as manualUploadActionSchema, wr as assertJourneyPrivacyReady, wt as sendRequestSchema, xt as sendActionSchema, yt as normalizeSensitiveTerms, z as inspectionCancelSchema, zn as confirmedHideKinds, zr as sendReplaceResultSchema, zt as classificationPartition } from "./src-d7n58sbH.mjs";
|
|
6
|
+
import { _t as isCoordinationBusy } from "./heap-DFHajqf2.mjs";
|
|
7
|
+
import { t as createAgentSetupPort } from "./agent-setup-YlFIJz-h.mjs";
|
|
8
8
|
import { t as workerMessageSchema } from "./messages-D3m3bhva.mjs";
|
|
9
9
|
import { constants, write } from "node:fs";
|
|
10
10
|
import { z } from "zod";
|
|
@@ -1077,13 +1077,66 @@ function createJourneyTitles(storage, processing) {
|
|
|
1077
1077
|
};
|
|
1078
1078
|
}
|
|
1079
1079
|
//#endregion
|
|
1080
|
+
//#region apps/cli/src/journey/status-poll.ts
|
|
1081
|
+
/** Bound distinct active and waiting polls; identical waiting queries share one promise. */
|
|
1082
|
+
const maximumStatusPolls = 16;
|
|
1083
|
+
/**
|
|
1084
|
+
* A read's elapsed time is mostly unclaimed Worker projection, so the cooldown is capped: a
|
|
1085
|
+
* full gap still exceeds one claim hold, and a panel read stays inside its 10 s timeout.
|
|
1086
|
+
*/
|
|
1087
|
+
const maximumCooldownMs = 1e3;
|
|
1088
|
+
/** Only observation polls wait; a post-commit presentation must read fresh state immediately. */
|
|
1089
|
+
function paceSessionStatus(read, signal) {
|
|
1090
|
+
let tail = Promise.resolve();
|
|
1091
|
+
let nextAt = 0;
|
|
1092
|
+
let running = 0;
|
|
1093
|
+
const pending = /* @__PURE__ */ new Map();
|
|
1094
|
+
return (input) => {
|
|
1095
|
+
if (!isBackgroundStatusPoll()) return read(input);
|
|
1096
|
+
const key = JSON.stringify([
|
|
1097
|
+
input.journeyId,
|
|
1098
|
+
input.workId ?? null,
|
|
1099
|
+
input.sessionId ?? null,
|
|
1100
|
+
input.sessionReviewId ?? null,
|
|
1101
|
+
input.afterHit,
|
|
1102
|
+
input.limit
|
|
1103
|
+
]);
|
|
1104
|
+
const existing = pending.get(key);
|
|
1105
|
+
if (existing) return existing;
|
|
1106
|
+
if (pending.size + running >= maximumStatusPolls) return Promise.reject(new ApplicationError("COORDINATION_BUSY"));
|
|
1107
|
+
const result = tail.then(async () => {
|
|
1108
|
+
signal?.throwIfAborted();
|
|
1109
|
+
while (performance.now() < nextAt) {
|
|
1110
|
+
const wait = Math.ceil(nextAt - performance.now());
|
|
1111
|
+
await setTimeout$1(Math.max(1, wait), void 0, { signal });
|
|
1112
|
+
}
|
|
1113
|
+
signal?.throwIfAborted();
|
|
1114
|
+
if (pending.get(key) === result) pending.delete(key);
|
|
1115
|
+
running++;
|
|
1116
|
+
const started = performance.now();
|
|
1117
|
+
try {
|
|
1118
|
+
return await read(input);
|
|
1119
|
+
} finally {
|
|
1120
|
+
running--;
|
|
1121
|
+
const finished = performance.now();
|
|
1122
|
+
nextAt = finished + Math.min(maximumCooldownMs, Math.max(0, finished - started));
|
|
1123
|
+
}
|
|
1124
|
+
}).finally(() => {
|
|
1125
|
+
if (pending.get(key) === result) pending.delete(key);
|
|
1126
|
+
});
|
|
1127
|
+
pending.set(key, result);
|
|
1128
|
+
tail = result.then(() => {}, () => {});
|
|
1129
|
+
return result;
|
|
1130
|
+
};
|
|
1131
|
+
}
|
|
1132
|
+
//#endregion
|
|
1080
1133
|
//#region apps/cli/src/journey/destination.ts
|
|
1081
1134
|
function check(state, destination) {
|
|
1082
1135
|
if (state && state.destination !== destination) throw new ApplicationError("JOURNEY_DESTINATION_CHANGED");
|
|
1083
1136
|
return state;
|
|
1084
1137
|
}
|
|
1085
1138
|
/** Bind stored consent to the actual configured owner API, not an agent-supplied label. */
|
|
1086
|
-
function bindJourneyDestination(storage, destination) {
|
|
1139
|
+
function bindJourneyDestination(storage, destination, options = {}) {
|
|
1087
1140
|
const verified = /* @__PURE__ */ new Set();
|
|
1088
1141
|
const current = async (id) => {
|
|
1089
1142
|
const state = check(await storage.current(id), destination);
|
|
@@ -1093,6 +1146,10 @@ function bindJourneyDestination(storage, destination) {
|
|
|
1093
1146
|
const guard = async (id) => {
|
|
1094
1147
|
if (!verified.has(id)) await current(id);
|
|
1095
1148
|
};
|
|
1149
|
+
const readStatus = async (input) => {
|
|
1150
|
+
await guard(input.journeyId);
|
|
1151
|
+
return storage.sessionReviewStatus(input);
|
|
1152
|
+
};
|
|
1096
1153
|
return {
|
|
1097
1154
|
current,
|
|
1098
1155
|
readInventory: (input) => storage.readInventory({
|
|
@@ -1208,10 +1265,7 @@ function bindJourneyDestination(storage, destination) {
|
|
|
1208
1265
|
await guard(input.journeyId);
|
|
1209
1266
|
return storage.reviewAttempts(input);
|
|
1210
1267
|
},
|
|
1211
|
-
|
|
1212
|
-
await guard(input.journeyId);
|
|
1213
|
-
return storage.sessionReviewStatus(input);
|
|
1214
|
-
},
|
|
1268
|
+
sessionReviewStatus: options.statusPolling ? paceSessionStatus(readStatus, options.signal) : readStatus,
|
|
1215
1269
|
async submitReview(input) {
|
|
1216
1270
|
await guard(input.journeyId);
|
|
1217
1271
|
return storage.submitReview(input);
|
|
@@ -2841,7 +2895,7 @@ function createJourneyPreparation(options) {
|
|
|
2841
2895
|
}
|
|
2842
2896
|
};
|
|
2843
2897
|
}
|
|
2844
|
-
/**
|
|
2898
|
+
/** Two automatic retries per Work, after two then five seconds. */
|
|
2845
2899
|
const workRetryDelaysMs = [2e3, 5e3];
|
|
2846
2900
|
async function waitForWorkRetry(milliseconds, signal) {
|
|
2847
2901
|
await setTimeout$1(milliseconds, void 0, { signal }).catch(() => signal.throwIfAborted());
|
|
@@ -11373,7 +11427,11 @@ async function compose(options, callbacks, bundles) {
|
|
|
11373
11427
|
onDiagnostic: producers.onHarnessDiagnostic
|
|
11374
11428
|
});
|
|
11375
11429
|
if (!store.journey || !store.journeySend || !store.manualUpload) throw new Error("CORRUPTED_STATE");
|
|
11376
|
-
const
|
|
11430
|
+
const statusPolling = new AbortController();
|
|
11431
|
+
const journeyStorage = bindJourneyDestination(store.journey, options.passportApiUrl, {
|
|
11432
|
+
statusPolling: callbacks.servingHost === true,
|
|
11433
|
+
signal: statusPolling.signal
|
|
11434
|
+
});
|
|
11377
11435
|
const sendStorage = bindSendDestination(store.journeySend, options.passportApiUrl);
|
|
11378
11436
|
const sessionWorkers = {
|
|
11379
11437
|
...options.parallelism === void 0 ? {} : { parallelism: options.parallelism },
|
|
@@ -11530,6 +11588,7 @@ async function compose(options, callbacks, bundles) {
|
|
|
11530
11588
|
});
|
|
11531
11589
|
let closed;
|
|
11532
11590
|
const close = () => closed ??= (async () => {
|
|
11591
|
+
statusPolling.abort();
|
|
11533
11592
|
if (fatalStore.failed) await fatalStore.guardCleanup();
|
|
11534
11593
|
const failures = [];
|
|
11535
11594
|
const steps = [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ln as sessionSchema } from "./locate-
|
|
2
|
-
import { t as createZstdFrameCheck$1 } from "./frame-
|
|
3
|
-
import "./src-
|
|
4
|
-
import { a as isRecord } from "./model-
|
|
1
|
+
import { ln as sessionSchema } from "./locate-BWkblijS.mjs";
|
|
2
|
+
import { t as createZstdFrameCheck$1 } from "./frame-Dj5Zs6UW.mjs";
|
|
3
|
+
import "./src-d7n58sbH.mjs";
|
|
4
|
+
import { a as isRecord } from "./model-f_QnDyyb.mjs";
|
|
5
5
|
import { constants } from "node:fs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
import { lstat, open, stat } from "node:fs/promises";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Bn as nativeItems, En as walkNativeFields, Nn as parseNativeRecord, Rn as nativeBoolean, Vn as nativeText, Wn as retainedMainTextNodes, Xn as defaultLimits, an as observeSource, on as sourceSnapshotId, ur as ProcessingError, zn as nativeField } from "./locate-
|
|
2
|
-
import { At as nativeAdapterVersions, nt as reviewInventory, oi as gitMetadataBudgetBytes } from "./src-
|
|
3
|
-
import { a as isRecord, i as errorCode, n as checkDiscoveryAbort, o as unresolvedMetadata, r as discoveryBounds, t as DiscoveryWarnings } from "./model-
|
|
4
|
-
import { c as previewLimits, d as checkOpenSource, f as checkSource, h as openSource, i as pageFits, l as previewSourceVersion, m as noSymlinks, p as fileSnapshot, r as previewHeapLimits, s as previewMessageSchema, u as createZstdFrameCheck } from "./run-
|
|
1
|
+
import { Bn as nativeItems, En as walkNativeFields, Nn as parseNativeRecord, Rn as nativeBoolean, Vn as nativeText, Wn as retainedMainTextNodes, Xn as defaultLimits, an as observeSource, on as sourceSnapshotId, ur as ProcessingError, zn as nativeField } from "./locate-BWkblijS.mjs";
|
|
2
|
+
import { At as nativeAdapterVersions, nt as reviewInventory, oi as gitMetadataBudgetBytes } from "./src-d7n58sbH.mjs";
|
|
3
|
+
import { a as isRecord, i as errorCode, n as checkDiscoveryAbort, o as unresolvedMetadata, r as discoveryBounds, t as DiscoveryWarnings } from "./model-f_QnDyyb.mjs";
|
|
4
|
+
import { c as previewLimits, d as checkOpenSource, f as checkSource, h as openSource, i as pageFits, l as previewSourceVersion, m as noSymlinks, p as fileSnapshot, r as previewHeapLimits, s as previewMessageSchema, u as createZstdFrameCheck } from "./run-RA_8zZsL.mjs";
|
|
5
5
|
import { a as titleHintLimits, n as titleHeapLimits, o as titleInputSchema, r as decodeTitleError, s as titleReplySchema } from "./heap-1FYhGds4.mjs";
|
|
6
6
|
import { constants } from "node:fs";
|
|
7
7
|
import { lstat, open, opendir, readFile, readdir, realpath, stat } from "node:fs/promises";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as bCountSchema, $n as detectStatic, A as bDuplicateMirror, B as bEvidenceReader, Bt as sessionPeriodSchema, C as validateBUnit, Cn as inspectionSemanticVersions, Ct as cardsSubmitSchema, D as uncoveredBObligations, Dn as createStaticProcessor, Dt as privacyResolveSchema, E as bLiterals, Et as packageConfirmActionSchema, Fn as entityDictionaryVersion, Ft as termTypeInfo, G as subtractBRanges, Gn as validateProfile, H as codePointLength, Ht as journeyProfileAddressActionSchema, I as bIssue, It as termTypeSchema, J as bRetainedGroupSchema, Jn as validatePlan, Jt as respondProfileLinks, Kn as orderProfile, L as bOverlaps, Lt as termTypes, M as bLegacyBindings, Mt as reviewTermsResultSchema, N as bUnitFragments, Nt as termAssessmentSchema, O as indexBRanges, On as staticDefaults, Ot as privacyTermKey, P as bAdoptedObligations, Pn as cleanupImplementationVersion, Pt as termOverrideValueSchema, Q as bAnchorSchema, Qt as safeCode, R as unownedBObligations, Rt as deselectOutsidePeriod, S as validateBFields, Sn as currentDetectorVersion, St as cardsConfirmActionSchema, T as bLiteralTerms, Tn as gapReasons, Tt as emptyJourneyPrivacy, U as codePointSlice, Ut as journeyProfileLinksActionSchema, V as bDigest, Vt as emptyJourneyProfile, W as createCodePointIndex, X as bSessionDecisionSchema, Xt as ApplicationError, Y as bReviewSubmissionSchema, Yn as copyData, Yt as classificationTitleMaskSchema, Z as bTermSchema, Zt as UnfinishedJourneyError, _ as semanticFindingSchema, _t as hideConfirmSchema, a as reviewChunkSchema, an as observeSource, at as journeyExceptionSchema, b as validateBReview, bt as journeyConfigurationSchema, c as textDigest, cn as inventorySchema, cr as scalarBefore, ct as journeyPreferenceScopeSchema, dt as nativeJourneySchema, en as familyNeedsReview, et as bIdSchema, f as reviewAlignmentAuditSchema, fn as nativeSourceIdentitySchema, ft as journeyGuidanceSchema, g as validateReviewAlignment, h as reviewFindingsDigest, ht as journeyDescribeSchema, i as reviewBatchSchema, in as sourceKey, ir as createEntityMatcher, it as journeyDigestSchema, jt as reviewTermsInputSchema, kn as staticOptions, l as validateReview, lr as defaultDetectionLimits, lt as journeyProjectTypeSchema, m as reviewAlignmentSchema, mt as delegatedDecisionSchema, n as compileBFindings, nn as reviewFamilies, nt as journeyAccessSchema, o as reviewDigest, on as sourceSnapshotId, ot as journeyIdSchema, p as reviewAlignmentInputSchema, pt as journeyInstructionInputSchema, q as bRepresentationSchema, r as reviewBatchChunks, rn as sourceGraph, rt as journeyChoiceSchema, s as reviewSubmitSchema, sn as fileIdentitySchema, sr as scalarAfter, st as journeyKindSchema, tn as familySelected, tr as staticCategories, tt as bMethod, u as findingReferenceKey, un as sourcePartSchema, ut as journeyWorkTypeSchema, vt as hidePlanInputSchema, w as bLiteralAdmitted, x as createBAnalysisUnits, xt as cardAnswerActionSchema, y as validateBClassification, yt as hidePlanResourceSchema, z as bAnchorKey } from "./locate-
|
|
1
|
+
import { $ as bCountSchema, $n as detectStatic, A as bDuplicateMirror, B as bEvidenceReader, Bt as sessionPeriodSchema, C as validateBUnit, Cn as inspectionSemanticVersions, Ct as cardsSubmitSchema, D as uncoveredBObligations, Dn as createStaticProcessor, Dt as privacyResolveSchema, E as bLiterals, Et as packageConfirmActionSchema, Fn as entityDictionaryVersion, Ft as termTypeInfo, G as subtractBRanges, Gn as validateProfile, H as codePointLength, Ht as journeyProfileAddressActionSchema, I as bIssue, It as termTypeSchema, J as bRetainedGroupSchema, Jn as validatePlan, Jt as respondProfileLinks, Kn as orderProfile, L as bOverlaps, Lt as termTypes, M as bLegacyBindings, Mt as reviewTermsResultSchema, N as bUnitFragments, Nt as termAssessmentSchema, O as indexBRanges, On as staticDefaults, Ot as privacyTermKey, P as bAdoptedObligations, Pn as cleanupImplementationVersion, Pt as termOverrideValueSchema, Q as bAnchorSchema, Qt as safeCode, R as unownedBObligations, Rt as deselectOutsidePeriod, S as validateBFields, Sn as currentDetectorVersion, St as cardsConfirmActionSchema, T as bLiteralTerms, Tn as gapReasons, Tt as emptyJourneyPrivacy, U as codePointSlice, Ut as journeyProfileLinksActionSchema, V as bDigest, Vt as emptyJourneyProfile, W as createCodePointIndex, X as bSessionDecisionSchema, Xt as ApplicationError, Y as bReviewSubmissionSchema, Yn as copyData, Yt as classificationTitleMaskSchema, Z as bTermSchema, Zt as UnfinishedJourneyError, _ as semanticFindingSchema, _t as hideConfirmSchema, a as reviewChunkSchema, an as observeSource, at as journeyExceptionSchema, b as validateBReview, bt as journeyConfigurationSchema, c as textDigest, cn as inventorySchema, cr as scalarBefore, ct as journeyPreferenceScopeSchema, dt as nativeJourneySchema, en as familyNeedsReview, et as bIdSchema, f as reviewAlignmentAuditSchema, fn as nativeSourceIdentitySchema, ft as journeyGuidanceSchema, g as validateReviewAlignment, h as reviewFindingsDigest, ht as journeyDescribeSchema, i as reviewBatchSchema, in as sourceKey, ir as createEntityMatcher, it as journeyDigestSchema, jt as reviewTermsInputSchema, kn as staticOptions, l as validateReview, lr as defaultDetectionLimits, lt as journeyProjectTypeSchema, m as reviewAlignmentSchema, mt as delegatedDecisionSchema, n as compileBFindings, nn as reviewFamilies, nt as journeyAccessSchema, o as reviewDigest, on as sourceSnapshotId, ot as journeyIdSchema, p as reviewAlignmentInputSchema, pt as journeyInstructionInputSchema, q as bRepresentationSchema, r as reviewBatchChunks, rn as sourceGraph, rt as journeyChoiceSchema, s as reviewSubmitSchema, sn as fileIdentitySchema, sr as scalarAfter, st as journeyKindSchema, tn as familySelected, tr as staticCategories, tt as bMethod, u as findingReferenceKey, un as sourcePartSchema, ut as journeyWorkTypeSchema, vt as hidePlanInputSchema, w as bLiteralAdmitted, x as createBAnalysisUnits, xt as cardAnswerActionSchema, y as validateBClassification, yt as hidePlanResourceSchema, z as bAnchorKey } from "./locate-BWkblijS.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { createHash, createHmac, createSecretKey, randomUUID } from "node:crypto";
|
|
4
4
|
import { setTimeout as setTimeout$1 } from "node:timers/promises";
|
|
@@ -12773,7 +12773,7 @@ function dominant(value, signal) {
|
|
|
12773
12773
|
otherRepositoryIds: sorted.slice(1).map((item) => item.id)
|
|
12774
12774
|
};
|
|
12775
12775
|
}
|
|
12776
|
-
/**
|
|
12776
|
+
/** Stop at the first deciding signal, then leave semantic fallback to the agent. */
|
|
12777
12777
|
function chooseCheapPlacement(signals) {
|
|
12778
12778
|
const paths = dominant(signals.paths, "paths");
|
|
12779
12779
|
if (paths) return paths;
|
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
2
|
-
import { t as createZstdFrameCheck } from "./frame-
|
|
3
|
-
import { F as sourceIdentityEvidence, I as withSourceEvidence, In as bWordBounded, L as agentSetupKey, Mn as bContainment, Nn as bExceptionRanges, Nr as agentSourcePathSegment, Pr as agentSourceSchema, at as defaultAgentSetupInclusion, di as approvedTreatmentSchema, fr as resolveSourceSelection, gi as staticCatalogRef, it as classifyAgentSetup, kt as metadataProcessingVersion, li as sourceChangePolicy } from "./src-
|
|
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
|
+
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, Nr as agentSourcePathSegment, Pr as agentSourceSchema, at as defaultAgentSetupInclusion, di as approvedTreatmentSchema, fr as resolveSourceSelection, gi as staticCatalogRef, it as classifyAgentSetup, kt as metadataProcessingVersion, li as sourceChangePolicy } from "./src-d7n58sbH.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-DFHajqf2.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");
|