@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,550 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Where a tab's contents came from: the running `sandbox`, the session's work as last `saved`
|
|
4
|
+
* while its sandbox sleeps, or nowhere because the sandbox is `asleep` with nothing saved.
|
|
5
|
+
*/
|
|
6
|
+
export declare const SandboxSource: z.ZodObject<{
|
|
7
|
+
source: z.ZodEnum<{
|
|
8
|
+
asleep: "asleep";
|
|
9
|
+
sandbox: "sandbox";
|
|
10
|
+
saved: "saved";
|
|
11
|
+
}>;
|
|
12
|
+
savedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export type SandboxSource = z.infer<typeof SandboxSource>;
|
|
15
|
+
export declare const SandboxFileEntry: z.ZodObject<{
|
|
16
|
+
path: z.ZodString;
|
|
17
|
+
kind: z.ZodEnum<{
|
|
18
|
+
dir: "dir";
|
|
19
|
+
file: "file";
|
|
20
|
+
}>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export type SandboxFileEntry = z.infer<typeof SandboxFileEntry>;
|
|
23
|
+
export declare const SandboxFiles: z.ZodObject<{
|
|
24
|
+
source: z.ZodEnum<{
|
|
25
|
+
asleep: "asleep";
|
|
26
|
+
sandbox: "sandbox";
|
|
27
|
+
saved: "saved";
|
|
28
|
+
}>;
|
|
29
|
+
savedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
30
|
+
root: z.ZodString;
|
|
31
|
+
files: z.ZodArray<z.ZodObject<{
|
|
32
|
+
path: z.ZodString;
|
|
33
|
+
kind: z.ZodEnum<{
|
|
34
|
+
dir: "dir";
|
|
35
|
+
file: "file";
|
|
36
|
+
}>;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
mode: z.ZodEnum<{
|
|
39
|
+
container: "container";
|
|
40
|
+
memory: "memory";
|
|
41
|
+
}>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export type SandboxFiles = z.infer<typeof SandboxFiles>;
|
|
44
|
+
/**
|
|
45
|
+
* One file in the session's worktree. Asked for as it was when the session started
|
|
46
|
+
* (`version: 'base'`), `content` is null when it did not exist then, and nothing says whether it
|
|
47
|
+
* is binary or was cut short.
|
|
48
|
+
*/
|
|
49
|
+
export declare const SandboxFile: z.ZodObject<{
|
|
50
|
+
source: z.ZodEnum<{
|
|
51
|
+
asleep: "asleep";
|
|
52
|
+
sandbox: "sandbox";
|
|
53
|
+
saved: "saved";
|
|
54
|
+
}>;
|
|
55
|
+
savedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
56
|
+
path: z.ZodString;
|
|
57
|
+
content: z.ZodNullable<z.ZodString>;
|
|
58
|
+
binary: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
export type SandboxFile = z.infer<typeof SandboxFile>;
|
|
62
|
+
export declare const SandboxDiffEntry: z.ZodObject<{
|
|
63
|
+
cwd: z.ZodString;
|
|
64
|
+
name: z.ZodString;
|
|
65
|
+
diff: z.ZodString;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
export type SandboxDiffEntry = z.infer<typeof SandboxDiffEntry>;
|
|
68
|
+
/** Every repository's changes since the session started. */
|
|
69
|
+
export declare const SandboxDiffs: z.ZodObject<{
|
|
70
|
+
source: z.ZodEnum<{
|
|
71
|
+
asleep: "asleep";
|
|
72
|
+
sandbox: "sandbox";
|
|
73
|
+
saved: "saved";
|
|
74
|
+
}>;
|
|
75
|
+
savedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
76
|
+
diffs: z.ZodArray<z.ZodObject<{
|
|
77
|
+
cwd: z.ZodString;
|
|
78
|
+
name: z.ZodString;
|
|
79
|
+
diff: z.ZodString;
|
|
80
|
+
}, z.core.$strip>>;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
export type SandboxDiffs = z.infer<typeof SandboxDiffs>;
|
|
83
|
+
/** One file's changes since the session started. `path` is null when it named no file. */
|
|
84
|
+
export declare const SandboxFileDiff: z.ZodObject<{
|
|
85
|
+
source: z.ZodEnum<{
|
|
86
|
+
asleep: "asleep";
|
|
87
|
+
sandbox: "sandbox";
|
|
88
|
+
saved: "saved";
|
|
89
|
+
}>;
|
|
90
|
+
savedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
91
|
+
path: z.ZodNullable<z.ZodString>;
|
|
92
|
+
diff: z.ZodString;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
export type SandboxFileDiff = z.infer<typeof SandboxFileDiff>;
|
|
95
|
+
/** How a file differs from where the session started: added, modified or deleted. */
|
|
96
|
+
export declare const ChangeStatus: z.ZodEnum<{
|
|
97
|
+
A: "A";
|
|
98
|
+
D: "D";
|
|
99
|
+
M: "M";
|
|
100
|
+
}>;
|
|
101
|
+
export type ChangeStatus = z.infer<typeof ChangeStatus>;
|
|
102
|
+
/** One repository in a session's workspace. */
|
|
103
|
+
export declare const SandboxWorkspaceRepo: z.ZodObject<{
|
|
104
|
+
name: z.ZodString;
|
|
105
|
+
fullName: z.ZodNullable<z.ZodString>;
|
|
106
|
+
defaultBranch: z.ZodString;
|
|
107
|
+
files: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
108
|
+
changes: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
109
|
+
path: z.ZodString;
|
|
110
|
+
status: z.ZodEnum<{
|
|
111
|
+
A: "A";
|
|
112
|
+
D: "D";
|
|
113
|
+
M: "M";
|
|
114
|
+
}>;
|
|
115
|
+
}, z.core.$strip>>>;
|
|
116
|
+
}, z.core.$strip>;
|
|
117
|
+
export type SandboxWorkspaceRepo = z.infer<typeof SandboxWorkspaceRepo>;
|
|
118
|
+
/** A session's workspace: its repositories, what changed in each, and where it was read from. */
|
|
119
|
+
export declare const SandboxWorkspace: z.ZodObject<{
|
|
120
|
+
source: z.ZodEnum<{
|
|
121
|
+
asleep: "asleep";
|
|
122
|
+
sandbox: "sandbox";
|
|
123
|
+
saved: "saved";
|
|
124
|
+
}>;
|
|
125
|
+
savedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
126
|
+
working: z.ZodOptional<z.ZodBoolean>;
|
|
127
|
+
holderId: z.ZodNullable<z.ZodString>;
|
|
128
|
+
repos: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
129
|
+
name: z.ZodString;
|
|
130
|
+
fullName: z.ZodNullable<z.ZodString>;
|
|
131
|
+
defaultBranch: z.ZodString;
|
|
132
|
+
files: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
133
|
+
changes: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
134
|
+
path: z.ZodString;
|
|
135
|
+
status: z.ZodEnum<{
|
|
136
|
+
A: "A";
|
|
137
|
+
D: "D";
|
|
138
|
+
M: "M";
|
|
139
|
+
}>;
|
|
140
|
+
}, z.core.$strip>>>;
|
|
141
|
+
}, z.core.$strip>>>;
|
|
142
|
+
strays: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
143
|
+
path: z.ZodString;
|
|
144
|
+
files: z.ZodNumber;
|
|
145
|
+
}, z.core.$strip>>>;
|
|
146
|
+
}, z.core.$strip>;
|
|
147
|
+
export type SandboxWorkspace = z.infer<typeof SandboxWorkspace>;
|
|
148
|
+
export declare const DiagnosticSeverity: z.ZodEnum<{
|
|
149
|
+
error: "error";
|
|
150
|
+
hint: "hint";
|
|
151
|
+
info: "info";
|
|
152
|
+
warning: "warning";
|
|
153
|
+
}>;
|
|
154
|
+
export type DiagnosticSeverity = z.infer<typeof DiagnosticSeverity>;
|
|
155
|
+
/** One problem the language server found. Positions are 1-based, as an editor shows them. */
|
|
156
|
+
export declare const FileDiagnostic: z.ZodObject<{
|
|
157
|
+
line: z.ZodNumber;
|
|
158
|
+
column: z.ZodNumber;
|
|
159
|
+
endLine: z.ZodNumber;
|
|
160
|
+
endColumn: z.ZodNumber;
|
|
161
|
+
severity: z.ZodEnum<{
|
|
162
|
+
error: "error";
|
|
163
|
+
hint: "hint";
|
|
164
|
+
info: "info";
|
|
165
|
+
warning: "warning";
|
|
166
|
+
}>;
|
|
167
|
+
message: z.ZodString;
|
|
168
|
+
code: z.ZodOptional<z.ZodString>;
|
|
169
|
+
source: z.ZodOptional<z.ZodString>;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
export type FileDiagnostic = z.infer<typeof FileDiagnostic>;
|
|
172
|
+
export declare const FileDiagnostics: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
173
|
+
status: z.ZodLiteral<"ok">;
|
|
174
|
+
server: z.ZodString;
|
|
175
|
+
diagnostics: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
176
|
+
line: z.ZodNumber;
|
|
177
|
+
column: z.ZodNumber;
|
|
178
|
+
endLine: z.ZodNumber;
|
|
179
|
+
endColumn: z.ZodNumber;
|
|
180
|
+
severity: z.ZodEnum<{
|
|
181
|
+
error: "error";
|
|
182
|
+
hint: "hint";
|
|
183
|
+
info: "info";
|
|
184
|
+
warning: "warning";
|
|
185
|
+
}>;
|
|
186
|
+
message: z.ZodString;
|
|
187
|
+
code: z.ZodOptional<z.ZodString>;
|
|
188
|
+
source: z.ZodOptional<z.ZodString>;
|
|
189
|
+
}, z.core.$strip>>>;
|
|
190
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
191
|
+
status: z.ZodLiteral<"pending">;
|
|
192
|
+
server: z.ZodOptional<z.ZodString>;
|
|
193
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
194
|
+
status: z.ZodEnum<{
|
|
195
|
+
error: "error";
|
|
196
|
+
unavailable: "unavailable";
|
|
197
|
+
unsupported: "unsupported";
|
|
198
|
+
}>;
|
|
199
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
200
|
+
}, z.core.$strip>], "status">;
|
|
201
|
+
export type FileDiagnostics = z.infer<typeof FileDiagnostics>;
|
|
202
|
+
/** Largest text a draft may be to have the language server check it, in characters. */
|
|
203
|
+
export declare const MAX_DIAGNOSTICS_CHARS = 512000;
|
|
204
|
+
/** Largest file a person may save from the browser, in characters. */
|
|
205
|
+
export declare const MAX_WRITE_CHARS = 2000000;
|
|
206
|
+
/** Whose sandbox holds a session's files, as it bears on a terminal the viewer opens. */
|
|
207
|
+
export declare const SandboxPlace: z.ZodObject<{
|
|
208
|
+
pending: z.ZodNullable<z.ZodEnum<{
|
|
209
|
+
cloud: "cloud";
|
|
210
|
+
local: "local";
|
|
211
|
+
}>>;
|
|
212
|
+
leftBehind: z.ZodNullable<z.ZodObject<{
|
|
213
|
+
deviceId: z.ZodNullable<z.ZodString>;
|
|
214
|
+
at: z.ZodNumber;
|
|
215
|
+
}, z.core.$strip>>;
|
|
216
|
+
personal: z.ZodBoolean;
|
|
217
|
+
holderId: z.ZodNullable<z.ZodString>;
|
|
218
|
+
here: z.ZodBoolean;
|
|
219
|
+
sandbox: z.ZodObject<{
|
|
220
|
+
online: z.ZodOptional<z.ZodBoolean>;
|
|
221
|
+
device: z.ZodOptional<z.ZodObject<{
|
|
222
|
+
id: z.ZodString;
|
|
223
|
+
name: z.ZodString;
|
|
224
|
+
platform: z.ZodString;
|
|
225
|
+
}, z.core.$strip>>;
|
|
226
|
+
backend: z.ZodOptional<z.ZodObject<{
|
|
227
|
+
id: z.ZodString;
|
|
228
|
+
label: z.ZodString;
|
|
229
|
+
isolation: z.ZodString;
|
|
230
|
+
}, z.core.$strip>>;
|
|
231
|
+
provider: z.ZodString;
|
|
232
|
+
location: z.ZodEnum<{
|
|
233
|
+
cloud: "cloud";
|
|
234
|
+
local: "local";
|
|
235
|
+
}>;
|
|
236
|
+
deviceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
237
|
+
}, z.core.$strip>;
|
|
238
|
+
local: z.ZodNullable<z.ZodObject<{
|
|
239
|
+
deviceId: z.ZodString;
|
|
240
|
+
mine: z.ZodBoolean;
|
|
241
|
+
}, z.core.$strip>>;
|
|
242
|
+
cloud: z.ZodObject<{
|
|
243
|
+
provider: z.ZodString;
|
|
244
|
+
movable: z.ZodBoolean;
|
|
245
|
+
}, z.core.$strip>;
|
|
246
|
+
}, z.core.$strip>;
|
|
247
|
+
export type SandboxPlace = z.infer<typeof SandboxPlace>;
|
|
248
|
+
/** Where a session's previews are served. */
|
|
249
|
+
export declare const PreviewAddress: z.ZodObject<{
|
|
250
|
+
label: z.ZodString;
|
|
251
|
+
host: z.ZodOptional<z.ZodString>;
|
|
252
|
+
}, z.core.$strip>;
|
|
253
|
+
export type PreviewAddress = z.infer<typeof PreviewAddress>;
|
|
254
|
+
export declare const sandboxContract: {
|
|
255
|
+
/** Every file in the session's worktree. */
|
|
256
|
+
files: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
257
|
+
id: z.ZodString;
|
|
258
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
259
|
+
source: z.ZodEnum<{
|
|
260
|
+
asleep: "asleep";
|
|
261
|
+
sandbox: "sandbox";
|
|
262
|
+
saved: "saved";
|
|
263
|
+
}>;
|
|
264
|
+
savedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
265
|
+
root: z.ZodString;
|
|
266
|
+
files: z.ZodArray<z.ZodObject<{
|
|
267
|
+
path: z.ZodString;
|
|
268
|
+
kind: z.ZodEnum<{
|
|
269
|
+
dir: "dir";
|
|
270
|
+
file: "file";
|
|
271
|
+
}>;
|
|
272
|
+
}, z.core.$strip>>;
|
|
273
|
+
mode: z.ZodEnum<{
|
|
274
|
+
container: "container";
|
|
275
|
+
memory: "memory";
|
|
276
|
+
}>;
|
|
277
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
278
|
+
/** One file, as it is now or, with `version: 'base'`, as it was when the session started. */
|
|
279
|
+
file: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
280
|
+
id: z.ZodString;
|
|
281
|
+
path: z.ZodString;
|
|
282
|
+
version: z.ZodOptional<z.ZodEnum<{
|
|
283
|
+
base: "base";
|
|
284
|
+
}>>;
|
|
285
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
286
|
+
source: z.ZodEnum<{
|
|
287
|
+
asleep: "asleep";
|
|
288
|
+
sandbox: "sandbox";
|
|
289
|
+
saved: "saved";
|
|
290
|
+
}>;
|
|
291
|
+
savedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
292
|
+
path: z.ZodString;
|
|
293
|
+
content: z.ZodNullable<z.ZodString>;
|
|
294
|
+
binary: z.ZodOptional<z.ZodBoolean>;
|
|
295
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
296
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
297
|
+
/** One file's changes since the session started, given `path`; every repository's without. */
|
|
298
|
+
diff: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
299
|
+
id: z.ZodString;
|
|
300
|
+
path: z.ZodOptional<z.ZodString>;
|
|
301
|
+
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
|
|
302
|
+
source: z.ZodEnum<{
|
|
303
|
+
asleep: "asleep";
|
|
304
|
+
sandbox: "sandbox";
|
|
305
|
+
saved: "saved";
|
|
306
|
+
}>;
|
|
307
|
+
savedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
308
|
+
path: z.ZodNullable<z.ZodString>;
|
|
309
|
+
diff: z.ZodString;
|
|
310
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
311
|
+
source: z.ZodEnum<{
|
|
312
|
+
asleep: "asleep";
|
|
313
|
+
sandbox: "sandbox";
|
|
314
|
+
saved: "saved";
|
|
315
|
+
}>;
|
|
316
|
+
savedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
317
|
+
diffs: z.ZodArray<z.ZodObject<{
|
|
318
|
+
cwd: z.ZodString;
|
|
319
|
+
name: z.ZodString;
|
|
320
|
+
diff: z.ZodString;
|
|
321
|
+
}, z.core.$strip>>;
|
|
322
|
+
}, z.core.$strip>]>, Record<never, never>, Record<never, never>>;
|
|
323
|
+
workspace: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
324
|
+
id: z.ZodString;
|
|
325
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
326
|
+
source: z.ZodEnum<{
|
|
327
|
+
asleep: "asleep";
|
|
328
|
+
sandbox: "sandbox";
|
|
329
|
+
saved: "saved";
|
|
330
|
+
}>;
|
|
331
|
+
savedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
332
|
+
working: z.ZodOptional<z.ZodBoolean>;
|
|
333
|
+
holderId: z.ZodNullable<z.ZodString>;
|
|
334
|
+
repos: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
335
|
+
name: z.ZodString;
|
|
336
|
+
fullName: z.ZodNullable<z.ZodString>;
|
|
337
|
+
defaultBranch: z.ZodString;
|
|
338
|
+
files: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
339
|
+
changes: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
340
|
+
path: z.ZodString;
|
|
341
|
+
status: z.ZodEnum<{
|
|
342
|
+
A: "A";
|
|
343
|
+
D: "D";
|
|
344
|
+
M: "M";
|
|
345
|
+
}>;
|
|
346
|
+
}, z.core.$strip>>>;
|
|
347
|
+
}, z.core.$strip>>>;
|
|
348
|
+
strays: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
349
|
+
path: z.ZodString;
|
|
350
|
+
files: z.ZodNumber;
|
|
351
|
+
}, z.core.$strip>>>;
|
|
352
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
353
|
+
/**
|
|
354
|
+
* Saves a person's edit to one file in the session's workspace. `expected` is the text the
|
|
355
|
+
* person started from: if the file has changed since, the edit is refused.
|
|
356
|
+
*/
|
|
357
|
+
write: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
358
|
+
id: z.ZodString;
|
|
359
|
+
path: z.ZodString;
|
|
360
|
+
content: z.ZodString;
|
|
361
|
+
expected: z.ZodOptional<z.ZodString>;
|
|
362
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
363
|
+
ok: z.ZodLiteral<true>;
|
|
364
|
+
path: z.ZodString;
|
|
365
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
366
|
+
/** Moves something an agent wrote outside the worktree into the session's first repository. */
|
|
367
|
+
adopt: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
368
|
+
id: z.ZodString;
|
|
369
|
+
path: z.ZodString;
|
|
370
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
371
|
+
ok: z.ZodLiteral<true>;
|
|
372
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
373
|
+
diagnostics: {
|
|
374
|
+
/** What the sandbox's language server says about a file as saved. */
|
|
375
|
+
saved: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
376
|
+
id: z.ZodString;
|
|
377
|
+
path: z.ZodString;
|
|
378
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
379
|
+
status: z.ZodLiteral<"ok">;
|
|
380
|
+
server: z.ZodString;
|
|
381
|
+
diagnostics: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
382
|
+
line: z.ZodNumber;
|
|
383
|
+
column: z.ZodNumber;
|
|
384
|
+
endLine: z.ZodNumber;
|
|
385
|
+
endColumn: z.ZodNumber;
|
|
386
|
+
severity: z.ZodEnum<{
|
|
387
|
+
error: "error";
|
|
388
|
+
hint: "hint";
|
|
389
|
+
info: "info";
|
|
390
|
+
warning: "warning";
|
|
391
|
+
}>;
|
|
392
|
+
message: z.ZodString;
|
|
393
|
+
code: z.ZodOptional<z.ZodString>;
|
|
394
|
+
source: z.ZodOptional<z.ZodString>;
|
|
395
|
+
}, z.core.$strip>>>;
|
|
396
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
397
|
+
status: z.ZodLiteral<"pending">;
|
|
398
|
+
server: z.ZodOptional<z.ZodString>;
|
|
399
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
400
|
+
status: z.ZodEnum<{
|
|
401
|
+
error: "error";
|
|
402
|
+
unavailable: "unavailable";
|
|
403
|
+
unsupported: "unsupported";
|
|
404
|
+
}>;
|
|
405
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
406
|
+
}, z.core.$strip>], "status">, Record<never, never>, Record<never, never>>;
|
|
407
|
+
/** The same, for text someone is typing and has not saved. The file is named in the query. */
|
|
408
|
+
draft: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
409
|
+
params: z.ZodObject<{
|
|
410
|
+
id: z.ZodString;
|
|
411
|
+
}, z.core.$strip>;
|
|
412
|
+
query: z.ZodObject<{
|
|
413
|
+
path: z.ZodString;
|
|
414
|
+
}, z.core.$strip>;
|
|
415
|
+
body: z.ZodObject<{
|
|
416
|
+
content: z.ZodString;
|
|
417
|
+
}, z.core.$strip>;
|
|
418
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
419
|
+
status: z.ZodLiteral<"ok">;
|
|
420
|
+
server: z.ZodString;
|
|
421
|
+
diagnostics: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
422
|
+
line: z.ZodNumber;
|
|
423
|
+
column: z.ZodNumber;
|
|
424
|
+
endLine: z.ZodNumber;
|
|
425
|
+
endColumn: z.ZodNumber;
|
|
426
|
+
severity: z.ZodEnum<{
|
|
427
|
+
error: "error";
|
|
428
|
+
hint: "hint";
|
|
429
|
+
info: "info";
|
|
430
|
+
warning: "warning";
|
|
431
|
+
}>;
|
|
432
|
+
message: z.ZodString;
|
|
433
|
+
code: z.ZodOptional<z.ZodString>;
|
|
434
|
+
source: z.ZodOptional<z.ZodString>;
|
|
435
|
+
}, z.core.$strip>>>;
|
|
436
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
437
|
+
status: z.ZodLiteral<"pending">;
|
|
438
|
+
server: z.ZodOptional<z.ZodString>;
|
|
439
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
440
|
+
status: z.ZodEnum<{
|
|
441
|
+
error: "error";
|
|
442
|
+
unavailable: "unavailable";
|
|
443
|
+
unsupported: "unsupported";
|
|
444
|
+
}>;
|
|
445
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
446
|
+
}, z.core.$strip>], "status">, Record<never, never>, Record<never, never>>;
|
|
447
|
+
};
|
|
448
|
+
place: {
|
|
449
|
+
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
450
|
+
id: z.ZodString;
|
|
451
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
452
|
+
pending: z.ZodNullable<z.ZodEnum<{
|
|
453
|
+
cloud: "cloud";
|
|
454
|
+
local: "local";
|
|
455
|
+
}>>;
|
|
456
|
+
leftBehind: z.ZodNullable<z.ZodObject<{
|
|
457
|
+
deviceId: z.ZodNullable<z.ZodString>;
|
|
458
|
+
at: z.ZodNumber;
|
|
459
|
+
}, z.core.$strip>>;
|
|
460
|
+
personal: z.ZodBoolean;
|
|
461
|
+
holderId: z.ZodNullable<z.ZodString>;
|
|
462
|
+
here: z.ZodBoolean;
|
|
463
|
+
sandbox: z.ZodObject<{
|
|
464
|
+
online: z.ZodOptional<z.ZodBoolean>;
|
|
465
|
+
device: z.ZodOptional<z.ZodObject<{
|
|
466
|
+
id: z.ZodString;
|
|
467
|
+
name: z.ZodString;
|
|
468
|
+
platform: z.ZodString;
|
|
469
|
+
}, z.core.$strip>>;
|
|
470
|
+
backend: z.ZodOptional<z.ZodObject<{
|
|
471
|
+
id: z.ZodString;
|
|
472
|
+
label: z.ZodString;
|
|
473
|
+
isolation: z.ZodString;
|
|
474
|
+
}, z.core.$strip>>;
|
|
475
|
+
provider: z.ZodString;
|
|
476
|
+
location: z.ZodEnum<{
|
|
477
|
+
cloud: "cloud";
|
|
478
|
+
local: "local";
|
|
479
|
+
}>;
|
|
480
|
+
deviceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
481
|
+
}, z.core.$strip>;
|
|
482
|
+
local: z.ZodNullable<z.ZodObject<{
|
|
483
|
+
deviceId: z.ZodString;
|
|
484
|
+
mine: z.ZodBoolean;
|
|
485
|
+
}, z.core.$strip>>;
|
|
486
|
+
cloud: z.ZodObject<{
|
|
487
|
+
provider: z.ZodString;
|
|
488
|
+
movable: z.ZodBoolean;
|
|
489
|
+
}, z.core.$strip>;
|
|
490
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
491
|
+
/**
|
|
492
|
+
* Moves a session, with its work, to one of the caller's own machines or back to the cloud.
|
|
493
|
+
* A session that is working moves once it stops: `pending` in the answer says where to.
|
|
494
|
+
*/
|
|
495
|
+
move: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
496
|
+
id: z.ZodString;
|
|
497
|
+
to: z.ZodLiteral<"local">;
|
|
498
|
+
deviceId: z.ZodString;
|
|
499
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
500
|
+
id: z.ZodString;
|
|
501
|
+
to: z.ZodLiteral<"cloud">;
|
|
502
|
+
}, z.core.$strip>], "to">, z.ZodObject<{
|
|
503
|
+
pending: z.ZodNullable<z.ZodEnum<{
|
|
504
|
+
cloud: "cloud";
|
|
505
|
+
local: "local";
|
|
506
|
+
}>>;
|
|
507
|
+
leftBehind: z.ZodNullable<z.ZodObject<{
|
|
508
|
+
deviceId: z.ZodNullable<z.ZodString>;
|
|
509
|
+
at: z.ZodNumber;
|
|
510
|
+
}, z.core.$strip>>;
|
|
511
|
+
personal: z.ZodBoolean;
|
|
512
|
+
holderId: z.ZodNullable<z.ZodString>;
|
|
513
|
+
here: z.ZodBoolean;
|
|
514
|
+
sandbox: z.ZodObject<{
|
|
515
|
+
online: z.ZodOptional<z.ZodBoolean>;
|
|
516
|
+
device: z.ZodOptional<z.ZodObject<{
|
|
517
|
+
id: z.ZodString;
|
|
518
|
+
name: z.ZodString;
|
|
519
|
+
platform: z.ZodString;
|
|
520
|
+
}, z.core.$strip>>;
|
|
521
|
+
backend: z.ZodOptional<z.ZodObject<{
|
|
522
|
+
id: z.ZodString;
|
|
523
|
+
label: z.ZodString;
|
|
524
|
+
isolation: z.ZodString;
|
|
525
|
+
}, z.core.$strip>>;
|
|
526
|
+
provider: z.ZodString;
|
|
527
|
+
location: z.ZodEnum<{
|
|
528
|
+
cloud: "cloud";
|
|
529
|
+
local: "local";
|
|
530
|
+
}>;
|
|
531
|
+
deviceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
532
|
+
}, z.core.$strip>;
|
|
533
|
+
local: z.ZodNullable<z.ZodObject<{
|
|
534
|
+
deviceId: z.ZodString;
|
|
535
|
+
mine: z.ZodBoolean;
|
|
536
|
+
}, z.core.$strip>>;
|
|
537
|
+
cloud: z.ZodObject<{
|
|
538
|
+
provider: z.ZodString;
|
|
539
|
+
movable: z.ZodBoolean;
|
|
540
|
+
}, z.core.$strip>;
|
|
541
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
542
|
+
};
|
|
543
|
+
/** Only people who can open the session can ask for its preview address. */
|
|
544
|
+
preview: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
545
|
+
id: z.ZodString;
|
|
546
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
547
|
+
label: z.ZodString;
|
|
548
|
+
host: z.ZodOptional<z.ZodString>;
|
|
549
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
550
|
+
};
|