toolroll 0.9.53 → 0.9.55
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 +17 -0
- package/README.md +5 -4
- package/dist/agent-onboard.js +4 -1
- package/dist/approval-rules-ui.d.ts +3 -2
- package/dist/approval-rules-ui.js +15 -20
- package/dist/assignment-ui.d.ts +3 -2
- package/dist/assignment-ui.js +4 -11
- package/dist/backup-ui.d.ts +2 -1
- package/dist/backup-ui.js +16 -27
- package/dist/brand-mark.d.ts +3 -2
- package/dist/brand-mark.js +4 -4
- package/dist/browser/workspace.css +1 -1
- package/dist/browser/workspace.js +25 -25
- package/dist/browser-shell.d.ts +2 -1
- package/dist/browser-shell.js +9 -9
- package/dist/browser-workspace.d.ts +2 -3
- package/dist/browser-workspace.js +0 -3
- package/dist/chat-ask.js +8 -8
- package/dist/chat-core.d.ts +171 -0
- package/dist/chat-core.js +288 -0
- package/dist/chat-decide.d.ts +10 -8
- package/dist/chat-decide.js +26 -21
- package/dist/chat-delivery-state.d.ts +51 -75
- package/dist/chat-delivery-state.js +140 -170
- package/dist/chat-delivery.d.ts +21 -2
- package/dist/chat-delivery.js +313 -194
- package/dist/chat-flow.d.ts +29 -1
- package/dist/chat-flow.js +24 -50
- package/dist/chat-messages.d.ts +319 -0
- package/dist/chat-messages.js +841 -0
- package/dist/chat-migration.d.ts +30 -0
- package/dist/chat-migration.js +802 -0
- package/dist/chat-polish.d.ts +5 -4
- package/dist/chat-polish.js +9 -10
- package/dist/chat-quiet.d.ts +3 -0
- package/dist/chat-quiet.js +5 -0
- package/dist/check-levels-ui.d.ts +2 -1
- package/dist/check-levels-ui.js +26 -53
- package/dist/cli.d.ts +3 -1
- package/dist/cli.js +9 -3
- package/dist/coding-shipping-ui.d.ts +2 -1
- package/dist/coding-shipping-ui.js +6 -6
- package/dist/coding-ui.d.ts +3 -1
- package/dist/coding-ui.js +30 -29
- package/dist/contracts/chat-content.d.ts +71 -2
- package/dist/contracts/chat-content.js +22 -3
- package/dist/contracts/chat-tables.d.ts +11 -4
- package/dist/contracts/chat-tables.js +165 -87
- package/dist/contracts/cli.d.ts +1 -3
- package/dist/contracts/console-api.d.ts +1 -1
- package/dist/contracts/console-api.js +6 -5
- package/dist/contracts/discord-callback.js +2 -1
- package/dist/contracts/health.d.ts +1 -3
- package/dist/contracts/slack-callback.js +3 -2
- package/dist/contracts/store-json.d.ts +1 -5
- package/dist/contracts/store-json.js +1 -4
- package/dist/contracts/teams-callback.js +2 -1
- package/dist/control-ui.d.ts +5 -4
- package/dist/control-ui.js +9 -34
- package/dist/credentials-ui.d.ts +5 -4
- package/dist/credentials-ui.js +23 -24
- package/dist/demo-chat.d.ts +3 -3
- package/dist/demo-chat.js +29 -76
- package/dist/discord-chat.js +19 -38
- package/dist/discord-settings.d.ts +3 -2
- package/dist/discord-settings.js +21 -55
- package/dist/discord.js +4 -14
- package/dist/envelope.js +10 -0
- package/dist/evidence-pack.d.ts +2 -1
- package/dist/evidence-pack.js +45 -49
- package/dist/export-ui.d.ts +7 -2
- package/dist/export-ui.js +4 -10
- package/dist/export.js +4 -4
- package/dist/flow-gallery-ui.d.ts +4 -3
- package/dist/flow-gallery-ui.js +28 -43
- package/dist/flow-starters-ui.d.ts +2 -1
- package/dist/flow-starters-ui.js +12 -15
- package/dist/flow-triggers.d.ts +1 -0
- package/dist/flow-triggers.js +16 -14
- package/dist/flows-ui.d.ts +4 -3
- package/dist/flows-ui.js +19 -30
- package/dist/flows.js +2 -1
- package/dist/guides.js +108 -3
- package/dist/html.d.ts +76 -0
- package/dist/html.js +173 -0
- package/dist/integrations-ui.d.ts +2 -1
- package/dist/integrations-ui.js +19 -23
- package/dist/kits-ui.d.ts +5 -4
- package/dist/kits-ui.js +18 -20
- package/dist/knowledge-ui.d.ts +6 -5
- package/dist/knowledge-ui.js +26 -25
- package/dist/lead-context.d.ts +11 -1
- package/dist/lead-context.js +6 -8
- package/dist/ledger-view.d.ts +2 -1
- package/dist/ledger-view.js +27 -29
- package/dist/limits-ui.d.ts +2 -1
- package/dist/limits-ui.js +7 -7
- package/dist/live-bus.d.ts +50 -8
- package/dist/live-bus.js +133 -50
- package/dist/mate-tools.js +3 -2
- package/dist/mcp-oauth.js +35 -36
- package/dist/models-ui.d.ts +2 -1
- package/dist/models-ui.js +25 -35
- package/dist/modes.d.ts +13 -1
- package/dist/modes.js +17 -1
- package/dist/monitoring-ui.d.ts +4 -3
- package/dist/monitoring-ui.js +13 -26
- package/dist/notification-rows.d.ts +30 -0
- package/dist/notification-rows.js +102 -0
- package/dist/openrouter-models.d.ts +2 -1
- package/dist/openrouter-models.js +5 -9
- package/dist/operate.js +16 -9
- package/dist/people-audit-ui.d.ts +2 -1
- package/dist/people-audit-ui.js +13 -13
- package/dist/plane-review.js +5 -11
- package/dist/policy-ui.d.ts +3 -2
- package/dist/policy-ui.js +17 -23
- package/dist/project-delete-ui.d.ts +4 -3
- package/dist/project-delete-ui.js +15 -27
- package/dist/project-delete.js +21 -26
- package/dist/pull-request-ui.d.ts +2 -1
- package/dist/pull-request-ui.js +17 -32
- package/dist/recipe-ui.d.ts +8 -7
- package/dist/recipe-ui.js +39 -32
- package/dist/release-adapters.d.ts +60 -0
- package/dist/release-adapters.js +435 -0
- package/dist/release-cli.d.ts +24 -0
- package/dist/release-cli.js +181 -0
- package/dist/release-gate.d.ts +80 -0
- package/dist/release-gate.js +150 -0
- package/dist/release-links.d.ts +29 -0
- package/dist/release-links.js +102 -0
- package/dist/release.d.ts +331 -0
- package/dist/release.js +550 -0
- package/dist/reply-shape.d.ts +2 -1
- package/dist/reply-shape.js +5 -5
- package/dist/repository-context-ui.d.ts +2 -1
- package/dist/repository-context-ui.js +2 -7
- package/dist/request-budget-ui.d.ts +2 -1
- package/dist/request-budget-ui.js +16 -16
- package/dist/result-review.d.ts +2 -3
- package/dist/result-review.js +3 -9
- package/dist/result-shots.js +2 -2
- package/dist/retention-ui.d.ts +7 -1
- package/dist/retention-ui.js +7 -11
- package/dist/retention.js +1 -1
- package/dist/serve.d.ts +11 -2
- package/dist/serve.js +69 -58
- package/dist/server/chat.d.ts +3 -6
- package/dist/server/chat.js +969 -1006
- package/dist/server/chrome.d.ts +291 -0
- package/dist/server/chrome.js +747 -0
- package/dist/server/console.css +2819 -0
- package/dist/server/flows.d.ts +2 -6
- package/dist/server/flows.js +840 -766
- package/dist/server/guards.d.ts +1 -1
- package/dist/server/guards.js +5 -2
- package/dist/server/handler-context.d.ts +1 -1
- package/dist/server/handler-context.js +1 -1
- package/dist/server/handler-registry.d.ts +8 -6
- package/dist/server/handler-registry.js +14 -2
- package/dist/server/http.d.ts +274 -0
- package/dist/server/http.js +239 -0
- package/dist/server/live.d.ts +34 -0
- package/dist/server/live.js +309 -0
- package/dist/server/pages.d.ts +2 -6
- package/dist/server/pages.js +808 -789
- package/dist/server/people-tokens.d.ts +1 -6
- package/dist/server/people-tokens.js +580 -572
- package/dist/server/remote.d.ts +4 -7
- package/dist/server/remote.js +37 -70
- package/dist/server/render-chat.d.ts +402 -0
- package/dist/server/render-chat.js +927 -0
- package/dist/server/render-pages.d.ts +535 -0
- package/dist/server/render-pages.js +1277 -0
- package/dist/server/render-people.d.ts +32 -0
- package/dist/server/render-people.js +121 -0
- package/dist/server/render-results.d.ts +744 -0
- package/dist/server/render-results.js +2237 -0
- package/dist/server/render-settings.d.ts +147 -0
- package/dist/server/render-settings.js +577 -0
- package/dist/server/render-tasks.d.ts +632 -0
- package/dist/server/render-tasks.js +2345 -0
- package/dist/server/request-context.d.ts +46 -0
- package/dist/server/request-context.js +17 -0
- package/dist/server/route-table.d.ts +25 -3
- package/dist/server/route-table.js +163 -75
- package/dist/server/runtime.d.ts +15 -7
- package/dist/server/runtime.js +7 -1
- package/dist/server/session.d.ts +138 -0
- package/dist/server/session.js +94 -0
- package/dist/server/settings.d.ts +1 -5
- package/dist/server/settings.js +2182 -2117
- package/dist/server/task-views.d.ts +11 -4
- package/dist/server/task-views.js +26 -22
- package/dist/server/tasks.d.ts +9 -9
- package/dist/server/tasks.js +1486 -1418
- package/dist/server-telemetry.d.ts +4 -3
- package/dist/server-telemetry.js +4 -8
- package/dist/skills-ui.d.ts +4 -3
- package/dist/skills-ui.js +14 -17
- package/dist/skills.d.ts +1 -1
- package/dist/skills.js +2 -1
- package/dist/slack-api.d.ts +5 -1
- package/dist/slack-api.js +2 -2
- package/dist/slack-chat.d.ts +9 -4
- package/dist/slack-chat.js +29 -52
- package/dist/slack-settings.d.ts +3 -2
- package/dist/slack-settings.js +23 -57
- package/dist/slack.js +6 -16
- package/dist/spend-ui.d.ts +2 -1
- package/dist/spend-ui.js +9 -32
- package/dist/sso-ui.d.ts +3 -2
- package/dist/sso-ui.js +26 -27
- package/dist/storage-ui.d.ts +2 -1
- package/dist/storage-ui.js +14 -33
- package/dist/store.d.ts +97 -364
- package/dist/store.js +207 -1531
- package/dist/surface.js +14 -3
- package/dist/task-composer.d.ts +2 -1
- package/dist/task-composer.js +7 -7
- package/dist/task-status.d.ts +4 -3
- package/dist/task-status.js +15 -16
- package/dist/team-http.d.ts +5 -9
- package/dist/team-http.js +5 -63
- package/dist/team-ui.d.ts +2 -1
- package/dist/team-ui.js +2 -5
- package/dist/teammate-question.js +12 -12
- package/dist/teammates-ui.d.ts +5 -4
- package/dist/teammates-ui.js +61 -90
- package/dist/teams-chat.js +12 -9
- package/dist/teams-settings.d.ts +3 -2
- package/dist/teams-settings.js +22 -33
- package/dist/teams.js +4 -5
- package/dist/telegram-flow.js +5 -5
- package/dist/telegram-settings.d.ts +3 -2
- package/dist/telegram-settings.js +14 -25
- package/dist/telegram.js +4 -4
- package/dist/toolroll-update-ui.d.ts +3 -2
- package/dist/toolroll-update-ui.js +35 -39
- package/dist/toolroll-update.d.ts +10 -0
- package/dist/toolroll-update.js +50 -3
- package/dist/tools-ui.d.ts +5 -2
- package/dist/tools-ui.js +31 -31
- package/dist/when-html.d.ts +11 -3
- package/dist/when-html.js +5 -6
- package/dist/workspace-revision.js +3 -1
- package/dist/workspace-ui.d.ts +4 -2
- package/dist/workspace-ui.js +10 -10
- package/package.json +1 -1
- package/dist/server/shared.d.ts +0 -3151
- package/dist/server/shared.js +0 -12001
- package/dist/slack-state.d.ts +0 -13
- package/dist/slack-state.js +0 -10
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { type BrandIconId } from "../brand-icons.js";
|
|
2
|
+
import { type BrowserPhoneCard, type BrowserSettingsGroup, type BrowserSettingsView, type BrowserUpdates } from "../browser-workspace.js";
|
|
3
|
+
import { type Gap } from "../gaps.js";
|
|
4
|
+
import { type LeadIdentity } from "../lead-identity.js";
|
|
5
|
+
import { type ProviderConnection } from "../provider-connection.js";
|
|
6
|
+
import { type QualityMode } from "../quality.js";
|
|
7
|
+
import { type UnattendedPermissionMode } from "../scope.js";
|
|
8
|
+
import { type Capability, type PushSubscription, type ResultScreenshots, type Store } from "../store.js";
|
|
9
|
+
import { type TokenSource } from "../telegram.js";
|
|
10
|
+
import { type Chrome, type Screen } from "./chrome.js";
|
|
11
|
+
import { type Html } from "../html.js";
|
|
12
|
+
/** What the lead's settings form shows beside the saved configuration: where keys come from (never the keys), the
|
|
13
|
+
* live model lists, and where saving goes back to. */
|
|
14
|
+
export type LeadFormFacts = {
|
|
15
|
+
keyFacts: {
|
|
16
|
+
provider: string;
|
|
17
|
+
state: "environment" | "stored" | "none";
|
|
18
|
+
tail: string | null;
|
|
19
|
+
}[];
|
|
20
|
+
openrouterModels: string[] | null;
|
|
21
|
+
liveModels?: {
|
|
22
|
+
value: string;
|
|
23
|
+
label: string;
|
|
24
|
+
}[];
|
|
25
|
+
/** Unused: postForm writes the request's CSRF field (kept for callers). */
|
|
26
|
+
csrf: string;
|
|
27
|
+
returnTo: string;
|
|
28
|
+
};
|
|
29
|
+
/** Settings → Lead: one line for what runs the lead and one action; the full form, turning it off and stored keys under Advanced. */
|
|
30
|
+
export declare function leadSettingsHtml(data: {
|
|
31
|
+
config: import("../store.js").ChatConfig | null;
|
|
32
|
+
facts: LeadFormFacts;
|
|
33
|
+
words: string | null;
|
|
34
|
+
signedIn: string | null;
|
|
35
|
+
command: string;
|
|
36
|
+
said: string | null;
|
|
37
|
+
saved?: boolean;
|
|
38
|
+
identity?: LeadIdentity;
|
|
39
|
+
about?: string[];
|
|
40
|
+
aboutSaved?: boolean;
|
|
41
|
+
promises?: {
|
|
42
|
+
id: number;
|
|
43
|
+
what: string;
|
|
44
|
+
when: string;
|
|
45
|
+
until: string;
|
|
46
|
+
}[];
|
|
47
|
+
}): Html;
|
|
48
|
+
/** The lead's full settings (Settings → Lead → Advanced): provider, model, limits and a direct API key. */
|
|
49
|
+
export declare function leadConfigForm(current: import("../store.js").ChatConfig | null, data: LeadFormFacts): Html;
|
|
50
|
+
export declare function capsPage(chrome: Chrome, caps: Capability[] | null, gaps: Gap[], repo: string, now?: Date): Screen;
|
|
51
|
+
/** Whether the bot's saved delivery state reports a problem (no new check runs). */
|
|
52
|
+
export declare function telegramTrouble(store: Store, bot: TokenSource | null): boolean;
|
|
53
|
+
/** v98: how the bot's messages reach Toolroll, in words: pushed to the public address, or asked for. */
|
|
54
|
+
export declare function telegramDeliveryWords(store: Store, bot: TokenSource | null): string | null;
|
|
55
|
+
/** The projects this person can see, by name, and whether they muted each one's pings. */
|
|
56
|
+
export declare function notificationProjects(store: Store, account: string): {
|
|
57
|
+
repo: string;
|
|
58
|
+
name: string;
|
|
59
|
+
muted: boolean;
|
|
60
|
+
}[];
|
|
61
|
+
export declare function settingsPage(chrome: Chrome, existing: TokenSource | null, hasEnv: boolean, csrf: string, problem: string | null, messaging?: {
|
|
62
|
+
channel: string | null;
|
|
63
|
+
implicit: boolean;
|
|
64
|
+
configured: string[];
|
|
65
|
+
legacyWarning?: string;
|
|
66
|
+
} | null, push?: {
|
|
67
|
+
available: boolean;
|
|
68
|
+
devices: PushSubscription[];
|
|
69
|
+
} | null, providerKeys?: {
|
|
70
|
+
provider: string;
|
|
71
|
+
envName: string;
|
|
72
|
+
set: boolean;
|
|
73
|
+
updatedAt: string | null;
|
|
74
|
+
ambient: boolean;
|
|
75
|
+
mode: "subscription" | "api-key";
|
|
76
|
+
subscriptionCapable: boolean;
|
|
77
|
+
connection?: ProviderConnection;
|
|
78
|
+
}[] | null, digest?: {
|
|
79
|
+
everyMs: number | null;
|
|
80
|
+
lastSentAt: string | null;
|
|
81
|
+
held: number;
|
|
82
|
+
} | null, permissionDefault?: {
|
|
83
|
+
mode: UnattendedPermissionMode;
|
|
84
|
+
updatedAt: string | null;
|
|
85
|
+
updatedBy: string | null;
|
|
86
|
+
canManage: boolean;
|
|
87
|
+
} | null, qualityDefault?: {
|
|
88
|
+
mode: QualityMode;
|
|
89
|
+
updatedAt: string | null;
|
|
90
|
+
updatedBy: string | null;
|
|
91
|
+
canManage: boolean;
|
|
92
|
+
} | null, email?: NonNullable<BrowserSettingsView["email"]> | null, telegramDelivery?: string | null, workers?: NonNullable<BrowserSettingsView["workers"]> | null, updates?: BrowserUpdates | null, firstResult?: string | null, chatNotices?: {
|
|
93
|
+
mode: "quiet" | "all";
|
|
94
|
+
digestAt: string | null;
|
|
95
|
+
screenshots?: ResultScreenshots;
|
|
96
|
+
projects?: {
|
|
97
|
+
repo: string;
|
|
98
|
+
name: string;
|
|
99
|
+
muted: boolean;
|
|
100
|
+
}[];
|
|
101
|
+
} | null, telegramFailing?: boolean, phone?: BrowserPhoneCard | null): Screen;
|
|
102
|
+
/** The phone setup for the server-rendered Settings page: the same choices as the React card. */
|
|
103
|
+
export declare function phoneSetupHtml(phone: BrowserPhoneCard): Html;
|
|
104
|
+
/** Every worker that is not retired: its capacity, and the tasks it holds now. */
|
|
105
|
+
export declare function settingsWorkers(store: Store, now: Date): NonNullable<BrowserSettingsView["workers"]>;
|
|
106
|
+
/** The page's workers section, for browsers without the app script. */
|
|
107
|
+
export declare function workersCard(workers: NonNullable<BrowserSettingsView["workers"]> | null): Html;
|
|
108
|
+
/** Settings → Updates, for browsers without the app script. */
|
|
109
|
+
export declare function updatesCard(updates: BrowserUpdates | null): Html;
|
|
110
|
+
/** Choices save the moment they change; without the script the Save
|
|
111
|
+
* button stays and the form works the same. */
|
|
112
|
+
export declare const SETTINGS_AUTOSAVE_SCRIPT = "(function(){document.querySelectorAll('form[data-autosave]').forEach(function(form){form.classList.add('js-autosave');form.addEventListener('change',function(ev){var t=ev.target;if(t&&(t.type==='radio'||t.tagName==='SELECT')){if(form.requestSubmit)form.requestSubmit();else form.submit();}});});})();";
|
|
113
|
+
/** The newest release, remembered for a while so the page stays quick. */
|
|
114
|
+
export declare let latestSeen: {
|
|
115
|
+
at: number;
|
|
116
|
+
value: {
|
|
117
|
+
version: string;
|
|
118
|
+
} | {
|
|
119
|
+
problem: string;
|
|
120
|
+
};
|
|
121
|
+
} | null;
|
|
122
|
+
export declare function latestReleaseFor(latest: (() => Promise<{
|
|
123
|
+
version: string;
|
|
124
|
+
}>) | undefined): Promise<{
|
|
125
|
+
version: string;
|
|
126
|
+
} | {
|
|
127
|
+
problem: string;
|
|
128
|
+
}>;
|
|
129
|
+
/** Settings destinations under short headings: an icon and a name each, and a chat app's logo and state. */
|
|
130
|
+
export declare function settingsTiles(groups: BrowserSettingsGroup[]): Html;
|
|
131
|
+
/** Each destination once, in order: a group's heading, then its [href, label, icon] tiles. */
|
|
132
|
+
export declare const SETTINGS_GROUPS: [string, [string, string, Html][]][];
|
|
133
|
+
export declare const SETTINGS_TILE_ICONS: Map<string, Html>;
|
|
134
|
+
export declare const CHAT_APP_TILES: Record<string, BrandIconId>;
|
|
135
|
+
/**
|
|
136
|
+
* The settings groups, with each chat app's state from what the server already holds: not set up,
|
|
137
|
+
* connected, or getting alerts (only when that service was chosen, or is the only one).
|
|
138
|
+
* A Telegram bot whose saved delivery state reports a problem says so instead. With no config folder
|
|
139
|
+
* the state is unknown, so the tiles carry none.
|
|
140
|
+
*/
|
|
141
|
+
export declare function settingsGroups(messaging: {
|
|
142
|
+
channel: string | null;
|
|
143
|
+
implicit: boolean;
|
|
144
|
+
configured: string[];
|
|
145
|
+
} | null, telegramFailing?: boolean): BrowserSettingsGroup[];
|
|
146
|
+
/** Light, dark or the device's choice, one tap each. Per browser (a cookie). */
|
|
147
|
+
export declare function appearanceCard(csrf: string): Html;
|