@gitroll/tacitt-cli 0.6.13 → 0.6.14
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/{agent-setup-Doy_AnPY.mjs → agent-setup-CEPQfjBv.mjs} +2 -2
- package/dist/agent-setup-worker.mjs +5 -5
- package/dist/cli.mjs +6 -6
- 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-BPbypzmt.mjs → frame-CRm99088.mjs} +1 -1
- package/dist/{heap-DCS_WXIA.mjs → heap-Bh9tySJp.mjs} +8 -7
- package/dist/inspection-worker.mjs +4 -4
- package/dist/{job--zxwgaPy.mjs → job-CsWKWcM4.mjs} +4 -4
- package/dist/{locate-PLEyLYW-.mjs → locate-CP2t26j2.mjs} +173 -19
- package/dist/{model-CyXvsWLz.mjs → model-ChHuVKoB.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-BC7MIaWc.mjs → query-D28k3XOr.mjs} +5822 -5704
- package/dist/{run-Dod7Vykp.mjs → run-CiJmV__5.mjs} +4 -4
- package/dist/{src-CttNuxOn.mjs → src-B3il9x5F.mjs} +37 -13
- package/dist/{src-dL6y2mcu.mjs → src-CWMrGXJK.mjs} +4 -4
- package/dist/{src-CP-K2PBv.mjs → src-CmvEJj46.mjs} +31 -8
- package/dist/store-database-worker.mjs +1 -1
- package/dist/web/assets/index-XdWDOC5H.js +172 -0
- package/dist/web/index.html +1 -1
- package/package.json +1 -1
- package/skills/tacitt/INDEX.md +1 -1
- package/skills/tacitt/SKILL.md +2 -0
- package/skills/tacitt/references/INDEX.md +2 -2
- package/skills/tacitt/references/commands.md +13 -0
- package/skills/tacitt/references/journey.md +2 -0
- package/skills/tacitt/scripts/INDEX.md +1 -1
- package/skills/tacitt/scripts/journey-classification-tasks.mjs +2 -0
- package/skills/tacitt/scripts/journey-state.d.mts +3 -0
- package/skills/tacitt/scripts/journey-state.mjs +8 -1
- package/skills/tacitt/scripts/journey.mjs +30 -0
- package/skills/tacitt/scripts/privacy-validator.mjs +76 -7
- package/dist/web/assets/index-BgDdPL1c.js +0 -172
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as createZstdFrameCheck$1 } from "./frame-
|
|
3
|
-
import "./src-
|
|
4
|
-
import { a as isRecord } from "./model-
|
|
1
|
+
import { vn as sessionSchema } from "./locate-CP2t26j2.mjs";
|
|
2
|
+
import { t as createZstdFrameCheck$1 } from "./frame-CRm99088.mjs";
|
|
3
|
+
import "./src-B3il9x5F.mjs";
|
|
4
|
+
import { a as isRecord } from "./model-ChHuVKoB.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,5 +1,5 @@
|
|
|
1
|
-
import { $ as createCodePointIndex,
|
|
2
|
-
import { z } from "zod";
|
|
1
|
+
import { $ as createCodePointIndex, A as bLegacyBindings, B as bIssue, Bt as reviewTermsResultSchema, C as validateBReview, Ct as hideConfirmSchema, Dt as cardAnswerActionSchema, E as validateBUnit, Et as journeyConfigurationSchema, F as bLiterals, G as bReviewSubmissionSchema, Gt as termTypes, H as unownedBObligations, Ht as termOverrideValueSchema, I as uncoveredBObligations, In as createStaticProcessor, J as bAnchorKey, Jt as sessionPeriodSchema, K as bSessionDecisionSchema, Kt as deselectOutsidePeriod, L as indexBRanges, Ln as staticDefaults, Lt as emptyReviewCorrectionSchema, M as semanticFindingSchema, Mn as inspectionSemanticVersions, Mt as packageConfirmActionSchema, N as bLiteralAdmitted, Nt as privacyResolveSchema, O as bDuplicateMirror, Ot as cardsConfirmActionSchema, P as bLiteralTerms, Pn as gapReasons, Pt as privacyTermKey, Q as codePointSlice, R as bAdoptedObligations, Rn as staticOptions, S as validateBClassification, T as validateBFields, Tt as hidePlanResourceSchema, U as bRepresentationSchema, Un as cleanupImplementationVersion, Ut as termTypeInfo, V as bOverlaps, Vt as termAssessmentSchema, W as bRetainedGroupSchema, Wn as entityDictionaryVersion, Wt as termTypeSchema, X as bDigest, Xt as journeyProfileAddressActionSchema, Y as bEvidenceReader, Yt as emptyJourneyProfile, Z as codePointLength, Zt as journeyProfileLinksActionSchema, _ as reviewAlignmentInputSchema, _n as inventorySchema, _r as scalarBefore, _t as reviewInterruptionSchema, an as ApplicationError, at as bMethod, b as validateReviewAlignment, bt as delegatedDecisionSchema, c as reviewBatchSchema, cr as detectStatic, ct as journeyChoiceSchema, d as reviewSubmitSchema, dn as reviewFamilies, dt as journeyIdSchema, er as validateProfile, et as subtractBRanges, f as textDigest, fn as sourceGraph, ft as journeyKindSchema, g as reviewAlignmentAuditSchema, gn as fileIdentitySchema, gr as scalarAfter, gt as nativeJourneySchema, hn as sourceSnapshotId, ht as journeyWorkTypeSchema, in as classificationTitleMaskSchema, ir as copyData, it as bIdSchema, j as bUnitFragments, jn as currentDetectorVersion, jt as emptyJourneyPrivacy, kt as cardsSubmitSchema, l as reviewChunkSchema, ln as familyNeedsReview, lt as journeyDigestSchema, m as findingReferenceKey, mn as observeSource, mt as journeyProjectTypeSchema, nn as respondProfileLinks, nt as bAnchorSchema, o as compileBFindings, on as UnfinishedJourneyError, ot as consentedWithoutAccount, p as validateReview, pn as sourceKey, pr as createEntityMatcher, pt as journeyPreferenceScopeSchema, q as bTermSchema, rr as validatePlan, rt as bCountSchema, s as reviewBatchChunks, sn as safeCode, st as journeyAccessSchema, tr as orderProfile, u as reviewDigest, un as familySelected, ur as staticCategories, ut as journeyExceptionSchema, v as reviewAlignmentSchema, vr as defaultDetectionLimits, vt as journeyGuidanceSchema, w as createBAnalysisUnits, wt as hidePlanInputSchema, xn as nativeSourceIdentitySchema, xt as journeyDescribeSchema, y as reviewFindingsDigest, yn as sourcePartSchema, yt as journeyInstructionInputSchema, zt as reviewTermsInputSchema } from "./locate-CP2t26j2.mjs";
|
|
2
|
+
import { ZodError, z } from "zod";
|
|
3
3
|
import { createHash, createHmac, createSecretKey, randomUUID } from "node:crypto";
|
|
4
4
|
import { setTimeout as setTimeout$1 } from "node:timers/promises";
|
|
5
5
|
//#region packages/application/src/processing/model.ts
|
|
@@ -1532,7 +1532,7 @@ function confirmedHideTerms(groups, records) {
|
|
|
1532
1532
|
//#endregion
|
|
1533
1533
|
//#region packages/application/src/journey/placement/readiness.ts
|
|
1534
1534
|
function hasCompleteWorkDescription(work) {
|
|
1535
|
-
return work.placement === "placed" && !!work.description.trim() && work.classificationRecommendation !== null;
|
|
1535
|
+
return work.placement === "placed" && (work.accountWork === true || !!work.description.trim() && work.classificationRecommendation !== null);
|
|
1536
1536
|
}
|
|
1537
1537
|
/** Explain why a requested Work still has no usable output after rendering. */
|
|
1538
1538
|
function unfinishedPackagingCode(work) {
|
|
@@ -3944,7 +3944,7 @@ function retryAccountRead(state, read, now) {
|
|
|
3944
3944
|
/** Classification confirmation initializes visibility and scan membership for this journey. */
|
|
3945
3945
|
function confirmScope(state, now, decision, accountAccess) {
|
|
3946
3946
|
if (state.scope.status === "confirmed") return state;
|
|
3947
|
-
if (state.classificationRevision === null || !state.works.length || state.works.some((work) => work.placement !== "placed" && work.placement !== "classifying" || work.placement === "placed" && !(work.status === "blocked" && work.access === "drop" && work.accessConfirmed) && (!work.description.trim() || !work.projectType))) throw new ApplicationError("SCOPE_NOT_READY");
|
|
3947
|
+
if (state.classificationRevision === null || !state.works.length || state.works.some((work) => work.placement !== "placed" && work.placement !== "classifying" || work.placement === "placed" && !work.accountWork && !(work.status === "blocked" && work.access === "drop" && work.accessConfirmed) && (!work.description.trim() || !work.projectType))) throw new ApplicationError("SCOPE_NOT_READY");
|
|
3948
3948
|
return withReadingProgress({
|
|
3949
3949
|
...state,
|
|
3950
3950
|
scope: {
|
|
@@ -5613,9 +5613,9 @@ function sameAccessRecord(work, other) {
|
|
|
5613
5613
|
/** The proposal's Works built from the given state's current Works (E2). */
|
|
5614
5614
|
function classificationWorks(state, plan) {
|
|
5615
5615
|
const late = plan.late;
|
|
5616
|
-
const works =
|
|
5616
|
+
const works = state.works.filter((work) => work.accountWork);
|
|
5617
5617
|
for (const item of plan.items) {
|
|
5618
|
-
const existing = state.works.find((work) => work.placement !== "classifying" && work.rootSessionIds.length === item.rootSessionIds.length && work.rootSessionIds.every((root) => item.rootSessionIds.includes(root)));
|
|
5618
|
+
const existing = state.works.find((work) => work.placement !== "classifying" && !work.accountWork && work.rootSessionIds.length === item.rootSessionIds.length && work.rootSessionIds.every((root) => item.rootSessionIds.includes(root)));
|
|
5619
5619
|
const owners = late ? state.works.filter((work) => work.placement === "placed" && work.rootSessionIds.some((root) => item.rootSessionIds.includes(root))) : [];
|
|
5620
5620
|
if (owners.some((work) => !sameAccessRecord(work, owners[0]))) throw new ApplicationError("INVALID_SELECTION", "classification.late.several-works");
|
|
5621
5621
|
const extended = owners.find((work) => work.rootSessionIds.every((root) => item.rootSessionIds.includes(root)));
|
|
@@ -5635,7 +5635,7 @@ function classificationWorks(state, plan) {
|
|
|
5635
5635
|
works.push({
|
|
5636
5636
|
...original,
|
|
5637
5637
|
projectName: item.projectName,
|
|
5638
|
-
title: base.titleOrigin === "
|
|
5638
|
+
title: base.titleOrigin === "model" ? item.projectName : base.title,
|
|
5639
5639
|
description: item.description,
|
|
5640
5640
|
projectType: {
|
|
5641
5641
|
type: item.projectType,
|
|
@@ -6126,6 +6126,7 @@ function respondToJourney(state, action, source, now, decision, preferenceScope,
|
|
|
6126
6126
|
return accountRead && confirmed !== state ? withAccountRead(confirmed, accountRead, now) : confirmed;
|
|
6127
6127
|
}
|
|
6128
6128
|
if (action.kind === "account-read") {
|
|
6129
|
+
if (!state.snapshotId && state.accountWorks && state.accountWorks.status !== "read") return state;
|
|
6129
6130
|
if (!accountRead) throw new ApplicationError("INVALID_TRANSITION");
|
|
6130
6131
|
return retryAccountRead(state, accountRead, now);
|
|
6131
6132
|
}
|
|
@@ -6937,7 +6938,7 @@ function digest$1(value) {
|
|
|
6937
6938
|
* quotes stay out. The agent reads override values from `journey.get` and the guidance.
|
|
6938
6939
|
*/
|
|
6939
6940
|
function journeyView(state, now) {
|
|
6940
|
-
const { exceptions, instructions, corrections, valueOverrides, consent, accountRead, rememberedHides: _remembered, ...safe } = state;
|
|
6941
|
+
const { exceptions, instructions, corrections, valueOverrides, consent, accountRead, accountWorks, rememberedHides: _remembered, ...safe } = state;
|
|
6941
6942
|
const terms = activePrivacyTerms(state);
|
|
6942
6943
|
const hidden = dictionaryHides(state, state.privacy.terms);
|
|
6943
6944
|
return {
|
|
@@ -6947,6 +6948,21 @@ function journeyView(state, now) {
|
|
|
6947
6948
|
allowedAt: consent.allowedAt,
|
|
6948
6949
|
source: consent.source
|
|
6949
6950
|
},
|
|
6951
|
+
...accountWorks ? { accountWorks: accountWorks.status === "read" ? {
|
|
6952
|
+
status: accountWorks.status,
|
|
6953
|
+
at: accountWorks.at,
|
|
6954
|
+
leftOut: accountWorks.leftOut.length,
|
|
6955
|
+
heldBack: accountWorks.heldBack.length,
|
|
6956
|
+
...accountWorks.nothingToSend ? { nothingToSend: true } : {}
|
|
6957
|
+
} : {
|
|
6958
|
+
status: accountWorks.status,
|
|
6959
|
+
at: accountWorks.at
|
|
6960
|
+
} } : {},
|
|
6961
|
+
accountReadRecovery: !state.snapshotId && !consentedWithoutAccount(state) && accountWorks && accountWorks.status !== "read" ? {
|
|
6962
|
+
code: accountWorks.status === "unavailable" ? "ACCOUNT_WORKS_UNAVAILABLE" : "ACCOUNT_SIGNED_OUT",
|
|
6963
|
+
action: { kind: "account-read" },
|
|
6964
|
+
choices: ["retry"]
|
|
6965
|
+
} : null,
|
|
6950
6966
|
...accountRead ? { accountRead: {
|
|
6951
6967
|
status: accountRead.status,
|
|
6952
6968
|
at: accountRead.at
|
|
@@ -6960,7 +6976,7 @@ function journeyView(state, now) {
|
|
|
6960
6976
|
const localTitle = work.suggestion || work.explicitTitleId ? work.title : work.classificationMetadata?.title ?? work.title;
|
|
6961
6977
|
const imagesOmitted = hasCurrentStaticReview(state, work) ? work.staticReview?.imagesOmitted ?? 0 : 0;
|
|
6962
6978
|
const source = publicSource(work);
|
|
6963
|
-
const title = work.titleOrigin === "explicit" ? localTitle : presentedTitle(localTitle, hidden.keys(), state.exceptions.filter((item) => item.workId === work.id).map((item) => item.value));
|
|
6979
|
+
const title = work.titleOrigin === "explicit" || work.titleOrigin === "account" ? localTitle : presentedTitle(localTitle, hidden.keys(), state.exceptions.filter((item) => item.workId === work.id).map((item) => item.value));
|
|
6964
6980
|
if (!work.classificationMetadata) return {
|
|
6965
6981
|
...work,
|
|
6966
6982
|
title,
|
|
@@ -7217,7 +7233,7 @@ function createNativeJourney(storage, now = () => (/* @__PURE__ */ new Date()).t
|
|
|
7217
7233
|
if (current && current.phase !== "completed" && !current.abandonedAt && !obsoleteJourney(current)) return resume(current);
|
|
7218
7234
|
const carried = current && !current.abandonedAt && obsoleteJourney(current) ? (current.instructions ?? []).filter((item) => item.actor === "human") : [];
|
|
7219
7235
|
const state = {
|
|
7220
|
-
formatVersion:
|
|
7236
|
+
formatVersion: 11,
|
|
7221
7237
|
classificationRevision: null,
|
|
7222
7238
|
privacy: emptyJourneyPrivacy(),
|
|
7223
7239
|
delegation: null,
|
|
@@ -7367,7 +7383,7 @@ function createNativeJourney(storage, now = () => (/* @__PURE__ */ new Date()).t
|
|
|
7367
7383
|
if (!current) throw new ApplicationError("UNKNOWN_ITEM");
|
|
7368
7384
|
const expectedRevision = rebase ? current.revision : input.expectedRevision;
|
|
7369
7385
|
const scopeRead = input.action.kind === "scope-confirm" && current.scope.status !== "confirmed" && source === "conversation" && !input.decision;
|
|
7370
|
-
const accountRead = current.revision === expectedRevision && (scopeRead || input.action.kind === "account-read") ? await readAccount(current) : void 0;
|
|
7386
|
+
const accountRead = current.revision === expectedRevision && (scopeRead || input.action.kind === "account-read" && current.snapshotId !== null) ? await readAccount(current) : void 0;
|
|
7371
7387
|
const account = current.revision === expectedRevision && (input.action.kind === "consent" && input.action.allow && !current.consent || scopeRead) ? await local?.accountState?.() : void 0;
|
|
7372
7388
|
const stop = scopeRead && accountReadStop(current, accountRead);
|
|
7373
7389
|
if (stop && accountRead) {
|
|
@@ -13804,7 +13820,8 @@ function reconcileBSession(fields, units, reviews, signal = new AbortController(
|
|
|
13804
13820
|
validateBFields(fields);
|
|
13805
13821
|
const first = units[0];
|
|
13806
13822
|
if (!first) throw new ApplicationError("INCOMPLETE_REVIEW");
|
|
13807
|
-
const
|
|
13823
|
+
const rebuild = (lineContext) => createBAnalysisUnits({
|
|
13824
|
+
lineContext,
|
|
13808
13825
|
sessionId: first.sessionId,
|
|
13809
13826
|
snapshotId: first.snapshotId,
|
|
13810
13827
|
inputRevision: first.inputRevision,
|
|
@@ -13814,6 +13831,13 @@ function reconcileBSession(fields, units, reviews, signal = new AbortController(
|
|
|
13814
13831
|
cores: units.toSorted((left, right) => left.ordinal - right.ordinal).map((unit) => unit.coreCodePoints)
|
|
13815
13832
|
});
|
|
13816
13833
|
const byId = new Map(units.map((unit) => [unit.id, unit]));
|
|
13834
|
+
let current;
|
|
13835
|
+
try {
|
|
13836
|
+
current = rebuild(true);
|
|
13837
|
+
} catch (error) {
|
|
13838
|
+
if (!(error instanceof ZodError) && !(error instanceof ApplicationError && error.code === "INCOMPLETE_REVIEW")) throw error;
|
|
13839
|
+
}
|
|
13840
|
+
const expected = current?.every((unit) => byId.get(unit.id)?.digest === unit.digest) ? current : rebuild(false);
|
|
13817
13841
|
if (byId.size !== units.length || expected.length !== units.length || expected.some((unit) => byId.get(unit.id)?.digest !== unit.digest)) throw new ApplicationError("INCOMPLETE_REVIEW");
|
|
13818
13842
|
const seen = /* @__PURE__ */ new Set();
|
|
13819
13843
|
const validated = reviews.map((review) => {
|
|
@@ -14345,4 +14369,4 @@ function equivalenceDuplicates(batch) {
|
|
|
14345
14369
|
return bindings.sort();
|
|
14346
14370
|
}
|
|
14347
14371
|
//#endregion
|
|
14348
|
-
export { validateDetectionSummary as $,
|
|
14372
|
+
export { validateDetectionSummary as $, hideKeyId as $n, sendReceiptSchema as $r, journeyPlaceSchema as $t, renewBeforeMs as A, selectionSchema as Ai, scanExclusionResourceSchema as An, nativeStartSchema as Ar, validateAttemptAppend as At, createApplication as B, selectFrozenConfiguration as Bi, journeySearchResultSchema as Bn, sendsOnNextAdvance as Br, newJourneyWork as Bt, rebindReviewOverlay as C, bMaskedHits as Ci, scanAliasResourceSchema as Cn, assertJourneyPrivacyReady as Cr, sendActionSchema as Ct, staticallyHiddenFindings as D, commandSchema as Di, scanGitSeedsId as Dn, nativeEventsSchema as Dr, sendStartSchema as Dt, guardedFindingText as E, replacementMarkerPattern as Ei, scanSessionResourceSchema as En, rememberedHideValues as Er, sendRequestSchema as Et, readAccountAvatarUrl as F, recommendParallelism as Fi, journeyInventoryReadSchema as Fn, hostDrives as Fr, classificationCommitSchema as Ft, validateInspectionRequest as G, journeyEventSchema as Gn, staticReviewDigest as Gr, hideFinishSchema as Gt, inspectionStartSchema as H, searchScopeDigest as Hn, nativeAdapterVersions as Hr, journeyContextQuerySchema as Ht, storedCredentialSchema as I, approvedTreatmentSchema as Ii, journeyInventorySchema as In, itemAtPassport as Ir, classificationPartition as It, validateInspectionFence as J, readConfirmedHideChange as Jn, agentSourcePathSegment as Jr, sendOutputQuerySchema as Jt, inspectionQuerySchema as K, confirmedHideAdditions as Kn, staticSessionId as Kr, hidePublishSchema as Kt, sourceIdentityEvidence as L, effectiveTreatmentSchema as Li, journeyPreparationProgressSchema as Ln, obsoleteJourney as Lr, classificationWorks as Lt, deviceAuthorizationSchema as M, producerVersion as Mi, resolveSourceSelection as Mn, advanceStepsSend as Mr, journeyBatchReadSchema as Mt, deviceProfileScopeSchema as N, stateSchema as Ni, projectPreparationProgress as Nn, awaitingPassport as Nr, journeyReviewStorageQuerySchema as Nt, createAccount as O, packageCommandSchema as Oi, scanGitSeedsResource as On, nativeGetSchema as Or, settleCorrections as Ot, profileUrlMatchesIdentity as P, sourceChangePolicy as Pi, journeyInventoryQuerySchema as Pn, currentJourneyAdapters as Pr, applyClassificationProposal as Pt, validateInspectionContribution as Q, addHideIndexTokens as Qn, sendArtifactSchema as Qr, journeyIsolateSchema as Qt, withSourceEvidence as R, defaultScopedSettings as Ri, accountReadStop as Rn, sendOwesPassport as Rr, retireScanGeneration as Rt, rebindReviewAlignment as S, bExceptionRanges as Si, planBRepair as Sn, applyCardAnswers as Sr, replaceSensitiveTermsSchema as St, reviewBatchReuse as T, bWordBounded as Ti, scanPreparationDigest as Tn, reconcileReaderKeeps as Tr, sendPrepareSchema as Tt, validateInspectionBatch as U, journeyCommitResultSchema as Un, mergePrivacyTerms as Ur, journeyContextSchema as Ut, inspectionCancelSchema as V, staticCatalogRef as Vi, journeySearchSaveSchema as Vn, metadataProcessingVersion as Vr, reviewCompileSchema as Vt, validateInspectionBatches as W, journeyCommitSchema as Wn, hasCurrentStaticReview as Wr, hideBeginSchema as Wt, validateInspectionInputs as X, settleConfirmedHides as Xn, agentSourcesSchema as Xr, journeyResourceQuerySchema as Xt, validateInspectionHead as Y, renderedHideValue as Yn, agentSourceSchema as Yr, sendOutputSchema as Yt, validateInspectionQuery as Z, termHideAdditions as Zn, journeySendSchema as Zr, journeyResourceSchema as Zt, changeJourney as _, dictionaryHides as _i, reviewRepairInputSchema as _n, journeyPreviewSchema as _r, manualUploadStartSchema as _t, bCrossSegmentReviewSchema as a, isClassifying as ai, sessionReconcileResultSchema as an, workCorrectionBinding as ar, appendSensitiveTerms as at, isGenericPublicTerm as b, syncTermGroups as bi, bReviewDigest as bn, displayedScopeDigest as br, maximumTermsFileBytes as bt, reconstructBFields as c, isSelectedWork as ci, sessionRereadResourceSchema as cn, preparationPermissionSchema as cr, maximumAgentSetupSessions as ct, resolveGroupSplit as d, unfinishedPackagingCode as di, sessionReviewResourceSchema as dn, preparationStateSchema as dr, validateFailureLocation as dt, sendReplaceResultSchema as ei, sortingApplySchema as en, maximumHideIndexTokens as er, inspectionInputs as et, selectedValueMembers as f, withReadingProgress as fi, sessionReviewStatusSchema as fn, preparationUpdateSchema as fr, manualUploadActionSchema as ft, semanticGroupKey as g, confirmedHideTerms as gi, reviewCandidateResourceSchema as gn, journeyFindingsSchema as gr, manualUploadSchema as gt, hideScopeDigest as h, confirmedHideKinds as hi, reviewCandidateInputSchema as hn, journeyFindingImpactSchema as hr, manualUploadPrepareSchema as ht, validateBCrossSegmentReview as i, hasCompleteWorkDescription as ii, sessionReconcileInputSchema as in, workPrivacyDecisions as ir, reviewInventory as it, accountProfileSchema as j, gitMetadataBudgetBytes as ji, validateScanExclusion as jn, retryReviewActionSchema as jr, journeyGuidance as jt, renew as k, selectionBatchSchema as ki, verifiedScanGitSeeds as kn, nativeRespondSchema as kr, attemptBudgetCodePoints as kt, chooseCheapPlacement as l, isSkippedWork as li, sessionReviewInputSchema as ln, preparationSettlementSchema as lr, artifactFailureDetailSchema as lt, activeJourneyTerms as m, confirmedHideKey as mi, sessionUsefulnessResourceSchema as mn, journeyClassificationSessionsSchema as mr, manualUploadChoiceSchema as mt, scanBatchEquivalenceDigest as n, sendSessionUploadSchema as ni, reviewAttemptsQuerySchema as nn, retireWorkDescription as nr, settingsQuerySchema as nt, bRereadDigest as o, isIncludedWork as oi, sessionReconciliationResourceSchema as on, emptyPreparationFacts as or, classifyAgentSetup as ot, splitSelectorValues as p, confirmedHideGroupIds as pi, sessionUsefulnessInputSchema as pn, validatePreparationFacts as pr, manualUploadBindingSchema as pt, validateInspectionClaim as q, confirmedHideDeltaSchema as qn, staticSessionResourceSchema as qr, journeyPolicyRespondSchema as qt, locateTermEvidence as r, sendSettingsSchema as ri, reviewAttemptsResultSchema as rn, workDecisionDigest as rr, readWorkspaceOutcomes as rt, reconcileBSession as s, isReadingComplete as si, sessionRereadInputSchema as sn, preparationBeginSchema as sr, defaultAgentSetupInclusion as st, scanBatchContextDigest as t, sendResolutionSchema as ti, reviewAttemptResourceSchema as tn, packHideIndex as tr, settingsBatchSchema as tt, reviseGroupMembership as u, selectedWorks as ui, sessionReviewQuerySchema as un, preparationStartSchema as ur, resolveFailureLocation as ut, projectJourneyInventory as v, journeyConfirmedHides as vi, reviewRepairResourceSchema as vn, journeyRenderInputSchema as vr, candidateSortAvailable as vt, rebindReviewSubmit as w, bTermMatcher as wi, scanCanonicalResourceSchema as wn, privacyDecisionDigest as wr, sendChoiceSchema as wt, bReviewScope as x, bContainment as xi, mergeBRepair as xn, requestedScope as xr, normalizeSensitiveTerms as xt, preparationScope as y, maskedHitsStale as yi, reviewTransportBytes as yn, journeyRenderSchema as yr, emptyTermsRevision as yt, agentSetupKey as z, freezeConfiguration as zi, applyClassification as zn, sendReachedPassport as zr, isolatedWorkId as zt };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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 { $n as retainedMainTextNodes, Cr as processingSite, Fn as walkNativeFields, Hn as parseNativeRecord, Jn as nativeField, Xn as nativeText, Yn as nativeItems, ar as defaultLimits, br as declaredVersion, hn as sourceSnapshotId, mn as observeSource, qn as nativeBoolean, yr as ProcessingError } from "./locate-CP2t26j2.mjs";
|
|
2
|
+
import { Hr as nativeAdapterVersions, it as reviewInventory, ji as gitMetadataBudgetBytes } from "./src-B3il9x5F.mjs";
|
|
3
|
+
import { a as isRecord, i as errorCode, n as checkDiscoveryAbort, o as unresolvedMetadata, r as discoveryBounds, t as DiscoveryWarnings } from "./model-ChHuVKoB.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-CiJmV__5.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 { access, constants as constants$1, lstat, open, opendir, readFile, readdir, realpath, stat } from "node:fs/promises";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $n as
|
|
2
|
-
import { t as createZstdFrameCheck } from "./frame-
|
|
3
|
-
import {
|
|
1
|
+
import { $n as retainedMainTextNodes, An as bindInspection, Bn as sessionNonce, Cn as processNativeRecord, Cr as processingSite, D as bBindingCap, Dn as createSentenceContext, En as reviewRoles, Fn as walkNativeFields, Gn as nativeParserVersion, Hn as parseNativeRecord, Jn as nativeField, Kn as redactionImplementationVersion, Nn as createDetectionSummary, On as renderNative, Qn as frameRecords, Sn as withMandatoryCustomTerms, Sr as isProcessingCode, Tn as mainReviewRole, Un as cleanupImplementationVersion, Vn as projectNativeRecord, Wn as entityDictionaryVersion, X as bDigest, Xn as nativeText, Yn as nativeItems, Z as codePointLength, Zn as transformRecords, an as ApplicationError, ar as defaultLimits, cr as detectStatic, dn as reviewFamilies, dr as jsonSpans, er as validateProfile, f as textDigest, fr as agentContextLocation, hn as sourceSnapshotId, k as bDuplicateShift, kn as createSessionPreparation, nr as buildPlan, or as recordPointerLimits, pn as sourceKey, pr as createEntityMatcher, rr as validatePlan, sn as safeCode, sr as resolveLimits, u as reviewDigest, un as familySelected, vr as defaultDetectionLimits, w as createBAnalysisUnits, wn as projectNativeReviewInput, wr as siteFields, xn as nativeSourceIdentitySchema, xr as fail$1, yr as ProcessingError, zn as createReplacementKey } from "./locate-CP2t26j2.mjs";
|
|
2
|
+
import { t as createZstdFrameCheck } from "./frame-CRm99088.mjs";
|
|
3
|
+
import { Ei as replacementMarkerPattern, Ii as approvedTreatmentSchema, Jr as agentSourcePathSegment, L as sourceIdentityEvidence, Mn as resolveSourceSelection, Pi as sourceChangePolicy, R as withSourceEvidence, Si as bExceptionRanges, Ti as bWordBounded, Vi as staticCatalogRef, Vr as metadataProcessingVersion, Yr as agentSourceSchema, ot as classifyAgentSetup, st as defaultAgentSetupInclusion, xi as bContainment, z as agentSetupKey } from "./src-B3il9x5F.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";
|
|
@@ -16623,10 +16623,32 @@ function reviewBatchBody(context, unit, ordinal) {
|
|
|
16623
16623
|
...duplicates.length ? { duplicates } : {}
|
|
16624
16624
|
};
|
|
16625
16625
|
}
|
|
16626
|
-
/**
|
|
16627
|
-
function split(
|
|
16628
|
-
|
|
16629
|
-
|
|
16626
|
+
/** Transport refinement keeps line/record boundaries and the hard long-line fallback. */
|
|
16627
|
+
function split(unit, parts) {
|
|
16628
|
+
if (parts === 1) return [unit.coreCodePoints];
|
|
16629
|
+
const target = Math.ceil(unit.coreCodePoints / parts);
|
|
16630
|
+
const lengths = [];
|
|
16631
|
+
let core = 0;
|
|
16632
|
+
const take = (length) => {
|
|
16633
|
+
if (core && core + length > target) {
|
|
16634
|
+
lengths.push(core);
|
|
16635
|
+
core = 0;
|
|
16636
|
+
}
|
|
16637
|
+
core += length;
|
|
16638
|
+
};
|
|
16639
|
+
for (const fragment of unit.fragments.filter((part) => part.core)) {
|
|
16640
|
+
let line = 0;
|
|
16641
|
+
for (const scalar of fragment.text) {
|
|
16642
|
+
line++;
|
|
16643
|
+
if (scalar === "\n" || line === 64e3) {
|
|
16644
|
+
take(line);
|
|
16645
|
+
line = 0;
|
|
16646
|
+
}
|
|
16647
|
+
}
|
|
16648
|
+
if (line) take(line);
|
|
16649
|
+
}
|
|
16650
|
+
if (core) lengths.push(core);
|
|
16651
|
+
return lengths;
|
|
16630
16652
|
}
|
|
16631
16653
|
function units(context, fields, ordinal, deduplicate, cores) {
|
|
16632
16654
|
return createBAnalysisUnits({
|
|
@@ -16635,6 +16657,7 @@ function units(context, fields, ordinal, deduplicate, cores) {
|
|
|
16635
16657
|
inputRevision: context.inputRevision,
|
|
16636
16658
|
fields,
|
|
16637
16659
|
deduplicate,
|
|
16660
|
+
lineContext: true,
|
|
16638
16661
|
...cores ? { cores } : {}
|
|
16639
16662
|
}).map((unit, index) => {
|
|
16640
16663
|
const body = reviewBatchBody(context, unit, ordinal + index);
|
|
@@ -16654,7 +16677,7 @@ function settle(context, fields, ordinal, deduplicate) {
|
|
|
16654
16677
|
let bodies = units(context, fields, ordinal, deduplicate);
|
|
16655
16678
|
for (let round = 0; bodies.some((item) => !item.fits); round += 1) {
|
|
16656
16679
|
if (bodies.some(({ body, fits }) => !fits && new Set(body.unit.fragments.filter((part) => part.core).map((part) => part.fieldId)).size === 1) || round === 4) return void 0;
|
|
16657
|
-
bodies = units(context, fields, ordinal, deduplicate, bodies.flatMap(({ body, fits, load }) => split(body.unit
|
|
16680
|
+
bodies = units(context, fields, ordinal, deduplicate, bodies.flatMap(({ body, fits, load }) => split(body.unit, fits ? 1 : Math.ceil(load / .8))));
|
|
16658
16681
|
}
|
|
16659
16682
|
return bodies;
|
|
16660
16683
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as createExecutor, t as assertStoreHeap } from "./heap-
|
|
1
|
+
import { i as createExecutor, t as assertStoreHeap } from "./heap-Bh9tySJp.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");
|