@pal-code/workflow 0.0.0-stage → 0.0.19
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/README.md +193 -2
- package/package.json +21 -4
- package/src/backlog.ts +261 -0
- package/src/config.ts +93 -0
- package/src/doc.ts +224 -0
- package/src/health.ts +223 -0
- package/src/index.ts +411 -0
- package/src/work.ts +325 -0
package/src/index.ts
ADDED
|
@@ -0,0 +1,411 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @pal-code/workflow — task continuity for pal.
|
|
3
|
+
*
|
|
4
|
+
* The gap this fills: `@pal-code/memory` remembers what the CODEBASE is.
|
|
5
|
+
* Nothing remembered what the TASK is. A multi-session task therefore restarted
|
|
6
|
+
* from zero every session — the agent re-read the same files and re-derived the
|
|
7
|
+
* same decisions, and whatever was decided in the previous session survived
|
|
8
|
+
* only if the human retyped it.
|
|
9
|
+
*
|
|
10
|
+
* Three pieces, in dependency order:
|
|
11
|
+
*
|
|
12
|
+
* work_* — one folder per task, with a six-section handoff README
|
|
13
|
+
* backlog — the durable task list above the session-scoped `todo` tool
|
|
14
|
+
* session_health — when to abandon the current session and resume from the README
|
|
15
|
+
*
|
|
16
|
+
* Availability mirrors `@pal-code/memory` and `@pal-code/jev`: no `.work`
|
|
17
|
+
* directory means no tools and no prompt, so a repo that does not use this pays
|
|
18
|
+
* zero tokens. The difference is that `work_start` CREATES the directory, so
|
|
19
|
+
* `available` must not stay false forever — see {@link isAvailable}.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
import {existsSync} from 'node:fs';
|
|
23
|
+
|
|
24
|
+
import type {ToolDef, ToolExtension, ToolHandler} from '@pal-code/core';
|
|
25
|
+
|
|
26
|
+
import {resolveWorkflowSettings, workRoot} from './config.js';
|
|
27
|
+
import type {WorkflowSettings} from './config.js';
|
|
28
|
+
import {SECTIONS} from './doc.js';
|
|
29
|
+
import type {BacklogStatus} from './backlog.js';
|
|
30
|
+
import {
|
|
31
|
+
addItems,
|
|
32
|
+
backlogPath,
|
|
33
|
+
findItems,
|
|
34
|
+
formatBacklog,
|
|
35
|
+
readBacklog,
|
|
36
|
+
removeItem,
|
|
37
|
+
setItemStatus,
|
|
38
|
+
} from './backlog.js';
|
|
39
|
+
import {evaluate, formatReport, readFacts} from './health.js';
|
|
40
|
+
import {createWork, isValidSlug, listWork, loadWork, setWorkStatus, updateWork} from './work.js';
|
|
41
|
+
import type {WorkStatus} from './doc.js';
|
|
42
|
+
|
|
43
|
+
function settingsFor(cwd?: string): WorkflowSettings {
|
|
44
|
+
return resolveWorkflowSettings(cwd);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Is this repo using work folders?
|
|
49
|
+
*
|
|
50
|
+
* True when the work directory exists, or when writing is enabled — because
|
|
51
|
+
* then `work_start` can create it. Gating on the directory alone would make the
|
|
52
|
+
* extension permanently unavailable in exactly the repo where someone wants to
|
|
53
|
+
* start their first task.
|
|
54
|
+
*/
|
|
55
|
+
function isAvailable(): boolean {
|
|
56
|
+
const settings = settingsFor();
|
|
57
|
+
return existsSync(workRoot(settings)) || settings.write;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/** A short, unambiguous listing the model can address by slug. */
|
|
61
|
+
function renderList(settings: WorkflowSettings): string {
|
|
62
|
+
const entries = listWork(settings);
|
|
63
|
+
if (entries.length === 0) {
|
|
64
|
+
return `No work folders in ${settings.dir}. Start one with work_start({title, goal}).`;
|
|
65
|
+
}
|
|
66
|
+
const open = entries.filter((e) => e.status !== 'done');
|
|
67
|
+
const lines = entries.map((entry) => {
|
|
68
|
+
const mark = entry.status === 'done' ? '[x]' : entry.status === 'paused' ? '[~]' : '[ ]';
|
|
69
|
+
const goal = entry.goal === '' ? '' : ` — ${entry.goal.slice(0, 100)}`;
|
|
70
|
+
const broken = entry.broken ? ' (no README — needs repair)' : '';
|
|
71
|
+
const updated = entry.updated === '' ? '' : ` (${entry.updated})`;
|
|
72
|
+
return `${mark} ${entry.slug} — ${entry.title}${updated}${goal}${broken}`;
|
|
73
|
+
});
|
|
74
|
+
return `${open.length} open of ${entries.length} work folder(s) in ${settings.dir}:\n${lines.join('\n')}`;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
const workStartDef: ToolDef = {
|
|
78
|
+
type: 'function',
|
|
79
|
+
function: {
|
|
80
|
+
name: 'work_start',
|
|
81
|
+
description:
|
|
82
|
+
'Create a work folder (`.work/<slug>/README.md`) for a task that will span more than one session, so the next session can resume instead of re-deriving everything. Use this the moment a task looks like it needs more than one sitting — not after the session has already gone wrong. The README holds the goal, current state, decisions, constraints, relevant files and remaining work; it is the handoff document. Requires a clear `goal`: what must be true when the work is complete.',
|
|
83
|
+
parameters: {
|
|
84
|
+
type: 'object',
|
|
85
|
+
properties: {
|
|
86
|
+
title: {
|
|
87
|
+
type: 'string',
|
|
88
|
+
description: 'Short human title, e.g. "UI revamp of internal monitoring"',
|
|
89
|
+
},
|
|
90
|
+
goal: {
|
|
91
|
+
type: 'string',
|
|
92
|
+
description:
|
|
93
|
+
'What must be true when the work is complete. One or two sentences — this is the sentence the next session steers by.',
|
|
94
|
+
},
|
|
95
|
+
slug: {
|
|
96
|
+
type: 'string',
|
|
97
|
+
description:
|
|
98
|
+
'Optional folder name. Defaults to a dated slug derived from the title (e.g. 2026-11-ui-revamp).',
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
required: ['title', 'goal'],
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
const workStatusDef: ToolDef = {
|
|
107
|
+
type: 'function',
|
|
108
|
+
function: {
|
|
109
|
+
name: 'work_status',
|
|
110
|
+
description:
|
|
111
|
+
'Read the state of work folders. Call with no arguments to list every folder (slug, title, status, goal). Pass `slug` to read that folder’s full README — do this FIRST when resuming a task, before exploring the codebase, because it records decisions and constraints the code will not tell you.',
|
|
112
|
+
parameters: {
|
|
113
|
+
type: 'object',
|
|
114
|
+
properties: {
|
|
115
|
+
slug: {
|
|
116
|
+
type: 'string',
|
|
117
|
+
description: 'Work folder name, e.g. "2026-11-ui-revamp". Omit to list all.',
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
const workUpdateDef: ToolDef = {
|
|
125
|
+
type: 'function',
|
|
126
|
+
function: {
|
|
127
|
+
name: 'work_update',
|
|
128
|
+
description:
|
|
129
|
+
'Update a work folder’s README. Section bodies are REPLACED, not appended, so write the current truth rather than a changelog. Use this before ending a session, after a decision is settled, or when the remaining work changes — a stale README is what makes the next session restart from zero.',
|
|
130
|
+
parameters: {
|
|
131
|
+
type: 'object',
|
|
132
|
+
properties: {
|
|
133
|
+
slug: {type: 'string', description: 'Work folder name'},
|
|
134
|
+
goal: {type: 'string', description: 'Replace the Goal section'},
|
|
135
|
+
current_state: {type: 'string', description: 'Replace the Current state section'},
|
|
136
|
+
decisions: {type: 'string', description: 'Replace the Decisions section'},
|
|
137
|
+
constraints: {type: 'string', description: 'Replace the Constraints section'},
|
|
138
|
+
relevant_files: {type: 'string', description: 'Replace the Relevant files section'},
|
|
139
|
+
remaining_work: {type: 'string', description: 'Replace the Remaining work section'},
|
|
140
|
+
status: {
|
|
141
|
+
type: 'string',
|
|
142
|
+
description: 'Set the folder status',
|
|
143
|
+
enum: ['open', 'paused', 'done'],
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
required: ['slug'],
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
const backlogDef: ToolDef = {
|
|
152
|
+
type: 'function',
|
|
153
|
+
function: {
|
|
154
|
+
name: 'backlog',
|
|
155
|
+
description:
|
|
156
|
+
'The durable task list for this repo (`.work/TODO.md`), which survives sessions — unlike the `todo` tool, whose list dies when the session ends. Use `todo` for the steps of the task you are doing right now; use `backlog` for work that is known but not being done yet, and to record what the next session must pick up. Items can link to a work folder.',
|
|
157
|
+
parameters: {
|
|
158
|
+
type: 'object',
|
|
159
|
+
properties: {
|
|
160
|
+
action: {
|
|
161
|
+
type: 'string',
|
|
162
|
+
description: 'list (default) | add | start | done | drop | remove',
|
|
163
|
+
enum: ['list', 'add', 'start', 'done', 'drop', 'remove'],
|
|
164
|
+
},
|
|
165
|
+
text: {
|
|
166
|
+
type: 'string',
|
|
167
|
+
description: 'For `add`: the task text. Separate multiple tasks with newlines.',
|
|
168
|
+
},
|
|
169
|
+
match: {
|
|
170
|
+
type: 'string',
|
|
171
|
+
description:
|
|
172
|
+
'For start/done/drop/remove: text to match, or `#N` (the 1-based number from `list`). Must match exactly one item.',
|
|
173
|
+
},
|
|
174
|
+
work: {
|
|
175
|
+
type: 'string',
|
|
176
|
+
description: 'For `add`: optional work-folder slug to link the task to.',
|
|
177
|
+
},
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
const healthDef: ToolDef = {
|
|
184
|
+
type: 'function',
|
|
185
|
+
function: {
|
|
186
|
+
name: 'session_health',
|
|
187
|
+
description:
|
|
188
|
+
'Check whether the current session is still productive. Reports message count, compactions, token usage, and whether the session has crossed the thresholds where continuing costs more than restarting. Call it near the end of a task, and whenever you notice you are re-reading or re-deriving things you already worked out. When it says RESET: update the work folder README first, then tell the user to start a fresh session from it.',
|
|
189
|
+
parameters: {type: 'object', properties: {}},
|
|
190
|
+
},
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
/** Map the tool's flat arguments onto the README's section names. */
|
|
194
|
+
const SECTION_ARGS: Array<{arg: string; section: string}> = [
|
|
195
|
+
{arg: 'goal', section: 'Goal'},
|
|
196
|
+
{arg: 'current_state', section: 'Current state'},
|
|
197
|
+
{arg: 'decisions', section: 'Decisions'},
|
|
198
|
+
{arg: 'constraints', section: 'Constraints'},
|
|
199
|
+
{arg: 'relevant_files', section: 'Relevant files'},
|
|
200
|
+
{arg: 'remaining_work', section: 'Remaining work'},
|
|
201
|
+
];
|
|
202
|
+
|
|
203
|
+
function str(value: unknown): string {
|
|
204
|
+
return typeof value === 'string' ? value : '';
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
const handlers: Record<string, ToolHandler> = {
|
|
208
|
+
work_start: async (args) => {
|
|
209
|
+
const settings = settingsFor();
|
|
210
|
+
if (!settings.write) {
|
|
211
|
+
return `Writing to ${settings.dir} is disabled. Set {"write": true} in workflow.json (project root) or ~/.pal/workflow.json to enable it.`;
|
|
212
|
+
}
|
|
213
|
+
const result = createWork(settings, {
|
|
214
|
+
title: str(args.title),
|
|
215
|
+
goal: str(args.goal),
|
|
216
|
+
slug: str(args.slug).trim() === '' ? undefined : str(args.slug).trim(),
|
|
217
|
+
});
|
|
218
|
+
if (!result.ok) return `Error: ${result.error}`;
|
|
219
|
+
return [
|
|
220
|
+
`Created work folder ${settings.dir}/${result.slug}/README.md`,
|
|
221
|
+
'',
|
|
222
|
+
'Keep it current as you work: work_update({slug, current_state, decisions, remaining_work, ...}).',
|
|
223
|
+
'A README updated at the end of a session is what makes the next session cheap.',
|
|
224
|
+
].join('\n');
|
|
225
|
+
},
|
|
226
|
+
|
|
227
|
+
work_status: async (args) => {
|
|
228
|
+
const settings = settingsFor();
|
|
229
|
+
const slug = str(args.slug).trim();
|
|
230
|
+
if (slug === '') return renderList(settings);
|
|
231
|
+
|
|
232
|
+
const loaded = loadWork(settings, slug);
|
|
233
|
+
if (!loaded.ok) return `Error: ${loaded.error}`;
|
|
234
|
+
const {doc, entry} = loaded;
|
|
235
|
+
const lines = [
|
|
236
|
+
`# ${doc.title}`,
|
|
237
|
+
`slug: ${slug} · status: ${entry.status}${doc.fields.updated ? ` · updated: ${doc.fields.updated}` : ''}`,
|
|
238
|
+
`file: ${settings.dir}/${slug}/README.md`,
|
|
239
|
+
'',
|
|
240
|
+
];
|
|
241
|
+
for (const name of SECTIONS) {
|
|
242
|
+
const body = Object.keys(doc.sections)
|
|
243
|
+
.filter((key) => key.toLowerCase() === name.toLowerCase())
|
|
244
|
+
.map((key) => doc.sections[key])[0];
|
|
245
|
+
if (body === undefined) continue;
|
|
246
|
+
lines.push(`## ${name}`, body.trim() === '' ? '(empty)' : body.trim(), '');
|
|
247
|
+
}
|
|
248
|
+
// Surface any section a human added by hand, so nothing written is invisible.
|
|
249
|
+
const known = new Set(SECTIONS.map((s) => s.toLowerCase()));
|
|
250
|
+
for (const [key, body] of Object.entries(doc.sections)) {
|
|
251
|
+
if (known.has(key.toLowerCase())) continue;
|
|
252
|
+
lines.push(`## ${key}`, body.trim() === '' ? '(empty)' : body.trim(), '');
|
|
253
|
+
}
|
|
254
|
+
return lines.join('\n').trimEnd();
|
|
255
|
+
},
|
|
256
|
+
|
|
257
|
+
work_update: async (args) => {
|
|
258
|
+
const settings = settingsFor();
|
|
259
|
+
if (!settings.write) {
|
|
260
|
+
return `Writing to ${settings.dir} is disabled. Set {"write": true} in workflow.json to enable it.`;
|
|
261
|
+
}
|
|
262
|
+
const slug = str(args.slug).trim();
|
|
263
|
+
if (slug === '') return 'Error: `slug` is required.';
|
|
264
|
+
|
|
265
|
+
const sections: Record<string, string> = {};
|
|
266
|
+
for (const {arg, section} of SECTION_ARGS) {
|
|
267
|
+
const body = args[arg];
|
|
268
|
+
if (typeof body === 'string') sections[section] = body;
|
|
269
|
+
}
|
|
270
|
+
const status = str(args.status).trim();
|
|
271
|
+
|
|
272
|
+
const result = updateWork(settings, {
|
|
273
|
+
slug,
|
|
274
|
+
sections,
|
|
275
|
+
status: status === '' ? undefined : (status as WorkStatus),
|
|
276
|
+
});
|
|
277
|
+
if (!result.ok) return `Error: ${result.error}`;
|
|
278
|
+
|
|
279
|
+
const touched = Object.keys(sections);
|
|
280
|
+
const parts = [`Updated ${settings.dir}/${slug}/README.md`];
|
|
281
|
+
if (touched.length > 0) parts.push(`replaced: ${touched.join(', ')}`);
|
|
282
|
+
if (result.created.length > 0) parts.push(`new sections: ${result.created.join(', ')}`);
|
|
283
|
+
if (status !== '') parts.push(`status: ${status}`);
|
|
284
|
+
return parts.join('\n');
|
|
285
|
+
},
|
|
286
|
+
|
|
287
|
+
backlog: async (args) => {
|
|
288
|
+
const settings = settingsFor();
|
|
289
|
+
const action = str(args.action).trim() === '' ? 'list' : str(args.action).trim();
|
|
290
|
+
const text = str(args.text);
|
|
291
|
+
const match = str(args.match);
|
|
292
|
+
const work = str(args.work).trim();
|
|
293
|
+
|
|
294
|
+
if (action === 'list') {
|
|
295
|
+
const items = readBacklog(settings);
|
|
296
|
+
const header = `# ${settings.dir}/TODO.md`;
|
|
297
|
+
return `${header}\n${formatBacklog(items)}`;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
if (!settings.write) {
|
|
301
|
+
return `Writing to ${settings.dir} is disabled. Set {"write": true} in workflow.json to enable it.`;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
if (action === 'add') {
|
|
305
|
+
if (work !== '' && !isValidSlug(work)) {
|
|
306
|
+
return `Error: "${work}" is not a valid work folder name.`;
|
|
307
|
+
}
|
|
308
|
+
const texts = text.split('\n').map((line) => line.replace(/^\s*[-*]\s*(\[[^\]]*\])?\s*/, ''));
|
|
309
|
+
const result = addItems(settings, texts, undefined, work === '' ? undefined : work);
|
|
310
|
+
if (!result.ok) return `Error: ${result.error}`;
|
|
311
|
+
return `Added ${result.added} item(s) to ${settings.dir}/TODO.md (${result.total} total).`;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
if (action === 'start' || action === 'done' || action === 'drop') {
|
|
315
|
+
if (match.trim() === '') return `Error: \`match\` is required for "${action}".`;
|
|
316
|
+
const status: BacklogStatus =
|
|
317
|
+
action === 'start' ? 'doing' : action === 'done' ? 'done' : 'dropped';
|
|
318
|
+
const result = setItemStatus(settings, match, status);
|
|
319
|
+
if (!result.ok) return `Error: ${result.error}`;
|
|
320
|
+
return `Marked "${result.item.text}" as ${status}.`;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
if (action === 'remove') {
|
|
324
|
+
if (match.trim() === '') return 'Error: `match` is required for "remove".';
|
|
325
|
+
const result = removeItem(settings, match);
|
|
326
|
+
if (!result.ok) return `Error: ${result.error}`;
|
|
327
|
+
return `Removed "${result.item.text}".`;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
return `Error: unknown action "${action}" — use list, add, start, done, drop or remove.`;
|
|
331
|
+
},
|
|
332
|
+
|
|
333
|
+
session_health: async () => {
|
|
334
|
+
const settings = settingsFor();
|
|
335
|
+
const facts = readFacts(settings);
|
|
336
|
+
const triggers = facts === null ? [] : evaluate(facts, settings);
|
|
337
|
+
return formatReport(facts, triggers, settings);
|
|
338
|
+
},
|
|
339
|
+
};
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* Guidance the tool schemas cannot carry.
|
|
343
|
+
*
|
|
344
|
+
* Two load-bearing points the descriptions alone do not land:
|
|
345
|
+
*
|
|
346
|
+
* 1. ORDERING. `work_status` before exploring, the same way memory's prompt puts
|
|
347
|
+
* `memory_lookup` before exploration. A model given a task will otherwise
|
|
348
|
+
* start reading files, and the README — which is the whole point — is never
|
|
349
|
+
* opened.
|
|
350
|
+
* 2. The unmeasurable reset triggers. `session_health` covers compaction and
|
|
351
|
+
* length; a heuristic for "you are going in circles" would be noise, so the
|
|
352
|
+
* behavioural ones are stated here and left to the model to notice.
|
|
353
|
+
*/
|
|
354
|
+
const PROMPT = [
|
|
355
|
+
'TASK CONTINUITY: This repo keeps per-task handoffs in `.work/` — one folder per',
|
|
356
|
+
'multi-session task, each with a README holding the goal, current state, decisions,',
|
|
357
|
+
'constraints, relevant files and remaining work. This is not the same thing as',
|
|
358
|
+
'`.memory` (which describes the codebase): `.work` describes the TASK.',
|
|
359
|
+
'The two are read in a fixed order and answer different questions. Memory comes',
|
|
360
|
+
'FIRST, always: it is cheap, indexed, and tells you whether the code you are about',
|
|
361
|
+
'to touch has already been understood. Work comes SECOND, and only when you have a',
|
|
362
|
+
'task in hand — it says what to DO, which is meaningless before you know what the',
|
|
363
|
+
'code IS. Do not call `work_status` before `memory_lookup` on a fresh task.',
|
|
364
|
+
'WHEN you have a task that spans more than one session, call `work_status` with no',
|
|
365
|
+
'arguments to see what is already open. If a folder matches your task, read it with',
|
|
366
|
+
'`work_status({slug})` before exploring the codebase and continue from its Remaining',
|
|
367
|
+
'work section. If none matches and the task is genuinely multi-session, call',
|
|
368
|
+
'`work_start` to create one.',
|
|
369
|
+
'Keep the README current: after a decision is settled, and ALWAYS before the',
|
|
370
|
+
'session ends, call `work_update` with the section bodies that changed. Replace',
|
|
371
|
+
'them with the current truth — do not append a changelog. A README left stale is',
|
|
372
|
+
'what makes the next session repeat this one.',
|
|
373
|
+
'Use `backlog` for work that is known but not being done now, including what the',
|
|
374
|
+
'next session should pick up. `todo` is for the steps of the task in front of you',
|
|
375
|
+
'and disappears with the session; `backlog` persists and is the one the user reads',
|
|
376
|
+
'tomorrow.',
|
|
377
|
+
'WATCH THE SESSION LENGTH. The reliable signals that a session has gone bad are:',
|
|
378
|
+
`it has been compacted (${'session_health'} reports this), it has grown past a couple`,
|
|
379
|
+
'of hundred messages, the current fix has been merged, you have corrected the same',
|
|
380
|
+
'wrong assumption twice, or the user has said "continue" three times in a row. When',
|
|
381
|
+
'any of these happen, call `session_health`, then update the work folder README and',
|
|
382
|
+
'say so — a fresh session resumed from the README is cheaper and more accurate than',
|
|
383
|
+
'continuing. Pretending a long session is still productive is the failure this',
|
|
384
|
+
'extension exists to prevent.',
|
|
385
|
+
].join(' ');
|
|
386
|
+
|
|
387
|
+
export default {
|
|
388
|
+
name: 'workflow',
|
|
389
|
+
get available() {
|
|
390
|
+
return isAvailable();
|
|
391
|
+
},
|
|
392
|
+
get tools() {
|
|
393
|
+
return isAvailable() ? [workStartDef, workStatusDef, workUpdateDef, backlogDef, healthDef] : [];
|
|
394
|
+
},
|
|
395
|
+
prompt: PROMPT,
|
|
396
|
+
handlers,
|
|
397
|
+
} satisfies ToolExtension;
|
|
398
|
+
|
|
399
|
+
/** Exported for tests and for a future `pal` CLI surface. */
|
|
400
|
+
export {
|
|
401
|
+
backlogPath,
|
|
402
|
+
createWork,
|
|
403
|
+
evaluate,
|
|
404
|
+
findItems,
|
|
405
|
+
listWork,
|
|
406
|
+
loadWork,
|
|
407
|
+
readFacts,
|
|
408
|
+
resolveWorkflowSettings,
|
|
409
|
+
setWorkStatus,
|
|
410
|
+
updateWork,
|
|
411
|
+
};
|