@deliverd/sdk 0.13.0 → 0.14.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/README.md +23 -3
- package/dist/dev.js +2 -0
- package/dist/released.d.ts +1 -1
- package/dist/released.d.ts.map +1 -1
- package/dist/released.js +748 -0
- package/dist/types.d.ts +30 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/dev.ts +2 -0
- package/src/released.ts +748 -0
- package/src/types.ts +31 -0
package/src/types.ts
CHANGED
|
@@ -465,6 +465,19 @@ export interface PublishReportInput {
|
|
|
465
465
|
changeSummary?: string;
|
|
466
466
|
/** Publish only if this is still the current version; 0 claims a new slug. */
|
|
467
467
|
expectedVersion?: number;
|
|
468
|
+
/**
|
|
469
|
+
* The flow this report belongs to, from `flows.create()`. Set on the first
|
|
470
|
+
* publish; a new version keeps whatever flow the report already has.
|
|
471
|
+
*/
|
|
472
|
+
flowId?: string;
|
|
473
|
+
/**
|
|
474
|
+
* The task (an objective or a side task) this report is written for. It is
|
|
475
|
+
* then listed on the task and returned in `task.context()`, so the next
|
|
476
|
+
* agent publishes a new version rather than a second report. A later
|
|
477
|
+
* publish naming another task moves it; leaving this out keeps it where it
|
|
478
|
+
* is. Needs `tasks:read` on the key.
|
|
479
|
+
*/
|
|
480
|
+
taskId?: string;
|
|
468
481
|
uploadId?: string;
|
|
469
482
|
content?: string;
|
|
470
483
|
files?: InlineFile[];
|
|
@@ -481,6 +494,7 @@ export type UpdateReportInput = Pick<
|
|
|
481
494
|
| "sourceModel"
|
|
482
495
|
| "changeSummary"
|
|
483
496
|
| "expectedVersion"
|
|
497
|
+
| "taskId"
|
|
484
498
|
>;
|
|
485
499
|
|
|
486
500
|
export interface ReportData {
|
|
@@ -490,6 +504,8 @@ export interface ReportData {
|
|
|
490
504
|
url: string;
|
|
491
505
|
status: string;
|
|
492
506
|
currentVersion: number | null;
|
|
507
|
+
/** The task this report was written for, when it was published with one. */
|
|
508
|
+
taskId?: string | null;
|
|
493
509
|
[key: string]: unknown;
|
|
494
510
|
}
|
|
495
511
|
|
|
@@ -1258,10 +1274,25 @@ export interface TaskContext {
|
|
|
1258
1274
|
snapshot: TaskSnapshot | null;
|
|
1259
1275
|
relevantFindings: TaskContextFinding[];
|
|
1260
1276
|
sideTasks: TaskContextSideTasks;
|
|
1277
|
+
/**
|
|
1278
|
+
* Reports published for this task, newest first, up to ten. Revise one with
|
|
1279
|
+
* `reports.update()` rather than publishing a second on the same thing.
|
|
1280
|
+
*/
|
|
1281
|
+
reports: TaskContextReport[];
|
|
1261
1282
|
/** One paragraph to say back to yourself to re-anchor on the objective. */
|
|
1262
1283
|
reanchor: string;
|
|
1263
1284
|
}
|
|
1264
1285
|
|
|
1286
|
+
/** A report published for a task, as its context names it. */
|
|
1287
|
+
export interface TaskContextReport {
|
|
1288
|
+
id: string;
|
|
1289
|
+
title: string;
|
|
1290
|
+
url: string;
|
|
1291
|
+
/** The live version; null until one has gone live. */
|
|
1292
|
+
version: number | null;
|
|
1293
|
+
publishedAt: string | null;
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1265
1296
|
export interface TaskGraph {
|
|
1266
1297
|
root: TaskData;
|
|
1267
1298
|
nodes: TaskNode[];
|