@fish-under-sea/dsh-client-ui-task-board-fish 2.2.2 → 2.3.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.
Files changed (104) hide show
  1. package/README.en.md +4 -4
  2. package/package.json +5 -4
  3. package/README.i18n.yaml +0 -6
  4. package/README.md +0 -31
  5. package/README.zh.md +0 -31
  6. package/lib/client.js +0 -15861
  7. package/lib/client.js.map +0 -1
  8. package/lib/index.js +0 -12653
  9. package/lib/types/client/CardDefaultPresetField.d.ts +0 -35
  10. package/lib/types/client/PluginSettingsCard.d.ts +0 -255
  11. package/lib/types/client/RangeBubble.d.ts +0 -46
  12. package/lib/types/client/SegmentGroup.d.ts +0 -28
  13. package/lib/types/client/TaskBoardSettingsCard.d.ts +0 -155
  14. package/lib/types/client/apply-guard.d.ts +0 -25
  15. package/lib/types/client/board/AttachmentField.d.ts +0 -70
  16. package/lib/types/client/board/ClampedMarkdown.d.ts +0 -3
  17. package/lib/types/client/board/ConfirmDialog.d.ts +0 -15
  18. package/lib/types/client/board/EditTaskModal.d.ts +0 -17
  19. package/lib/types/client/board/ExecutionLog.d.ts +0 -24
  20. package/lib/types/client/board/LinkSubtaskModal.d.ts +0 -14
  21. package/lib/types/client/board/NewTaskModal.d.ts +0 -26
  22. package/lib/types/client/board/ReasoningEffortField.d.ts +0 -25
  23. package/lib/types/client/board/TagManagerModal.d.ts +0 -26
  24. package/lib/types/client/board/TaskBoard.d.ts +0 -26
  25. package/lib/types/client/board/TaskCard.d.ts +0 -36
  26. package/lib/types/client/board/TaskDetail.d.ts +0 -9
  27. package/lib/types/client/board/TaskForm.d.ts +0 -76
  28. package/lib/types/client/board/VerificationReport.d.ts +0 -10
  29. package/lib/types/client/board/card-view.d.ts +0 -113
  30. package/lib/types/client/board/icons.d.ts +0 -32
  31. package/lib/types/client/board/model-options.d.ts +0 -87
  32. package/lib/types/client/board/overlay.d.ts +0 -69
  33. package/lib/types/client/board/parse-model-pref.d.ts +0 -4
  34. package/lib/types/client/board/preset-label.d.ts +0 -43
  35. package/lib/types/client/board/preset-roster.d.ts +0 -45
  36. package/lib/types/client/board/source-group.d.ts +0 -27
  37. package/lib/types/client/board/status-key.d.ts +0 -19
  38. package/lib/types/client/board/task-markdown.d.ts +0 -19
  39. package/lib/types/client/body-mutations.d.ts +0 -45
  40. package/lib/types/client/host-api.d.ts +0 -88
  41. package/lib/types/client/index.d.ts +0 -128
  42. package/lib/types/client/locales.d.ts +0 -521
  43. package/lib/types/client/main-session.d.ts +0 -32
  44. package/lib/types/client/native-panel.d.ts +0 -48
  45. package/lib/types/client/pending-verify.d.ts +0 -47
  46. package/lib/types/client/plugin-card-seat.d.ts +0 -110
  47. package/lib/types/client/schedule-presets.d.ts +0 -10
  48. package/lib/types/client/schedule-zone.d.ts +0 -97
  49. package/lib/types/client/seats.d.ts +0 -18
  50. package/lib/types/client/service.d.ts +0 -35
  51. package/lib/types/client/settings-entry-form.d.ts +0 -49
  52. package/lib/types/client/settings-form.d.ts +0 -235
  53. package/lib/types/core/attachment.d.ts +0 -132
  54. package/lib/types/core/card-defaults.d.ts +0 -78
  55. package/lib/types/core/controller.d.ts +0 -422
  56. package/lib/types/core/degraded-reason.d.ts +0 -46
  57. package/lib/types/core/execution-summary.d.ts +0 -52
  58. package/lib/types/core/extension.d.ts +0 -399
  59. package/lib/types/core/freeze-snapshot.d.ts +0 -71
  60. package/lib/types/core/handover.d.ts +0 -70
  61. package/lib/types/core/issue-form.d.ts +0 -16
  62. package/lib/types/core/launch-width.d.ts +0 -31
  63. package/lib/types/core/package-name.d.ts +0 -9
  64. package/lib/types/core/poll-cadence.d.ts +0 -31
  65. package/lib/types/core/reasoning-effort.d.ts +0 -57
  66. package/lib/types/core/schedule.d.ts +0 -124
  67. package/lib/types/core/session-reuse.d.ts +0 -30
  68. package/lib/types/core/spend-budget.d.ts +0 -28
  69. package/lib/types/core/store.d.ts +0 -64
  70. package/lib/types/core/subtask.d.ts +0 -204
  71. package/lib/types/core/tasks.d.ts +0 -685
  72. package/lib/types/core/use-cases/task-archive.d.ts +0 -20
  73. package/lib/types/core/use-cases/task-create.d.ts +0 -32
  74. package/lib/types/core/use-cases/task-delete.d.ts +0 -27
  75. package/lib/types/core/use-cases/task-parent.d.ts +0 -21
  76. package/lib/types/core/use-cases/task-schedule.d.ts +0 -96
  77. package/lib/types/core/use-cases/task-tag.d.ts +0 -84
  78. package/lib/types/core/use-cases/task-update.d.ts +0 -77
  79. package/lib/types/core/verification-budget.d.ts +0 -52
  80. package/lib/types/core/verification.d.ts +0 -753
  81. package/lib/types/core/wire-projection.d.ts +0 -35
  82. package/lib/types/core/workspace-target.d.ts +0 -61
  83. package/lib/types/dsh-home.d.ts +0 -16
  84. package/lib/types/host/agent-tools.d.ts +0 -27
  85. package/lib/types/host/attachments.d.ts +0 -250
  86. package/lib/types/host/extension-registry.d.ts +0 -151
  87. package/lib/types/host/launch-admission.d.ts +0 -71
  88. package/lib/types/host/llm-dispatch.d.ts +0 -63
  89. package/lib/types/host/verification-gate.d.ts +0 -95
  90. package/lib/types/host/verification-runner.d.ts +0 -139
  91. package/lib/types/host/workspace-evidence.d.ts +0 -53
  92. package/lib/types/host-ai.d.ts +0 -51
  93. package/lib/types/host-ledger.d.ts +0 -452
  94. package/lib/types/host-routes.d.ts +0 -99
  95. package/lib/types/host-runner.d.ts +0 -401
  96. package/lib/types/host-service.d.ts +0 -517
  97. package/lib/types/host-spend.d.ts +0 -52
  98. package/lib/types/http.d.ts +0 -59
  99. package/lib/types/index.d.ts +0 -441
  100. package/lib/types/loopback.d.ts +0 -64
  101. package/lib/types/mount-once.d.ts +0 -55
  102. package/lib/types/power-inhibitor.d.ts +0 -73
  103. package/lib/types/protocol.d.ts +0 -253
  104. package/lib/types/tool-surface.d.ts +0 -72
