@vellumai/assistant 0.4.11 → 0.4.12

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.
Files changed (95) hide show
  1. package/ARCHITECTURE.md +401 -385
  2. package/package.json +1 -1
  3. package/src/__tests__/guardian-verify-setup-skill-regression.test.ts +75 -61
  4. package/src/__tests__/registry.test.ts +235 -187
  5. package/src/__tests__/secure-keys.test.ts +27 -0
  6. package/src/__tests__/session-agent-loop.test.ts +521 -256
  7. package/src/__tests__/session-surfaces-task-progress.test.ts +1 -0
  8. package/src/__tests__/session-tool-setup-app-refresh.test.ts +1 -0
  9. package/src/__tests__/session-tool-setup-memory-scope.test.ts +1 -0
  10. package/src/__tests__/session-tool-setup-side-effect-flag.test.ts +1 -0
  11. package/src/__tests__/skills.test.ts +334 -276
  12. package/src/__tests__/starter-task-flow.test.ts +7 -17
  13. package/src/agent/loop.ts +9 -2
  14. package/src/config/bundled-skills/chatgpt-import/tools/chatgpt-import.ts +449 -0
  15. package/src/config/bundled-skills/doordash/SKILL.md +171 -0
  16. package/src/config/bundled-skills/doordash/__tests__/doordash-client.test.ts +203 -0
  17. package/src/config/bundled-skills/doordash/__tests__/doordash-session.test.ts +164 -0
  18. package/src/config/bundled-skills/doordash/doordash-cli.ts +1193 -0
  19. package/src/config/bundled-skills/doordash/doordash-entry.ts +22 -0
  20. package/src/config/bundled-skills/doordash/lib/cart-queries.ts +787 -0
  21. package/src/config/bundled-skills/doordash/lib/client.ts +1071 -0
  22. package/src/config/bundled-skills/doordash/lib/order-queries.ts +85 -0
  23. package/src/config/bundled-skills/doordash/lib/queries.ts +28 -0
  24. package/src/config/bundled-skills/doordash/lib/query-extractor.ts +94 -0
  25. package/src/config/bundled-skills/doordash/lib/search-queries.ts +203 -0
  26. package/src/config/bundled-skills/doordash/lib/session.ts +93 -0
  27. package/src/config/bundled-skills/doordash/lib/shared/errors.ts +61 -0
  28. package/src/config/bundled-skills/doordash/lib/shared/ipc.ts +32 -0
  29. package/src/config/bundled-skills/doordash/lib/shared/network-recorder.ts +380 -0
  30. package/src/config/bundled-skills/doordash/lib/shared/platform.ts +35 -0
  31. package/src/config/bundled-skills/doordash/lib/shared/recording-store.ts +43 -0
  32. package/src/config/bundled-skills/doordash/lib/shared/recording-types.ts +49 -0
  33. package/src/config/bundled-skills/doordash/lib/shared/truncate.ts +6 -0
  34. package/src/config/bundled-skills/doordash/lib/store-queries.ts +246 -0
  35. package/src/config/bundled-skills/doordash/lib/types.ts +367 -0
  36. package/src/config/bundled-skills/google-calendar/SKILL.md +4 -5
  37. package/src/config/bundled-skills/google-oauth-setup/SKILL.md +41 -41
  38. package/src/config/bundled-skills/messaging/SKILL.md +59 -42
  39. package/src/config/bundled-skills/messaging/TOOLS.json +2 -2
  40. package/src/config/bundled-skills/messaging/tools/gmail-archive-by-query.ts +5 -1
  41. package/src/config/bundled-skills/messaging/tools/gmail-batch-archive.ts +11 -2
  42. package/src/config/bundled-skills/messaging/tools/gmail-sender-digest.ts +10 -3
  43. package/src/config/bundled-skills/messaging/tools/gmail-unsubscribe.ts +5 -1
  44. package/src/config/bundled-skills/messaging/tools/messaging-archive-by-sender.ts +5 -1
  45. package/src/config/bundled-skills/messaging/tools/messaging-sender-digest.ts +2 -1
  46. package/src/config/bundled-skills/notion/SKILL.md +240 -0
  47. package/src/config/bundled-skills/notion-oauth-setup/SKILL.md +127 -0
  48. package/src/config/bundled-skills/oauth-setup/SKILL.md +144 -0
  49. package/src/config/bundled-skills/phone-calls/SKILL.md +76 -45
  50. package/src/config/bundled-skills/skills-catalog/SKILL.md +32 -29
  51. package/src/config/{vellum-skills → bundled-skills}/sms-setup/SKILL.md +29 -22
  52. package/src/config/{vellum-skills → bundled-skills}/telegram-setup/SKILL.md +17 -14
  53. package/src/config/{vellum-skills → bundled-skills}/twilio-setup/SKILL.md +20 -5
  54. package/src/config/bundled-tool-registry.ts +281 -267
  55. package/src/daemon/handlers/skills.ts +334 -234
  56. package/src/daemon/ipc-contract/messages.ts +2 -0
  57. package/src/daemon/ipc-contract/surfaces.ts +2 -0
  58. package/src/daemon/lifecycle.ts +358 -221
  59. package/src/daemon/response-tier.ts +2 -0
  60. package/src/daemon/server.ts +453 -193
  61. package/src/daemon/session-agent-loop-handlers.ts +42 -2
  62. package/src/daemon/session-agent-loop.ts +3 -0
  63. package/src/daemon/session-lifecycle.ts +3 -0
  64. package/src/daemon/session-process.ts +1 -0
  65. package/src/daemon/session-surfaces.ts +22 -20
  66. package/src/daemon/session-tool-setup.ts +1 -0
  67. package/src/daemon/session.ts +5 -2
  68. package/src/messaging/outreach-classifier.ts +12 -5
  69. package/src/messaging/provider-types.ts +2 -0
  70. package/src/messaging/providers/gmail/adapter.ts +9 -3
  71. package/src/messaging/providers/gmail/client.ts +2 -0
  72. package/src/runtime/http-errors.ts +33 -20
  73. package/src/runtime/http-server.ts +706 -291
  74. package/src/runtime/http-types.ts +26 -16
  75. package/src/runtime/routes/secret-routes.ts +57 -2
  76. package/src/runtime/routes/surface-action-routes.ts +66 -0
  77. package/src/runtime/routes/trust-rules-routes.ts +140 -0
  78. package/src/security/keychain-to-encrypted-migration.ts +59 -0
  79. package/src/security/secure-keys.ts +17 -0
  80. package/src/skills/frontmatter.ts +9 -7
  81. package/src/tools/apps/executors.ts +2 -1
  82. package/src/tools/tool-manifest.ts +44 -42
  83. package/src/tools/types.ts +9 -0
  84. package/src/__tests__/skill-mirror-parity.test.ts +0 -176
  85. package/src/config/vellum-skills/catalog.json +0 -63
  86. package/src/config/vellum-skills/chatgpt-import/tools/chatgpt-import.ts +0 -295
  87. package/src/skills/vellum-catalog-remote.ts +0 -166
  88. package/src/tools/skills/vellum-catalog.ts +0 -168
  89. /package/src/config/{vellum-skills → bundled-skills}/chatgpt-import/SKILL.md +0 -0
  90. /package/src/config/{vellum-skills → bundled-skills}/chatgpt-import/TOOLS.json +0 -0
  91. /package/src/config/{vellum-skills → bundled-skills}/deploy-fullstack-vercel/SKILL.md +0 -0
  92. /package/src/config/{vellum-skills → bundled-skills}/document-writer/SKILL.md +0 -0
  93. /package/src/config/{vellum-skills → bundled-skills}/guardian-verify-setup/SKILL.md +0 -0
  94. /package/src/config/{vellum-skills → bundled-skills}/slack-oauth-setup/SKILL.md +0 -0
  95. /package/src/config/{vellum-skills → bundled-skills}/trusted-contacts/SKILL.md +0 -0
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env bun
2
+ /**
3
+ * Standalone DoorDash CLI entry point.
4
+ *
5
+ * Invoked via the launcher script at ~/.vellum/bin/doordash,
6
+ * which is created when the doordash skill is installed.
7
+ *
8
+ * registerDoordashCommand() creates a nested `doordash` subcommand
9
+ * (designed for `vellum doordash <sub>`). We extract that subcommand
10
+ * and use it as the root so `doordash status` works directly.
11
+ */
12
+
13
+ import { Command } from "commander";
14
+
15
+ import { registerDoordashCommand } from "./doordash-cli.js";
16
+
17
+ // Register into a throwaway parent, then extract the nested command
18
+ const wrapper = new Command();
19
+ registerDoordashCommand(wrapper);
20
+ const dd = wrapper.commands.find((c) => c.name() === "doordash");
21
+ if (!dd) throw new Error("doordash command not registered");
22
+ dd.parse();