@andreprado/agentkit 0.1.0-alpha.3 → 0.1.0-alpha.5

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.
@@ -1,4 +1,5 @@
1
1
  import { blankTemplate } from "./blank";
2
+ import { dentistaTemplate } from "./dentista";
2
3
  import { supportTemplate } from "./support";
3
4
 
4
5
  export type TemplateFile = {
@@ -17,6 +18,7 @@ export type AgentTemplateContext = {
17
18
 
18
19
  const templates = new Map<string, AgentTemplate>([
19
20
  [blankTemplate.name, blankTemplate],
21
+ [dentistaTemplate.name, dentistaTemplate],
20
22
  [supportTemplate.name, supportTemplate],
21
23
  ]);
22
24
 
@@ -63,6 +63,7 @@ node_modules/
63
63
  contents: `# Optional: add real provider keys after switching away from test/fake.
64
64
  OPENAI_API_KEY=
65
65
  ANTHROPIC_API_KEY=
66
+ OPENROUTER_API_KEY=
66
67
  `,
67
68
  },
68
69
  {
@@ -194,6 +195,7 @@ Start building immediately:
194
195
  - Edit \`prompts/instructions.md\` for support behavior.
195
196
  - Edit \`agentkit.config.ts\` for provider, tools, secrets, access, and storage.
196
197
  - Add or replace TypeScript tools under \`tools/\` when the requested support agent needs actions or external data.
198
+ - Do not wait for a wizard or recipe. AgentKit provides the scaffold and contract; you decide the implementation from the owner's brief.
197
199
  - Ask follow-up questions only when missing information blocks a safe local implementation.
198
200
  - State assumptions in the final response.
199
201
 
@@ -209,6 +211,13 @@ Start building immediately:
209
211
  - \`npm run agentkit -- env list\`: list local secret names without printing values.
210
212
  - \`npm run agentkit -- docs full\`: print the full AgentKit contract path.
211
213
 
214
+ ## Testing With A UI
215
+
216
+ - Local UI: run \`npm run dev\`, open the printed \`Chat:\` URL, and tell the owner the exact URL.
217
+ - Hosted UI: after \`npm run agentkit -- deploy\`, run \`npm run agentkit -- chat-ui --deploy\`, open the printed \`Chat:\` URL, and tell the owner it is connected to the hosted deploy.
218
+ - \`test/fake\` is deterministic. It is useful for scaffold checks, direct tool checks, and fake-provider evals, but it does not validate natural conversation quality.
219
+ - Before claiming real conversation behavior is tested, ask the owner which provider to use: OpenRouter, OpenAI, Anthropic, or another supported provider. Do not choose for them.
220
+
212
221
  ## Hosted Deploy
213
222
 
214
223
  - Local scaffold, chat, eval, dev, inspect, tool, and build commands are token-free.
@@ -216,6 +225,7 @@ Start building immediately:
216
225
  - Put production secret values into managed secrets with \`npm run agentkit -- secret set <NAME> --from-local-env\`, \`--from-env\`, or \`--stdin\`, not into committed files or shell history.
217
226
  - Deploy with \`npm run agentkit -- deploy\`, then check \`npm run agentkit -- deploy status\`.
218
227
  - Hosted deploy writes the local chat/UI deploy access token to \`.agentkit/chat-access-token.json\`. Create extra client-facing tokens with \`npm run agentkit -- access token create <name> --out <path>\` when a separate website or app needs its own credential.
228
+ - Use \`npm run agentkit -- deploy --smoke "hello"\` or \`npm run agentkit -- deploy smoke --message "hello"\` for an official hosted chat smoke check.
219
229
  - Do not run operator/admin commands from a user capsule.
220
230
 
221
231
  ## Files
@@ -251,6 +261,7 @@ Turn the request into a working local capsule:
251
261
  - Update \`agentkit.config.ts\` when tools, secrets, provider, or access rules change.
252
262
  - Add, replace, or remove TypeScript tools under \`tools/\` for real actions or external data.
253
263
  - Keep the first version runnable with \`test/fake\` unless the owner explicitly asks for a real provider.
264
+ - Do not use a wizard or recipe. Build the capsule directly from the scaffold, the AgentKit contract, and the owner's brief.
254
265
  - Make practical assumptions and list them in your final response.
255
266
  - Ask follow-up questions only when missing information blocks a safe local implementation.
256
267
 
@@ -263,6 +274,8 @@ npm run agentkit -- tool lookup_order --input '{"orderId":"A100"}'
263
274
  npm run eval
264
275
  \`\`\`
265
276
 
277
+ \`test/fake\` proves the scaffold and deterministic tool paths. It does not prove natural conversation quality.
278
+
266
279
  \`agentkit new\` installs dependencies by default. Run \`npm install\` only if the capsule was created with \`--no-install\`, install failed, or \`node_modules\` was deleted.
267
280
 
268
281
  Set local development secrets without opening code:
@@ -273,6 +286,27 @@ npm run agentkit -- inspect
273
286
  npm run chat -- --message "hello"
274
287
  \`\`\`
275
288
 
289
+ ## Testing With A UI
290
+
291
+ Local UI:
292
+
293
+ \`\`\`sh
294
+ npm run dev
295
+ \`\`\`
296
+
297
+ Open the printed \`Chat:\` URL and tell the owner the exact URL.
298
+
299
+ Hosted deploy UI:
300
+
301
+ \`\`\`sh
302
+ npm run agentkit -- deploy
303
+ npm run agentkit -- chat-ui --deploy
304
+ \`\`\`
305
+
306
+ Open the printed \`Chat:\` URL and tell the owner this local UI is connected to the hosted deploy.
307
+
308
+ Before claiming real conversation behavior has been tested, ask the owner which provider to use: OpenRouter, OpenAI, Anthropic, or another supported provider. Do not choose for them. After they choose, update \`agentkit.config.ts\`, \`.env.schema\`, local secrets, hosted secrets if deploying, then rerun chat/UI checks.
309
+
276
310
  If you add a tool, also run a fake-provider tool smoke test:
277
311
 
278
312
  \`\`\`sh
@@ -309,6 +343,7 @@ This capsule is deploy-ready by default.
309
343
  4. Put production secrets into managed secrets with \`npm run agentkit -- secret set <NAME> --from-local-env\`, \`--from-env\`, or \`--stdin\`.
310
344
  5. Run \`npm run agentkit -- deploy\`.
311
345
  6. Run \`npm run agentkit -- chat-ui --deploy\` to test the hosted agent through a local UI using the auto-created \`.agentkit/chat-access-token.json\`. Create extra client-facing deploy access tokens with \`npm run agentkit -- access token create <name> --out <path>\` when a separate website or app needs its own credential.
346
+ 7. Use \`npm run agentkit -- deploy --smoke "hello"\` during deploy or \`npm run agentkit -- deploy smoke --message "hello"\` afterward for an official hosted smoke check.
312
347
 
313
348
  AgentKit owns hosted infrastructure and production secrets. Do not put production secret values in this capsule. Do not run operator/admin commands from a user capsule.
314
349
  `,
@@ -322,6 +357,7 @@ Use AgentKit conventions when editing this support capsule.
322
357
  - The agent contract lives in \`agentkit.config.ts\`.
323
358
  - The example tool lives in \`tools/lookup-order.ts\`.
324
359
  - The default provider is \`test/fake\`, which can call tools from JSON messages during local tests.
360
+ - Ask the owner which real provider to use before switching from \`test/fake\`; do not choose OpenRouter, OpenAI, or Anthropic automatically.
325
361
  - Keep required local secret names in \`.env.schema\` and values in ignored \`.env\`. AgentKit local commands load \`.env\` directly.
326
362
  - Treat the owner's natural-language request as the brief and start implementing inside this capsule.
327
363
  `,
@@ -344,6 +380,9 @@ npm run dev
344
380
  \`agentkit new\` installs dependencies by default. Run \`npm install\` only if this capsule was created with \`--no-install\`, install failed, or \`node_modules\` was deleted.
345
381
 
346
382
  The support template includes a local \`lookup_order\` TypeScript tool and uses \`test/fake\` by default.
383
+ \`test/fake\` does not validate real conversation quality. The owner must choose OpenRouter, OpenAI, Anthropic, or another supported provider before real model behavior is tested.
384
+
385
+ For UI testing, run \`npm run dev\` and open the printed \`Chat:\` URL. After hosted deploy, run \`npm run agentkit -- chat-ui --deploy\` and open its printed \`Chat:\` URL.
347
386
  `,
348
387
  },
349
388
  ];