create-theokit 1.25.3 → 2.0.0-next.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/dist/cli.js +53 -54
- package/dist/cli.js.map +1 -1
- package/package.json +8 -1
- package/templates/_bot-preset/{agents → src/server/agents}/tools/publish.ts +1 -1
- package/templates/_bot-preset/{server → src/server}/crons/daily-research.ts +2 -2
- package/templates/default/AGENTS.md.tmpl +58 -0
- package/templates/default/CLAUDE.md +4 -4
- package/templates/default/README.md.tmpl +56 -30
- package/templates/default/docs/ARCHITECTURE.md +103 -58
- package/templates/default/docs/CUSTOMIZATION.md +10 -10
- package/templates/default/docs/ENVIRONMENT.md +6 -6
- package/templates/default/dot-claude/skills/theokit-frontend/SKILL.md +1 -1
- package/templates/default/dot-claude/skills/theokit-gateways/SKILL.md +1 -1
- package/templates/default/dot-claude/skills/theokit-routes/SKILL.md +1 -1
- package/templates/default/dot-claude/skills/theokit-ui/SKILL.md +1 -1
- package/templates/default/dot-theokit/THEO.md +54 -0
- package/templates/default/dot-theokit/personalities/README.md +35 -0
- package/templates/default/dot-theokit/personalities/concise.md +14 -0
- package/templates/default/dot-theokit/personalities/teacher.md +17 -0
- package/templates/default/dot-theokit/rules/README.md +30 -0
- package/templates/default/dot-theokit/rules/server-routes.md +16 -0
- package/templates/default/package.json.tmpl +2 -2
- package/templates/default/{agents → src/server/agents}/chat.ts +6 -0
- package/templates/default/src/server/agents/hooks/tool-audit.ts +75 -0
- package/templates/default/theo.config.ts +18 -1
- package/templates/default/tsconfig.json +4 -5
- /package/templates/_bot-preset/{agents → src/server/agents}/lib/bot-scope.ts +0 -0
- /package/templates/_bot-preset/{agents → src/server/agents}/lib/sandbox.ts +0 -0
- /package/templates/_bot-preset/{agents → src/server/agents}/publisher.ts +0 -0
- /package/templates/_bot-preset/{agents → src/server/agents}/researcher.ts +0 -0
- /package/templates/_bot-preset/{agents → src/server/agents}/tools/read-notes.ts +0 -0
- /package/templates/_bot-preset/{agents → src/server/agents}/tools/write-note.ts +0 -0
- /package/templates/_bot-preset/{server → src/server}/delivery.ts +0 -0
- /package/templates/default/{app → src/app}/about/page.tsx +0 -0
- /package/templates/default/{app → src/app}/components/ChatPanel.tsx +0 -0
- /package/templates/default/{app → src/app}/components/Composer.tsx +0 -0
- /package/templates/default/{app → src/app}/components/Header.tsx +0 -0
- /package/templates/default/{app → src/app}/components/Nav.tsx +0 -0
- /package/templates/default/{app → src/app}/error.tsx +0 -0
- /package/templates/default/{app → src/app}/hooks/use-transcript.test.ts +0 -0
- /package/templates/default/{app → src/app}/hooks/use-transcript.ts +0 -0
- /package/templates/default/{app → src/app}/layout.tsx +0 -0
- /package/templates/default/{app → src/app}/lib/constants.ts +0 -0
- /package/templates/default/{app → src/app}/lib/renderable.ts +0 -0
- /package/templates/default/{app → src/app}/loading.tsx +0 -0
- /package/templates/default/{app → src/app}/not-found.tsx +0 -0
- /package/templates/default/{app → src/app}/page.test.tsx +0 -0
- /package/templates/default/{app → src/app}/page.tsx +0 -0
- /package/templates/default/{agents → src/server/agents}/prompts/instructions.ts +0 -0
- /package/templates/default/{agents → src/server/agents}/skills/daily-briefing.ts +0 -0
- /package/templates/default/{agents → src/server/agents}/tools/current-time.ts +0 -0
- /package/templates/default/{agents → src/server/agents}/tools/send-notification.ts +0 -0
- /package/templates/default/{agents → src/server/agents}/tools/weather.ts +0 -0
- /package/templates/default/{server → src/server}/routes/health.ts +0 -0
- /package/templates/default/{shared → src/shared}/agent.ts +0 -0
|
@@ -1,3 +1,20 @@
|
|
|
1
1
|
import { config } from 'theokit'
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* The project has two surfaces, and one of them is the whole backend.
|
|
5
|
+
*
|
|
6
|
+
* `src/app` is the interface. `src/server` is everything that only runs on the server — and agents
|
|
7
|
+
* are part of that, not a third surface beside it. An agent shares this project's context, auth,
|
|
8
|
+
* services and infrastructure with every controller and route; a layout that puts `agents/` beside
|
|
9
|
+
* `server/` suggests two backends and invites both to grow their own copy of all four.
|
|
10
|
+
*
|
|
11
|
+
* The paths are declared rather than inherited. The defaults are still the flat layout
|
|
12
|
+
* (`app`, `server`, `agents`), so a project that says nothing keeps working exactly as before —
|
|
13
|
+
* writing them down is what lets this scaffold move without waiting for a major, and what stops a
|
|
14
|
+
* future default change from silently relocating anyone's code.
|
|
15
|
+
*/
|
|
16
|
+
export default config()
|
|
17
|
+
.appDir('src/app')
|
|
18
|
+
.serverDir('src/server')
|
|
19
|
+
.agentsDir('src/server/agents')
|
|
20
|
+
.build()
|
|
@@ -14,11 +14,10 @@
|
|
|
14
14
|
"emitDecoratorMetadata": true
|
|
15
15
|
},
|
|
16
16
|
"include": [
|
|
17
|
-
"app/**/*.ts",
|
|
18
|
-
"app/**/*.tsx",
|
|
19
|
-
"server/**/*.ts",
|
|
20
|
-
"
|
|
21
|
-
"shared/**/*.ts",
|
|
17
|
+
"src/app/**/*.ts",
|
|
18
|
+
"src/app/**/*.tsx",
|
|
19
|
+
"src/server/**/*.ts",
|
|
20
|
+
"src/shared/**/*.ts",
|
|
22
21
|
".theokit/**/*.d.ts",
|
|
23
22
|
"types/**/*.d.ts"
|
|
24
23
|
]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|