create-theokit 1.5.1 → 1.6.0

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": "1.5.1",
3
+ "version": "1.6.0",
4
4
  "type": "module",
5
5
  "description": "Scaffold a new TheoKit project",
6
6
  "license": "Apache-2.0",
@@ -25,7 +25,10 @@ export default agent()
25
25
  .system(BASE_INSTRUCTIONS)
26
26
  .tool(weatherTool)
27
27
  .tool(currentTimeTool)
28
- // `defineSkillReadTool` exposes the skills to the model as an on-demand `skill_read` tool the model
29
- // sees each skill's name + description and loads the full body only when it needs it.
28
+ // `.skills([...])` registers the code-defined skill: the SDK lists its name + description in a
29
+ // `<skills>` block in every system prompt (cheap), so the model KNOWS the skill exists.
30
+ .skills([dailyBriefingSkill])
31
+ // `defineSkillReadTool` then gives the model a `skill_read` tool to load the full body on demand —
32
+ // so a long procedure only enters the prompt when the model actually needs it.
30
33
  .tool(defineSkillReadTool([dailyBriefingSkill]))
31
34
  .build()
@@ -16,6 +16,6 @@ export const BASE_INSTRUCTIONS = `You are a helpful assistant living inside a Th
16
16
  what failed and what you need (e.g. a valid city or IANA timezone).
17
17
 
18
18
  ## Skills
19
- - You have a \`skill_read\` tool that lists documented procedures (skills). When a request matches a
20
- skill's description e.g. the user asks for a "briefing" / "morning update" / "what's my day looking
21
- like" (the **daily-briefing** skill) call \`skill_read\` to load its steps, then follow them.`
19
+ - The \`<skills>\` block above lists documented procedures (skills) by name + description. When a request
20
+ matches a skill's description, call the \`skill_read\` tool with that skill's name to load its full
21
+ steps, then follow them. Don't guess a procedure a skill already documents.`
@@ -15,8 +15,8 @@
15
15
  "typecheck": "tsc --noEmit"
16
16
  },
17
17
  "dependencies": {
18
- "theokit": "^0.31.0",
19
- "@theokit/agents": "^0.35.2",
18
+ "theokit": "^0.35.0",
19
+ "@theokit/agents": "^0.37.0",
20
20
  "@theokit/sdk": "^2.25.0",
21
21
  "@theokit/ui": "^1.0.0",
22
22
  "@usetheo/ui": "^0.14.0",