@swirls/shuttle 0.0.0-stage → 0.1.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/CHANGELOG.md +10 -0
- package/LICENSE +190 -0
- package/NOTICE +5 -0
- package/README.md +42 -2
- package/dist/api/auth.d.ts +18 -0
- package/dist/api/auth.js +15 -0
- package/dist/api/common.d.ts +8 -0
- package/dist/api/common.js +4 -0
- package/dist/api/connections.d.ts +292 -0
- package/dist/api/connections.js +114 -0
- package/dist/api/github.d.ts +20 -0
- package/dist/api/github.js +13 -0
- package/dist/api/harness.d.ts +97 -0
- package/dist/api/harness.js +47 -0
- package/dist/api/index.d.ts +2059 -0
- package/dist/api/index.js +37 -0
- package/dist/api/runners.d.ts +93 -0
- package/dist/api/runners.js +45 -0
- package/dist/api/sandbox.d.ts +550 -0
- package/dist/api/sandbox.js +210 -0
- package/dist/api/sessions.d.ts +318 -0
- package/dist/api/sessions.js +154 -0
- package/dist/api/tenant.d.ts +54 -0
- package/dist/api/tenant.js +19 -0
- package/dist/api/timings.d.ts +36 -0
- package/dist/api/timings.js +48 -0
- package/dist/api/workspace.d.ts +738 -0
- package/dist/api/workspace.js +246 -0
- package/dist/core/pulls.d.ts +1001 -0
- package/dist/core/pulls.js +170 -0
- package/dist/core/workspace.d.ts +985 -0
- package/dist/core/workspace.js +174 -0
- package/dist/react/components/command-palette.d.ts +22 -0
- package/dist/react/components/command-palette.js +66 -0
- package/dist/react/components/follow-list.d.ts +20 -0
- package/dist/react/components/follow-list.js +98 -0
- package/dist/react/components/json-tree.d.ts +11 -0
- package/dist/react/components/json-tree.js +120 -0
- package/dist/react/components/markdown.d.ts +5 -0
- package/dist/react/components/markdown.js +29 -0
- package/dist/react/components/shuttle-mark.d.ts +7 -0
- package/dist/react/components/shuttle-mark.js +9 -0
- package/dist/react/components/status-dot.d.ts +9 -0
- package/dist/react/components/status-dot.js +27 -0
- package/dist/react/components/status.d.ts +6 -0
- package/dist/react/components/status.js +66 -0
- package/dist/react/components/ui/badge.d.ts +7 -0
- package/dist/react/components/ui/badge.js +19 -0
- package/dist/react/components/ui/button.d.ts +10 -0
- package/dist/react/components/ui/button.js +40 -0
- package/dist/react/components/ui/dialog.d.ts +19 -0
- package/dist/react/components/ui/dialog.js +34 -0
- package/dist/react/components/ui/dropdown-menu.d.ts +14 -0
- package/dist/react/components/ui/dropdown-menu.js +33 -0
- package/dist/react/components/ui/input.d.ts +3 -0
- package/dist/react/components/ui/input.js +6 -0
- package/dist/react/components/ui/panel.d.ts +18 -0
- package/dist/react/components/ui/panel.js +22 -0
- package/dist/react/components/ui/popover.d.ts +7 -0
- package/dist/react/components/ui/popover.js +16 -0
- package/dist/react/components/ui/resizable.d.ts +7 -0
- package/dist/react/components/ui/resizable.js +14 -0
- package/dist/react/components/ui/scroll-area.d.ts +14 -0
- package/dist/react/components/ui/scroll-area.js +12 -0
- package/dist/react/components/ui/select.d.ts +10 -0
- package/dist/react/components/ui/select.js +20 -0
- package/dist/react/components/ui/sheet.d.ts +8 -0
- package/dist/react/components/ui/sheet.js +20 -0
- package/dist/react/components/ui/tabs.d.ts +7 -0
- package/dist/react/components/ui/tabs.js +16 -0
- package/dist/react/components/ui/textarea.d.ts +3 -0
- package/dist/react/components/ui/textarea.js +6 -0
- package/dist/react/components/ui/tooltip.d.ts +8 -0
- package/dist/react/components/ui/tooltip.js +17 -0
- package/dist/react/features/artifacts/artifact-links.d.ts +9 -0
- package/dist/react/features/artifacts/artifact-links.js +38 -0
- package/dist/react/features/artifacts/artifact-pane.d.ts +19 -0
- package/dist/react/features/artifacts/artifact-pane.js +64 -0
- package/dist/react/features/artifacts/artifact-types.d.ts +59 -0
- package/dist/react/features/artifacts/artifact-types.js +69 -0
- package/dist/react/features/artifacts/browser-viewer.d.ts +5 -0
- package/dist/react/features/artifacts/browser-viewer.js +60 -0
- package/dist/react/features/artifacts/diff-style.d.ts +10 -0
- package/dist/react/features/artifacts/diff-style.js +21 -0
- package/dist/react/features/artifacts/file-pane.d.ts +13 -0
- package/dist/react/features/artifacts/file-pane.js +305 -0
- package/dist/react/features/artifacts/file-quick-open.d.ts +15 -0
- package/dist/react/features/artifacts/file-quick-open.js +74 -0
- package/dist/react/features/artifacts/file-search.d.ts +12 -0
- package/dist/react/features/artifacts/file-search.js +90 -0
- package/dist/react/features/artifacts/media-viewer.d.ts +8 -0
- package/dist/react/features/artifacts/media-viewer.js +41 -0
- package/dist/react/features/artifacts/review-diff.d.ts +19 -0
- package/dist/react/features/artifacts/review-diff.js +59 -0
- package/dist/react/features/artifacts/review-viewer.d.ts +4 -0
- package/dist/react/features/artifacts/review-viewer.js +337 -0
- package/dist/react/features/artifacts/sandbox.d.ts +43 -0
- package/dist/react/features/artifacts/sandbox.js +109 -0
- package/dist/react/features/artifacts/tab-strip.d.ts +11 -0
- package/dist/react/features/artifacts/tab-strip.js +55 -0
- package/dist/react/features/artifacts/terminal-theme.d.ts +34 -0
- package/dist/react/features/artifacts/terminal-theme.js +62 -0
- package/dist/react/features/artifacts/terminal-viewer.d.ts +5 -0
- package/dist/react/features/artifacts/terminal-viewer.js +209 -0
- package/dist/react/features/artifacts/unified-diff.d.ts +16 -0
- package/dist/react/features/artifacts/unified-diff.js +55 -0
- package/dist/react/features/artifacts/workspace-viewer.d.ts +16 -0
- package/dist/react/features/artifacts/workspace-viewer.js +275 -0
- package/dist/react/features/connections/agent-sign-in.d.ts +71 -0
- package/dist/react/features/connections/agent-sign-in.js +251 -0
- package/dist/react/features/connections/connections-panel.d.ts +8 -0
- package/dist/react/features/connections/connections-panel.js +42 -0
- package/dist/react/features/connections/login.d.ts +24 -0
- package/dist/react/features/connections/login.js +35 -0
- package/dist/react/features/connections/places.d.ts +20 -0
- package/dist/react/features/connections/places.js +27 -0
- package/dist/react/features/connections/queries.d.ts +28 -0
- package/dist/react/features/connections/queries.js +8 -0
- package/dist/react/features/events/event-cache.d.ts +4 -0
- package/dist/react/features/events/event-cache.js +29 -0
- package/dist/react/features/events/event-catalog.d.ts +17 -0
- package/dist/react/features/events/event-catalog.js +261 -0
- package/dist/react/features/events/event-inspector.d.ts +7 -0
- package/dist/react/features/events/event-inspector.js +29 -0
- package/dist/react/features/events/event-row.d.ts +21 -0
- package/dist/react/features/events/event-row.js +34 -0
- package/dist/react/features/events/event-stream.d.ts +18 -0
- package/dist/react/features/events/event-stream.js +58 -0
- package/dist/react/features/events/global-events.d.ts +122 -0
- package/dist/react/features/events/global-events.js +329 -0
- package/dist/react/features/events/shuttle-events.d.ts +7 -0
- package/dist/react/features/events/shuttle-events.js +1 -0
- package/dist/react/features/playbook/playbook-page.d.ts +2 -0
- package/dist/react/features/playbook/playbook-page.js +36 -0
- package/dist/react/features/playbook/playbook-query.d.ts +111 -0
- package/dist/react/features/playbook/playbook-query.js +17 -0
- package/dist/react/features/pulls/linked-session.d.ts +12 -0
- package/dist/react/features/pulls/linked-session.js +22 -0
- package/dist/react/features/pulls/pull-detail-sheet.d.ts +10 -0
- package/dist/react/features/pulls/pull-detail-sheet.js +41 -0
- package/dist/react/features/pulls/pull-fixtures.d.ts +8 -0
- package/dist/react/features/pulls/pull-fixtures.js +258 -0
- package/dist/react/features/pulls/pull-glyphs.d.ts +24 -0
- package/dist/react/features/pulls/pull-glyphs.js +89 -0
- package/dist/react/features/pulls/pull-inbox-list.d.ts +13 -0
- package/dist/react/features/pulls/pull-inbox-list.js +230 -0
- package/dist/react/features/pulls/pull-inbox-pref.d.ts +2 -0
- package/dist/react/features/pulls/pull-inbox-pref.js +19 -0
- package/dist/react/features/pulls/pull-inbox.d.ts +30 -0
- package/dist/react/features/pulls/pull-inbox.js +110 -0
- package/dist/react/features/pulls/pull-threads.d.ts +39 -0
- package/dist/react/features/pulls/pull-threads.js +145 -0
- package/dist/react/features/pulls/pulls.d.ts +120 -0
- package/dist/react/features/pulls/pulls.js +414 -0
- package/dist/react/features/pulls/session-pull-groups.d.ts +14 -0
- package/dist/react/features/pulls/session-pull-groups.js +29 -0
- package/dist/react/features/pulls/stack-ladder.d.ts +9 -0
- package/dist/react/features/pulls/stack-ladder.js +32 -0
- package/dist/react/features/sessions/agent-tree.d.ts +16 -0
- package/dist/react/features/sessions/agent-tree.js +100 -0
- package/dist/react/features/sessions/agents.d.ts +34 -0
- package/dist/react/features/sessions/agents.js +146 -0
- package/dist/react/features/sessions/attention.d.ts +32 -0
- package/dist/react/features/sessions/attention.js +42 -0
- package/dist/react/features/sessions/composer-attachments.d.ts +33 -0
- package/dist/react/features/sessions/composer-attachments.js +126 -0
- package/dist/react/features/sessions/composer.d.ts +15 -0
- package/dist/react/features/sessions/composer.js +327 -0
- package/dist/react/features/sessions/context-usage-meter.d.ts +5 -0
- package/dist/react/features/sessions/context-usage-meter.js +122 -0
- package/dist/react/features/sessions/context-usage.d.ts +54 -0
- package/dist/react/features/sessions/context-usage.js +206 -0
- package/dist/react/features/sessions/conversation.d.ts +21 -0
- package/dist/react/features/sessions/conversation.js +549 -0
- package/dist/react/features/sessions/harness-switcher.d.ts +26 -0
- package/dist/react/features/sessions/harness-switcher.js +118 -0
- package/dist/react/features/sessions/intake-heuristic.d.ts +5 -0
- package/dist/react/features/sessions/intake-heuristic.js +28 -0
- package/dist/react/features/sessions/interjection-routes.d.ts +13 -0
- package/dist/react/features/sessions/interjection-routes.js +72 -0
- package/dist/react/features/sessions/llm-models.d.ts +128 -0
- package/dist/react/features/sessions/llm-models.js +174 -0
- package/dist/react/features/sessions/media-strip.d.ts +25 -0
- package/dist/react/features/sessions/media-strip.js +56 -0
- package/dist/react/features/sessions/media.d.ts +43 -0
- package/dist/react/features/sessions/media.js +115 -0
- package/dist/react/features/sessions/model-search.d.ts +6 -0
- package/dist/react/features/sessions/model-search.js +16 -0
- package/dist/react/features/sessions/model-switcher.d.ts +16 -0
- package/dist/react/features/sessions/model-switcher.js +262 -0
- package/dist/react/features/sessions/open-pull-request.d.ts +20 -0
- package/dist/react/features/sessions/open-pull-request.js +92 -0
- package/dist/react/features/sessions/pull-publish-card.d.ts +14 -0
- package/dist/react/features/sessions/pull-publish-card.js +88 -0
- package/dist/react/features/sessions/recent-sessions.d.ts +11 -0
- package/dist/react/features/sessions/recent-sessions.js +29 -0
- package/dist/react/features/sessions/seen-sessions.d.ts +16 -0
- package/dist/react/features/sessions/seen-sessions.js +108 -0
- package/dist/react/features/sessions/session-activity.d.ts +95 -0
- package/dist/react/features/sessions/session-activity.js +785 -0
- package/dist/react/features/sessions/session-context.d.ts +8 -0
- package/dist/react/features/sessions/session-context.js +98 -0
- package/dist/react/features/sessions/session-feed.d.ts +243 -0
- package/dist/react/features/sessions/session-feed.js +883 -0
- package/dist/react/features/sessions/session-header.d.ts +24 -0
- package/dist/react/features/sessions/session-header.js +97 -0
- package/dist/react/features/sessions/session-layout.d.ts +7 -0
- package/dist/react/features/sessions/session-layout.js +87 -0
- package/dist/react/features/sessions/session-panes.d.ts +49 -0
- package/dist/react/features/sessions/session-panes.js +142 -0
- package/dist/react/features/sessions/session-parts.d.ts +35 -0
- package/dist/react/features/sessions/session-parts.js +74 -0
- package/dist/react/features/sessions/session-place.d.ts +9 -0
- package/dist/react/features/sessions/session-place.js +109 -0
- package/dist/react/features/sessions/session-pr-pills.d.ts +7 -0
- package/dist/react/features/sessions/session-pr-pills.js +28 -0
- package/dist/react/features/sessions/session-queries.d.ts +172 -0
- package/dist/react/features/sessions/session-queries.js +90 -0
- package/dist/react/features/sessions/session-repos.d.ts +8 -0
- package/dist/react/features/sessions/session-repos.js +15 -0
- package/dist/react/features/sessions/session-share.d.ts +8 -0
- package/dist/react/features/sessions/session-share.js +112 -0
- package/dist/react/features/sessions/session-tabs.d.ts +38 -0
- package/dist/react/features/sessions/session-tabs.js +191 -0
- package/dist/react/features/sessions/session.d.ts +103 -0
- package/dist/react/features/sessions/session.js +216 -0
- package/dist/react/features/sessions/signals.d.ts +13 -0
- package/dist/react/features/sessions/signals.js +34 -0
- package/dist/react/features/sessions/tab-set.d.ts +20 -0
- package/dist/react/features/sessions/tab-set.js +58 -0
- package/dist/react/features/sessions/team.d.ts +16 -0
- package/dist/react/features/sessions/team.js +35 -0
- package/dist/react/features/sessions/timeline.d.ts +53 -0
- package/dist/react/features/sessions/timeline.js +153 -0
- package/dist/react/features/sessions/use-session-tabs.d.ts +18 -0
- package/dist/react/features/sessions/use-session-tabs.js +119 -0
- package/dist/react/features/sessions/vendor-models.d.ts +23 -0
- package/dist/react/features/sessions/vendor-models.js +61 -0
- package/dist/react/features/workspace/activity-dot.d.ts +15 -0
- package/dist/react/features/workspace/activity-dot.js +36 -0
- package/dist/react/features/workspace/app-sidebar.d.ts +16 -0
- package/dist/react/features/workspace/app-sidebar.js +227 -0
- package/dist/react/features/workspace/fixture-toggle.d.ts +2 -0
- package/dist/react/features/workspace/fixture-toggle.js +72 -0
- package/dist/react/features/workspace/folder-group.d.ts +18 -0
- package/dist/react/features/workspace/folder-group.js +83 -0
- package/dist/react/features/workspace/inline-name-input.d.ts +10 -0
- package/dist/react/features/workspace/inline-name-input.js +33 -0
- package/dist/react/features/workspace/link-repo-dialog.d.ts +9 -0
- package/dist/react/features/workspace/link-repo-dialog.js +76 -0
- package/dist/react/features/workspace/repo-chip.d.ts +13 -0
- package/dist/react/features/workspace/repo-chip.js +15 -0
- package/dist/react/features/workspace/session-row.d.ts +20 -0
- package/dist/react/features/workspace/session-row.js +23 -0
- package/dist/react/features/workspace/use-debounced.d.ts +2 -0
- package/dist/react/features/workspace/use-debounced.js +10 -0
- package/dist/react/features/workspace/workspace-context.d.ts +45 -0
- package/dist/react/features/workspace/workspace-context.js +245 -0
- package/dist/react/features/workspace/workspace-fixtures.d.ts +16 -0
- package/dist/react/features/workspace/workspace-fixtures.js +175 -0
- package/dist/react/features/workspace/workspace-tree.d.ts +30 -0
- package/dist/react/features/workspace/workspace-tree.js +69 -0
- package/dist/react/features/workspace/workspace.d.ts +107 -0
- package/dist/react/features/workspace/workspace.js +458 -0
- package/dist/react/index.d.ts +33 -0
- package/dist/react/index.js +35 -0
- package/dist/react/lib/cn.d.ts +6 -0
- package/dist/react/lib/cn.js +20 -0
- package/dist/react/lib/initials.d.ts +6 -0
- package/dist/react/lib/initials.js +32 -0
- package/dist/react/lib/json.d.ts +33 -0
- package/dist/react/lib/json.js +101 -0
- package/dist/react/lib/time.d.ts +8 -0
- package/dist/react/lib/time.js +57 -0
- package/dist/react/lib/use-media-query.d.ts +1 -0
- package/dist/react/lib/use-media-query.js +9 -0
- package/dist/react/lib/use-now.d.ts +2 -0
- package/dist/react/lib/use-now.js +10 -0
- package/dist/react/lib/use-width-bucket.d.ts +6 -0
- package/dist/react/lib/use-width-bucket.js +28 -0
- package/dist/react/parts/index.d.ts +43 -0
- package/dist/react/parts/index.js +43 -0
- package/dist/react/shuttle/device.d.ts +42 -0
- package/dist/react/shuttle/device.js +10 -0
- package/dist/react/shuttle/host.d.ts +1126 -0
- package/dist/react/shuttle/host.js +93 -0
- package/dist/react/shuttle/identity.d.ts +31 -0
- package/dist/react/shuttle/identity.js +20 -0
- package/dist/react/shuttle/index.d.ts +14 -0
- package/dist/react/shuttle/index.js +13 -0
- package/dist/react/shuttle/provider.d.ts +41 -0
- package/dist/react/shuttle/provider.js +59 -0
- package/dist/react/shuttle/router.d.ts +43 -0
- package/dist/react/shuttle/router.js +1 -0
- package/dist/react/theme.css +456 -0
- package/dist/react/ui.d.ts +19 -0
- package/dist/react/ui.js +19 -0
- package/package.json +100 -4
|
@@ -0,0 +1,1001 @@
|
|
|
1
|
+
import { Schema } from 'effect';
|
|
2
|
+
export declare const AutoReviewModeSchema: Schema.Union<readonly [Schema.Literal<"off">, Schema.Literal<"others">, Schema.Literal<"all">]>;
|
|
3
|
+
export declare const PullLinkedRoleSchema: Schema.Union<readonly [Schema.Literal<"author">, Schema.Literal<"reviewer">]>;
|
|
4
|
+
export declare const ReviewDecisionSchema: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"changes_requested">, Schema.Literal<"review_required">, Schema.Literal<"none">]>;
|
|
5
|
+
export declare const CheckRollupSchema: Schema.Union<readonly [Schema.Literal<"passing">, Schema.Literal<"failing">, Schema.Literal<"pending">, Schema.Literal<"neutral">]>;
|
|
6
|
+
export declare const PullUpsertActionSchema: Schema.Union<readonly [Schema.Literal<"opened">, Schema.Literal<"ready_for_review">, Schema.Literal<"synchronize">, Schema.Literal<"edited">, Schema.Literal<"reopened">, Schema.Literal<"converted_to_draft">, Schema.Literal<"synced">]>;
|
|
7
|
+
/** One comment in a review thread on GitHub. `commentId` is GitHub's own number for it. */
|
|
8
|
+
export declare const PullCommentSchema: Schema.Struct<{
|
|
9
|
+
readonly commentId: Schema.Finite;
|
|
10
|
+
/** The first comment of the thread this one belongs to; its own id when it starts one. */
|
|
11
|
+
readonly rootId: Schema.Finite;
|
|
12
|
+
readonly path: Schema.String;
|
|
13
|
+
/** The line the thread sits on, or where it sat before the code under it changed. */
|
|
14
|
+
readonly line: Schema.NullOr<Schema.Finite>;
|
|
15
|
+
/** Where a thread about several lines starts; `line` is where it ends. */
|
|
16
|
+
readonly startLine: Schema.optional<Schema.Finite>;
|
|
17
|
+
readonly side: Schema.Union<readonly [Schema.Literal<"LEFT">, Schema.Literal<"RIGHT">]>;
|
|
18
|
+
/** The code under the thread has changed since it was written. */
|
|
19
|
+
readonly outdated: Schema.Boolean;
|
|
20
|
+
readonly body: Schema.String;
|
|
21
|
+
readonly author: Schema.Struct<{
|
|
22
|
+
readonly login: Schema.String;
|
|
23
|
+
readonly avatarUrl: Schema.String;
|
|
24
|
+
}>;
|
|
25
|
+
readonly createdAt: Schema.Finite;
|
|
26
|
+
readonly updatedAt: Schema.Finite;
|
|
27
|
+
readonly url: Schema.String;
|
|
28
|
+
}>;
|
|
29
|
+
export declare const pullsCatalog: import("@swirls/looms/core").EventCatalog<"pulls", {
|
|
30
|
+
/** A review comment was written or edited on GitHub. */
|
|
31
|
+
'comment.upserted': Schema.Struct<{
|
|
32
|
+
readonly fullName: Schema.String;
|
|
33
|
+
readonly number: Schema.Finite;
|
|
34
|
+
readonly comment: Schema.Struct<{
|
|
35
|
+
readonly commentId: Schema.Finite;
|
|
36
|
+
/** The first comment of the thread this one belongs to; its own id when it starts one. */
|
|
37
|
+
readonly rootId: Schema.Finite;
|
|
38
|
+
readonly path: Schema.String;
|
|
39
|
+
/** The line the thread sits on, or where it sat before the code under it changed. */
|
|
40
|
+
readonly line: Schema.NullOr<Schema.Finite>;
|
|
41
|
+
/** Where a thread about several lines starts; `line` is where it ends. */
|
|
42
|
+
readonly startLine: Schema.optional<Schema.Finite>;
|
|
43
|
+
readonly side: Schema.Union<readonly [Schema.Literal<"LEFT">, Schema.Literal<"RIGHT">]>;
|
|
44
|
+
/** The code under the thread has changed since it was written. */
|
|
45
|
+
readonly outdated: Schema.Boolean;
|
|
46
|
+
readonly body: Schema.String;
|
|
47
|
+
readonly author: Schema.Struct<{
|
|
48
|
+
readonly login: Schema.String;
|
|
49
|
+
readonly avatarUrl: Schema.String;
|
|
50
|
+
}>;
|
|
51
|
+
readonly createdAt: Schema.Finite;
|
|
52
|
+
readonly updatedAt: Schema.Finite;
|
|
53
|
+
readonly url: Schema.String;
|
|
54
|
+
}>;
|
|
55
|
+
}>;
|
|
56
|
+
'comment.removed': Schema.Struct<{
|
|
57
|
+
readonly fullName: Schema.String;
|
|
58
|
+
readonly number: Schema.Finite;
|
|
59
|
+
readonly commentId: Schema.Finite;
|
|
60
|
+
}>;
|
|
61
|
+
'thread.resolution': Schema.Struct<{
|
|
62
|
+
readonly fullName: Schema.String;
|
|
63
|
+
readonly number: Schema.Finite;
|
|
64
|
+
readonly rootId: Schema.Finite;
|
|
65
|
+
readonly resolved: Schema.Boolean;
|
|
66
|
+
readonly updatedAt: Schema.Finite;
|
|
67
|
+
}>;
|
|
68
|
+
/** Every review thread on a pull request as GitHub has it, replacing what was known. */
|
|
69
|
+
'threads.synced': Schema.Struct<{
|
|
70
|
+
readonly fullName: Schema.String;
|
|
71
|
+
readonly number: Schema.Finite;
|
|
72
|
+
readonly syncedAt: Schema.Finite;
|
|
73
|
+
readonly threads: Schema.$Array<Schema.Struct<{
|
|
74
|
+
readonly rootId: Schema.Finite;
|
|
75
|
+
readonly resolved: Schema.Boolean;
|
|
76
|
+
readonly comments: Schema.$Array<Schema.Struct<{
|
|
77
|
+
readonly commentId: Schema.Finite;
|
|
78
|
+
/** The first comment of the thread this one belongs to; its own id when it starts one. */
|
|
79
|
+
readonly rootId: Schema.Finite;
|
|
80
|
+
readonly path: Schema.String;
|
|
81
|
+
/** The line the thread sits on, or where it sat before the code under it changed. */
|
|
82
|
+
readonly line: Schema.NullOr<Schema.Finite>;
|
|
83
|
+
/** Where a thread about several lines starts; `line` is where it ends. */
|
|
84
|
+
readonly startLine: Schema.optional<Schema.Finite>;
|
|
85
|
+
readonly side: Schema.Union<readonly [Schema.Literal<"LEFT">, Schema.Literal<"RIGHT">]>;
|
|
86
|
+
/** The code under the thread has changed since it was written. */
|
|
87
|
+
readonly outdated: Schema.Boolean;
|
|
88
|
+
readonly body: Schema.String;
|
|
89
|
+
readonly author: Schema.Struct<{
|
|
90
|
+
readonly login: Schema.String;
|
|
91
|
+
readonly avatarUrl: Schema.String;
|
|
92
|
+
}>;
|
|
93
|
+
readonly createdAt: Schema.Finite;
|
|
94
|
+
readonly updatedAt: Schema.Finite;
|
|
95
|
+
readonly url: Schema.String;
|
|
96
|
+
}>>;
|
|
97
|
+
}>>;
|
|
98
|
+
}>;
|
|
99
|
+
'pull.upserted': Schema.Struct<{
|
|
100
|
+
readonly installationId: Schema.Finite;
|
|
101
|
+
readonly fullName: Schema.String;
|
|
102
|
+
readonly number: Schema.Finite;
|
|
103
|
+
readonly action: Schema.Union<readonly [Schema.Literal<"opened">, Schema.Literal<"ready_for_review">, Schema.Literal<"synchronize">, Schema.Literal<"edited">, Schema.Literal<"reopened">, Schema.Literal<"converted_to_draft">, Schema.Literal<"synced">]>;
|
|
104
|
+
readonly title: Schema.String;
|
|
105
|
+
readonly body: Schema.String;
|
|
106
|
+
readonly url: Schema.String;
|
|
107
|
+
readonly draft: Schema.Boolean;
|
|
108
|
+
readonly author: Schema.Struct<{
|
|
109
|
+
readonly login: Schema.String;
|
|
110
|
+
readonly avatarUrl: Schema.String;
|
|
111
|
+
}>;
|
|
112
|
+
readonly headRef: Schema.String;
|
|
113
|
+
readonly headSha: Schema.String;
|
|
114
|
+
readonly baseRef: Schema.String;
|
|
115
|
+
readonly baseSha: Schema.String;
|
|
116
|
+
readonly additions: Schema.Finite;
|
|
117
|
+
readonly deletions: Schema.Finite;
|
|
118
|
+
readonly reviewDecision: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"changes_requested">, Schema.Literal<"review_required">, Schema.Literal<"none">]>;
|
|
119
|
+
readonly checkRollup: Schema.Union<readonly [Schema.Literal<"passing">, Schema.Literal<"failing">, Schema.Literal<"pending">, Schema.Literal<"neutral">]>;
|
|
120
|
+
readonly updatedAt: Schema.Finite;
|
|
121
|
+
readonly isFork: Schema.Boolean;
|
|
122
|
+
readonly state: Schema.Union<readonly [Schema.Literal<"open">, Schema.Literal<"closed">]>;
|
|
123
|
+
readonly stack: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
124
|
+
readonly number: Schema.Finite;
|
|
125
|
+
readonly position: Schema.Finite;
|
|
126
|
+
readonly size: Schema.Finite;
|
|
127
|
+
}>>>;
|
|
128
|
+
}>;
|
|
129
|
+
'pull.closed': Schema.Struct<{
|
|
130
|
+
readonly fullName: Schema.String;
|
|
131
|
+
readonly number: Schema.Finite;
|
|
132
|
+
readonly updatedAt: Schema.Finite;
|
|
133
|
+
}>;
|
|
134
|
+
'checks.updated': Schema.Struct<{
|
|
135
|
+
readonly fullName: Schema.String;
|
|
136
|
+
readonly headSha: Schema.String;
|
|
137
|
+
readonly checkRollup: Schema.Union<readonly [Schema.Literal<"passing">, Schema.Literal<"failing">, Schema.Literal<"pending">, Schema.Literal<"neutral">]>;
|
|
138
|
+
readonly updatedAt: Schema.Finite;
|
|
139
|
+
}>;
|
|
140
|
+
'review.submitted': Schema.Struct<{
|
|
141
|
+
readonly fullName: Schema.String;
|
|
142
|
+
readonly number: Schema.Finite;
|
|
143
|
+
readonly verdict: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"changes_requested">, Schema.Literal<"commented">]>;
|
|
144
|
+
readonly updatedAt: Schema.Finite;
|
|
145
|
+
}>;
|
|
146
|
+
'pull.linked': Schema.Struct<{
|
|
147
|
+
readonly fullName: Schema.String;
|
|
148
|
+
readonly number: Schema.Finite;
|
|
149
|
+
readonly runId: Schema.String;
|
|
150
|
+
readonly role: Schema.Union<readonly [Schema.Literal<"author">, Schema.Literal<"reviewer">]>;
|
|
151
|
+
/** Agent thread inside the session that opened or reviewed the PR. */
|
|
152
|
+
readonly threadId: Schema.optional<Schema.String>;
|
|
153
|
+
}>;
|
|
154
|
+
'repo.policy.set': Schema.Struct<{
|
|
155
|
+
readonly fullName: Schema.String;
|
|
156
|
+
readonly installationId: Schema.Finite;
|
|
157
|
+
readonly folders: Schema.$Array<Schema.Struct<{
|
|
158
|
+
readonly folderId: Schema.String;
|
|
159
|
+
readonly autoReview: Schema.Union<readonly [Schema.Literal<"off">, Schema.Literal<"others">, Schema.Literal<"all">]>;
|
|
160
|
+
}>>;
|
|
161
|
+
}>;
|
|
162
|
+
'review.requested': Schema.Struct<{
|
|
163
|
+
readonly fullName: Schema.String;
|
|
164
|
+
readonly number: Schema.Finite;
|
|
165
|
+
readonly headSha: Schema.String;
|
|
166
|
+
readonly folderId: Schema.String;
|
|
167
|
+
readonly runId: Schema.String;
|
|
168
|
+
readonly at: Schema.Finite;
|
|
169
|
+
}>;
|
|
170
|
+
}>;
|
|
171
|
+
export declare const pullsModule: import("@swirls/looms/core").ModuleScope<"pulls", import("@swirls/looms/core").ScopeUniverse<import("@swirls/looms/core").EventCatalog<"pulls", {
|
|
172
|
+
/** A review comment was written or edited on GitHub. */
|
|
173
|
+
'comment.upserted': Schema.Struct<{
|
|
174
|
+
readonly fullName: Schema.String;
|
|
175
|
+
readonly number: Schema.Finite;
|
|
176
|
+
readonly comment: Schema.Struct<{
|
|
177
|
+
readonly commentId: Schema.Finite;
|
|
178
|
+
/** The first comment of the thread this one belongs to; its own id when it starts one. */
|
|
179
|
+
readonly rootId: Schema.Finite;
|
|
180
|
+
readonly path: Schema.String;
|
|
181
|
+
/** The line the thread sits on, or where it sat before the code under it changed. */
|
|
182
|
+
readonly line: Schema.NullOr<Schema.Finite>;
|
|
183
|
+
/** Where a thread about several lines starts; `line` is where it ends. */
|
|
184
|
+
readonly startLine: Schema.optional<Schema.Finite>;
|
|
185
|
+
readonly side: Schema.Union<readonly [Schema.Literal<"LEFT">, Schema.Literal<"RIGHT">]>;
|
|
186
|
+
/** The code under the thread has changed since it was written. */
|
|
187
|
+
readonly outdated: Schema.Boolean;
|
|
188
|
+
readonly body: Schema.String;
|
|
189
|
+
readonly author: Schema.Struct<{
|
|
190
|
+
readonly login: Schema.String;
|
|
191
|
+
readonly avatarUrl: Schema.String;
|
|
192
|
+
}>;
|
|
193
|
+
readonly createdAt: Schema.Finite;
|
|
194
|
+
readonly updatedAt: Schema.Finite;
|
|
195
|
+
readonly url: Schema.String;
|
|
196
|
+
}>;
|
|
197
|
+
}>;
|
|
198
|
+
'comment.removed': Schema.Struct<{
|
|
199
|
+
readonly fullName: Schema.String;
|
|
200
|
+
readonly number: Schema.Finite;
|
|
201
|
+
readonly commentId: Schema.Finite;
|
|
202
|
+
}>;
|
|
203
|
+
'thread.resolution': Schema.Struct<{
|
|
204
|
+
readonly fullName: Schema.String;
|
|
205
|
+
readonly number: Schema.Finite;
|
|
206
|
+
readonly rootId: Schema.Finite;
|
|
207
|
+
readonly resolved: Schema.Boolean;
|
|
208
|
+
readonly updatedAt: Schema.Finite;
|
|
209
|
+
}>;
|
|
210
|
+
/** Every review thread on a pull request as GitHub has it, replacing what was known. */
|
|
211
|
+
'threads.synced': Schema.Struct<{
|
|
212
|
+
readonly fullName: Schema.String;
|
|
213
|
+
readonly number: Schema.Finite;
|
|
214
|
+
readonly syncedAt: Schema.Finite;
|
|
215
|
+
readonly threads: Schema.$Array<Schema.Struct<{
|
|
216
|
+
readonly rootId: Schema.Finite;
|
|
217
|
+
readonly resolved: Schema.Boolean;
|
|
218
|
+
readonly comments: Schema.$Array<Schema.Struct<{
|
|
219
|
+
readonly commentId: Schema.Finite;
|
|
220
|
+
/** The first comment of the thread this one belongs to; its own id when it starts one. */
|
|
221
|
+
readonly rootId: Schema.Finite;
|
|
222
|
+
readonly path: Schema.String;
|
|
223
|
+
/** The line the thread sits on, or where it sat before the code under it changed. */
|
|
224
|
+
readonly line: Schema.NullOr<Schema.Finite>;
|
|
225
|
+
/** Where a thread about several lines starts; `line` is where it ends. */
|
|
226
|
+
readonly startLine: Schema.optional<Schema.Finite>;
|
|
227
|
+
readonly side: Schema.Union<readonly [Schema.Literal<"LEFT">, Schema.Literal<"RIGHT">]>;
|
|
228
|
+
/** The code under the thread has changed since it was written. */
|
|
229
|
+
readonly outdated: Schema.Boolean;
|
|
230
|
+
readonly body: Schema.String;
|
|
231
|
+
readonly author: Schema.Struct<{
|
|
232
|
+
readonly login: Schema.String;
|
|
233
|
+
readonly avatarUrl: Schema.String;
|
|
234
|
+
}>;
|
|
235
|
+
readonly createdAt: Schema.Finite;
|
|
236
|
+
readonly updatedAt: Schema.Finite;
|
|
237
|
+
readonly url: Schema.String;
|
|
238
|
+
}>>;
|
|
239
|
+
}>>;
|
|
240
|
+
}>;
|
|
241
|
+
'pull.upserted': Schema.Struct<{
|
|
242
|
+
readonly installationId: Schema.Finite;
|
|
243
|
+
readonly fullName: Schema.String;
|
|
244
|
+
readonly number: Schema.Finite;
|
|
245
|
+
readonly action: Schema.Union<readonly [Schema.Literal<"opened">, Schema.Literal<"ready_for_review">, Schema.Literal<"synchronize">, Schema.Literal<"edited">, Schema.Literal<"reopened">, Schema.Literal<"converted_to_draft">, Schema.Literal<"synced">]>;
|
|
246
|
+
readonly title: Schema.String;
|
|
247
|
+
readonly body: Schema.String;
|
|
248
|
+
readonly url: Schema.String;
|
|
249
|
+
readonly draft: Schema.Boolean;
|
|
250
|
+
readonly author: Schema.Struct<{
|
|
251
|
+
readonly login: Schema.String;
|
|
252
|
+
readonly avatarUrl: Schema.String;
|
|
253
|
+
}>;
|
|
254
|
+
readonly headRef: Schema.String;
|
|
255
|
+
readonly headSha: Schema.String;
|
|
256
|
+
readonly baseRef: Schema.String;
|
|
257
|
+
readonly baseSha: Schema.String;
|
|
258
|
+
readonly additions: Schema.Finite;
|
|
259
|
+
readonly deletions: Schema.Finite;
|
|
260
|
+
readonly reviewDecision: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"changes_requested">, Schema.Literal<"review_required">, Schema.Literal<"none">]>;
|
|
261
|
+
readonly checkRollup: Schema.Union<readonly [Schema.Literal<"passing">, Schema.Literal<"failing">, Schema.Literal<"pending">, Schema.Literal<"neutral">]>;
|
|
262
|
+
readonly updatedAt: Schema.Finite;
|
|
263
|
+
readonly isFork: Schema.Boolean;
|
|
264
|
+
readonly state: Schema.Union<readonly [Schema.Literal<"open">, Schema.Literal<"closed">]>;
|
|
265
|
+
readonly stack: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
266
|
+
readonly number: Schema.Finite;
|
|
267
|
+
readonly position: Schema.Finite;
|
|
268
|
+
readonly size: Schema.Finite;
|
|
269
|
+
}>>>;
|
|
270
|
+
}>;
|
|
271
|
+
'pull.closed': Schema.Struct<{
|
|
272
|
+
readonly fullName: Schema.String;
|
|
273
|
+
readonly number: Schema.Finite;
|
|
274
|
+
readonly updatedAt: Schema.Finite;
|
|
275
|
+
}>;
|
|
276
|
+
'checks.updated': Schema.Struct<{
|
|
277
|
+
readonly fullName: Schema.String;
|
|
278
|
+
readonly headSha: Schema.String;
|
|
279
|
+
readonly checkRollup: Schema.Union<readonly [Schema.Literal<"passing">, Schema.Literal<"failing">, Schema.Literal<"pending">, Schema.Literal<"neutral">]>;
|
|
280
|
+
readonly updatedAt: Schema.Finite;
|
|
281
|
+
}>;
|
|
282
|
+
'review.submitted': Schema.Struct<{
|
|
283
|
+
readonly fullName: Schema.String;
|
|
284
|
+
readonly number: Schema.Finite;
|
|
285
|
+
readonly verdict: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"changes_requested">, Schema.Literal<"commented">]>;
|
|
286
|
+
readonly updatedAt: Schema.Finite;
|
|
287
|
+
}>;
|
|
288
|
+
'pull.linked': Schema.Struct<{
|
|
289
|
+
readonly fullName: Schema.String;
|
|
290
|
+
readonly number: Schema.Finite;
|
|
291
|
+
readonly runId: Schema.String;
|
|
292
|
+
readonly role: Schema.Union<readonly [Schema.Literal<"author">, Schema.Literal<"reviewer">]>;
|
|
293
|
+
/** Agent thread inside the session that opened or reviewed the PR. */
|
|
294
|
+
readonly threadId: Schema.optional<Schema.String>;
|
|
295
|
+
}>;
|
|
296
|
+
'repo.policy.set': Schema.Struct<{
|
|
297
|
+
readonly fullName: Schema.String;
|
|
298
|
+
readonly installationId: Schema.Finite;
|
|
299
|
+
readonly folders: Schema.$Array<Schema.Struct<{
|
|
300
|
+
readonly folderId: Schema.String;
|
|
301
|
+
readonly autoReview: Schema.Union<readonly [Schema.Literal<"off">, Schema.Literal<"others">, Schema.Literal<"all">]>;
|
|
302
|
+
}>>;
|
|
303
|
+
}>;
|
|
304
|
+
'review.requested': Schema.Struct<{
|
|
305
|
+
readonly fullName: Schema.String;
|
|
306
|
+
readonly number: Schema.Finite;
|
|
307
|
+
readonly headSha: Schema.String;
|
|
308
|
+
readonly folderId: Schema.String;
|
|
309
|
+
readonly runId: Schema.String;
|
|
310
|
+
readonly at: Schema.Finite;
|
|
311
|
+
}>;
|
|
312
|
+
}>, (import("@swirls/looms/core").EventCatalog<"agent", {
|
|
313
|
+
'message.received': Schema.Struct<{
|
|
314
|
+
readonly message: Schema.Struct<{
|
|
315
|
+
readonly role: Schema.Union<readonly [Schema.Literal<"system">, Schema.Literal<"user">, Schema.Literal<"assistant">, Schema.Literal<"tool">]>;
|
|
316
|
+
readonly content: Schema.String;
|
|
317
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
318
|
+
readonly id: Schema.String;
|
|
319
|
+
readonly mediaType: Schema.String;
|
|
320
|
+
readonly name: Schema.optional<Schema.String>;
|
|
321
|
+
readonly size: Schema.optional<Schema.Finite>;
|
|
322
|
+
readonly url: Schema.optional<Schema.String>;
|
|
323
|
+
}>>>;
|
|
324
|
+
readonly toolCallId: Schema.optional<Schema.String>;
|
|
325
|
+
readonly name: Schema.optional<Schema.String>;
|
|
326
|
+
readonly toolCalls: Schema.optional<Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
327
|
+
readonly id: Schema.String;
|
|
328
|
+
readonly name: Schema.String;
|
|
329
|
+
readonly arguments: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
330
|
+
}>>>>;
|
|
331
|
+
}>;
|
|
332
|
+
}>;
|
|
333
|
+
'turn.started': Schema.Struct<{
|
|
334
|
+
readonly turn: Schema.Finite;
|
|
335
|
+
readonly messageCount: Schema.optional<Schema.Finite>;
|
|
336
|
+
}>;
|
|
337
|
+
'turn.settled': Schema.Struct<{
|
|
338
|
+
readonly turn: Schema.Finite;
|
|
339
|
+
}>;
|
|
340
|
+
'turn.text_delta': Schema.Struct<{
|
|
341
|
+
readonly turn: Schema.Finite;
|
|
342
|
+
readonly delta: Schema.String;
|
|
343
|
+
}>;
|
|
344
|
+
message: Schema.Struct<{
|
|
345
|
+
readonly turn: Schema.Finite;
|
|
346
|
+
readonly message: Schema.Struct<{
|
|
347
|
+
readonly role: Schema.Union<readonly [Schema.Literal<"system">, Schema.Literal<"user">, Schema.Literal<"assistant">, Schema.Literal<"tool">]>;
|
|
348
|
+
readonly content: Schema.String;
|
|
349
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
350
|
+
readonly id: Schema.String;
|
|
351
|
+
readonly mediaType: Schema.String;
|
|
352
|
+
readonly name: Schema.optional<Schema.String>;
|
|
353
|
+
readonly size: Schema.optional<Schema.Finite>;
|
|
354
|
+
readonly url: Schema.optional<Schema.String>;
|
|
355
|
+
}>>>;
|
|
356
|
+
readonly toolCallId: Schema.optional<Schema.String>;
|
|
357
|
+
readonly name: Schema.optional<Schema.String>;
|
|
358
|
+
readonly toolCalls: Schema.optional<Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
359
|
+
readonly id: Schema.String;
|
|
360
|
+
readonly name: Schema.String;
|
|
361
|
+
readonly arguments: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
362
|
+
}>>>>;
|
|
363
|
+
}>;
|
|
364
|
+
readonly usage: Schema.optional<Schema.Struct<{
|
|
365
|
+
readonly input: Schema.Finite;
|
|
366
|
+
readonly output: Schema.Finite;
|
|
367
|
+
}>>;
|
|
368
|
+
}>;
|
|
369
|
+
'tool_call.requested': Schema.Struct<{
|
|
370
|
+
readonly turn: Schema.Finite;
|
|
371
|
+
readonly toolCall: Schema.Struct<{
|
|
372
|
+
readonly id: Schema.String;
|
|
373
|
+
readonly name: Schema.String;
|
|
374
|
+
readonly arguments: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
375
|
+
}>;
|
|
376
|
+
}>;
|
|
377
|
+
'tool.result': Schema.Struct<{
|
|
378
|
+
readonly turn: Schema.Finite;
|
|
379
|
+
readonly toolCallId: Schema.String;
|
|
380
|
+
readonly name: Schema.String;
|
|
381
|
+
readonly result: Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
382
|
+
readonly error: Schema.NullOr<Schema.String>;
|
|
383
|
+
}>;
|
|
384
|
+
steered: Schema.Struct<{
|
|
385
|
+
readonly turn: Schema.Finite;
|
|
386
|
+
readonly messageId: Schema.optional<Schema.String>;
|
|
387
|
+
readonly message: Schema.Struct<{
|
|
388
|
+
readonly role: Schema.Union<readonly [Schema.Literal<"system">, Schema.Literal<"user">, Schema.Literal<"assistant">, Schema.Literal<"tool">]>;
|
|
389
|
+
readonly content: Schema.String;
|
|
390
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
391
|
+
readonly id: Schema.String;
|
|
392
|
+
readonly mediaType: Schema.String;
|
|
393
|
+
readonly name: Schema.optional<Schema.String>;
|
|
394
|
+
readonly size: Schema.optional<Schema.Finite>;
|
|
395
|
+
readonly url: Schema.optional<Schema.String>;
|
|
396
|
+
}>>>;
|
|
397
|
+
readonly toolCallId: Schema.optional<Schema.String>;
|
|
398
|
+
readonly name: Schema.optional<Schema.String>;
|
|
399
|
+
readonly toolCalls: Schema.optional<Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
400
|
+
readonly id: Schema.String;
|
|
401
|
+
readonly name: Schema.String;
|
|
402
|
+
readonly arguments: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
403
|
+
}>>>>;
|
|
404
|
+
}>;
|
|
405
|
+
readonly interrupt: Schema.optional<Schema.Boolean>;
|
|
406
|
+
}>;
|
|
407
|
+
'turn.stopped': Schema.Struct<{}>;
|
|
408
|
+
'session.message.submitted': Schema.Struct<{
|
|
409
|
+
readonly messageId: Schema.String;
|
|
410
|
+
readonly text: Schema.String;
|
|
411
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
412
|
+
readonly id: Schema.String;
|
|
413
|
+
readonly mediaType: Schema.String;
|
|
414
|
+
readonly name: Schema.optional<Schema.String>;
|
|
415
|
+
readonly size: Schema.optional<Schema.Finite>;
|
|
416
|
+
readonly url: Schema.optional<Schema.String>;
|
|
417
|
+
}>>>;
|
|
418
|
+
readonly delivery: Schema.optional<Schema.Union<readonly [Schema.Literal<"steer">, Schema.Literal<"followUp">, Schema.Literal<"nextTurn">]>>;
|
|
419
|
+
readonly activeChildThreadId: Schema.optional<Schema.String>;
|
|
420
|
+
}>;
|
|
421
|
+
'session.steer.delivered': Schema.Struct<{
|
|
422
|
+
readonly messageId: Schema.String;
|
|
423
|
+
readonly activeMessageId: Schema.String;
|
|
424
|
+
}>;
|
|
425
|
+
'session.turn.started': Schema.Struct<{
|
|
426
|
+
readonly messageId: Schema.String;
|
|
427
|
+
readonly childThreadId: Schema.String;
|
|
428
|
+
}>;
|
|
429
|
+
'session.turn.closed': Schema.Struct<{
|
|
430
|
+
readonly messageId: Schema.String;
|
|
431
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"failed">, Schema.Literal<"cancelled">]>;
|
|
432
|
+
readonly error: Schema.optional<Schema.String>;
|
|
433
|
+
}>;
|
|
434
|
+
'session.cancel.requested': Schema.Struct<{}>;
|
|
435
|
+
'spawn.requested': Schema.Struct<{
|
|
436
|
+
readonly childThreadId: Schema.String;
|
|
437
|
+
readonly kind: Schema.String;
|
|
438
|
+
readonly definitionName: Schema.String;
|
|
439
|
+
readonly definitionVersion: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
440
|
+
readonly toolCallId: Schema.String;
|
|
441
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
442
|
+
readonly depth: Schema.optional<Schema.Finite>;
|
|
443
|
+
}>;
|
|
444
|
+
'effects.requested': Schema.Struct<{
|
|
445
|
+
readonly toolCallId: Schema.String;
|
|
446
|
+
readonly effects: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
447
|
+
readonly type: Schema.Literal<"runtime.spawn">;
|
|
448
|
+
readonly childThreadId: Schema.String;
|
|
449
|
+
readonly kind: Schema.String;
|
|
450
|
+
readonly definitionName: Schema.String;
|
|
451
|
+
readonly definitionVersion: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
452
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
453
|
+
}>, Schema.Struct<{
|
|
454
|
+
readonly type: Schema.Literal<"runtime.wait">;
|
|
455
|
+
readonly waitId: Schema.String;
|
|
456
|
+
readonly on: Schema.Union<readonly [Schema.Struct<{
|
|
457
|
+
readonly type: Schema.Union<readonly [Schema.String, Schema.$Array<Schema.String>]>;
|
|
458
|
+
readonly match: Schema.optional<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
459
|
+
}>, Schema.Struct<{
|
|
460
|
+
readonly timerAt: Schema.Finite;
|
|
461
|
+
}>]>;
|
|
462
|
+
readonly tag: Schema.optional<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
463
|
+
}>, Schema.Struct<{
|
|
464
|
+
readonly type: Schema.Literal<"runtime.emit">;
|
|
465
|
+
readonly event: Schema.Struct<{
|
|
466
|
+
readonly type: Schema.String;
|
|
467
|
+
readonly payload: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
468
|
+
readonly threadId: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
469
|
+
readonly parentThreadId: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
470
|
+
readonly causationId: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
471
|
+
readonly correlationId: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
472
|
+
readonly effectId: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
473
|
+
readonly origin: Schema.optional<Schema.Union<readonly [Schema.Struct<{
|
|
474
|
+
readonly type: Schema.Literal<"thread">;
|
|
475
|
+
readonly threadId: Schema.String;
|
|
476
|
+
}>, Schema.Struct<{
|
|
477
|
+
readonly type: Schema.Literal<"external">;
|
|
478
|
+
readonly actorId: Schema.optional<Schema.String>;
|
|
479
|
+
}>, Schema.Struct<{
|
|
480
|
+
readonly type: Schema.Literal<"system">;
|
|
481
|
+
}>, Schema.Struct<{
|
|
482
|
+
readonly type: Schema.Literal<"run">;
|
|
483
|
+
readonly runId: Schema.String;
|
|
484
|
+
}>]>>;
|
|
485
|
+
readonly ephemeral: Schema.optional<Schema.Boolean>;
|
|
486
|
+
readonly id: Schema.optional<Schema.String>;
|
|
487
|
+
readonly ts: Schema.optional<Schema.Finite>;
|
|
488
|
+
readonly idempotencyKey: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
489
|
+
}>;
|
|
490
|
+
readonly tag: Schema.optional<Schema.String>;
|
|
491
|
+
}>, Schema.Struct<{
|
|
492
|
+
readonly type: Schema.Literal<"runtime.complete">;
|
|
493
|
+
readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
494
|
+
}>, Schema.Struct<{
|
|
495
|
+
readonly type: Schema.Literal<"runtime.fail">;
|
|
496
|
+
readonly error: Schema.String;
|
|
497
|
+
}>, Schema.Struct<{
|
|
498
|
+
readonly type: Schema.Literal<"runtime.cancel">;
|
|
499
|
+
readonly threadId: Schema.String;
|
|
500
|
+
readonly tag: Schema.optional<Schema.String>;
|
|
501
|
+
}>, Schema.Struct<{
|
|
502
|
+
readonly type: Schema.Literal<"runtime.launch">;
|
|
503
|
+
readonly runId: Schema.String;
|
|
504
|
+
readonly kind: Schema.String;
|
|
505
|
+
readonly definitionName: Schema.String;
|
|
506
|
+
readonly definitionVersion: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
507
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
508
|
+
readonly close: Schema.withDecodingDefaultKey<Schema.Union<readonly [Schema.Literal<"terminate">, Schema.Literal<"wait">]>, never>;
|
|
509
|
+
readonly tag: Schema.optional<Schema.String>;
|
|
510
|
+
}>, Schema.Struct<{
|
|
511
|
+
readonly type: Schema.Literal<"runtime.cancelRun">;
|
|
512
|
+
readonly runId: Schema.String;
|
|
513
|
+
readonly tag: Schema.optional<Schema.String>;
|
|
514
|
+
}>, Schema.Struct<{
|
|
515
|
+
readonly type: Schema.String;
|
|
516
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
517
|
+
readonly tag: Schema.optional<Schema.String>;
|
|
518
|
+
readonly at: Schema.optional<Schema.Finite>;
|
|
519
|
+
}>]>>;
|
|
520
|
+
readonly waitOn: Schema.optional<Schema.Struct<{
|
|
521
|
+
readonly type: Schema.Union<readonly [Schema.String, Schema.$Array<Schema.String>]>;
|
|
522
|
+
readonly match: Schema.optional<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
523
|
+
}>>;
|
|
524
|
+
}>;
|
|
525
|
+
lineage: Schema.Struct<{
|
|
526
|
+
readonly depth: Schema.Finite;
|
|
527
|
+
}>;
|
|
528
|
+
'context.compacted': Schema.Struct<{
|
|
529
|
+
readonly turn: Schema.Finite;
|
|
530
|
+
readonly originalCount: Schema.Finite;
|
|
531
|
+
readonly compactedCount: Schema.Finite;
|
|
532
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
533
|
+
readonly reason: Schema.optional<Schema.Union<readonly [Schema.Literal<"overflow">, Schema.Literal<"manual">, Schema.Literal<"threshold">]>>;
|
|
534
|
+
readonly messages: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
535
|
+
readonly role: Schema.Union<readonly [Schema.Literal<"system">, Schema.Literal<"user">, Schema.Literal<"assistant">, Schema.Literal<"tool">]>;
|
|
536
|
+
readonly content: Schema.String;
|
|
537
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
538
|
+
readonly id: Schema.String;
|
|
539
|
+
readonly mediaType: Schema.String;
|
|
540
|
+
readonly name: Schema.optional<Schema.String>;
|
|
541
|
+
readonly size: Schema.optional<Schema.Finite>;
|
|
542
|
+
readonly url: Schema.optional<Schema.String>;
|
|
543
|
+
}>>>;
|
|
544
|
+
readonly toolCallId: Schema.optional<Schema.String>;
|
|
545
|
+
readonly name: Schema.optional<Schema.String>;
|
|
546
|
+
readonly toolCalls: Schema.optional<Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
547
|
+
readonly id: Schema.String;
|
|
548
|
+
readonly name: Schema.String;
|
|
549
|
+
readonly arguments: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
550
|
+
}>>>>;
|
|
551
|
+
}>>>;
|
|
552
|
+
}>;
|
|
553
|
+
'turn.usage': Schema.Struct<{
|
|
554
|
+
readonly turn: Schema.Finite;
|
|
555
|
+
readonly input: Schema.Finite;
|
|
556
|
+
readonly output: Schema.Finite;
|
|
557
|
+
}>;
|
|
558
|
+
}> | import("@swirls/looms/core").EventCatalog<"approval", {
|
|
559
|
+
requested: Schema.Struct<{
|
|
560
|
+
readonly approvalId: Schema.String;
|
|
561
|
+
readonly title: Schema.String;
|
|
562
|
+
readonly description: Schema.optional<Schema.String>;
|
|
563
|
+
readonly actions: Schema.$Array<Schema.Struct<{
|
|
564
|
+
readonly id: Schema.String;
|
|
565
|
+
readonly label: Schema.String;
|
|
566
|
+
readonly outcome: Schema.Union<readonly [Schema.Literal<"approve">, Schema.Literal<"reject">]>;
|
|
567
|
+
}>>;
|
|
568
|
+
readonly schema: Schema.optional<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
569
|
+
}>;
|
|
570
|
+
decided: Schema.Struct<{
|
|
571
|
+
readonly approvalId: Schema.String;
|
|
572
|
+
readonly actionId: Schema.String;
|
|
573
|
+
readonly outcome: Schema.Union<readonly [Schema.Literal<"approve">, Schema.Literal<"reject">]>;
|
|
574
|
+
readonly payload: Schema.optional<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
575
|
+
}>;
|
|
576
|
+
timed_out: Schema.Struct<{
|
|
577
|
+
readonly approvalId: Schema.String;
|
|
578
|
+
}>;
|
|
579
|
+
}>)[]>, import("@swirls/looms/core").EventCatalog<"pulls", {
|
|
580
|
+
/** A review comment was written or edited on GitHub. */
|
|
581
|
+
'comment.upserted': Schema.Struct<{
|
|
582
|
+
readonly fullName: Schema.String;
|
|
583
|
+
readonly number: Schema.Finite;
|
|
584
|
+
readonly comment: Schema.Struct<{
|
|
585
|
+
readonly commentId: Schema.Finite;
|
|
586
|
+
/** The first comment of the thread this one belongs to; its own id when it starts one. */
|
|
587
|
+
readonly rootId: Schema.Finite;
|
|
588
|
+
readonly path: Schema.String;
|
|
589
|
+
/** The line the thread sits on, or where it sat before the code under it changed. */
|
|
590
|
+
readonly line: Schema.NullOr<Schema.Finite>;
|
|
591
|
+
/** Where a thread about several lines starts; `line` is where it ends. */
|
|
592
|
+
readonly startLine: Schema.optional<Schema.Finite>;
|
|
593
|
+
readonly side: Schema.Union<readonly [Schema.Literal<"LEFT">, Schema.Literal<"RIGHT">]>;
|
|
594
|
+
/** The code under the thread has changed since it was written. */
|
|
595
|
+
readonly outdated: Schema.Boolean;
|
|
596
|
+
readonly body: Schema.String;
|
|
597
|
+
readonly author: Schema.Struct<{
|
|
598
|
+
readonly login: Schema.String;
|
|
599
|
+
readonly avatarUrl: Schema.String;
|
|
600
|
+
}>;
|
|
601
|
+
readonly createdAt: Schema.Finite;
|
|
602
|
+
readonly updatedAt: Schema.Finite;
|
|
603
|
+
readonly url: Schema.String;
|
|
604
|
+
}>;
|
|
605
|
+
}>;
|
|
606
|
+
'comment.removed': Schema.Struct<{
|
|
607
|
+
readonly fullName: Schema.String;
|
|
608
|
+
readonly number: Schema.Finite;
|
|
609
|
+
readonly commentId: Schema.Finite;
|
|
610
|
+
}>;
|
|
611
|
+
'thread.resolution': Schema.Struct<{
|
|
612
|
+
readonly fullName: Schema.String;
|
|
613
|
+
readonly number: Schema.Finite;
|
|
614
|
+
readonly rootId: Schema.Finite;
|
|
615
|
+
readonly resolved: Schema.Boolean;
|
|
616
|
+
readonly updatedAt: Schema.Finite;
|
|
617
|
+
}>;
|
|
618
|
+
/** Every review thread on a pull request as GitHub has it, replacing what was known. */
|
|
619
|
+
'threads.synced': Schema.Struct<{
|
|
620
|
+
readonly fullName: Schema.String;
|
|
621
|
+
readonly number: Schema.Finite;
|
|
622
|
+
readonly syncedAt: Schema.Finite;
|
|
623
|
+
readonly threads: Schema.$Array<Schema.Struct<{
|
|
624
|
+
readonly rootId: Schema.Finite;
|
|
625
|
+
readonly resolved: Schema.Boolean;
|
|
626
|
+
readonly comments: Schema.$Array<Schema.Struct<{
|
|
627
|
+
readonly commentId: Schema.Finite;
|
|
628
|
+
/** The first comment of the thread this one belongs to; its own id when it starts one. */
|
|
629
|
+
readonly rootId: Schema.Finite;
|
|
630
|
+
readonly path: Schema.String;
|
|
631
|
+
/** The line the thread sits on, or where it sat before the code under it changed. */
|
|
632
|
+
readonly line: Schema.NullOr<Schema.Finite>;
|
|
633
|
+
/** Where a thread about several lines starts; `line` is where it ends. */
|
|
634
|
+
readonly startLine: Schema.optional<Schema.Finite>;
|
|
635
|
+
readonly side: Schema.Union<readonly [Schema.Literal<"LEFT">, Schema.Literal<"RIGHT">]>;
|
|
636
|
+
/** The code under the thread has changed since it was written. */
|
|
637
|
+
readonly outdated: Schema.Boolean;
|
|
638
|
+
readonly body: Schema.String;
|
|
639
|
+
readonly author: Schema.Struct<{
|
|
640
|
+
readonly login: Schema.String;
|
|
641
|
+
readonly avatarUrl: Schema.String;
|
|
642
|
+
}>;
|
|
643
|
+
readonly createdAt: Schema.Finite;
|
|
644
|
+
readonly updatedAt: Schema.Finite;
|
|
645
|
+
readonly url: Schema.String;
|
|
646
|
+
}>>;
|
|
647
|
+
}>>;
|
|
648
|
+
}>;
|
|
649
|
+
'pull.upserted': Schema.Struct<{
|
|
650
|
+
readonly installationId: Schema.Finite;
|
|
651
|
+
readonly fullName: Schema.String;
|
|
652
|
+
readonly number: Schema.Finite;
|
|
653
|
+
readonly action: Schema.Union<readonly [Schema.Literal<"opened">, Schema.Literal<"ready_for_review">, Schema.Literal<"synchronize">, Schema.Literal<"edited">, Schema.Literal<"reopened">, Schema.Literal<"converted_to_draft">, Schema.Literal<"synced">]>;
|
|
654
|
+
readonly title: Schema.String;
|
|
655
|
+
readonly body: Schema.String;
|
|
656
|
+
readonly url: Schema.String;
|
|
657
|
+
readonly draft: Schema.Boolean;
|
|
658
|
+
readonly author: Schema.Struct<{
|
|
659
|
+
readonly login: Schema.String;
|
|
660
|
+
readonly avatarUrl: Schema.String;
|
|
661
|
+
}>;
|
|
662
|
+
readonly headRef: Schema.String;
|
|
663
|
+
readonly headSha: Schema.String;
|
|
664
|
+
readonly baseRef: Schema.String;
|
|
665
|
+
readonly baseSha: Schema.String;
|
|
666
|
+
readonly additions: Schema.Finite;
|
|
667
|
+
readonly deletions: Schema.Finite;
|
|
668
|
+
readonly reviewDecision: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"changes_requested">, Schema.Literal<"review_required">, Schema.Literal<"none">]>;
|
|
669
|
+
readonly checkRollup: Schema.Union<readonly [Schema.Literal<"passing">, Schema.Literal<"failing">, Schema.Literal<"pending">, Schema.Literal<"neutral">]>;
|
|
670
|
+
readonly updatedAt: Schema.Finite;
|
|
671
|
+
readonly isFork: Schema.Boolean;
|
|
672
|
+
readonly state: Schema.Union<readonly [Schema.Literal<"open">, Schema.Literal<"closed">]>;
|
|
673
|
+
readonly stack: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
674
|
+
readonly number: Schema.Finite;
|
|
675
|
+
readonly position: Schema.Finite;
|
|
676
|
+
readonly size: Schema.Finite;
|
|
677
|
+
}>>>;
|
|
678
|
+
}>;
|
|
679
|
+
'pull.closed': Schema.Struct<{
|
|
680
|
+
readonly fullName: Schema.String;
|
|
681
|
+
readonly number: Schema.Finite;
|
|
682
|
+
readonly updatedAt: Schema.Finite;
|
|
683
|
+
}>;
|
|
684
|
+
'checks.updated': Schema.Struct<{
|
|
685
|
+
readonly fullName: Schema.String;
|
|
686
|
+
readonly headSha: Schema.String;
|
|
687
|
+
readonly checkRollup: Schema.Union<readonly [Schema.Literal<"passing">, Schema.Literal<"failing">, Schema.Literal<"pending">, Schema.Literal<"neutral">]>;
|
|
688
|
+
readonly updatedAt: Schema.Finite;
|
|
689
|
+
}>;
|
|
690
|
+
'review.submitted': Schema.Struct<{
|
|
691
|
+
readonly fullName: Schema.String;
|
|
692
|
+
readonly number: Schema.Finite;
|
|
693
|
+
readonly verdict: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"changes_requested">, Schema.Literal<"commented">]>;
|
|
694
|
+
readonly updatedAt: Schema.Finite;
|
|
695
|
+
}>;
|
|
696
|
+
'pull.linked': Schema.Struct<{
|
|
697
|
+
readonly fullName: Schema.String;
|
|
698
|
+
readonly number: Schema.Finite;
|
|
699
|
+
readonly runId: Schema.String;
|
|
700
|
+
readonly role: Schema.Union<readonly [Schema.Literal<"author">, Schema.Literal<"reviewer">]>;
|
|
701
|
+
/** Agent thread inside the session that opened or reviewed the PR. */
|
|
702
|
+
readonly threadId: Schema.optional<Schema.String>;
|
|
703
|
+
}>;
|
|
704
|
+
'repo.policy.set': Schema.Struct<{
|
|
705
|
+
readonly fullName: Schema.String;
|
|
706
|
+
readonly installationId: Schema.Finite;
|
|
707
|
+
readonly folders: Schema.$Array<Schema.Struct<{
|
|
708
|
+
readonly folderId: Schema.String;
|
|
709
|
+
readonly autoReview: Schema.Union<readonly [Schema.Literal<"off">, Schema.Literal<"others">, Schema.Literal<"all">]>;
|
|
710
|
+
}>>;
|
|
711
|
+
}>;
|
|
712
|
+
'review.requested': Schema.Struct<{
|
|
713
|
+
readonly fullName: Schema.String;
|
|
714
|
+
readonly number: Schema.Finite;
|
|
715
|
+
readonly headSha: Schema.String;
|
|
716
|
+
readonly folderId: Schema.String;
|
|
717
|
+
readonly runId: Schema.String;
|
|
718
|
+
readonly at: Schema.Finite;
|
|
719
|
+
}>;
|
|
720
|
+
}>, (import("@swirls/looms/core").EventCatalog<"agent", {
|
|
721
|
+
'message.received': Schema.Struct<{
|
|
722
|
+
readonly message: Schema.Struct<{
|
|
723
|
+
readonly role: Schema.Union<readonly [Schema.Literal<"system">, Schema.Literal<"user">, Schema.Literal<"assistant">, Schema.Literal<"tool">]>;
|
|
724
|
+
readonly content: Schema.String;
|
|
725
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
726
|
+
readonly id: Schema.String;
|
|
727
|
+
readonly mediaType: Schema.String;
|
|
728
|
+
readonly name: Schema.optional<Schema.String>;
|
|
729
|
+
readonly size: Schema.optional<Schema.Finite>;
|
|
730
|
+
readonly url: Schema.optional<Schema.String>;
|
|
731
|
+
}>>>;
|
|
732
|
+
readonly toolCallId: Schema.optional<Schema.String>;
|
|
733
|
+
readonly name: Schema.optional<Schema.String>;
|
|
734
|
+
readonly toolCalls: Schema.optional<Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
735
|
+
readonly id: Schema.String;
|
|
736
|
+
readonly name: Schema.String;
|
|
737
|
+
readonly arguments: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
738
|
+
}>>>>;
|
|
739
|
+
}>;
|
|
740
|
+
}>;
|
|
741
|
+
'turn.started': Schema.Struct<{
|
|
742
|
+
readonly turn: Schema.Finite;
|
|
743
|
+
readonly messageCount: Schema.optional<Schema.Finite>;
|
|
744
|
+
}>;
|
|
745
|
+
'turn.settled': Schema.Struct<{
|
|
746
|
+
readonly turn: Schema.Finite;
|
|
747
|
+
}>;
|
|
748
|
+
'turn.text_delta': Schema.Struct<{
|
|
749
|
+
readonly turn: Schema.Finite;
|
|
750
|
+
readonly delta: Schema.String;
|
|
751
|
+
}>;
|
|
752
|
+
message: Schema.Struct<{
|
|
753
|
+
readonly turn: Schema.Finite;
|
|
754
|
+
readonly message: Schema.Struct<{
|
|
755
|
+
readonly role: Schema.Union<readonly [Schema.Literal<"system">, Schema.Literal<"user">, Schema.Literal<"assistant">, Schema.Literal<"tool">]>;
|
|
756
|
+
readonly content: Schema.String;
|
|
757
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
758
|
+
readonly id: Schema.String;
|
|
759
|
+
readonly mediaType: Schema.String;
|
|
760
|
+
readonly name: Schema.optional<Schema.String>;
|
|
761
|
+
readonly size: Schema.optional<Schema.Finite>;
|
|
762
|
+
readonly url: Schema.optional<Schema.String>;
|
|
763
|
+
}>>>;
|
|
764
|
+
readonly toolCallId: Schema.optional<Schema.String>;
|
|
765
|
+
readonly name: Schema.optional<Schema.String>;
|
|
766
|
+
readonly toolCalls: Schema.optional<Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
767
|
+
readonly id: Schema.String;
|
|
768
|
+
readonly name: Schema.String;
|
|
769
|
+
readonly arguments: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
770
|
+
}>>>>;
|
|
771
|
+
}>;
|
|
772
|
+
readonly usage: Schema.optional<Schema.Struct<{
|
|
773
|
+
readonly input: Schema.Finite;
|
|
774
|
+
readonly output: Schema.Finite;
|
|
775
|
+
}>>;
|
|
776
|
+
}>;
|
|
777
|
+
'tool_call.requested': Schema.Struct<{
|
|
778
|
+
readonly turn: Schema.Finite;
|
|
779
|
+
readonly toolCall: Schema.Struct<{
|
|
780
|
+
readonly id: Schema.String;
|
|
781
|
+
readonly name: Schema.String;
|
|
782
|
+
readonly arguments: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
783
|
+
}>;
|
|
784
|
+
}>;
|
|
785
|
+
'tool.result': Schema.Struct<{
|
|
786
|
+
readonly turn: Schema.Finite;
|
|
787
|
+
readonly toolCallId: Schema.String;
|
|
788
|
+
readonly name: Schema.String;
|
|
789
|
+
readonly result: Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
790
|
+
readonly error: Schema.NullOr<Schema.String>;
|
|
791
|
+
}>;
|
|
792
|
+
steered: Schema.Struct<{
|
|
793
|
+
readonly turn: Schema.Finite;
|
|
794
|
+
readonly messageId: Schema.optional<Schema.String>;
|
|
795
|
+
readonly message: Schema.Struct<{
|
|
796
|
+
readonly role: Schema.Union<readonly [Schema.Literal<"system">, Schema.Literal<"user">, Schema.Literal<"assistant">, Schema.Literal<"tool">]>;
|
|
797
|
+
readonly content: Schema.String;
|
|
798
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
799
|
+
readonly id: Schema.String;
|
|
800
|
+
readonly mediaType: Schema.String;
|
|
801
|
+
readonly name: Schema.optional<Schema.String>;
|
|
802
|
+
readonly size: Schema.optional<Schema.Finite>;
|
|
803
|
+
readonly url: Schema.optional<Schema.String>;
|
|
804
|
+
}>>>;
|
|
805
|
+
readonly toolCallId: Schema.optional<Schema.String>;
|
|
806
|
+
readonly name: Schema.optional<Schema.String>;
|
|
807
|
+
readonly toolCalls: Schema.optional<Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
808
|
+
readonly id: Schema.String;
|
|
809
|
+
readonly name: Schema.String;
|
|
810
|
+
readonly arguments: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
811
|
+
}>>>>;
|
|
812
|
+
}>;
|
|
813
|
+
readonly interrupt: Schema.optional<Schema.Boolean>;
|
|
814
|
+
}>;
|
|
815
|
+
'turn.stopped': Schema.Struct<{}>;
|
|
816
|
+
'session.message.submitted': Schema.Struct<{
|
|
817
|
+
readonly messageId: Schema.String;
|
|
818
|
+
readonly text: Schema.String;
|
|
819
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
820
|
+
readonly id: Schema.String;
|
|
821
|
+
readonly mediaType: Schema.String;
|
|
822
|
+
readonly name: Schema.optional<Schema.String>;
|
|
823
|
+
readonly size: Schema.optional<Schema.Finite>;
|
|
824
|
+
readonly url: Schema.optional<Schema.String>;
|
|
825
|
+
}>>>;
|
|
826
|
+
readonly delivery: Schema.optional<Schema.Union<readonly [Schema.Literal<"steer">, Schema.Literal<"followUp">, Schema.Literal<"nextTurn">]>>;
|
|
827
|
+
readonly activeChildThreadId: Schema.optional<Schema.String>;
|
|
828
|
+
}>;
|
|
829
|
+
'session.steer.delivered': Schema.Struct<{
|
|
830
|
+
readonly messageId: Schema.String;
|
|
831
|
+
readonly activeMessageId: Schema.String;
|
|
832
|
+
}>;
|
|
833
|
+
'session.turn.started': Schema.Struct<{
|
|
834
|
+
readonly messageId: Schema.String;
|
|
835
|
+
readonly childThreadId: Schema.String;
|
|
836
|
+
}>;
|
|
837
|
+
'session.turn.closed': Schema.Struct<{
|
|
838
|
+
readonly messageId: Schema.String;
|
|
839
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"failed">, Schema.Literal<"cancelled">]>;
|
|
840
|
+
readonly error: Schema.optional<Schema.String>;
|
|
841
|
+
}>;
|
|
842
|
+
'session.cancel.requested': Schema.Struct<{}>;
|
|
843
|
+
'spawn.requested': Schema.Struct<{
|
|
844
|
+
readonly childThreadId: Schema.String;
|
|
845
|
+
readonly kind: Schema.String;
|
|
846
|
+
readonly definitionName: Schema.String;
|
|
847
|
+
readonly definitionVersion: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
848
|
+
readonly toolCallId: Schema.String;
|
|
849
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
850
|
+
readonly depth: Schema.optional<Schema.Finite>;
|
|
851
|
+
}>;
|
|
852
|
+
'effects.requested': Schema.Struct<{
|
|
853
|
+
readonly toolCallId: Schema.String;
|
|
854
|
+
readonly effects: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
855
|
+
readonly type: Schema.Literal<"runtime.spawn">;
|
|
856
|
+
readonly childThreadId: Schema.String;
|
|
857
|
+
readonly kind: Schema.String;
|
|
858
|
+
readonly definitionName: Schema.String;
|
|
859
|
+
readonly definitionVersion: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
860
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
861
|
+
}>, Schema.Struct<{
|
|
862
|
+
readonly type: Schema.Literal<"runtime.wait">;
|
|
863
|
+
readonly waitId: Schema.String;
|
|
864
|
+
readonly on: Schema.Union<readonly [Schema.Struct<{
|
|
865
|
+
readonly type: Schema.Union<readonly [Schema.String, Schema.$Array<Schema.String>]>;
|
|
866
|
+
readonly match: Schema.optional<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
867
|
+
}>, Schema.Struct<{
|
|
868
|
+
readonly timerAt: Schema.Finite;
|
|
869
|
+
}>]>;
|
|
870
|
+
readonly tag: Schema.optional<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
871
|
+
}>, Schema.Struct<{
|
|
872
|
+
readonly type: Schema.Literal<"runtime.emit">;
|
|
873
|
+
readonly event: Schema.Struct<{
|
|
874
|
+
readonly type: Schema.String;
|
|
875
|
+
readonly payload: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
876
|
+
readonly threadId: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
877
|
+
readonly parentThreadId: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
878
|
+
readonly causationId: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
879
|
+
readonly correlationId: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
880
|
+
readonly effectId: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
881
|
+
readonly origin: Schema.optional<Schema.Union<readonly [Schema.Struct<{
|
|
882
|
+
readonly type: Schema.Literal<"thread">;
|
|
883
|
+
readonly threadId: Schema.String;
|
|
884
|
+
}>, Schema.Struct<{
|
|
885
|
+
readonly type: Schema.Literal<"external">;
|
|
886
|
+
readonly actorId: Schema.optional<Schema.String>;
|
|
887
|
+
}>, Schema.Struct<{
|
|
888
|
+
readonly type: Schema.Literal<"system">;
|
|
889
|
+
}>, Schema.Struct<{
|
|
890
|
+
readonly type: Schema.Literal<"run">;
|
|
891
|
+
readonly runId: Schema.String;
|
|
892
|
+
}>]>>;
|
|
893
|
+
readonly ephemeral: Schema.optional<Schema.Boolean>;
|
|
894
|
+
readonly id: Schema.optional<Schema.String>;
|
|
895
|
+
readonly ts: Schema.optional<Schema.Finite>;
|
|
896
|
+
readonly idempotencyKey: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
897
|
+
}>;
|
|
898
|
+
readonly tag: Schema.optional<Schema.String>;
|
|
899
|
+
}>, Schema.Struct<{
|
|
900
|
+
readonly type: Schema.Literal<"runtime.complete">;
|
|
901
|
+
readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
902
|
+
}>, Schema.Struct<{
|
|
903
|
+
readonly type: Schema.Literal<"runtime.fail">;
|
|
904
|
+
readonly error: Schema.String;
|
|
905
|
+
}>, Schema.Struct<{
|
|
906
|
+
readonly type: Schema.Literal<"runtime.cancel">;
|
|
907
|
+
readonly threadId: Schema.String;
|
|
908
|
+
readonly tag: Schema.optional<Schema.String>;
|
|
909
|
+
}>, Schema.Struct<{
|
|
910
|
+
readonly type: Schema.Literal<"runtime.launch">;
|
|
911
|
+
readonly runId: Schema.String;
|
|
912
|
+
readonly kind: Schema.String;
|
|
913
|
+
readonly definitionName: Schema.String;
|
|
914
|
+
readonly definitionVersion: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
915
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
916
|
+
readonly close: Schema.withDecodingDefaultKey<Schema.Union<readonly [Schema.Literal<"terminate">, Schema.Literal<"wait">]>, never>;
|
|
917
|
+
readonly tag: Schema.optional<Schema.String>;
|
|
918
|
+
}>, Schema.Struct<{
|
|
919
|
+
readonly type: Schema.Literal<"runtime.cancelRun">;
|
|
920
|
+
readonly runId: Schema.String;
|
|
921
|
+
readonly tag: Schema.optional<Schema.String>;
|
|
922
|
+
}>, Schema.Struct<{
|
|
923
|
+
readonly type: Schema.String;
|
|
924
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
925
|
+
readonly tag: Schema.optional<Schema.String>;
|
|
926
|
+
readonly at: Schema.optional<Schema.Finite>;
|
|
927
|
+
}>]>>;
|
|
928
|
+
readonly waitOn: Schema.optional<Schema.Struct<{
|
|
929
|
+
readonly type: Schema.Union<readonly [Schema.String, Schema.$Array<Schema.String>]>;
|
|
930
|
+
readonly match: Schema.optional<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
931
|
+
}>>;
|
|
932
|
+
}>;
|
|
933
|
+
lineage: Schema.Struct<{
|
|
934
|
+
readonly depth: Schema.Finite;
|
|
935
|
+
}>;
|
|
936
|
+
'context.compacted': Schema.Struct<{
|
|
937
|
+
readonly turn: Schema.Finite;
|
|
938
|
+
readonly originalCount: Schema.Finite;
|
|
939
|
+
readonly compactedCount: Schema.Finite;
|
|
940
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
941
|
+
readonly reason: Schema.optional<Schema.Union<readonly [Schema.Literal<"overflow">, Schema.Literal<"manual">, Schema.Literal<"threshold">]>>;
|
|
942
|
+
readonly messages: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
943
|
+
readonly role: Schema.Union<readonly [Schema.Literal<"system">, Schema.Literal<"user">, Schema.Literal<"assistant">, Schema.Literal<"tool">]>;
|
|
944
|
+
readonly content: Schema.String;
|
|
945
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
946
|
+
readonly id: Schema.String;
|
|
947
|
+
readonly mediaType: Schema.String;
|
|
948
|
+
readonly name: Schema.optional<Schema.String>;
|
|
949
|
+
readonly size: Schema.optional<Schema.Finite>;
|
|
950
|
+
readonly url: Schema.optional<Schema.String>;
|
|
951
|
+
}>>>;
|
|
952
|
+
readonly toolCallId: Schema.optional<Schema.String>;
|
|
953
|
+
readonly name: Schema.optional<Schema.String>;
|
|
954
|
+
readonly toolCalls: Schema.optional<Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
955
|
+
readonly id: Schema.String;
|
|
956
|
+
readonly name: Schema.String;
|
|
957
|
+
readonly arguments: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
958
|
+
}>>>>;
|
|
959
|
+
}>>>;
|
|
960
|
+
}>;
|
|
961
|
+
'turn.usage': Schema.Struct<{
|
|
962
|
+
readonly turn: Schema.Finite;
|
|
963
|
+
readonly input: Schema.Finite;
|
|
964
|
+
readonly output: Schema.Finite;
|
|
965
|
+
}>;
|
|
966
|
+
}> | import("@swirls/looms/core").EventCatalog<"approval", {
|
|
967
|
+
requested: Schema.Struct<{
|
|
968
|
+
readonly approvalId: Schema.String;
|
|
969
|
+
readonly title: Schema.String;
|
|
970
|
+
readonly description: Schema.optional<Schema.String>;
|
|
971
|
+
readonly actions: Schema.$Array<Schema.Struct<{
|
|
972
|
+
readonly id: Schema.String;
|
|
973
|
+
readonly label: Schema.String;
|
|
974
|
+
readonly outcome: Schema.Union<readonly [Schema.Literal<"approve">, Schema.Literal<"reject">]>;
|
|
975
|
+
}>>;
|
|
976
|
+
readonly schema: Schema.optional<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
977
|
+
}>;
|
|
978
|
+
decided: Schema.Struct<{
|
|
979
|
+
readonly approvalId: Schema.String;
|
|
980
|
+
readonly actionId: Schema.String;
|
|
981
|
+
readonly outcome: Schema.Union<readonly [Schema.Literal<"approve">, Schema.Literal<"reject">]>;
|
|
982
|
+
readonly payload: Schema.optional<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
983
|
+
}>;
|
|
984
|
+
timed_out: Schema.Struct<{
|
|
985
|
+
readonly approvalId: Schema.String;
|
|
986
|
+
}>;
|
|
987
|
+
}>)[]>;
|
|
988
|
+
export type AutoReviewMode = 'off' | 'others' | 'all';
|
|
989
|
+
export type PullLinkedRole = 'author' | 'reviewer';
|
|
990
|
+
export declare function pullKey(fullName: string, number: number): string;
|
|
991
|
+
export type PullComment = Schema.Schema.Type<typeof PullCommentSchema>;
|
|
992
|
+
export interface PullThread {
|
|
993
|
+
readonly rootId: number;
|
|
994
|
+
readonly resolved: boolean;
|
|
995
|
+
/** Oldest first; the first is the comment that started the thread. */
|
|
996
|
+
readonly comments: readonly PullComment[];
|
|
997
|
+
}
|
|
998
|
+
export interface PullThreadsState {
|
|
999
|
+
/** By `fullName#number`, each pull request's threads in the order they were started. */
|
|
1000
|
+
readonly pulls: Readonly<Record<string, readonly PullThread[]>>;
|
|
1001
|
+
}
|