@crowdedkingdoms/crowdyjs 18.22.0-test.1 → 18.23.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.
Files changed (75) hide show
  1. package/README.md +38 -1
  2. package/dist/crowdy-dsh/bridge.d.ts +72 -3
  3. package/dist/crowdy-dsh/bridge.d.ts.map +1 -1
  4. package/dist/crowdy-dsh/bridge.js +243 -12
  5. package/dist/crowdy-dsh/game-paths.d.ts +8 -0
  6. package/dist/crowdy-dsh/game-paths.d.ts.map +1 -0
  7. package/dist/crowdy-dsh/game-paths.js +20 -0
  8. package/dist/crowdy-dsh/pane.d.ts +18 -1
  9. package/dist/crowdy-dsh/pane.d.ts.map +1 -1
  10. package/dist/crowdy-dsh/pane.js +86 -2
  11. package/dist/crowdy-dsh/protocol.d.ts +165 -2
  12. package/dist/crowdy-dsh/protocol.d.ts.map +1 -1
  13. package/dist/crowdy-dsh/protocol.js +24 -1
  14. package/dist/crowdy-studio/controller.d.ts +100 -0
  15. package/dist/crowdy-studio/controller.d.ts.map +1 -1
  16. package/dist/crowdy-studio/controller.js +363 -1
  17. package/dist/crowdy-studio/dom-shell.d.ts +11 -0
  18. package/dist/crowdy-studio/dom-shell.d.ts.map +1 -1
  19. package/dist/crowdy-studio/dom-shell.js +182 -0
  20. package/dist/crowdy-studio/draft/github-draft-store.d.ts +143 -0
  21. package/dist/crowdy-studio/draft/github-draft-store.d.ts.map +1 -0
  22. package/dist/crowdy-studio/draft/github-draft-store.js +477 -0
  23. package/dist/crowdy-studio/draft/hash.d.ts +12 -0
  24. package/dist/crowdy-studio/draft/hash.d.ts.map +1 -0
  25. package/dist/crowdy-studio/draft/hash.js +25 -0
  26. package/dist/crowdy-studio/draft/index.d.ts +6 -0
  27. package/dist/crowdy-studio/draft/index.d.ts.map +1 -0
  28. package/dist/crowdy-studio/draft/index.js +5 -0
  29. package/dist/crowdy-studio/draft/overlay-storage.d.ts +48 -0
  30. package/dist/crowdy-studio/draft/overlay-storage.d.ts.map +1 -0
  31. package/dist/crowdy-studio/draft/overlay-storage.js +94 -0
  32. package/dist/crowdy-studio/draft/paths.d.ts +20 -0
  33. package/dist/crowdy-studio/draft/paths.d.ts.map +1 -0
  34. package/dist/crowdy-studio/draft/paths.js +54 -0
  35. package/dist/crowdy-studio/draft/types.d.ts +137 -0
  36. package/dist/crowdy-studio/draft/types.d.ts.map +1 -0
  37. package/dist/crowdy-studio/draft/types.js +29 -0
  38. package/dist/crowdy-studio/editor.d.ts +2 -0
  39. package/dist/crowdy-studio/editor.d.ts.map +1 -1
  40. package/dist/crowdy-studio/embed/panel.d.ts +8 -0
  41. package/dist/crowdy-studio/embed/panel.d.ts.map +1 -1
  42. package/dist/crowdy-studio/embed/panel.js +2 -0
  43. package/dist/crowdy-studio/github/index.d.ts +1 -1
  44. package/dist/crowdy-studio/github/index.d.ts.map +1 -1
  45. package/dist/crowdy-studio/github/transport.d.ts +59 -0
  46. package/dist/crowdy-studio/github/transport.d.ts.map +1 -1
  47. package/dist/crowdy-studio/github/transport.js +30 -1
  48. package/dist/crowdy-studio/index.d.ts +1 -0
  49. package/dist/crowdy-studio/index.d.ts.map +1 -1
  50. package/dist/crowdy-studio/index.js +1 -0
  51. package/dist/crowdy-studio/models.d.ts +1 -1
  52. package/dist/crowdy-studio/models.d.ts.map +1 -1
  53. package/dist/crowdy-studio/monaco-editor.d.ts.map +1 -1
  54. package/dist/crowdy-studio/monaco-editor.js +16 -0
  55. package/dist/crowdy-studio/mount.d.ts +2 -0
  56. package/dist/crowdy-studio/mount.d.ts.map +1 -1
  57. package/dist/crowdy-studio/mount.js +2 -0
  58. package/dist/crowdy-studio/repository-tree.d.ts +14 -0
  59. package/dist/crowdy-studio/repository-tree.d.ts.map +1 -0
  60. package/dist/crowdy-studio/repository-tree.js +45 -0
  61. package/dist/crowdy-studio/styles.d.ts +1 -1
  62. package/dist/crowdy-studio/styles.d.ts.map +1 -1
  63. package/dist/crowdy-studio/styles.js +1 -0
  64. package/dist/crowdy-studio/textarea-editor.d.ts.map +1 -1
  65. package/dist/crowdy-studio/textarea-editor.js +10 -4
  66. package/dist/default-origin.d.ts +6 -6
  67. package/dist/default-origin.d.ts.map +1 -1
  68. package/dist/default-origin.js +6 -6
  69. package/dist/generated/graphql-schema.d.ts +84 -2
  70. package/dist/generated/graphql-schema.d.ts.map +1 -1
  71. package/dist/generated/graphql-schema.js +9 -1
  72. package/dist/index.d.ts +1 -1
  73. package/dist/index.d.ts.map +1 -1
  74. package/dist/index.js +1 -1
  75. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"monaco-editor.d.ts","sourceRoot":"","sources":["../../src/crowdy-studio/monaco-editor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,yBAAyB,EACzB,2BAA2B,EAC5B,MAAM,aAAa,CAAC;AAerB,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,kCAAkC,CAAC;AAW1C,MAAM,WAAW,+BAA+B;IAC9C,mBAAmB,CAAC,EAAE,MAAM,MAAM,CAAC;IACnC,qBAAqB,CAAC,EAAE,MAAM,MAAM,CAAC;IACrC,aAAa,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC;IACxC,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC;AAmBD;;;;GAIG;AACH,wBAAsB,8BAA8B,CAClD,IAAI,EAAE,WAAW,EACjB,OAAO,EAAE,+BAA+B,EACxC,SAAS,EAAE,2BAA2B,GACrC,OAAO,CAAC,yBAAyB,CAAC,CAoXpC;AA6GD,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,MAAM,GACrB,OAAO,CAKT"}
1
+ {"version":3,"file":"monaco-editor.d.ts","sourceRoot":"","sources":["../../src/crowdy-studio/monaco-editor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,yBAAyB,EACzB,2BAA2B,EAC5B,MAAM,aAAa,CAAC;AAerB,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,kCAAkC,CAAC;AAW1C,MAAM,WAAW,+BAA+B;IAC9C,mBAAmB,CAAC,EAAE,MAAM,MAAM,CAAC;IACnC,qBAAqB,CAAC,EAAE,MAAM,MAAM,CAAC;IACrC,aAAa,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC;IACxC,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC;AAmBD;;;;GAIG;AACH,wBAAsB,8BAA8B,CAClD,IAAI,EAAE,WAAW,EACjB,OAAO,EAAE,+BAA+B,EACxC,SAAS,EAAE,2BAA2B,GACrC,OAAO,CAAC,yBAAyB,CAAC,CAuXpC;AA4HD,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,MAAM,GACrB,OAAO,CAKT"}
@@ -232,6 +232,9 @@ export async function createMonacoCrowdyStudioEditor(host, options, callbacks) {
232
232
  })
233
233
  .catch(() => { });
234
234
  }
235
+ if (!entry.suppressChanges && entry.ref.source === 'REPOSITORY') {
236
+ callbacks.onRepositoryFileChange?.(entry.ref.path, model.getValue());
237
+ }
235
238
  if (!entry.suppressChanges &&
236
239
  entry.ref.source === 'PROJECT' &&
237
240
  entry.ref.target) {
@@ -323,8 +326,21 @@ function collectFiles(state, workspaceUri) {
323
326
  uri: crowdyStudioFileUri(workspaceUri, file.target, file.path),
324
327
  };
325
328
  }) ?? [];
329
+ const repositoryFiles = (state.repositoryDocuments ?? [])
330
+ .filter((file) => state.openFiles.some((ref) => ref.source === 'REPOSITORY' && ref.path === file.path))
331
+ .map((file) => {
332
+ const ref = { source: 'REPOSITORY', path: file.path };
333
+ const encoded = file.path.split('/').map(encodeURIComponent).join('/');
334
+ return {
335
+ key: keyForRef(ref),
336
+ ref,
337
+ content: file.content,
338
+ uri: `${workspaceUri.replace(/\/+$/u, '')}/repository/${encoded}`,
339
+ };
340
+ });
326
341
  return [
327
342
  ...projectFiles,
343
+ ...repositoryFiles,
328
344
  ...state.personalLibraryFiles.map((file) => collectReference(workspaceUri, file)),
329
345
  ...state.commonFiles.map((file) => collectReference(workspaceUri, file)),
330
346
  ];
