@crowdedkingdoms/crowdyjs 18.22.0 → 18.23.1-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 +29 -3
- package/README.md +86 -64
- package/dist/crowdy-client.d.ts +18 -7
- package/dist/crowdy-client.d.ts.map +1 -1
- package/dist/crowdy-dsh/bridge.d.ts +72 -3
- package/dist/crowdy-dsh/bridge.d.ts.map +1 -1
- package/dist/crowdy-dsh/bridge.js +243 -12
- package/dist/crowdy-dsh/game-paths.d.ts +8 -0
- package/dist/crowdy-dsh/game-paths.d.ts.map +1 -0
- package/dist/crowdy-dsh/game-paths.js +20 -0
- package/dist/crowdy-dsh/pane.d.ts +18 -1
- package/dist/crowdy-dsh/pane.d.ts.map +1 -1
- package/dist/crowdy-dsh/pane.js +86 -2
- package/dist/crowdy-dsh/protocol.d.ts +165 -2
- package/dist/crowdy-dsh/protocol.d.ts.map +1 -1
- package/dist/crowdy-dsh/protocol.js +24 -1
- package/dist/crowdy-studio/controller.d.ts +100 -0
- package/dist/crowdy-studio/controller.d.ts.map +1 -1
- package/dist/crowdy-studio/controller.js +363 -1
- package/dist/crowdy-studio/dom-shell.d.ts +11 -0
- package/dist/crowdy-studio/dom-shell.d.ts.map +1 -1
- package/dist/crowdy-studio/dom-shell.js +182 -0
- package/dist/crowdy-studio/draft/github-draft-store.d.ts +143 -0
- package/dist/crowdy-studio/draft/github-draft-store.d.ts.map +1 -0
- package/dist/crowdy-studio/draft/github-draft-store.js +477 -0
- package/dist/crowdy-studio/draft/hash.d.ts +12 -0
- package/dist/crowdy-studio/draft/hash.d.ts.map +1 -0
- package/dist/crowdy-studio/draft/hash.js +25 -0
- package/dist/crowdy-studio/draft/index.d.ts +6 -0
- package/dist/crowdy-studio/draft/index.d.ts.map +1 -0
- package/dist/crowdy-studio/draft/index.js +5 -0
- package/dist/crowdy-studio/draft/overlay-storage.d.ts +48 -0
- package/dist/crowdy-studio/draft/overlay-storage.d.ts.map +1 -0
- package/dist/crowdy-studio/draft/overlay-storage.js +94 -0
- package/dist/crowdy-studio/draft/paths.d.ts +20 -0
- package/dist/crowdy-studio/draft/paths.d.ts.map +1 -0
- package/dist/crowdy-studio/draft/paths.js +54 -0
- package/dist/crowdy-studio/draft/types.d.ts +137 -0
- package/dist/crowdy-studio/draft/types.d.ts.map +1 -0
- package/dist/crowdy-studio/draft/types.js +29 -0
- package/dist/crowdy-studio/editor.d.ts +2 -0
- package/dist/crowdy-studio/editor.d.ts.map +1 -1
- package/dist/crowdy-studio/embed/panel.d.ts +8 -0
- package/dist/crowdy-studio/embed/panel.d.ts.map +1 -1
- package/dist/crowdy-studio/embed/panel.js +2 -0
- package/dist/crowdy-studio/github/index.d.ts +1 -1
- package/dist/crowdy-studio/github/index.d.ts.map +1 -1
- package/dist/crowdy-studio/github/transport.d.ts +59 -0
- package/dist/crowdy-studio/github/transport.d.ts.map +1 -1
- package/dist/crowdy-studio/github/transport.js +30 -1
- package/dist/crowdy-studio/index.d.ts +1 -0
- package/dist/crowdy-studio/index.d.ts.map +1 -1
- package/dist/crowdy-studio/index.js +1 -0
- package/dist/crowdy-studio/models.d.ts +1 -1
- package/dist/crowdy-studio/models.d.ts.map +1 -1
- package/dist/crowdy-studio/monaco-editor.d.ts.map +1 -1
- package/dist/crowdy-studio/monaco-editor.js +16 -0
- package/dist/crowdy-studio/mount.d.ts +2 -0
- package/dist/crowdy-studio/mount.d.ts.map +1 -1
- package/dist/crowdy-studio/mount.js +2 -0
- package/dist/crowdy-studio/repository-tree.d.ts +14 -0
- package/dist/crowdy-studio/repository-tree.d.ts.map +1 -0
- package/dist/crowdy-studio/repository-tree.js +45 -0
- 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 +1 -0
- package/dist/crowdy-studio/textarea-editor.d.ts.map +1 -1
- package/dist/crowdy-studio/textarea-editor.js +10 -4
- 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/domains/auth.d.ts +3 -3
- package/dist/domains/embedded-host.d.ts +19 -9
- package/dist/domains/embedded-host.d.ts.map +1 -1
- package/dist/domains/embedded-host.js +19 -9
- package/dist/domains/hosting.d.ts +12 -3
- package/dist/domains/hosting.d.ts.map +1 -1
- package/dist/domains/hosting.js +12 -3
- package/dist/domains/portal.d.ts +5 -3
- package/dist/domains/portal.d.ts.map +1 -1
- package/dist/domains/portal.js +1 -1
- package/dist/generated/graphql-schema.d.ts +84 -2
- package/dist/generated/graphql-schema.d.ts.map +1 -1
- package/dist/generated/graphql-schema.js +9 -1
- package/dist/hosting/index.d.ts +4 -0
- package/dist/hosting/index.d.ts.map +1 -1
- package/dist/hosting/index.js +4 -0
- package/dist/hosting/publish-directory.d.ts +11 -1
- package/dist/hosting/publish-directory.d.ts.map +1 -1
- package/dist/hosting/publish-directory.js +11 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- 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,
|
|
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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C,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,
|
|
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,
|
|
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
|
-
|
|
22
|
-
|
|
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
|
}
|
package/dist/default-origin.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* GENERATED — do not edit. The operator tooling's
|
|
3
|
-
* `sync-client-origins.mjs --write --tier
|
|
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 '
|
|
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 = "
|
|
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.
|
|
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.
|
|
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.
|
|
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,
|
|
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"}
|
package/dist/default-origin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* GENERATED — do not edit. The operator tooling's
|
|
3
|
-
* `sync-client-origins.mjs --write --tier
|
|
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 '
|
|
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 = '
|
|
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.
|
|
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.
|
|
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.
|
|
22
|
+
export const CROWDY_DEFAULT_HOST = 'ck.dev.crowdedkingdoms.com';
|
package/dist/domains/auth.d.ts
CHANGED
|
@@ -22,9 +22,9 @@ import type { AuthState } from '../auth-state.js';
|
|
|
22
22
|
* Part of the management surface.
|
|
23
23
|
*
|
|
24
24
|
* **FIRST-PARTY AND NON-BROWSER ONLY (ck-api v1.88.0, 2026-09-08).** Every
|
|
25
|
-
* public method here is served only to first-party browser origins (Studio
|
|
26
|
-
*
|
|
27
|
-
*
|
|
25
|
+
* public method here is served only to first-party browser origins (Studio)
|
|
26
|
+
* and to callers that send no `Origin` header at all (Node, CLI, tests,
|
|
27
|
+
* CrowdyCPP). From a browser game on its OWN domain they are
|
|
28
28
|
* refused with `HOSTED_SIGN_IN_REQUIRED` (`isHostedSignInRequiredError`), and
|
|
29
29
|
* that game signs its players in with `client.portal.signIn()` instead: the
|
|
30
30
|
* player types their password into Studio, never into the game, and the game
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The embedded-host bridge: how a game framed by the Crowdy Games SHELL
|
|
2
|
+
* The embedded-host bridge: how a game framed by the Crowdy Games SHELL signed in.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
4
|
+
* RETIRED. Crowded Kingdoms retired Crowdy Games, and the shell with it, on
|
|
5
|
+
* 2026-10-29. No first-party page frames a game any more, so `hello()` resolves null
|
|
6
|
+
* and `portal.signIn` takes the top-level flow. The bridge stays, deprecated and
|
|
7
|
+
* unchanged; the rest of this comment says how it works when a shell answers.
|
|
8
|
+
*
|
|
9
|
+
* A game published to Crowdy Games (`client.hosting`) was reached at
|
|
10
|
+
* `https://<games host>/<slug>/`, which was a first-party shell page, and executed
|
|
11
|
+
* inside that page's iframe on its own origin, `https://<slug>.<content host>`. Two
|
|
12
|
+
* things about that arrangement changed hosted sign-in, and this module is the whole
|
|
13
|
+
* of the change:
|
|
9
14
|
*
|
|
10
15
|
* 1. The game cannot navigate the tab. Its iframe has no `allow-top-navigation`
|
|
11
16
|
* (a game that could send the player to a lookalike sign-in page would have the
|
|
@@ -26,8 +31,8 @@
|
|
|
26
31
|
* spend. The app token is exchanged and stored by the game as before.
|
|
27
32
|
*
|
|
28
33
|
* WHY TRUSTING THE PARENT IS SAFE. The bridge accepts `crowdyjs:host-hello` only from
|
|
29
|
-
* `window.parent`. When
|
|
30
|
-
* `frame-ancestors`
|
|
34
|
+
* `window.parent`. When a game was served by the Crowdy Games content edge, its
|
|
35
|
+
* `frame-ancestors` named the tier's games host and nothing else, so the parent WAS the
|
|
31
36
|
* shell. A self-hosted game framed by a hostile page could be told a hostile
|
|
32
37
|
* `returnUrl` -- and Studio would refuse it, because it is not one of the app's
|
|
33
38
|
* registered redirect URIs; and even a code delivered to a registered-but-wrong page
|
|
@@ -35,7 +40,7 @@
|
|
|
35
40
|
* `returnUrl` whose origin is not https (or the parent's own origin, for a local dev
|
|
36
41
|
* shell), so the failure is loud rather than a silent detour.
|
|
37
42
|
*
|
|
38
|
-
* The message shapes
|
|
43
|
+
* The message shapes are the shell's protocol, version 1.
|
|
39
44
|
*/
|
|
40
45
|
export declare const EMBEDDED_HOST_PROTOCOL_VERSION = 1;
|
|
41
46
|
export interface HostHelloMessage {
|
|
@@ -90,6 +95,11 @@ export interface EmbeddedHostOptions {
|
|
|
90
95
|
* Detects and talks to a Crowdy Games shell framing this page. Constructed once by
|
|
91
96
|
* `createCrowdyClient` (see `CrowdyClientConfig.embeddedHost`); `portal.signIn`
|
|
92
97
|
* consults it.
|
|
98
|
+
*
|
|
99
|
+
* @deprecated Crowded Kingdoms no longer hosts games (retired 2026-10-29), and the
|
|
100
|
+
* Crowdy Games shell went with it: no first-party page answers `hello()`, which
|
|
101
|
+
* resolves null, so `portal.signIn` takes the top-level flow. Host your build on your
|
|
102
|
+
* own origin.
|
|
93
103
|
*/
|
|
94
104
|
export declare class EmbeddedHost {
|
|
95
105
|
private readonly win;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embedded-host.d.ts","sourceRoot":"","sources":["../../src/domains/embedded-host.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"embedded-host.d.ts","sourceRoot":"","sources":["../../src/domains/embedded-host.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AAEH,eAAO,MAAM,8BAA8B,IAAI,CAAC;AAEhD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,qBAAqB,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,6EAA6E;IAC7E,SAAS,EAAE,MAAM,CAAC;IAClB,qEAAqE;IACrE,eAAe,EAAE,MAAM,CAAC;IACxB,qCAAqC;IACrC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,6BAA6B,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,mBAAmB,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,4CAA4C;AAC5C,MAAM,WAAW,gBAAgB;IAC/B,6FAA6F;IAC7F,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,4EAA4E;AAC5E,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,OAAO,CAAC;IAChB,gBAAgB,CAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,GAAG,IAAI,CAAC;IACzF,mBAAmB,CAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,GAAG,IAAI,CAAC;IAC5F,QAAQ,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAChC;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,YAAY;IAC3B,WAAW,CAAC,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3D;AAED,MAAM,WAAW,mBAAmB;IAClC,4FAA4F;IAC5F,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAeD;;;;;;;;;GASG;AACH,qBAAa,YAAY;IAOrB,OAAO,CAAC,QAAQ,CAAC,GAAG;IANtB,OAAO,CAAC,IAAI,CAAiC;IAC7C,OAAO,CAAC,OAAO,CAAiD;IAChE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAwC;IACjE,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAS;gBAGrB,GAAG,GAAE,cAAc,GAAG,IAAsB,EAC7D,OAAO,GAAE,mBAAwB;IASnC,8FAA8F;IAC9F,QAAQ,IAAI,OAAO;IAUnB,wFAAwF;IACxF,OAAO,IAAI,gBAAgB,GAAG,IAAI;IAIlC;;;;OAIG;IACH,KAAK,CAAC,SAAS,SAAsB,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IA2BxE;;;OAGG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAU3B,KAAK,IAAI,IAAI;IAIb,OAAO,CAAC,OAAO,CAA6B;IAE5C,OAAO,CAAC,SAAS;IAmBjB;;;;OAIG;IACH,OAAO,CAAC,mBAAmB;CAQ5B"}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The embedded-host bridge: how a game framed by the Crowdy Games SHELL
|
|
2
|
+
* The embedded-host bridge: how a game framed by the Crowdy Games SHELL signed in.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
4
|
+
* RETIRED. Crowded Kingdoms retired Crowdy Games, and the shell with it, on
|
|
5
|
+
* 2026-10-29. No first-party page frames a game any more, so `hello()` resolves null
|
|
6
|
+
* and `portal.signIn` takes the top-level flow. The bridge stays, deprecated and
|
|
7
|
+
* unchanged; the rest of this comment says how it works when a shell answers.
|
|
8
|
+
*
|
|
9
|
+
* A game published to Crowdy Games (`client.hosting`) was reached at
|
|
10
|
+
* `https://<games host>/<slug>/`, which was a first-party shell page, and executed
|
|
11
|
+
* inside that page's iframe on its own origin, `https://<slug>.<content host>`. Two
|
|
12
|
+
* things about that arrangement changed hosted sign-in, and this module is the whole
|
|
13
|
+
* of the change:
|
|
9
14
|
*
|
|
10
15
|
* 1. The game cannot navigate the tab. Its iframe has no `allow-top-navigation`
|
|
11
16
|
* (a game that could send the player to a lookalike sign-in page would have the
|
|
@@ -26,8 +31,8 @@
|
|
|
26
31
|
* spend. The app token is exchanged and stored by the game as before.
|
|
27
32
|
*
|
|
28
33
|
* WHY TRUSTING THE PARENT IS SAFE. The bridge accepts `crowdyjs:host-hello` only from
|
|
29
|
-
* `window.parent`. When
|
|
30
|
-
* `frame-ancestors`
|
|
34
|
+
* `window.parent`. When a game was served by the Crowdy Games content edge, its
|
|
35
|
+
* `frame-ancestors` named the tier's games host and nothing else, so the parent WAS the
|
|
31
36
|
* shell. A self-hosted game framed by a hostile page could be told a hostile
|
|
32
37
|
* `returnUrl` -- and Studio would refuse it, because it is not one of the app's
|
|
33
38
|
* registered redirect URIs; and even a code delivered to a registered-but-wrong page
|
|
@@ -35,7 +40,7 @@
|
|
|
35
40
|
* `returnUrl` whose origin is not https (or the parent's own origin, for a local dev
|
|
36
41
|
* shell), so the failure is loud rather than a silent detour.
|
|
37
42
|
*
|
|
38
|
-
* The message shapes
|
|
43
|
+
* The message shapes are the shell's protocol, version 1.
|
|
39
44
|
*/
|
|
40
45
|
export const EMBEDDED_HOST_PROTOCOL_VERSION = 1;
|
|
41
46
|
const DEFAULT_HELLO_TIMEOUT_MS = 1500;
|
|
@@ -52,6 +57,11 @@ function isHostHello(data) {
|
|
|
52
57
|
* Detects and talks to a Crowdy Games shell framing this page. Constructed once by
|
|
53
58
|
* `createCrowdyClient` (see `CrowdyClientConfig.embeddedHost`); `portal.signIn`
|
|
54
59
|
* consults it.
|
|
60
|
+
*
|
|
61
|
+
* @deprecated Crowded Kingdoms no longer hosts games (retired 2026-10-29), and the
|
|
62
|
+
* Crowdy Games shell went with it: no first-party page answers `hello()`, which
|
|
63
|
+
* resolves null, so `portal.signIn` takes the top-level flow. Host your build on your
|
|
64
|
+
* own origin.
|
|
55
65
|
*/
|
|
56
66
|
export class EmbeddedHost {
|
|
57
67
|
constructor(win = defaultWindow(), options = {}) {
|
|
@@ -7,10 +7,11 @@ export type HostedGameUpload = BeginGamePublishResult['uploads'][number];
|
|
|
7
7
|
export type CompleteGamePublishResult = CompleteGamePublishMutation['completeGamePublish'];
|
|
8
8
|
export type { PublishFileInput };
|
|
9
9
|
/**
|
|
10
|
-
* Third-party game hosting on Crowdy Games (ck-api v2.1, 2026-09-13)
|
|
10
|
+
* Third-party game hosting on Crowdy Games (ck-api v2.1, 2026-09-13), retired on
|
|
11
|
+
* 2026-10-29.
|
|
11
12
|
*
|
|
12
|
-
* A developer
|
|
13
|
-
* `https://<games host>/<slug>/` (a first-party shell page) while it
|
|
13
|
+
* A developer published a built static bundle to the platform; players reached it at
|
|
14
|
+
* `https://<games host>/<slug>/` (a first-party shell page) while it executed on
|
|
14
15
|
* `https://<slug>.<content host>`, an origin of its own. The API returns both URLs
|
|
15
16
|
* (`launchUrl`, `contentOrigin`); nothing here spells a hostname.
|
|
16
17
|
*
|
|
@@ -23,6 +24,10 @@ export type { PublishFileInput };
|
|
|
23
24
|
* PUT every file to its presigned URL with exactly the returned headers ->
|
|
24
25
|
* `completePublish`. `@crowdedkingdoms/crowdyjs/hosting`'s `publishDirectory` does
|
|
25
26
|
* the last three steps for a `dist/` directory in Node.
|
|
27
|
+
*
|
|
28
|
+
* @deprecated Crowded Kingdoms no longer hosts games (retired 2026-10-29); the hosting
|
|
29
|
+
* API answers `CONTENT_HOSTING_DISABLED` on every tier, and its reads return null or an
|
|
30
|
+
* empty list. Host your build on your own origin.
|
|
26
31
|
*/
|
|
27
32
|
export declare class HostingAPI {
|
|
28
33
|
private readonly api;
|
|
@@ -60,6 +65,10 @@ export declare class HostingAPI {
|
|
|
60
65
|
* Upload every file of a publish to its presigned URL, with bounded concurrency and
|
|
61
66
|
* a retry per file. Works in Node 20+ and in a browser (`fetch`, `Blob`/`Uint8Array`
|
|
62
67
|
* bodies). `read(path)` returns the bytes for a manifest path.
|
|
68
|
+
*
|
|
69
|
+
* @deprecated Crowded Kingdoms no longer hosts games (retired 2026-10-29); `beginPublish`,
|
|
70
|
+
* which issues the presigned URLs, answers `CONTENT_HOSTING_DISABLED` on every tier.
|
|
71
|
+
* Host your build on your own origin.
|
|
63
72
|
*/
|
|
64
73
|
export declare function uploadPublishFiles(uploads: HostedGameUpload[], read: (path: string) => Promise<Uint8Array | Blob>, options?: {
|
|
65
74
|
concurrency?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hosting.d.ts","sourceRoot":"","sources":["../../src/domains/hosting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAUL,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC7B,KAAK,+BAA+B,EACpC,KAAK,gBAAgB,EACtB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,UAAU,GAAG,wBAAwB,CAAC;AAClD,MAAM,MAAM,iBAAiB,GAAG,+BAA+B,CAAC;AAChE,MAAM,MAAM,sBAAsB,GAAG,wBAAwB,CAAC,kBAAkB,CAAC,CAAC;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,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAK3E;;;;;OAKG;IACG,KAAK,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,UAAU,CAAC;IAO1E,6DAA6D;IACvD,YAAY,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,gBAAgB,EAAE,CAAA;KAAE,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAKxG,gDAAgD;IAC1C,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAKpF,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAKjF,qDAAqD;IAC/C,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC;CAItE;AAED;;;;;;;;GAQG;AACH,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,gBAAgB,EAAE,EAC3B,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,EAClD,OAAO,GAAE;IAAE,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,KAAK,IAAI,CAAA;CAAO,GACrG,OAAO,CAAC,IAAI,CAAC,CAoCf"}
|
package/dist/domains/hosting.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { AbandonGamePublishDocument, BeginGamePublishDocument, ClaimGameHostingDocument, CompleteGamePublishDocument, HostedGameDocument, HostedGamePublishesDocument, HostedGamesDocument, MyHostedGamesDocument, SetHostedGameEnabledDocument, } from '../generated/graphql.js';
|
|
2
2
|
/**
|
|
3
|
-
* Third-party game hosting on Crowdy Games (ck-api v2.1, 2026-09-13)
|
|
3
|
+
* Third-party game hosting on Crowdy Games (ck-api v2.1, 2026-09-13), retired on
|
|
4
|
+
* 2026-10-29.
|
|
4
5
|
*
|
|
5
|
-
* A developer
|
|
6
|
-
* `https://<games host>/<slug>/` (a first-party shell page) while it
|
|
6
|
+
* A developer published a built static bundle to the platform; players reached it at
|
|
7
|
+
* `https://<games host>/<slug>/` (a first-party shell page) while it executed on
|
|
7
8
|
* `https://<slug>.<content host>`, an origin of its own. The API returns both URLs
|
|
8
9
|
* (`launchUrl`, `contentOrigin`); nothing here spells a hostname.
|
|
9
10
|
*
|
|
@@ -16,6 +17,10 @@ import { AbandonGamePublishDocument, BeginGamePublishDocument, ClaimGameHostingD
|
|
|
16
17
|
* PUT every file to its presigned URL with exactly the returned headers ->
|
|
17
18
|
* `completePublish`. `@crowdedkingdoms/crowdyjs/hosting`'s `publishDirectory` does
|
|
18
19
|
* the last three steps for a `dist/` directory in Node.
|
|
20
|
+
*
|
|
21
|
+
* @deprecated Crowded Kingdoms no longer hosts games (retired 2026-10-29); the hosting
|
|
22
|
+
* API answers `CONTENT_HOSTING_DISABLED` on every tier, and its reads return null or an
|
|
23
|
+
* empty list. Host your build on your own origin.
|
|
19
24
|
*/
|
|
20
25
|
export class HostingAPI {
|
|
21
26
|
constructor(api) {
|
|
@@ -77,6 +82,10 @@ export class HostingAPI {
|
|
|
77
82
|
* Upload every file of a publish to its presigned URL, with bounded concurrency and
|
|
78
83
|
* a retry per file. Works in Node 20+ and in a browser (`fetch`, `Blob`/`Uint8Array`
|
|
79
84
|
* bodies). `read(path)` returns the bytes for a manifest path.
|
|
85
|
+
*
|
|
86
|
+
* @deprecated Crowded Kingdoms no longer hosts games (retired 2026-10-29); `beginPublish`,
|
|
87
|
+
* which issues the presigned URLs, answers `CONTENT_HOSTING_DISABLED` on every tier.
|
|
88
|
+
* Host your build on your own origin.
|
|
80
89
|
*/
|
|
81
90
|
export async function uploadPublishFiles(uploads, read, options = {}) {
|
|
82
91
|
const concurrency = Math.max(1, options.concurrency ?? 8);
|
package/dist/domains/portal.d.ts
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* THIS IS THE ONLY WAY A BROWSER GAME ON ITS OWN DOMAIN SIGNS A PLAYER IN
|
|
26
26
|
* (ck-api v1.88.0, 2026-09-08). The direct sign-in mutations behind
|
|
27
27
|
* `client.auth.login` / `register` / magic link / social are served only to
|
|
28
|
-
* first-party origins (Studio
|
|
28
|
+
* first-party origins (Studio); from any other browser
|
|
29
29
|
* origin they are refused with `HOSTED_SIGN_IN_REQUIRED`
|
|
30
30
|
* ({@link isHostedSignInRequiredError}). The reason is the player's password:
|
|
31
31
|
* a form on a customer's domain that collects it is indistinguishable, to the
|
|
@@ -182,12 +182,14 @@ export interface SignInParams {
|
|
|
182
182
|
* `false` to only compute and return the URL without navigating (tests,
|
|
183
183
|
* SSR, a custom link). Default: navigate with `location.assign` when a
|
|
184
184
|
* browser `location` exists -- or, when a Crowdy Games shell frames this page,
|
|
185
|
-
* ask the shell to navigate (see `embedded-host.ts`).
|
|
185
|
+
* ask the shell to navigate (see `embedded-host.ts`). The shell was retired on
|
|
186
|
+
* 2026-10-29, so no first-party page frames a game any more.
|
|
186
187
|
*/
|
|
187
188
|
navigate?: boolean;
|
|
188
189
|
/**
|
|
189
190
|
* `false` to ignore a framing Crowdy Games shell and run the top-level flow with
|
|
190
|
-
* the given `redirectUri` even when embedded. Default: consult the shell.
|
|
191
|
+
* the given `redirectUri` even when embedded. Default: consult the shell. The
|
|
192
|
+
* shell was retired on 2026-10-29, so no first-party page answers any more.
|
|
191
193
|
*/
|
|
192
194
|
embedded?: boolean;
|
|
193
195
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portal.d.ts","sourceRoot":"","sources":["../../src/domains/portal.ts"],"names":[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gBAAgB,GAAG,OAAO,CAAC,MAAM,CAAC;IAa3D;;;;;;OAMG;IACG,sBAAsB,CAC1B,MAAM,CAAC,EAAE,MAAM,EACf,OAAO,CAAC,EAAE;QAAE,YAAY,CAAC,EAAE,OAAO,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,GACtD,OAAO,CAAC,MAAM,CAAC;IAoClB;;;;;OAKG;IACG,aAAa,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;CAmBvE"}
|
package/dist/domains/portal.js
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* THIS IS THE ONLY WAY A BROWSER GAME ON ITS OWN DOMAIN SIGNS A PLAYER IN
|
|
26
26
|
* (ck-api v1.88.0, 2026-09-08). The direct sign-in mutations behind
|
|
27
27
|
* `client.auth.login` / `register` / magic link / social are served only to
|
|
28
|
-
* first-party origins (Studio
|
|
28
|
+
* first-party origins (Studio); from any other browser
|
|
29
29
|
* origin they are refused with `HOSTED_SIGN_IN_REQUIRED`
|
|
30
30
|
* ({@link isHostedSignInRequiredError}). The reason is the player's password:
|
|
31
31
|
* a form on a customer's domain that collects it is indistinguishable, to the
|