@robbeverhelst/do 1.374.0 → 1.376.0
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/do.js +183 -39
- package/package.json +1 -1
package/dist/do.js
CHANGED
|
@@ -14420,7 +14420,7 @@ var configError = (message) => new CliError("config", message, EXIT.CONFIG);
|
|
|
14420
14420
|
|
|
14421
14421
|
// src/meta.ts
|
|
14422
14422
|
var CLI_NAME = "do";
|
|
14423
|
-
var VERSION = "1.
|
|
14423
|
+
var VERSION = "1.376.0";
|
|
14424
14424
|
var API_PREFIX = "/api/v1";
|
|
14425
14425
|
var DEFAULT_API_URL = "http://localhost:3001";
|
|
14426
14426
|
|
|
@@ -19636,6 +19636,10 @@ var postCardCatchupSchema = object({
|
|
|
19636
19636
|
text: string2().trim().min(1).max(500)
|
|
19637
19637
|
})).min(1).max(20)
|
|
19638
19638
|
});
|
|
19639
|
+
var postCardSinceSchema = object({
|
|
19640
|
+
at: exports_iso.datetime({ offset: true }),
|
|
19641
|
+
text: string2().trim().min(1).max(1000)
|
|
19642
|
+
});
|
|
19639
19643
|
var POST_CARD_DATA = {
|
|
19640
19644
|
text: postCardTextSchema,
|
|
19641
19645
|
brief: postCardBriefSchema,
|
|
@@ -19660,7 +19664,8 @@ var POST_CARD_DATA = {
|
|
|
19660
19664
|
design: postCardDesignSchema,
|
|
19661
19665
|
voice: postCardVoiceSchema,
|
|
19662
19666
|
code: postCardCodeSchema,
|
|
19663
|
-
catchup: postCardCatchupSchema
|
|
19667
|
+
catchup: postCardCatchupSchema,
|
|
19668
|
+
since: postCardSinceSchema
|
|
19664
19669
|
};
|
|
19665
19670
|
|
|
19666
19671
|
// ../../packages/schema/src/contracts/agent-asks.ts
|
|
@@ -19767,6 +19772,116 @@ var ASK_SNOOZE_MAX_MS = 7 * 24 * 3600 * 1000;
|
|
|
19767
19772
|
var snoozeEchoAskInputSchema = object({ until: exports_iso.datetime({ offset: true }) });
|
|
19768
19773
|
var delegateEchoAskInputSchema = object({ agentId: string2().min(1).nullable() });
|
|
19769
19774
|
|
|
19775
|
+
// ../../packages/schema/src/contracts/agent-runs.ts
|
|
19776
|
+
var agentRunStateSchema = postCardRunSchema.shape.state;
|
|
19777
|
+
var runControlActionSchema = _enum2(["pause", "resume", "stop", "stop_undo"]);
|
|
19778
|
+
var agentRunOutputSchema = postCardRunSchema.shape.outputs.unwrap().element;
|
|
19779
|
+
var agentRunAnchorSchema = object({
|
|
19780
|
+
type: _enum2(["task", "project", "habit", "note"]),
|
|
19781
|
+
id: string2().min(1).max(64)
|
|
19782
|
+
});
|
|
19783
|
+
var runId = string2().min(1).max(100);
|
|
19784
|
+
var at = exports_iso.datetime({ offset: true });
|
|
19785
|
+
var { kind, title, agent, machine, account, since, state, stateText, now } = postCardRunSchema.shape;
|
|
19786
|
+
var { progress, progressText, steps, outputs } = postCardRunSchema.shape;
|
|
19787
|
+
var agentRunStartSchema = object({
|
|
19788
|
+
runId,
|
|
19789
|
+
threadId: string2().min(1).max(64),
|
|
19790
|
+
kind,
|
|
19791
|
+
title,
|
|
19792
|
+
agent,
|
|
19793
|
+
machine,
|
|
19794
|
+
account,
|
|
19795
|
+
since,
|
|
19796
|
+
state: state.default("running"),
|
|
19797
|
+
stateText,
|
|
19798
|
+
now,
|
|
19799
|
+
progress,
|
|
19800
|
+
progressText,
|
|
19801
|
+
steps,
|
|
19802
|
+
outputs,
|
|
19803
|
+
startedAt: at.optional(),
|
|
19804
|
+
eta: at.optional(),
|
|
19805
|
+
anchor: agentRunAnchorSchema.optional()
|
|
19806
|
+
});
|
|
19807
|
+
var agentRunUpdateSchema = object({
|
|
19808
|
+
runId,
|
|
19809
|
+
title: title.optional(),
|
|
19810
|
+
account: account.unwrap().nullable().optional(),
|
|
19811
|
+
state: state.exclude(["done", "failed", "stopped"]).optional(),
|
|
19812
|
+
stateText: stateText.unwrap().nullable().optional(),
|
|
19813
|
+
now: now.unwrap().nullable().optional(),
|
|
19814
|
+
progress: progress.unwrap().nullable().optional(),
|
|
19815
|
+
progressText: progressText.unwrap().nullable().optional(),
|
|
19816
|
+
steps,
|
|
19817
|
+
outputs,
|
|
19818
|
+
eta: at.nullable().optional()
|
|
19819
|
+
}).refine(({ runId: _, ...change }) => Object.values(change).some((v) => v !== undefined), {
|
|
19820
|
+
message: "send title, account, state, stateText, now, progress, progressText, steps, outputs or eta"
|
|
19821
|
+
});
|
|
19822
|
+
var agentRunEndSchema = object({
|
|
19823
|
+
runId,
|
|
19824
|
+
state: state.extract(["done", "failed", "stopped"]),
|
|
19825
|
+
summary: now,
|
|
19826
|
+
stateText,
|
|
19827
|
+
steps,
|
|
19828
|
+
outputs
|
|
19829
|
+
});
|
|
19830
|
+
var echoAgentRunControlSchema = object({
|
|
19831
|
+
id: string2(),
|
|
19832
|
+
action: runControlActionSchema,
|
|
19833
|
+
at: string2(),
|
|
19834
|
+
delivered: boolean2()
|
|
19835
|
+
});
|
|
19836
|
+
var echoAgentRunSchema = object({
|
|
19837
|
+
id: string2(),
|
|
19838
|
+
externalId: string2(),
|
|
19839
|
+
threadId: string2(),
|
|
19840
|
+
postId: string2().nullable(),
|
|
19841
|
+
kind: _enum2(["kanban", "job", "session"]).nullable(),
|
|
19842
|
+
title: string2(),
|
|
19843
|
+
agent: postCardWhoSchema,
|
|
19844
|
+
machine: string2(),
|
|
19845
|
+
account: string2().nullable(),
|
|
19846
|
+
state: agentRunStateSchema,
|
|
19847
|
+
stateText: string2().nullable(),
|
|
19848
|
+
since: string2().nullable(),
|
|
19849
|
+
now: string2().nullable(),
|
|
19850
|
+
progress: number2().nullable(),
|
|
19851
|
+
progressText: string2().nullable(),
|
|
19852
|
+
steps: array(postCardStepSchema),
|
|
19853
|
+
outputs: array(agentRunOutputSchema),
|
|
19854
|
+
eta: string2().nullable(),
|
|
19855
|
+
startedAt: string2(),
|
|
19856
|
+
endedAt: string2().nullable(),
|
|
19857
|
+
updatedAt: string2(),
|
|
19858
|
+
pending: runControlActionSchema.nullable(),
|
|
19859
|
+
controls: array(echoAgentRunControlSchema)
|
|
19860
|
+
});
|
|
19861
|
+
var echoAgentRunsSchema = object({ runs: array(echoAgentRunSchema) });
|
|
19862
|
+
var controlEchoAgentRunInputSchema = object({ action: runControlActionSchema });
|
|
19863
|
+
var echoAgentRunControlledSchema = object({ run: echoAgentRunSchema });
|
|
19864
|
+
var name = string2().trim().min(1).max(60);
|
|
19865
|
+
var agentFleetSchema = object({
|
|
19866
|
+
machines: array(object({
|
|
19867
|
+
name,
|
|
19868
|
+
freeMb: number2().int().nonnegative(),
|
|
19869
|
+
budget: string2().trim().max(80).optional(),
|
|
19870
|
+
lanes: number2().int().nonnegative().optional()
|
|
19871
|
+
})).max(20),
|
|
19872
|
+
accounts: array(object({
|
|
19873
|
+
name,
|
|
19874
|
+
weekLeftPct: number2().min(0).max(100),
|
|
19875
|
+
runsOutAt: at.optional()
|
|
19876
|
+
})).max(20),
|
|
19877
|
+
lanes: array(object({
|
|
19878
|
+
name,
|
|
19879
|
+
machine: name,
|
|
19880
|
+
account: name.optional(),
|
|
19881
|
+
runId: runId.optional()
|
|
19882
|
+
})).max(40)
|
|
19883
|
+
});
|
|
19884
|
+
|
|
19770
19885
|
// ../../packages/schema/src/visibility.ts
|
|
19771
19886
|
var NODE_VISIBILITY_VALUES = ["space", "owner"];
|
|
19772
19887
|
var SENSITIVE_SCOPE_GROUPS = {
|
|
@@ -19969,7 +20084,8 @@ var postCardTypeSchema = _enum2([
|
|
|
19969
20084
|
"handoff",
|
|
19970
20085
|
"decision",
|
|
19971
20086
|
"answer",
|
|
19972
|
-
"catchup"
|
|
20087
|
+
"catchup",
|
|
20088
|
+
"since"
|
|
19973
20089
|
]);
|
|
19974
20090
|
var postDigestKeySchema = string2().trim().min(1).max(40);
|
|
19975
20091
|
var POST_CARD_DATA_MAX = 16000;
|
|
@@ -20001,6 +20117,7 @@ var postCardSchema = discriminatedUnion("type", [
|
|
|
20001
20117
|
pinned("voice"),
|
|
20002
20118
|
pinned("code"),
|
|
20003
20119
|
pinned("catchup"),
|
|
20120
|
+
pinned("since"),
|
|
20004
20121
|
object({
|
|
20005
20122
|
type: postCardTypeSchema.exclude([
|
|
20006
20123
|
"text",
|
|
@@ -20026,7 +20143,8 @@ var postCardSchema = discriminatedUnion("type", [
|
|
|
20026
20143
|
"design",
|
|
20027
20144
|
"voice",
|
|
20028
20145
|
"code",
|
|
20029
|
-
"catchup"
|
|
20146
|
+
"catchup",
|
|
20147
|
+
"since"
|
|
20030
20148
|
]),
|
|
20031
20149
|
data: record(string2(), unknown()).default({})
|
|
20032
20150
|
})
|
|
@@ -20256,6 +20374,13 @@ var interruptFrameSchema = frame("interrupt", {
|
|
|
20256
20374
|
threadId: ulidSchema,
|
|
20257
20375
|
memberId: string2().min(1)
|
|
20258
20376
|
});
|
|
20377
|
+
var runControlFrameSchema = frame("run.control", {
|
|
20378
|
+
controlId: string2().min(1),
|
|
20379
|
+
runId: string2().min(1),
|
|
20380
|
+
action: runControlActionSchema,
|
|
20381
|
+
memberId: string2().min(1),
|
|
20382
|
+
threadId: ulidSchema
|
|
20383
|
+
});
|
|
20259
20384
|
var ackFrameSchema = frame("ack", {
|
|
20260
20385
|
ref: string2().min(1),
|
|
20261
20386
|
ok: boolean2(),
|
|
@@ -20285,6 +20410,7 @@ var agentGatewayServerFrameSchema = discriminatedUnion("type", [
|
|
|
20285
20410
|
askSnoozedFrameSchema,
|
|
20286
20411
|
askDelegatedFrameSchema,
|
|
20287
20412
|
interruptFrameSchema,
|
|
20413
|
+
runControlFrameSchema,
|
|
20288
20414
|
confirmationOutcomeFrameSchema,
|
|
20289
20415
|
ackFrameSchema,
|
|
20290
20416
|
postUnseenFrameSchema
|
|
@@ -20307,6 +20433,13 @@ var askFrameSchema = frame("ask", { ask: agentAskSchema });
|
|
|
20307
20433
|
var askAnswerAckFrameSchema = frame("ask.answer.ack", { askId: string2().min(1) });
|
|
20308
20434
|
var askExpiredAckFrameSchema = frame("ask.expired.ack", { askId: string2().min(1) });
|
|
20309
20435
|
var askDelegatedAckFrameSchema = frame("ask.delegated.ack", { askId: string2().min(1) });
|
|
20436
|
+
var runStartFrameSchema = frame("run.start", { run: agentRunStartSchema });
|
|
20437
|
+
var runUpdateFrameSchema = frame("run.update", { run: agentRunUpdateSchema });
|
|
20438
|
+
var runEndFrameSchema = frame("run.end", { run: agentRunEndSchema });
|
|
20439
|
+
var runControlAckFrameSchema = frame("run.control.ack", {
|
|
20440
|
+
controlId: string2().min(1)
|
|
20441
|
+
});
|
|
20442
|
+
var fleetFrameSchema = frame("fleet", agentFleetSchema.shape);
|
|
20310
20443
|
var attachmentTranscriptFrameSchema = frame("attachment.transcript", {
|
|
20311
20444
|
attachmentId: ulidSchema,
|
|
20312
20445
|
text: string2().trim().min(1).max(AGENT_TRANSCRIPT_MAX)
|
|
@@ -20325,6 +20458,11 @@ var agentGatewayClientFrameSchema = discriminatedUnion("type", [
|
|
|
20325
20458
|
askAnswerAckFrameSchema,
|
|
20326
20459
|
askExpiredAckFrameSchema,
|
|
20327
20460
|
askDelegatedAckFrameSchema,
|
|
20461
|
+
runStartFrameSchema,
|
|
20462
|
+
runUpdateFrameSchema,
|
|
20463
|
+
runEndFrameSchema,
|
|
20464
|
+
runControlAckFrameSchema,
|
|
20465
|
+
fleetFrameSchema,
|
|
20328
20466
|
attachmentTranscriptFrameSchema
|
|
20329
20467
|
]);
|
|
20330
20468
|
var SERVER_FRAME_TYPES = new Set(agentGatewayServerFrameSchema.options.map((o) => o.shape.type.value));
|
|
@@ -27813,6 +27951,7 @@ var echoPostSchema = object({
|
|
|
27813
27951
|
final: boolean2(),
|
|
27814
27952
|
runStatus: runStatusSchema.nullable(),
|
|
27815
27953
|
seenAt: exports_coerce.date().nullable().default(null),
|
|
27954
|
+
readAt: exports_coerce.date().nullable().default(null),
|
|
27816
27955
|
title: string2().nullable().default(null),
|
|
27817
27956
|
runSteps: array(runStepSchema).default([]),
|
|
27818
27957
|
runEndedAt: exports_coerce.date().nullable().default(null),
|
|
@@ -27932,6 +28071,7 @@ var createStandingThreadInputSchema = object({
|
|
|
27932
28071
|
}).strict();
|
|
27933
28072
|
var updateEchoThreadInputSchema = object({
|
|
27934
28073
|
push: threadPushSchema.optional(),
|
|
28074
|
+
notifyLevel: threadNotifyLevelSchema.optional(),
|
|
27935
28075
|
title: threadTitleSchema.optional(),
|
|
27936
28076
|
areaIds: threadAreaIdsSchema.optional(),
|
|
27937
28077
|
archived: boolean2().optional(),
|
|
@@ -27941,7 +28081,11 @@ var updateEchoThreadInputSchema = object({
|
|
|
27941
28081
|
description: threadDescriptionSchema.optional(),
|
|
27942
28082
|
memoryScope: threadMemoryScopeSchema.optional()
|
|
27943
28083
|
}).strict().refine((e) => Object.values(e).some((v) => v !== undefined), {
|
|
27944
|
-
message: "send push, title, areaIds, archived, peopleCapture, kind, icon, description or memoryScope"
|
|
28084
|
+
message: "send push, notifyLevel, title, areaIds, archived, peopleCapture, kind, icon, description or memoryScope"
|
|
28085
|
+
});
|
|
28086
|
+
var echoPostReadSchema = object({
|
|
28087
|
+
postId: string2(),
|
|
28088
|
+
readAt: exports_coerce.date().nullable()
|
|
27945
28089
|
});
|
|
27946
28090
|
var createEchoThreadInputSchema = object({
|
|
27947
28091
|
title: threadTitleSchema.optional(),
|
|
@@ -29106,7 +29250,7 @@ var healthEntrySourceSchema = _enum2(["chat", "manual", "import"]);
|
|
|
29106
29250
|
var severitySchema = number2().int().min(0).max(10);
|
|
29107
29251
|
var fuzzyDateSchema = string2().regex(/^\d{4}(-(0[1-9]|1[0-2])(-(0[1-9]|[12]\d|3[01]))?)?$/, "must be YYYY, YYYY-MM or YYYY-MM-DD");
|
|
29108
29252
|
var civilDateSchema2 = string2().regex(/^\d{4}-\d{2}-\d{2}$/, "must be YYYY-MM-DD");
|
|
29109
|
-
var
|
|
29253
|
+
var title2 = string2().trim().min(1).max(200);
|
|
29110
29254
|
var text3 = (max) => string2().trim().min(1).max(max);
|
|
29111
29255
|
var instant = exports_coerce.date();
|
|
29112
29256
|
var spine = {
|
|
@@ -29184,7 +29328,7 @@ var healthConsentStateSchema = object({
|
|
|
29184
29328
|
var subject = { subjectNodeId: ulidSchema.nullish() };
|
|
29185
29329
|
var createHealthConditionInputSchema = object({
|
|
29186
29330
|
id: ulidSchema.optional(),
|
|
29187
|
-
title,
|
|
29331
|
+
title: title2,
|
|
29188
29332
|
status: healthConditionStatusSchema.optional(),
|
|
29189
29333
|
onset: fuzzyDateSchema.nullish(),
|
|
29190
29334
|
resolvedOn: civilDateSchema2.nullish(),
|
|
@@ -29197,7 +29341,7 @@ var addHealthCareTeamInputSchema = object({ contactId: ulidSchema, label: text3(
|
|
|
29197
29341
|
var updateHealthConditionInputSchema = createHealthConditionInputSchema.omit({ id: true, subjectNodeId: true }).partial().strict();
|
|
29198
29342
|
var episodeFields = object({
|
|
29199
29343
|
id: ulidSchema.optional(),
|
|
29200
|
-
title,
|
|
29344
|
+
title: title2,
|
|
29201
29345
|
status: healthEpisodeStatusSchema.optional(),
|
|
29202
29346
|
startedAt: instant.optional(),
|
|
29203
29347
|
bodyRegion: bodyRegionSchema.nullish(),
|
|
@@ -29243,7 +29387,7 @@ var correctHealthSymptomInputSchema = object({ id: ulidSchema.optional(), ...sym
|
|
|
29243
29387
|
});
|
|
29244
29388
|
var createHealthEncounterInputSchema = object({
|
|
29245
29389
|
id: ulidSchema.optional(),
|
|
29246
|
-
title:
|
|
29390
|
+
title: title2.optional(),
|
|
29247
29391
|
kind: healthEncounterKindSchema.optional(),
|
|
29248
29392
|
at: instant,
|
|
29249
29393
|
episodeId: ulidSchema.nullish(),
|
|
@@ -29259,7 +29403,7 @@ var createHealthEncounterInputSchema = object({
|
|
|
29259
29403
|
var updateHealthEncounterInputSchema = createHealthEncounterInputSchema.omit({ id: true, subjectNodeId: true }).partial().strict();
|
|
29260
29404
|
var createHealthMedicationInputSchema = object({
|
|
29261
29405
|
id: ulidSchema.optional(),
|
|
29262
|
-
title,
|
|
29406
|
+
title: title2,
|
|
29263
29407
|
kind: healthMedicationKindSchema.optional(),
|
|
29264
29408
|
schedule: healthMedicationScheduleSchema.optional(),
|
|
29265
29409
|
ingredient: text3(200).nullish(),
|
|
@@ -31301,7 +31445,7 @@ var HEALTH_LAB_FLAG_VALUES = ["low", "normal", "high"];
|
|
|
31301
31445
|
var healthLabFlagSchema = _enum2(HEALTH_LAB_FLAG_VALUES);
|
|
31302
31446
|
var healthLabPanelStatusSchema = _enum2(["draft", "confirmed"]);
|
|
31303
31447
|
var labAnalyteKeySchema = string2().regex(/^[a-z0-9]+(_[a-z0-9]+)*$/, "must be lowercase words joined by _").max(80);
|
|
31304
|
-
var
|
|
31448
|
+
var title3 = string2().trim().min(1).max(200);
|
|
31305
31449
|
var text4 = (max) => string2().trim().min(1).max(max);
|
|
31306
31450
|
var instant2 = exports_coerce.date();
|
|
31307
31451
|
var amount4 = number2().finite();
|
|
@@ -31369,7 +31513,7 @@ var healthLabOverviewSchema = object({
|
|
|
31369
31513
|
var healthLabResultInputSchema = object({
|
|
31370
31514
|
id: ulidSchema.optional(),
|
|
31371
31515
|
analyte: labAnalyteKeySchema.optional(),
|
|
31372
|
-
name:
|
|
31516
|
+
name: title3,
|
|
31373
31517
|
group: labGroupSchema.optional(),
|
|
31374
31518
|
loinc: text4(20).nullish(),
|
|
31375
31519
|
valueNum: amount4.nullish(),
|
|
@@ -31384,7 +31528,7 @@ var healthLabResultInputSchema = object({
|
|
|
31384
31528
|
});
|
|
31385
31529
|
var createHealthLabPanelInputSchema = object({
|
|
31386
31530
|
id: ulidSchema.optional(),
|
|
31387
|
-
title:
|
|
31531
|
+
title: title3.optional(),
|
|
31388
31532
|
specimenAt: instant2,
|
|
31389
31533
|
labName: text4(200).nullish(),
|
|
31390
31534
|
orderedByContactId: ulidSchema.nullish(),
|
|
@@ -39433,18 +39577,18 @@ var runPlayStatusValues = [
|
|
|
39433
39577
|
"dropped"
|
|
39434
39578
|
];
|
|
39435
39579
|
var runPlayStatusSchema = _enum2(runPlayStatusValues);
|
|
39436
|
-
var
|
|
39580
|
+
var name2 = string2().trim().min(1).max(200);
|
|
39437
39581
|
var text5 = string2().trim().max(2000);
|
|
39438
39582
|
var shortText2 = string2().trim().max(300);
|
|
39439
39583
|
var isoDate = string2().regex(/^\d{4}-\d{2}-\d{2}$/, "must be an ISO date (YYYY-MM-DD)");
|
|
39440
39584
|
var ref = string2().trim().min(1).max(200);
|
|
39441
39585
|
var runCharacterSchema = object({
|
|
39442
|
-
name,
|
|
39586
|
+
name: name2,
|
|
39443
39587
|
pronoun: _enum2(["he", "she", "they"]).nullish(),
|
|
39444
39588
|
subtitle: shortText2.nullish(),
|
|
39445
39589
|
level: number2().int().min(0).max(1e4).nullish(),
|
|
39446
39590
|
build: shortText2.nullish(),
|
|
39447
|
-
stats: array(object({ k:
|
|
39591
|
+
stats: array(object({ k: name2, v: union([number2(), shortText2]) }).strict()).max(40).optional(),
|
|
39448
39592
|
traits: array(shortText2).max(20).optional(),
|
|
39449
39593
|
backstory: text5.nullish(),
|
|
39450
39594
|
rules: array(shortText2).max(30).optional(),
|
|
@@ -39453,12 +39597,12 @@ var runCharacterSchema = object({
|
|
|
39453
39597
|
var runArcSchema = object({
|
|
39454
39598
|
title: shortText2.nullish(),
|
|
39455
39599
|
chapters: array(object({
|
|
39456
|
-
key:
|
|
39457
|
-
name,
|
|
39600
|
+
key: name2,
|
|
39601
|
+
name: name2,
|
|
39458
39602
|
range: shortText2.nullish(),
|
|
39459
39603
|
moral: text5.nullish()
|
|
39460
39604
|
}).strict()).max(40),
|
|
39461
|
-
current:
|
|
39605
|
+
current: name2.nullish()
|
|
39462
39606
|
}).strict();
|
|
39463
39607
|
var runStepStatusValues = ["done", "now", "todo", "skipped"];
|
|
39464
39608
|
var runStepStatusSchema = _enum2(runStepStatusValues);
|
|
@@ -39471,7 +39615,7 @@ var runQuestStatusValues = ["active", "paused", "planned", "done", "failed"];
|
|
|
39471
39615
|
var runQuestStatusSchema = _enum2(runQuestStatusValues);
|
|
39472
39616
|
var runQuestSchema = object({
|
|
39473
39617
|
ref: ref.nullish(),
|
|
39474
|
-
name,
|
|
39618
|
+
name: name2,
|
|
39475
39619
|
line: shortText2.nullish(),
|
|
39476
39620
|
status: runQuestStatusSchema.default("active"),
|
|
39477
39621
|
objective: text5.nullish(),
|
|
@@ -39486,7 +39630,7 @@ var runQuestSchema = object({
|
|
|
39486
39630
|
}).strict()).max(40).optional(),
|
|
39487
39631
|
pausedAt: shortText2.nullish(),
|
|
39488
39632
|
why: text5.nullish(),
|
|
39489
|
-
revisitAt:
|
|
39633
|
+
revisitAt: name2.nullish()
|
|
39490
39634
|
}).strict();
|
|
39491
39635
|
var runNextStepsSchema = object({
|
|
39492
39636
|
items: array(shortText2.pipe(string2().min(1))).max(3),
|
|
@@ -39495,50 +39639,50 @@ var runNextStepsSchema = object({
|
|
|
39495
39639
|
}).strict();
|
|
39496
39640
|
var runChoiceSchema = object({
|
|
39497
39641
|
ref: ref.nullish(),
|
|
39498
|
-
title:
|
|
39642
|
+
title: name2,
|
|
39499
39643
|
place: shortText2.nullish(),
|
|
39500
39644
|
status: _enum2(["made", "planned"]).default("made"),
|
|
39501
39645
|
options: array(shortText2).max(6).optional(),
|
|
39502
39646
|
why: text5.nullish(),
|
|
39503
39647
|
consequence: text5.nullish(),
|
|
39504
|
-
revisitAt:
|
|
39505
|
-
chapter:
|
|
39648
|
+
revisitAt: name2.nullish(),
|
|
39649
|
+
chapter: name2.nullish(),
|
|
39506
39650
|
tone: _enum2(["good", "grey", "dark"]).nullish(),
|
|
39507
39651
|
on: isoDate.nullish()
|
|
39508
39652
|
}).strict();
|
|
39509
39653
|
var runHomeSchema = object({
|
|
39510
39654
|
ref: ref.nullish(),
|
|
39511
|
-
name,
|
|
39655
|
+
name: name2,
|
|
39512
39656
|
role: _enum2(["home", "collector", "storage", "planned", "later"]).default("home"),
|
|
39513
39657
|
place: shortText2.nullish(),
|
|
39514
|
-
upgrades: array(object({ name, done: boolean2().default(false) }).strict()).max(40).optional(),
|
|
39658
|
+
upgrades: array(object({ name: name2, done: boolean2().default(false) }).strict()).max(40).optional(),
|
|
39515
39659
|
steward: shortText2.nullish(),
|
|
39516
39660
|
note: text5.nullish()
|
|
39517
39661
|
}).strict();
|
|
39518
39662
|
var runPersonSchema = object({
|
|
39519
39663
|
ref: ref.nullish(),
|
|
39520
|
-
name,
|
|
39664
|
+
name: name2,
|
|
39521
39665
|
role: _enum2(["child", "spouse", "steward", "follower", "pet", "rival", "other"]),
|
|
39522
39666
|
status: _enum2(["with", "planned", "lost"]).default("with"),
|
|
39523
39667
|
home: shortText2.nullish(),
|
|
39524
39668
|
note: text5.nullish()
|
|
39525
39669
|
}).strict();
|
|
39526
39670
|
var runMountSchema = object({
|
|
39527
|
-
name,
|
|
39671
|
+
name: name2,
|
|
39528
39672
|
status: _enum2(["with", "planned", "lost"]).default("with"),
|
|
39529
39673
|
note: text5.nullish()
|
|
39530
39674
|
}).strict();
|
|
39531
39675
|
var runUniqueSchema = object({
|
|
39532
39676
|
ref: ref.nullish(),
|
|
39533
|
-
name,
|
|
39677
|
+
name: name2,
|
|
39534
39678
|
status: _enum2(["have", "now", "want"]).default("have"),
|
|
39535
39679
|
source: shortText2.nullish(),
|
|
39536
39680
|
displayAt: shortText2.nullish(),
|
|
39537
|
-
set:
|
|
39681
|
+
set: name2.nullish()
|
|
39538
39682
|
}).strict();
|
|
39539
39683
|
var runChecklistSchema = object({
|
|
39540
39684
|
key: string2().trim().min(1).max(60).regex(/^[a-z0-9][a-z0-9_-]*$/, "must be a lowercase slug"),
|
|
39541
|
-
label:
|
|
39685
|
+
label: name2,
|
|
39542
39686
|
total: number2().int().min(0).max(5000).nullish(),
|
|
39543
39687
|
items: array(object({ id: ref, label: shortText2.nullish() }).strict()).max(5000).optional(),
|
|
39544
39688
|
done: array(ref).max(5000),
|
|
@@ -39547,7 +39691,7 @@ var runChecklistSchema = object({
|
|
|
39547
39691
|
legend: shortText2.nullish()
|
|
39548
39692
|
}).strict();
|
|
39549
39693
|
var runTeamMemberSchema = object({
|
|
39550
|
-
species:
|
|
39694
|
+
species: name2,
|
|
39551
39695
|
nick: shortText2.nullish(),
|
|
39552
39696
|
level: number2().int().min(1).max(100).nullish(),
|
|
39553
39697
|
nature: shortText2.nullish(),
|
|
@@ -39561,8 +39705,8 @@ var runAchievementsSchema = object({
|
|
|
39561
39705
|
source: _enum2(["steam", "xbox", "psn", "manual"]).default("manual"),
|
|
39562
39706
|
total: number2().int().min(0).max(5000).nullish(),
|
|
39563
39707
|
enabled: boolean2().default(true),
|
|
39564
|
-
unlocked: array(object({ name, on: isoDate.nullish(), hint: shortText2.nullish(), key: ref.nullish() }).strict()).max(5000),
|
|
39565
|
-
locked: array(object({ name, hint: shortText2.nullish(), key: ref.nullish() }).strict()).max(5000).optional(),
|
|
39708
|
+
unlocked: array(object({ name: name2, on: isoDate.nullish(), hint: shortText2.nullish(), key: ref.nullish() }).strict()).max(5000),
|
|
39709
|
+
locked: array(object({ name: name2, hint: shortText2.nullish(), key: ref.nullish() }).strict()).max(5000).optional(),
|
|
39566
39710
|
syncedAt: string2().datetime({ offset: true }).nullish()
|
|
39567
39711
|
}).strict();
|
|
39568
39712
|
var runRareFindsSchema = object({
|
|
@@ -39572,7 +39716,7 @@ var runRareFindsSchema = object({
|
|
|
39572
39716
|
}).strict();
|
|
39573
39717
|
var runInstallSchema = object({
|
|
39574
39718
|
edition: shortText2.nullish(),
|
|
39575
|
-
mods: array(object({ name, url: string2().url().max(2000).nullish() }).strict()).max(200).default([]),
|
|
39719
|
+
mods: array(object({ name: name2, url: string2().url().max(2000).nullish() }).strict()).max(200).default([]),
|
|
39576
39720
|
savePath: string2().trim().max(500).nullish(),
|
|
39577
39721
|
lastBackup: isoDate.nullish(),
|
|
39578
39722
|
notes: text5.nullish()
|
|
@@ -39582,7 +39726,7 @@ var runSaveFields = {
|
|
|
39582
39726
|
game: _enum2(["skyrim"]).default("skyrim"),
|
|
39583
39727
|
fileName: shortText2.nullish(),
|
|
39584
39728
|
saveNumber: number2().int().min(0).max(1e9),
|
|
39585
|
-
playerName:
|
|
39729
|
+
playerName: name2,
|
|
39586
39730
|
level: number2().int().min(0).max(1e4),
|
|
39587
39731
|
location: shortText2,
|
|
39588
39732
|
race: shortText2.nullish(),
|
|
@@ -39628,7 +39772,7 @@ var runFacetSchema = object({
|
|
|
39628
39772
|
install: runInstallSchema.nullish(),
|
|
39629
39773
|
save: runSaveSchema.nullish(),
|
|
39630
39774
|
money: object({ goal: shortText2.nullish(), purpose: shortText2.nullish() }).strict().nullish(),
|
|
39631
|
-
links: array(object({ label:
|
|
39775
|
+
links: array(object({ label: name2, url: string2().url().max(2000) }).strict()).max(50).optional()
|
|
39632
39776
|
}).strict();
|
|
39633
39777
|
var runListSectionValues = [
|
|
39634
39778
|
"orderOfPlay",
|
|
@@ -39782,12 +39926,12 @@ var runSaveHeaderResultSchema = object({
|
|
|
39782
39926
|
var createRunInputSchema = object({
|
|
39783
39927
|
id: ulidSchema,
|
|
39784
39928
|
gameId: ulidSchema,
|
|
39785
|
-
title:
|
|
39929
|
+
title: name2,
|
|
39786
39930
|
status: runPlayStatusSchema.optional(),
|
|
39787
39931
|
facet: runFacetSchema.optional()
|
|
39788
39932
|
}).strict();
|
|
39789
39933
|
var updateRunInputSchema = object({
|
|
39790
|
-
title:
|
|
39934
|
+
title: name2.optional(),
|
|
39791
39935
|
status: runPlayStatusSchema.optional(),
|
|
39792
39936
|
facet: runFacetSchema.optional()
|
|
39793
39937
|
}).strict();
|
package/package.json
CHANGED