@@ -1,20 +0,0 @@
1
- import type { TaskRecord } from '../tasks.ts';
2
- /** Result of an archive transition. */
3
- export interface ArchiveTaskResult {
4
- /** The next ledger. */
5
- tasks: readonly TaskRecord[];
6
- /** Whether the archive was applied (false = unknown task / not archivable). */
7
- archived: boolean;
8
- }
9
- /**
10
- * Archive one task and its subtasks: only a running member keeps the group on
11
- * the board (its runner still owns its lifecycle until the execution settles);
12
- * any other status can be archived. Archiving disarms schedules; an
13
- * already-archived task is a no-op.
14
- */
15
- export declare function applyArchiveTask(tasks: readonly TaskRecord[], id: string, now: number, maxSubtaskDepth?: number): ArchiveTaskResult;
16
- /**
17
- * Restore one task back onto the main board, together with its ancestors (an
18
- * on-board subtask must not point at an archived parent) and its subtasks.
19
- */
20
- export declare function applyRestoreTask(tasks: readonly TaskRecord[], id: string, now: number, maxSubtaskDepth?: number): ArchiveTaskResult;
@@ -1,32 +0,0 @@
1
- import { type CardDefaults } from '../card-defaults.ts';
2
- import { type NewTaskInput, type TaskRecord } from '../tasks.ts';
3
- /** Result of a create transition: the new task (when accepted) + the next ledger. */
4
- export interface CreateTaskResult {
5
- /** The minted task, or undefined when the input was rejected. */
6
- task: TaskRecord | undefined;
7
- /** The next ledger; identical reference when rejected. */
8
- tasks: readonly TaskRecord[];
9
- /** Why the input was rejected; absent when a task was minted. */
10
- error?: string;
11
- }
12
- /**
13
- * Apply a create against the current ledger. Returns the new task and the
14
- * appended ledger, or the unchanged ledger when the title is blank or the
15
- * requested parent link is refused.
16
- *
17
- * The execution targets resolve through {@link resolveCardTargets}: what the
18
- * caller sent wins, then the parent's own pins, then - only when the caller
19
- * opted in with `applyCardDefaults` - the deployment's configured new-card
20
- * defaults. Without the flag the resolution sees no defaults at all, which is
21
- * exactly the inline parent inheritance this path has always applied. The
22
- * workspace is not part of that resolution: a subtask still takes the parent's
23
- * workspace, and the defaults never name one.
24
- * @param tasks - current ledger.
25
- * @param input - raw user input (title/description/prompt + optional schedule/parent).
26
- * @param now - clock instant (ms epoch).
27
- * @param id - minted task id.
28
- * @param maxSubtaskDepth - deployment subtask depth limit.
29
- * @param hostTimeZone - zone a rule that stores no zone of its own follows.
30
- * @param cardDefaults - the deployment's new-card defaults, read live at creation.
31
- */
32
- export declare function applyCreateTask(tasks: readonly TaskRecord[], input: NewTaskInput, now: number, id: string, maxSubtaskDepth?: number, hostTimeZone?: string, cardDefaults?: CardDefaults): CreateTaskResult;
@@ -1,27 +0,0 @@
1
- /**
2
- * Delete-task use case: drop a task from the ledger and clear the selection
3
- * when it pointed at the removed task. Pure ledger transition (no persistence
4
- * or notify - the controller orchestrates those).
5
- *
6
- * A task that still has subtasks is refused: deleting the parent would leave
7
- * dangling child links, and silently detaching (or cascading) the children is
8
- * a data-loss decision the user must make explicitly.
9
- */
10
- import type { TaskRecord } from '../tasks.ts';
11
- /** Result of a delete transition. */
12
- export interface DeleteTaskResult {
13
- /** The next ledger (the removed task absent). */
14
- tasks: readonly TaskRecord[];
15
- /** Whether the previous selection referenced the removed task. */
16
- selectionCleared: boolean;
17
- /** True when the task still carries subtasks, so nothing was removed. */
18
- blocked: boolean;
19
- }
20
- /**
21
- * Apply a delete across the ledger. The selection (a task id) is cleared when
22
- * it matches the removed task, so the UI never lingers on a vanished detail.
23
- * @param tasks - current ledger.
24
- * @param selectedTaskId - the currently selected task id (may be undefined).
25
- * @param id - the task to remove.
26
- */
27
- export declare function applyDeleteTask(tasks: readonly TaskRecord[], selectedTaskId: string | undefined, id: string): DeleteTaskResult;
@@ -1,21 +0,0 @@
1
- import type { TaskRecord } from '../tasks.ts';
2
- /** Result of a parent-link transition. */
3
- export interface SetParentResult {
4
- /** The next ledger; the input reference when refused. */
5
- tasks: readonly TaskRecord[];
6
- /** Whether the link (or the detachment) was stored. */
7
- applied: boolean;
8
- /** User-facing refusal reason; absent when applied. */
9
- error?: string;
10
- }
11
- /**
12
- * Attach or detach one task. A null (or blank) parent detaches, which is always
13
- * allowed for a known on-board task; attaching validates the whole chain so a
14
- * cyclic or too-deep ledger can never be stored.
15
- * @param tasks - current ledger.
16
- * @param id - the task being moved.
17
- * @param parentId - the new parent, or null to detach.
18
- * @param now - clock instant (ms epoch).
19
- * @param maxSubtaskDepth - deployment subtask depth limit.
20
- */
21
- export declare function applySetParent(tasks: readonly TaskRecord[], id: string, parentId: string | null, now: number, maxSubtaskDepth?: number): SetParentResult;
@@ -1,96 +0,0 @@
1
- import { type ScheduleMode, type ScheduleStopReason, type TaskRecord } from '../tasks.ts';
2
- /** Fields the schedule use case may change on a rule. */
3
- export interface SetSchedulePatch {
4
- enabled?: boolean;
5
- /** Which kind of plan to write; an absent key keeps the current mode. */
6
- mode?: ScheduleMode;
7
- /** 5-field cron expression of a recurring rule. */
8
- cron?: string;
9
- /** Planned instant of a one-shot rule (ms epoch). */
10
- at?: number;
11
- /** IANA zone for the wall clock; `null` clears it back to the Host zone. */
12
- timeZone?: string | null;
13
- /** Run cap of a recurring rule; `null` clears it back to unlimited. */
14
- maxRuns?: number | null;
15
- }
16
- /** Result of arming/disarming a rule. */
17
- export interface SetScheduleResult {
18
- /** The next ledger; unchanged reference when rejected. */
19
- tasks: readonly TaskRecord[];
20
- /** Whether the rule was applied (false on unknown task / invalid plan). */
21
- applied: boolean;
22
- }
23
- /**
24
- * Set an on-board task's scheduling rule. An unknown or archived task, an
25
- * unusable zone, a blank or invalid cron, a one-shot with no usable instant,
26
- * a one-shot armed in the past, and a run cap that is not a positive integer
27
- * are all rejected (state untouched). An enabled rule computes its next run
28
- * instant immediately — a one-shot's next instant IS its planned instant — and
29
- * a disabled rule carries none.
30
- *
31
- * Arming a rule that was not enabled, or switching its kind, starts a fresh
32
- * budget: the run counter and any previous stop/skip record are cleared. Edits
33
- * to a live rule (expression, zone, cap) keep the consumed count, so an
34
- * already-spent budget can never silently reset and overrun.
35
- * @param tasks - current ledger.
36
- * @param id - the task to schedule.
37
- * @param patch - rule fields to change (absent fields keep their current value).
38
- * @param now - clock instant (ms epoch).
39
- * @param hostTimeZone - zone a rule with no stored zone follows.
40
- */
41
- export declare function applySetSchedule(tasks: readonly TaskRecord[], id: string, patch: SetSchedulePatch, now: number, hostTimeZone: string): SetScheduleResult;
42
- /**
43
- * Roll a task's schedule rule forward (legacy pure-controller seam): persist
44
- * the next due instant and the trigger instant. No-op for tasks without a rule.
45
- * @param tasks - current ledger.
46
- * @param id - the task to roll forward.
47
- * @param nextRunAt - next due instant (may be undefined to clear).
48
- * @param lastTriggeredAt - the trigger instant of this run.
49
- * @param now - clock instant (ms epoch).
50
- */
51
- export declare function applyScheduleNextRun(tasks: readonly TaskRecord[], id: string, nextRunAt: number | undefined, lastTriggeredAt: number | undefined, now: number): readonly TaskRecord[];
52
- /**
53
- * The effect one due occurrence has on its rule, applied by the Host ledger.
54
- */
55
- export interface ScheduleProgress {
56
- /** Executions this occurrence actually opened (0 or 1), added to the counter. */
57
- consumed: number;
58
- /** Next due instant; absent stops the rule. */
59
- nextRunAt?: number;
60
- /** Trigger instant recorded as `lastTriggeredAt` (a consumed run only). */
61
- lastTriggeredAt?: number;
62
- /** Terminal reason when the rule stops itself (disarms it). */
63
- endedReason?: ScheduleStopReason;
64
- /** Why this occurrence produced no run, when it did not. */
65
- skippedReason?: ScheduleStopReason;
66
- }
67
- /**
68
- * Refund the one scheduled run an occurrence consumed before its launch failed
69
- * without ever creating a session. Nothing ran, so the run budget is restored
70
- * and the rule is left able to serve its next occurrence — a launch failure
71
- * must never silently spend the user's limited budget.
72
- *
73
- * A recurring rule keeps its already-rolled-forward target; a fire that ended
74
- * the rule at its cap (no target left) is restored and re-armed at the next
75
- * occurrence, so a failed launch consumes nothing. A one-shot has no later
76
- * occurrence, so it is left stopped with `launch-failed` and its run returned.
77
- * A rule the user disabled in the meantime is not resurrected.
78
- * @param tasks - current ledger.
79
- * @param id - the task whose occurrence is being refunded.
80
- * @param now - clock instant (ms epoch).
81
- * @param hostTimeZone - zone a rule with no stored zone follows.
82
- * @returns the next ledger.
83
- */
84
- export declare function applyScheduleRefund(tasks: readonly TaskRecord[], id: string, now: number, hostTimeZone: string): readonly TaskRecord[];
85
- /**
86
- * Record what a due occurrence did to a task's rule: advance the run counter
87
- * by the executions it opened, set the next target (or stop the rule), and
88
- * note a terminal reason or a skipped occurrence. Nothing is written for a
89
- * task that has no rule or has been archived mid-tick.
90
- * @param tasks - current ledger.
91
- * @param id - the task whose rule fired.
92
- * @param progress - the occurrence's effect.
93
- * @param now - clock instant (ms epoch).
94
- * @returns the next ledger.
95
- */
96
- export declare function applyScheduleProgress(tasks: readonly TaskRecord[], id: string, progress: ScheduleProgress, now: number): readonly TaskRecord[];
@@ -1,84 +0,0 @@
1
- /**
2
- * Label-management use cases (issue: labels could not be cleaned up).
3
- *
4
- * A label lives on every task that carries it, so renaming or removing one is a
5
- * ledger-wide edit, not a task edit: the board's label row is the union of the
6
- * labels in use, and without these two transitions a label created by an
7
- * afternoon experiment stayed on the board forever.
8
- *
9
- * Both transitions are pure ledger rewrites (no persistence, no notify — the
10
- * controller and the Host ledger orchestrate those), and both are idempotent:
11
- * a label that no task carries changes nothing and reports no error for the
12
- * delete path (the desired end state already holds), while a rename from an
13
- * unknown label is refused so a stale tab cannot silently do nothing.
14
- *
15
- * Renaming onto a name that is already in use MERGES the two: a task carrying
16
- * both keeps the row it already had (with its execution hint) and loses the
17
- * duplicate, which is the only reading that cannot lose a hint the user typed.
18
- *
19
- * Clearing up is the third ledger-wide transition, and it is a SELECTION rather
20
- * than a fourth rewrite: {@link cleanupCandidates} names the labels that are
21
- * both rarely used and attached only to finished tasks, and each of them then
22
- * leaves through {@link applyDeleteTag} like any other delete. One delete path,
23
- * one meaning — a label never disappears by a second rule written beside the
24
- * first.
25
- */
26
- import { type TaskRecord } from '../tasks.ts';
27
- /** Outcome of one ledger-wide label edit. */
28
- export interface TagEditResult {
29
- /** The ledger after the edit, or the input unchanged when nothing applied. */
30
- tasks: readonly TaskRecord[];
31
- /** Whether any task actually changed (drives whether the caller persists). */
32
- changed: boolean;
33
- /** Refusal reason; the ledger is unchanged when set. */
34
- error?: string;
35
- }
36
- /**
37
- * Rename one label everywhere, merging into an existing label of the target
38
- * name. Every touched task gets a fresh updatedAt; untouched tasks keep theirs.
39
- * @param tasks - current ledger.
40
- * @param from - the label to rename.
41
- * @param to - the new name (an existing name merges the two labels).
42
- * @param now - clock instant (ms epoch).
43
- * @returns the rewritten ledger, or a refusal.
44
- */
45
- export declare function applyRenameTag(tasks: readonly TaskRecord[], from: string, to: string, now: number): TagEditResult;
46
- /**
47
- * Remove one label from every task that carries it. Archived cards are included:
48
- * the board's label row draws from the whole ledger, so a label left on an
49
- * archived card would come straight back into the filter.
50
- * @param tasks - current ledger.
51
- * @param name - the label to remove.
52
- * @param now - clock instant (ms epoch).
53
- * @returns the rewritten ledger.
54
- */
55
- export declare function applyDeleteTag(tasks: readonly TaskRecord[], name: string, now: number): TagEditResult;
56
- /** One label the manager offers to clear, with the tasks it would be taken from. */
57
- export interface TagCleanupCandidate {
58
- /** The label name. */
59
- name: string;
60
- /** Tasks carrying the label right now, board and archive alike. */
61
- count: number;
62
- }
63
- /**
64
- * Labels that are both rarely used and finished with: fewer tasks carry them
65
- * than `threshold`, and every one of those tasks is done or failed.
66
- *
67
- * The judgement reads the whole ledger it is given — the board's label row and
68
- * the archive draw from the same set, so an archived card counts towards a
69
- * label's usage and can keep it alive on its own. Archiving alone decides
70
- * nothing: an archived card in a finished column lets its label through, while
71
- * an archived card still in backlog, todo or running holds it back, because a
72
- * label that live work still points at is not junk.
73
- *
74
- * A non-finite threshold selects nothing (a missing number has no reading that
75
- * is safe to act on); a threshold at or below one selects nothing either, since
76
- * a label by definition sits on at least one task and none can carry fewer.
77
- *
78
- * Order follows {@link collectKnownTags}, which is the order the manager lists
79
- * labels in, and the count is the same number the manager shows per label.
80
- * @param tasks - the whole ledger (board and archive).
81
- * @param threshold - exclusive upper bound on the usage count.
82
- * @returns the labels a cleanup may remove, in listing order.
83
- */
84
- export declare function cleanupCandidates(tasks: readonly TaskRecord[], threshold: number): TagCleanupCandidate[];
@@ -1,77 +0,0 @@
1
- /**
2
- * Update-task use case: apply an editable-field patch (title/description/
3
- * prompt plus the execution targets workspaceId/mode/permission) with a
4
- * fresh updatedAt. Pure ledger transition (no persistence or notify — the
5
- * controller orchestrates those).
6
- *
7
- * An explicit `undefined` in the patch clears the field (the task falls
8
- * back to the runtime default); an unknown permission string is ignored so
9
- * stale UI can never persist a value the execution service rejects.
10
- */
11
- import { type TaskRecord, type TaskTag } from '../tasks.ts';
12
- import { type TaskAttachment } from '../attachment.ts';
13
- import type { FreezeSnapshot } from '../freeze-snapshot.ts';
14
- import type { TaskHandoverInput } from '../handover.ts';
15
- /**
16
- * Editable fields on a task (the update patch surface). `freeze` replaces the
17
- * continuation-card snapshot (restamping frozenAt); an explicit null clears it.
18
- */
19
- export type TaskUpdatePatch = Partial<Pick<TaskRecord, 'title' | 'description' | 'prompt' | 'workspaceId' | 'mode' | 'permission' | 'model' | 'reasoningEffort' | 'reuseSession' | 'goalRun' | 'skipVerification'>> & {
20
- freeze?: FreezeSnapshot & {
21
- redacted?: boolean;
22
- } | null;
23
- /** Replaces the handover bundle (restamping bundledAt); an explicit null clears it. */
24
- handover?: TaskHandoverInput | null;
25
- /**
26
- * Replaces the task's labels (issue #1521). Unlike the content fields, tags
27
- * stay editable after the first run: they classify the task and shape the
28
- * NEXT execution prompt, they are not the record of what already ran. An
29
- * explicit null (or a list that normalizes to nothing) clears them.
30
- */
31
- tags?: TaskTag[] | null;
32
- /**
33
- * Replaces the card's attachments (issue #1979).
34
- *
35
- * The attachments freeze WITH the card content: they are part of what the
36
- * card hands to its execution, so an executed or archived card keeps the
37
- * ones it ran with, exactly as it keeps the prompt it ran with. An explicit
38
- * null clears them; a present array replaces the whole set.
39
- */
40
- attachments?: TaskAttachment[] | null;
41
- };
42
- /** The fields that edit the task's content (what the user reads and what the
43
- * next execution sends). Unlike the execution targets they stay editable only
44
- * while the task has never started executing — after the first run the
45
- * recorded prompt is the record of what actually ran, so it becomes read-only.
46
- */
47
- export declare const TASK_CONTENT_FIELDS: readonly ["title", "description", "prompt"];
48
- /**
49
- * The fields that freeze with the card content: the text the card says AND
50
- * the attachments it carries.
51
- *
52
- * The attachments freeze with the content because they ARE part of what the
53
- * card hands to its execution: a card whose first run already consumed an
54
- * image keeps that image, and the record of what ran stays what it was. An
55
- * executed or archived card therefore refuses an attachment change exactly
56
- * as it refuses a prompt change.
57
- */
58
- export declare const TASK_FROZEN_FIELDS: readonly ["title", "description", "prompt", "attachments"];
59
- /** Whether an update patch touches any task-content field. */
60
- export declare function hasContentPatch(patch: TaskUpdatePatch): boolean;
61
- /**
62
- * Whether a task's content may still be edited: the task must be on-board
63
- * (not archived) and must never have started executing. Fail-closed: a task
64
- * with any execution record — running, settled, or cancelled before launch —
65
- * keeps its content fixed. The run, not the column, is the trigger: a card
66
- * parked in 'running' by hand has nothing recorded yet and stays editable.
67
- */
68
- export declare function canEditTaskContent(task: TaskRecord): boolean;
69
- /**
70
- * Apply an update across the ledger. Tasks that do not match the id are left
71
- * untouched; the matched task receives the patch plus a fresh updatedAt.
72
- * @param tasks - current ledger.
73
- * @param id - the task to update.
74
- * @param patch - editable-field changes.
75
- * @param now - clock instant (ms epoch).
76
- */
77
- export declare function applyUpdateTask(tasks: readonly TaskRecord[], id: string, patch: TaskUpdatePatch, now: number): readonly TaskRecord[];
@@ -1,52 +0,0 @@
1
- /** Judge calls one acceptance issues: every criterion, every round. */
2
- export declare const ACCEPTANCE_JUDGE_CALLS: number;
3
- /**
4
- * Per-judge-call ceiling used when the row names none: two and a half minutes
5
- * for a reasoning model reading an 80,000 character trace with a 16,384 token
6
- * output cap. The former 120s constant was tight enough that a slow but healthy
7
- * route produced a wall of per-call timeouts, and every one of them was charged
8
- * as an acceptance anomaly against a budget that then failed the card.
9
- */
10
- export declare const DEFAULT_VERIFICATION_CALL_TIMEOUT_SECONDS = 150;
11
- /** Shortest accepted per-call ceiling: below this no useful judge answers. */
12
- export declare const VERIFICATION_CALL_TIMEOUT_MIN_SECONDS = 30;
13
- /** Longest accepted per-call ceiling, ten minutes. */
14
- export declare const VERIFICATION_CALL_TIMEOUT_MAX_SECONDS = 600;
15
- /**
16
- * Total ceiling of one acceptance attempt, covering evidence rendering and
17
- * every judge call including retries. Derived from the per-call default rather
18
- * than pinned, because a total budget smaller than
19
- * {@link ACCEPTANCE_JUDGE_CALLS} times the per-call ceiling guarantees that no
20
- * acceptance can ever finish.
21
- */
22
- export declare const DEFAULT_VERIFICATION_BUDGET_SECONDS: number;
23
- /** Shortest accepted total budget: long enough for at least one judge call. */
24
- export declare const VERIFICATION_BUDGET_MIN_SECONDS = 120;
25
- /** Longest accepted total budget, thirty minutes. */
26
- export declare const VERIFICATION_BUDGET_MAX_SECONDS = 1800;
27
- /** The default total budget in milliseconds, the face the abort timer takes. */
28
- export declare const DEFAULT_VERIFICATION_BUDGET_MS: number;
29
- /**
30
- * The effective per-judge-call ceiling.
31
- * @param seconds - configured seconds, or undefined for the default.
32
- * @returns the effective ceiling in seconds.
33
- */
34
- export declare function normalizeVerificationCallTimeoutSeconds(seconds: number | undefined): number;
35
- /**
36
- * The effective per-judge-call ceiling the timer face takes.
37
- * @param seconds - configured seconds, or undefined for the default.
38
- * @returns the effective ceiling in milliseconds.
39
- */
40
- export declare function verificationCallTimeoutMs(seconds: number | undefined): number;
41
- /**
42
- * The effective total budget of one acceptance attempt.
43
- * @param seconds - configured seconds, or undefined for the default.
44
- * @returns the effective budget in seconds.
45
- */
46
- export declare function normalizeVerificationBudgetSeconds(seconds: number | undefined): number;
47
- /**
48
- * The effective total budget the abort face takes.
49
- * @param seconds - configured seconds, or undefined for the default.
50
- * @returns the effective budget in milliseconds.
51
- */
52
- export declare function verificationBudgetMs(seconds: number | undefined): number;