@mountaya/studio 0.1.0 → 0.2.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 +30 -0
- package/dist/agent/index.cjs +2561 -2815
- package/dist/agent/index.cjs.map +1 -1
- package/dist/agent/index.d.cts +766 -786
- package/dist/agent/index.d.ts +766 -786
- package/dist/agent/index.js +2553 -2790
- package/dist/agent/index.js.map +1 -1
- package/dist/chunk-3Oi_Zrtm.js +9 -0
- package/dist/chunk-3Oi_Zrtm.js.map +1 -0
- package/dist/chunk-B18OPIu_.js +6 -0
- package/dist/chunk-B18OPIu_.js.map +1 -0
- package/dist/chunk-B5Uz3Qct.cjs +15 -0
- package/dist/chunk-B5Uz3Qct.cjs.map +1 -0
- package/dist/chunk-BBEJwkd3.d.cts +839 -0
- package/dist/chunk-BIEc_SkR.cjs +29 -0
- package/dist/chunk-BIEc_SkR.cjs.map +1 -0
- package/dist/chunk-BKMFOe-N.js +171 -0
- package/dist/chunk-BKMFOe-N.js.map +1 -0
- package/dist/chunk-BP4uy7E1.d.ts +11583 -0
- package/dist/chunk-BSHTsFiB.js +1403 -0
- package/dist/chunk-BSHTsFiB.js.map +1 -0
- package/dist/chunk-BTUUABGI.js +17 -0
- package/dist/chunk-BTUUABGI.js.map +1 -0
- package/dist/chunk-BaPiaz5X.cjs +115 -0
- package/dist/chunk-BaPiaz5X.cjs.map +1 -0
- package/dist/chunk-BeCVpkYr.cjs +542 -0
- package/dist/chunk-BeCVpkYr.cjs.map +1 -0
- package/dist/chunk-BgngsvK8.cjs +6202 -0
- package/dist/chunk-BgngsvK8.cjs.map +1 -0
- package/dist/chunk-BhInd7CJ.d.cts +253 -0
- package/dist/chunk-Bn6ZbxkS.cjs +27 -0
- package/dist/chunk-By9ZnkVI.js +60 -0
- package/dist/chunk-By9ZnkVI.js.map +1 -0
- package/dist/chunk-BzqPhxsz.cjs +367 -0
- package/dist/chunk-BzqPhxsz.cjs.map +1 -0
- package/dist/chunk-C2mMX81q.d.ts +443 -0
- package/dist/chunk-C2rr9Q0V.cjs +1402 -0
- package/dist/chunk-C2rr9Q0V.cjs.map +1 -0
- package/dist/{directorThreads-CqmvsV8b.d.cts → chunk-CDJCbwIQ.d.cts} +20 -22
- package/dist/chunk-CLGvBOVH.d.cts +1654 -0
- package/dist/chunk-COdw1dc6.d.ts +525 -0
- package/dist/chunk-CQCJnT2i.d.ts +511 -0
- package/dist/chunk-CSyHY67q.cjs +353 -0
- package/dist/chunk-CSyHY67q.cjs.map +1 -0
- package/dist/chunk-CiK1Iqrv.js +950 -0
- package/dist/chunk-CiK1Iqrv.js.map +1 -0
- package/dist/chunk-CmJBgSwZ.cjs +24 -0
- package/dist/chunk-CmJBgSwZ.cjs.map +1 -0
- package/dist/chunk-CnrsRK2u.cjs +83 -0
- package/dist/chunk-CnrsRK2u.cjs.map +1 -0
- package/dist/chunk-Co782_9r.js +326 -0
- package/dist/chunk-Co782_9r.js.map +1 -0
- package/dist/chunk-Csr3KDpZ.cjs +32 -0
- package/dist/chunk-Csr3KDpZ.cjs.map +1 -0
- package/dist/chunk-CwkmccXv.js +89 -0
- package/dist/chunk-CwkmccXv.js.map +1 -0
- package/dist/chunk-D0Q4iL9B.cjs +255 -0
- package/dist/chunk-D0Q4iL9B.cjs.map +1 -0
- package/dist/chunk-DFwiSzUS.cjs +72 -0
- package/dist/chunk-DFwiSzUS.cjs.map +1 -0
- package/dist/chunk-DIFayl2P.d.cts +443 -0
- package/dist/chunk-DIGF58ux.d.cts +525 -0
- package/dist/chunk-DKuuuld5.js +101 -0
- package/dist/chunk-DKuuuld5.js.map +1 -0
- package/dist/chunk-DMePkFEo.js +5054 -0
- package/dist/chunk-DMePkFEo.js.map +1 -0
- package/dist/chunk-DO5SIBgu.js +305 -0
- package/dist/chunk-DO5SIBgu.js.map +1 -0
- package/dist/chunk-DOQ_7eE5.d.ts +6662 -0
- package/dist/{tabs-B2nRO4p_.d.ts → chunk-DThaaNeb.d.cts} +2 -2
- package/dist/{tabs-B2nRO4p_.d.cts → chunk-DThaaNeb.d.ts} +2 -2
- package/dist/{directorThreads-CqmvsV8b.d.ts → chunk-DUQzjUJy.d.ts} +20 -22
- package/dist/chunk-DX37IPhV.cjs +1903 -0
- package/dist/chunk-DX37IPhV.cjs.map +1 -0
- package/dist/chunk-Damps5Tk.cjs +155 -0
- package/dist/chunk-Damps5Tk.cjs.map +1 -0
- package/dist/chunk-DbK5PhpJ.d.ts +1654 -0
- package/dist/chunk-De0vAASv.d.ts +253 -0
- package/dist/chunk-DhSZ7YZt.d.cts +6662 -0
- package/dist/chunk-DjEvqvPA.cjs +43 -0
- package/dist/chunk-DjEvqvPA.cjs.map +1 -0
- package/dist/{saveFile-j-1kkApx.d.cts → chunk-DkwDzwvu.d.cts} +7 -9
- package/dist/{saveFile-j-1kkApx.d.ts → chunk-DkwDzwvu.d.ts} +7 -9
- package/dist/chunk-Dmszv9If.js +71 -0
- package/dist/chunk-Dmszv9If.js.map +1 -0
- package/dist/chunk-Dp_ftNWY.d.cts +511 -0
- package/dist/chunk-DsHQySz0.js +31 -0
- package/dist/chunk-DsHQySz0.js.map +1 -0
- package/dist/chunk-DwoUyHHh.js +281 -0
- package/dist/chunk-DwoUyHHh.js.map +1 -0
- package/dist/chunk-IaIDQflj.d.cts +2315 -0
- package/dist/chunk-IaIDQflj.d.ts +2315 -0
- package/dist/chunk-cVXLsZfL.d.ts +839 -0
- package/dist/chunk-mIaCX9EJ.d.cts +11583 -0
- package/dist/chunk-nJQxbOwQ.cjs +8962 -0
- package/dist/chunk-nJQxbOwQ.cjs.map +1 -0
- package/dist/chunk-o9jaxhCO.js +8852 -0
- package/dist/chunk-o9jaxhCO.js.map +1 -0
- package/dist/chunk-p-Tt_Lwz.js +14 -0
- package/dist/chunk-p-Tt_Lwz.js.map +1 -0
- package/dist/engines/index.cjs +2046 -3401
- package/dist/engines/index.cjs.map +1 -1
- package/dist/engines/index.d.cts +1510 -1550
- package/dist/engines/index.d.ts +1510 -1550
- package/dist/engines/index.js +2039 -3380
- package/dist/engines/index.js.map +1 -1
- package/dist/handlers/index.cjs +47 -93
- package/dist/handlers/index.cjs.map +1 -1
- package/dist/handlers/index.d.cts +61 -103
- package/dist/handlers/index.d.ts +61 -103
- package/dist/handlers/index.js +27 -36
- package/dist/handlers/index.js.map +1 -1
- package/dist/index.cjs +3347 -4398
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -7297
- package/dist/index.d.ts +8 -7297
- package/dist/index.js +2997 -3187
- package/dist/index.js.map +1 -1
- package/dist/plugins/index.cjs +482 -949
- package/dist/plugins/index.cjs.map +1 -1
- package/dist/plugins/index.d.cts +44 -61
- package/dist/plugins/index.d.ts +44 -61
- package/dist/plugins/index.js +471 -915
- package/dist/plugins/index.js.map +1 -1
- package/dist/seams/index.cjs +77 -140
- package/dist/seams/index.cjs.map +1 -1
- package/dist/seams/index.d.cts +125 -158
- package/dist/seams/index.d.ts +125 -158
- package/dist/seams/index.js +41 -71
- package/dist/seams/index.js.map +1 -1
- package/dist/strings/fr/index.cjs +2130 -2116
- package/dist/strings/fr/index.cjs.map +1 -1
- package/dist/strings/fr/index.d.cts +3 -5
- package/dist/strings/fr/index.d.ts +3 -5
- package/dist/strings/fr/index.js +2125 -2114
- package/dist/strings/fr/index.js.map +1 -1
- package/dist/strings/index.cjs +2331 -2625
- package/dist/strings/index.cjs.map +1 -1
- package/dist/strings/index.d.cts +3 -731
- package/dist/strings/index.d.ts +3 -731
- package/dist/strings/index.js +2324 -2615
- package/dist/strings/index.js.map +1 -1
- package/dist/testing/index.cjs +214 -276
- package/dist/testing/index.cjs.map +1 -1
- package/dist/testing/index.d.cts +61 -121
- package/dist/testing/index.d.ts +61 -121
- package/dist/testing/index.js +208 -273
- package/dist/testing/index.js.map +1 -1
- package/dist/time/index.cjs +23 -23
- package/dist/time/index.cjs.map +1 -1
- package/dist/time/index.d.cts +5 -7
- package/dist/time/index.d.ts +5 -7
- package/dist/time/index.js +18 -21
- package/dist/time/index.js.map +1 -1
- package/package.json +14 -15
- package/src/agent/rules/stateDelta.ts +1 -0
- package/src/agent/stores/agentThreads.ts +1 -4
- package/src/bus/rules/bus.ts +1 -2
- package/src/bus/rules/defineRegistry.ts +3 -5
- package/src/bus/rules/types.ts +6 -7
- package/src/chrome/stores/uiStore.ts +4 -2
- package/src/embed/rules/fieldDependencies.ts +2 -0
- package/src/embed/rules/safetyRules.ts +2 -0
- package/src/embed/rules/tableCode.ts +4 -3
- package/src/index.ts +6 -27
- package/src/itinerary/rules/import.ts +6 -8
- package/src/plugins/contracts/plugin.ts +4 -2
- package/src/seams/rules/formatters.ts +5 -3
- package/src/testing/index.ts +1 -5
- package/src/viewer/rules/platformViewer.ts +1 -0
- package/dist/bus-BwiNiXdH.d.ts +0 -514
- package/dist/bus-DzmhPwdK.d.cts +0 -514
- package/dist/chainModel-B23pEP_1.d.cts +0 -127
- package/dist/chainModel-B23pEP_1.d.ts +0 -127
- package/dist/chunk-2HFY7ETU.js +0 -5721
- package/dist/chunk-2HFY7ETU.js.map +0 -1
- package/dist/chunk-355TOXSB.js +0 -72
- package/dist/chunk-355TOXSB.js.map +0 -1
- package/dist/chunk-4ZCUZVSV.js +0 -10275
- package/dist/chunk-4ZCUZVSV.js.map +0 -1
- package/dist/chunk-6HEKY3NF.js +0 -95
- package/dist/chunk-6HEKY3NF.js.map +0 -1
- package/dist/chunk-7GFLGGBX.cjs +0 -8
- package/dist/chunk-7GFLGGBX.cjs.map +0 -1
- package/dist/chunk-7NBRCENN.cjs +0 -19
- package/dist/chunk-7NBRCENN.cjs.map +0 -1
- package/dist/chunk-AF5GCXE3.js +0 -8
- package/dist/chunk-AF5GCXE3.js.map +0 -1
- package/dist/chunk-CJDIFRGZ.cjs +0 -2005
- package/dist/chunk-CJDIFRGZ.cjs.map +0 -1
- package/dist/chunk-CNPZY7N3.js +0 -349
- package/dist/chunk-CNPZY7N3.js.map +0 -1
- package/dist/chunk-DZJHTWSF.cjs +0 -45
- package/dist/chunk-DZJHTWSF.cjs.map +0 -1
- package/dist/chunk-EABIHHWA.js +0 -42
- package/dist/chunk-EABIHHWA.js.map +0 -1
- package/dist/chunk-EKZWV6RS.cjs +0 -415
- package/dist/chunk-EKZWV6RS.cjs.map +0 -1
- package/dist/chunk-EOKRXXAC.cjs +0 -24
- package/dist/chunk-EOKRXXAC.cjs.map +0 -1
- package/dist/chunk-F73W2ZTJ.js +0 -1126
- package/dist/chunk-F73W2ZTJ.js.map +0 -1
- package/dist/chunk-H4DVOZ5O.js +0 -1897
- package/dist/chunk-H4DVOZ5O.js.map +0 -1
- package/dist/chunk-HI52PBFT.cjs +0 -10314
- package/dist/chunk-HI52PBFT.cjs.map +0 -1
- package/dist/chunk-IDBXFBLG.cjs +0 -1225
- package/dist/chunk-IDBXFBLG.cjs.map +0 -1
- package/dist/chunk-LBWTJZUJ.js +0 -297
- package/dist/chunk-LBWTJZUJ.js.map +0 -1
- package/dist/chunk-NCLA6DKD.cjs +0 -310
- package/dist/chunk-NCLA6DKD.cjs.map +0 -1
- package/dist/chunk-O4MC5DPD.js +0 -19
- package/dist/chunk-O4MC5DPD.js.map +0 -1
- package/dist/chunk-OP37FKW6.cjs +0 -98
- package/dist/chunk-OP37FKW6.cjs.map +0 -1
- package/dist/chunk-OQSYFH3Z.cjs +0 -5945
- package/dist/chunk-OQSYFH3Z.cjs.map +0 -1
- package/dist/chunk-PACIO4NS.cjs +0 -26
- package/dist/chunk-PACIO4NS.cjs.map +0 -1
- package/dist/chunk-PSZ2R3TC.cjs +0 -75
- package/dist/chunk-PSZ2R3TC.cjs.map +0 -1
- package/dist/chunk-QFO5CZG2.cjs +0 -136
- package/dist/chunk-QFO5CZG2.cjs.map +0 -1
- package/dist/chunk-QL63MUEW.cjs +0 -140
- package/dist/chunk-QL63MUEW.cjs.map +0 -1
- package/dist/chunk-RFUPPVZO.js +0 -17
- package/dist/chunk-RFUPPVZO.js.map +0 -1
- package/dist/chunk-RPG2LWMP.js +0 -23
- package/dist/chunk-RPG2LWMP.js.map +0 -1
- package/dist/chunk-TIBXK6B7.cjs +0 -12
- package/dist/chunk-TIBXK6B7.cjs.map +0 -1
- package/dist/chunk-UU65VNEV.js +0 -381
- package/dist/chunk-UU65VNEV.js.map +0 -1
- package/dist/chunk-VGX6TR2I.js +0 -209
- package/dist/chunk-VGX6TR2I.js.map +0 -1
- package/dist/chunk-WUTDDBVP.js +0 -130
- package/dist/chunk-WUTDDBVP.js.map +0 -1
- package/dist/chunk-WVQQLKCI.cjs +0 -224
- package/dist/chunk-WVQQLKCI.cjs.map +0 -1
- package/dist/chunk-WZYXG3SE.js +0 -111
- package/dist/chunk-WZYXG3SE.js.map +0 -1
- package/dist/chunk-XDI2X3KE.js +0 -6
- package/dist/chunk-XDI2X3KE.js.map +0 -1
- package/dist/chunk-XKHLRIC7.cjs +0 -381
- package/dist/chunk-XKHLRIC7.cjs.map +0 -1
- package/dist/context-DNtd2WUv.d.cts +0 -11666
- package/dist/context-DgB72Bur.d.ts +0 -11666
- package/dist/en-Bu4Ti9Ev.d.cts +0 -2315
- package/dist/en-Bu4Ti9Ev.d.ts +0 -2315
- package/dist/shareLink-B6hlt942.d.ts +0 -144
- package/dist/shareLink-C7rIMb7x.d.ts +0 -527
- package/dist/shareLink-CnTxxXjp.d.cts +0 -144
- package/dist/shareLink-DyZVYH2V.d.cts +0 -527
- package/dist/studioPlugin-C3C7VjMy.d.ts +0 -847
- package/dist/studioPlugin-Cf3OBNUv.d.cts +0 -847
- package/dist/types-BzJRV6UI.d.cts +0 -845
- package/dist/types-BzJRV6UI.d.ts +0 -845
- package/dist/zoneForm-CdYNtnnA.d.cts +0 -320
- package/dist/zoneForm-mG85yt5e.d.ts +0 -320
|
@@ -1,23 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { UserWaypointIcon } from
|
|
10
|
-
import '@mountaya/elements/camera';
|
|
11
|
-
import '@mountaya/elements/map-client';
|
|
12
|
-
import '@mountaya/elements/seams';
|
|
13
|
-
import 'geojson';
|
|
14
|
-
import 'zustand/vanilla';
|
|
15
|
-
import '@mountaya/elements/data';
|
|
16
|
-
import '../en-Bu4Ti9Ev.cjs';
|
|
17
|
-
import '@mountaya/elements/errors';
|
|
18
|
-
import '../saveFile-j-1kkApx.cjs';
|
|
19
|
-
import '../shareLink-CnTxxXjp.cjs';
|
|
20
|
-
|
|
1
|
+
import { i as ToolBusOptions, s as ThrownRecognizer, t as ToolBus } from "../chunk-Dp_ftNWY.cjs";
|
|
2
|
+
import { $a as StudioRegistry, Qa as StudioHandlers, Sa as CollabLockKind, a as StudioToolContext, ao as StudioToolName, io as StudioToolInputs, o as StudioToolDefinition, oo as StudioToolOutputs } from "../chunk-mIaCX9EJ.cjs";
|
|
3
|
+
import { t as SEARCH_TAB_ID } from "../chunk-DThaaNeb.cjs";
|
|
4
|
+
import { Jt as ToolFailure, Xt as ToolResult } from "../chunk-CLGvBOVH.cjs";
|
|
5
|
+
import { s as ShareLinkRead } from "../chunk-DIGF58ux.cjs";
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
import { DataSchema } from "@mountaya/client";
|
|
8
|
+
import { MountayaElementsError } from "@mountaya/elements/errors";
|
|
9
|
+
import { UserWaypointIcon } from "@mountaya/elements/icons";
|
|
21
10
|
/**
|
|
22
11
|
* The throws these handlers recognise themselves, and the reason the list is not the whole one.
|
|
23
12
|
*
|
|
@@ -64,28 +53,7 @@ import '../shareLink-CnTxxXjp.cjs';
|
|
|
64
53
|
* why converting is reserved for the handlers that branch on the code, and why every other one
|
|
65
54
|
* re-throws once its rollback is done.
|
|
66
55
|
*/
|
|
67
|
-
declare const STUDIO_HANDLER_RECOGNIZERS: readonly ThrownRecognizer[];
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* The studio's own handlers, and the policy that ships with them.
|
|
71
|
-
*
|
|
72
|
-
* A tool is a contract and a handler. {@link studioToolContracts} answers the contract (the
|
|
73
|
-
* name, the input and output schemas, the capability) for everyone who mounts this studio, so
|
|
74
|
-
* what a consumer needs from this package is the handler, keyed by the name their components
|
|
75
|
-
* already dispatch. That is what this returns.
|
|
76
|
-
*
|
|
77
|
-
* It takes NO arguments, and that is the shape rather than an omission. Every dependency a
|
|
78
|
-
* handler has (the map, the stores, the persistence seam, the viewer, the confirm gate) is
|
|
79
|
-
* late-bound on the {@link StudioToolContext} it is invoked with, so there is nothing to
|
|
80
|
-
* configure at construction and nothing a caller could pass that would not be the wrong answer
|
|
81
|
-
* by the time a dispatch arrives. A surface mounts, and the context it hands each dispatch is
|
|
82
|
-
* the live one.
|
|
83
|
-
*
|
|
84
|
-
* A FUNCTION rather than a frozen constant, because a caller who spreads it is entitled to
|
|
85
|
-
* mutate their copy, and one shared object would let the first consumer's edit reach the
|
|
86
|
-
* second's bus. Building the map per call costs one object literal.
|
|
87
|
-
*/
|
|
88
|
-
|
|
56
|
+
export declare const STUDIO_HANDLER_RECOGNIZERS: readonly ThrownRecognizer[];
|
|
89
57
|
/**
|
|
90
58
|
* StudioToolDefaults is what {@link createStudioHandlers} returns: this studio's answer for
|
|
91
59
|
* every tool it implements, in the shape {@link registerStudioTools} takes.
|
|
@@ -114,7 +82,7 @@ type StudioToolDefaults = StudioHandlers<StudioToolContext>;
|
|
|
114
82
|
* {@link overrideStudioHandler} is the same edit when the replacement wraps the default rather
|
|
115
83
|
* than discarding it.
|
|
116
84
|
*/
|
|
117
|
-
declare const createStudioHandlers: () => StudioToolDefaults;
|
|
85
|
+
export declare const createStudioHandlers: () => StudioToolDefaults;
|
|
118
86
|
/**
|
|
119
87
|
* overrideStudioHandler replaces one entry in a handler map, given the entry it replaces.
|
|
120
88
|
*
|
|
@@ -131,37 +99,36 @@ declare const createStudioHandlers: () => StudioToolDefaults;
|
|
|
131
99
|
* @returns a new handler map; the one passed in is not edited, so overrides chain and the last
|
|
132
100
|
* one applied runs first.
|
|
133
101
|
*/
|
|
134
|
-
declare const overrideStudioHandler: <TName extends StudioToolName>(handlers: StudioToolDefaults, name: TName, replace: (current: StudioToolDefaults[TName]) => NonNullable<StudioToolDefaults[TName]>) => StudioToolDefaults;
|
|
135
|
-
|
|
102
|
+
export declare const overrideStudioHandler: <TName extends StudioToolName>(handlers: StudioToolDefaults, name: TName, replace: (current: StudioToolDefaults[TName]) => NonNullable<StudioToolDefaults[TName]>) => StudioToolDefaults;
|
|
136
103
|
/**
|
|
137
104
|
* StudioToolBusOptions are what a host states about the studio's bus, each one optional.
|
|
138
105
|
*/
|
|
139
106
|
interface StudioToolBusOptions {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
107
|
+
/**
|
|
108
|
+
* The handler map the bus registers. Spread {@link createStudioHandlers} and replace an entry
|
|
109
|
+
* to change one verb; a map that leaves a verb out leaves it unregistered.
|
|
110
|
+
*
|
|
111
|
+
* @default createStudioHandlers()
|
|
112
|
+
*/
|
|
113
|
+
readonly handlers?: StudioToolDefaults | undefined;
|
|
114
|
+
/**
|
|
115
|
+
* The model-facing catalogue a manifest describes each tool by. A host that runs a model
|
|
116
|
+
* passes `PLAYBOOK` of `@mountaya/studio/agent`; with none, each tool keeps its contract's
|
|
117
|
+
* description and is read as one that may mutate.
|
|
118
|
+
*/
|
|
119
|
+
readonly playbook?: ToolBusOptions["playbook"];
|
|
120
|
+
/**
|
|
121
|
+
* The host's own throw classifiers, asked after the studio's own
|
|
122
|
+
* ({@link STUDIO_HANDLER_RECOGNIZERS}), so a host's answer never shadows a throw the studio
|
|
123
|
+
* classifies.
|
|
124
|
+
*/
|
|
125
|
+
readonly recognizers?: readonly ThrownRecognizer[] | undefined;
|
|
126
|
+
/**
|
|
127
|
+
* The host's own vendor segments, reserved beside the studio's
|
|
128
|
+
* ({@link RESERVED_PLUGIN_NAMESPACES}), so `unregister` keeps a tool under one of them too.
|
|
129
|
+
* The studio's are reserved whatever this holds.
|
|
130
|
+
*/
|
|
131
|
+
readonly reserved?: readonly string[] | undefined;
|
|
165
132
|
}
|
|
166
133
|
/**
|
|
167
134
|
* createStudioToolBus builds the studio's bus in one call: typed by every studio verb's input
|
|
@@ -184,8 +151,7 @@ interface StudioToolBusOptions {
|
|
|
184
151
|
* const result = await bus.dispatch(context, "studio.alert.dismiss", {});
|
|
185
152
|
* ```
|
|
186
153
|
*/
|
|
187
|
-
declare const createStudioToolBus: (options?: StudioToolBusOptions) => ToolBus<StudioToolContext, StudioToolInputs, StudioToolOutputs>;
|
|
188
|
-
|
|
154
|
+
export declare const createStudioToolBus: (options?: StudioToolBusOptions) => ToolBus<StudioToolContext, StudioToolInputs, StudioToolOutputs>;
|
|
189
155
|
/**
|
|
190
156
|
* MAX_OPEN_COPILOT_TABS caps the co-pilot tabs open at once. The strip holds one conversation:
|
|
191
157
|
* `studio.tabs.create` answers `limit-reached` while one is open, and `studio.tabs.open`
|
|
@@ -195,8 +161,7 @@ declare const createStudioToolBus: (options?: StudioToolBusOptions) => ToolBus<S
|
|
|
195
161
|
* attacker-controllable and the provider mounts one live session, and one event stream, per
|
|
196
162
|
* entry, so the two gates read one number.
|
|
197
163
|
*/
|
|
198
|
-
declare const MAX_OPEN_COPILOT_TABS = 1;
|
|
199
|
-
|
|
164
|
+
export declare const MAX_OPEN_COPILOT_TABS = 1;
|
|
200
165
|
/**
|
|
201
166
|
* hasErrorCode asks whether a thrown API failure carries one stable machine-readable code.
|
|
202
167
|
*
|
|
@@ -208,8 +173,7 @@ declare const MAX_OPEN_COPILOT_TABS = 1;
|
|
|
208
173
|
* @param error - Whatever was thrown.
|
|
209
174
|
* @param code - The machine-readable code the envelope's entries are asked for.
|
|
210
175
|
*/
|
|
211
|
-
declare const hasErrorCode: (error: unknown, code: string) => boolean;
|
|
212
|
-
|
|
176
|
+
export declare const hasErrorCode: (error: unknown, code: string) => boolean;
|
|
213
177
|
/**
|
|
214
178
|
* isEditInProgressError reports whether a tool result is a one-edit-at-a-time
|
|
215
179
|
* rejection, so a human-driven dispatch site can decide to surface the shared
|
|
@@ -219,7 +183,7 @@ declare const hasErrorCode: (error: unknown, code: string) => boolean;
|
|
|
219
183
|
* build the refusal through {@link editInProgressError}, so the tag and the
|
|
220
184
|
* `create` kind are held there.
|
|
221
185
|
*/
|
|
222
|
-
declare const isEditInProgressError: (result: ToolResult) => boolean;
|
|
186
|
+
export declare const isEditInProgressError: (result: ToolResult) => boolean;
|
|
223
187
|
/**
|
|
224
188
|
* COLLAB_LOCKED_PREFIX tags the structured failure a lock-aware editBegin returns
|
|
225
189
|
* when a collaborator holds the entity's soft-lock. The peer holder id follows the
|
|
@@ -229,7 +193,7 @@ declare const isEditInProgressError: (result: ToolResult) => boolean;
|
|
|
229
193
|
* from EDIT_IN_PROGRESS_PREFIX: that is the LOCAL one-edit-at-a-time gate, this is a
|
|
230
194
|
* REMOTE peer holding the entity.
|
|
231
195
|
*/
|
|
232
|
-
declare const COLLAB_LOCKED_PREFIX = "collab-locked";
|
|
196
|
+
export declare const COLLAB_LOCKED_PREFIX = "collab-locked";
|
|
233
197
|
/**
|
|
234
198
|
* acquireCollabLock runs the two-stage soft-lock acquisition a lock-aware editBegin
|
|
235
199
|
* performs before arming its session: the fast LOCAL slice check (guardCollabLock)
|
|
@@ -259,7 +223,7 @@ declare const COLLAB_LOCKED_PREFIX = "collab-locked";
|
|
|
259
223
|
* @param kind - The entity's family, as the soft-lock keys it.
|
|
260
224
|
* @param id - The entity's id.
|
|
261
225
|
*/
|
|
262
|
-
declare const acquireCollabLock: (ctx: StudioToolContext, kind: CollabLockKind, id: string) => Promise<ToolFailure | null>;
|
|
226
|
+
export declare const acquireCollabLock: (ctx: StudioToolContext, kind: CollabLockKind, id: string) => Promise<ToolFailure | null>;
|
|
263
227
|
/**
|
|
264
228
|
* releaseCollabEntity tears the local user's collaboration hold on an entity down
|
|
265
229
|
* on commit or cancel: it clears the live draft (so a peer's ghost preview drops at
|
|
@@ -273,7 +237,7 @@ declare const acquireCollabLock: (ctx: StudioToolContext, kind: CollabLockKind,
|
|
|
273
237
|
* It returns a promise that settles once the release has, and never rejects. Every teardown
|
|
274
238
|
* fires and forgets it; a caller whose next request must find the lock given back awaits it.
|
|
275
239
|
*/
|
|
276
|
-
declare const releaseCollabEntity: (ctx: StudioToolContext, kind: CollabLockKind, id: string) => Promise<void>;
|
|
240
|
+
export declare const releaseCollabEntity: (ctx: StudioToolContext, kind: CollabLockKind, id: string) => Promise<void>;
|
|
277
241
|
/**
|
|
278
242
|
* teardownActiveEditSession discards whichever authoring session is armed and
|
|
279
243
|
* leaves the studio in the clean, no-edit state: the single navigate-away
|
|
@@ -303,7 +267,7 @@ declare const releaseCollabEntity: (ctx: StudioToolContext, kind: CollabLockKind
|
|
|
303
267
|
* It also disarms a split pick, which is a gesture on a segment of the itinerary being left, and
|
|
304
268
|
* lowers the hand-off a run named, with a session armed or none.
|
|
305
269
|
*/
|
|
306
|
-
declare const teardownActiveEditSession: (ctx: StudioToolContext) => void;
|
|
270
|
+
export declare const teardownActiveEditSession: (ctx: StudioToolContext) => void;
|
|
307
271
|
/**
|
|
308
272
|
* maybeResetCopilotOnSwitch resets the co-pilot when the studio opens a DIFFERENT
|
|
309
273
|
* editable resource (an itinerary or a zone). The co-pilot's threads live in the tab
|
|
@@ -318,8 +282,7 @@ declare const teardownActiveEditSession: (ctx: StudioToolContext) => void;
|
|
|
318
282
|
* @param previousId - The resource open before the switch, or null for none.
|
|
319
283
|
* @param nextId - The resource the switch opens, or null for none.
|
|
320
284
|
*/
|
|
321
|
-
declare const maybeResetCopilotOnSwitch: (ctx: StudioToolContext, previousId: string | null, nextId: string | null) => void;
|
|
322
|
-
|
|
285
|
+
export declare const maybeResetCopilotOnSwitch: (ctx: StudioToolContext, previousId: string | null, nextId: string | null) => void;
|
|
323
286
|
/**
|
|
324
287
|
* readShareLink reads the target's share link without setting one, and answers its token, or
|
|
325
288
|
* null where none is set. It is what a share surface asks when it opens, so opening one hands
|
|
@@ -341,8 +304,7 @@ declare const maybeResetCopilotOnSwitch: (ctx: StudioToolContext, previousId: st
|
|
|
341
304
|
* @param context The tool context whose api the link is read through.
|
|
342
305
|
* @param target The resource whose link is read.
|
|
343
306
|
*/
|
|
344
|
-
declare const readShareLink: ShareLinkRead;
|
|
345
|
-
|
|
307
|
+
export declare const readShareLink: ShareLinkRead;
|
|
346
308
|
/**
|
|
347
309
|
* videoDirectorRegistry is the camera-direction vocabulary the in-wizard AI
|
|
348
310
|
* director is scoped to: add/edit/remove a keyframe, add a hold beat, add an
|
|
@@ -363,13 +325,13 @@ declare const readShareLink: ShareLinkRead;
|
|
|
363
325
|
* nothing could check.
|
|
364
326
|
*/
|
|
365
327
|
declare const videoDirectorRegistry: StudioRegistry<StudioToolContext, {
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
328
|
+
readonly "studio.video.mode.set": StudioToolDefinition<"studio.video.mode.set">;
|
|
329
|
+
readonly "studio.video.orbit": StudioToolDefinition<"studio.video.orbit">;
|
|
330
|
+
readonly "studio.video.plan.get": StudioToolDefinition<"studio.video.plan.get">;
|
|
331
|
+
readonly "studio.video.shot.add": StudioToolDefinition<"studio.video.shot.add">;
|
|
332
|
+
readonly "studio.video.shot.addHold": StudioToolDefinition<"studio.video.shot.addHold">;
|
|
333
|
+
readonly "studio.video.shot.remove": StudioToolDefinition<"studio.video.shot.remove">;
|
|
334
|
+
readonly "studio.video.shot.set": StudioToolDefinition<"studio.video.shot.set">;
|
|
373
335
|
}>;
|
|
374
336
|
/**
|
|
375
337
|
* VideoDirectorToolInputs maps each director verb to the PRE-PARSE input the bus
|
|
@@ -379,9 +341,7 @@ declare const videoDirectorRegistry: StudioRegistry<StudioToolContext, {
|
|
|
379
341
|
* matching what the handler receives a parsed, defaulted value for. It is derived
|
|
380
342
|
* from {@link videoDirectorRegistry} so the map and the registry never drift.
|
|
381
343
|
*/
|
|
382
|
-
type VideoDirectorToolInputs = {
|
|
383
|
-
[K in keyof typeof videoDirectorRegistry]: z.input<(typeof videoDirectorRegistry)[K]["input"]>;
|
|
384
|
-
};
|
|
344
|
+
type VideoDirectorToolInputs = { [K in keyof typeof videoDirectorRegistry]: z.input<(typeof videoDirectorRegistry)[K]["input"]>; };
|
|
385
345
|
/**
|
|
386
346
|
* VideoDirectorToolOutputs maps each director verb to the `data` its answer holds: the studio's
|
|
387
347
|
* own answer for that verb, read off {@link StudioToolOutputs} by the registry's names.
|
|
@@ -418,8 +378,7 @@ type VideoDirectorToolBus = ToolBus<StudioToolContext, VideoDirectorToolInputs,
|
|
|
418
378
|
* the whole point of this seam, and the studio's own bus type would let a caller type-check
|
|
419
379
|
* a dispatch for a tool this bus never registered.
|
|
420
380
|
*/
|
|
421
|
-
declare const createVideoDirectorBus: () => VideoDirectorToolBus;
|
|
422
|
-
|
|
381
|
+
export declare const createVideoDirectorBus: () => VideoDirectorToolBus;
|
|
423
382
|
/**
|
|
424
383
|
* WaypointSeedStyle is the draft style a POI category contributes to a waypoint: the marker color
|
|
425
384
|
* always, and the marker icon only when the category's canonical glyph is one the waypoint catalog
|
|
@@ -427,8 +386,8 @@ declare const createVideoDirectorBus: () => VideoDirectorToolBus;
|
|
|
427
386
|
* name sprites like `plane`/ `mountain` the waypoint enum does not include.
|
|
428
387
|
*/
|
|
429
388
|
interface WaypointSeedStyle {
|
|
430
|
-
|
|
431
|
-
|
|
389
|
+
color: string;
|
|
390
|
+
icon: UserWaypointIcon | null;
|
|
432
391
|
}
|
|
433
392
|
/**
|
|
434
393
|
* poiCategoryWaypointStyle resolves the draft style a POI category seeds onto a
|
|
@@ -439,7 +398,6 @@ interface WaypointSeedStyle {
|
|
|
439
398
|
* (`studio.itinerary.waypoint.editSetPosition`) and the right-click "add POI to
|
|
440
399
|
* waypoints" action so both seed a captured POI identically.
|
|
441
400
|
*/
|
|
442
|
-
declare const poiCategoryWaypointStyle: (category: DataSchema.PoiCategory) => WaypointSeedStyle;
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
export type { StudioToolBusOptions, StudioToolDefaults, VideoDirectorToolBus, VideoDirectorToolInputs, VideoDirectorToolOutputs, WaypointSeedStyle };
|
|
401
|
+
export declare const poiCategoryWaypointStyle: (category: DataSchema.PoiCategory) => WaypointSeedStyle;
|
|
402
|
+
export { SEARCH_TAB_ID, type StudioToolBusOptions, type StudioToolDefaults, type VideoDirectorToolBus, type VideoDirectorToolInputs, type VideoDirectorToolOutputs, type WaypointSeedStyle };
|
|
403
|
+
//# sourceMappingURL=index.d.cts.map
|
package/dist/handlers/index.d.ts
CHANGED
|
@@ -1,23 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import '@mountaya/elements/camera';
|
|
11
|
-
import '@mountaya/elements/map-client';
|
|
12
|
-
import '@mountaya/elements/seams';
|
|
13
|
-
import 'geojson';
|
|
14
|
-
import 'zustand/vanilla';
|
|
15
|
-
import '@mountaya/elements/data';
|
|
16
|
-
import '../en-Bu4Ti9Ev.js';
|
|
17
|
-
import '@mountaya/elements/errors';
|
|
18
|
-
import '../saveFile-j-1kkApx.js';
|
|
19
|
-
import '../shareLink-B6hlt942.js';
|
|
20
|
-
|
|
1
|
+
import { i as ToolBusOptions, s as ThrownRecognizer, t as ToolBus } from "../chunk-CQCJnT2i.js";
|
|
2
|
+
import { $a as StudioRegistry, Qa as StudioHandlers, Sa as CollabLockKind, a as StudioToolContext, ao as StudioToolName, io as StudioToolInputs, o as StudioToolDefinition, oo as StudioToolOutputs } from "../chunk-BP4uy7E1.js";
|
|
3
|
+
import { t as SEARCH_TAB_ID } from "../chunk-DThaaNeb.js";
|
|
4
|
+
import { Jt as ToolFailure, Xt as ToolResult } from "../chunk-DbK5PhpJ.js";
|
|
5
|
+
import { s as ShareLinkRead } from "../chunk-COdw1dc6.js";
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
import { MountayaElementsError } from "@mountaya/elements/errors";
|
|
8
|
+
import { UserWaypointIcon } from "@mountaya/elements/icons";
|
|
9
|
+
import { DataSchema } from "@mountaya/client";
|
|
21
10
|
/**
|
|
22
11
|
* The throws these handlers recognise themselves, and the reason the list is not the whole one.
|
|
23
12
|
*
|
|
@@ -64,28 +53,7 @@ import '../shareLink-B6hlt942.js';
|
|
|
64
53
|
* why converting is reserved for the handlers that branch on the code, and why every other one
|
|
65
54
|
* re-throws once its rollback is done.
|
|
66
55
|
*/
|
|
67
|
-
declare const STUDIO_HANDLER_RECOGNIZERS: readonly ThrownRecognizer[];
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* The studio's own handlers, and the policy that ships with them.
|
|
71
|
-
*
|
|
72
|
-
* A tool is a contract and a handler. {@link studioToolContracts} answers the contract (the
|
|
73
|
-
* name, the input and output schemas, the capability) for everyone who mounts this studio, so
|
|
74
|
-
* what a consumer needs from this package is the handler, keyed by the name their components
|
|
75
|
-
* already dispatch. That is what this returns.
|
|
76
|
-
*
|
|
77
|
-
* It takes NO arguments, and that is the shape rather than an omission. Every dependency a
|
|
78
|
-
* handler has (the map, the stores, the persistence seam, the viewer, the confirm gate) is
|
|
79
|
-
* late-bound on the {@link StudioToolContext} it is invoked with, so there is nothing to
|
|
80
|
-
* configure at construction and nothing a caller could pass that would not be the wrong answer
|
|
81
|
-
* by the time a dispatch arrives. A surface mounts, and the context it hands each dispatch is
|
|
82
|
-
* the live one.
|
|
83
|
-
*
|
|
84
|
-
* A FUNCTION rather than a frozen constant, because a caller who spreads it is entitled to
|
|
85
|
-
* mutate their copy, and one shared object would let the first consumer's edit reach the
|
|
86
|
-
* second's bus. Building the map per call costs one object literal.
|
|
87
|
-
*/
|
|
88
|
-
|
|
56
|
+
export declare const STUDIO_HANDLER_RECOGNIZERS: readonly ThrownRecognizer[];
|
|
89
57
|
/**
|
|
90
58
|
* StudioToolDefaults is what {@link createStudioHandlers} returns: this studio's answer for
|
|
91
59
|
* every tool it implements, in the shape {@link registerStudioTools} takes.
|
|
@@ -114,7 +82,7 @@ type StudioToolDefaults = StudioHandlers<StudioToolContext>;
|
|
|
114
82
|
* {@link overrideStudioHandler} is the same edit when the replacement wraps the default rather
|
|
115
83
|
* than discarding it.
|
|
116
84
|
*/
|
|
117
|
-
declare const createStudioHandlers: () => StudioToolDefaults;
|
|
85
|
+
export declare const createStudioHandlers: () => StudioToolDefaults;
|
|
118
86
|
/**
|
|
119
87
|
* overrideStudioHandler replaces one entry in a handler map, given the entry it replaces.
|
|
120
88
|
*
|
|
@@ -131,37 +99,36 @@ declare const createStudioHandlers: () => StudioToolDefaults;
|
|
|
131
99
|
* @returns a new handler map; the one passed in is not edited, so overrides chain and the last
|
|
132
100
|
* one applied runs first.
|
|
133
101
|
*/
|
|
134
|
-
declare const overrideStudioHandler: <TName extends StudioToolName>(handlers: StudioToolDefaults, name: TName, replace: (current: StudioToolDefaults[TName]) => NonNullable<StudioToolDefaults[TName]>) => StudioToolDefaults;
|
|
135
|
-
|
|
102
|
+
export declare const overrideStudioHandler: <TName extends StudioToolName>(handlers: StudioToolDefaults, name: TName, replace: (current: StudioToolDefaults[TName]) => NonNullable<StudioToolDefaults[TName]>) => StudioToolDefaults;
|
|
136
103
|
/**
|
|
137
104
|
* StudioToolBusOptions are what a host states about the studio's bus, each one optional.
|
|
138
105
|
*/
|
|
139
106
|
interface StudioToolBusOptions {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
107
|
+
/**
|
|
108
|
+
* The handler map the bus registers. Spread {@link createStudioHandlers} and replace an entry
|
|
109
|
+
* to change one verb; a map that leaves a verb out leaves it unregistered.
|
|
110
|
+
*
|
|
111
|
+
* @default createStudioHandlers()
|
|
112
|
+
*/
|
|
113
|
+
readonly handlers?: StudioToolDefaults | undefined;
|
|
114
|
+
/**
|
|
115
|
+
* The model-facing catalogue a manifest describes each tool by. A host that runs a model
|
|
116
|
+
* passes `PLAYBOOK` of `@mountaya/studio/agent`; with none, each tool keeps its contract's
|
|
117
|
+
* description and is read as one that may mutate.
|
|
118
|
+
*/
|
|
119
|
+
readonly playbook?: ToolBusOptions["playbook"];
|
|
120
|
+
/**
|
|
121
|
+
* The host's own throw classifiers, asked after the studio's own
|
|
122
|
+
* ({@link STUDIO_HANDLER_RECOGNIZERS}), so a host's answer never shadows a throw the studio
|
|
123
|
+
* classifies.
|
|
124
|
+
*/
|
|
125
|
+
readonly recognizers?: readonly ThrownRecognizer[] | undefined;
|
|
126
|
+
/**
|
|
127
|
+
* The host's own vendor segments, reserved beside the studio's
|
|
128
|
+
* ({@link RESERVED_PLUGIN_NAMESPACES}), so `unregister` keeps a tool under one of them too.
|
|
129
|
+
* The studio's are reserved whatever this holds.
|
|
130
|
+
*/
|
|
131
|
+
readonly reserved?: readonly string[] | undefined;
|
|
165
132
|
}
|
|
166
133
|
/**
|
|
167
134
|
* createStudioToolBus builds the studio's bus in one call: typed by every studio verb's input
|
|
@@ -184,8 +151,7 @@ interface StudioToolBusOptions {
|
|
|
184
151
|
* const result = await bus.dispatch(context, "studio.alert.dismiss", {});
|
|
185
152
|
* ```
|
|
186
153
|
*/
|
|
187
|
-
declare const createStudioToolBus: (options?: StudioToolBusOptions) => ToolBus<StudioToolContext, StudioToolInputs, StudioToolOutputs>;
|
|
188
|
-
|
|
154
|
+
export declare const createStudioToolBus: (options?: StudioToolBusOptions) => ToolBus<StudioToolContext, StudioToolInputs, StudioToolOutputs>;
|
|
189
155
|
/**
|
|
190
156
|
* MAX_OPEN_COPILOT_TABS caps the co-pilot tabs open at once. The strip holds one conversation:
|
|
191
157
|
* `studio.tabs.create` answers `limit-reached` while one is open, and `studio.tabs.open`
|
|
@@ -195,8 +161,7 @@ declare const createStudioToolBus: (options?: StudioToolBusOptions) => ToolBus<S
|
|
|
195
161
|
* attacker-controllable and the provider mounts one live session, and one event stream, per
|
|
196
162
|
* entry, so the two gates read one number.
|
|
197
163
|
*/
|
|
198
|
-
declare const MAX_OPEN_COPILOT_TABS = 1;
|
|
199
|
-
|
|
164
|
+
export declare const MAX_OPEN_COPILOT_TABS = 1;
|
|
200
165
|
/**
|
|
201
166
|
* hasErrorCode asks whether a thrown API failure carries one stable machine-readable code.
|
|
202
167
|
*
|
|
@@ -208,8 +173,7 @@ declare const MAX_OPEN_COPILOT_TABS = 1;
|
|
|
208
173
|
* @param error - Whatever was thrown.
|
|
209
174
|
* @param code - The machine-readable code the envelope's entries are asked for.
|
|
210
175
|
*/
|
|
211
|
-
declare const hasErrorCode: (error: unknown, code: string) => boolean;
|
|
212
|
-
|
|
176
|
+
export declare const hasErrorCode: (error: unknown, code: string) => boolean;
|
|
213
177
|
/**
|
|
214
178
|
* isEditInProgressError reports whether a tool result is a one-edit-at-a-time
|
|
215
179
|
* rejection, so a human-driven dispatch site can decide to surface the shared
|
|
@@ -219,7 +183,7 @@ declare const hasErrorCode: (error: unknown, code: string) => boolean;
|
|
|
219
183
|
* build the refusal through {@link editInProgressError}, so the tag and the
|
|
220
184
|
* `create` kind are held there.
|
|
221
185
|
*/
|
|
222
|
-
declare const isEditInProgressError: (result: ToolResult) => boolean;
|
|
186
|
+
export declare const isEditInProgressError: (result: ToolResult) => boolean;
|
|
223
187
|
/**
|
|
224
188
|
* COLLAB_LOCKED_PREFIX tags the structured failure a lock-aware editBegin returns
|
|
225
189
|
* when a collaborator holds the entity's soft-lock. The peer holder id follows the
|
|
@@ -229,7 +193,7 @@ declare const isEditInProgressError: (result: ToolResult) => boolean;
|
|
|
229
193
|
* from EDIT_IN_PROGRESS_PREFIX: that is the LOCAL one-edit-at-a-time gate, this is a
|
|
230
194
|
* REMOTE peer holding the entity.
|
|
231
195
|
*/
|
|
232
|
-
declare const COLLAB_LOCKED_PREFIX = "collab-locked";
|
|
196
|
+
export declare const COLLAB_LOCKED_PREFIX = "collab-locked";
|
|
233
197
|
/**
|
|
234
198
|
* acquireCollabLock runs the two-stage soft-lock acquisition a lock-aware editBegin
|
|
235
199
|
* performs before arming its session: the fast LOCAL slice check (guardCollabLock)
|
|
@@ -259,7 +223,7 @@ declare const COLLAB_LOCKED_PREFIX = "collab-locked";
|
|
|
259
223
|
* @param kind - The entity's family, as the soft-lock keys it.
|
|
260
224
|
* @param id - The entity's id.
|
|
261
225
|
*/
|
|
262
|
-
declare const acquireCollabLock: (ctx: StudioToolContext, kind: CollabLockKind, id: string) => Promise<ToolFailure | null>;
|
|
226
|
+
export declare const acquireCollabLock: (ctx: StudioToolContext, kind: CollabLockKind, id: string) => Promise<ToolFailure | null>;
|
|
263
227
|
/**
|
|
264
228
|
* releaseCollabEntity tears the local user's collaboration hold on an entity down
|
|
265
229
|
* on commit or cancel: it clears the live draft (so a peer's ghost preview drops at
|
|
@@ -273,7 +237,7 @@ declare const acquireCollabLock: (ctx: StudioToolContext, kind: CollabLockKind,
|
|
|
273
237
|
* It returns a promise that settles once the release has, and never rejects. Every teardown
|
|
274
238
|
* fires and forgets it; a caller whose next request must find the lock given back awaits it.
|
|
275
239
|
*/
|
|
276
|
-
declare const releaseCollabEntity: (ctx: StudioToolContext, kind: CollabLockKind, id: string) => Promise<void>;
|
|
240
|
+
export declare const releaseCollabEntity: (ctx: StudioToolContext, kind: CollabLockKind, id: string) => Promise<void>;
|
|
277
241
|
/**
|
|
278
242
|
* teardownActiveEditSession discards whichever authoring session is armed and
|
|
279
243
|
* leaves the studio in the clean, no-edit state: the single navigate-away
|
|
@@ -303,7 +267,7 @@ declare const releaseCollabEntity: (ctx: StudioToolContext, kind: CollabLockKind
|
|
|
303
267
|
* It also disarms a split pick, which is a gesture on a segment of the itinerary being left, and
|
|
304
268
|
* lowers the hand-off a run named, with a session armed or none.
|
|
305
269
|
*/
|
|
306
|
-
declare const teardownActiveEditSession: (ctx: StudioToolContext) => void;
|
|
270
|
+
export declare const teardownActiveEditSession: (ctx: StudioToolContext) => void;
|
|
307
271
|
/**
|
|
308
272
|
* maybeResetCopilotOnSwitch resets the co-pilot when the studio opens a DIFFERENT
|
|
309
273
|
* editable resource (an itinerary or a zone). The co-pilot's threads live in the tab
|
|
@@ -318,8 +282,7 @@ declare const teardownActiveEditSession: (ctx: StudioToolContext) => void;
|
|
|
318
282
|
* @param previousId - The resource open before the switch, or null for none.
|
|
319
283
|
* @param nextId - The resource the switch opens, or null for none.
|
|
320
284
|
*/
|
|
321
|
-
declare const maybeResetCopilotOnSwitch: (ctx: StudioToolContext, previousId: string | null, nextId: string | null) => void;
|
|
322
|
-
|
|
285
|
+
export declare const maybeResetCopilotOnSwitch: (ctx: StudioToolContext, previousId: string | null, nextId: string | null) => void;
|
|
323
286
|
/**
|
|
324
287
|
* readShareLink reads the target's share link without setting one, and answers its token, or
|
|
325
288
|
* null where none is set. It is what a share surface asks when it opens, so opening one hands
|
|
@@ -341,8 +304,7 @@ declare const maybeResetCopilotOnSwitch: (ctx: StudioToolContext, previousId: st
|
|
|
341
304
|
* @param context The tool context whose api the link is read through.
|
|
342
305
|
* @param target The resource whose link is read.
|
|
343
306
|
*/
|
|
344
|
-
declare const readShareLink: ShareLinkRead;
|
|
345
|
-
|
|
307
|
+
export declare const readShareLink: ShareLinkRead;
|
|
346
308
|
/**
|
|
347
309
|
* videoDirectorRegistry is the camera-direction vocabulary the in-wizard AI
|
|
348
310
|
* director is scoped to: add/edit/remove a keyframe, add a hold beat, add an
|
|
@@ -363,13 +325,13 @@ declare const readShareLink: ShareLinkRead;
|
|
|
363
325
|
* nothing could check.
|
|
364
326
|
*/
|
|
365
327
|
declare const videoDirectorRegistry: StudioRegistry<StudioToolContext, {
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
328
|
+
readonly "studio.video.mode.set": StudioToolDefinition<"studio.video.mode.set">;
|
|
329
|
+
readonly "studio.video.orbit": StudioToolDefinition<"studio.video.orbit">;
|
|
330
|
+
readonly "studio.video.plan.get": StudioToolDefinition<"studio.video.plan.get">;
|
|
331
|
+
readonly "studio.video.shot.add": StudioToolDefinition<"studio.video.shot.add">;
|
|
332
|
+
readonly "studio.video.shot.addHold": StudioToolDefinition<"studio.video.shot.addHold">;
|
|
333
|
+
readonly "studio.video.shot.remove": StudioToolDefinition<"studio.video.shot.remove">;
|
|
334
|
+
readonly "studio.video.shot.set": StudioToolDefinition<"studio.video.shot.set">;
|
|
373
335
|
}>;
|
|
374
336
|
/**
|
|
375
337
|
* VideoDirectorToolInputs maps each director verb to the PRE-PARSE input the bus
|
|
@@ -379,9 +341,7 @@ declare const videoDirectorRegistry: StudioRegistry<StudioToolContext, {
|
|
|
379
341
|
* matching what the handler receives a parsed, defaulted value for. It is derived
|
|
380
342
|
* from {@link videoDirectorRegistry} so the map and the registry never drift.
|
|
381
343
|
*/
|
|
382
|
-
type VideoDirectorToolInputs = {
|
|
383
|
-
[K in keyof typeof videoDirectorRegistry]: z.input<(typeof videoDirectorRegistry)[K]["input"]>;
|
|
384
|
-
};
|
|
344
|
+
type VideoDirectorToolInputs = { [K in keyof typeof videoDirectorRegistry]: z.input<(typeof videoDirectorRegistry)[K]["input"]>; };
|
|
385
345
|
/**
|
|
386
346
|
* VideoDirectorToolOutputs maps each director verb to the `data` its answer holds: the studio's
|
|
387
347
|
* own answer for that verb, read off {@link StudioToolOutputs} by the registry's names.
|
|
@@ -418,8 +378,7 @@ type VideoDirectorToolBus = ToolBus<StudioToolContext, VideoDirectorToolInputs,
|
|
|
418
378
|
* the whole point of this seam, and the studio's own bus type would let a caller type-check
|
|
419
379
|
* a dispatch for a tool this bus never registered.
|
|
420
380
|
*/
|
|
421
|
-
declare const createVideoDirectorBus: () => VideoDirectorToolBus;
|
|
422
|
-
|
|
381
|
+
export declare const createVideoDirectorBus: () => VideoDirectorToolBus;
|
|
423
382
|
/**
|
|
424
383
|
* WaypointSeedStyle is the draft style a POI category contributes to a waypoint: the marker color
|
|
425
384
|
* always, and the marker icon only when the category's canonical glyph is one the waypoint catalog
|
|
@@ -427,8 +386,8 @@ declare const createVideoDirectorBus: () => VideoDirectorToolBus;
|
|
|
427
386
|
* name sprites like `plane`/ `mountain` the waypoint enum does not include.
|
|
428
387
|
*/
|
|
429
388
|
interface WaypointSeedStyle {
|
|
430
|
-
|
|
431
|
-
|
|
389
|
+
color: string;
|
|
390
|
+
icon: UserWaypointIcon | null;
|
|
432
391
|
}
|
|
433
392
|
/**
|
|
434
393
|
* poiCategoryWaypointStyle resolves the draft style a POI category seeds onto a
|
|
@@ -439,7 +398,6 @@ interface WaypointSeedStyle {
|
|
|
439
398
|
* (`studio.itinerary.waypoint.editSetPosition`) and the right-click "add POI to
|
|
440
399
|
* waypoints" action so both seed a captured POI identically.
|
|
441
400
|
*/
|
|
442
|
-
declare const poiCategoryWaypointStyle: (category: DataSchema.PoiCategory) => WaypointSeedStyle;
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
export type { StudioToolBusOptions, StudioToolDefaults, VideoDirectorToolBus, VideoDirectorToolInputs, VideoDirectorToolOutputs, WaypointSeedStyle };
|
|
401
|
+
export declare const poiCategoryWaypointStyle: (category: DataSchema.PoiCategory) => WaypointSeedStyle;
|
|
402
|
+
export { SEARCH_TAB_ID, type StudioToolBusOptions, type StudioToolDefaults, type VideoDirectorToolBus, type VideoDirectorToolInputs, type VideoDirectorToolOutputs, type WaypointSeedStyle };
|
|
403
|
+
//# sourceMappingURL=index.d.ts.map
|