toolroll 0.9.6 → 0.9.8
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/CHANGELOG.md +64 -1
- package/dist/actor.d.ts +21 -0
- package/dist/actor.js +48 -0
- package/dist/assignment-adapters.d.ts +2 -0
- package/dist/assignment-adapters.js +2 -0
- package/dist/assignment-ui.js +3 -1
- package/dist/assignment.d.ts +15 -0
- package/dist/assignment.js +80 -16
- package/dist/browser/workspace.css +2 -2
- package/dist/browser/workspace.js +28 -24
- package/dist/browser-workspace.d.ts +117 -2
- package/dist/build-review.d.ts +38 -0
- package/dist/build-review.js +341 -0
- package/dist/builder.d.ts +1 -0
- package/dist/builder.js +33 -13
- package/dist/chat-actions.js +2 -1
- package/dist/chat-delivery.js +2 -0
- package/dist/chat-quiet.js +11 -1
- package/dist/chat-task-actions.d.ts +13 -0
- package/dist/chat-task-actions.js +19 -1
- package/dist/check-levels-ui.d.ts +26 -0
- package/dist/check-levels-ui.js +84 -0
- package/dist/check-levels.d.ts +67 -0
- package/dist/check-levels.js +171 -0
- package/dist/claim.d.ts +22 -0
- package/dist/claim.js +43 -0
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +6 -0
- package/dist/demo-chat.js +4 -1
- package/dist/dispatch.js +9 -3
- package/dist/dispose.d.ts +12 -3
- package/dist/dispose.js +19 -5
- package/dist/exec.d.ts +5 -0
- package/dist/exec.js +30 -4
- package/dist/export.js +3 -2
- package/dist/first-run.d.ts +34 -0
- package/dist/first-run.js +37 -1
- package/dist/flow-gallery-ui.d.ts +30 -0
- package/dist/flow-gallery-ui.js +85 -0
- package/dist/flow-gallery.d.ts +111 -0
- package/dist/flow-gallery.js +445 -0
- package/dist/flow-share.d.ts +102 -0
- package/dist/flow-share.js +614 -0
- package/dist/flow-starters.d.ts +2 -0
- package/dist/flow-starters.js +1 -1
- package/dist/flow-steps.js +7 -0
- package/dist/flow-triggers.js +2 -0
- package/dist/flows-cli.d.ts +56 -0
- package/dist/flows-cli.js +109 -3
- package/dist/flows-ui.d.ts +15 -1
- package/dist/flows-ui.js +31 -6
- package/dist/guides.js +27 -2
- package/dist/invoke.js +5 -0
- package/dist/lead-context.js +6 -2
- package/dist/mate-doors.d.ts +0 -15
- package/dist/mate-doors.js +5 -1
- package/dist/mate-tools.js +9 -4
- package/dist/models-ui.js +1 -1
- package/dist/modes.d.ts +3 -1
- package/dist/modes.js +3 -1
- package/dist/operate.d.ts +4 -1
- package/dist/operate.js +711 -98
- package/dist/process-custody.js +8 -0
- package/dist/project-concurrency.d.ts +62 -0
- package/dist/project-concurrency.js +116 -0
- package/dist/project-delete-ui.d.ts +7 -0
- package/dist/project-delete-ui.js +19 -2
- package/dist/project-delete.js +4 -0
- package/dist/provider.js +16 -0
- package/dist/pull-request-flow.d.ts +9 -0
- package/dist/pull-request-flow.js +21 -3
- package/dist/result-follow-ups.d.ts +101 -0
- package/dist/result-follow-ups.js +333 -0
- package/dist/retention-ui.d.ts +3 -1
- package/dist/retention-ui.js +4 -4
- package/dist/retention.d.ts +13 -6
- package/dist/retention.js +50 -12
- package/dist/review-switch.d.ts +41 -0
- package/dist/review-switch.js +88 -0
- package/dist/reviewer.d.ts +24 -2
- package/dist/reviewer.js +49 -1
- package/dist/scope.js +11 -0
- package/dist/serve.d.ts +211 -2
- package/dist/serve.js +1038 -145
- package/dist/store.d.ts +112 -4
- package/dist/store.js +447 -27
- package/dist/surface.js +36 -9
- package/dist/tailnet.d.ts +11 -0
- package/dist/tailnet.js +47 -0
- package/dist/task-outcome-cli.js +2 -2
- package/dist/task-status.d.ts +13 -3
- package/dist/task-status.js +38 -16
- package/dist/team-cli.js +3 -0
- package/dist/telegram-status.js +2 -2
- package/dist/verification-evidence.js +21 -1
- package/dist/webhooks.js +5 -0
- package/dist/work-index.js +39 -6
- package/dist/work-summary.d.ts +0 -4
- package/dist/work-summary.js +4 -1
- package/dist/workspace-ui.d.ts +6 -1
- package/dist/workspace-ui.js +14 -11
- package/package.json +1 -1
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { type ScriptDraft } from "./flow-scripts.js";
|
|
2
|
+
import { type FlowDefinition } from "./flows.js";
|
|
3
|
+
import type { FlowRow, Store } from "./store.js";
|
|
4
|
+
export declare const FLOW_FILE_FORMAT = "toolroll-flow";
|
|
5
|
+
export declare const FLOW_FILE_VERSION = 1;
|
|
6
|
+
/** The largest flow file Toolroll reads or fetches. */
|
|
7
|
+
export declare const FLOW_FILE_MAX_BYTES: number;
|
|
8
|
+
export declare const FLOW_FILE_SUFFIX = ".toolroll-flow.json";
|
|
9
|
+
/** Something the import asks for: `{{param.<id>}}` in a zone or trigger is replaced by its value. */
|
|
10
|
+
export type FlowFileParameter = {
|
|
11
|
+
id: string;
|
|
12
|
+
about: string;
|
|
13
|
+
default?: string;
|
|
14
|
+
optional?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export type FlowFileScript = {
|
|
17
|
+
name: string;
|
|
18
|
+
about: string;
|
|
19
|
+
language: ScriptDraft["language"];
|
|
20
|
+
timeoutMinutes: number;
|
|
21
|
+
body?: string;
|
|
22
|
+
file?: string;
|
|
23
|
+
};
|
|
24
|
+
export type FlowFile = {
|
|
25
|
+
format: typeof FLOW_FILE_FORMAT;
|
|
26
|
+
version: typeof FLOW_FILE_VERSION;
|
|
27
|
+
name: string;
|
|
28
|
+
about: string;
|
|
29
|
+
needs: string[];
|
|
30
|
+
parameters: FlowFileParameter[];
|
|
31
|
+
/** The zones in the lead's step vocabulary, the start first. */
|
|
32
|
+
zones: Record<string, unknown>[];
|
|
33
|
+
/** Each trigger's settings, as `toolroll flows trigger add` takes them. */
|
|
34
|
+
triggers: Record<string, unknown>[];
|
|
35
|
+
scripts: FlowFileScript[];
|
|
36
|
+
};
|
|
37
|
+
export type FlowExported = {
|
|
38
|
+
file: FlowFile;
|
|
39
|
+
json: string;
|
|
40
|
+
fileName: string;
|
|
41
|
+
left: string[];
|
|
42
|
+
};
|
|
43
|
+
/** A flow as a file: its zones and paths, its triggers' settings and the scripts it runs, nothing of this installation's. */
|
|
44
|
+
export declare function exportFlow(store: Store, flow: FlowRow, dir: string | null): FlowExported;
|
|
45
|
+
export declare class FlowFileError extends Error {
|
|
46
|
+
}
|
|
47
|
+
/** Read a flow file: its size, its JSON, its format and version, and every zone, trigger, script and parameter. Throws FlowFileError in plain words. */
|
|
48
|
+
export declare function parseFlowFile(text: string): FlowFile;
|
|
49
|
+
/** --param k=v lines (or a form's fields) as values; refuses parameters the file doesn't ask for. */
|
|
50
|
+
export declare function parameterValues(file: FlowFile, given: Record<string, string>): Record<string, string>;
|
|
51
|
+
export declare function needWords(need: string): string;
|
|
52
|
+
export type FlowImportPlan = {
|
|
53
|
+
name: string;
|
|
54
|
+
repo: string;
|
|
55
|
+
definition: FlowDefinition;
|
|
56
|
+
triggers: Record<string, unknown>[];
|
|
57
|
+
/** Scripts to add (held until approved), and those the project already has exactly. */
|
|
58
|
+
scripts: {
|
|
59
|
+
add: FlowFileScript[];
|
|
60
|
+
kept: string[];
|
|
61
|
+
};
|
|
62
|
+
values: Record<string, string>;
|
|
63
|
+
title: string;
|
|
64
|
+
/** The whole preview, line by line (the CLI's); `parts` is the same, grouped for the console's page. */
|
|
65
|
+
terms: string[];
|
|
66
|
+
parts: {
|
|
67
|
+
about: string | null;
|
|
68
|
+
steps: string[];
|
|
69
|
+
notes: string[];
|
|
70
|
+
triggers: string[];
|
|
71
|
+
scripts: string[];
|
|
72
|
+
kept: string[];
|
|
73
|
+
filled: string | null;
|
|
74
|
+
needs: string | null;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
/** The import in plain words, checked against the project it lands in. Throws FlowFileError. */
|
|
78
|
+
export declare function planFlowImport(store: Store, repo: string, file: FlowFile, given: Record<string, string>, actor: string): FlowImportPlan;
|
|
79
|
+
/** Make the planned flow: scripts held, the flow, and its triggers switched off. One transaction. */
|
|
80
|
+
export declare function importFlow(store: Store, plan: FlowImportPlan, actor: string, now: Date, dir: string | null): {
|
|
81
|
+
id: number;
|
|
82
|
+
said: string;
|
|
83
|
+
};
|
|
84
|
+
/** What a flow's zones and paths are, without where they sit on the canvas: what a round trip keeps. */
|
|
85
|
+
export declare function flowShape(definition: FlowDefinition): string;
|
|
86
|
+
/** A gist or GitHub file page as the address of its raw text; null when it isn't one Toolroll fetches. */
|
|
87
|
+
export declare function rawFlowUrl(address: string): string | null;
|
|
88
|
+
export type FetchLike = (url: string, init: {
|
|
89
|
+
redirect: "follow";
|
|
90
|
+
signal: AbortSignal;
|
|
91
|
+
headers: Record<string, string>;
|
|
92
|
+
}) => Promise<{
|
|
93
|
+
ok: boolean;
|
|
94
|
+
status: number;
|
|
95
|
+
url?: string;
|
|
96
|
+
headers: {
|
|
97
|
+
get(name: string): string | null;
|
|
98
|
+
};
|
|
99
|
+
body: ReadableStream<Uint8Array> | null;
|
|
100
|
+
}>;
|
|
101
|
+
/** A flow file from a gist or GitHub, over HTTPS only, refused past the size cap. Throws FlowFileError in plain words. */
|
|
102
|
+
export declare function fetchFlowFile(address: string, fetcher?: FetchLike): Promise<string>;
|