create-theokit 3.0.23 → 3.0.25
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
|
@@ -4,7 +4,17 @@ node_modules/
|
|
|
4
4
|
.pnp.*
|
|
5
5
|
|
|
6
6
|
# theokit
|
|
7
|
-
.
|
|
7
|
+
# `.theokit/` holds the agent context you write AND what `theokit build` generates. The context
|
|
8
|
+
# (THEO.md, rules, personalities, skills, agents, commands, hooks.json) is versioned; build
|
|
9
|
+
# output, agent memory, local overrides and MCP tokens stay out (#1075).
|
|
10
|
+
.theokit/*
|
|
11
|
+
!.theokit/THEO.md
|
|
12
|
+
!.theokit/rules/
|
|
13
|
+
!.theokit/personalities/
|
|
14
|
+
!.theokit/skills/
|
|
15
|
+
!.theokit/agents/
|
|
16
|
+
!.theokit/commands/
|
|
17
|
+
!.theokit/hooks.json
|
|
8
18
|
dist/
|
|
9
19
|
|
|
10
20
|
# env files
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"typecheck": "tsc --noEmit"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"theokit": "^0.
|
|
19
|
+
"theokit": "^0.77.1",
|
|
20
20
|
"@theokit/agents": "^16.1.1",
|
|
21
21
|
"@theokit/sdk": "^5.11.0",
|
|
22
22
|
"@theokit/ui": "^1.1.0",
|
|
@@ -40,6 +40,6 @@
|
|
|
40
40
|
"prettier": "^3.0.0",
|
|
41
41
|
"typescript": "^5.5.0",
|
|
42
42
|
"typescript-eslint": "^8.0.0",
|
|
43
|
-
"vitest": "^
|
|
43
|
+
"vitest": "^5.1.0"
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -9,10 +9,15 @@
|
|
|
9
9
|
*
|
|
10
10
|
* 1. Create `src/server/jobs/<name>.ts` exporting `defineJob('<name>', ...)`
|
|
11
11
|
* 2. Add `'<name>': { ...inputShape }` below
|
|
12
|
-
* 3.
|
|
12
|
+
* 3. Set `jobs.backend` in `theo.config.ts` and uncomment the
|
|
13
|
+
* `RouteContext` block at the end of this file
|
|
14
|
+
* 4. Use `ctx.queue.enqueue('<name>', { ...input })` from any route handler
|
|
13
15
|
*
|
|
16
|
+
* The registry lives in `theokit/server/jobs`, the module `QueueClient` comes
|
|
17
|
+
* from, so it works in an app that imports only `theokit/server/<domain>`
|
|
18
|
+
* subpaths.
|
|
14
19
|
*/
|
|
15
|
-
declare module 'theokit/server' {
|
|
20
|
+
declare module 'theokit/server/jobs' {
|
|
16
21
|
interface JobRegistry {
|
|
17
22
|
// Add your jobs here. Examples (uncomment and customize):
|
|
18
23
|
//
|
|
@@ -21,4 +26,14 @@ declare module 'theokit/server' {
|
|
|
21
26
|
}
|
|
22
27
|
}
|
|
23
28
|
|
|
29
|
+
// `ctx.queue` exists on every route only when theo.config.ts sets
|
|
30
|
+
// `jobs.backend`, which is why this block starts commented out. Uncomment it
|
|
31
|
+
// once yours does, and `ctx.queue` is typed in `route().handler(({ ctx }) => ...)`:
|
|
32
|
+
//
|
|
33
|
+
// declare module 'theokit/server/define' {
|
|
34
|
+
// interface RouteContext {
|
|
35
|
+
// queue: import('theokit/server/jobs').QueueClient
|
|
36
|
+
// }
|
|
37
|
+
// }
|
|
38
|
+
|
|
24
39
|
export {}
|