@crowdedkingdoms/crowdyjs 15.12.1 → 16.0.0-dev.1
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/MIGRATION.md +55 -0
- package/README.md +67 -41
- package/dist/client.d.ts +1 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +3 -0
- package/dist/crowdy-client.d.ts +2 -3
- package/dist/crowdy-client.d.ts.map +1 -1
- package/dist/crowdy-client.js +9 -11
- package/dist/crowdy-dsh/bridge.d.ts +156 -0
- package/dist/crowdy-dsh/bridge.d.ts.map +1 -0
- package/dist/crowdy-dsh/bridge.js +523 -0
- package/dist/crowdy-dsh/index.d.ts +11 -0
- package/dist/crowdy-dsh/index.d.ts.map +1 -0
- package/dist/crowdy-dsh/index.js +10 -0
- package/dist/crowdy-dsh/pane.d.ts +64 -0
- package/dist/crowdy-dsh/pane.d.ts.map +1 -0
- package/dist/crowdy-dsh/pane.js +247 -0
- package/dist/crowdy-dsh/protocol.d.ts +249 -0
- package/dist/crowdy-dsh/protocol.d.ts.map +1 -0
- package/dist/crowdy-dsh/protocol.js +39 -0
- package/dist/crowdy-dsh/transport.d.ts +66 -0
- package/dist/crowdy-dsh/transport.d.ts.map +1 -0
- package/dist/crowdy-dsh/transport.js +88 -0
- package/dist/crowdy-studio/controller.d.ts +8 -0
- package/dist/crowdy-studio/controller.d.ts.map +1 -1
- package/dist/crowdy-studio/controller.js +33 -1
- package/dist/crowdy-studio/dom-shell.d.ts +21 -4
- package/dist/crowdy-studio/dom-shell.d.ts.map +1 -1
- package/dist/crowdy-studio/dom-shell.js +32 -17
- package/dist/crowdy-studio/embed/index.d.ts +1 -1
- package/dist/crowdy-studio/embed/index.d.ts.map +1 -1
- package/dist/crowdy-studio/embed/panel.d.ts +18 -18
- package/dist/crowdy-studio/embed/panel.d.ts.map +1 -1
- package/dist/crowdy-studio/embed/panel.js +7 -21
- package/dist/crowdy-studio/index.d.ts +2 -3
- package/dist/crowdy-studio/index.d.ts.map +1 -1
- package/dist/crowdy-studio/index.js +1 -2
- package/dist/crowdy-studio/mount.d.ts +29 -14
- package/dist/crowdy-studio/mount.d.ts.map +1 -1
- package/dist/crowdy-studio/mount.js +39 -126
- package/dist/crowdy-studio/styles.d.ts +1 -1
- package/dist/crowdy-studio/styles.d.ts.map +1 -1
- package/dist/crowdy-studio/styles.js +5 -0
- package/dist/default-origin.d.ts +6 -6
- package/dist/default-origin.d.ts.map +1 -1
- package/dist/default-origin.js +6 -6
- package/dist/generated/graphql.d.ts +76 -2438
- package/dist/generated/graphql.d.ts.map +1 -1
- package/dist/generated/graphql.js +0 -50
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/kit/npcs.d.ts.map +1 -1
- package/dist/kit/social.d.ts.map +1 -1
- package/dist/{crowdy-agent/errors.d.ts → player-host/agent-errors.d.ts} +1 -1
- package/dist/player-host/agent-errors.d.ts.map +1 -0
- package/dist/player-host/agent-types.d.ts +18 -0
- package/dist/player-host/agent-types.d.ts.map +1 -0
- package/dist/player-host/agent-types.js +7 -0
- package/dist/player-host/index.d.ts +12 -4
- package/dist/player-host/index.d.ts.map +1 -1
- package/dist/player-host/index.js +11 -4
- package/dist/{crowdy-agent/schema.d.ts → player-host/json-schema.d.ts} +1 -1
- package/dist/player-host/json-schema.d.ts.map +1 -0
- package/dist/{crowdy-agent/schema.js → player-host/json-schema.js} +1 -1
- package/dist/player-host/schemas.d.ts +1 -1
- package/dist/player-host/schemas.d.ts.map +1 -1
- package/dist/player-host/schemas.js +2 -2
- package/dist/player-host/types.d.ts +2 -2
- package/dist/player-host/types.d.ts.map +1 -1
- package/package.json +5 -7
- package/dist/crowdy-agent/browser-dispatcher.d.ts +0 -41
- package/dist/crowdy-agent/browser-dispatcher.d.ts.map +0 -1
- package/dist/crowdy-agent/browser-dispatcher.js +0 -264
- package/dist/crowdy-agent/controller.d.ts +0 -152
- package/dist/crowdy-agent/controller.d.ts.map +0 -1
- package/dist/crowdy-agent/controller.js +0 -1289
- package/dist/crowdy-agent/errors.d.ts.map +0 -1
- package/dist/crowdy-agent/graphql-transport.d.ts +0 -154
- package/dist/crowdy-agent/graphql-transport.d.ts.map +0 -1
- package/dist/crowdy-agent/graphql-transport.js +0 -854
- package/dist/crowdy-agent/index.d.ts +0 -17
- package/dist/crowdy-agent/index.d.ts.map +0 -1
- package/dist/crowdy-agent/index.js +0 -16
- package/dist/crowdy-agent/registry.d.ts +0 -29
- package/dist/crowdy-agent/registry.d.ts.map +0 -1
- package/dist/crowdy-agent/registry.js +0 -281
- package/dist/crowdy-agent/schema.d.ts.map +0 -1
- package/dist/crowdy-agent/session-resume.d.ts +0 -24
- package/dist/crowdy-agent/session-resume.d.ts.map +0 -1
- package/dist/crowdy-agent/session-resume.js +0 -76
- package/dist/crowdy-agent/studio-tools.d.ts +0 -15
- package/dist/crowdy-agent/studio-tools.d.ts.map +0 -1
- package/dist/crowdy-agent/studio-tools.js +0 -280
- package/dist/crowdy-agent/tool-descriptors.d.ts +0 -4
- package/dist/crowdy-agent/tool-descriptors.d.ts.map +0 -1
- package/dist/crowdy-agent/tool-descriptors.js +0 -1049
- package/dist/crowdy-agent/transport.d.ts +0 -152
- package/dist/crowdy-agent/transport.d.ts.map +0 -1
- package/dist/crowdy-agent/transport.js +0 -27
- package/dist/crowdy-agent/types.d.ts +0 -328
- package/dist/crowdy-agent/types.d.ts.map +0 -1
- package/dist/crowdy-agent/types.js +0 -37
- package/dist/crowdy-studio/agent-dom-shell.d.ts +0 -68
- package/dist/crowdy-studio/agent-dom-shell.d.ts.map +0 -1
- package/dist/crowdy-studio/agent-dom-shell.js +0 -418
- package/dist/player-host/control-banner.d.ts +0 -40
- package/dist/player-host/control-banner.d.ts.map +0 -1
- package/dist/player-host/control-banner.js +0 -252
- package/dist/player-host/control-gate.d.ts +0 -77
- package/dist/player-host/control-gate.d.ts.map +0 -1
- package/dist/player-host/control-gate.js +0 -197
- package/dist/player-host/lease-manager.d.ts +0 -66
- package/dist/player-host/lease-manager.d.ts.map +0 -1
- package/dist/player-host/lease-manager.js +0 -428
- package/dist/player-host/tools.d.ts +0 -13
- package/dist/player-host/tools.d.ts.map +0 -1
- package/dist/player-host/tools.js +0 -79
- /package/dist/{crowdy-agent/errors.js → player-host/agent-errors.js} +0 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The game-API surface the Studio agent pane needs beyond project files:
|
|
3
|
+
* the provider-data consent, the player's own model usage, and the list of
|
|
4
|
+
* models the metered endpoint will serve for this app.
|
|
5
|
+
*
|
|
6
|
+
* Every call carries the app-scoped token the game already holds; there is no
|
|
7
|
+
* second credential. The model list is REST (`GET /v1/model/models`, the
|
|
8
|
+
* OpenAI shape the harness reads) and the rest is GraphQL.
|
|
9
|
+
*/
|
|
10
|
+
const CONSENT = `
|
|
11
|
+
query CrowdyStudioProviderConsent($appId: BigInt!) {
|
|
12
|
+
crowdyStudioProviderConsent(appId: $appId) { appId consented consentedAt }
|
|
13
|
+
}
|
|
14
|
+
`;
|
|
15
|
+
const SET_CONSENT = `
|
|
16
|
+
mutation CrowdyStudioSetProviderConsent($input: SetCrowdyStudioProviderConsentInput!) {
|
|
17
|
+
crowdyStudioSetProviderConsent(input: $input) { appId consented consentedAt }
|
|
18
|
+
}
|
|
19
|
+
`;
|
|
20
|
+
const USAGE = `
|
|
21
|
+
query CrowdyStudioModelUsage($appId: BigInt!, $limit: Int) {
|
|
22
|
+
crowdyStudioModelUsage(appId: $appId, limit: $limit) {
|
|
23
|
+
appId payerKind todayRequests todayChargeMicrousd dayLimitMicrousd
|
|
24
|
+
recent { usageId payerKind status requestedModel resolvedModel promptTokens completionTokens reasoningTokens chargeMicrousd occurredAt client }
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
`;
|
|
28
|
+
export class CrowdyStudioDshTransport {
|
|
29
|
+
constructor(graphql, options) {
|
|
30
|
+
this.graphql = graphql;
|
|
31
|
+
this.options = options;
|
|
32
|
+
}
|
|
33
|
+
/** Base URL the harness posts completions to (`<origin>/v1/model`). */
|
|
34
|
+
get modelBaseUrl() {
|
|
35
|
+
return `${this.options.apiOrigin.replace(/\/+$/, '')}/v1/model`;
|
|
36
|
+
}
|
|
37
|
+
async consent(appId) {
|
|
38
|
+
const data = await this.graphql.query(CONSENT, {
|
|
39
|
+
appId,
|
|
40
|
+
});
|
|
41
|
+
return data.crowdyStudioProviderConsent;
|
|
42
|
+
}
|
|
43
|
+
async setConsent(appId, consented) {
|
|
44
|
+
const data = await this.graphql.query(SET_CONSENT, { input: { appId, consented } });
|
|
45
|
+
return data.crowdyStudioSetProviderConsent;
|
|
46
|
+
}
|
|
47
|
+
async usage(appId, limit = 20) {
|
|
48
|
+
const data = await this.graphql.query(USAGE, {
|
|
49
|
+
appId,
|
|
50
|
+
limit,
|
|
51
|
+
});
|
|
52
|
+
return data.crowdyStudioModelUsage;
|
|
53
|
+
}
|
|
54
|
+
/** Models the metered endpoint offers this caller; empty when the agent is disabled for the app. */
|
|
55
|
+
async models(appId) {
|
|
56
|
+
const token = this.options.getToken();
|
|
57
|
+
if (!token)
|
|
58
|
+
throw new Error('No app token; sign in before opening the agent');
|
|
59
|
+
const response = await fetch(`${this.modelBaseUrl}/models?appId=${encodeURIComponent(appId)}`, {
|
|
60
|
+
headers: { Authorization: `Bearer ${token}`, Accept: 'application/json' },
|
|
61
|
+
});
|
|
62
|
+
if (!response.ok) {
|
|
63
|
+
let message = `HTTP ${response.status}`;
|
|
64
|
+
try {
|
|
65
|
+
const body = (await response.json());
|
|
66
|
+
if (body.error?.message)
|
|
67
|
+
message = `${body.error.code ?? 'ERROR'}: ${body.error.message}`;
|
|
68
|
+
}
|
|
69
|
+
catch {
|
|
70
|
+
// keep the status
|
|
71
|
+
}
|
|
72
|
+
throw new Error(`Model catalog unavailable (${message})`);
|
|
73
|
+
}
|
|
74
|
+
const body = (await response.json());
|
|
75
|
+
return (body.data ?? []).map((model) => ({
|
|
76
|
+
id: model.id,
|
|
77
|
+
name: model.name ?? model.id,
|
|
78
|
+
contextWindow: model.context_window ?? null,
|
|
79
|
+
inputModalities: model.input_modalities ?? ['text'],
|
|
80
|
+
pricingMicrousdPerMillion: {
|
|
81
|
+
input: model.pricing_microusd_per_million?.input ?? 0,
|
|
82
|
+
output: model.pricing_microusd_per_million?.output ?? 0,
|
|
83
|
+
reasoning: model.pricing_microusd_per_million?.reasoning ?? 0,
|
|
84
|
+
cachedInput: model.pricing_microusd_per_million?.cached_input ?? 0,
|
|
85
|
+
},
|
|
86
|
+
}));
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -200,6 +200,14 @@ export declare class CrowdyStudioController {
|
|
|
200
200
|
initialize(): Promise<void>;
|
|
201
201
|
createProject(options: Omit<CrowdyStudioNewProjectOptions, 'appId' | 'gridId'>): Promise<CrowdyStudioProject>;
|
|
202
202
|
switchProject(projectId: string): Promise<void>;
|
|
203
|
+
/**
|
|
204
|
+
* Re-fetch the open project after another writer changed it (the Studio
|
|
205
|
+
* agent writes through the game API, not through this editor). Open files
|
|
206
|
+
* and the active file survive when their paths still exist. Refused while
|
|
207
|
+
* local edits are unsaved: the human's keystrokes win over a reload, and the
|
|
208
|
+
* ordinary conflict recovery reconciles on the next save.
|
|
209
|
+
*/
|
|
210
|
+
reloadProject(): Promise<void>;
|
|
203
211
|
private loadProject;
|
|
204
212
|
private installProject;
|
|
205
213
|
openFile(ref: CrowdyStudioFileRef): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../src/crowdy-studio/controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EAC1B,MAAM,yCAAyC,CAAC;AACjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAKlE,O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time/player-code-broker.js';
|
|
2
|
-
import { digestCanonicalJson, sha256Digest, } from '../
|
|
2
|
+
import { digestCanonicalJson, sha256Digest, } from '../player-host/json-schema.js';
|
|
3
3
|
import { parseRustcDiagnostics } from './diagnostics.js';
|
|
4
4
|
import { mergeStudioFilesFromGitHub, pullStudioFilesFromGitHub, pushStudioFilesToGitHub, } from './github/sync.js';
|
|
5
5
|
import { cloneCrowdyStudioProject, crowdyStudioFileKey, normalizeCrowdyStudioPath, projectTargets, CrowdyStudioOfflineError, CrowdyStudioRevisionConflictError, } from './models.js';
|
|
@@ -205,6 +205,38 @@ export class CrowdyStudioController {
|
|
|
205
205
|
}
|
|
206
206
|
await this.loadProject(projectId);
|
|
207
207
|
}
|
|
208
|
+
/**
|
|
209
|
+
* Re-fetch the open project after another writer changed it (the Studio
|
|
210
|
+
* agent writes through the game API, not through this editor). Open files
|
|
211
|
+
* and the active file survive when their paths still exist. Refused while
|
|
212
|
+
* local edits are unsaved: the human's keystrokes win over a reload, and the
|
|
213
|
+
* ordinary conflict recovery reconciles on the next save.
|
|
214
|
+
*/
|
|
215
|
+
async reloadProject() {
|
|
216
|
+
this.ensureAlive();
|
|
217
|
+
const current = this.state.project;
|
|
218
|
+
if (!current)
|
|
219
|
+
return;
|
|
220
|
+
if (this.state.saveState !== 'SAVED') {
|
|
221
|
+
throw new Error('Unsaved local edits; the reload waits for the next save');
|
|
222
|
+
}
|
|
223
|
+
const project = await this.options.projectProvider.getProject({
|
|
224
|
+
...this.scope(),
|
|
225
|
+
projectId: current.projectId,
|
|
226
|
+
});
|
|
227
|
+
const openFiles = this.state.openFiles;
|
|
228
|
+
const activeFile = this.state.activeFile;
|
|
229
|
+
this.installProject(project);
|
|
230
|
+
const stillThere = (ref) => ref.source !== 'PROJECT' ||
|
|
231
|
+
project.files.some((file) => file.target === ref.target && file.path === ref.path);
|
|
232
|
+
const keptOpen = openFiles.filter(stillThere);
|
|
233
|
+
if (keptOpen.length > 0) {
|
|
234
|
+
this.update({
|
|
235
|
+
openFiles: keptOpen,
|
|
236
|
+
activeFile: activeFile && stillThere(activeFile) ? activeFile : keptOpen[0],
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
}
|
|
208
240
|
async loadProject(projectId) {
|
|
209
241
|
const project = await this.options.projectProvider.getProject({
|
|
210
242
|
...this.scope(),
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type CrowdyStudioController, type CrowdyStudioState } from './controller.js';
|
|
2
|
-
import type {
|
|
3
|
-
import { type CrowdyStudioAgentDomShellOptions } from './agent-dom-shell.js';
|
|
2
|
+
import type { CrowdyStudioDiagnostic } from './diagnostics.js';
|
|
4
3
|
import { StudioLayoutController } from './layout.js';
|
|
5
4
|
/**
|
|
6
5
|
* Modular DOM shell; editor implementations mount into `editorHost`.
|
|
@@ -10,8 +9,25 @@ import { StudioLayoutController } from './layout.js';
|
|
|
10
9
|
* activity rail, resized with accessible splitters, and persisted through
|
|
11
10
|
* {@link StudioLayoutController}.
|
|
12
11
|
*/
|
|
12
|
+
/**
|
|
13
|
+
* A pane docked to the right of the editor (the Studio agent). The shell owns
|
|
14
|
+
* the rail button, the splitter and visibility; the pane owns its content.
|
|
15
|
+
*/
|
|
16
|
+
export interface StudioDockPane {
|
|
17
|
+
readonly root: HTMLElement;
|
|
18
|
+
/** Called when the pane first becomes visible. */
|
|
19
|
+
start?(): Promise<void> | void;
|
|
20
|
+
dispose(): void;
|
|
21
|
+
}
|
|
22
|
+
export interface CrowdyStudioDomShellOptions {
|
|
23
|
+
/** Build the dock pane inside the workspace element; omit for no dock. */
|
|
24
|
+
dock?: (workspace: HTMLElement) => StudioDockPane;
|
|
25
|
+
/** Show a "Fix with AI" action on each problem and route it here. */
|
|
26
|
+
onFixWithAi?: (diagnostic: CrowdyStudioDiagnostic) => void;
|
|
27
|
+
}
|
|
13
28
|
export declare class CrowdyStudioDomShell {
|
|
14
29
|
private readonly controller;
|
|
30
|
+
private readonly shellOptions;
|
|
15
31
|
readonly root: HTMLElement;
|
|
16
32
|
readonly editorHost: HTMLElement;
|
|
17
33
|
readonly layout: StudioLayoutController;
|
|
@@ -66,14 +82,15 @@ export declare class CrowdyStudioDomShell {
|
|
|
66
82
|
private readonly panels;
|
|
67
83
|
private readonly railButtons;
|
|
68
84
|
private readonly splitters;
|
|
69
|
-
private readonly
|
|
85
|
+
private readonly dock;
|
|
86
|
+
private dockStarted;
|
|
70
87
|
private readonly unsubscribeLayout;
|
|
71
88
|
private activePanel;
|
|
72
89
|
private explorerForm;
|
|
73
90
|
private lastState;
|
|
74
91
|
private lastPhase;
|
|
75
92
|
private disposed;
|
|
76
|
-
constructor(host: HTMLElement, controller: CrowdyStudioController,
|
|
93
|
+
constructor(host: HTMLElement, controller: CrowdyStudioController, shellOptions?: CrowdyStudioDomShellOptions);
|
|
77
94
|
render(state: CrowdyStudioState): void;
|
|
78
95
|
dispose(): void;
|
|
79
96
|
private railButton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dom-shell.d.ts","sourceRoot":"","sources":["../../src/crowdy-studio/dom-shell.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACvB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"dom-shell.d.ts","sourceRoot":"","sources":["../../src/crowdy-studio/dom-shell.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACvB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EACL,sBAAsB,EAIvB,MAAM,aAAa,CAAC;AAuCrB;;;;;;;GAOG;AACH;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,kDAAkD;IAClD,KAAK,CAAC,IAAI,OAAO,CAAC,I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gBAAgB;IA4DxB,OAAO,CAAC,UAAU;IA4ClB,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,UAAU;IAwBlB,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,YAAY;IA6BpB,OAAO,CAAC,cAAc;IAgCtB,OAAO,CAAC,cAAc;IAqDtB,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,iBAAiB;YAgBX,GAAG;CAQlB"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { CrowdyStudioAgentDomShell, } from './agent-dom-shell.js';
|
|
2
1
|
import { StudioLayoutController, studioPaneSizeRange, } from './layout.js';
|
|
3
2
|
import { createPaneSplitter } from './splitter.js';
|
|
4
3
|
import { projectTargets, } from './models.js';
|
|
@@ -8,21 +7,15 @@ const FAILURE_PHASES = new Set([
|
|
|
8
7
|
'ERROR',
|
|
9
8
|
'PARTIAL_FAILURE',
|
|
10
9
|
]);
|
|
11
|
-
/**
|
|
12
|
-
* Modular DOM shell; editor implementations mount into `editorHost`.
|
|
13
|
-
*
|
|
14
|
-
* Layout is user directed: the editor is always visible while the explorer,
|
|
15
|
-
* project settings, bottom panel, and agent dock are toggled from the
|
|
16
|
-
* activity rail, resized with accessible splitters, and persisted through
|
|
17
|
-
* {@link StudioLayoutController}.
|
|
18
|
-
*/
|
|
19
10
|
export class CrowdyStudioDomShell {
|
|
20
|
-
constructor(host, controller,
|
|
11
|
+
constructor(host, controller, shellOptions = {}) {
|
|
21
12
|
this.controller = controller;
|
|
13
|
+
this.shellOptions = shellOptions;
|
|
22
14
|
this.panelButtons = new Map();
|
|
23
15
|
this.panels = new Map();
|
|
24
16
|
this.railButtons = new Map();
|
|
25
17
|
this.splitters = new Map();
|
|
18
|
+
this.dockStarted = false;
|
|
26
19
|
this.activePanel = 'problems';
|
|
27
20
|
this.explorerForm = null;
|
|
28
21
|
this.lastState = null;
|
|
@@ -203,14 +196,14 @@ export class CrowdyStudioDomShell {
|
|
|
203
196
|
this.root.append(toolbar, this.workspace, statusbar);
|
|
204
197
|
host.appendChild(this.root);
|
|
205
198
|
// ----- Agent dock ----------------------------------------------------
|
|
206
|
-
if (
|
|
207
|
-
rail.append(this.railButton('agent', 'Agent', 'Show or hide the
|
|
208
|
-
this.workspace.append(this.paneSplitter('agent', 'vertical', 'after', 'Resize the agent
|
|
209
|
-
this.
|
|
199
|
+
if (shellOptions.dock) {
|
|
200
|
+
rail.append(this.railButton('agent', 'Agent', 'Show or hide the Studio agent'));
|
|
201
|
+
this.workspace.append(this.paneSplitter('agent', 'vertical', 'after', 'Resize the agent pane'));
|
|
202
|
+
this.dock = shellOptions.dock(this.workspace);
|
|
210
203
|
this.root.dataset.agent = 'true';
|
|
211
204
|
}
|
|
212
205
|
else {
|
|
213
|
-
this.
|
|
206
|
+
this.dock = null;
|
|
214
207
|
}
|
|
215
208
|
// ----- Wiring ---------------------------------------------------------
|
|
216
209
|
this.newForm.addEventListener('submit', (event) => {
|
|
@@ -322,7 +315,7 @@ export class CrowdyStudioDomShell {
|
|
|
322
315
|
this.projectMenu.dispose();
|
|
323
316
|
this.saveMenu.dispose();
|
|
324
317
|
this.runMenu.dispose();
|
|
325
|
-
this.
|
|
318
|
+
this.dock?.dispose();
|
|
326
319
|
this.root.remove();
|
|
327
320
|
}
|
|
328
321
|
// ----- Layout ----------------------------------------------------------
|
|
@@ -385,8 +378,14 @@ export class CrowdyStudioDomShell {
|
|
|
385
378
|
explorer: this.explorer,
|
|
386
379
|
settings: this.settings,
|
|
387
380
|
bottom: this.bottom,
|
|
388
|
-
agent: this.
|
|
381
|
+
agent: this.dock?.root ?? null,
|
|
389
382
|
};
|
|
383
|
+
if (this.dock && state.visible.agent && !this.dockStarted) {
|
|
384
|
+
this.dockStarted = true;
|
|
385
|
+
void Promise.resolve(this.dock.start?.()).catch((error) => {
|
|
386
|
+
console.warn('Crowdy Studio agent pane failed to start', error);
|
|
387
|
+
});
|
|
388
|
+
}
|
|
390
389
|
for (const pane of ['explorer', 'settings', 'bottom', 'agent']) {
|
|
391
390
|
const paneElement = paneElements[pane];
|
|
392
391
|
const visible = state.visible[pane] && paneElement !== null;
|
|
@@ -910,6 +909,22 @@ export class CrowdyStudioDomShell {
|
|
|
910
909
|
target: diagnostic.target,
|
|
911
910
|
path: diagnostic.path,
|
|
912
911
|
}));
|
|
912
|
+
const fix = this.shellOptions.onFixWithAi;
|
|
913
|
+
if (fix) {
|
|
914
|
+
const wrapper = element('div', 'ck-crowdy-studio-problem-row');
|
|
915
|
+
const fixButton = element('button', 'ck-crowdy-studio-problem-fix');
|
|
916
|
+
fixButton.type = 'button';
|
|
917
|
+
fixButton.textContent = 'Fix with AI';
|
|
918
|
+
fixButton.title = 'Ask the Studio agent to fix this problem';
|
|
919
|
+
fixButton.addEventListener('click', (event) => {
|
|
920
|
+
event.stopPropagation();
|
|
921
|
+
this.layout.setVisible('agent', true);
|
|
922
|
+
fix(diagnostic);
|
|
923
|
+
});
|
|
924
|
+
wrapper.append(row, fixButton);
|
|
925
|
+
this.problemsPanel.append(wrapper);
|
|
926
|
+
continue;
|
|
927
|
+
}
|
|
913
928
|
this.problemsPanel.append(row);
|
|
914
929
|
}
|
|
915
930
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { CROWDY_STUDIO_EMBED_DEFAULT_DOCK_RATIO, CROWDY_STUDIO_EMBED_DOCK_WIDTH_STORAGE_KEY, CROWDY_STUDIO_EMBED_MIN_DOCK_WIDTH_PX, CROWDY_STUDIO_EMBED_MIN_GAME_WIDTH_PX, CROWDY_STUDIO_EMBED_NARROW_BREAKPOINT_PX, CROWDY_STUDIO_EMBED_SPLITTER_WIDTH_PX, CrowdyStudioEmbedDock, clampCrowdyStudioEmbedDockWidth, crowdyStudioEmbedDockWidthRange, type CrowdyStudioEmbedDockStorage, type CrowdyStudioEmbedDockWidthRange, } from './dock.js';
|
|
2
2
|
export { CROWDY_STUDIO_EMBED_STYLES, ensureCrowdyStudioEmbedStyles, } from './embed-styles.js';
|
|
3
3
|
export { CrowdyStudioTextHud, type CrowdyStudioHudEntry, } from './hud-layer.js';
|
|
4
|
-
export { CrowdyStudioEmbed, createCrowdyStudioEmbed, type
|
|
4
|
+
export { CrowdyStudioEmbed, createCrowdyStudioEmbed, type CrowdyStudioEmbedDshOptions, type CrowdyStudioEmbedContext, type CrowdyStudioEmbedDisplayMode, type CrowdyStudioEmbedHandle, type CrowdyStudioEmbedOptions, type CrowdyStudioEmbedServices, type CrowdyStudioEmbedTargetPermission, type CrowdyStudioEmbedTargetPermissions, } from './panel.js';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/crowdy-studio/embed/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sCAAsC,EACtC,0CAA0C,EAC1C,qCAAqC,EACrC,qCAAqC,EACrC,wCAAwC,EACxC,qCAAqC,EACrC,qBAAqB,EACrB,+BAA+B,EAC/B,+BAA+B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,+BAA+B,GACrC,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,0BAA0B,EAC1B,6BAA6B,GAC9B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,mBAAmB,EACnB,KAAK,oBAAoB,GAC1B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/crowdy-studio/embed/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sCAAsC,EACtC,0CAA0C,EAC1C,qCAAqC,EACrC,qCAAqC,EACrC,wCAAwC,EACxC,qCAAqC,EACrC,qBAAqB,EACrB,+BAA+B,EAC/B,+BAA+B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,+BAA+B,GACrC,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,0BAA0B,EAC1B,6BAA6B,GAC9B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,mBAAmB,EACnB,KAAK,oBAAoB,GAC1B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,GACxC,MAAM,YAAY,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { type MountCrowdyStudioOptions } from '../mount.js';
|
|
1
|
+
import { type MountCrowdyStudioDshOptions, type MountCrowdyStudioOptions } from '../mount.js';
|
|
2
|
+
import type { CrowdyStudioDshPane } from '../../crowdy-dsh/pane.js';
|
|
3
|
+
import type { CrowdyStudioDshHost } from '../../crowdy-dsh/bridge.js';
|
|
2
4
|
import type { CrowdyStudioController, CrowdyStudioPlayerCompute, CrowdyStudioPlayerWallet } from '../controller.js';
|
|
3
5
|
import type { CrowdyStudioProjectProvider } from '../models.js';
|
|
4
6
|
import type { CrowdyStudioGitHubTransport } from '../github/transport.js';
|
|
5
|
-
import type {
|
|
6
|
-
import type { AgentControlLeaseManager, AgentControlLeaseManagerOptionsV1, PlayerHostAdapterV1 } from '../../player-host/index.js';
|
|
7
|
+
import type { PlayerHostAdapterV1 } from '../../player-host/index.js';
|
|
7
8
|
import type { PlayerCodeGridBounds, PlayerCodeHostCall, PlayerCodePresentation } from '../../player-runtime/player-code-broker.js';
|
|
8
9
|
import { type CrowdyStudioEmbedDockStorage } from './dock.js';
|
|
9
10
|
import type { CrowdyStudioTextHud } from './hud-layer.js';
|
|
@@ -16,8 +17,6 @@ export interface CrowdyStudioEmbedServices {
|
|
|
16
17
|
crowdyStudio: CrowdyStudioProjectProvider;
|
|
17
18
|
playerCompute: CrowdyStudioPlayerCompute;
|
|
18
19
|
playerWallet?: CrowdyStudioPlayerWallet;
|
|
19
|
-
/** Production agent transport; omission keeps the agent fail-closed/hidden. */
|
|
20
|
-
crowdyStudioAgent?: CrowdyStudioAgentTransportV1;
|
|
21
20
|
/** GitHub repository loop; omission hides the card. `CrowdyClient` provides it. */
|
|
22
21
|
crowdyStudioGitHub?: CrowdyStudioGitHubTransport;
|
|
23
22
|
}
|
|
@@ -32,16 +31,16 @@ export interface CrowdyStudioEmbedTargetPermissions {
|
|
|
32
31
|
export interface CrowdyStudioEmbedHandle {
|
|
33
32
|
readonly api: 'crowdy-studio';
|
|
34
33
|
readonly controller: CrowdyStudioController;
|
|
35
|
-
|
|
36
|
-
readonly
|
|
34
|
+
/** The Studio agent pane, when the game configured `dsh`. */
|
|
35
|
+
readonly dsh: CrowdyStudioDshPane | null;
|
|
37
36
|
destroy(): void;
|
|
38
37
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
/**
|
|
39
|
+
* Game-lifetime agent configuration. The per-open pieces (the game's capture
|
|
40
|
+
* and observation hooks) come from {@link CrowdyStudioEmbedContext.playerHost}
|
|
41
|
+
* and {@link CrowdyStudioEmbedContext.dshHost}.
|
|
42
|
+
*/
|
|
43
|
+
export type CrowdyStudioEmbedDshOptions = Omit<MountCrowdyStudioDshOptions, 'host'>;
|
|
45
44
|
/** Static, game-lifetime configuration for the embed shell. */
|
|
46
45
|
export interface CrowdyStudioEmbedOptions {
|
|
47
46
|
client: CrowdyStudioEmbedServices;
|
|
@@ -56,9 +55,8 @@ export interface CrowdyStudioEmbedOptions {
|
|
|
56
55
|
* key entirely. Escape always closes.
|
|
57
56
|
*/
|
|
58
57
|
closeKeyCode?: string | null;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
onLocalPreempt?(reason: CrowdyAgentPreemptionReason): void;
|
|
58
|
+
/** Studio agent pane (DeepSeek Harness in the browser); omission hides it. */
|
|
59
|
+
dsh?: CrowdyStudioEmbedDshOptions;
|
|
62
60
|
/**
|
|
63
61
|
* Suppress gameplay input and return a restoration callback. Used only by
|
|
64
62
|
* the narrow-screen modal; the desktop dock remains non-modal.
|
|
@@ -66,6 +64,7 @@ export interface CrowdyStudioEmbedOptions {
|
|
|
66
64
|
suppressGameplayInput?(): () => void;
|
|
67
65
|
/** Re-measure the game canvas and HUD after dock geometry changes. */
|
|
68
66
|
onLayoutChange?(): void;
|
|
67
|
+
/** Called after the studio mounted (the agent pane, if any, starts on first open). */
|
|
69
68
|
onAgentMounted?(handle: CrowdyStudioEmbedHandle): void;
|
|
70
69
|
onAgentUnavailable?(message: string): void;
|
|
71
70
|
onAgentUnmounted?(): void;
|
|
@@ -91,8 +90,10 @@ export interface CrowdyStudioEmbedContext {
|
|
|
91
90
|
hud?: CrowdyStudioTextHud;
|
|
92
91
|
/** Custom presentation routing; defaults to `hud` when omitted. */
|
|
93
92
|
onPresentation?(presentation: PlayerCodePresentation): void;
|
|
94
|
-
/** Game
|
|
93
|
+
/** Game observation adapter for the agent's `game_observe`. */
|
|
95
94
|
playerHost?: PlayerHostAdapterV1;
|
|
95
|
+
/** Screenshot / client-log hooks for the agent; `playerHost` is merged in. */
|
|
96
|
+
dshHost?: Omit<CrowdyStudioDshHost, 'playerHost'>;
|
|
96
97
|
}
|
|
97
98
|
/**
|
|
98
99
|
* Responsive game shell around CrowdyJS's project-first Crowdy Studio.
|
|
@@ -139,7 +140,6 @@ export declare class CrowdyStudioEmbed {
|
|
|
139
140
|
/** Assemble mount options from the game client + per-open context. */
|
|
140
141
|
private mountSdkStudio;
|
|
141
142
|
private currentAppId;
|
|
142
|
-
private agentIdempotencyKey;
|
|
143
143
|
private presentationSource;
|
|
144
144
|
private accessibleDescription;
|
|
145
145
|
private shortcutHint;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../../src/crowdy-studio/embed/panel.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,wBAAwB,EA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@ export class CrowdyStudioEmbed {
|
|
|
371
371
|
targetPermissions: context.targetPermissions,
|
|
372
372
|
onHostCall: context.onHostCall,
|
|
373
373
|
onPresentation,
|
|
374
|
-
...(
|
|
374
|
+
...(this.options.dsh
|
|
375
375
|
? {
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
mode: this.options.agentSession?.mode ?? 'ASK',
|
|
382
|
-
providerDataConsent: this.options.agentSession?.providerDataConsent ?? false,
|
|
383
|
-
idempotencyKey: this.agentIdempotencyKey(),
|
|
376
|
+
dsh: {
|
|
377
|
+
...this.options.dsh,
|
|
378
|
+
host: {
|
|
379
|
+
...context.dshHost,
|
|
380
|
+
...(context.playerHost ? { playerHost: context.playerHost } : {}),
|
|
384
381
|
},
|
|
385
|
-
playerHost: context.playerHost,
|
|
386
|
-
controlGate: this.options.controlGate,
|
|
387
|
-
onLocalPreempt: this.options.onLocalPreempt,
|
|
388
382
|
},
|
|
389
383
|
}
|
|
390
384
|
: {}),
|
|
@@ -395,8 +389,7 @@ export class CrowdyStudioEmbed {
|
|
|
395
389
|
return {
|
|
396
390
|
api: 'crowdy-studio',
|
|
397
391
|
controller: handle.controller,
|
|
398
|
-
|
|
399
|
-
controlLeaseManager: handle.controlLeaseManager,
|
|
392
|
+
dsh: handle.dsh,
|
|
400
393
|
destroy: () => {
|
|
401
394
|
if (destroyed)
|
|
402
395
|
return;
|
|
@@ -409,13 +402,6 @@ export class CrowdyStudioEmbed {
|
|
|
409
402
|
const { appId } = this.options;
|
|
410
403
|
return typeof appId === 'function' ? appId() : appId;
|
|
411
404
|
}
|
|
412
|
-
agentIdempotencyKey() {
|
|
413
|
-
const prefix = this.options.agentSession?.idempotencyKeyPrefix ?? 'ck-agent-session:';
|
|
414
|
-
const random = typeof crypto !== 'undefined' && typeof crypto.randomUUID === 'function'
|
|
415
|
-
? crypto.randomUUID()
|
|
416
|
-
: `${Date.now()}-${Math.random().toString(16).slice(2)}`;
|
|
417
|
-
return `${prefix}${random}`;
|
|
418
|
-
}
|
|
419
405
|
presentationSource(gridId) {
|
|
420
406
|
return `crowdy-studio:${gridId}`;
|
|
421
407
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { CrowdyStudioController, type CrowdyStudioControllerOptions, type CrowdyStudioBroker, type CrowdyStudioAgentWorkContext, type CrowdyStudioDeploymentPlan, type CrowdyStudioDeployResult, type CrowdyStudioInvokeResult, type CrowdyStudioPhase, type CrowdyStudioPolledSurface, type CrowdyStudioRun, type CrowdyStudioRuntimeStatus, type CrowdyStudioRuntimeSync, type CrowdyStudioRuntimeSyncState, type CrowdyStudioPlayerCompute, type CrowdyStudioPlayerWallet, type CrowdyStudioState, type CrowdyStudioStopResult, type CrowdyStudioUsageSnapshot, type CrowdyStudioWalletSnapshot, } from './controller.js';
|
|
2
|
-
export { mountCrowdyStudio, type CrowdyStudioHandle, type
|
|
2
|
+
export { mountCrowdyStudio, type CrowdyStudioHandle, type MountCrowdyStudioDshOptions, type MountCrowdyStudioOptions, } from './mount.js';
|
|
3
3
|
export { CrowdyStudioOfflineError, CrowdyStudioRevisionConflictError, cloneCrowdyStudioProject, crowdyStudioFileKey, crowdyStudioFileUri, normalizeCrowdyStudioPath, projectTargets, type CreateCrowdyStudioProjectInput, type ImportCrowdyStudioReferenceFileInput, type CrowdyStudioAtomicFileChange, type CrowdyStudioAtomicPatchInput, type CrowdyStudioAtomicPatchResult, type CrowdyStudioCheckpointFile, type CrowdyStudioCheckpointMetadata, type CrowdyStudioCheckpointRestoreInput, type CrowdyStudioCheckpointRestoreResult, type CrowdyStudioFileRef, type CrowdyStudioPairingPreference, type CrowdyStudioProject, type CrowdyStudioProjectFile, type CrowdyStudioProjectKind, type CrowdyStudioProjectMetadata, type CrowdyStudioProjectProvider, type CrowdyStudioProjectRevision, type CrowdyStudioProjectScope, type CrowdyStudioProjectSummary, type CrowdyStudioReferenceFile, type CrowdyStudioSaveState, type CrowdyStudioSynchronizationProvider, type CrowdyStudioProjectSynchronization, type CrowdyStudioPatchOperation, type CrowdyStudioTarget, type SaveCrowdyStudioLibraryFileInput, type SaveCrowdyStudioProjectInput, } from './models.js';
|
|
4
4
|
export { createCrowdyStudioStarterProject, type CrowdyStudioNewProjectOptions, } from './starter-projects.js';
|
|
5
5
|
export { parseRustcDiagnostics, type CrowdyStudioDiagnostic, type CrowdyStudioDiagnosticSeverity, type CrowdyStudioDiagnosticSource, } from './diagnostics.js';
|
|
@@ -9,11 +9,10 @@ export { isCurrentDiagnosticVersion, type MonacoCrowdyStudioEditorOptions, } fro
|
|
|
9
9
|
export { EMBEDDED_PLATFORM_INDEX, MAX_PLATFORM_CRATES, MAX_PLATFORM_CRATE_FIELD_LENGTH, MAX_PLATFORM_INDEX_BYTES, computePlatformIndexContentHash, loadPlatformIndex, type PlatformCrate, type PlatformIndex, type PlatformSymbol, type PlatformSymbolKind, } from '../live-coding/platform-index.js';
|
|
10
10
|
export { DEFAULT_VFS_LIMITS, VfsLimitError, VirtualFileSystem, offsetAt, type VirtualDocument, type VirtualFileSystemLimits, } from '../live-coding/vfs.js';
|
|
11
11
|
export { WorkerLanguageClient, WorkerMessageReader, WorkerMessageWriter, createDefaultRustLanguageWorker, type LanguageWorkerLike, type WorkerLanguageClientOptions, } from '../live-coding/worker-transport.js';
|
|
12
|
-
export { CrowdyStudioAgentDomShell, type CrowdyStudioAgentDomShellOptions, } from './agent-dom-shell.js';
|
|
13
12
|
export { STUDIO_LAYOUT_STORAGE_KEY, STUDIO_PANE_IDS, StudioLayoutController, clampStudioPaneSize, studioPaneSizeRange, type StudioLayoutControllerOptions, type StudioLayoutListener, type StudioLayoutState, type StudioLayoutStorage, type StudioPaneId, type StudioPaneSizeRange, } from './layout.js';
|
|
14
13
|
export { createPaneSplitter, type PaneSplitterHandle, type PaneSplitterOptions, type PaneSplitterRange, } from './splitter.js';
|
|
15
14
|
export * from './embed/index.js';
|
|
16
|
-
export * from '../crowdy-
|
|
15
|
+
export * from '../crowdy-dsh/index.js';
|
|
17
16
|
export * from '../player-host/index.js';
|
|
18
17
|
export * from './github/index.js';
|
|
19
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/crowdy-studio/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,KAAK,6BAA6B,EAClC,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,GAChC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,iBAAiB,EACjB,KAAK,kBAAkB,EACvB,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/crowdy-studio/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,KAAK,6BAA6B,EAClC,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,GAChC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,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C1B,KAAK,+BAA+B,GACrC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,uBAAuB,EACvB,mBAAmB,EACnB,+BAA+B,EAC/B,wBAAwB,EACxB,+BAA+B,EAC/B,iBAAiB,EACjB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,kBAAkB,GACxB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,QAAQ,EACR,KAAK,eAAe,EACpB,KAAK,uBAAuB,GAC7B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,+BAA+B,EAC/B,KAAK,kBAAkB,EACvB,KAAK,2BAA2B,GACjC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,yBAAyB,EACzB,eAAe,EACf,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACnB,KAAK,6BAA6B,EAClC,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,mBAAmB,GACzB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,kBAAkB,EAClB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,MAAM,eAAe,CAAC;AACvB,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC"}
|
|
@@ -9,10 +9,9 @@ export { isCurrentDiagnosticVersion, } from './monaco-editor.js';
|
|
|
9
9
|
export { EMBEDDED_PLATFORM_INDEX, MAX_PLATFORM_CRATES, MAX_PLATFORM_CRATE_FIELD_LENGTH, MAX_PLATFORM_INDEX_BYTES, computePlatformIndexContentHash, loadPlatformIndex, } from '../live-coding/platform-index.js';
|
|
10
10
|
export { DEFAULT_VFS_LIMITS, VfsLimitError, VirtualFileSystem, offsetAt, } from '../live-coding/vfs.js';
|
|
11
11
|
export { WorkerLanguageClient, WorkerMessageReader, WorkerMessageWriter, createDefaultRustLanguageWorker, } from '../live-coding/worker-transport.js';
|
|
12
|
-
export { CrowdyStudioAgentDomShell, } from './agent-dom-shell.js';
|
|
13
12
|
export { STUDIO_LAYOUT_STORAGE_KEY, STUDIO_PANE_IDS, StudioLayoutController, clampStudioPaneSize, studioPaneSizeRange, } from './layout.js';
|
|
14
13
|
export { createPaneSplitter, } from './splitter.js';
|
|
15
14
|
export * from './embed/index.js';
|
|
16
|
-
export * from '../crowdy-
|
|
15
|
+
export * from '../crowdy-dsh/index.js';
|
|
17
16
|
export * from '../player-host/index.js';
|
|
18
17
|
export * from './github/index.js';
|