@cogenta/cli 0.1.0 → 0.1.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/LICENSE ADDED
@@ -0,0 +1,373 @@
1
+ Mozilla Public License Version 2.0
2
+ ==================================
3
+
4
+ 1. Definitions
5
+ --------------
6
+
7
+ 1.1. "Contributor"
8
+ means each individual or legal entity that creates, contributes to
9
+ the creation of, or owns Covered Software.
10
+
11
+ 1.2. "Contributor Version"
12
+ means the combination of the Contributions of others (if any) used
13
+ by a Contributor and that particular Contributor's Contribution.
14
+
15
+ 1.3. "Contribution"
16
+ means Covered Software of a particular Contributor.
17
+
18
+ 1.4. "Covered Software"
19
+ means Source Code Form to which the initial Contributor has attached
20
+ the notice in Exhibit A, the Executable Form of such Source Code
21
+ Form, and Modifications of such Source Code Form, in each case
22
+ including portions thereof.
23
+
24
+ 1.5. "Incompatible With Secondary Licenses"
25
+ means
26
+
27
+ (a) that the initial Contributor has attached the notice described
28
+ in Exhibit B to the Covered Software; or
29
+
30
+ (b) that the Covered Software was made available under the terms of
31
+ version 1.1 or earlier of the License, but not also under the
32
+ terms of a Secondary License.
33
+
34
+ 1.6. "Executable Form"
35
+ means any form of the work other than Source Code Form.
36
+
37
+ 1.7. "Larger Work"
38
+ means a work that combines Covered Software with other material, in
39
+ a separate file or files, that is not Covered Software.
40
+
41
+ 1.8. "License"
42
+ means this document.
43
+
44
+ 1.9. "Licensable"
45
+ means having the right to grant, to the maximum extent possible,
46
+ whether at the time of the initial grant or subsequently, any and
47
+ all of the rights conveyed by this License.
48
+
49
+ 1.10. "Modifications"
50
+ means any of the following:
51
+
52
+ (a) any file in Source Code Form that results from an addition to,
53
+ deletion from, or modification of the contents of Covered
54
+ Software; or
55
+
56
+ (b) any new file in Source Code Form that contains any Covered
57
+ Software.
58
+
59
+ 1.11. "Patent Claims" of a Contributor
60
+ means any patent claim(s), including without limitation, method,
61
+ process, and apparatus claims, in any patent Licensable by such
62
+ Contributor that would be infringed, but for the grant of the
63
+ License, by the making, using, selling, offering for sale, having
64
+ made, import, or transfer of either its Contributions or its
65
+ Contributor Version.
66
+
67
+ 1.12. "Secondary License"
68
+ means either the GNU General Public License, Version 2.0, the GNU
69
+ Lesser General Public License, Version 2.1, the GNU Affero General
70
+ Public License, Version 3.0, or any later versions of those
71
+ licenses.
72
+
73
+ 1.13. "Source Code Form"
74
+ means the form of the work preferred for making modifications.
75
+
76
+ 1.14. "You" (or "Your")
77
+ means an individual or a legal entity exercising rights under this
78
+ License. For legal entities, "You" includes any entity that
79
+ controls, is controlled by, or is under common control with You. For
80
+ purposes of this definition, "control" means (a) the power, direct
81
+ or indirect, to cause the direction or management of such entity,
82
+ whether by contract or otherwise, or (b) ownership of more than
83
+ fifty percent (50%) of the outstanding shares or beneficial
84
+ ownership of such entity.
85
+
86
+ 2. License Grants and Conditions
87
+ --------------------------------
88
+
89
+ 2.1. Grants
90
+
91
+ Each Contributor hereby grants You a world-wide, royalty-free,
92
+ non-exclusive license:
93
+
94
+ (a) under intellectual property rights (other than patent or trademark)
95
+ Licensable by such Contributor to use, reproduce, make available,
96
+ modify, display, perform, distribute, and otherwise exploit its
97
+ Contributions, either on an unmodified basis, with Modifications, or
98
+ as part of a Larger Work; and
99
+
100
+ (b) under Patent Claims of such Contributor to make, use, sell, offer
101
+ for sale, have made, import, and otherwise transfer either its
102
+ Contributions or its Contributor Version.
103
+
104
+ 2.2. Effective Date
105
+
106
+ The licenses granted in Section 2.1 with respect to any Contribution
107
+ become effective for each Contribution on the date the Contributor first
108
+ distributes such Contribution.
109
+
110
+ 2.3. Limitations on Grant Scope
111
+
112
+ The licenses granted in this Section 2 are the only rights granted under
113
+ this License. No additional rights or licenses will be implied from the
114
+ distribution or licensing of Covered Software under this License.
115
+ Notwithstanding Section 2.1(b) above, no patent license is granted by a
116
+ Contributor:
117
+
118
+ (a) for any code that a Contributor has removed from Covered Software;
119
+ or
120
+
121
+ (b) for infringements caused by: (i) Your and any other third party's
122
+ modifications of Covered Software, or (ii) the combination of its
123
+ Contributions with other software (except as part of its Contributor
124
+ Version); or
125
+
126
+ (c) under Patent Claims infringed by Covered Software in the absence of
127
+ its Contributions.
128
+
129
+ This License does not grant any rights in the trademarks, service marks,
130
+ or logos of any Contributor (except as may be necessary to comply with
131
+ the notice requirements in Section 3.4).
132
+
133
+ 2.4. Subsequent Licenses
134
+
135
+ No Contributor makes additional grants as a result of Your choice to
136
+ distribute the Covered Software under a subsequent version of this
137
+ License (see Section 10.2) or under the terms of a Secondary License (if
138
+ permitted under the terms of Section 3.3).
139
+
140
+ 2.5. Representation
141
+
142
+ Each Contributor represents that the Contributor believes its
143
+ Contributions are its original creation(s) or it has sufficient rights
144
+ to grant the rights to its Contributions conveyed by this License.
145
+
146
+ 2.6. Fair Use
147
+
148
+ This License is not intended to limit any rights You have under
149
+ applicable copyright doctrines of fair use, fair dealing, or other
150
+ equivalents.
151
+
152
+ 2.7. Conditions
153
+
154
+ Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
155
+ in Section 2.1.
156
+
157
+ 3. Responsibilities
158
+ -------------------
159
+
160
+ 3.1. Distribution of Source Form
161
+
162
+ All distribution of Covered Software in Source Code Form, including any
163
+ Modifications that You create or to which You contribute, must be under
164
+ the terms of this License. You must inform recipients that the Source
165
+ Code Form of the Covered Software is governed by the terms of this
166
+ License, and how they can obtain a copy of this License. You may not
167
+ attempt to alter or restrict the recipients' rights in the Source Code
168
+ Form.
169
+
170
+ 3.2. Distribution of Executable Form
171
+
172
+ If You distribute Covered Software in Executable Form then:
173
+
174
+ (a) such Covered Software must also be made available in Source Code
175
+ Form, as described in Section 3.1, and You must inform recipients of
176
+ the Executable Form how they can obtain a copy of such Source Code
177
+ Form by reasonable means in a timely manner, at a charge no more
178
+ than the cost of distribution to the recipient; and
179
+
180
+ (b) You may distribute such Executable Form under the terms of this
181
+ License, or sublicense it under different terms, provided that the
182
+ license for the Executable Form does not attempt to limit or alter
183
+ the recipients' rights in the Source Code Form under this License.
184
+
185
+ 3.3. Distribution of a Larger Work
186
+
187
+ You may create and distribute a Larger Work under terms of Your choice,
188
+ provided that You also comply with the requirements of this License for
189
+ the Covered Software. If the Larger Work is a combination of Covered
190
+ Software with a work governed by one or more Secondary Licenses, and the
191
+ Covered Software is not Incompatible With Secondary Licenses, this
192
+ License permits You to additionally distribute such Covered Software
193
+ under the terms of such Secondary License(s), so that the recipient of
194
+ the Larger Work may, at their option, further distribute the Covered
195
+ Software under the terms of either this License or such Secondary
196
+ License(s).
197
+
198
+ 3.4. Notices
199
+
200
+ You may not remove or alter the substance of any license notices
201
+ (including copyright notices, patent notices, disclaimers of warranty,
202
+ or limitations of liability) contained within the Source Code Form of
203
+ the Covered Software, except that You may alter any license notices to
204
+ the extent required to remedy known factual inaccuracies.
205
+
206
+ 3.5. Application of Additional Terms
207
+
208
+ You may choose to offer, and to charge a fee for, warranty, support,
209
+ indemnity or liability obligations to one or more recipients of Covered
210
+ Software. However, You may do so only on Your own behalf, and not on
211
+ behalf of any Contributor. You must make it absolutely clear that any
212
+ such warranty, support, indemnity, or liability obligation is offered by
213
+ You alone, and You hereby agree to indemnify every Contributor for any
214
+ liability incurred by such Contributor as a result of warranty, support,
215
+ indemnity or liability terms You offer. You may include additional
216
+ disclaimers of warranty and limitations of liability specific to any
217
+ jurisdiction.
218
+
219
+ 4. Inability to Comply Due to Statute or Regulation
220
+ ---------------------------------------------------
221
+
222
+ If it is impossible for You to comply with any of the terms of this
223
+ License with respect to some or all of the Covered Software due to
224
+ statute, judicial order, or regulation then You must: (a) comply with
225
+ the terms of this License to the maximum extent possible; and (b)
226
+ describe the limitations and the code they affect. Such description must
227
+ be placed in a text file included with all distributions of the Covered
228
+ Software under this License. Except to the extent prohibited by statute
229
+ or regulation, such description must be sufficiently detailed for a
230
+ recipient of ordinary skill to be able to understand it.
231
+
232
+ 5. Termination
233
+ --------------
234
+
235
+ 5.1. The rights granted under this License will terminate automatically
236
+ if You fail to comply with any of its terms. However, if You become
237
+ compliant, then the rights granted under this License from a particular
238
+ Contributor are reinstated (a) provisionally, unless and until such
239
+ Contributor explicitly and finally terminates Your grants, and (b) on an
240
+ ongoing basis, if such Contributor fails to notify You of the
241
+ non-compliance by some reasonable means prior to 60 days after You have
242
+ come back into compliance. Moreover, Your grants from a particular
243
+ Contributor are reinstated on an ongoing basis if such Contributor
244
+ notifies You of the non-compliance by some reasonable means, this is the
245
+ first time You have received notice of non-compliance with this License
246
+ from such Contributor, and You become compliant prior to 30 days after
247
+ Your receipt of the notice.
248
+
249
+ 5.2. If You initiate litigation against any entity by asserting a patent
250
+ infringement claim (excluding declaratory judgment actions,
251
+ counter-claims, and cross-claims) alleging that a Contributor Version
252
+ directly or indirectly infringes any patent, then the rights granted to
253
+ You by any and all Contributors for the Covered Software under Section
254
+ 2.1 of this License shall terminate.
255
+
256
+ 5.3. In the event of termination under Sections 5.1 or 5.2 above, all
257
+ end user license agreements (excluding distributors and resellers) which
258
+ have been validly granted by You or Your distributors under this License
259
+ prior to termination shall survive termination.
260
+
261
+ ************************************************************************
262
+ * *
263
+ * 6. Disclaimer of Warranty *
264
+ * ------------------------- *
265
+ * *
266
+ * Covered Software is provided under this License on an "as is" *
267
+ * basis, without warranty of any kind, either expressed, implied, or *
268
+ * statutory, including, without limitation, warranties that the *
269
+ * Covered Software is free of defects, merchantable, fit for a *
270
+ * particular purpose or non-infringing. The entire risk as to the *
271
+ * quality and performance of the Covered Software is with You. *
272
+ * Should any Covered Software prove defective in any respect, You *
273
+ * (not any Contributor) assume the cost of any necessary servicing, *
274
+ * repair, or correction. This disclaimer of warranty constitutes an *
275
+ * essential part of this License. No use of any Covered Software is *
276
+ * authorized under this License except under this disclaimer. *
277
+ * *
278
+ ************************************************************************
279
+
280
+ ************************************************************************
281
+ * *
282
+ * 7. Limitation of Liability *
283
+ * -------------------------- *
284
+ * *
285
+ * Under no circumstances and under no legal theory, whether tort *
286
+ * (including negligence), contract, or otherwise, shall any *
287
+ * Contributor, or anyone who distributes Covered Software as *
288
+ * permitted above, be liable to You for any direct, indirect, *
289
+ * special, incidental, or consequential damages of any character *
290
+ * including, without limitation, damages for lost profits, loss of *
291
+ * goodwill, work stoppage, computer failure or malfunction, or any *
292
+ * and all other commercial damages or losses, even if such party *
293
+ * shall have been informed of the possibility of such damages. This *
294
+ * limitation of liability shall not apply to liability for death or *
295
+ * personal injury resulting from such party's negligence to the *
296
+ * extent applicable law prohibits such limitation. Some *
297
+ * jurisdictions do not allow the exclusion or limitation of *
298
+ * incidental or consequential damages, so this exclusion and *
299
+ * limitation may not apply to You. *
300
+ * *
301
+ ************************************************************************
302
+
303
+ 8. Litigation
304
+ -------------
305
+
306
+ Any litigation relating to this License may be brought only in the
307
+ courts of a jurisdiction where the defendant maintains its principal
308
+ place of business and such litigation shall be governed by laws of that
309
+ jurisdiction, without reference to its conflict-of-law provisions.
310
+ Nothing in this Section shall prevent a party's ability to bring
311
+ cross-claims or counter-claims.
312
+
313
+ 9. Miscellaneous
314
+ ----------------
315
+
316
+ This License represents the complete agreement concerning the subject
317
+ matter hereof. If any provision of this License is held to be
318
+ unenforceable, such provision shall be reformed only to the extent
319
+ necessary to make it enforceable. Any law or regulation which provides
320
+ that the language of a contract shall be construed against the drafter
321
+ shall not be used to construe this License against a Contributor.
322
+
323
+ 10. Versions of the License
324
+ ---------------------------
325
+
326
+ 10.1. New Versions
327
+
328
+ Mozilla Foundation is the license steward. Except as provided in Section
329
+ 10.3, no one other than the license steward has the right to modify or
330
+ publish new versions of this License. Each version will be given a
331
+ distinguishing version number.
332
+
333
+ 10.2. Effect of New Versions
334
+
335
+ You may distribute the Covered Software under the terms of the version
336
+ of the License under which You originally received the Covered Software,
337
+ or under the terms of any subsequent version published by the license
338
+ steward.
339
+
340
+ 10.3. Modified Versions
341
+
342
+ If you create software not governed by this License, and you want to
343
+ create a new license for such software, you may create and use a
344
+ modified version of this License if you rename the license and remove
345
+ any references to the name of the license steward (except to note that
346
+ such modified license differs from this License).
347
+
348
+ 10.4. Distributing Source Code Form that is Incompatible With Secondary
349
+ Licenses
350
+
351
+ If You choose to distribute Source Code Form that is Incompatible With
352
+ Secondary Licenses under the terms of this version of the License, the
353
+ notice described in Exhibit B of this License must be attached.
354
+
355
+ Exhibit A - Source Code Form License Notice
356
+ -------------------------------------------
357
+
358
+ This Source Code Form is subject to the terms of the Mozilla Public
359
+ License, v. 2.0. If a copy of the MPL was not distributed with this
360
+ file, You can obtain one at https://mozilla.org/MPL/2.0/.
361
+
362
+ If it is not possible or desirable to put the notice in a particular
363
+ file, then You may include the notice in a location (such as a LICENSE
364
+ file in a relevant directory) where a recipient would be likely to look
365
+ for such a notice.
366
+
367
+ You may add additional accurate notices of copyright ownership.
368
+
369
+ Exhibit B - "Incompatible With Secondary Licenses" Notice
370
+ ---------------------------------------------------------
371
+
372
+ This Source Code Form is "Incompatible With Secondary Licenses", as
373
+ defined by the Mozilla Public License, v. 2.0.
package/dist/bin.js CHANGED
File without changes
@@ -31,6 +31,15 @@ interface Site {
31
31
  readonly gateway: ReturnType<typeof createContentGateway>;
32
32
  /** `.cogenta/schema.json`'s in-memory twin — the admin's only view of the collections (never the schema modules themselves, which are Node code). */
33
33
  readonly schemaDocument: SchemaDocument;
34
+ readonly collections: readonly CollectionDefinition[];
35
+ readonly site: {
36
+ readonly name: string;
37
+ readonly url: string;
38
+ readonly locales: readonly string[];
39
+ readonly defaultLocale: string;
40
+ };
41
+ /** `null` when the project has no `theme.tokens.json` — the theme-render fallback serves unstyled HTML rather than refusing. */
42
+ readonly skinCss: string | null;
34
43
  /** Live, not cached: a driver that just went down must show as down the next time this is called, not until the process restarts. */
35
44
  readonly health: () => Promise<{
36
45
  readonly database: HealthReport;
@@ -1 +1 @@
1
- {"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../../src/commands/serve.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,eAAe,EAAE,KAAK,cAAc,EAAE,MAAM,WAAW,CAAA;AAInF,OAAO,EAEL,KAAK,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,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,wFAAwF;IACxF,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;IAC/D,+DAA+D;IAC/D,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAA;IAC7B;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAC5B;AAKD;;;;GAIG;AACH,wBAAsB,QAAQ,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,CAsFrE"}
@@ -1,3 +1,4 @@
1
+ import { readFile } from 'node:fs/promises';
1
2
  import { createServer } from 'node:http';
2
3
  import { dirname, join } from 'node:path';
3
4
  import process from 'node:process';
@@ -6,6 +7,7 @@ import { buildContentSchema, createAgentsRouter, createAuditRouter, createAuthRo
6
7
  import { createAuthStore } from '@cogenta/auth';
7
8
  import { CogentaError, createDatabaseMediaStore, createDatabaseRegistry, createLogger, createStorageRegistry, isCogentaError, loadConfig, } from '@cogenta/core';
8
9
  import { buildSchemaDocument, createContentStore, createRedirectStore, createSchemaTables, withReadOnlyStore, } from '@cogenta/schema';
10
+ import { loadSkinCss, renderRequestedPage } from './theme-render.js';
9
11
  const SCHEMA_FILE_CANDIDATES = [
10
12
  'cogenta.schema.ts',
11
13
  'cogenta.schema.mts',
@@ -86,7 +88,9 @@ agents,
86
88
  * instead of landing — wrapped once here, at the one place both transports'
87
89
  * stores are actually constructed, so neither can bypass it.
88
90
  */
89
- readOnly = false) {
91
+ readOnly = false,
92
+ /** `null` when `theme.tokens.json` is absent or invalid — see `loadSkinCss`. */
93
+ skinCss = null) {
90
94
  await createSchemaTables(db, collections);
91
95
  const stores = new Map();
92
96
  const storeFor = (collection) => {
@@ -98,6 +102,14 @@ readOnly = false) {
98
102
  stores.set(collection.name, stored);
99
103
  return stored;
100
104
  };
105
+ // The gateway (below) reads `stores` directly rather than through
106
+ // `storeFor` — REST's own lazy population left it empty for any
107
+ // collection no REST request had touched yet, which the theme-render
108
+ // fallback (an early GraphQL-gateway caller, not a REST one) hit on its
109
+ // very first request. Populating eagerly here means both callers see the
110
+ // same, already-complete map.
111
+ for (const collection of collections)
112
+ storeFor(collection);
101
113
  const redirects = createRedirectStore({ db });
102
114
  await redirects.ensureTable();
103
115
  const permissions = createPermissionLayer({ collections });
@@ -131,6 +143,9 @@ readOnly = false) {
131
143
  locales: site.locales,
132
144
  defaultLocale: site.defaultLocale,
133
145
  }),
146
+ collections,
147
+ site,
148
+ skinCss,
134
149
  health,
135
150
  dispose: async () => {
136
151
  await db.close();
@@ -424,6 +439,23 @@ export function createRequestListener(site, logger) {
424
439
  res.end(JSON.stringify({ data: health }));
425
440
  return;
426
441
  }
442
+ // Real theme HTML for anything else — see `theme-render.ts`'s own
443
+ // doc comment for what this is and, as importantly, what it isn't
444
+ // (no Astro build, one theme, no image pipeline). GET only: rendering
445
+ // a page has no meaningful response to any other method.
446
+ if (req.method === 'GET') {
447
+ const html = await renderRequestedPage(url.pathname, {
448
+ collections: site.collections,
449
+ gateway: site.gateway,
450
+ site: site.site,
451
+ skinCss: site.skinCss,
452
+ }, context);
453
+ if (html !== null) {
454
+ res.writeHead(200, { 'content-type': 'text/html; charset=utf-8' });
455
+ res.end(html);
456
+ return;
457
+ }
458
+ }
427
459
  res.writeHead(404, { 'content-type': 'application/json; charset=utf-8' });
428
460
  res.end(JSON.stringify({
429
461
  error: { code: 'CONTENT_NOT_FOUND', message: 'No route matches this path.' },
@@ -479,7 +511,8 @@ export async function runServe(options) {
479
511
  }
480
512
  const selection = await createDatabaseRegistry({ logger }).select(loaded.config.database);
481
513
  const storageSelection = await createStorageRegistry({ logger }).select(loaded.config.storage);
482
- const site = await assembleSite(selection.instance, collections, loaded.config.auth.signingKey, loaded.config.site, storageSelection.instance, async () => ({ database: await selection.health(), storage: await storageSelection.health() }), undefined, options.readOnly ?? false);
514
+ const skinCss = await loadSkinCss((path) => readFile(path, 'utf8'), join(projectRoot, 'theme.tokens.json'));
515
+ const site = await assembleSite(selection.instance, collections, loaded.config.auth.signingKey, loaded.config.site, storageSelection.instance, async () => ({ database: await selection.health(), storage: await storageSelection.health() }), undefined, options.readOnly ?? false, skinCss);
483
516
  const server = createServer(createRequestListener(site, logger));
484
517
  const port = options.port ?? DEFAULT_PORT;
485
518
  const host = options.host ?? DEFAULT_HOST;
@@ -1 +1 @@
1
- {"version":3,"file":"serve.js","sourceRoot":"","sources":["../../src/commands/serve.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAA6C,MAAM,WAAW,CAAA;AACnF,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,OAAO,MAAM,cAAc,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,EAML,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,EACrB,gBAAgB,EAChB,cAAc,EAKd,YAAY,GACb,MAAM,cAAc,CAAA;AACrB,OAAO,EAAkB,eAAe,EAAE,MAAM,eAAe,CAAA;AAC/D,OAAO,EACL,YAAY,EACZ,wBAAwB,EACxB,sBAAsB,EACtB,YAAY,EACZ,qBAAqB,EAGrB,cAAc,EAEd,UAAU,GAGX,MAAM,eAAe,CAAA;AACtB,OAAO,EACL,mBAAmB,EAGnB,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAElB,iBAAiB,GAClB,MAAM,iBAAiB,CAAA;AAIxB,MAAM,sBAAsB,GAAG;IAC7B,mBAAmB;IACnB,oBAAoB;IACpB,oBAAoB;IACpB,mBAAmB;CACpB,CAAA;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,K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api';
2
+ import { type CollectionDefinition } from '@cogenta/schema';
3
+ /**
4
+ * Real HTML for a matched route — the piece the lot's own gap notes named
5
+ * honestly ("`cogenta build`/`theme` not built yet"): until a real Astro site
6
+ * exists (ADR-0008, contract D's actual intended delivery plane), `cogenta
7
+ * serve` renders the one theme this codebase has, `@cogenta/theme-canonical`,
8
+ * directly against the same permission-checked `ContentGateway` every REST
9
+ * and GraphQL request already goes through. No secret, config or DB handle
10
+ * ever reaches theme code — only the same `ContentEntry` shape a real HTTP
11
+ * client would receive, so the data boundary R5 cares about holds even
12
+ * in-process. This is a deliberately scoped stand-in, not the Astro pipeline:
13
+ * one theme, no build step, no static generation.
14
+ */
15
+ export interface ThemeRenderOptions {
16
+ readonly collections: readonly CollectionDefinition[];
17
+ readonly gateway: ContentGateway;
18
+ readonly site: {
19
+ readonly name: string;
20
+ readonly url: string;
21
+ readonly locales: readonly string[];
22
+ readonly defaultLocale: string;
23
+ };
24
+ /** `null` when the project has no `theme.tokens.json` — served unstyled rather than refused. */
25
+ readonly skinCss: string | null;
26
+ }
27
+ /**
28
+ * Resolves `pathname` against the site's real routes and renders the real
29
+ * page, or returns `null` — never for "matched but nothing found", only for
30
+ * "no route matches" or "matched but nothing published there", both of which
31
+ * the caller turns into the same 404 an unmatched `/api/*` request already
32
+ * gets.
33
+ */
34
+ export declare function renderRequestedPage(pathname: string, options: ThemeRenderOptions, context: AccessContext): Promise<string | null>;
35
+ /**
36
+ * Reads `theme.tokens.json` next to the config and renders it through the
37
+ * real, already-tested `renderSkin` (contract D validation + `--cogenta-*`
38
+ * stylesheet) — never a second, hand-rolled token-to-CSS mapping. Absent or
39
+ * invalid tokens degrade to unstyled HTML rather than refusing to serve.
40
+ */
41
+ export declare function loadSkinCss(readFile: (path: string) => Promise<string>, tokensPath: string): Promise<string | null>;
42
+ //# sourceMappingURL=theme-render.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme-render.d.ts","sourceRoot":"","sources":["../../src/commands/theme-render.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAwB,MAAM,cAAc,CAAA;AAIvF,OAAO,EAAa,KAAK,oBAAoB,EAAgC,MAAM,iBAAiB,CAAA;AAgEpG;;;;;;;;;;;GAWG;AAEH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,WAAW,EAAE,SAAS,oBAAoB,EAAE,CAAA;IACrD,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAA;IAChC,QAAQ,CAAC,IAAI,EAAE;QACb,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;QACrB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;QACpB,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;QACnC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;KAC/B,CAAA;IACD,gGAAgG;IAChG,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CAChC;AAkGD;;;;;;GAMG;AACH,wBAAsB,mBAAmB,CACvC,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAmHxB;AAED;;;;;GAKG;AACH,wBAAsB,WAAW,CAC/B,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,EAC3C,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAOxB"}
@@ -0,0 +1,243 @@
1
+ import { CogentaError } from '@cogenta/core';
2
+ import { renderSkin } from '@cogenta/render';
3
+ import { buildPath, matchPath } from '@cogenta/schema';
4
+ import { query as collectionListQuery, renderPage, serialize, } from '@cogenta/theme-canonical';
5
+ /**
6
+ * The theme's own `ContentEntry`/`QueryRequest` (`theme-contract.ts`) are a
7
+ * deliberately separate, minimal public contract — a theme never imports
8
+ * `@cogenta/api`'s richer internal types (that boundary is the whole point
9
+ * of ADR-0016). These two functions are the only place this file crosses it.
10
+ */
11
+ function toThemeEntry(entry, collection) {
12
+ return {
13
+ id: entry.id,
14
+ collection,
15
+ locale: entry.locale,
16
+ status: entry.status,
17
+ ...entry.values,
18
+ };
19
+ }
20
+ function toApiFilter(flat) {
21
+ if (flat === undefined)
22
+ return undefined;
23
+ const conditions = Object.entries(flat).map(([field, value]) => ({
24
+ field,
25
+ operator: 'eq',
26
+ value,
27
+ }));
28
+ if (conditions.length === 0)
29
+ return undefined;
30
+ return conditions.length === 1 ? conditions[0] : { and: conditions };
31
+ }
32
+ function toApiQueryRequest(request) {
33
+ const filter = toApiFilter(request.filter);
34
+ return {
35
+ collection: request.collection,
36
+ ...(filter === undefined ? {} : { filter }),
37
+ ...(request.sort === undefined ? {} : { sort: [request.sort] }),
38
+ ...(request.limit === undefined ? {} : { limit: request.limit }),
39
+ ...(request.cursor === undefined ? {} : { after: request.cursor }),
40
+ };
41
+ }
42
+ async function listAsTheme(gateway, request, context) {
43
+ const page = await gateway.list(toApiQueryRequest(request), context);
44
+ return {
45
+ items: page.items.map((entry) => toThemeEntry(entry, request.collection)),
46
+ nextCursor: page.nextCursor,
47
+ };
48
+ }
49
+ function fieldOfKind(collection, kind) {
50
+ return Object.entries(collection.fields).find(([, field]) => field.kind === kind)?.[0];
51
+ }
52
+ function toVocabularyBlocks(entry, collection) {
53
+ const blocksField = fieldOfKind(collection, 'blocks');
54
+ if (blocksField !== undefined) {
55
+ const zone = entry.blocks[blocksField] ?? [];
56
+ return zone.map((block) => ({
57
+ _key: block.key,
58
+ _type: block.type,
59
+ _version: '1.0.0',
60
+ ...block.data,
61
+ }));
62
+ }
63
+ // No blocks field: a collection like `post`, whose body is `richText`
64
+ // rather than a block zone, gets its content wrapped in a single real
65
+ // `prose` block — the exact portable-text shape prose already renders,
66
+ // reused rather than a second serialiser for the same data.
67
+ const richTextField = fieldOfKind(collection, 'richText');
68
+ if (richTextField === undefined)
69
+ return [];
70
+ return [
71
+ {
72
+ _key: 'body',
73
+ _type: 'prose',
74
+ _version: '1.0.0',
75
+ body: entry.values[richTextField],
76
+ },
77
+ ];
78
+ }
79
+ function entryTitle(entry) {
80
+ const value = entry.values['title'];
81
+ return typeof value === 'string' && value.trim() !== '' ? value : entry.id;
82
+ }
83
+ async function fetchOne(gateway, request, context) {
84
+ const page = await gateway.list({ ...request, limit: 1 }, context);
85
+ return page.items[0] ?? null;
86
+ }
87
+ /**
88
+ * Matches `pathname` against the site's real routes and fetches the one
89
+ * published entry there, or `null` for "no route" or "nothing published" —
90
+ * the two callers (`renderRequestedPage` and its own `content.byPath`) share
91
+ * this rather than each re-deriving the same filter from `match.params`.
92
+ */
93
+ async function resolveEntry(pathname, options, context) {
94
+ const match = matchPath(options.collections, pathname, {
95
+ locales: options.site.locales,
96
+ defaultLocale: options.site.defaultLocale,
97
+ });
98
+ if (match === null)
99
+ return null;
100
+ const collection = options.collections.find((entry) => entry.name === match.collection);
101
+ if (collection === undefined)
102
+ return null;
103
+ const conditions = Object.entries(match.params).map(([field, value]) => ({
104
+ field,
105
+ operator: 'eq',
106
+ value,
107
+ }));
108
+ const filter = conditions.length === 1
109
+ ? conditions[0]
110
+ : conditions.length > 1
111
+ ? { and: conditions }
112
+ : undefined;
113
+ const entry = await fetchOne(options.gateway, {
114
+ collection: match.collection,
115
+ ...(filter === undefined ? {} : { filter }),
116
+ ...(match.locale === null ? {} : { locale: match.locale }),
117
+ }, context);
118
+ return entry === null ? null : { collection, entry };
119
+ }
120
+ /**
121
+ * Resolves `pathname` against the site's real routes and renders the real
122
+ * page, or returns `null` — never for "matched but nothing found", only for
123
+ * "no route matches" or "matched but nothing published there", both of which
124
+ * the caller turns into the same 404 an unmatched `/api/*` request already
125
+ * gets.
126
+ */
127
+ export async function renderRequestedPage(pathname, options, context) {
128
+ const resolved = await resolveEntry(pathname, options, context);
129
+ if (resolved === null)
130
+ return null;
131
+ const { collection, entry } = resolved;
132
+ const blocks = toVocabularyBlocks(entry, collection);
133
+ // Every entry a `collectionList` block needs is fetched up front — the
134
+ // theme's own contract (`FetchedEntries`, `render-block.ts`) requires it:
135
+ // `renderBlock` is a pure, synchronous function, so nothing inside it can
136
+ // await a query, and `link()` below must resolve an id to a URL without one
137
+ // either.
138
+ const fetchedEntries = {};
139
+ const knownEntries = new Map([[entry.id, entry]]);
140
+ for (const block of blocks) {
141
+ if (block._type !== 'collectionList')
142
+ continue;
143
+ const themeQuery = collectionListQuery(block);
144
+ const results = await options.gateway.list(toApiQueryRequest(themeQuery), context);
145
+ fetchedEntries[block._key] = results.items.map((found) => toThemeEntry(found, themeQuery.collection));
146
+ for (const found of results.items)
147
+ knownEntries.set(found.id, found);
148
+ }
149
+ const collectionsByName = new Map(options.collections.map((entry) => [entry.name, entry]));
150
+ const link = (target) => {
151
+ if (typeof target === 'string')
152
+ return target;
153
+ if ('path' in target)
154
+ return target.path;
155
+ const found = knownEntries.get(target.id);
156
+ const targetCollection = collectionsByName.get(target.collection);
157
+ if (found === undefined || targetCollection === undefined) {
158
+ // Not among the entries this render already fetched — the honest
159
+ // answer is "unresolvable here", not a guess. A real Astro site would
160
+ // resolve this ahead of render from its own link-graph; this stand-in
161
+ // doesn't build one.
162
+ return '#';
163
+ }
164
+ return buildPath(targetCollection, Object.fromEntries(Object.entries(found.values).filter((pair) => typeof pair[1] === 'string')), found.locale ?? undefined);
165
+ };
166
+ const themeContext = {
167
+ site: options.site,
168
+ locale: entry.locale,
169
+ url: new URL(pathname, options.site.url),
170
+ t: (key) => key,
171
+ // No image pipeline exists yet (`@cogenta/render`'s `images/`) wired to
172
+ // this in-process path — a theme that asks for one gets a clear refusal,
173
+ // not a broken <img>.
174
+ image: () => {
175
+ throw new CogentaError({
176
+ code: 'THEME_IMAGE_UNSUPPORTED',
177
+ message: 'cogenta serve cannot render images yet.',
178
+ hint: 'No image pipeline is wired into this in-process rendering fallback (no real Astro build exists yet). Avoid mediaFigure/gallery blocks until it is.',
179
+ });
180
+ },
181
+ link,
182
+ content: {
183
+ entry: async (collectionName, id) => {
184
+ const found = knownEntries.get(id);
185
+ return found === undefined ? null : toThemeEntry(found, collectionName);
186
+ },
187
+ byPath: async (path) => {
188
+ const match = matchPath(options.collections, path, {
189
+ locales: options.site.locales,
190
+ defaultLocale: options.site.defaultLocale,
191
+ });
192
+ if (match === null)
193
+ return null;
194
+ const conditions = Object.entries(match.params).map(([field, value]) => ({
195
+ field,
196
+ operator: 'eq',
197
+ value,
198
+ }));
199
+ const found = await fetchOne(options.gateway, {
200
+ collection: match.collection,
201
+ ...(conditions.length === 0
202
+ ? {}
203
+ : { filter: conditions.length === 1 ? conditions[0] : { and: conditions } }),
204
+ ...(match.locale === null ? {} : { locale: match.locale }),
205
+ }, context);
206
+ return found === null ? null : toThemeEntry(found, match.collection);
207
+ },
208
+ list: (request) => listAsTheme(options.gateway, request, context),
209
+ },
210
+ };
211
+ const pageContent = { title: entryTitle(entry), blocks };
212
+ const node = renderPage(pageContent, themeContext, fetchedEntries);
213
+ const bodyHtml = serialize(node);
214
+ return `<!doctype html>
215
+ <html lang="${themeContext.locale}">
216
+ <head>
217
+ <meta charset="utf-8">
218
+ <meta name="viewport" content="width=device-width, initial-scale=1">
219
+ <title>${pageContent.title} — ${options.site.name}</title>
220
+ ${options.skinCss === null ? '' : `<style>${options.skinCss}</style>`}
221
+ </head>
222
+ <body>
223
+ ${bodyHtml}
224
+ </body>
225
+ </html>
226
+ `;
227
+ }
228
+ /**
229
+ * Reads `theme.tokens.json` next to the config and renders it through the
230
+ * real, already-tested `renderSkin` (contract D validation + `--cogenta-*`
231
+ * stylesheet) — never a second, hand-rolled token-to-CSS mapping. Absent or
232
+ * invalid tokens degrade to unstyled HTML rather than refusing to serve.
233
+ */
234
+ export async function loadSkinCss(readFile, tokensPath) {
235
+ try {
236
+ const raw = JSON.parse(await readFile(tokensPath));
237
+ return renderSkin(raw).css;
238
+ }
239
+ catch {
240
+ return null;
241
+ }
242
+ }
243
+ //# sourceMappingURL=theme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EAGnE,QAAQ;;;CAGT,CAAA;AACD,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,QAA2C,EAC3C,UAAkB;IAElB,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,UAAU,CAAC,CAAY,CAAA;QAC7D,OAAO,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,CAAA;IAC5B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAA;IACb,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cogenta/cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "The Cogenta command line: diagnose an install, run migrations, inspect drivers.",
5
5
  "license": "MPL-2.0",
6
6
  "type": "module",
@@ -28,26 +28,26 @@
28
28
  "url": "git+https://github.com/cogenta-cms/cogenta.git",
29
29
  "directory": "packages/cli"
30
30
  },
31
+ "dependencies": {
32
+ "graphql": "^17.0.2",
33
+ "@cogenta/api": "0.1.1",
34
+ "@cogenta/blocks": "0.1.1",
35
+ "@cogenta/agents": "0.1.1",
36
+ "@cogenta/auth": "0.1.1",
37
+ "@cogenta/render": "0.1.1",
38
+ "@cogenta/schema": "0.1.1",
39
+ "@cogenta/core": "0.1.1",
40
+ "@cogenta/theme-canonical": "0.1.1",
41
+ "@cogenta/import": "0.1.1"
42
+ },
43
+ "devDependencies": {
44
+ "typescript": "^7.0.2",
45
+ "vitest": "^4.1.10"
46
+ },
31
47
  "scripts": {
32
48
  "build": "tsc -p tsconfig.json",
33
49
  "typecheck": "tsc -p tsconfig.typecheck.json",
34
50
  "test": "vitest run --passWithNoTests",
35
51
  "test:integration": "vitest run --config vitest.integration.config.ts --passWithNoTests"
36
- },
37
- "dependencies": {
38
- "@cogenta/agents": "workspace:*",
39
- "@cogenta/api": "workspace:*",
40
- "@cogenta/auth": "workspace:*",
41
- "@cogenta/blocks": "workspace:*",
42
- "@cogenta/core": "workspace:*",
43
- "@cogenta/import": "workspace:*",
44
- "@cogenta/render": "workspace:*",
45
- "@cogenta/schema": "workspace:*",
46
- "@cogenta/theme-canonical": "workspace:*",
47
- "graphql": "catalog:"
48
- },
49
- "devDependencies": {
50
- "typescript": "catalog:",
51
- "vitest": "catalog:"
52
52
  }
53
- }
53
+ }