@@ -30,6 +30,8 @@ export interface MountCrowdyStudioDshOptions {
30
30
  studioOrigin?: string;
31
31
  /** Open the pane on mount (default true). */
32
32
  openOnMount?: boolean;
33
+ /** Exclusive harness pair. Omitted boots the mod editor. */
34
+ studioMode?: 'mod' | 'game';
33
35
  }
34
36
  export interface CrowdyStudioHandle {
35
37
  controller: CrowdyStudioController;
@@ -1 +1 @@
1
- {"version":3,"file":"mount.d.ts","sourceRoot":"","sources":["../../src/crowdy-studio/mount.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,KAAK,6BAA6B,EACnC,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAA4B,MAAM,uBAAuB,CAAC;AAEtF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,KAAK,EACV,yBAAyB,EAEzB,sBAAsB,EACvB,MAAM,aAAa,CAAC;AACrB,OAAO,EAEL,KAAK,+BAA+B,EACrC,MAAM,oBAAoB,CAAC;AAG5B,MAAM,WAAW,wBACf,SAAQ,6BAA6B,EACnC,+BAA+B;IACjC;;;OAGG;IACH,GAAG,CAAC,EAAE,2BAA2B,CAAC;CACnC;AAED,MAAM,WAAW,2BAA2B;IAC1C,gFAAgF;IAChF,OAAO,EAAE,aAAa,CAAC;IACvB,6EAA6E;IAC7E,OAAO,EAAE,MAAM,CAAC;IAChB,8EAA8E;IAC9E,UAAU,EAAE,MAAM,CAAC;IACnB,8EAA8E;IAC9E,SAAS,EAAE,MAAM,CAAC;IAClB,gEAAgE;IAChE,QAAQ,IAAI,MAAM,GAAG,IAAI,CAAC;IAC1B,oFAAoF;IACpF,YAAY,EAAE,MAAM,CAAC;IACrB,8EAA8E;IAC9E,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAC3B,qDAAqD;IACrD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6CAA6C;IAC7C,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,sBAAsB,CAAC;IACnC,gDAAgD;IAChD,GAAG,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAChC,UAAU,EAAE,sBAAsB,CAAC;IACnC,OAAO,IAAI,IAAI,CAAC;CACjB;AAED;;;;GAIG;AACH,wBAAgB,+BAA+B,CAC7C,IAAI,EAAE,WAAW,EACjB,aAAa,EAAE,MAAM,yBAAyB,GAAG,IAAI,GACpD,MAAM,IAAI,CAmBZ;AAED;;;;GAIG;AACH,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,WAAW,EACjB,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,kBAAkB,CAAC,CAkJ7B"}
1
+ {"version":3,"file":"mount.d.ts","sourceRoot":"","sources":["../../src/crowdy-studio/mount.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,KAAK,6BAA6B,EACnC,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAA4B,MAAM,uBAAuB,CAAC;AAEtF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,KAAK,EACV,yBAAyB,EAEzB,sBAAsB,EACvB,MAAM,aAAa,CAAC;AACrB,OAAO,EAEL,KAAK,+BAA+B,EACrC,MAAM,oBAAoB,CAAC;AAG5B,MAAM,WAAW,wBACf,SAAQ,6BAA6B,EACnC,+BAA+B;IACjC;;;OAGG;IACH,GAAG,CAAC,EAAE,2BAA2B,CAAC;CACnC;AAED,MAAM,WAAW,2BAA2B;IAC1C,gFAAgF;IAChF,OAAO,EAAE,aAAa,CAAC;IACvB,6EAA6E;IAC7E,OAAO,EAAE,MAAM,CAAC;IAChB,8EAA8E;IAC9E,UAAU,EAAE,MAAM,CAAC;IACnB,8EAA8E;IAC9E,SAAS,EAAE,MAAM,CAAC;IAClB,gEAAgE;IAChE,QAAQ,IAAI,MAAM,GAAG,IAAI,CAAC;IAC1B,oFAAoF;IACpF,YAAY,EAAE,MAAM,CAAC;IACrB,8EAA8E;IAC9E,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAC3B,qDAAqD;IACrD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6CAA6C;IAC7C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,4DAA4D;IAC5D,UAAU,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,sBAAsB,CAAC;IACnC,gDAAgD;IAChD,GAAG,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAChC,UAAU,EAAE,sBAAsB,CAAC;IACnC,OAAO,IAAI,IAAI,CAAC;CACjB;AAED;;;;GAIG;AACH,wBAAgB,+BAA+B,CAC7C,IAAI,EAAE,WAAW,EACjB,aAAa,EAAE,MAAM,yBAAyB,GAAG,IAAI,GACpD,MAAM,IAAI,CAmBZ;AAED;;;;GAIG;AACH,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,WAAW,EACjB,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,kBAAkB,CAAC,CAqJ7B"}
@@ -62,6 +62,7 @@ export async function mountCrowdyStudio(host, options) {
62
62
  persistScope: dshOptions.persistScope,
63
63
  getToken: dshOptions.getToken,
64
64
  graphqlUrl: dshOptions.graphqlUrl,
65
+ ...(dshOptions.studioMode ? { studioMode: dshOptions.studioMode } : {}),
65
66
  host: dshOptions.host,
66
67
  studioOrigin: dshOptions.studioOrigin,
67
68
  });
@@ -85,6 +86,7 @@ export async function mountCrowdyStudio(host, options) {
85
86
  const disconnectLayoutObserver = observeCrowdyStudioEditorLayout(shell.editorHost, () => editor);
86
87
  const callbacks = {
87
88
  onProjectFileChange: (target, path, content) => controller.updateFile(target, path, content),
89
+ onRepositoryFileChange: (path, content) => controller.updateRepositoryFile(path, content),
88
90
  onLocalDiagnostics: (diagnostics) => controller.setLocalDiagnostics(diagnostics),
89
91
  onOpenFile: (ref) => controller.openFile(ref),
90
92
  onFailure: (error) => {
@@ -0,0 +1,14 @@
1
+ /**
2
+ * The Files pane tree for a bound game repository.
3
+ *
4
+ * Directories come first. The root node is the repository itself and is not
5
+ * drawn; its children are the top of the list.
6
+ */
7
+ export interface RepositoryNode {
8
+ name: string;
9
+ path: string;
10
+ type: 'file' | 'directory';
11
+ children: RepositoryNode[];
12
+ }
13
+ export declare function repositoryTree(directories: readonly string[], files: readonly string[]): RepositoryNode;
14
+ //# sourceMappingURL=repository-tree.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repository-tree.d.ts","sourceRoot":"","sources":["../../src/crowdy-studio/repository-tree.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;IAC3B,QAAQ,EAAE,cAAc,EAAE,CAAC;CAC5B;AAED,wBAAgB,cAAc,CAC5B,WAAW,EAAE,SAAS,MAAM,EAAE,EAC9B,KAAK,EAAE,SAAS,MAAM,EAAE,GACvB,cAAc,CAkChB"}
@@ -0,0 +1,45 @@
1
+ /**
2
+ * The Files pane tree for a bound game repository.
3
+ *
4
+ * Directories come first. The root node is the repository itself and is not
5
+ * drawn; its children are the top of the list.
6
+ */
7
+ export function repositoryTree(directories, files) {
8
+ const root = { name: '', path: '', type: 'directory', children: [] };
9
+ const dirs = new Map([['', root]]);
10
+ const ensureDir = (path) => {
11
+ const existing = dirs.get(path);
12
+ if (existing)
13
+ return existing;
14
+ const slash = path.lastIndexOf('/');
15
+ const name = slash === -1 ? path : path.slice(slash + 1);
16
+ const parentPath = slash === -1 ? '' : path.slice(0, slash);
17
+ const node = { name, path, type: 'directory', children: [] };
18
+ dirs.set(path, node);
19
+ ensureDir(parentPath).children.push(node);
20
+ return node;
21
+ };
22
+ for (const dir of directories) {
23
+ if (dir)
24
+ ensureDir(dir);
25
+ }
26
+ for (const file of files) {
27
+ const slash = file.lastIndexOf('/');
28
+ const name = slash === -1 ? file : file.slice(slash + 1);
29
+ const parentPath = slash === -1 ? '' : file.slice(0, slash);
30
+ ensureDir(parentPath).children.push({ name, path: file, type: 'file', children: [] });
31
+ }
32
+ const sort = (node) => {
33
+ node.children.sort((a, b) => {
34
+ if (a.type !== b.type)
35
+ return a.type === 'directory' ? -1 : 1;
36
+ return a.name.localeCompare(b.name);
37
+ });
38
+ for (const child of node.children) {
39
+ if (child.type === 'directory')
40
+ sort(child);
41
+ }
42
+ };
43
+ sort(root);
44
+ return root;
45
+ }
@@ -1,2 +1,2 @@
1
- export declare const CROWDY_STUDIO_STYLES = "\n.ck-crowdy-studio{--ck-bg:#111827;--ck-panel:#182235;--ck-line:#334155;--ck-text:#e5e7eb;--ck-muted:#94a3b8;--ck-accent:#38bdf8;container-type:inline-size;display:flex;flex-direction:column;position:relative;isolation:isolate;width:100%;height:100%;min-height:0;overflow:hidden;background:var(--ck-bg);color:var(--ck-text);font:13px/1.4 ui-sans-serif,system-ui,sans-serif;border:1px solid var(--ck-line)}\n.ck-crowdy-studio *{box-sizing:border-box}.ck-crowdy-studio button,.ck-crowdy-studio input,.ck-crowdy-studio select,.ck-crowdy-studio textarea{font:inherit}.ck-crowdy-studio button,.ck-crowdy-studio select,.ck-crowdy-studio input{background:#0f172a;color:var(--ck-text);border:1px solid var(--ck-line);border-radius:4px;padding:5px 8px}.ck-crowdy-studio button{cursor:pointer}.ck-crowdy-studio button:hover{border-color:var(--ck-accent)}.ck-crowdy-studio button:disabled{opacity:.5;cursor:not-allowed}\n.ck-crowdy-studio [hidden]{display:none!important}\n\n/* Top bar */\n.ck-crowdy-studio-toolbar{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:6px 8px;border-bottom:1px solid var(--ck-line);position:relative;z-index:30}\n.ck-crowdy-studio-project-tools,.ck-crowdy-studio-runtime-tools{display:flex;align-items:center;gap:6px;min-width:0}\n.ck-crowdy-studio-primary{border-color:var(--ck-accent);color:#bae6fd}\n.ck-crowdy-studio-save{color:var(--ck-muted)}\n.ck-crowdy-studio-save[data-state=SAVED]{color:#86efac}.ck-crowdy-studio-save[data-state=SAVING]{color:#fde68a}.ck-crowdy-studio-save[data-state=CONFLICT]{color:#fca5a5;border-color:#f87171}.ck-crowdy-studio-save[data-state=OFFLINE]{color:#fdba74;border-color:#fb923c}\n.ck-crowdy-studio-save-message{margin:0;padding:4px 6px;color:var(--ck-muted);max-width:280px}\n.ck-crowdy-studio-save-actions{display:flex;gap:6px;padding:4px 6px}\n\n/* Menus */\n.ck-crowdy-studio-menu-wrap{position:relative;display:inline-flex;min-width:0}\n.ck-crowdy-studio-menu-button{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n.ck-crowdy-studio-menu{position:absolute;top:calc(100% + 4px);left:0;z-index:40;min-width:180px;max-width:320px;max-height:60vh;overflow:auto;display:flex;flex-direction:column;background:var(--ck-panel);border:1px solid var(--ck-line);border-radius:6px;padding:4px;box-shadow:0 8px 24px rgba(2,6,23,.55)}\n.ck-crowdy-studio-runtime-tools .ck-crowdy-studio-menu{left:auto;right:0}\n.ck-crowdy-studio-menu-item{display:block;width:100%;text-align:left;background:transparent;border:0;border-radius:4px;padding:6px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n.ck-crowdy-studio-menu-item:hover{background:#0f172a;border:0}\n.ck-crowdy-studio-menu-item[data-active=true]{color:#bae6fd}\n.ck-crowdy-studio-menu-divider{border-top:1px solid var(--ck-line);margin:4px 2px}\n\n/* New-project popover */\n.ck-crowdy-studio-new{display:none;position:absolute;top:100%;left:8px;z-index:35;gap:6px;align-items:center;padding:8px;background:var(--ck-panel);border:1px solid var(--ck-line);border-radius:6px;box-shadow:0 8px 24px rgba(2,6,23,.55)}\n.ck-crowdy-studio-new[data-open=true]{display:flex}\n.ck-crowdy-studio-new input{flex:1;min-width:160px}\n\n/* Workspace: rail + panes + editor */\n.ck-crowdy-studio-workspace{display:flex;flex:1;min-height:0;min-width:0;position:relative}\n.ck-crowdy-studio-rail{display:flex;flex-direction:column;gap:4px;padding:6px 3px;border-right:1px solid var(--ck-line);background:#0b1220}\n.ck-crowdy-studio-rail-button{writing-mode:vertical-rl;padding:8px 4px;background:transparent;border:1px solid transparent;color:var(--ck-muted);border-radius:4px}\n.ck-crowdy-studio-rail-button:hover{color:var(--ck-text)}\n.ck-crowdy-studio-rail-button[aria-pressed=true]{color:#bae6fd;border-color:var(--ck-line);background:#0f172a}\n.ck-crowdy-studio-explorer,.ck-crowdy-studio-settings{flex:none;background:var(--ck-panel);overflow:auto;padding:8px;min-width:0}\n.ck-crowdy-studio-settings{border-left:1px solid var(--ck-line)}\n.ck-crowdy-studio-settings h3{margin:0 0 8px}\n.ck-crowdy-studio-github{margin-top:16px;padding-top:12px;border-top:1px solid var(--ck-line)}\n.ck-crowdy-studio-github-row{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0}\n.ck-crowdy-studio-github-row input{flex:1;min-width:0}\n.ck-crowdy-studio-github-status,.ck-crowdy-studio-github-message{margin:4px 0;font-size:12px;opacity:.85}\n.ck-crowdy-studio-editor-column{display:flex;flex-direction:column;flex:1;min-width:240px;min-height:0}\n.ck-crowdy-studio-editor{flex:1;min-height:80px;position:relative}\n.ck-crowdy-studio-textarea{width:100%;height:100%;min-height:0;resize:none;background:#0b1020;color:var(--ck-text);border:0;padding:12px;font:13px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace}\n.ck-crowdy-studio-editor-notice{padding:4px 8px;background:#78350f;color:#ffedd5}\n\n/* Splitters */\n.ck-crowdy-studio-splitter{flex:none;background:transparent;position:relative;z-index:5}\n.ck-crowdy-studio-splitter[data-orientation=vertical]{width:6px;cursor:col-resize}\n.ck-crowdy-studio-splitter[data-orientation=horizontal]{height:6px;cursor:row-resize}\n.ck-crowdy-studio-splitter:hover,.ck-crowdy-studio-splitter[data-dragging=true]{background:var(--ck-accent);opacity:.5}\n\n/* Explorer */\n.ck-crowdy-studio-section{margin-bottom:12px}\n.ck-crowdy-studio-section-header{display:flex;align-items:center;justify-content:space-between;color:var(--ck-muted);font-weight:700;text-transform:uppercase;font-size:11px;margin-bottom:4px}\n.ck-crowdy-studio-file{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px;align-items:center}\n.ck-crowdy-studio-file>button:first-child{text-align:left;overflow:hidden;text-overflow:ellipsis;border:0;background:transparent}\n.ck-crowdy-studio-file-action{padding:1px 6px}\n.ck-crowdy-studio-file .ck-crowdy-studio-menu{left:auto;right:0;min-width:130px}\n.ck-crowdy-studio-inline-form{display:flex;flex-wrap:wrap;gap:4px;margin:4px 0;padding:6px;border:1px solid var(--ck-line);border-radius:4px;background:#0f172a}\n.ck-crowdy-studio-inline-form input{flex:1 1 100%;min-width:0}\n.ck-crowdy-studio-file-form-row{display:flex;flex-wrap:wrap;gap:4px;align-items:center;margin:4px 0;padding:6px;border:1px solid #f59e0b66;border-radius:4px}\n\n/* Editor tabs */\n.ck-crowdy-studio-tabs{display:flex;align-items:center;gap:6px;padding:4px;border-bottom:1px solid var(--ck-line);overflow:auto}\n.ck-crowdy-studio-tab{white-space:nowrap}\n.ck-crowdy-studio-tab[data-active=true],.ck-crowdy-studio-panel-tab[data-active=true]{border-color:var(--ck-accent);color:#bae6fd}\n.ck-crowdy-studio-tab span{margin-left:7px;color:var(--ck-muted)}\n\n/* Settings */\n.ck-crowdy-studio-settings label{display:grid;gap:3px;margin-bottom:9px;color:var(--ck-muted)}\n.ck-crowdy-studio-settings input,.ck-crowdy-studio-settings select{width:100%}\n\n/* Bottom panel */\n.ck-crowdy-studio-bottom{flex:none;display:flex;flex-direction:column;min-height:0;border-top:1px solid var(--ck-line)}\n.ck-crowdy-studio-panel-tabs{display:flex;align-items:center;gap:6px;padding:5px 7px;border-bottom:1px solid var(--ck-line)}\n.ck-crowdy-studio-panel-hide{margin-left:auto;padding:1px 7px;color:var(--ck-muted)}\n.ck-crowdy-studio-panel-body{flex:1;min-height:0;display:flex;flex-direction:column}\n.ck-crowdy-studio-panel{display:none;flex:1;overflow:auto;padding:8px}\n.ck-crowdy-studio-panel[data-active=true]{display:block}\n.ck-crowdy-studio-panel pre{white-space:pre-wrap;margin:0;font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace}\n.ck-crowdy-studio-problem{display:grid;grid-template-columns:auto auto 1fr;gap:8px;padding:3px;border-bottom:1px solid #243247;width:100%;text-align:left;background:transparent;border-left:0;border-right:0;border-top:0;border-radius:0}\n.ck-crowdy-studio-problem[data-source=rustc]{color:#fecaca}\n.ck-crowdy-studio-problem[data-source=local-advisory]{color:#fde68a}\n.ck-crowdy-studio-invoke{display:grid;grid-template-columns:180px 1fr auto;gap:6px}\n.ck-crowdy-studio-invoke textarea{min-height:70px;background:#0f172a;color:var(--ck-text);border:1px solid var(--ck-line)}\n.ck-crowdy-studio-empty{color:var(--ck-muted);padding:8px}\n\n/* Status bar */\n.ck-crowdy-studio-statusbar{display:flex;align-items:center;gap:14px;padding:3px 10px;border-top:1px solid var(--ck-line);background:#0b1220;font-size:12px;min-height:24px}\n.ck-crowdy-studio-status{color:var(--ck-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n.ck-crowdy-studio-statusbar-runtime{background:transparent;border:0;padding:1px 4px;border-radius:3px}\n.ck-crowdy-studio-statusbar-runtime:hover{color:var(--ck-text)}\n.ck-crowdy-studio-statusbar-runtime[data-phase=RUNNING]{color:#86efac}\n.ck-crowdy-studio-statusbar-runtime[data-phase=COMPILING],.ck-crowdy-studio-statusbar-runtime[data-phase=TESTING_DRAFT],.ck-crowdy-studio-statusbar-runtime[data-phase=DEPLOYING_LIVE],.ck-crowdy-studio-statusbar-runtime[data-phase=ENABLING]{color:#fde68a}\n.ck-crowdy-studio-statusbar-runtime[data-phase=COMPILE_FAILED],.ck-crowdy-studio-statusbar-runtime[data-phase=ERROR],.ck-crowdy-studio-statusbar-runtime[data-phase=PARTIAL_FAILURE]{color:#fca5a5}\n\n/* Problems: Fix with AI */\n.ck-crowdy-studio-problem-row{display:flex;align-items:stretch;gap:4px}\n.ck-crowdy-studio-problem-row>.ck-crowdy-studio-problem{flex:1;min-width:0}\n.ck-crowdy-studio-problem-fix{flex:none;font-size:11px}\n\n/* Agent dock */\n.ck-crowdy-studio-agent-dock{flex:none;display:flex;flex-direction:column;gap:8px;min-width:0;min-height:0;padding:10px;border-left:1px solid var(--ck-line);background:#0b1220;overflow:auto}\n.ck-crowdy-studio-agent-dock header{display:flex;align-items:center;justify-content:space-between;gap:8px}\n.ck-crowdy-studio-agent-dock h2,.ck-crowdy-studio-agent-dock h3{margin:0;font-size:13px}\n.ck-crowdy-studio-agent-status,.ck-crowdy-studio-agent-budget,.ck-crowdy-studio-agent-lease{color:var(--ck-muted);font-size:12px}\n.ck-crowdy-studio-agent-lease[data-active=true]{color:#fde68a;border:1px solid #f59e0b;border-radius:5px;padding:6px}\n.ck-crowdy-studio-agent-controls-row{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap}\n.ck-crowdy-studio-agent-modes,.ck-crowdy-studio-agent-controls{display:flex;gap:5px;flex-wrap:wrap}\n.ck-crowdy-studio-agent-modes button[data-active=true]{border-color:var(--ck-accent);color:#bae6fd}\n.ck-crowdy-studio-agent-stop{border-color:#ef4444!important;color:#fecaca!important}\n.ck-crowdy-studio-agent-disclosure{border:1px solid var(--ck-line);border-radius:5px;padding:0}\n.ck-crowdy-studio-agent-disclosure>summary{cursor:pointer;padding:6px 8px;color:var(--ck-muted)}\n.ck-crowdy-studio-agent-disclosure[open]>summary{border-bottom:1px solid var(--ck-line);color:var(--ck-text)}\n.ck-crowdy-studio-agent-disclosure>:not(summary){padding:6px 8px}\n.ck-crowdy-studio-agent-lease-controls{display:flex;gap:6px;flex-wrap:wrap;margin:0;padding:7px;border:1px solid var(--ck-line)}\n.ck-crowdy-studio-agent-lease-controls legend{color:var(--ck-muted)}\n.ck-crowdy-studio-agent-lease-controls label{display:flex;gap:3px;align-items:center}\n.ck-crowdy-studio-agent-messages{display:flex;flex-direction:column;gap:6px;flex:1;min-height:120px;overflow:auto}\n.ck-crowdy-studio-agent-message,.ck-crowdy-studio-agent-stream,.ck-crowdy-studio-agent-approval,.ck-crowdy-studio-agent-diff,.ck-crowdy-studio-agent-checkpoint{padding:7px;border:1px solid var(--ck-line);border-radius:5px;background:var(--ck-panel)}\n.ck-crowdy-studio-agent-message[data-role=USER]{border-color:#155e75}\n.ck-crowdy-studio-agent-message p,.ck-crowdy-studio-agent-approval p,.ck-crowdy-studio-agent-diff p,.ck-crowdy-studio-agent-checkpoint p{margin:3px 0;white-space:pre-wrap;overflow-wrap:anywhere}\n.ck-crowdy-studio-agent-timeline{display:grid;gap:5px;margin:0;padding-left:22px;max-height:190px;overflow:auto}\n.ck-crowdy-studio-agent-timeline li{padding:4px;border-bottom:1px solid #243247}\n.ck-crowdy-studio-agent-timeline li>span{margin-left:6px;color:var(--ck-muted)}\n.ck-crowdy-studio-agent-approvals,.ck-crowdy-studio-agent-checkpoints{display:grid;gap:7px}\n.ck-crowdy-studio-agent-approval{border-color:#f59e0b}\n.ck-crowdy-studio-agent-approval code{display:block;overflow-wrap:anywhere;color:#fde68a}\n.ck-crowdy-studio-agent-approval>div{display:flex;gap:6px}\n.ck-crowdy-studio-agent-composer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}\n.ck-crowdy-studio-agent-composer textarea{min-height:62px;resize:vertical;background:#0f172a;color:var(--ck-text);border:1px solid var(--ck-line);padding:7px}\n.ck-crowdy-studio :focus-visible{outline:2px solid var(--ck-accent);outline-offset:2px}\n\n/* Narrow widths: side panes become overlays so the editor keeps priority. */\n@container(max-width:900px){.ck-crowdy-studio-settings{position:absolute;right:0;top:0;bottom:0;z-index:20;max-width:85%;border-left:1px solid var(--ck-line);box-shadow:-8px 0 24px rgba(2,6,23,.55)}.ck-crowdy-studio-splitter[data-orientation=vertical]{display:none}}\n@container(max-width:760px){.ck-crowdy-studio-agent-dock{position:absolute;right:0;top:0;bottom:0;z-index:22;max-width:92%;box-shadow:-8px 0 24px rgba(2,6,23,.55)}}\n@container(max-width:620px){.ck-crowdy-studio-explorer{position:absolute;left:34px;top:0;bottom:0;z-index:21;max-width:85%;border-right:1px solid var(--ck-line);box-shadow:8px 0 24px rgba(2,6,23,.55)}}\n";
1
+ export declare const CROWDY_STUDIO_STYLES = "\n.ck-crowdy-studio{--ck-bg:#111827;--ck-panel:#182235;--ck-line:#334155;--ck-text:#e5e7eb;--ck-muted:#94a3b8;--ck-accent:#38bdf8;container-type:inline-size;display:flex;flex-direction:column;position:relative;isolation:isolate;width:100%;height:100%;min-height:0;overflow:hidden;background:var(--ck-bg);color:var(--ck-text);font:13px/1.4 ui-sans-serif,system-ui,sans-serif;border:1px solid var(--ck-line)}\n.ck-crowdy-studio *{box-sizing:border-box}.ck-crowdy-studio button,.ck-crowdy-studio input,.ck-crowdy-studio select,.ck-crowdy-studio textarea{font:inherit}.ck-crowdy-studio button,.ck-crowdy-studio select,.ck-crowdy-studio input{background:#0f172a;color:var(--ck-text);border:1px solid var(--ck-line);border-radius:4px;padding:5px 8px}.ck-crowdy-studio button{cursor:pointer}.ck-crowdy-studio button:hover{border-color:var(--ck-accent)}.ck-crowdy-studio button:disabled{opacity:.5;cursor:not-allowed}\n.ck-crowdy-studio [hidden]{display:none!important}\n\n/* Top bar */\n.ck-crowdy-studio-toolbar{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:6px 8px;border-bottom:1px solid var(--ck-line);position:relative;z-index:30}\n.ck-crowdy-studio-project-tools,.ck-crowdy-studio-runtime-tools{display:flex;align-items:center;gap:6px;min-width:0}\n.ck-crowdy-studio-primary{border-color:var(--ck-accent);color:#bae6fd}\n.ck-crowdy-studio-save{color:var(--ck-muted)}\n.ck-crowdy-studio-save[data-state=SAVED]{color:#86efac}.ck-crowdy-studio-save[data-state=SAVING]{color:#fde68a}.ck-crowdy-studio-save[data-state=CONFLICT]{color:#fca5a5;border-color:#f87171}.ck-crowdy-studio-save[data-state=OFFLINE]{color:#fdba74;border-color:#fb923c}\n.ck-crowdy-studio-save-message{margin:0;padding:4px 6px;color:var(--ck-muted);max-width:280px}\n.ck-crowdy-studio-save-actions{display:flex;gap:6px;padding:4px 6px}\n\n/* Menus */\n.ck-crowdy-studio-menu-wrap{position:relative;display:inline-flex;min-width:0}\n.ck-crowdy-studio-menu-button{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n.ck-crowdy-studio-menu{position:absolute;top:calc(100% + 4px);left:0;z-index:40;min-width:180px;max-width:320px;max-height:60vh;overflow:auto;display:flex;flex-direction:column;background:var(--ck-panel);border:1px solid var(--ck-line);border-radius:6px;padding:4px;box-shadow:0 8px 24px rgba(2,6,23,.55)}\n.ck-crowdy-studio-runtime-tools .ck-crowdy-studio-menu{left:auto;right:0}\n.ck-crowdy-studio-menu-item{display:block;width:100%;text-align:left;background:transparent;border:0;border-radius:4px;padding:6px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n.ck-crowdy-studio-menu-item:hover{background:#0f172a;border:0}\n.ck-crowdy-studio-menu-item[data-active=true]{color:#bae6fd}\n.ck-crowdy-studio-menu-divider{border-top:1px solid var(--ck-line);margin:4px 2px}\n\n/* New-project popover */\n.ck-crowdy-studio-new{display:none;position:absolute;top:100%;left:8px;z-index:35;gap:6px;align-items:center;padding:8px;background:var(--ck-panel);border:1px solid var(--ck-line);border-radius:6px;box-shadow:0 8px 24px rgba(2,6,23,.55)}\n.ck-crowdy-studio-new[data-open=true]{display:flex}\n.ck-crowdy-studio-new input{flex:1;min-width:160px}\n\n/* Workspace: rail + panes + editor */\n.ck-crowdy-studio-workspace{display:flex;flex:1;min-height:0;min-width:0;position:relative}\n.ck-crowdy-studio-rail{display:flex;flex-direction:column;gap:4px;padding:6px 3px;border-right:1px solid var(--ck-line);background:#0b1220}\n.ck-crowdy-studio-rail-button{writing-mode:vertical-rl;padding:8px 4px;background:transparent;border:1px solid transparent;color:var(--ck-muted);border-radius:4px}\n.ck-crowdy-studio-rail-button:hover{color:var(--ck-text)}\n.ck-crowdy-studio-rail-button[aria-pressed=true]{color:#bae6fd;border-color:var(--ck-line);background:#0f172a}\n.ck-crowdy-studio-explorer,.ck-crowdy-studio-settings{flex:none;background:var(--ck-panel);overflow:auto;padding:8px;min-width:0}\n.ck-crowdy-studio-settings{border-left:1px solid var(--ck-line)}\n.ck-crowdy-studio-settings h3{margin:0 0 8px}\n.ck-crowdy-studio-github{margin-top:16px;padding-top:12px;border-top:1px solid var(--ck-line)}\n.ck-crowdy-studio-github-row{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0}\n.ck-crowdy-studio-github-row input{flex:1;min-width:0}\n.ck-crowdy-studio-github-status,.ck-crowdy-studio-github-message{margin:4px 0;font-size:12px;opacity:.85}\n.ck-crowdy-studio-editor-column{display:flex;flex-direction:column;flex:1;min-width:240px;min-height:0}\n.ck-crowdy-studio-editor{flex:1;min-height:80px;position:relative}\n.ck-crowdy-studio-textarea{width:100%;height:100%;min-height:0;resize:none;background:#0b1020;color:var(--ck-text);border:0;padding:12px;font:13px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace}\n.ck-crowdy-studio-editor-notice{padding:4px 8px;background:#78350f;color:#ffedd5}\n\n/* Splitters */\n.ck-crowdy-studio-splitter{flex:none;background:transparent;position:relative;z-index:5}\n.ck-crowdy-studio-splitter[data-orientation=vertical]{width:6px;cursor:col-resize}\n.ck-crowdy-studio-splitter[data-orientation=horizontal]{height:6px;cursor:row-resize}\n.ck-crowdy-studio-splitter:hover,.ck-crowdy-studio-splitter[data-dragging=true]{background:var(--ck-accent);opacity:.5}\n\n/* Explorer */\n.ck-crowdy-studio-section{margin-bottom:12px}\n.ck-crowdy-studio-section-header{display:flex;align-items:center;justify-content:space-between;color:var(--ck-muted);font-weight:700;text-transform:uppercase;font-size:11px;margin-bottom:4px}\n.ck-crowdy-studio-file{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px;align-items:center}\n.ck-crowdy-studio-file>button:first-child{text-align:left;overflow:hidden;text-overflow:ellipsis;border:0;background:transparent}\n.ck-crowdy-studio-file>button[data-active=true]{color:#bae6fd}\n.ck-crowdy-studio-file-action{padding:1px 6px}\n.ck-crowdy-studio-file .ck-crowdy-studio-menu{left:auto;right:0;min-width:130px}\n.ck-crowdy-studio-inline-form{display:flex;flex-wrap:wrap;gap:4px;margin:4px 0;padding:6px;border:1px solid var(--ck-line);border-radius:4px;background:#0f172a}\n.ck-crowdy-studio-inline-form input{flex:1 1 100%;min-width:0}\n.ck-crowdy-studio-file-form-row{display:flex;flex-wrap:wrap;gap:4px;align-items:center;margin:4px 0;padding:6px;border:1px solid #f59e0b66;border-radius:4px}\n\n/* Editor tabs */\n.ck-crowdy-studio-tabs{display:flex;align-items:center;gap:6px;padding:4px;border-bottom:1px solid var(--ck-line);overflow:auto}\n.ck-crowdy-studio-tab{white-space:nowrap}\n.ck-crowdy-studio-tab[data-active=true],.ck-crowdy-studio-panel-tab[data-active=true]{border-color:var(--ck-accent);color:#bae6fd}\n.ck-crowdy-studio-tab span{margin-left:7px;color:var(--ck-muted)}\n\n/* Settings */\n.ck-crowdy-studio-settings label{display:grid;gap:3px;margin-bottom:9px;color:var(--ck-muted)}\n.ck-crowdy-studio-settings input,.ck-crowdy-studio-settings select{width:100%}\n\n/* Bottom panel */\n.ck-crowdy-studio-bottom{flex:none;display:flex;flex-direction:column;min-height:0;border-top:1px solid var(--ck-line)}\n.ck-crowdy-studio-panel-tabs{display:flex;align-items:center;gap:6px;padding:5px 7px;border-bottom:1px solid var(--ck-line)}\n.ck-crowdy-studio-panel-hide{margin-left:auto;padding:1px 7px;color:var(--ck-muted)}\n.ck-crowdy-studio-panel-body{flex:1;min-height:0;display:flex;flex-direction:column}\n.ck-crowdy-studio-panel{display:none;flex:1;overflow:auto;padding:8px}\n.ck-crowdy-studio-panel[data-active=true]{display:block}\n.ck-crowdy-studio-panel pre{white-space:pre-wrap;margin:0;font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace}\n.ck-crowdy-studio-problem{display:grid;grid-template-columns:auto auto 1fr;gap:8px;padding:3px;border-bottom:1px solid #243247;width:100%;text-align:left;background:transparent;border-left:0;border-right:0;border-top:0;border-radius:0}\n.ck-crowdy-studio-problem[data-source=rustc]{color:#fecaca}\n.ck-crowdy-studio-problem[data-source=local-advisory]{color:#fde68a}\n.ck-crowdy-studio-invoke{display:grid;grid-template-columns:180px 1fr auto;gap:6px}\n.ck-crowdy-studio-invoke textarea{min-height:70px;background:#0f172a;color:var(--ck-text);border:1px solid var(--ck-line)}\n.ck-crowdy-studio-empty{color:var(--ck-muted);padding:8px}\n\n/* Status bar */\n.ck-crowdy-studio-statusbar{display:flex;align-items:center;gap:14px;padding:3px 10px;border-top:1px solid var(--ck-line);background:#0b1220;font-size:12px;min-height:24px}\n.ck-crowdy-studio-status{color:var(--ck-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n.ck-crowdy-studio-statusbar-runtime{background:transparent;border:0;padding:1px 4px;border-radius:3px}\n.ck-crowdy-studio-statusbar-runtime:hover{color:var(--ck-text)}\n.ck-crowdy-studio-statusbar-runtime[data-phase=RUNNING]{color:#86efac}\n.ck-crowdy-studio-statusbar-runtime[data-phase=COMPILING],.ck-crowdy-studio-statusbar-runtime[data-phase=TESTING_DRAFT],.ck-crowdy-studio-statusbar-runtime[data-phase=DEPLOYING_LIVE],.ck-crowdy-studio-statusbar-runtime[data-phase=ENABLING]{color:#fde68a}\n.ck-crowdy-studio-statusbar-runtime[data-phase=COMPILE_FAILED],.ck-crowdy-studio-statusbar-runtime[data-phase=ERROR],.ck-crowdy-studio-statusbar-runtime[data-phase=PARTIAL_FAILURE]{color:#fca5a5}\n\n/* Problems: Fix with AI */\n.ck-crowdy-studio-problem-row{display:flex;align-items:stretch;gap:4px}\n.ck-crowdy-studio-problem-row>.ck-crowdy-studio-problem{flex:1;min-width:0}\n.ck-crowdy-studio-problem-fix{flex:none;font-size:11px}\n\n/* Agent dock */\n.ck-crowdy-studio-agent-dock{flex:none;display:flex;flex-direction:column;gap:8px;min-width:0;min-height:0;padding:10px;border-left:1px solid var(--ck-line);background:#0b1220;overflow:auto}\n.ck-crowdy-studio-agent-dock header{display:flex;align-items:center;justify-content:space-between;gap:8px}\n.ck-crowdy-studio-agent-dock h2,.ck-crowdy-studio-agent-dock h3{margin:0;font-size:13px}\n.ck-crowdy-studio-agent-status,.ck-crowdy-studio-agent-budget,.ck-crowdy-studio-agent-lease{color:var(--ck-muted);font-size:12px}\n.ck-crowdy-studio-agent-lease[data-active=true]{color:#fde68a;border:1px solid #f59e0b;border-radius:5px;padding:6px}\n.ck-crowdy-studio-agent-controls-row{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap}\n.ck-crowdy-studio-agent-modes,.ck-crowdy-studio-agent-controls{display:flex;gap:5px;flex-wrap:wrap}\n.ck-crowdy-studio-agent-modes button[data-active=true]{border-color:var(--ck-accent);color:#bae6fd}\n.ck-crowdy-studio-agent-stop{border-color:#ef4444!important;color:#fecaca!important}\n.ck-crowdy-studio-agent-disclosure{border:1px solid var(--ck-line);border-radius:5px;padding:0}\n.ck-crowdy-studio-agent-disclosure>summary{cursor:pointer;padding:6px 8px;color:var(--ck-muted)}\n.ck-crowdy-studio-agent-disclosure[open]>summary{border-bottom:1px solid var(--ck-line);color:var(--ck-text)}\n.ck-crowdy-studio-agent-disclosure>:not(summary){padding:6px 8px}\n.ck-crowdy-studio-agent-lease-controls{display:flex;gap:6px;flex-wrap:wrap;margin:0;padding:7px;border:1px solid var(--ck-line)}\n.ck-crowdy-studio-agent-lease-controls legend{color:var(--ck-muted)}\n.ck-crowdy-studio-agent-lease-controls label{display:flex;gap:3px;align-items:center}\n.ck-crowdy-studio-agent-messages{display:flex;flex-direction:column;gap:6px;flex:1;min-height:120px;overflow:auto}\n.ck-crowdy-studio-agent-message,.ck-crowdy-studio-agent-stream,.ck-crowdy-studio-agent-approval,.ck-crowdy-studio-agent-diff,.ck-crowdy-studio-agent-checkpoint{padding:7px;border:1px solid var(--ck-line);border-radius:5px;background:var(--ck-panel)}\n.ck-crowdy-studio-agent-message[data-role=USER]{border-color:#155e75}\n.ck-crowdy-studio-agent-message p,.ck-crowdy-studio-agent-approval p,.ck-crowdy-studio-agent-diff p,.ck-crowdy-studio-agent-checkpoint p{margin:3px 0;white-space:pre-wrap;overflow-wrap:anywhere}\n.ck-crowdy-studio-agent-timeline{display:grid;gap:5px;margin:0;padding-left:22px;max-height:190px;overflow:auto}\n.ck-crowdy-studio-agent-timeline li{padding:4px;border-bottom:1px solid #243247}\n.ck-crowdy-studio-agent-timeline li>span{margin-left:6px;color:var(--ck-muted)}\n.ck-crowdy-studio-agent-approvals,.ck-crowdy-studio-agent-checkpoints{display:grid;gap:7px}\n.ck-crowdy-studio-agent-approval{border-color:#f59e0b}\n.ck-crowdy-studio-agent-approval code{display:block;overflow-wrap:anywhere;color:#fde68a}\n.ck-crowdy-studio-agent-approval>div{display:flex;gap:6px}\n.ck-crowdy-studio-agent-composer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}\n.ck-crowdy-studio-agent-composer textarea{min-height:62px;resize:vertical;background:#0f172a;color:var(--ck-text);border:1px solid var(--ck-line);padding:7px}\n.ck-crowdy-studio :focus-visible{outline:2px solid var(--ck-accent);outline-offset:2px}\n\n/* Narrow widths: side panes become overlays so the editor keeps priority. */\n@container(max-width:900px){.ck-crowdy-studio-settings{position:absolute;right:0;top:0;bottom:0;z-index:20;max-width:85%;border-left:1px solid var(--ck-line);box-shadow:-8px 0 24px rgba(2,6,23,.55)}.ck-crowdy-studio-splitter[data-orientation=vertical]{display:none}}\n@container(max-width:760px){.ck-crowdy-studio-agent-dock{position:absolute;right:0;top:0;bottom:0;z-index:22;max-width:92%;box-shadow:-8px 0 24px rgba(2,6,23,.55)}}\n@container(max-width:620px){.ck-crowdy-studio-explorer{position:absolute;left:34px;top:0;bottom:0;z-index:21;max-width:85%;border-right:1px solid var(--ck-line);box-shadow:8px 0 24px rgba(2,6,23,.55)}}\n";
2
2
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/crowdy-studio/styles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,4maA2IhC,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/crowdy-studio/styles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,4qaA4IhC,CAAC"}
@@ -56,6 +56,7 @@ export const CROWDY_STUDIO_STYLES = `
56
56
  .ck-crowdy-studio-section-header{display:flex;align-items:center;justify-content:space-between;color:var(--ck-muted);font-weight:700;text-transform:uppercase;font-size:11px;margin-bottom:4px}
57
57
  .ck-crowdy-studio-file{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px;align-items:center}
58
58
  .ck-crowdy-studio-file>button:first-child{text-align:left;overflow:hidden;text-overflow:ellipsis;border:0;background:transparent}
59
+ .ck-crowdy-studio-file>button[data-active=true]{color:#bae6fd}
59
60
  .ck-crowdy-studio-file-action{padding:1px 6px}
60
61
  .ck-crowdy-studio-file .ck-crowdy-studio-menu{left:auto;right:0;min-width:130px}
61
62
  .ck-crowdy-studio-inline-form{display:flex;flex-wrap:wrap;gap:4px;margin:4px 0;padding:6px;border:1px solid var(--ck-line);border-radius:4px;background:#0f172a}
@@ -1 +1 @@
1
- {"version":3,"file":"textarea-editor.d.ts","sourceRoot":"","sources":["../../src/crowdy-studio/textarea-editor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,yBAAyB,EACzB,2BAA2B,EAC5B,MAAM,aAAa,CAAC;AAGrB;;;;GAIG;AACH,wBAAgB,gCAAgC,CAC9C,IAAI,EAAE,WAAW,EACjB,SAAS,EAAE,2BAA2B,GACrC,yBAAyB,CAwD3B"}
1
+ {"version":3,"file":"textarea-editor.d.ts","sourceRoot":"","sources":["../../src/crowdy-studio/textarea-editor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,yBAAyB,EACzB,2BAA2B,EAC5B,MAAM,aAAa,CAAC;AAGrB;;;;GAIG;AACH,wBAAgB,gCAAgC,CAC9C,IAAI,EAAE,WAAW,EACjB,SAAS,EAAE,2BAA2B,GACrC,yBAAyB,CAuD3B"}
@@ -17,11 +17,14 @@ export function createTextareaCrowdyStudioEditor(host, callbacks) {
17
17
  let active = null;
18
18
  let disposed = false;
19
19
  const onInput = () => {
20
- if (disposed ||
21
- active?.source !== 'PROJECT' ||
22
- !active.target) {
20
+ if (disposed || !active)
21
+ return;
22
+ if (active.source === 'REPOSITORY') {
23
+ callbacks.onRepositoryFileChange?.(active.path, textarea.value);
23
24
  return;
24
25
  }
26
+ if (active.source !== 'PROJECT' || !active.target)
27
+ return;
25
28
  callbacks.onProjectFileChange(active.target, active.path, textarea.value);
26
29
  };
27
30
  textarea.addEventListener('input', onInput);
@@ -41,7 +44,7 @@ export function createTextareaCrowdyStudioEditor(host, callbacks) {
41
44
  return;
42
45
  }
43
46
  textarea.disabled = false;
44
- textarea.readOnly = next.source !== 'PROJECT';
47
+ textarea.readOnly = next.source !== 'PROJECT' && next.source !== 'REPOSITORY';
45
48
  textarea.dataset.target = next.target ?? 'SHARED';
46
49
  textarea.dataset.path = next.path;
47
50
  const content = contentFor(state, next);
@@ -59,6 +62,9 @@ export function createTextareaCrowdyStudioEditor(host, callbacks) {
59
62
  };
60
63
  }
61
64
  function contentFor(state, ref) {
65
+ if (ref.source === 'REPOSITORY') {
66
+ return state.repositoryDocuments?.find((file) => file.path === ref.path)?.content ?? '';
67
+ }
62
68
  if (ref.source === 'PROJECT') {
63
69
  return (state.project?.files.find((file) => file.target === ref.target && file.path === ref.path)?.content ?? '');
64
70
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * GENERATED — do not edit. The operator tooling's
3
- * `sync-client-origins.mjs --write --tier test` writes this file, and
3
+ * `sync-client-origins.mjs --write --tier dev` writes this file, and
4
4
  * `check-sdk-default-origin.mjs` refuses it when it names the wrong tier or a
5
5
  * host that declaration does not carry. Regenerate; never hand-edit.
6
6
  *
@@ -10,14 +10,14 @@
10
10
  * than no default at all. Every fallback this SDK ever removed named a host that
11
11
  * was already dead. A generated file plus a gate is what makes this one different.
12
12
  *
13
- * Source: the operator's per-tier public CK API origin declaration, tier 'test'
13
+ * Source: the operator's per-tier public CK API origin declaration, tier 'dev'
14
14
  */
15
15
  /** The tier this build of the SDK is published for. */
16
- export declare const CROWDY_DEFAULT_TIER = "test";
16
+ export declare const CROWDY_DEFAULT_TIER = "dev";
17
17
  /** The public CK API origin for that tier. */
18
- export declare const CROWDY_DEFAULT_HTTP_ORIGIN = "https://ck.test.crowdedkingdoms.com";
18
+ export declare const CROWDY_DEFAULT_HTTP_ORIGIN = "https://ck.dev.crowdedkingdoms.com";
19
19
  /** The same host over WebSocket. A scheme is composed; a hostname is looked up. */
20
- export declare const CROWDY_DEFAULT_WS_ORIGIN = "wss://ck.test.crowdedkingdoms.com";
20
+ export declare const CROWDY_DEFAULT_WS_ORIGIN = "wss://ck.dev.crowdedkingdoms.com";
21
21
  /** The bare hostname, for callers that need to compare rather than dial. */
22
- export declare const CROWDY_DEFAULT_HOST = "ck.test.crowdedkingdoms.com";
22
+ export declare const CROWDY_DEFAULT_HOST = "ck.dev.crowdedkingdoms.com";
23
23
  //# sourceMappingURL=default-origin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"default-origin.d.ts","sourceRoot":"","sources":["../src/default-origin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,uDAAuD;AACvD,eAAO,MAAM,mBAAmB,SAAS,CAAC;AAE1C,8CAA8C;AAC9C,eAAO,MAAM,0BAA0B,wCAAwC,CAAC;AAEhF,mFAAmF;AACnF,eAAO,MAAM,wBAAwB,sCAAsC,CAAC;AAE5E,4EAA4E;AAC5E,eAAO,MAAM,mBAAmB,gCAAgC,CAAC"}
1
+ {"version":3,"file":"default-origin.d.ts","sourceRoot":"","sources":["../src/default-origin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,uDAAuD;AACvD,eAAO,MAAM,mBAAmB,QAAQ,CAAC;AAEzC,8CAA8C;AAC9C,eAAO,MAAM,0BAA0B,uCAAuC,CAAC;AAE/E,mFAAmF;AACnF,eAAO,MAAM,wBAAwB,qCAAqC,CAAC;AAE3E,4EAA4E;AAC5E,eAAO,MAAM,mBAAmB,+BAA+B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * GENERATED — do not edit. The operator tooling's
3
- * `sync-client-origins.mjs --write --tier test` writes this file, and
3
+ * `sync-client-origins.mjs --write --tier dev` writes this file, and
4
4
  * `check-sdk-default-origin.mjs` refuses it when it names the wrong tier or a
5
5
  * host that declaration does not carry. Regenerate; never hand-edit.
6
6
  *
@@ -10,13 +10,13 @@
10
10
  * than no default at all. Every fallback this SDK ever removed named a host that
11
11
  * was already dead. A generated file plus a gate is what makes this one different.
12
12
  *
13
- * Source: the operator's per-tier public CK API origin declaration, tier 'test'
13
+ * Source: the operator's per-tier public CK API origin declaration, tier 'dev'
14
14
  */
15
15
  /** The tier this build of the SDK is published for. */
16
- export const CROWDY_DEFAULT_TIER = 'test';
16
+ export const CROWDY_DEFAULT_TIER = 'dev';
17
17
  /** The public CK API origin for that tier. */
18
- export const CROWDY_DEFAULT_HTTP_ORIGIN = 'https://ck.test.crowdedkingdoms.com';
18
+ export const CROWDY_DEFAULT_HTTP_ORIGIN = 'https://ck.dev.crowdedkingdoms.com';
19
19
  /** The same host over WebSocket. A scheme is composed; a hostname is looked up. */
20
- export const CROWDY_DEFAULT_WS_ORIGIN = 'wss://ck.test.crowdedkingdoms.com';
20
+ export const CROWDY_DEFAULT_WS_ORIGIN = 'wss://ck.dev.crowdedkingdoms.com';
21
21
  /** The bare hostname, for callers that need to compare rather than dial. */
22
- export const CROWDY_DEFAULT_HOST = 'ck.test.crowdedkingdoms.com';
22
+ export const CROWDY_DEFAULT_HOST = 'ck.dev.crowdedkingdoms.com';
@@ -3022,9 +3022,36 @@ export type CrowdyStudioGitHubAtCommitInput = {
3022
3022
  export declare enum CrowdyStudioGitHubBindInitial {
3023
3023
  /** The Studio project files are committed to the branch (with a crowdy.json when the repository has none). Refused with GITHUB_REPO_HAS_FILES when the repository already carries rust under the layout roots. */
3024
3024
  PushProject = "PUSH_PROJECT",
3025
- /** The repository is adopted as it is; the Studio project files are replaced by the rust under the layout roots at branch HEAD. Refused with GITHUB_REPO_EMPTY when there is nothing to take. */
3025
+ /** The repository is adopted as it is. Rust under the layout roots replaces the Studio project files. A Construct game is adopted at branch HEAD when it has no such rust, and the Studio mirror is cleared. Refused with GITHUB_REPO_EMPTY when the branch has neither. */
3026
3026
  TakeRepository = "TAKE_REPOSITORY"
3027
3027
  }
3028
+ /** The commit a multi-file write created. githubSha is now commitSha; every change in it landed, or none did. */
3029
+ export type CrowdyStudioGitHubCommit = {
3030
+ __typename?: 'CrowdyStudioGitHubCommit';
3031
+ commitSha: Scalars['String']['output'];
3032
+ /** Paths deleted. */
3033
+ deleted: Array<Scalars['String']['output']>;
3034
+ /** The expectedCommitSha it builds on. */
3035
+ parentSha: Scalars['String']['output'];
3036
+ /** Paths created or updated. */
3037
+ written: Array<Scalars['String']['output']>;
3038
+ };
3039
+ export type CrowdyStudioGitHubCommitChangeInput = {
3040
+ /** New UTF-8 content. Required unless delete is true. */
3041
+ content?: InputMaybe<Scalars['String']['input']>;
3042
+ /** Remove the path instead of writing it. */
3043
+ delete?: InputMaybe<Scalars['Boolean']['input']>;
3044
+ path: Scalars['String']['input'];
3045
+ };
3046
+ export type CrowdyStudioGitHubCommitFilesInput = {
3047
+ appId: Scalars['BigInt']['input'];
3048
+ /** 1 to 100 changes, one per path. */
3049
+ changes: Array<CrowdyStudioGitHubCommitChangeInput>;
3050
+ /** The project githubSha the writer drafted against. Refused with GITHUB_STALE_SHA when the project or the branch has moved on, and nothing is written. */
3051
+ expectedCommitSha: Scalars['String']['input'];
3052
+ message: Scalars['String']['input'];
3053
+ projectId: Scalars['String']['input'];
3054
+ };
3028
3055
  export type CrowdyStudioGitHubConnectStart = {
3029
3056
  __typename?: 'CrowdyStudioGitHubConnectStart';
3030
3057
  /** Install URL for this tier's App, carrying a signed state. */
@@ -3050,6 +3077,19 @@ export type CrowdyStudioGitHubFile = {
3050
3077
  /** Blob SHA; send it back on update. */
3051
3078
  sha: Scalars['String']['output'];
3052
3079
  };
3080
+ /** One file of a batched read. content is null when the blob is not UTF-8 text or is larger than this tier reads; size and sha are always set. */
3081
+ export type CrowdyStudioGitHubFileContent = {
3082
+ __typename?: 'CrowdyStudioGitHubFileContent';
3083
+ /** The blob is not valid UTF-8 text (or contains NUL). */
3084
+ binary: Scalars['Boolean']['output'];
3085
+ /** UTF-8 content, or null when binary or over the size cap. */
3086
+ content: Maybe<Scalars['String']['output']>;
3087
+ path: Scalars['String']['output'];
3088
+ /** Blob SHA at the commit read. */
3089
+ sha: Scalars['String']['output'];
3090
+ /** Blob size in bytes. */
3091
+ size: Scalars['Int']['output'];
3092
+ };
3053
3093
  export type CrowdyStudioGitHubFileInput = {
3054
3094
  appId: Scalars['BigInt']['input'];
3055
3095
  /** Full 40-hex commit to read at. Omitted reads the project githubSha (the mirror commit), never the branch head. */
@@ -3057,6 +3097,23 @@ export type CrowdyStudioGitHubFileInput = {
3057
3097
  path: Scalars['String']['input'];
3058
3098
  projectId: Scalars['String']['input'];
3059
3099
  };
3100
+ /** Several files of the bound repository at one commit, read in one call (one operation against the per-user GitHub budget). */
3101
+ export type CrowdyStudioGitHubFiles = {
3102
+ __typename?: 'CrowdyStudioGitHubFiles';
3103
+ /** Commit the files were read at. */
3104
+ commitSha: Scalars['String']['output'];
3105
+ files: Array<CrowdyStudioGitHubFileContent>;
3106
+ /** Requested paths that are not files at that commit. */
3107
+ missing: Array<Scalars['String']['output']>;
3108
+ };
3109
+ export type CrowdyStudioGitHubFilesInput = {
3110
+ appId: Scalars['BigInt']['input'];
3111
+ /** Full 40-hex commit to read at. Omitted reads the project githubSha (the mirror commit), never the branch head. */
3112
+ commitSha?: InputMaybe<Scalars['String']['input']>;
3113
+ /** Repo-relative paths, 1 to 100. */
3114
+ paths: Array<Scalars['String']['input']>;
3115
+ projectId: Scalars['String']['input'];
3116
+ };
3060
3117
  /** Where the SERVER and CLIENT crates live in the bound repository, resolved from crowdy.json (or inferred) at one commit. The only layout grammar: clients must not parse crowdy.json themselves. */
3061
3118
  export type CrowdyStudioGitHubLayout = {
3062
3119
  __typename?: 'CrowdyStudioGitHubLayout';
@@ -3068,9 +3125,18 @@ export type CrowdyStudioGitHubLayout = {
3068
3125
  commitSha: Scalars['String']['output'];
3069
3126
  /** A crowdy.json exists at the repository root. False means the layout was inferred from the tree. */
3070
3127
  fromFile: Scalars['Boolean']['output'];
3128
+ /** STUDIO_CRATES for a mod repository, CONSTRUCT_GAME for a Construct game with no Studio rust under the layout roots (the same test TAKE_REPOSITORY adopts by). */
3129
+ kind: CrowdyStudioGitHubLayoutKind;
3071
3130
  /** Directory of the SERVER Cargo.toml; `.` is the repository root. */
3072
3131
  server: Scalars['String']['output'];
3073
3132
  };
3133
+ /** What the bound repository is, at one commit. The server decides it from the tree; a client picks its editor from it and does not inspect the tree itself. */
3134
+ export declare enum CrowdyStudioGitHubLayoutKind {
3135
+ /** A game generated from the Construct template, with no Studio rust under the layout roots. The whole repository is the working tree, and the Studio mirror is empty. */
3136
+ ConstructGame = "CONSTRUCT_GAME",
3137
+ /** A Studio mod: the SERVER and CLIENT crates sit under the layout roots (or the repository is empty and the project will push them). */
3138
+ StudioCrates = "STUDIO_CRATES"
3139
+ }
3074
3140
  export type CrowdyStudioGitHubProjectInput = {
3075
3141
  appId: Scalars['BigInt']['input'];
3076
3142
  projectId: Scalars['String']['input'];
@@ -4747,8 +4813,10 @@ export type Mutation = {
4747
4813
  creditOrgWallet: WalletTransaction;
4748
4814
  /** Publish a new immutable version of an app-scoped Crowdy Studio-curated common file and make it the current player-readable version. Requires an app-scoped token plus the app manage_compute permission. Old versions remain immutable for provenance; an idempotency key is strongly recommended for transport retries. */
4749
4815
  crowdyStudioCommonPublish: CrowdyStudioCommonFile;
4750
- /** Bind a Crowdy Studio project you own to a repository granted to your installation, and make the two agree in one commit: PUSH_PROJECT commits the project files to the branch (refused with GITHUB_REPO_HAS_FILES when the branch already has rust under the layout roots); TAKE_REPOSITORY replaces the project files with the rust on the branch (refused with GITHUB_REPO_EMPTY when there is none). From then on the repository is the working tree and the project files are a mirror of it at githubSha. Identity session only. */
4816
+ /** Bind a Crowdy Studio project you own to a repository granted to your installation, and make the two agree in one commit: PUSH_PROJECT commits the project files to the branch (refused with GITHUB_REPO_HAS_FILES when the branch already has rust under the layout roots); TAKE_REPOSITORY replaces the project files with the rust on the branch, or adopts a Construct game that has none (refused with GITHUB_REPO_EMPTY when the branch has neither). From then on the repository is the working tree and the project files are a mirror of it at githubSha. Identity session only. */
4751
4817
  crowdyStudioGitHubBind: CrowdyStudioGitHubStatus;
4818
+ /** Write and delete up to 100 files of the bound repository as ONE commit on the bound branch, on top of expectedCommitSha. Refused with GITHUB_STALE_SHA, writing nothing, when the project or the branch has moved on. Project files under the layout roots move the mirror in the same transaction as githubSha. Workflow files and the deletion of crowdy.json are refused. */
4819
+ crowdyStudioGitHubCommitFiles: CrowdyStudioGitHubCommit;
4752
4820
  /** Install URL for this tier's Crowdy Studio GitHub App with a signed state. Identity session only. No GitHub token ever reaches the browser. */
4753
4821
  crowdyStudioGitHubConnectUrl: CrowdyStudioGitHubConnectStart;
4754
4822
  /** Delete one file from the bound repository as a commit on the bound branch, under the same blob-sha and expectedCommitSha guards as crowdyStudioGitHubPutFile. A project file leaves the mirror with it. crowdy.json cannot be deleted this way. */
@@ -5302,6 +5370,9 @@ export type MutationCrowdyStudioCommonPublishArgs = {
5302
5370
  export type MutationCrowdyStudioGitHubBindArgs = {
5303
5371
  input: BindCrowdyStudioGitHubInput;
5304
5372
  };
5373
+ export type MutationCrowdyStudioGitHubCommitFilesArgs = {
5374
+ input: CrowdyStudioGitHubCommitFilesInput;
5375
+ };
5305
5376
  export type MutationCrowdyStudioGitHubDeleteFileArgs = {
5306
5377
  input: CrowdyStudioGitHubDeleteFileInput;
5307
5378
  };
@@ -7013,6 +7084,8 @@ export type Query = {
7013
7084
  crowdyStudioCommonFiles: Array<CrowdyStudioCommonFile>;
7014
7085
  /** One UTF-8 file from the bound repository at one commit (default: githubSha), with its blob SHA. */
7015
7086
  crowdyStudioGitHubFile: CrowdyStudioGitHubFile;
7087
+ /** Up to 100 files of the bound repository at one commit (default: githubSha), for one operation against the per-user GitHub budget. A path that is not a file there is listed in missing; a blob that is not UTF-8 text, or is larger than this tier reads, comes back with content null and its sha and size. */
7088
+ crowdyStudioGitHubFiles: CrowdyStudioGitHubFiles;
7016
7089
  /** Where the SERVER and CLIENT crates live in the bound repository, resolved from crowdy.json (or inferred from the tree) at one commit. The only layout grammar: clients must not parse crowdy.json themselves. */
7017
7090
  crowdyStudioGitHubLayout: CrowdyStudioGitHubLayout;
7018
7091
  /** Repositories the caller granted to their Crowdy Studio installation. Identity session only. */
@@ -7023,6 +7096,8 @@ export type Query = {
7023
7096
  crowdyStudioGitHubTree: CrowdyStudioGitHubTree;
7024
7097
  /** List the authenticated player’s private reusable Crowdy Studio source files in one app. Requires an app-scoped token for appId; cross-user entries are never visible, including to grid owners or Crowdy Studio operators. The bounded result defaults to 50. */
7025
7098
  crowdyStudioLibraryFiles: Array<CrowdyStudioLibraryFile>;
7099
+ /** Whether this player may draft_test or deploy_live. Requires use_studio_agent and an enabled agent policy. A missing policy row, a kill switch, or a missing permission refuses. The dock calls this before either action. The Studio Test button does not. */
7100
+ crowdyStudioLiveModding: Scalars['Boolean']['output'];
7026
7101
  /** The caller's own model usage in this app: today's request count and rate-carded charge against the policy ceiling, the payer (PLAYER wallet by default, ORG when the app elected it, PLATFORM while platform-funded), and the most recent requests. Counts and charges only; no prompts or provider bodies exist to return. Requires 'use_studio_agent'. */
7027
7102
  crowdyStudioModelUsage: CrowdyStudioModelUsage;
7028
7103
  /** Load one private Crowdy Studio project with all bounded source files. Requires an app-scoped token for appId and exact caller ownership; missing, cross-app, and cross-user ids all return the same NOT_FOUND shape. Grid owners and Crowdy Studio operators receive no source override. */
@@ -7501,6 +7576,9 @@ export type QueryCrowdyStudioCommonFilesArgs = {
7501
7576
  export type QueryCrowdyStudioGitHubFileArgs = {
7502
7577
  input: CrowdyStudioGitHubFileInput;
7503
7578
  };
7579
+ export type QueryCrowdyStudioGitHubFilesArgs = {
7580
+ input: CrowdyStudioGitHubFilesInput;
7581
+ };
7504
7582
  export type QueryCrowdyStudioGitHubLayoutArgs = {
7505
7583
  input: CrowdyStudioGitHubAtCommitInput;
7506
7584
  };
@@ -7517,6 +7595,10 @@ export type QueryCrowdyStudioLibraryFilesArgs = {
7517
7595
  limit?: InputMaybe<Scalars['Int']['input']>;
7518
7596
  offset?: InputMaybe<Scalars['Int']['input']>;
7519
7597
  };
7598
+ export type QueryCrowdyStudioLiveModdingArgs = {
7599
+ action: Scalars['String']['input'];
7600
+ appId: Scalars['BigInt']['input'];
7601
+ };
7520
7602
  export type QueryCrowdyStudioModelUsageArgs = {
7521
7603
  appId: Scalars['BigInt']['input'];
7522
7604
  limit?: InputMaybe<Scalars['Int']['input']>;