create-theokit 0.9.0 → 0.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-theokit",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "type": "module",
5
5
  "description": "Scaffold a new TheoKit project",
6
6
  "license": "Apache-2.0",
@@ -1,30 +1,25 @@
1
1
  /**
2
- * TheoKit App — opinionated, React-first.
2
+ * TheoKit App — opinionated, React-first, full-stack AI agents.
3
3
  *
4
- * React SSR renders app/page.tsx inside app/layout.tsx.
5
- * Backend classes registered in server/index.ts.
6
- * Routes inferred from class names. Zero manual wiring.
4
+ * To customize: edit app/layout.tsx (head, title, meta)
5
+ * edit app/page.tsx (page content)
6
+ * edit server/ (controllers, agents, toolboxes)
7
7
  */
8
8
  import 'reflect-metadata'
9
- import { renderToString } from 'react-dom/server'
10
9
  import { TheoApp } from '@theokit/http/app'
11
10
  import { TasksController, AssistantAgent, TaskTools } from './server/index.js'
12
11
  import Layout from './app/layout.js'
13
12
  import Page from './app/page.js'
14
13
 
15
- const html =
16
- '<!DOCTYPE html>' +
17
- renderToString(
18
- <Layout>
19
- <Page />
20
- </Layout>,
21
- )
22
-
23
14
  const app = await TheoApp.create({
24
15
  controllers: [TasksController],
25
16
  agents: [AssistantAgent],
26
17
  providers: [TaskTools],
27
- html,
18
+ root: (
19
+ <Layout>
20
+ <Page />
21
+ </Layout>
22
+ ),
28
23
  })
29
24
 
30
25
  await app.listen(3000)