@wayai/cli 0.3.352 → 0.3.353
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 +43 -33
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6780,7 +6780,7 @@ var init_chunk_5FO3GNKP = __esm({
|
|
|
6780
6780
|
}
|
|
6781
6781
|
});
|
|
6782
6782
|
|
|
6783
|
-
// ../../packages/core/dist/chunk-
|
|
6783
|
+
// ../../packages/core/dist/chunk-AUD5MVHU.js
|
|
6784
6784
|
function matchPath(pattern, path55) {
|
|
6785
6785
|
const pathSegments2 = path55.replace(/\/$/, "").split("/");
|
|
6786
6786
|
const isPrefix = pattern.endsWith("/*");
|
|
@@ -6809,8 +6809,8 @@ function getEndpointConfig(path55) {
|
|
|
6809
6809
|
return { tier: "STANDARD" };
|
|
6810
6810
|
}
|
|
6811
6811
|
var ENDPOINT_CONFIGS, EXCLUDED_PATHS;
|
|
6812
|
-
var
|
|
6813
|
-
"../../packages/core/dist/chunk-
|
|
6812
|
+
var init_chunk_AUD5MVHU = __esm({
|
|
6813
|
+
"../../packages/core/dist/chunk-AUD5MVHU.js"() {
|
|
6814
6814
|
"use strict";
|
|
6815
6815
|
init_chunk_5FO3GNKP();
|
|
6816
6816
|
ENDPOINT_CONFIGS = {
|
|
@@ -7266,7 +7266,7 @@ var init_chunk_7LULTR3U = __esm({
|
|
|
7266
7266
|
// it wins over the wildcard above.
|
|
7267
7267
|
[COMMUNITY_EMAIL_UNSUBSCRIBE_PATH]: { tier: "MODERATE" },
|
|
7268
7268
|
// Case spaces (wayai#5921, `cases/routes.ts`): every route under the mount (the uploads, the received documents' upload,
|
|
7269
|
-
// the compare, the comments
|
|
7269
|
+
// the compare, the comments, the cited passages and an input's source text below excepted) shares
|
|
7270
7270
|
// one per-user budget. Each is one person's page or write, at most a few hundred Durable Object reads (the
|
|
7271
7271
|
// list of their spaces); a space's own limits are counted in its CaseDO. Every caller is a web
|
|
7272
7272
|
// session, so the per-IP tier is skipped; the key is pinned because the paths carry org, space,
|
|
@@ -7352,6 +7352,16 @@ var init_chunk_7LULTR3U = __esm({
|
|
|
7352
7352
|
skipAuthenticatedUsers: true,
|
|
7353
7353
|
userLimitKey: "/api/cases/*/*/cases/*/inputs/*/passages"
|
|
7354
7354
|
},
|
|
7355
|
+
// The text of the case's own source an input links (`GET …/cases/:code/inputs/:input_id/source-link/content`): reads up
|
|
7356
|
+
// to 4 MiB of an official version's frozen Markdown or a received document's text into the Worker, composes a folder's
|
|
7357
|
+
// parts and hashes the whole, as a cited passage of it does, so it takes that budget's size, keyed once for every case
|
|
7358
|
+
// and input.
|
|
7359
|
+
"/api/cases/*/*/cases/*/inputs/*/source-link/content": {
|
|
7360
|
+
tier: "STANDARD",
|
|
7361
|
+
userLimit: 30,
|
|
7362
|
+
skipAuthenticatedUsers: true,
|
|
7363
|
+
userLimitKey: "/api/cases/*/*/cases/*/inputs/*/source-link/content"
|
|
7364
|
+
},
|
|
7355
7365
|
// The WayAI Guide's help entry (wayai#4948, `routes/api/guide.ts`): one POST per click by a viewer
|
|
7356
7366
|
// the snapshot does not show enrolled, which reads the person's row on the Guide hub and writes only
|
|
7357
7367
|
// what is missing (an enrolled viewer's click opens the hub without a request). Every caller is
|
|
@@ -7388,7 +7398,7 @@ var init_chunk_7LULTR3U = __esm({
|
|
|
7388
7398
|
}
|
|
7389
7399
|
});
|
|
7390
7400
|
|
|
7391
|
-
// ../../packages/core/dist/chunk-
|
|
7401
|
+
// ../../packages/core/dist/chunk-2IPHTFV5.js
|
|
7392
7402
|
function fileSnapshotChanged(run) {
|
|
7393
7403
|
return run.written + run.removed > 0;
|
|
7394
7404
|
}
|
|
@@ -7429,10 +7439,10 @@ async function sendWithRetry(opts, cursor) {
|
|
|
7429
7439
|
}
|
|
7430
7440
|
}
|
|
7431
7441
|
var rekorFileSnapshotAnswerSchema, FILE_SNAPSHOT_MAX_PAGES, FILE_SNAPSHOT_CONFLICT_ATTEMPTS, FILE_SNAPSHOT_PAGE_SPACING_MS, FILE_SNAPSHOT_CONFLICT_STATUS;
|
|
7432
|
-
var
|
|
7433
|
-
"../../packages/core/dist/chunk-
|
|
7442
|
+
var init_chunk_2IPHTFV5 = __esm({
|
|
7443
|
+
"../../packages/core/dist/chunk-2IPHTFV5.js"() {
|
|
7434
7444
|
"use strict";
|
|
7435
|
-
|
|
7445
|
+
init_chunk_AUD5MVHU();
|
|
7436
7446
|
init_chunk_5FO3GNKP();
|
|
7437
7447
|
init_zod();
|
|
7438
7448
|
rekorFileSnapshotAnswerSchema = external_exports.object({
|
|
@@ -16475,10 +16485,10 @@ var init_chunk_733K4J4G = __esm({
|
|
|
16475
16485
|
}
|
|
16476
16486
|
});
|
|
16477
16487
|
|
|
16478
|
-
// ../../packages/core/dist/chunk-
|
|
16488
|
+
// ../../packages/core/dist/chunk-W7KQS5C6.js
|
|
16479
16489
|
var CASE_OFFICIAL_FILE_KINDS, CASE_OFFICIAL_FILE_NAME_PATTERN, publishCaseSubmissionBody, caseOfficialVersionParam, caseOfficialFileQuery;
|
|
16480
|
-
var
|
|
16481
|
-
"../../packages/core/dist/chunk-
|
|
16490
|
+
var init_chunk_W7KQS5C6 = __esm({
|
|
16491
|
+
"../../packages/core/dist/chunk-W7KQS5C6.js"() {
|
|
16482
16492
|
"use strict";
|
|
16483
16493
|
init_chunk_5Y2NNQHX();
|
|
16484
16494
|
init_chunk_VROZDNLV();
|
|
@@ -16524,12 +16534,12 @@ var init_chunk_XPOCPOMA = __esm({
|
|
|
16524
16534
|
}
|
|
16525
16535
|
});
|
|
16526
16536
|
|
|
16527
|
-
// ../../packages/core/dist/chunk-
|
|
16537
|
+
// ../../packages/core/dist/chunk-ZBGTU6OM.js
|
|
16528
16538
|
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;
|
|
16529
|
-
var
|
|
16530
|
-
"../../packages/core/dist/chunk-
|
|
16539
|
+
var init_chunk_ZBGTU6OM = __esm({
|
|
16540
|
+
"../../packages/core/dist/chunk-ZBGTU6OM.js"() {
|
|
16531
16541
|
"use strict";
|
|
16532
|
-
|
|
16542
|
+
init_chunk_W7KQS5C6();
|
|
16533
16543
|
init_chunk_NMGRRGDR();
|
|
16534
16544
|
init_chunk_XPOCPOMA();
|
|
16535
16545
|
init_chunk_5Y2NNQHX();
|
|
@@ -17193,10 +17203,10 @@ var init_chunk_U3L6QR6F = __esm({
|
|
|
17193
17203
|
}
|
|
17194
17204
|
});
|
|
17195
17205
|
|
|
17196
|
-
// ../../packages/core/dist/chunk-
|
|
17206
|
+
// ../../packages/core/dist/chunk-S5FHM37X.js
|
|
17197
17207
|
var lines, ordered, citeCaseOfficialVersionPassageBody, citeCaseReceivedPassageBody, citeCaseSourcePassageBody, citeCaseInputPassageBody, caseSourceRefSchema;
|
|
17198
|
-
var
|
|
17199
|
-
"../../packages/core/dist/chunk-
|
|
17208
|
+
var init_chunk_S5FHM37X = __esm({
|
|
17209
|
+
"../../packages/core/dist/chunk-S5FHM37X.js"() {
|
|
17200
17210
|
"use strict";
|
|
17201
17211
|
init_chunk_U3L6QR6F();
|
|
17202
17212
|
init_chunk_S7UAXLHJ();
|
|
@@ -17357,10 +17367,10 @@ var init_chunk_UMAPAGFH = __esm({
|
|
|
17357
17367
|
}
|
|
17358
17368
|
});
|
|
17359
17369
|
|
|
17360
|
-
// ../../packages/core/dist/chunk-
|
|
17370
|
+
// ../../packages/core/dist/chunk-J7LBOXQK.js
|
|
17361
17371
|
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;
|
|
17362
|
-
var
|
|
17363
|
-
"../../packages/core/dist/chunk-
|
|
17372
|
+
var init_chunk_J7LBOXQK = __esm({
|
|
17373
|
+
"../../packages/core/dist/chunk-J7LBOXQK.js"() {
|
|
17364
17374
|
"use strict";
|
|
17365
17375
|
init_chunk_6CHDJVQ6();
|
|
17366
17376
|
init_chunk_U3L6QR6F();
|
|
@@ -18487,7 +18497,7 @@ var init_contracts = __esm({
|
|
|
18487
18497
|
init_chunk_ZC6YGHNX();
|
|
18488
18498
|
init_chunk_MGBAXT5Y();
|
|
18489
18499
|
init_chunk_5DGHIY7L();
|
|
18490
|
-
|
|
18500
|
+
init_chunk_2IPHTFV5();
|
|
18491
18501
|
init_chunk_IPDOHAZ5();
|
|
18492
18502
|
init_chunk_PFGVH2CX();
|
|
18493
18503
|
init_chunk_FPSDNS2E();
|
|
@@ -18525,23 +18535,23 @@ var init_contracts = __esm({
|
|
|
18525
18535
|
init_chunk_AHISKXHA();
|
|
18526
18536
|
init_chunk_2YEGUQR7();
|
|
18527
18537
|
init_chunk_JDJ4EUOL();
|
|
18528
|
-
|
|
18538
|
+
init_chunk_ZBGTU6OM();
|
|
18529
18539
|
init_chunk_K3PD6AOF();
|
|
18530
18540
|
init_chunk_KVMROYDC();
|
|
18531
18541
|
init_chunk_M2IF4G6X();
|
|
18532
18542
|
init_chunk_UOPCLXCU();
|
|
18533
18543
|
init_chunk_7CZSLDOE();
|
|
18534
|
-
|
|
18544
|
+
init_chunk_W7KQS5C6();
|
|
18535
18545
|
init_chunk_NMGRRGDR();
|
|
18536
18546
|
init_chunk_WYCUCSD5();
|
|
18537
18547
|
init_chunk_H6V7NEWR();
|
|
18538
18548
|
init_chunk_ZVIMTUGZ();
|
|
18539
|
-
|
|
18549
|
+
init_chunk_S5FHM37X();
|
|
18540
18550
|
init_chunk_BVQCYBU6();
|
|
18541
18551
|
init_chunk_Z3SV3XTC();
|
|
18542
18552
|
init_chunk_NHC27NIE();
|
|
18543
18553
|
init_chunk_UMAPAGFH();
|
|
18544
|
-
|
|
18554
|
+
init_chunk_J7LBOXQK();
|
|
18545
18555
|
init_chunk_6CHDJVQ6();
|
|
18546
18556
|
init_chunk_U3X3BIQH();
|
|
18547
18557
|
init_chunk_EYOBPUDN();
|
|
@@ -18573,7 +18583,7 @@ var init_contracts = __esm({
|
|
|
18573
18583
|
init_chunk_ZRXP6OOJ();
|
|
18574
18584
|
init_chunk_BGNWWR6B();
|
|
18575
18585
|
init_chunk_ZIGA5RCU();
|
|
18576
|
-
|
|
18586
|
+
init_chunk_AUD5MVHU();
|
|
18577
18587
|
init_chunk_SOJMWM63();
|
|
18578
18588
|
init_chunk_AMMLEB4T();
|
|
18579
18589
|
init_chunk_5FO3GNKP();
|
|
@@ -18744,7 +18754,7 @@ var UUID_RE2, WAYAI_WORKSPACE_LAYOUT;
|
|
|
18744
18754
|
var init_dist = __esm({
|
|
18745
18755
|
"../../packages/core/dist/index.js"() {
|
|
18746
18756
|
"use strict";
|
|
18747
|
-
|
|
18757
|
+
init_chunk_AUD5MVHU();
|
|
18748
18758
|
init_chunk_SOJMWM63();
|
|
18749
18759
|
init_chunk_AMMLEB4T();
|
|
18750
18760
|
init_chunk_5FO3GNKP();
|
|
@@ -42232,7 +42242,7 @@ function unwrittenLines(work) {
|
|
|
42232
42242
|
if (text5.status === "hash_mismatch") {
|
|
42233
42243
|
return [`${name}: not written, its bytes do not hash to the SHA-256 the space registered for it${text5.sha === null ? " (none was answered)" : ""}.`];
|
|
42234
42244
|
}
|
|
42235
|
-
if (text5.status === "no_read") return [`${name}: not written,
|
|
42245
|
+
if (text5.status === "no_read") return [`${name}: not written, this CLI does not read the text of an earlier phase's official version yet.`];
|
|
42236
42246
|
if (text5.status !== "no_text") return [];
|
|
42237
42247
|
return [text5.origin === "collection" ? `${name}: the version it links holds no registered text, or is no longer readable here.` : `${name}: the source it links holds no text, or it is no longer readable here.`];
|
|
42238
42248
|
}));
|
|
@@ -42264,8 +42274,8 @@ function readme(detail, at, withheld, confidential, unwritten, pkg2) {
|
|
|
42264
42274
|
" and its cited passages (lines and hash, and whether they match the text here).",
|
|
42265
42275
|
`- \`${INPUTS_DIR}/<phase folder>/<input key>.md\`: each such input's registered text, of the version or source its`,
|
|
42266
42276
|
" link names, byte for byte and checked against the SHA-256 the space registered for it: line N here is the line N a",
|
|
42267
|
-
" citation names (each line ends at a line break). An earlier phase's official version's text is not here:
|
|
42268
|
-
"
|
|
42277
|
+
" citation names (each line ends at a line break). An earlier phase's official version's text is not here: this",
|
|
42278
|
+
" CLI does not read it yet.",
|
|
42269
42279
|
...unwritten.length ? ["", "Linked inputs' texts not written:", ...unwritten.map((line) => `- ${line}`)] : []
|
|
42270
42280
|
];
|
|
42271
42281
|
return [
|
|
@@ -43079,7 +43089,7 @@ var init_case_skeleton = __esm({
|
|
|
43079
43089
|
var init_case_collection_links = __esm({
|
|
43080
43090
|
"../../packages/core/dist/contracts/case-collection-links.js"() {
|
|
43081
43091
|
"use strict";
|
|
43082
|
-
|
|
43092
|
+
init_chunk_J7LBOXQK();
|
|
43083
43093
|
init_chunk_6CHDJVQ6();
|
|
43084
43094
|
init_chunk_U3X3BIQH();
|
|
43085
43095
|
init_chunk_EYOBPUDN();
|
|
@@ -43331,7 +43341,7 @@ var init_case_inputs = __esm({
|
|
|
43331
43341
|
var init_case_input_sources = __esm({
|
|
43332
43342
|
"../../packages/core/dist/contracts/case-input-sources.js"() {
|
|
43333
43343
|
"use strict";
|
|
43334
|
-
|
|
43344
|
+
init_chunk_S5FHM37X();
|
|
43335
43345
|
init_chunk_U3L6QR6F();
|
|
43336
43346
|
init_chunk_S7UAXLHJ();
|
|
43337
43347
|
init_chunk_7TQYAKCB();
|