@wayai/cli 0.3.362 → 0.3.364
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/index.js +269 -187
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14693,7 +14693,7 @@ var init_chunk_25BLQS73 = __esm({
|
|
|
14693
14693
|
}
|
|
14694
14694
|
});
|
|
14695
14695
|
|
|
14696
|
-
// ../../packages/core/dist/chunk-
|
|
14696
|
+
// ../../packages/core/dist/chunk-NGTXUA6P.js
|
|
14697
14697
|
function declaresNoConnection(agent) {
|
|
14698
14698
|
return agent.connection === null && !agent.connection_id;
|
|
14699
14699
|
}
|
|
@@ -15424,9 +15424,9 @@ function skillSectionsAsResources(scope) {
|
|
|
15424
15424
|
return out;
|
|
15425
15425
|
};
|
|
15426
15426
|
}
|
|
15427
|
-
var MAX_10MB_BASE64_ENCODED_BYTES, MAX_EVAL_ATTACHMENT_ENCODED_BYTES, MAX_EVAL_ATTACHMENT_CARRIERS, MAX_EVAL_ATTACHMENT_AGGREGATE_ENCODED_BYTES, MAX_RESOURCE_ENCODED_BYTES, MAX_HUB_AS_CODE_RESOURCES, MAX_HUB_AS_CODE_RESOURCE_FILES, MAX_RESOURCE_AGGREGATE_ENCODED_BYTES, MAX_CI_CONFIG_BODY_BYTES, hubAsCodeKanbanFollowupSchema, hubAsCodeKanbanOutcomeSchema, hubAsCodeKanbanStatusSchema, hubAsCodeLaneSchema, hubAsCodePageSchema, MAX_HUB_AS_CODE_PAGE_MANIFEST_CHARS, hubAsCodePagesSchema, hubAsCodeCallOpeningSchema, hubAsCodeCallOpeningFileSchema, MAX_CALL_OPENING_CARRIERS, MAX_CALL_OPENING_AGGREGATE_ENCODED_BYTES, hubAsCodeEvaluationVariableSchema, hubAsCodeNativeToolSchema, hubAsCodeMcpToolSchema, hubAsCodeCustomToolSchema, hubAsCodeStateSchema, hubAsCodeTeamSchema, hubAsCodeResourceFileSchema, hubAsCodeResourceSchema, hubAsCodeAgentResourceSchema, hubAsCodeDelegationToolSchema, hubAsCodeAgentSchema, HUB_AS_CODE_AGENT_KEYS, HUB_AS_CODE_AGENT_TOOL_KEYS, orgAsCodeResourceFolderSchema, orgAsCodeResourceSchema, orgResourcesPayloadSchema, hubAsCodeAutomationSchema, HUB_AS_CODE_AUTOMATION_KEYS, HUB_AS_CODE_AUTOMATION_TRIGGER_KEYS, HUB_AS_CODE_AUTOMATION_TARGET_KEYS, HUB_AS_CODE_AUTOMATION_ACTION_KEYS, HUB_AS_CODE_AUTOMATION_GATE_KEYS, hubAsCodeContactListSchema, HUB_AS_CODE_CONTACT_LIST_KEYS, HUB_AS_CODE_CONTACT_LIST_FILTER_KEYS, hubAsCodeEvalMessageFields, hubAsCodeHistoryTurnSchema, hubAsCodeEvalSchema, hubAsCodeEvalAttachmentFileSchema, hubAsCodeJourneyTurnSchema, hubAsCodeJourneyStepOverrideSchema, hubAsCodeJourneySchema, uuidPattern, ciUuidSchema, flagEntriesOf, boundedHubAsCodeResourcesSchema, isPlainObject, MIN_SKILLS_LAYOUT_CLI, MAX_HUB_AS_CODE_DEPTH, NAMED_DEPTH_SEGMENTS, NAMED_DEPTH_KEY_CHARS, fieldName, hubAsCodeConfigObjectSchema, hubAsCodeConfigSchema, hubAsCodeConnectionSchema, hubAsCodePayloadSchema, ciPullHubIdParam, ciBranchParam, ciPullQuery, ciHubsQuery, ciLookupQuery, ciBranchesQuery, ciDiffDirectionSchema, ciSyncBody, ciPushBody, ciDiffBody, ciPublishBody, ciPublishPreviewBody, ciSyncMcpBody, ciOrgResourcesParam, orgResourcesConfigSchema, ciOrgResourcesPushBody, ciOrgResourcesDiffBody, ciDiffResponseSchema, ciHubIdentitySchema, ciLookupResponseSchema, ciOrganizationsResponseSchema, ciCreateOrganizationResponseSchema, ciHubListItemSchema, ciHubListResponseSchema, CI_APPLY_ENTITY_KINDS, CI_APPLY_OPERATIONS, ciApplyErrorBaseSchema, ciApplyErrorSchema, ciSyncCountSchema, ciSyncChangesSchema, ciSyncWarningSchema, ciSyncResponseSchema, ciPublishResponseSchema, ciMcpDriftEntrySchema, ciSyncMcpResponseSchema, ciPublishPreviewResponseSchema, ciBranchInfoSchema, ciBranchListResponseSchema, ciBranchDeleteResponseSchema, ciOrgResourcesPullFileSchema, ciOrgResourcesPullFolderSchema, ciOrgResourcesPullResourceSchema, ciOrgResourcesPullResponseSchema, ciOrgResourcesPushResponseSchema;
|
|
15428
|
-
var
|
|
15429
|
-
"../../packages/core/dist/chunk-
|
|
15427
|
+
var MAX_10MB_BASE64_ENCODED_BYTES, MAX_EVAL_ATTACHMENT_ENCODED_BYTES, MAX_EVAL_ATTACHMENT_CARRIERS, MAX_EVAL_ATTACHMENT_AGGREGATE_ENCODED_BYTES, MAX_RESOURCE_ENCODED_BYTES, MAX_HUB_AS_CODE_RESOURCES, MAX_HUB_AS_CODE_RESOURCE_FILES, MAX_RESOURCE_AGGREGATE_ENCODED_BYTES, MAX_CI_CONFIG_BODY_BYTES, hubAsCodeKanbanFollowupSchema, hubAsCodeKanbanOutcomeSchema, hubAsCodeKanbanStatusSchema, hubAsCodeLaneSchema, hubAsCodePageSchema, MAX_HUB_AS_CODE_PAGE_MANIFEST_CHARS, hubAsCodePagesSchema, hubAsCodeCallOpeningSchema, hubAsCodeCallOpeningFileSchema, MAX_CALL_OPENING_CARRIERS, MAX_CALL_OPENING_AGGREGATE_ENCODED_BYTES, hubAsCodeEvaluationVariableSchema, hubAsCodeNativeToolSchema, hubAsCodeMcpToolSchema, hubAsCodeCustomToolSchema, hubAsCodeStateSchema, hubAsCodeTeamSchema, hubAsCodeResourceFileSchema, hubAsCodeResourceSchema, hubAsCodeAgentResourceSchema, hubAsCodeDelegationToolSchema, hubAsCodeAgentSchema, HUB_AS_CODE_AGENT_KEYS, HUB_AS_CODE_AGENT_TOOL_KEYS, orgAsCodeResourceFolderSchema, orgAsCodeResourceSchema, orgResourcesPayloadSchema, hubAsCodeAutomationSchema, HUB_AS_CODE_AUTOMATION_KEYS, HUB_AS_CODE_AUTOMATION_TRIGGER_KEYS, HUB_AS_CODE_AUTOMATION_TARGET_KEYS, HUB_AS_CODE_AUTOMATION_ACTION_KEYS, HUB_AS_CODE_AUTOMATION_GATE_KEYS, hubAsCodeContactListSchema, HUB_AS_CODE_CONTACT_LIST_KEYS, HUB_AS_CODE_CONTACT_LIST_FILTER_KEYS, hubAsCodeEvalMessageFields, hubAsCodeHistoryTurnSchema, hubAsCodeEvalSchema, hubAsCodeEvalAttachmentFileSchema, hubAsCodeJourneyTurnSchema, hubAsCodeJourneyStepOverrideSchema, hubAsCodeJourneySchema, uuidPattern, ciUuidSchema, flagEntriesOf, boundedHubAsCodeResourcesSchema, isPlainObject, MIN_SKILLS_LAYOUT_CLI, MAX_HUB_AS_CODE_DEPTH, NAMED_DEPTH_SEGMENTS, NAMED_DEPTH_KEY_CHARS, fieldName, hubAsCodeConfigObjectSchema, hubAsCodeConfigSchema, hubAsCodeConnectionSchema, hubAsCodePayloadSchema, ciPullHubIdParam, ciBranchParam, ciPullQuery, ciHubsQuery, ciLookupQuery, ciBranchesQuery, ciDiffDirectionSchema, ciSyncBody, ciPushBody, ciDiffBody, ciPublishBody, ciPublishPreviewBody, ciSyncMcpBody, ciOrgResourcesParam, orgResourcesConfigSchema, ciOrgResourcesPushBody, ciOrgResourcesDiffBody, ciDiffHunkSectionSchema, ciDiffHunkSchema, ciDiffResponseFields, ciDiffResponseSchema, ciOrgSkillsDiffResponseSchema, ciHubIdentitySchema, ciLookupResponseSchema, ciOrganizationsResponseSchema, ciCreateOrganizationResponseSchema, ciHubListItemSchema, ciHubListResponseSchema, CI_APPLY_ENTITY_KINDS, CI_APPLY_OPERATIONS, ciApplyErrorBaseSchema, ciApplyErrorSchema, ciSyncCountSchema, ciSyncChangesSchema, ciSyncWarningSchema, ciSyncResponseSchema, ciPublishResponseSchema, ciMcpDriftEntrySchema, ciSyncMcpResponseSchema, ciPublishPreviewResponseSchema, ciBranchInfoSchema, ciBranchListResponseSchema, ciBranchDeleteResponseSchema, ciOrgResourcesPullFileSchema, ciOrgResourcesPullFolderSchema, ciOrgResourcesPullResourceSchema, ciOrgResourcesPullResponseSchema, ciOrgResourcesPushResponseSchema;
|
|
15428
|
+
var init_chunk_NGTXUA6P = __esm({
|
|
15429
|
+
"../../packages/core/dist/chunk-NGTXUA6P.js"() {
|
|
15430
15430
|
"use strict";
|
|
15431
15431
|
init_chunk_QG3XMUEN();
|
|
15432
15432
|
init_chunk_EBUWHIFV();
|
|
@@ -16367,34 +16367,69 @@ var init_chunk_JTG72ANZ = __esm({
|
|
|
16367
16367
|
config: orgResourcesConfigSchema,
|
|
16368
16368
|
direction: ciDiffDirectionSchema.default("push")
|
|
16369
16369
|
});
|
|
16370
|
-
|
|
16370
|
+
ciDiffHunkSectionSchema = external_exports.enum([
|
|
16371
|
+
"hub",
|
|
16372
|
+
"agents",
|
|
16373
|
+
"tools",
|
|
16374
|
+
"connections",
|
|
16375
|
+
"states",
|
|
16376
|
+
"teams",
|
|
16377
|
+
"skills",
|
|
16378
|
+
"skill_files",
|
|
16379
|
+
"skill_links",
|
|
16380
|
+
"evals",
|
|
16381
|
+
"journeys",
|
|
16382
|
+
"automations",
|
|
16383
|
+
"contact_lists",
|
|
16384
|
+
"pages"
|
|
16385
|
+
]);
|
|
16386
|
+
ciDiffHunkSchema = external_exports.object({
|
|
16387
|
+
section: ciDiffHunkSectionSchema,
|
|
16388
|
+
action: external_exports.enum(["create", "update", "delete"]),
|
|
16389
|
+
id: external_exports.string().nullable(),
|
|
16390
|
+
name: external_exports.string().nullable(),
|
|
16391
|
+
fields: external_exports.array(external_exports.string())
|
|
16392
|
+
});
|
|
16393
|
+
ciDiffResponseFields = {
|
|
16371
16394
|
has_changes: external_exports.boolean(),
|
|
16372
16395
|
direction: ciDiffDirectionSchema,
|
|
16373
16396
|
summary: external_exports.string(),
|
|
16374
|
-
/**
|
|
16375
|
-
* The diff engine's own result (`DiffResult` for a hub, the org skills diff for an org). A hub's
|
|
16376
|
-
* answers each stored connection in `connections.delete` with its header values hidden
|
|
16377
|
-
* (`hideConnectionValues`, wayai#6077), never as stored: the engine carries those rows whole for
|
|
16378
|
-
* apply's teardown. Not part of the contract yet: no client reads it, and its shape is the engine's.
|
|
16379
|
-
*/
|
|
16380
|
-
diff: external_exports.unknown(),
|
|
16381
16397
|
/**
|
|
16382
16398
|
* Non-fatal skip reasons surfaced by the diff engine (e.g. native/delegation
|
|
16383
16399
|
* tools dropped because their connector has no connection on the hub).
|
|
16384
16400
|
* Populated independently of `has_changes` so the CLI can display them even
|
|
16385
|
-
* when every change was silently dropped. Always present (possibly empty)
|
|
16386
|
-
*
|
|
16401
|
+
* when every change was silently dropped. Always present (possibly empty);
|
|
16402
|
+
* the org skills diff reports none today. See gh #1538.
|
|
16403
|
+
*/
|
|
16404
|
+
warnings: external_exports.array(external_exports.string())
|
|
16405
|
+
};
|
|
16406
|
+
ciDiffResponseSchema = external_exports.object({
|
|
16407
|
+
...ciDiffResponseFields,
|
|
16408
|
+
/**
|
|
16409
|
+
* What the hub diff lists (`buildDiffHunks`), never the engine's own result, which keeps stored
|
|
16410
|
+
* rows for apply. `rejections` are the entries a push refuses; both they and `warnings` are also in
|
|
16411
|
+
* the answer's own `warnings`. An older backend (before wayai#6209 PR 6) answered the engine's
|
|
16412
|
+
* result here: no client reads it.
|
|
16387
16413
|
*/
|
|
16388
|
-
|
|
16414
|
+
diff: external_exports.object({
|
|
16415
|
+
warnings: external_exports.array(external_exports.string()),
|
|
16416
|
+
rejections: external_exports.array(external_exports.string()),
|
|
16417
|
+
hunks: external_exports.array(ciDiffHunkSchema)
|
|
16418
|
+
}),
|
|
16389
16419
|
/**
|
|
16390
16420
|
* The hub's current server-owned `preview_label`. Surfaced so the CLI can warn
|
|
16391
16421
|
* when a hand-edited `hub.yaml` label differs from the server — the diff engine
|
|
16392
16422
|
* ignores `preview_label` (it's set via `wayai relabel`/replicate, not push), so
|
|
16393
16423
|
* without this the silent no-op is invisible. Optional for back-compat with
|
|
16394
|
-
* older backends
|
|
16424
|
+
* older backends. See gh hub-branching.
|
|
16395
16425
|
*/
|
|
16396
16426
|
preview_label: external_exports.string().nullable().optional()
|
|
16397
16427
|
});
|
|
16428
|
+
ciOrgSkillsDiffResponseSchema = external_exports.object({
|
|
16429
|
+
...ciDiffResponseFields,
|
|
16430
|
+
/** The org skills diff engine's own result. Not part of the contract yet: no client reads it. */
|
|
16431
|
+
diff: external_exports.unknown()
|
|
16432
|
+
});
|
|
16398
16433
|
ciHubIdentitySchema = external_exports.object({
|
|
16399
16434
|
hub_id: external_exports.string().min(1),
|
|
16400
16435
|
hub_name: external_exports.string(),
|
|
@@ -17413,7 +17448,7 @@ var init_chunk_JFD3FZM6 = __esm({
|
|
|
17413
17448
|
}
|
|
17414
17449
|
});
|
|
17415
17450
|
|
|
17416
|
-
// ../../packages/core/dist/chunk-
|
|
17451
|
+
// ../../packages/core/dist/chunk-TTU7ALAB.js
|
|
17417
17452
|
function openCaseProblem(body) {
|
|
17418
17453
|
const pairs = /* @__PURE__ */ new Set();
|
|
17419
17454
|
for (const [index, party] of body.parties.entries()) {
|
|
@@ -17426,8 +17461,8 @@ ${party.role}`;
|
|
|
17426
17461
|
return null;
|
|
17427
17462
|
}
|
|
17428
17463
|
var CASE_RECORD_CODE_PATTERN, CASE_RECORD_CODE_MAX_LENGTH, CASE_RECORD_PARTIES_MAX, CASE_RECORD_INSTRUMENTS_MAX, CASE_RECORD_ROLE_MAX_LENGTH, CASE_RECORDS_PAGE_MAX, CASE_RECORDS_QUERY_MAX_LENGTH, caseRecordPartySchema, openCaseShape, openCaseBody, previewOpenCaseShape, caseRecordParam, CASE_RECORD_STATUSES, caseRecordsQuery, CASE_STATE_SUMMARIES_MAX, caseStatesQuery, CASE_CLOSED_REASON, CASE_CLOSURE_REASON_MAX_LENGTH, closeCaseBody, setCaseConfidentialityBody;
|
|
17429
|
-
var
|
|
17430
|
-
"../../packages/core/dist/chunk-
|
|
17464
|
+
var init_chunk_TTU7ALAB = __esm({
|
|
17465
|
+
"../../packages/core/dist/chunk-TTU7ALAB.js"() {
|
|
17431
17466
|
"use strict";
|
|
17432
17467
|
init_chunk_JFD3FZM6();
|
|
17433
17468
|
init_chunk_CLGTGGVN();
|
|
@@ -17490,14 +17525,14 @@ var init_chunk_YFUYMQR2 = __esm({
|
|
|
17490
17525
|
}
|
|
17491
17526
|
});
|
|
17492
17527
|
|
|
17493
|
-
// ../../packages/core/dist/chunk-
|
|
17528
|
+
// ../../packages/core/dist/chunk-YGME23PO.js
|
|
17494
17529
|
var CASE_OFFICIAL_FILE_KINDS, CASE_OFFICIAL_FILE_NAME_PATTERN, publishCaseSubmissionBody, caseOfficialVersionParam, caseOfficialFileQuery;
|
|
17495
|
-
var
|
|
17496
|
-
"../../packages/core/dist/chunk-
|
|
17530
|
+
var init_chunk_YGME23PO = __esm({
|
|
17531
|
+
"../../packages/core/dist/chunk-YGME23PO.js"() {
|
|
17497
17532
|
"use strict";
|
|
17498
17533
|
init_chunk_YR7QALGP();
|
|
17499
17534
|
init_chunk_MQQRYOE6();
|
|
17500
|
-
|
|
17535
|
+
init_chunk_TTU7ALAB();
|
|
17501
17536
|
init_chunk_HZ6CADSY();
|
|
17502
17537
|
init_zod();
|
|
17503
17538
|
CASE_OFFICIAL_FILE_KINDS = [...CASE_SUBMISSION_ISSUED_KINDS, "file"];
|
|
@@ -17511,21 +17546,21 @@ var init_chunk_72TNUJVF = __esm({
|
|
|
17511
17546
|
}
|
|
17512
17547
|
});
|
|
17513
17548
|
|
|
17514
|
-
// ../../packages/core/dist/chunk-
|
|
17549
|
+
// ../../packages/core/dist/chunk-LG4SQGZ7.js
|
|
17515
17550
|
var casePhaseParam;
|
|
17516
|
-
var
|
|
17517
|
-
"../../packages/core/dist/chunk-
|
|
17551
|
+
var init_chunk_LG4SQGZ7 = __esm({
|
|
17552
|
+
"../../packages/core/dist/chunk-LG4SQGZ7.js"() {
|
|
17518
17553
|
"use strict";
|
|
17519
|
-
|
|
17554
|
+
init_chunk_TTU7ALAB();
|
|
17520
17555
|
init_chunk_HZ6CADSY();
|
|
17521
17556
|
casePhaseParam = caseRecordParam.extend({ phase_id: uuidSchema });
|
|
17522
17557
|
}
|
|
17523
17558
|
});
|
|
17524
17559
|
|
|
17525
|
-
// ../../packages/core/dist/chunk-
|
|
17560
|
+
// ../../packages/core/dist/chunk-64HCHXKB.js
|
|
17526
17561
|
var CASE_CHECK_CSV_MAX_BYTES, CASE_DECISIONS_CSV_PATH, CASE_CONFIDENTIAL_DECISIONS_CSV_PATH, caseChecksQuery;
|
|
17527
|
-
var
|
|
17528
|
-
"../../packages/core/dist/chunk-
|
|
17562
|
+
var init_chunk_64HCHXKB = __esm({
|
|
17563
|
+
"../../packages/core/dist/chunk-64HCHXKB.js"() {
|
|
17529
17564
|
"use strict";
|
|
17530
17565
|
init_chunk_YR7QALGP();
|
|
17531
17566
|
init_chunk_HZ6CADSY();
|
|
@@ -17539,17 +17574,17 @@ var init_chunk_K6O2P77D = __esm({
|
|
|
17539
17574
|
}
|
|
17540
17575
|
});
|
|
17541
17576
|
|
|
17542
|
-
// ../../packages/core/dist/chunk-
|
|
17577
|
+
// ../../packages/core/dist/chunk-2EEAAVZY.js
|
|
17543
17578
|
var CASE_REVIEW_DECISIONS, CASE_ISSUED_FORMATS, CASE_REVIEW_COMMENT_MAX_LENGTH, CASE_REVIEW_JUSTIFICATION_MAX_LENGTH, text2, caseSubmissionParam, decideCaseSubmissionBody, caseIssuedQuery, CASE_APPROVALS_STATES, caseApprovalsQuery, caseCompareDefaultQuery, caseApprovalsAgendaQuery;
|
|
17544
|
-
var
|
|
17545
|
-
"../../packages/core/dist/chunk-
|
|
17579
|
+
var init_chunk_2EEAAVZY = __esm({
|
|
17580
|
+
"../../packages/core/dist/chunk-2EEAAVZY.js"() {
|
|
17546
17581
|
"use strict";
|
|
17547
|
-
|
|
17548
|
-
|
|
17549
|
-
|
|
17582
|
+
init_chunk_YGME23PO();
|
|
17583
|
+
init_chunk_LG4SQGZ7();
|
|
17584
|
+
init_chunk_64HCHXKB();
|
|
17550
17585
|
init_chunk_YR7QALGP();
|
|
17551
17586
|
init_chunk_MQQRYOE6();
|
|
17552
|
-
|
|
17587
|
+
init_chunk_TTU7ALAB();
|
|
17553
17588
|
init_chunk_CLGTGGVN();
|
|
17554
17589
|
init_chunk_HZ6CADSY();
|
|
17555
17590
|
init_zod();
|
|
@@ -17586,20 +17621,20 @@ var init_chunk_NUJ5GZHA = __esm({
|
|
|
17586
17621
|
}
|
|
17587
17622
|
});
|
|
17588
17623
|
|
|
17589
|
-
// ../../packages/core/dist/chunk-
|
|
17624
|
+
// ../../packages/core/dist/chunk-2WVZOVEF.js
|
|
17590
17625
|
var NEVER2;
|
|
17591
|
-
var
|
|
17592
|
-
"../../packages/core/dist/chunk-
|
|
17626
|
+
var init_chunk_2WVZOVEF = __esm({
|
|
17627
|
+
"../../packages/core/dist/chunk-2WVZOVEF.js"() {
|
|
17593
17628
|
"use strict";
|
|
17594
17629
|
init_chunk_MIWZOSPI();
|
|
17595
17630
|
NEVER2 = Number.POSITIVE_INFINITY;
|
|
17596
17631
|
}
|
|
17597
17632
|
});
|
|
17598
17633
|
|
|
17599
|
-
// ../../packages/core/dist/chunk-
|
|
17634
|
+
// ../../packages/core/dist/chunk-ME7AKVSP.js
|
|
17600
17635
|
var caseTeamPreviewBody;
|
|
17601
|
-
var
|
|
17602
|
-
"../../packages/core/dist/chunk-
|
|
17636
|
+
var init_chunk_ME7AKVSP = __esm({
|
|
17637
|
+
"../../packages/core/dist/chunk-ME7AKVSP.js"() {
|
|
17603
17638
|
"use strict";
|
|
17604
17639
|
init_chunk_CLGTGGVN();
|
|
17605
17640
|
init_chunk_HZ6CADSY();
|
|
@@ -17623,12 +17658,12 @@ var init_chunk_KY3ZNL3E = __esm({
|
|
|
17623
17658
|
}
|
|
17624
17659
|
});
|
|
17625
17660
|
|
|
17626
|
-
// ../../packages/core/dist/chunk-
|
|
17661
|
+
// ../../packages/core/dist/chunk-SV6MGXTC.js
|
|
17627
17662
|
var CASE_RELATION_TYPE_CODE_PATTERN, CASE_RELATION_TYPE_CODE_MAX_LENGTH, CASE_RELATION_TYPE_NAME_MAX_LENGTH, CASE_RELATION_TYPES_PER_SPACE_MAX, CASE_RELATION_DESCRIPTION_MAX_LENGTH, CASE_RELATION_SIDES, CASE_EXTERNAL_SYSTEM_PATTERN, CASE_EXTERNAL_NUMBER_MAX_LENGTH, CASE_EXTERNAL_URL_MAX_LENGTH, trimmedName, relationTypeFields, createCaseRelationTypeBody, updateCaseRelationTypeBody, relateCasesBody, addCaseExternalReferenceBody, caseRelationTypeParam, caseRelationParam, caseExternalReferenceParam, caseRelationTypesQuery;
|
|
17628
|
-
var
|
|
17629
|
-
"../../packages/core/dist/chunk-
|
|
17663
|
+
var init_chunk_SV6MGXTC = __esm({
|
|
17664
|
+
"../../packages/core/dist/chunk-SV6MGXTC.js"() {
|
|
17630
17665
|
"use strict";
|
|
17631
|
-
|
|
17666
|
+
init_chunk_TTU7ALAB();
|
|
17632
17667
|
init_chunk_CLGTGGVN();
|
|
17633
17668
|
init_chunk_HZ6CADSY();
|
|
17634
17669
|
init_zod();
|
|
@@ -17669,15 +17704,15 @@ var init_chunk_4Y76ZGBB = __esm({
|
|
|
17669
17704
|
}
|
|
17670
17705
|
});
|
|
17671
17706
|
|
|
17672
|
-
// ../../packages/core/dist/chunk-
|
|
17707
|
+
// ../../packages/core/dist/chunk-OVA6IXHU.js
|
|
17673
17708
|
var CASE_CHANGE_TOPICS, caseChangedFrameSchema;
|
|
17674
|
-
var
|
|
17675
|
-
"../../packages/core/dist/chunk-
|
|
17709
|
+
var init_chunk_OVA6IXHU = __esm({
|
|
17710
|
+
"../../packages/core/dist/chunk-OVA6IXHU.js"() {
|
|
17676
17711
|
"use strict";
|
|
17677
|
-
|
|
17712
|
+
init_chunk_TTU7ALAB();
|
|
17678
17713
|
init_chunk_HZ6CADSY();
|
|
17679
17714
|
init_zod();
|
|
17680
|
-
CASE_CHANGE_TOPICS = ["submission", "agenda", "access"];
|
|
17715
|
+
CASE_CHANGE_TOPICS = ["submission", "agenda", "review", "access"];
|
|
17681
17716
|
caseChangedFrameSchema = external_exports.object({
|
|
17682
17717
|
org_id: uuidSchema,
|
|
17683
17718
|
space_id: uuidSchema,
|
|
@@ -17688,10 +17723,10 @@ var init_chunk_SC6HGQ5X = __esm({
|
|
|
17688
17723
|
}
|
|
17689
17724
|
});
|
|
17690
17725
|
|
|
17691
|
-
// ../../packages/core/dist/chunk-
|
|
17726
|
+
// ../../packages/core/dist/chunk-PSY4BJ7E.js
|
|
17692
17727
|
var CASE_MEMBER_CASES_PAGE_MAX, caseMemberReachQuery;
|
|
17693
|
-
var
|
|
17694
|
-
"../../packages/core/dist/chunk-
|
|
17728
|
+
var init_chunk_PSY4BJ7E = __esm({
|
|
17729
|
+
"../../packages/core/dist/chunk-PSY4BJ7E.js"() {
|
|
17695
17730
|
"use strict";
|
|
17696
17731
|
init_chunk_CLGTGGVN();
|
|
17697
17732
|
init_zod();
|
|
@@ -17967,7 +18002,7 @@ var init_chunk_7Y3IO67N = __esm({
|
|
|
17967
18002
|
}
|
|
17968
18003
|
});
|
|
17969
18004
|
|
|
17970
|
-
// ../../packages/core/dist/chunk-
|
|
18005
|
+
// ../../packages/core/dist/chunk-XWNCFIBI.js
|
|
17971
18006
|
function caseReceivedFormat(fileName) {
|
|
17972
18007
|
const dot = fileName.lastIndexOf(".");
|
|
17973
18008
|
if (dot < 0) return null;
|
|
@@ -17975,13 +18010,13 @@ function caseReceivedFormat(fileName) {
|
|
|
17975
18010
|
return isCaseReceivedFormat(extension) ? extension : null;
|
|
17976
18011
|
}
|
|
17977
18012
|
var ZIP_SIGNATURE, CASE_RECEIVED_FORMATS, isCaseReceivedFormat, CASE_RECEIVED_PARTS, CASE_RECEIVED_TITLE_MAX_LENGTH, CASE_RECEIVED_TYPE_MAX_LENGTH, CASE_RECEIVED_TEXT_MAX_BYTES, CASE_RECEIVED_UPLOAD_BODY_MAX_BYTES, CASE_RECEIVED_DOCUMENT_FIELD, caseReceivedParam, registerCaseReceivedDocumentShape, caseReceivedUploadForm, caseReceivedFileName, ZIP_DIRECTORY_MAX_BYTES, CONTENT_TYPES_MAX_BYTES, CONTENT_TYPES_INFLATED_MAX_BYTES, CASE_RECEIVED_PAGE_MAX, caseReceivedQuery, caseReceivedContentQuery;
|
|
17978
|
-
var
|
|
17979
|
-
"../../packages/core/dist/chunk-
|
|
18013
|
+
var init_chunk_XWNCFIBI = __esm({
|
|
18014
|
+
"../../packages/core/dist/chunk-XWNCFIBI.js"() {
|
|
17980
18015
|
"use strict";
|
|
17981
18016
|
init_chunk_7Y3IO67N();
|
|
17982
18017
|
init_chunk_A5TJEV6T();
|
|
17983
18018
|
init_chunk_MQQRYOE6();
|
|
17984
|
-
|
|
18019
|
+
init_chunk_TTU7ALAB();
|
|
17985
18020
|
init_chunk_CLGTGGVN();
|
|
17986
18021
|
init_chunk_HZ6CADSY();
|
|
17987
18022
|
init_zod();
|
|
@@ -18056,15 +18091,15 @@ var init_chunk_TRBCWOW2 = __esm({
|
|
|
18056
18091
|
}
|
|
18057
18092
|
});
|
|
18058
18093
|
|
|
18059
|
-
// ../../packages/core/dist/chunk-
|
|
18094
|
+
// ../../packages/core/dist/chunk-PWTCQOWP.js
|
|
18060
18095
|
function addCaseNoteProblem(note) {
|
|
18061
18096
|
return note.origin !== null && note.kind !== "contribution" ? { reason: "origin_not_contribution", at: "origin" } : null;
|
|
18062
18097
|
}
|
|
18063
18098
|
var CASE_NOTE_KINDS, CASE_NOTE_TEXT_MAX_LENGTH, CASE_NOTE_ORIGIN_MAX_LENGTH, CASE_NOTES_PAGE_MAX, addCaseNoteShape, addCaseNoteBody, caseNoteParam, caseTaskParam, caseNotesQuery;
|
|
18064
|
-
var
|
|
18065
|
-
"../../packages/core/dist/chunk-
|
|
18099
|
+
var init_chunk_PWTCQOWP = __esm({
|
|
18100
|
+
"../../packages/core/dist/chunk-PWTCQOWP.js"() {
|
|
18066
18101
|
"use strict";
|
|
18067
|
-
|
|
18102
|
+
init_chunk_TTU7ALAB();
|
|
18068
18103
|
init_chunk_CLGTGGVN();
|
|
18069
18104
|
init_chunk_HZ6CADSY();
|
|
18070
18105
|
init_zod();
|
|
@@ -18094,17 +18129,17 @@ var init_chunk_6GSDWCB5 = __esm({
|
|
|
18094
18129
|
}
|
|
18095
18130
|
});
|
|
18096
18131
|
|
|
18097
|
-
// ../../packages/core/dist/chunk-
|
|
18132
|
+
// ../../packages/core/dist/chunk-HMKIKIPB.js
|
|
18098
18133
|
function casePassageLines(text5) {
|
|
18099
18134
|
const lines2 = text5.replace(/\r\n/g, "\n").split("\n");
|
|
18100
18135
|
if (lines2.at(-1) === "") lines2.pop();
|
|
18101
18136
|
return lines2;
|
|
18102
18137
|
}
|
|
18103
18138
|
var CASE_COMMENT_TEXT_MAX_LENGTH, CASE_COMMENTS_PAGE_MAX, CASE_COMMENT_LINE_MAX, casePassageLineSchema, lineNumber, addCaseCommentShape, CASE_COMMENT_REVERSED_REASON, addCaseCommentBody, caseCommentsQuery, CASE_COMMENT_OUT_OF_RANGE_REASON, CASE_COMMENT_NOT_TEXT_REASON, CASE_COMMENT_DOCUMENT_TOO_LARGE_REASON;
|
|
18104
|
-
var
|
|
18105
|
-
"../../packages/core/dist/chunk-
|
|
18139
|
+
var init_chunk_HMKIKIPB = __esm({
|
|
18140
|
+
"../../packages/core/dist/chunk-HMKIKIPB.js"() {
|
|
18106
18141
|
"use strict";
|
|
18107
|
-
|
|
18142
|
+
init_chunk_PWTCQOWP();
|
|
18108
18143
|
init_chunk_MQQRYOE6();
|
|
18109
18144
|
init_chunk_CLGTGGVN();
|
|
18110
18145
|
init_chunk_HZ6CADSY();
|
|
@@ -18143,12 +18178,12 @@ var init_chunk_27IZMIGG = __esm({
|
|
|
18143
18178
|
}
|
|
18144
18179
|
});
|
|
18145
18180
|
|
|
18146
|
-
// ../../packages/core/dist/chunk-
|
|
18181
|
+
// ../../packages/core/dist/chunk-2HZWFYN3.js
|
|
18147
18182
|
var CASE_VERSION_DECISION_REASON_MAX_LENGTH, CASE_VERSION_DECISIONS, caseVersionDecisionReason, reason, lineNumber2, recordCaseReferenceBody, CASE_PASSAGE_REVERSED_REASON, citeCasePassageBody, decideCaseVersionBody, CASE_PASSAGE_LINK_REQUIRED_REASON, CASE_PASSAGE_LINK_CHANGED_REASON, CASE_PASSAGE_NO_TEXT_REASON, CASE_PASSAGE_TEXT_TOO_LARGE_REASON, CASE_PASSAGE_NOT_TEXT_REASON, CASE_PASSAGE_OUT_OF_RANGE_REASON;
|
|
18148
|
-
var
|
|
18149
|
-
"../../packages/core/dist/chunk-
|
|
18183
|
+
var init_chunk_2HZWFYN3 = __esm({
|
|
18184
|
+
"../../packages/core/dist/chunk-2HZWFYN3.js"() {
|
|
18150
18185
|
"use strict";
|
|
18151
|
-
|
|
18186
|
+
init_chunk_HMKIKIPB();
|
|
18152
18187
|
init_chunk_HZ6CADSY();
|
|
18153
18188
|
init_zod();
|
|
18154
18189
|
CASE_VERSION_DECISION_REASON_MAX_LENGTH = 2e3;
|
|
@@ -18187,14 +18222,14 @@ var init_chunk_JAR3LH7D = __esm({
|
|
|
18187
18222
|
}
|
|
18188
18223
|
});
|
|
18189
18224
|
|
|
18190
|
-
// ../../packages/core/dist/chunk-
|
|
18225
|
+
// ../../packages/core/dist/chunk-PZKAEHPU.js
|
|
18191
18226
|
var caseInputLinkParam, caseCollectionDocumentOfCaseParam, linkCaseCollectionInputBody, linkCasePreviousOutputInputBody, linkCaseReceivedInputBody, linkCaseInputBody, CASE_LINK_OFFICIAL_VERSION_UNKNOWN_REASON, CASE_LINK_OUTPUT_NOT_PRIOR_REASON, CASE_LINK_RECEIVED_UNKNOWN_REASON, CASE_LINK_DOCUMENT_TYPE_MISMATCH_REASON, CASE_LINK_VERSION_NOT_CURRENT_REASON, CASE_COLLECTION_CASES_PAGE_MAX, caseCollectionCasesQuery, CASE_REFERENCES_PAGE_MAX, caseReferencesQuery;
|
|
18192
|
-
var
|
|
18193
|
-
"../../packages/core/dist/chunk-
|
|
18227
|
+
var init_chunk_PZKAEHPU = __esm({
|
|
18228
|
+
"../../packages/core/dist/chunk-PZKAEHPU.js"() {
|
|
18194
18229
|
"use strict";
|
|
18195
18230
|
init_chunk_7Y3IO67N();
|
|
18196
|
-
|
|
18197
|
-
|
|
18231
|
+
init_chunk_2HZWFYN3();
|
|
18232
|
+
init_chunk_TTU7ALAB();
|
|
18198
18233
|
init_chunk_CLGTGGVN();
|
|
18199
18234
|
init_chunk_HZ6CADSY();
|
|
18200
18235
|
init_zod();
|
|
@@ -18207,7 +18242,11 @@ var init_chunk_N4CTQNZE = __esm({
|
|
|
18207
18242
|
/** Why an earlier version is kept: a version decision. Unread when `version_id` is the current one. */
|
|
18208
18243
|
reason: caseVersionDecisionReason.optional()
|
|
18209
18244
|
}).strict();
|
|
18210
|
-
linkCasePreviousOutputInputBody = external_exports.object({
|
|
18245
|
+
linkCasePreviousOutputInputBody = external_exports.object({
|
|
18246
|
+
official_version_id: uuidSchema,
|
|
18247
|
+
/** Why an earlier version is kept: a version decision. Unread when `official_version_id` is the current one. */
|
|
18248
|
+
reason: caseVersionDecisionReason.optional()
|
|
18249
|
+
}).strict();
|
|
18211
18250
|
linkCaseReceivedInputBody = external_exports.object({ received_id: uuidSchema }).strict();
|
|
18212
18251
|
linkCaseInputBody = external_exports.union([linkCaseCollectionInputBody, linkCasePreviousOutputInputBody, linkCaseReceivedInputBody]);
|
|
18213
18252
|
CASE_LINK_OFFICIAL_VERSION_UNKNOWN_REASON = "official_version_unknown";
|
|
@@ -18226,7 +18265,7 @@ var init_chunk_N4CTQNZE = __esm({
|
|
|
18226
18265
|
}
|
|
18227
18266
|
});
|
|
18228
18267
|
|
|
18229
|
-
// ../../packages/core/dist/chunk-
|
|
18268
|
+
// ../../packages/core/dist/chunk-4GJFEMVI.js
|
|
18230
18269
|
function isCaseDueDate(value) {
|
|
18231
18270
|
const match = /^(\d{4})-(\d{2})-(\d{2})$/.exec(value);
|
|
18232
18271
|
if (!match) return false;
|
|
@@ -18244,8 +18283,8 @@ function setCaseDeadlinesProblem(body) {
|
|
|
18244
18283
|
return null;
|
|
18245
18284
|
}
|
|
18246
18285
|
var CASE_DUE_DATE_MIN_YEAR, CASE_DUE_DATE_MAX_YEAR, CASE_DEADLINES_PHASES_MAX, CASE_OVERDUE_CASES_MAX, caseDueDateSchema, setCaseDeadlinesShape, setCaseDeadlinesBody, setCaseTaskPlanBody, setCaseOwnerBody, caseOverdueQuery;
|
|
18247
|
-
var
|
|
18248
|
-
"../../packages/core/dist/chunk-
|
|
18286
|
+
var init_chunk_4GJFEMVI = __esm({
|
|
18287
|
+
"../../packages/core/dist/chunk-4GJFEMVI.js"() {
|
|
18249
18288
|
"use strict";
|
|
18250
18289
|
init_chunk_CLGTGGVN();
|
|
18251
18290
|
init_chunk_HZ6CADSY();
|
|
@@ -18298,13 +18337,13 @@ var init_chunk_26PIYACX = __esm({
|
|
|
18298
18337
|
}
|
|
18299
18338
|
});
|
|
18300
18339
|
|
|
18301
|
-
// ../../packages/core/dist/chunk-
|
|
18340
|
+
// ../../packages/core/dist/chunk-QOD3ZVM7.js
|
|
18302
18341
|
var lines, ordered, citeCaseOfficialVersionPassageBody, citeCaseReceivedPassageBody, citeCaseSourcePassageBody, citeCaseInputPassageBody, caseSourceRefSchema;
|
|
18303
|
-
var
|
|
18304
|
-
"../../packages/core/dist/chunk-
|
|
18342
|
+
var init_chunk_QOD3ZVM7 = __esm({
|
|
18343
|
+
"../../packages/core/dist/chunk-QOD3ZVM7.js"() {
|
|
18305
18344
|
"use strict";
|
|
18306
|
-
|
|
18307
|
-
|
|
18345
|
+
init_chunk_2HZWFYN3();
|
|
18346
|
+
init_chunk_HMKIKIPB();
|
|
18308
18347
|
init_chunk_HZ6CADSY();
|
|
18309
18348
|
init_zod();
|
|
18310
18349
|
lines = { line_start: casePassageLineSchema, line_end: casePassageLineSchema };
|
|
@@ -18322,10 +18361,10 @@ var init_chunk_NCOSWD3P = __esm({
|
|
|
18322
18361
|
}
|
|
18323
18362
|
});
|
|
18324
18363
|
|
|
18325
|
-
// ../../packages/core/dist/chunk-
|
|
18364
|
+
// ../../packages/core/dist/chunk-GCPFVAXX.js
|
|
18326
18365
|
var caseAccessQuery;
|
|
18327
|
-
var
|
|
18328
|
-
"../../packages/core/dist/chunk-
|
|
18366
|
+
var init_chunk_GCPFVAXX = __esm({
|
|
18367
|
+
"../../packages/core/dist/chunk-GCPFVAXX.js"() {
|
|
18329
18368
|
"use strict";
|
|
18330
18369
|
init_chunk_HZ6CADSY();
|
|
18331
18370
|
init_zod();
|
|
@@ -18369,12 +18408,12 @@ var init_chunk_6TYCOJ5O = __esm({
|
|
|
18369
18408
|
}
|
|
18370
18409
|
});
|
|
18371
18410
|
|
|
18372
|
-
// ../../packages/core/dist/chunk-
|
|
18411
|
+
// ../../packages/core/dist/chunk-ANE4VJRG.js
|
|
18373
18412
|
var CASE_AGENDA_VALUE_MAX_LENGTH, CASE_AGENDA_JUSTIFICATION_MAX_LENGTH, CASE_AGENDA_EVIDENCE_MAX_LENGTH, CASE_AGENDA_COMMENT_MAX_LENGTH, CASE_AGENDA_VERDICTS, comment, caseAgendaGroupParam, caseAgendaDecisionParam, caseAgendaQuery, caseApprovedDecisionsQuery, proposeCaseAgendaValueBody, decideCaseAgendaBody, dispenseCaseAgendaBody, addCaseDecisionBody;
|
|
18374
|
-
var
|
|
18375
|
-
"../../packages/core/dist/chunk-
|
|
18413
|
+
var init_chunk_ANE4VJRG = __esm({
|
|
18414
|
+
"../../packages/core/dist/chunk-ANE4VJRG.js"() {
|
|
18376
18415
|
"use strict";
|
|
18377
|
-
|
|
18416
|
+
init_chunk_TTU7ALAB();
|
|
18378
18417
|
init_chunk_JFD3FZM6();
|
|
18379
18418
|
init_chunk_CLGTGGVN();
|
|
18380
18419
|
init_chunk_M2T55BV6();
|
|
@@ -19546,34 +19585,34 @@ var init_contracts = __esm({
|
|
|
19546
19585
|
init_chunk_X4IDZLLS();
|
|
19547
19586
|
init_chunk_7CYHPF35();
|
|
19548
19587
|
init_chunk_NETRUHZF();
|
|
19549
|
-
|
|
19588
|
+
init_chunk_NGTXUA6P();
|
|
19550
19589
|
init_chunk_QG3XMUEN();
|
|
19551
19590
|
init_chunk_EBUWHIFV();
|
|
19552
19591
|
init_chunk_5YZ3R7KF();
|
|
19553
19592
|
init_chunk_2YEGUQR7();
|
|
19554
19593
|
init_chunk_AHISKXHA();
|
|
19555
|
-
|
|
19556
|
-
|
|
19557
|
-
|
|
19594
|
+
init_chunk_2EEAAVZY();
|
|
19595
|
+
init_chunk_2WVZOVEF();
|
|
19596
|
+
init_chunk_ME7AKVSP();
|
|
19558
19597
|
init_chunk_KY3ZNL3E();
|
|
19559
|
-
|
|
19560
|
-
|
|
19561
|
-
|
|
19562
|
-
|
|
19563
|
-
|
|
19564
|
-
|
|
19565
|
-
|
|
19598
|
+
init_chunk_SV6MGXTC();
|
|
19599
|
+
init_chunk_OVA6IXHU();
|
|
19600
|
+
init_chunk_PSY4BJ7E();
|
|
19601
|
+
init_chunk_YGME23PO();
|
|
19602
|
+
init_chunk_LG4SQGZ7();
|
|
19603
|
+
init_chunk_XWNCFIBI();
|
|
19604
|
+
init_chunk_PZKAEHPU();
|
|
19566
19605
|
init_chunk_7Y3IO67N();
|
|
19567
19606
|
init_chunk_3SZD2H6D();
|
|
19568
19607
|
init_chunk_A5TJEV6T();
|
|
19569
|
-
|
|
19608
|
+
init_chunk_4GJFEMVI();
|
|
19570
19609
|
init_chunk_26PIYACX();
|
|
19571
|
-
|
|
19610
|
+
init_chunk_QOD3ZVM7();
|
|
19572
19611
|
init_chunk_5PKKFSSF();
|
|
19573
|
-
|
|
19612
|
+
init_chunk_GCPFVAXX();
|
|
19574
19613
|
init_chunk_6TYCOJ5O();
|
|
19575
|
-
|
|
19576
|
-
|
|
19614
|
+
init_chunk_ANE4VJRG();
|
|
19615
|
+
init_chunk_2HZWFYN3();
|
|
19577
19616
|
init_chunk_UEJOG2Q7();
|
|
19578
19617
|
init_chunk_KEN2DASI();
|
|
19579
19618
|
init_chunk_JQRL355P();
|
|
@@ -19617,12 +19656,12 @@ var init_contracts = __esm({
|
|
|
19617
19656
|
init_chunk_MIWZOSPI();
|
|
19618
19657
|
init_chunk_2ISUBJG7();
|
|
19619
19658
|
init_chunk_C2UEA2KW();
|
|
19620
|
-
|
|
19659
|
+
init_chunk_64HCHXKB();
|
|
19621
19660
|
init_chunk_YR7QALGP();
|
|
19622
|
-
|
|
19623
|
-
|
|
19661
|
+
init_chunk_HMKIKIPB();
|
|
19662
|
+
init_chunk_PWTCQOWP();
|
|
19624
19663
|
init_chunk_MQQRYOE6();
|
|
19625
|
-
|
|
19664
|
+
init_chunk_TTU7ALAB();
|
|
19626
19665
|
init_chunk_JFD3FZM6();
|
|
19627
19666
|
init_chunk_KWRHZBGU();
|
|
19628
19667
|
init_chunk_CLGTGGVN();
|
|
@@ -21507,12 +21546,12 @@ var init_case_type_drafts = __esm({
|
|
|
21507
21546
|
var init_case_received_documents = __esm({
|
|
21508
21547
|
"../../packages/core/dist/contracts/case-received-documents.js"() {
|
|
21509
21548
|
"use strict";
|
|
21510
|
-
|
|
21549
|
+
init_chunk_XWNCFIBI();
|
|
21511
21550
|
init_chunk_7Y3IO67N();
|
|
21512
21551
|
init_chunk_3SZD2H6D();
|
|
21513
21552
|
init_chunk_A5TJEV6T();
|
|
21514
21553
|
init_chunk_MQQRYOE6();
|
|
21515
|
-
|
|
21554
|
+
init_chunk_TTU7ALAB();
|
|
21516
21555
|
init_chunk_JFD3FZM6();
|
|
21517
21556
|
init_chunk_KWRHZBGU();
|
|
21518
21557
|
init_chunk_CLGTGGVN();
|
|
@@ -26404,7 +26443,7 @@ var init_hub_materializer = __esm({
|
|
|
26404
26443
|
var init_ci = __esm({
|
|
26405
26444
|
"../../packages/core/dist/contracts/ci.js"() {
|
|
26406
26445
|
"use strict";
|
|
26407
|
-
|
|
26446
|
+
init_chunk_NGTXUA6P();
|
|
26408
26447
|
init_chunk_QG3XMUEN();
|
|
26409
26448
|
init_chunk_EBUWHIFV();
|
|
26410
26449
|
init_chunk_5YZ3R7KF();
|
|
@@ -34558,7 +34597,6 @@ var init_push = __esm({
|
|
|
34558
34597
|
// src/commands/pull.ts
|
|
34559
34598
|
var pull_exports = {};
|
|
34560
34599
|
__export(pull_exports, {
|
|
34561
|
-
connectionsEqual: () => connectionsEqual,
|
|
34562
34600
|
pullCommand: () => pullCommand2,
|
|
34563
34601
|
resolveHubTarget: () => resolveHubTarget,
|
|
34564
34602
|
writeProductionMirror: () => writeProductionMirror2
|
|
@@ -34680,14 +34718,10 @@ async function pullCommand2(args2) {
|
|
|
34680
34718
|
}
|
|
34681
34719
|
if (localPayload && diffResult) {
|
|
34682
34720
|
printWarnings(diffResult.warnings);
|
|
34683
|
-
|
|
34684
|
-
if (!diffResult.has_changes && !connectionsChanged) {
|
|
34721
|
+
if (!diffResult.has_changes) {
|
|
34685
34722
|
action = "sync_metadata";
|
|
34686
34723
|
} else {
|
|
34687
34724
|
console.log("\nChanges to apply locally:");
|
|
34688
|
-
if (connectionsChanged) {
|
|
34689
|
-
console.log("**Connections:** updated");
|
|
34690
|
-
}
|
|
34691
34725
|
printDiff(diffResult.summary);
|
|
34692
34726
|
if (!autoConfirm) {
|
|
34693
34727
|
const ok = await confirm("Apply these changes?");
|
|
@@ -34759,19 +34793,6 @@ function prependMirrorMarker(hubFolder, productionHubId) {
|
|
|
34759
34793
|
} catch {
|
|
34760
34794
|
}
|
|
34761
34795
|
}
|
|
34762
|
-
function connectionsEqual(a, b) {
|
|
34763
|
-
const listA = a || [];
|
|
34764
|
-
const listB = b || [];
|
|
34765
|
-
if (listA.length !== listB.length) return false;
|
|
34766
|
-
const key = (c) => c.id || `${c.name}|${c.type}|${c.service || ""}`;
|
|
34767
|
-
const setA = new Set(listA.map(key));
|
|
34768
|
-
const setB = new Set(listB.map(key));
|
|
34769
|
-
if (setA.size !== setB.size) return false;
|
|
34770
|
-
for (const k of setA) {
|
|
34771
|
-
if (!setB.has(k)) return false;
|
|
34772
|
-
}
|
|
34773
|
-
return true;
|
|
34774
|
-
}
|
|
34775
34796
|
var UNREADABLE_LOCAL, UNCOMPARABLE_LOCAL, MIRROR_MARKER_PREFIX2;
|
|
34776
34797
|
var init_pull = __esm({
|
|
34777
34798
|
"src/commands/pull.ts"() {
|
|
@@ -42679,7 +42700,7 @@ var CASE_AGENT_REQUEST_TTL_MS, CASE_AGENT_REQUESTS_PER_PERSON_MAX, CASE_AGENT_MA
|
|
|
42679
42700
|
var init_case_agents = __esm({
|
|
42680
42701
|
"../../packages/core/dist/contracts/case-agents.js"() {
|
|
42681
42702
|
"use strict";
|
|
42682
|
-
|
|
42703
|
+
init_chunk_TTU7ALAB();
|
|
42683
42704
|
init_chunk_JFD3FZM6();
|
|
42684
42705
|
init_chunk_KWRHZBGU();
|
|
42685
42706
|
init_chunk_CLGTGGVN();
|
|
@@ -42717,7 +42738,7 @@ var init_case_agents = __esm({
|
|
|
42717
42738
|
var init_case_records = __esm({
|
|
42718
42739
|
"../../packages/core/dist/contracts/case-records.js"() {
|
|
42719
42740
|
"use strict";
|
|
42720
|
-
|
|
42741
|
+
init_chunk_TTU7ALAB();
|
|
42721
42742
|
init_chunk_JFD3FZM6();
|
|
42722
42743
|
init_chunk_KWRHZBGU();
|
|
42723
42744
|
init_chunk_CLGTGGVN();
|
|
@@ -42872,10 +42893,10 @@ var init_case_session = __esm({
|
|
|
42872
42893
|
var init_case_comments = __esm({
|
|
42873
42894
|
"../../packages/core/dist/contracts/case-comments.js"() {
|
|
42874
42895
|
"use strict";
|
|
42875
|
-
|
|
42876
|
-
|
|
42896
|
+
init_chunk_HMKIKIPB();
|
|
42897
|
+
init_chunk_PWTCQOWP();
|
|
42877
42898
|
init_chunk_MQQRYOE6();
|
|
42878
|
-
|
|
42899
|
+
init_chunk_TTU7ALAB();
|
|
42879
42900
|
init_chunk_JFD3FZM6();
|
|
42880
42901
|
init_chunk_KWRHZBGU();
|
|
42881
42902
|
init_chunk_CLGTGGVN();
|
|
@@ -42895,11 +42916,11 @@ var init_case_comments = __esm({
|
|
|
42895
42916
|
var init_case_collection_citations = __esm({
|
|
42896
42917
|
"../../packages/core/dist/contracts/case-collection-citations.js"() {
|
|
42897
42918
|
"use strict";
|
|
42898
|
-
|
|
42899
|
-
|
|
42900
|
-
|
|
42919
|
+
init_chunk_2HZWFYN3();
|
|
42920
|
+
init_chunk_HMKIKIPB();
|
|
42921
|
+
init_chunk_PWTCQOWP();
|
|
42901
42922
|
init_chunk_MQQRYOE6();
|
|
42902
|
-
|
|
42923
|
+
init_chunk_TTU7ALAB();
|
|
42903
42924
|
init_chunk_JFD3FZM6();
|
|
42904
42925
|
init_chunk_KWRHZBGU();
|
|
42905
42926
|
init_chunk_CLGTGGVN();
|
|
@@ -42919,15 +42940,15 @@ var init_case_collection_citations = __esm({
|
|
|
42919
42940
|
var init_case_collection_links = __esm({
|
|
42920
42941
|
"../../packages/core/dist/contracts/case-collection-links.js"() {
|
|
42921
42942
|
"use strict";
|
|
42922
|
-
|
|
42943
|
+
init_chunk_PZKAEHPU();
|
|
42923
42944
|
init_chunk_7Y3IO67N();
|
|
42924
42945
|
init_chunk_3SZD2H6D();
|
|
42925
42946
|
init_chunk_A5TJEV6T();
|
|
42926
|
-
|
|
42927
|
-
|
|
42928
|
-
|
|
42947
|
+
init_chunk_2HZWFYN3();
|
|
42948
|
+
init_chunk_HMKIKIPB();
|
|
42949
|
+
init_chunk_PWTCQOWP();
|
|
42929
42950
|
init_chunk_MQQRYOE6();
|
|
42930
|
-
|
|
42951
|
+
init_chunk_TTU7ALAB();
|
|
42931
42952
|
init_chunk_JFD3FZM6();
|
|
42932
42953
|
init_chunk_KWRHZBGU();
|
|
42933
42954
|
init_chunk_CLGTGGVN();
|
|
@@ -43698,7 +43719,7 @@ exec wayai cases pull --mirror-only --dir "$(dirname "$0")/.."
|
|
|
43698
43719
|
}
|
|
43699
43720
|
});
|
|
43700
43721
|
|
|
43701
|
-
// ../../packages/core/dist/chunk-
|
|
43722
|
+
// ../../packages/core/dist/chunk-2CSUELQ4.js
|
|
43702
43723
|
function firstAtOrAfter(sorted, from) {
|
|
43703
43724
|
let lo = 0;
|
|
43704
43725
|
let hi = sorted.length;
|
|
@@ -44113,10 +44134,10 @@ function readItems(text5, state) {
|
|
|
44113
44134
|
};
|
|
44114
44135
|
}
|
|
44115
44136
|
var CASE_COMPOSED_COVER, CASE_ITEM_READER_MAX_CHARS, FENCE_OPEN, BLANK_AFTER, CASE_FRONT_MATTER, FRONT_MATTER_OPENING, withoutBom, FENCE, SETEXT_UNDERLINE, DASHES, COLUMNS, patternBody, CALCULATION_MARKER, DECISION_MARKER, DOCUMENT_MARKER, INPUT_MARKER, isSpace, isTabOrSpace, once, OPENS_FRONT_MATTER;
|
|
44116
|
-
var
|
|
44117
|
-
"../../packages/core/dist/chunk-
|
|
44137
|
+
var init_chunk_2CSUELQ4 = __esm({
|
|
44138
|
+
"../../packages/core/dist/chunk-2CSUELQ4.js"() {
|
|
44118
44139
|
"use strict";
|
|
44119
|
-
|
|
44140
|
+
init_chunk_HMKIKIPB();
|
|
44120
44141
|
init_chunk_JFD3FZM6();
|
|
44121
44142
|
CASE_COMPOSED_COVER = "00-cover.md";
|
|
44122
44143
|
CASE_ITEM_READER_MAX_CHARS = 4 * 1024 * 1024;
|
|
@@ -44147,11 +44168,11 @@ var init_chunk_KOPPBU54 = __esm({
|
|
|
44147
44168
|
var init_case_item_reader = __esm({
|
|
44148
44169
|
"../../packages/core/dist/case-item-reader.js"() {
|
|
44149
44170
|
"use strict";
|
|
44150
|
-
|
|
44151
|
-
|
|
44152
|
-
|
|
44171
|
+
init_chunk_2CSUELQ4();
|
|
44172
|
+
init_chunk_HMKIKIPB();
|
|
44173
|
+
init_chunk_PWTCQOWP();
|
|
44153
44174
|
init_chunk_MQQRYOE6();
|
|
44154
|
-
|
|
44175
|
+
init_chunk_TTU7ALAB();
|
|
44155
44176
|
init_chunk_JFD3FZM6();
|
|
44156
44177
|
init_chunk_KWRHZBGU();
|
|
44157
44178
|
init_chunk_CLGTGGVN();
|
|
@@ -44234,7 +44255,7 @@ function inputLinkState(input) {
|
|
|
44234
44255
|
document_title: link2.document_title,
|
|
44235
44256
|
version_title: link2.version_title
|
|
44236
44257
|
};
|
|
44237
|
-
return link2.pending_version_id ? { state: "undecided", linked_at: link2.linked_at, source: source2, current_id: link2.pending_version_id } : { state: "linked", linked_at: link2.linked_at, source: source2 };
|
|
44258
|
+
return link2.pending_version_id ? { state: "undecided", linked_at: link2.linked_at, source: source2, current_id: link2.pending_version_id, awaits: "decision" } : { state: "linked", linked_at: link2.linked_at, source: source2 };
|
|
44238
44259
|
}
|
|
44239
44260
|
const link = input.source_link;
|
|
44240
44261
|
if (link === void 0) return input.dispensation ? { state: "dispensed" } : { state: "unknown" };
|
|
@@ -44254,7 +44275,26 @@ function inputLinkState(input) {
|
|
|
44254
44275
|
phase_id: link.phase_id,
|
|
44255
44276
|
version: link.version
|
|
44256
44277
|
};
|
|
44257
|
-
|
|
44278
|
+
const at = { linked_at: link.linked_at, source };
|
|
44279
|
+
if (link.current_version_id === link.official_version_id) return { state: "linked", ...at };
|
|
44280
|
+
if (link.pending_version_id === void 0) return { state: "undecided", ...at, current_id: link.current_version_id, awaits: "relink" };
|
|
44281
|
+
if (link.pending_version_id !== null) return { state: "undecided", ...at, current_id: link.pending_version_id, awaits: "decision" };
|
|
44282
|
+
return link.current_version_id === null ? { state: "undecided", ...at, current_id: null, awaits: "decision" } : { state: "kept", ...at, current_id: link.current_version_id };
|
|
44283
|
+
}
|
|
44284
|
+
function decisionPending(input, label3, folders) {
|
|
44285
|
+
const state = inputLinkState(input);
|
|
44286
|
+
if (state.state === "kept") {
|
|
44287
|
+
return `The ${label3} is ${keptWords(state, folders)}: relinking it would undo that, so link writes and lists nothing for it. A person adopts the current one, in the web app.`;
|
|
44288
|
+
}
|
|
44289
|
+
if (state.state === "undecided" && state.awaits === "decision") {
|
|
44290
|
+
return `The ${label3} ${decisionWords(state, folders)}. A relink would take that decision: link writes and lists nothing for it.`;
|
|
44291
|
+
}
|
|
44292
|
+
return null;
|
|
44293
|
+
}
|
|
44294
|
+
function keptJustification(view, state) {
|
|
44295
|
+
if (view?.readable !== true || view.kind !== "official_version") return null;
|
|
44296
|
+
const linked = state.source.official_version_id;
|
|
44297
|
+
return (view.decisions ?? []).find((d) => d.decision === "keep" && d.previous_version_id === linked && d.new_version_id === state.current_id) ?? null;
|
|
44258
44298
|
}
|
|
44259
44299
|
function linkCommand(key, folder, origin, id) {
|
|
44260
44300
|
const [flag, placeholder] = origin === "previous_output" ? ["--official-version", "<official_version_id>"] : ["--received", "<received_id>"];
|
|
@@ -44283,11 +44323,14 @@ function linkHint(key, folder, origin, linkable, folders = /* @__PURE__ */ new M
|
|
|
44283
44323
|
if (linkable.length === 0) return NONE_LINKABLE;
|
|
44284
44324
|
return `link it to one of the official versions it may link ${WHICH_LINKABLE}:${candidateBlock(linkable, key, folder, folders, indent)}`;
|
|
44285
44325
|
}
|
|
44326
|
+
function decisionWords(link, folders) {
|
|
44327
|
+
const linked = sourceWords(link.source, folders);
|
|
44328
|
+
if (link.source.kind === "collection") return `links ${linked}, and a newer version awaits a decision: a person decides on it, in the web app`;
|
|
44329
|
+
return link.current_id === null ? `links ${linked}, which a correction superseded by a version not readable here: ${KEEP_OR_ADOPT}, unless one has (not told here)` : `links ${linked}, which a correction superseded by official version ${link.current_id}: ${KEEP_OR_ADOPT}`;
|
|
44330
|
+
}
|
|
44286
44331
|
function undecidedWords(input, folder, link, folders) {
|
|
44332
|
+
if (link.awaits === "decision") return { text: decisionWords(link, folders), agent: false };
|
|
44287
44333
|
const linked = sourceWords(link.source, folders);
|
|
44288
|
-
if (link.source.kind === "collection") {
|
|
44289
|
-
return { text: `links ${linked}, and a newer version awaits a decision: a person decides on it, in the web app`, agent: false };
|
|
44290
|
-
}
|
|
44291
44334
|
if (link.current_id === null) {
|
|
44292
44335
|
return { text: `links ${linked}, which a correction superseded by a version not readable here: a person who reads it relinks it`, agent: false };
|
|
44293
44336
|
}
|
|
@@ -44296,12 +44339,18 @@ function undecidedWords(input, folder, link, folders) {
|
|
|
44296
44339
|
agent: true
|
|
44297
44340
|
};
|
|
44298
44341
|
}
|
|
44299
|
-
function
|
|
44342
|
+
function keptWords(link, folders, decision) {
|
|
44343
|
+
const head = `linked to ${sourceWords(link.source, folders)}, kept by a person over the current official version ${link.current_id}`;
|
|
44344
|
+
return decision?.reason ? `${head}, justified: "${one2(decision.reason)}" (${one2(decision.created_at)})` : `${head} (its justification is in the web app)`;
|
|
44345
|
+
}
|
|
44346
|
+
function inputLine(input, folder, folders, linkable, kept) {
|
|
44300
44347
|
const head = `${one2(input.key)} (${one2(input.name)}), ${input.origin.replaceAll("_", " ")}${input.required ? ", required" : ""}`;
|
|
44301
44348
|
const state = inputLinkState(input);
|
|
44302
44349
|
switch (state.state) {
|
|
44303
44350
|
case "linked":
|
|
44304
44351
|
return `${head}: linked to ${sourceWords(state.source, folders)}`;
|
|
44352
|
+
case "kept":
|
|
44353
|
+
return `${head}: ${keptWords(state, folders, kept)}`;
|
|
44305
44354
|
case "undecided":
|
|
44306
44355
|
return `${head}: ${undecidedWords(input, folder, state, folders).text}`;
|
|
44307
44356
|
case "unreadable":
|
|
@@ -44398,7 +44447,7 @@ function passageSource(input, label3) {
|
|
|
44398
44447
|
const state = inputLinkState(input);
|
|
44399
44448
|
if (state.state === "unreadable") throw expected(`The ${label3} links a source not readable here: no passage of it can be cited with this authorization.`);
|
|
44400
44449
|
if (state.state === "unknown") throw expected(`This server does not say what the ${label3} links: no passage can be cited from here.`);
|
|
44401
|
-
if (state.state !== "linked" && state.state !== "undecided") throw expected(`The ${label3} is not linked: link it first.`);
|
|
44450
|
+
if (state.state !== "linked" && state.state !== "kept" && state.state !== "undecided") throw expected(`The ${label3} is not linked: link it first.`);
|
|
44402
44451
|
const { source } = state;
|
|
44403
44452
|
if (source.kind === "collection") return { document_id: source.document_id, version_id: source.version_id };
|
|
44404
44453
|
return source.kind === "official_version" ? { official_version_id: source.official_version_id } : { received_id: source.received_id };
|
|
@@ -44424,7 +44473,7 @@ function citeFailure(err, session, named) {
|
|
|
44424
44473
|
if (err.status === 403) return expected(`Your access to case ${session.connection.code} does not cite passages: that takes Edit level.`);
|
|
44425
44474
|
return caseCallFailure(err, session.connection, `The ${named.label} was not found`);
|
|
44426
44475
|
}
|
|
44427
|
-
var one2, linkPrefix, candidateLines, candidateBlock, NONE_LINKABLE, noneLinkable, WHICH_LINKABLE, agentLinks, sourceWords;
|
|
44476
|
+
var one2, linkPrefix, candidateLines, candidateBlock, NONE_LINKABLE, noneLinkable, WHICH_LINKABLE, agentLinks, sourceWords, KEEP_OR_ADOPT;
|
|
44428
44477
|
var init_case_inputs = __esm({
|
|
44429
44478
|
"src/cases/case-inputs.ts"() {
|
|
44430
44479
|
"use strict";
|
|
@@ -44458,6 +44507,7 @@ ${line}`).join("");
|
|
|
44458
44507
|
return `received document "${one2(source.title)}" (${one2(source.type)}), registered in ${folder(source.phase_id)} [${source.received_id}]`;
|
|
44459
44508
|
}
|
|
44460
44509
|
};
|
|
44510
|
+
KEEP_OR_ADOPT = "a person decides, in the web app, whether to keep it (with a justification) or adopt the current one";
|
|
44461
44511
|
}
|
|
44462
44512
|
});
|
|
44463
44513
|
|
|
@@ -44465,12 +44515,12 @@ ${line}`).join("");
|
|
|
44465
44515
|
var init_case_input_sources = __esm({
|
|
44466
44516
|
"../../packages/core/dist/contracts/case-input-sources.js"() {
|
|
44467
44517
|
"use strict";
|
|
44468
|
-
|
|
44469
|
-
|
|
44470
|
-
|
|
44471
|
-
|
|
44518
|
+
init_chunk_QOD3ZVM7();
|
|
44519
|
+
init_chunk_2HZWFYN3();
|
|
44520
|
+
init_chunk_HMKIKIPB();
|
|
44521
|
+
init_chunk_PWTCQOWP();
|
|
44472
44522
|
init_chunk_MQQRYOE6();
|
|
44473
|
-
|
|
44523
|
+
init_chunk_TTU7ALAB();
|
|
44474
44524
|
init_chunk_JFD3FZM6();
|
|
44475
44525
|
init_chunk_KWRHZBGU();
|
|
44476
44526
|
init_chunk_CLGTGGVN();
|
|
@@ -44490,8 +44540,8 @@ var init_case_input_sources = __esm({
|
|
|
44490
44540
|
var init_case_notes = __esm({
|
|
44491
44541
|
"../../packages/core/dist/contracts/case-notes.js"() {
|
|
44492
44542
|
"use strict";
|
|
44493
|
-
|
|
44494
|
-
|
|
44543
|
+
init_chunk_PWTCQOWP();
|
|
44544
|
+
init_chunk_TTU7ALAB();
|
|
44495
44545
|
init_chunk_JFD3FZM6();
|
|
44496
44546
|
init_chunk_KWRHZBGU();
|
|
44497
44547
|
init_chunk_CLGTGGVN();
|
|
@@ -44511,7 +44561,7 @@ var init_case_notes = __esm({
|
|
|
44511
44561
|
var init_case_checks = __esm({
|
|
44512
44562
|
"../../packages/core/dist/contracts/case-checks.js"() {
|
|
44513
44563
|
"use strict";
|
|
44514
|
-
|
|
44564
|
+
init_chunk_64HCHXKB();
|
|
44515
44565
|
init_chunk_YR7QALGP();
|
|
44516
44566
|
init_chunk_HZ6CADSY();
|
|
44517
44567
|
}
|
|
@@ -44564,7 +44614,8 @@ function blockerLine(b, names) {
|
|
|
44564
44614
|
}
|
|
44565
44615
|
async function namesFor(session, detail, phaseIds, opts = {}) {
|
|
44566
44616
|
const names = new CaseNames(session, detail);
|
|
44567
|
-
|
|
44617
|
+
const kept = opts.kept === true && !detail.access.capabilities.includes("read_confidential");
|
|
44618
|
+
if (readsWork(detail)) for (const id of phaseIds) await names.readPhase(id, { agenda: opts.agenda ?? true, linkableFor: opts.linkableFor, kept });
|
|
44568
44619
|
return names;
|
|
44569
44620
|
}
|
|
44570
44621
|
function printPhasesView(detail, state) {
|
|
@@ -44637,7 +44688,7 @@ async function caseExplain(session, opts) {
|
|
|
44637
44688
|
return;
|
|
44638
44689
|
}
|
|
44639
44690
|
if (opts.json) {
|
|
44640
|
-
const names2 = asked && readsWork(detail) ? await namesFor(session, detail, [asked.phase_id], { agenda: false }) : null;
|
|
44691
|
+
const names2 = asked && readsWork(detail) ? await namesFor(session, detail, [asked.phase_id], { agenda: false, kept: true }) : null;
|
|
44641
44692
|
const inputs2 = names2 ? (names2.phaseInputs.get(asked.phase_id) ?? []).map((i) => inputJson(i, names2)) : null;
|
|
44642
44693
|
console.log(JSON.stringify({ case: detail, state, ...inputs2 ? { inputs: inputs2 } : {} }, null, 2));
|
|
44643
44694
|
return;
|
|
@@ -44653,7 +44704,7 @@ async function caseExplain(session, opts) {
|
|
|
44653
44704
|
console.log(`Phase ${phaseLabel(asked)}: ${st ? statusWords(st.status) : "not shown"}. Nothing holds it.`);
|
|
44654
44705
|
return;
|
|
44655
44706
|
}
|
|
44656
|
-
const names = await namesFor(session, detail, named, asked ? {} : { linkableFor: pendingInputs([...phases, ...state.tasks]) });
|
|
44707
|
+
const names = await namesFor(session, detail, named, asked ? { kept: true } : { linkableFor: pendingInputs([...phases, ...state.tasks]) });
|
|
44657
44708
|
if (phases.length === 0) console.log(`Every phase of ${detail.code} is delivered or dispensed.`);
|
|
44658
44709
|
const fullyNamed = new Set(named);
|
|
44659
44710
|
for (const p of phases) {
|
|
@@ -44674,7 +44725,7 @@ async function caseExplain(session, opts) {
|
|
|
44674
44725
|
if (inputs.length) {
|
|
44675
44726
|
console.log(`Inputs of ${asked.folder}:`);
|
|
44676
44727
|
const folders = names.folders();
|
|
44677
|
-
for (const i of inputs) console.log(` ${inputLine(i, asked.folder, folders, names.linkable(i.id))}`);
|
|
44728
|
+
for (const i of inputs) console.log(` ${inputLine(i, asked.folder, folders, names.linkable(i.id), names.kept(i.id))}`);
|
|
44678
44729
|
}
|
|
44679
44730
|
}
|
|
44680
44731
|
function agentWork(b, names) {
|
|
@@ -44903,13 +44954,15 @@ async function caseLink(session, inputName, opts) {
|
|
|
44903
44954
|
const { detail, phase, input, label: label3 } = await locateInput(session, inputName, opts.phase);
|
|
44904
44955
|
const mismatch = linkMismatch(input, label3, target);
|
|
44905
44956
|
if (mismatch) throw expected(mismatch);
|
|
44957
|
+
const folders = phaseFolders(detail);
|
|
44958
|
+
const decided = decisionPending(input, label3, folders);
|
|
44959
|
+
if (decided) throw expected(decided);
|
|
44906
44960
|
let ref;
|
|
44907
44961
|
if (target.kind === "source") {
|
|
44908
44962
|
ref = target.ref;
|
|
44909
44963
|
} else {
|
|
44910
44964
|
const listed3 = await readLinkable(session, input.id);
|
|
44911
44965
|
if (listed3 === null) throw expected("This server lists no official version an input may link: name the one to link by its id (--official-version <id>).");
|
|
44912
|
-
const folders = phaseFolders(detail);
|
|
44913
44966
|
const named = { label: label3, key: input.key, folder: phase.folder };
|
|
44914
44967
|
if (target.kind === "list") {
|
|
44915
44968
|
for (const line of linkableLines(listed3, named, folders)) console.log(line);
|
|
@@ -45100,14 +45153,17 @@ var init_case_work = __esm({
|
|
|
45100
45153
|
groups = /* @__PURE__ */ new Map();
|
|
45101
45154
|
/** The official versions each unlinked input of origin `previous_output` read may link (`./case-inputs.ts` `Linkable`). */
|
|
45102
45155
|
linkableOf = /* @__PURE__ */ new Map();
|
|
45156
|
+
/** The decision that kept each kept input read for it (`./case-inputs.ts` `keptJustification`). */
|
|
45157
|
+
keptOf = /* @__PURE__ */ new Map();
|
|
45103
45158
|
folderOf;
|
|
45104
45159
|
/** Each phase read's inputs, in their order. */
|
|
45105
45160
|
phaseInputs = /* @__PURE__ */ new Map();
|
|
45106
45161
|
/**
|
|
45107
|
-
* Read one phase's outputs and inputs, and (unless `agenda` is false) its agenda groups, to name them;
|
|
45108
|
-
* unlinked input of origin `previous_output` may link, of those `linkableFor` holds (all of them when it is undefined)
|
|
45162
|
+
* Read one phase's outputs and inputs, and (unless `agenda` is false) its agenda groups, to name them; what each
|
|
45163
|
+
* unlinked input of origin `previous_output` may link, of those `linkableFor` holds (all of them when it is undefined);
|
|
45164
|
+
* and, when `kept`, the decision that kept each kept input.
|
|
45109
45165
|
*/
|
|
45110
|
-
async readPhase(phaseId, agenda
|
|
45166
|
+
async readPhase(phaseId, { agenda, linkableFor, kept }) {
|
|
45111
45167
|
const s = this.session;
|
|
45112
45168
|
const work = (await call2(s, () => s.api.getCasePhaseWork(s.connection, phaseId))).data;
|
|
45113
45169
|
for (const o of work.outputs) this.outputs.set(o.id, `${one3(o.code)} (${one3(o.document_type)})`);
|
|
@@ -45124,9 +45180,20 @@ var init_case_work = __esm({
|
|
|
45124
45180
|
cursor = next_cursor;
|
|
45125
45181
|
}
|
|
45126
45182
|
};
|
|
45127
|
-
|
|
45128
|
-
|
|
45129
|
-
|
|
45183
|
+
const keeps = kept ? work.inputs.flatMap((i) => {
|
|
45184
|
+
const state = inputLinkState(i);
|
|
45185
|
+
return state.state === "kept" ? [{ id: i.id, state }] : [];
|
|
45186
|
+
}) : [];
|
|
45187
|
+
await Promise.all([
|
|
45188
|
+
groups(),
|
|
45189
|
+
...unlinked.map(async (i) => {
|
|
45190
|
+
this.linkableOf.set(i.id, await readLinkable(s, i.id));
|
|
45191
|
+
}),
|
|
45192
|
+
...keeps.map(async ({ id, state }) => {
|
|
45193
|
+
const view = (await call2(s, () => s.api.getCaseInputSourceLink(s.connection, id))).data;
|
|
45194
|
+
this.keptOf.set(id, keptJustification(view, state));
|
|
45195
|
+
})
|
|
45196
|
+
]);
|
|
45130
45197
|
}
|
|
45131
45198
|
// Each name with its noun: `output memo (Technical memo)`, or `an output` for one not read.
|
|
45132
45199
|
phase(id) {
|
|
@@ -45162,6 +45229,10 @@ var init_case_work = __esm({
|
|
|
45162
45229
|
linkable(id) {
|
|
45163
45230
|
return this.linkableOf.get(id);
|
|
45164
45231
|
}
|
|
45232
|
+
/** The decision that kept a kept input, as read: undefined when not read, null when the read names none. */
|
|
45233
|
+
kept(id) {
|
|
45234
|
+
return this.keptOf.get(id);
|
|
45235
|
+
}
|
|
45165
45236
|
/** Each phase's folder, by phase id. */
|
|
45166
45237
|
folders() {
|
|
45167
45238
|
return this.folderOf;
|
|
@@ -45182,7 +45253,16 @@ var init_case_work = __esm({
|
|
|
45182
45253
|
noteLine = (n) => `${n.kind === "pending" ? "pending" : "next step"}: ${one3(n.text)} [${n.note_id}]`;
|
|
45183
45254
|
inputJson = (i, names) => {
|
|
45184
45255
|
const linkable = names.linkable(i.id);
|
|
45185
|
-
|
|
45256
|
+
const kept = names.kept(i.id);
|
|
45257
|
+
return {
|
|
45258
|
+
input_id: i.id,
|
|
45259
|
+
key: i.key,
|
|
45260
|
+
origin: i.origin,
|
|
45261
|
+
required: i.required,
|
|
45262
|
+
link: inputLinkState(i),
|
|
45263
|
+
...linkable !== void 0 ? { linkable } : {},
|
|
45264
|
+
...kept !== void 0 ? { kept_by: kept } : {}
|
|
45265
|
+
};
|
|
45186
45266
|
};
|
|
45187
45267
|
blockerKey = (b) => {
|
|
45188
45268
|
switch (b.reason) {
|
|
@@ -46500,10 +46580,11 @@ brief The case at a glance: status, phases under way, deadlines, open
|
|
|
46500
46580
|
tasks, open pending items and next steps.
|
|
46501
46581
|
next What to do next on the phases under way, then what waits on
|
|
46502
46582
|
someone else: an input to link (with the command that links it),
|
|
46503
|
-
and a linked one whose version a
|
|
46583
|
+
and a linked one whose newer version awaits a person's decision,
|
|
46584
|
+
in the web app. A version a person kept is settled.
|
|
46504
46585
|
explain Why each phase and task is not done, and who can move it. --phase
|
|
46505
46586
|
names everything holding one phase, and each of its inputs'
|
|
46506
|
-
links.
|
|
46587
|
+
links (a kept version with its justification).
|
|
46507
46588
|
check A delivery's checks over the case's files as WayAI holds them:
|
|
46508
46589
|
a joint phase's, or one output's (--output). Inside a clone, it
|
|
46509
46590
|
also compares the case's package in the mirror with the published
|
|
@@ -46541,7 +46622,8 @@ link Link an input of one phase (its key, as explain --phase names it):
|
|
|
46541
46622
|
phase's received/). --list lists the official versions an input
|
|
46542
46623
|
of origin previous_output may link, each with the command that
|
|
46543
46624
|
links it, and links nothing. A collection input is linked in the
|
|
46544
|
-
web app.
|
|
46625
|
+
web app. An input whose version a person kept, or one awaiting
|
|
46626
|
+
their decision, is neither linked nor listed: that is theirs.
|
|
46545
46627
|
cite Cite a passage of what an input links now, by its lines (as
|
|
46546
46628
|
12-18, numbered as the mirror's inputs/ texts number them): the
|
|
46547
46629
|
case hashes them. Any origin.
|