@withbuddi/buddi 0.1.0-pre.35 → 0.1.0-pre.37
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/examples/agents/concierge/agent.md +5 -0
- package/examples/skills/letterhead/SKILL.md +21 -0
- package/examples/skills/letterhead/assets/letterhead.md +16 -0
- package/examples/skills/letterhead/assets/logo.svg +6 -0
- package/extension/manifest.json +2 -2
- package/node_modules/@buddi/cli/dist/.tsbuildinfo +1 -1
- package/node_modules/@buddi/cli/dist/doctor-probes.d.ts.map +1 -1
- package/node_modules/@buddi/cli/dist/doctor-probes.js +44 -3
- package/node_modules/@buddi/cli/dist/doctor-probes.js.map +1 -1
- package/node_modules/@buddi/cli/dist/doctor.d.ts +37 -0
- package/node_modules/@buddi/cli/dist/doctor.d.ts.map +1 -1
- package/node_modules/@buddi/cli/dist/doctor.js +37 -0
- package/node_modules/@buddi/cli/dist/doctor.js.map +1 -1
- package/node_modules/@buddi/core/dist/.tsbuildinfo +1 -1
- package/node_modules/@buddi/core/dist/actions/approvals.d.ts +7 -0
- package/node_modules/@buddi/core/dist/actions/approvals.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/actions/approvals.js +11 -1
- package/node_modules/@buddi/core/dist/actions/approvals.js.map +1 -1
- package/node_modules/@buddi/core/dist/agents/catalog.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/agents/catalog.js +2 -2
- package/node_modules/@buddi/core/dist/agents/catalog.js.map +1 -1
- package/node_modules/@buddi/core/dist/agents/skills.d.ts +60 -1
- package/node_modules/@buddi/core/dist/agents/skills.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/agents/skills.js +157 -17
- package/node_modules/@buddi/core/dist/agents/skills.js.map +1 -1
- package/node_modules/@buddi/core/dist/day-month.d.ts +52 -0
- package/node_modules/@buddi/core/dist/day-month.d.ts.map +1 -0
- package/node_modules/@buddi/core/dist/day-month.js +101 -0
- package/node_modules/@buddi/core/dist/day-month.js.map +1 -0
- package/node_modules/@buddi/core/dist/host/build.d.ts +25 -2
- package/node_modules/@buddi/core/dist/host/build.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/host/build.js +169 -8
- package/node_modules/@buddi/core/dist/host/build.js.map +1 -1
- package/node_modules/@buddi/core/dist/host/http.d.ts +97 -0
- package/node_modules/@buddi/core/dist/host/http.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/host/http.js +321 -26
- package/node_modules/@buddi/core/dist/host/http.js.map +1 -1
- package/node_modules/@buddi/core/dist/host/types.d.ts +114 -4
- package/node_modules/@buddi/core/dist/host/types.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/index.d.ts +3 -0
- package/node_modules/@buddi/core/dist/index.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/index.js +3 -0
- package/node_modules/@buddi/core/dist/index.js.map +1 -1
- package/node_modules/@buddi/core/dist/notifications/notify.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/notifications/notify.js +10 -6
- package/node_modules/@buddi/core/dist/notifications/notify.js.map +1 -1
- package/node_modules/@buddi/core/dist/notifications/store.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/notifications/store.js +2 -1
- package/node_modules/@buddi/core/dist/notifications/store.js.map +1 -1
- package/node_modules/@buddi/core/dist/notifications/types.d.ts +8 -0
- package/node_modules/@buddi/core/dist/notifications/types.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/notifications/types.js.map +1 -1
- package/node_modules/@buddi/core/dist/onboarding/store.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/onboarding/store.js +28 -5
- package/node_modules/@buddi/core/dist/onboarding/store.js.map +1 -1
- package/node_modules/@buddi/core/dist/onboarding/types.d.ts +10 -0
- package/node_modules/@buddi/core/dist/onboarding/types.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/onboarding/types.js.map +1 -1
- package/node_modules/@buddi/core/dist/pages.d.ts +449 -20
- package/node_modules/@buddi/core/dist/pages.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/pages.js +223 -8
- package/node_modules/@buddi/core/dist/pages.js.map +1 -1
- package/node_modules/@buddi/core/dist/plugin/assets.d.ts +52 -0
- package/node_modules/@buddi/core/dist/plugin/assets.d.ts.map +1 -0
- package/node_modules/@buddi/core/dist/plugin/assets.js +59 -0
- package/node_modules/@buddi/core/dist/plugin/assets.js.map +1 -0
- package/node_modules/@buddi/core/dist/plugin/index.d.ts +10 -4
- package/node_modules/@buddi/core/dist/plugin/index.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/plugin/index.js +4 -1
- package/node_modules/@buddi/core/dist/plugin/index.js.map +1 -1
- package/node_modules/@buddi/core/dist/plugin/requires.d.ts +3 -1
- package/node_modules/@buddi/core/dist/plugin/requires.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/plugin/requires.js +5 -3
- package/node_modules/@buddi/core/dist/plugin/requires.js.map +1 -1
- package/node_modules/@buddi/core/dist/plugin/sign-in.d.ts +78 -0
- package/node_modules/@buddi/core/dist/plugin/sign-in.d.ts.map +1 -0
- package/node_modules/@buddi/core/dist/plugin/sign-in.js +54 -0
- package/node_modules/@buddi/core/dist/plugin/sign-in.js.map +1 -0
- package/node_modules/@buddi/core/dist/plugin/uses.d.ts +1 -1
- package/node_modules/@buddi/core/dist/plugin/uses.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/plugin/uses.js +2 -0
- package/node_modules/@buddi/core/dist/plugin/uses.js.map +1 -1
- package/node_modules/@buddi/core/dist/plugin/version.d.ts +1 -1
- package/node_modules/@buddi/core/dist/plugin/version.js +1 -1
- package/node_modules/@buddi/core/dist/plugin-assets.d.ts +21 -0
- package/node_modules/@buddi/core/dist/plugin-assets.d.ts.map +1 -0
- package/node_modules/@buddi/core/dist/plugin-assets.js +140 -0
- package/node_modules/@buddi/core/dist/plugin-assets.js.map +1 -0
- package/node_modules/@buddi/core/dist/provider-accounts.d.ts +7 -0
- package/node_modules/@buddi/core/dist/provider-accounts.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/provider-accounts.js +15 -0
- package/node_modules/@buddi/core/dist/provider-accounts.js.map +1 -1
- package/node_modules/@buddi/core/dist/questions/types.d.ts +1 -1
- package/node_modules/@buddi/core/dist/questions/types.js +1 -1
- package/node_modules/@buddi/core/dist/queue/jobs.d.ts +57 -2
- package/node_modules/@buddi/core/dist/queue/jobs.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/queue/jobs.js +114 -0
- package/node_modules/@buddi/core/dist/queue/jobs.js.map +1 -1
- package/node_modules/@buddi/core/dist/queue/worker.d.ts +24 -2
- package/node_modules/@buddi/core/dist/queue/worker.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/queue/worker.js +66 -11
- package/node_modules/@buddi/core/dist/queue/worker.js.map +1 -1
- package/node_modules/@buddi/core/dist/registry.d.ts +17 -0
- package/node_modules/@buddi/core/dist/registry.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/registry.js +48 -4
- package/node_modules/@buddi/core/dist/registry.js.map +1 -1
- package/node_modules/@buddi/core/dist/scheduler/missions.d.ts +14 -0
- package/node_modules/@buddi/core/dist/scheduler/missions.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/scheduler/missions.js +17 -4
- package/node_modules/@buddi/core/dist/scheduler/missions.js.map +1 -1
- package/node_modules/@buddi/core/dist/scheduler/types.d.ts +13 -0
- package/node_modules/@buddi/core/dist/scheduler/types.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/scheduler/types.js +14 -0
- package/node_modules/@buddi/core/dist/scheduler/types.js.map +1 -1
- package/node_modules/@buddi/core/dist/secrets/scrub.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/secrets/scrub.js +15 -0
- package/node_modules/@buddi/core/dist/secrets/scrub.js.map +1 -1
- package/node_modules/@buddi/core/dist/surfaces.d.ts +10 -0
- package/node_modules/@buddi/core/dist/surfaces.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/surfaces.js +11 -0
- package/node_modules/@buddi/core/dist/surfaces.js.map +1 -1
- package/node_modules/@buddi/core/dist/tools.d.ts +72 -1
- package/node_modules/@buddi/core/dist/tools.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/tools.js +38 -0
- package/node_modules/@buddi/core/dist/tools.js.map +1 -1
- package/node_modules/@buddi/core/dist/views.d.ts +29 -12
- package/node_modules/@buddi/core/dist/views.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/views.js +1 -0
- package/node_modules/@buddi/core/dist/views.js.map +1 -1
- package/node_modules/@buddi/core/dist/widget-settings.d.ts +2 -1
- package/node_modules/@buddi/core/dist/widget-settings.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/widget-settings.js +8 -2
- package/node_modules/@buddi/core/dist/widget-settings.js.map +1 -1
- package/node_modules/@buddi/core/dist/widgets.d.ts +46 -3
- package/node_modules/@buddi/core/dist/widgets.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/widgets.js +68 -5
- package/node_modules/@buddi/core/dist/widgets.js.map +1 -1
- package/node_modules/@buddi/core/migrations/073_mission_report.sql +15 -0
- package/node_modules/@buddi/core/migrations/074_owner_identity.sql +14 -0
- package/node_modules/@buddi/gateway/dist/.tsbuildinfo +1 -1
- package/node_modules/@buddi/gateway/dist/agents/catalog.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/agents/catalog.js +3 -3
- package/node_modules/@buddi/gateway/dist/agents/catalog.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/agents/catalogue-package.d.ts +76 -0
- package/node_modules/@buddi/gateway/dist/agents/catalogue-package.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/agents/catalogue-package.js +29 -5
- package/node_modules/@buddi/gateway/dist/agents/catalogue-package.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/agents/owner-text.d.ts +19 -0
- package/node_modules/@buddi/gateway/dist/agents/owner-text.d.ts.map +1 -0
- package/node_modules/@buddi/gateway/dist/agents/owner-text.js +44 -0
- package/node_modules/@buddi/gateway/dist/agents/owner-text.js.map +1 -0
- package/node_modules/@buddi/gateway/dist/agents/owner-tools.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/agents/owner-tools.js +36 -2
- package/node_modules/@buddi/gateway/dist/agents/owner-tools.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/agents/platform-catalogue.d.ts +68 -3
- package/node_modules/@buddi/gateway/dist/agents/platform-catalogue.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/agents/platform-catalogue.js +264 -32
- package/node_modules/@buddi/gateway/dist/agents/platform-catalogue.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/agents/platform.d.ts +11 -4
- package/node_modules/@buddi/gateway/dist/agents/platform.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/agents/platform.js +15 -0
- package/node_modules/@buddi/gateway/dist/agents/platform.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/bootstrap.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/bootstrap.js +7 -1
- package/node_modules/@buddi/gateway/dist/bootstrap.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/evals/golden.d.ts +33 -1
- package/node_modules/@buddi/gateway/dist/evals/golden.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/evals/golden.js +168 -3
- package/node_modules/@buddi/gateway/dist/evals/golden.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/index.d.ts +2 -1
- package/node_modules/@buddi/gateway/dist/index.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/index.js +2 -1
- package/node_modules/@buddi/gateway/dist/index.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/missions/agent-run.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/missions/agent-run.js +2 -0
- package/node_modules/@buddi/gateway/dist/missions/agent-run.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/missions/dates.d.ts +98 -0
- package/node_modules/@buddi/gateway/dist/missions/dates.d.ts.map +1 -0
- package/node_modules/@buddi/gateway/dist/missions/dates.js +252 -0
- package/node_modules/@buddi/gateway/dist/missions/dates.js.map +1 -0
- package/node_modules/@buddi/gateway/dist/missions/defaults.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/missions/defaults.js +2 -0
- package/node_modules/@buddi/gateway/dist/missions/defaults.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/missions/execute.d.ts +25 -1
- package/node_modules/@buddi/gateway/dist/missions/execute.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/missions/execute.js +80 -8
- package/node_modules/@buddi/gateway/dist/missions/execute.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/missions/report.d.ts +25 -2
- package/node_modules/@buddi/gateway/dist/missions/report.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/missions/report.js +71 -11
- package/node_modules/@buddi/gateway/dist/missions/report.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/ollama-local.d.ts +90 -0
- package/node_modules/@buddi/gateway/dist/ollama-local.d.ts.map +1 -0
- package/node_modules/@buddi/gateway/dist/ollama-local.js +201 -0
- package/node_modules/@buddi/gateway/dist/ollama-local.js.map +1 -0
- package/node_modules/@buddi/gateway/dist/owner-notify.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/owner-notify.js +7 -3
- package/node_modules/@buddi/gateway/dist/owner-notify.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/plugins/asset-image-worker.d.ts +2 -0
- package/node_modules/@buddi/gateway/dist/plugins/asset-image-worker.d.ts.map +1 -0
- package/node_modules/@buddi/gateway/dist/plugins/asset-image-worker.js +18 -0
- package/node_modules/@buddi/gateway/dist/plugins/asset-image-worker.js.map +1 -0
- package/node_modules/@buddi/gateway/dist/plugins/asset-image.d.ts +31 -0
- package/node_modules/@buddi/gateway/dist/plugins/asset-image.d.ts.map +1 -0
- package/node_modules/@buddi/gateway/dist/plugins/asset-image.js +332 -0
- package/node_modules/@buddi/gateway/dist/plugins/asset-image.js.map +1 -0
- package/node_modules/@buddi/gateway/dist/plugins/load.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/plugins/load.js +14 -1
- package/node_modules/@buddi/gateway/dist/plugins/load.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/plugins/stage.d.ts +6 -0
- package/node_modules/@buddi/gateway/dist/plugins/stage.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/plugins/stage.js +5 -0
- package/node_modules/@buddi/gateway/dist/plugins/stage.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/plugins/uninstall.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/plugins/uninstall.js +8 -0
- package/node_modules/@buddi/gateway/dist/plugins/uninstall.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/plugins-cli.d.ts +8 -0
- package/node_modules/@buddi/gateway/dist/plugins-cli.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/plugins-cli.js +22 -1
- package/node_modules/@buddi/gateway/dist/plugins-cli.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/serve.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/serve.js +50 -5
- package/node_modules/@buddi/gateway/dist/serve.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/surfaces/pending-question.js +2 -2
- package/node_modules/@buddi/gateway/dist/system-context.d.ts +21 -1
- package/node_modules/@buddi/gateway/dist/system-context.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/system-context.js +76 -2
- package/node_modules/@buddi/gateway/dist/system-context.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/telegram/approvals.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/telegram/approvals.js +4 -2
- package/node_modules/@buddi/gateway/dist/telegram/approvals.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/telegram/channel.d.ts +12 -0
- package/node_modules/@buddi/gateway/dist/telegram/channel.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/telegram/channel.js +49 -2
- package/node_modules/@buddi/gateway/dist/telegram/channel.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/telegram/html.d.ts +34 -0
- package/node_modules/@buddi/gateway/dist/telegram/html.d.ts.map +1 -0
- package/node_modules/@buddi/gateway/dist/telegram/html.js +263 -0
- package/node_modules/@buddi/gateway/dist/telegram/html.js.map +1 -0
- package/node_modules/@buddi/gateway/dist/telegram/notify.d.ts +6 -0
- package/node_modules/@buddi/gateway/dist/telegram/notify.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/telegram/notify.js +25 -3
- package/node_modules/@buddi/gateway/dist/telegram/notify.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/tips/facts.d.ts +2 -0
- package/node_modules/@buddi/gateway/dist/tips/facts.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/tips/facts.js +4 -1
- package/node_modules/@buddi/gateway/dist/tips/facts.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/tips/rules.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/tips/rules.js +10 -0
- package/node_modules/@buddi/gateway/dist/tips/rules.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/api-routes.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/api-routes.js +80 -11
- package/node_modules/@buddi/gateway/dist/web/api-routes.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/api-scan.d.ts +1 -1
- package/node_modules/@buddi/gateway/dist/web/api-scan.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/api-scan.js +1 -0
- package/node_modules/@buddi/gateway/dist/web/api-scan.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/catalogue.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/catalogue.js +7 -4
- package/node_modules/@buddi/gateway/dist/web/catalogue.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/chat.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/chat.js +9 -0
- package/node_modules/@buddi/gateway/dist/web/chat.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/composer.d.ts +45 -0
- package/node_modules/@buddi/gateway/dist/web/composer.d.ts.map +1 -0
- package/node_modules/@buddi/gateway/dist/web/composer.js +85 -0
- package/node_modules/@buddi/gateway/dist/web/composer.js.map +1 -0
- package/node_modules/@buddi/gateway/dist/web/extension.d.ts +12 -0
- package/node_modules/@buddi/gateway/dist/web/extension.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/extension.js +11 -1
- package/node_modules/@buddi/gateway/dist/web/extension.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/lock.d.ts +6 -0
- package/node_modules/@buddi/gateway/dist/web/lock.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/lock.js +33 -2
- package/node_modules/@buddi/gateway/dist/web/lock.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/market.d.ts +20 -1
- package/node_modules/@buddi/gateway/dist/web/market.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/market.js +41 -1
- package/node_modules/@buddi/gateway/dist/web/market.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/people.d.ts +44 -0
- package/node_modules/@buddi/gateway/dist/web/people.d.ts.map +1 -0
- package/node_modules/@buddi/gateway/dist/web/people.js +114 -0
- package/node_modules/@buddi/gateway/dist/web/people.js.map +1 -0
- package/node_modules/@buddi/gateway/dist/web/server.d.ts +4 -0
- package/node_modules/@buddi/gateway/dist/web/server.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/server.js +171 -13
- package/node_modules/@buddi/gateway/dist/web/server.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/skill-bundles.d.ts +101 -0
- package/node_modules/@buddi/gateway/dist/web/skill-bundles.d.ts.map +1 -0
- package/node_modules/@buddi/gateway/dist/web/skill-bundles.js +439 -0
- package/node_modules/@buddi/gateway/dist/web/skill-bundles.js.map +1 -0
- package/node_modules/@buddi/gateway/dist/web/skills.d.ts +57 -1
- package/node_modules/@buddi/gateway/dist/web/skills.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/skills.js +171 -9
- package/node_modules/@buddi/gateway/dist/web/skills.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/widgets.js +2 -2
- package/node_modules/@buddi/gateway/dist/web/widgets.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/zip-read.d.ts +31 -0
- package/node_modules/@buddi/gateway/dist/web/zip-read.d.ts.map +1 -0
- package/node_modules/@buddi/gateway/dist/web/zip-read.js +125 -0
- package/node_modules/@buddi/gateway/dist/web/zip-read.js.map +1 -0
- package/node_modules/@buddi/install/dist/.tsbuildinfo +1 -1
- package/node_modules/@buddi/runtime/dist/.tsbuildinfo +1 -1
- package/node_modules/@buddi/runtime/dist/index.d.ts +1 -0
- package/node_modules/@buddi/runtime/dist/index.d.ts.map +1 -1
- package/node_modules/@buddi/runtime/dist/index.js +1 -0
- package/node_modules/@buddi/runtime/dist/index.js.map +1 -1
- package/node_modules/@buddi/runtime/dist/loop.js +11 -1
- package/node_modules/@buddi/runtime/dist/loop.js.map +1 -1
- package/node_modules/@buddi/runtime/dist/plugin-sign-in.d.ts +12 -0
- package/node_modules/@buddi/runtime/dist/plugin-sign-in.d.ts.map +1 -0
- package/node_modules/@buddi/runtime/dist/plugin-sign-in.js +397 -0
- package/node_modules/@buddi/runtime/dist/plugin-sign-in.js.map +1 -0
- package/node_modules/@buddi/runtime/dist/transport.d.ts +1 -1
- package/node_modules/@buddi/runtime/dist/transport.d.ts.map +1 -1
- package/node_modules/@buddi/runtime/dist/transport.js +6 -0
- package/node_modules/@buddi/runtime/dist/transport.js.map +1 -1
- package/node_modules/@buddi/tool-artifacts/dist/.tsbuildinfo +1 -1
- package/node_modules/@buddi/tool-artifacts/dist/tools/write.d.ts.map +1 -1
- package/node_modules/@buddi/tool-artifacts/dist/tools/write.js +1 -0
- package/node_modules/@buddi/tool-artifacts/dist/tools/write.js.map +1 -1
- package/node_modules/@buddi/tool-browser/dist/.tsbuildinfo +1 -1
- package/node_modules/@buddi/tool-browser/dist/computer.d.ts +13 -0
- package/node_modules/@buddi/tool-browser/dist/computer.d.ts.map +1 -1
- package/node_modules/@buddi/tool-browser/dist/computer.js +22 -2
- package/node_modules/@buddi/tool-browser/dist/computer.js.map +1 -1
- package/node_modules/@buddi/tool-browser/dist/controller.d.ts +4 -0
- package/node_modules/@buddi/tool-browser/dist/controller.d.ts.map +1 -1
- package/node_modules/@buddi/tool-browser/dist/controller.js +8 -3
- package/node_modules/@buddi/tool-browser/dist/controller.js.map +1 -1
- package/node_modules/@buddi/tool-browser/dist/index.d.ts +1 -1
- package/node_modules/@buddi/tool-browser/dist/index.d.ts.map +1 -1
- package/node_modules/@buddi/tool-browser/dist/index.js +1 -1
- package/node_modules/@buddi/tool-browser/dist/index.js.map +1 -1
- package/node_modules/@buddi/tool-browser/dist/native/buddi-computer +0 -0
- package/node_modules/@buddi/tool-browser/dist/service.d.ts +5 -0
- package/node_modules/@buddi/tool-browser/dist/service.d.ts.map +1 -1
- package/node_modules/@buddi/tool-browser/dist/service.js.map +1 -1
- package/node_modules/@buddi/tool-email/dist/.tsbuildinfo +1 -1
- package/node_modules/@buddi/tool-email/dist/widgets.d.ts.map +1 -1
- package/node_modules/@buddi/tool-email/dist/widgets.js +2 -1
- package/node_modules/@buddi/tool-email/dist/widgets.js.map +1 -1
- package/node_modules/@buddi/tool-host/dist/.tsbuildinfo +1 -1
- package/node_modules/@buddi/tool-host/dist/index.d.ts +2 -1
- package/node_modules/@buddi/tool-host/dist/index.d.ts.map +1 -1
- package/node_modules/@buddi/tool-host/dist/index.js +3 -2
- package/node_modules/@buddi/tool-host/dist/index.js.map +1 -1
- package/node_modules/@buddi/tool-host/dist/process.d.ts +4 -0
- package/node_modules/@buddi/tool-host/dist/process.d.ts.map +1 -1
- package/node_modules/@buddi/tool-host/dist/process.js +4 -2
- package/node_modules/@buddi/tool-host/dist/process.js.map +1 -1
- package/node_modules/@buddi/tool-host/dist/service.d.ts +66 -17
- package/node_modules/@buddi/tool-host/dist/service.d.ts.map +1 -1
- package/node_modules/@buddi/tool-host/dist/service.js +172 -9
- package/node_modules/@buddi/tool-host/dist/service.js.map +1 -1
- package/node_modules/@buddi/tool-host/dist/skill-run.d.ts +55 -0
- package/node_modules/@buddi/tool-host/dist/skill-run.d.ts.map +1 -0
- package/node_modules/@buddi/tool-host/dist/skill-run.js +132 -0
- package/node_modules/@buddi/tool-host/dist/skill-run.js.map +1 -0
- package/node_modules/@buddi/tool-mcp/dist/.tsbuildinfo +1 -1
- package/node_modules/@buddi/tool-memory/dist/.tsbuildinfo +1 -1
- package/node_modules/@buddi/tool-memory/dist/index.d.ts +1 -0
- package/node_modules/@buddi/tool-memory/dist/index.d.ts.map +1 -1
- package/node_modules/@buddi/tool-memory/dist/index.js +7 -2
- package/node_modules/@buddi/tool-memory/dist/index.js.map +1 -1
- package/node_modules/@buddi/tool-memory/dist/people.d.ts +218 -0
- package/node_modules/@buddi/tool-memory/dist/people.d.ts.map +1 -0
- package/node_modules/@buddi/tool-memory/dist/people.js +582 -0
- package/node_modules/@buddi/tool-memory/dist/people.js.map +1 -0
- package/node_modules/@buddi/tool-memory/dist/preamble.d.ts +4 -1
- package/node_modules/@buddi/tool-memory/dist/preamble.d.ts.map +1 -1
- package/node_modules/@buddi/tool-memory/dist/preamble.js +25 -7
- package/node_modules/@buddi/tool-memory/dist/preamble.js.map +1 -1
- package/node_modules/@buddi/tool-memory/migrations/002_people.sql +40 -0
- package/node_modules/@buddi/tool-web/dist/.tsbuildinfo +1 -1
- package/node_modules/imapflow/CHANGELOG.md +8 -0
- package/node_modules/imapflow/dist/cjs/commands/append.js +27 -3
- package/node_modules/imapflow/dist/cjs/commands/store.js +31 -6
- package/node_modules/imapflow/dist/cjs/imap-flow.d.ts +1 -1
- package/node_modules/imapflow/dist/cjs/imap-flow.js +1 -1
- package/node_modules/imapflow/dist/cjs/package-info.d.ts +1 -1
- package/node_modules/imapflow/dist/cjs/package-info.js +1 -1
- package/node_modules/imapflow/dist/esm/commands/append.js +27 -3
- package/node_modules/imapflow/dist/esm/commands/store.js +31 -6
- package/node_modules/imapflow/dist/esm/imap-flow.d.ts +1 -1
- package/node_modules/imapflow/dist/esm/imap-flow.js +1 -1
- package/node_modules/imapflow/dist/esm/package-info.d.ts +1 -1
- package/node_modules/imapflow/dist/esm/package-info.js +1 -1
- package/node_modules/imapflow/package.json +4 -4
- package/node_modules/pino/CONTRIBUTING.md +5 -1
- package/node_modules/pino/LICENSE +1 -1
- package/node_modules/pino/README.md +1 -1
- package/node_modules/pino/SECURITY.md +18 -2
- package/node_modules/pino/browser.js +68 -8
- package/node_modules/pino/docs/api.md +75 -4
- package/node_modules/pino/docs/asynchronous.md +18 -3
- package/node_modules/pino/docs/browser.md +63 -0
- package/node_modules/pino/docs/child-loggers.md +22 -1
- package/node_modules/pino/docs/ecosystem.md +1 -0
- package/node_modules/pino/docs/help.md +11 -3
- package/node_modules/pino/docs/lts.md +29 -0
- package/node_modules/pino/docs/pretty.md +3 -0
- package/node_modules/pino/docs/redaction.md +3 -8
- package/node_modules/pino/docs/transports.md +71 -0
- package/node_modules/pino/docs/web.md +11 -14
- package/node_modules/pino/eslint.config.js +15 -7
- package/node_modules/pino/lib/caller.js +10 -0
- package/node_modules/pino/lib/meta.js +1 -1
- package/node_modules/pino/lib/multistream.js +15 -7
- package/node_modules/pino/lib/redaction.js +8 -3
- package/node_modules/pino/lib/symbols.js +3 -1
- package/node_modules/pino/lib/tools.js +2 -2
- package/node_modules/pino/lib/transport.js +14 -1
- package/node_modules/pino/lib/worker.js +4 -1
- package/node_modules/pino/package.json +14 -22
- package/node_modules/pino/pino.d.ts +709 -736
- package/node_modules/pino/pino.js +27 -2
- package/node_modules/pino/test/basic.test.js +66 -0
- package/node_modules/pino/test/browser-bindings.test.js +114 -0
- package/node_modules/pino/test/browser-redaction.test.js +264 -0
- package/node_modules/pino/test/browser-set-bindings.test.js +99 -0
- package/node_modules/pino/test/caller.test.js +20 -0
- package/node_modules/pino/test/escaping.test.js +17 -0
- package/node_modules/pino/test/fixtures/caller-loop.js +6 -0
- package/node_modules/pino/test/fixtures/ts/transpile.cjs +3 -3
- package/node_modules/pino/test/helper.js +6 -2
- package/node_modules/pino/test/multistream.test.js +64 -0
- package/node_modules/pino/test/redact.test.js +30 -0
- package/node_modules/pino/test/smoke.js +59 -0
- package/node_modules/pino/test/transport/core.test.js +85 -0
- package/node_modules/pino/test/transport/sync-false.test.js +12 -0
- package/node_modules/pino/test/transport/uses-pino-config.test.js +4 -4
- package/node_modules/pino/test/types/pino-import.tst.cts +30 -0
- package/node_modules/pino/test/types/pino-import.tst.js +73 -0
- package/node_modules/pino/test/types/pino-multistream.tst.ts +49 -0
- package/node_modules/pino/test/types/pino-top-export.tst.ts +32 -0
- package/node_modules/pino/test/types/{pino-transport.test-d.ts → pino-transport.tst.ts} +85 -70
- package/node_modules/pino/test/types/pino-type-only.tst.ts +77 -0
- package/node_modules/pino/test/types/pino.ts +14 -7
- package/node_modules/pino/test/types/{pino.test-d.ts → pino.tst.ts} +135 -137
- package/node_modules/pino/test/types/tsconfig.json +10 -0
- package/node_modules/pino/tsconfig.json +6 -6
- package/node_modules/real-require/README.md +6 -6
- package/node_modules/real-require/package.json +10 -21
- package/node_modules/real-require/src/index.js +2 -2
- package/package.json +2 -2
- package/packages/cli/dist/.tsbuildinfo +1 -1
- package/packages/cli/dist/doctor-probes.d.ts.map +1 -1
- package/packages/cli/dist/doctor-probes.js +44 -3
- package/packages/cli/dist/doctor-probes.js.map +1 -1
- package/packages/cli/dist/doctor.d.ts +37 -0
- package/packages/cli/dist/doctor.d.ts.map +1 -1
- package/packages/cli/dist/doctor.js +37 -0
- package/packages/cli/dist/doctor.js.map +1 -1
- package/packages/core/dist/.tsbuildinfo +1 -1
- package/packages/core/dist/actions/approvals.d.ts +7 -0
- package/packages/core/dist/actions/approvals.d.ts.map +1 -1
- package/packages/core/dist/actions/approvals.js +11 -1
- package/packages/core/dist/actions/approvals.js.map +1 -1
- package/packages/core/dist/agents/catalog.d.ts.map +1 -1
- package/packages/core/dist/agents/catalog.js +2 -2
- package/packages/core/dist/agents/catalog.js.map +1 -1
- package/packages/core/dist/agents/skills.d.ts +60 -1
- package/packages/core/dist/agents/skills.d.ts.map +1 -1
- package/packages/core/dist/agents/skills.js +157 -17
- package/packages/core/dist/agents/skills.js.map +1 -1
- package/packages/core/dist/day-month.d.ts +52 -0
- package/packages/core/dist/day-month.d.ts.map +1 -0
- package/packages/core/dist/day-month.js +101 -0
- package/packages/core/dist/day-month.js.map +1 -0
- package/packages/core/dist/host/build.d.ts +25 -2
- package/packages/core/dist/host/build.d.ts.map +1 -1
- package/packages/core/dist/host/build.js +169 -8
- package/packages/core/dist/host/build.js.map +1 -1
- package/packages/core/dist/host/http.d.ts +97 -0
- package/packages/core/dist/host/http.d.ts.map +1 -1
- package/packages/core/dist/host/http.js +321 -26
- package/packages/core/dist/host/http.js.map +1 -1
- package/packages/core/dist/host/types.d.ts +114 -4
- package/packages/core/dist/host/types.d.ts.map +1 -1
- package/packages/core/dist/index.d.ts +3 -0
- package/packages/core/dist/index.d.ts.map +1 -1
- package/packages/core/dist/index.js +3 -0
- package/packages/core/dist/index.js.map +1 -1
- package/packages/core/dist/notifications/notify.d.ts.map +1 -1
- package/packages/core/dist/notifications/notify.js +10 -6
- package/packages/core/dist/notifications/notify.js.map +1 -1
- package/packages/core/dist/notifications/store.d.ts.map +1 -1
- package/packages/core/dist/notifications/store.js +2 -1
- package/packages/core/dist/notifications/store.js.map +1 -1
- package/packages/core/dist/notifications/types.d.ts +8 -0
- package/packages/core/dist/notifications/types.d.ts.map +1 -1
- package/packages/core/dist/notifications/types.js.map +1 -1
- package/packages/core/dist/onboarding/store.d.ts.map +1 -1
- package/packages/core/dist/onboarding/store.js +28 -5
- package/packages/core/dist/onboarding/store.js.map +1 -1
- package/packages/core/dist/onboarding/types.d.ts +10 -0
- package/packages/core/dist/onboarding/types.d.ts.map +1 -1
- package/packages/core/dist/onboarding/types.js.map +1 -1
- package/packages/core/dist/pages.d.ts +449 -20
- package/packages/core/dist/pages.d.ts.map +1 -1
- package/packages/core/dist/pages.js +223 -8
- package/packages/core/dist/pages.js.map +1 -1
- package/packages/core/dist/plugin/assets.d.ts +52 -0
- package/packages/core/dist/plugin/assets.d.ts.map +1 -0
- package/packages/core/dist/plugin/assets.js +59 -0
- package/packages/core/dist/plugin/assets.js.map +1 -0
- package/packages/core/dist/plugin/index.d.ts +10 -4
- package/packages/core/dist/plugin/index.d.ts.map +1 -1
- package/packages/core/dist/plugin/index.js +4 -1
- package/packages/core/dist/plugin/index.js.map +1 -1
- package/packages/core/dist/plugin/requires.d.ts +3 -1
- package/packages/core/dist/plugin/requires.d.ts.map +1 -1
- package/packages/core/dist/plugin/requires.js +5 -3
- package/packages/core/dist/plugin/requires.js.map +1 -1
- package/packages/core/dist/plugin/sign-in.d.ts +78 -0
- package/packages/core/dist/plugin/sign-in.d.ts.map +1 -0
- package/packages/core/dist/plugin/sign-in.js +54 -0
- package/packages/core/dist/plugin/sign-in.js.map +1 -0
- package/packages/core/dist/plugin/uses.d.ts +1 -1
- package/packages/core/dist/plugin/uses.d.ts.map +1 -1
- package/packages/core/dist/plugin/uses.js +2 -0
- package/packages/core/dist/plugin/uses.js.map +1 -1
- package/packages/core/dist/plugin/version.d.ts +1 -1
- package/packages/core/dist/plugin/version.js +1 -1
- package/packages/core/dist/plugin-assets.d.ts +21 -0
- package/packages/core/dist/plugin-assets.d.ts.map +1 -0
- package/packages/core/dist/plugin-assets.js +140 -0
- package/packages/core/dist/plugin-assets.js.map +1 -0
- package/packages/core/dist/provider-accounts.d.ts +7 -0
- package/packages/core/dist/provider-accounts.d.ts.map +1 -1
- package/packages/core/dist/provider-accounts.js +15 -0
- package/packages/core/dist/provider-accounts.js.map +1 -1
- package/packages/core/dist/questions/types.d.ts +1 -1
- package/packages/core/dist/questions/types.js +1 -1
- package/packages/core/dist/queue/jobs.d.ts +57 -2
- package/packages/core/dist/queue/jobs.d.ts.map +1 -1
- package/packages/core/dist/queue/jobs.js +114 -0
- package/packages/core/dist/queue/jobs.js.map +1 -1
- package/packages/core/dist/queue/worker.d.ts +24 -2
- package/packages/core/dist/queue/worker.d.ts.map +1 -1
- package/packages/core/dist/queue/worker.js +66 -11
- package/packages/core/dist/queue/worker.js.map +1 -1
- package/packages/core/dist/registry.d.ts +17 -0
- package/packages/core/dist/registry.d.ts.map +1 -1
- package/packages/core/dist/registry.js +48 -4
- package/packages/core/dist/registry.js.map +1 -1
- package/packages/core/dist/scheduler/missions.d.ts +14 -0
- package/packages/core/dist/scheduler/missions.d.ts.map +1 -1
- package/packages/core/dist/scheduler/missions.js +17 -4
- package/packages/core/dist/scheduler/missions.js.map +1 -1
- package/packages/core/dist/scheduler/types.d.ts +13 -0
- package/packages/core/dist/scheduler/types.d.ts.map +1 -1
- package/packages/core/dist/scheduler/types.js +14 -0
- package/packages/core/dist/scheduler/types.js.map +1 -1
- package/packages/core/dist/secrets/scrub.d.ts.map +1 -1
- package/packages/core/dist/secrets/scrub.js +15 -0
- package/packages/core/dist/secrets/scrub.js.map +1 -1
- package/packages/core/dist/surfaces.d.ts +10 -0
- package/packages/core/dist/surfaces.d.ts.map +1 -1
- package/packages/core/dist/surfaces.js +11 -0
- package/packages/core/dist/surfaces.js.map +1 -1
- package/packages/core/dist/tools.d.ts +72 -1
- package/packages/core/dist/tools.d.ts.map +1 -1
- package/packages/core/dist/tools.js +38 -0
- package/packages/core/dist/tools.js.map +1 -1
- package/packages/core/dist/views.d.ts +29 -12
- package/packages/core/dist/views.d.ts.map +1 -1
- package/packages/core/dist/views.js +1 -0
- package/packages/core/dist/views.js.map +1 -1
- package/packages/core/dist/widget-settings.d.ts +2 -1
- package/packages/core/dist/widget-settings.d.ts.map +1 -1
- package/packages/core/dist/widget-settings.js +8 -2
- package/packages/core/dist/widget-settings.js.map +1 -1
- package/packages/core/dist/widgets.d.ts +46 -3
- package/packages/core/dist/widgets.d.ts.map +1 -1
- package/packages/core/dist/widgets.js +68 -5
- package/packages/core/dist/widgets.js.map +1 -1
- package/packages/core/migrations/073_mission_report.sql +15 -0
- package/packages/core/migrations/074_owner_identity.sql +14 -0
- package/packages/gateway/dist/.tsbuildinfo +1 -1
- package/packages/gateway/dist/agents/catalog.d.ts.map +1 -1
- package/packages/gateway/dist/agents/catalog.js +3 -3
- package/packages/gateway/dist/agents/catalog.js.map +1 -1
- package/packages/gateway/dist/agents/catalogue-package.d.ts +76 -0
- package/packages/gateway/dist/agents/catalogue-package.d.ts.map +1 -1
- package/packages/gateway/dist/agents/catalogue-package.js +29 -5
- package/packages/gateway/dist/agents/catalogue-package.js.map +1 -1
- package/packages/gateway/dist/agents/owner-text.d.ts +19 -0
- package/packages/gateway/dist/agents/owner-text.d.ts.map +1 -0
- package/packages/gateway/dist/agents/owner-text.js +44 -0
- package/packages/gateway/dist/agents/owner-text.js.map +1 -0
- package/packages/gateway/dist/agents/owner-tools.d.ts.map +1 -1
- package/packages/gateway/dist/agents/owner-tools.js +36 -2
- package/packages/gateway/dist/agents/owner-tools.js.map +1 -1
- package/packages/gateway/dist/agents/platform-catalogue.d.ts +68 -3
- package/packages/gateway/dist/agents/platform-catalogue.d.ts.map +1 -1
- package/packages/gateway/dist/agents/platform-catalogue.js +264 -32
- package/packages/gateway/dist/agents/platform-catalogue.js.map +1 -1
- package/packages/gateway/dist/agents/platform.d.ts +11 -4
- package/packages/gateway/dist/agents/platform.d.ts.map +1 -1
- package/packages/gateway/dist/agents/platform.js +15 -0
- package/packages/gateway/dist/agents/platform.js.map +1 -1
- package/packages/gateway/dist/bootstrap.d.ts.map +1 -1
- package/packages/gateway/dist/bootstrap.js +7 -1
- package/packages/gateway/dist/bootstrap.js.map +1 -1
- package/packages/gateway/dist/evals/golden.d.ts +33 -1
- package/packages/gateway/dist/evals/golden.d.ts.map +1 -1
- package/packages/gateway/dist/evals/golden.js +168 -3
- package/packages/gateway/dist/evals/golden.js.map +1 -1
- package/packages/gateway/dist/index.d.ts +2 -1
- package/packages/gateway/dist/index.d.ts.map +1 -1
- package/packages/gateway/dist/index.js +2 -1
- package/packages/gateway/dist/index.js.map +1 -1
- package/packages/gateway/dist/missions/agent-run.d.ts.map +1 -1
- package/packages/gateway/dist/missions/agent-run.js +2 -0
- package/packages/gateway/dist/missions/agent-run.js.map +1 -1
- package/packages/gateway/dist/missions/dates.d.ts +98 -0
- package/packages/gateway/dist/missions/dates.d.ts.map +1 -0
- package/packages/gateway/dist/missions/dates.js +252 -0
- package/packages/gateway/dist/missions/dates.js.map +1 -0
- package/packages/gateway/dist/missions/defaults.d.ts.map +1 -1
- package/packages/gateway/dist/missions/defaults.js +2 -0
- package/packages/gateway/dist/missions/defaults.js.map +1 -1
- package/packages/gateway/dist/missions/execute.d.ts +25 -1
- package/packages/gateway/dist/missions/execute.d.ts.map +1 -1
- package/packages/gateway/dist/missions/execute.js +80 -8
- package/packages/gateway/dist/missions/execute.js.map +1 -1
- package/packages/gateway/dist/missions/report.d.ts +25 -2
- package/packages/gateway/dist/missions/report.d.ts.map +1 -1
- package/packages/gateway/dist/missions/report.js +71 -11
- package/packages/gateway/dist/missions/report.js.map +1 -1
- package/packages/gateway/dist/ollama-local.d.ts +90 -0
- package/packages/gateway/dist/ollama-local.d.ts.map +1 -0
- package/packages/gateway/dist/ollama-local.js +201 -0
- package/packages/gateway/dist/ollama-local.js.map +1 -0
- package/packages/gateway/dist/owner-notify.d.ts.map +1 -1
- package/packages/gateway/dist/owner-notify.js +7 -3
- package/packages/gateway/dist/owner-notify.js.map +1 -1
- package/packages/gateway/dist/plugins/asset-image-worker.d.ts +2 -0
- package/packages/gateway/dist/plugins/asset-image-worker.d.ts.map +1 -0
- package/packages/gateway/dist/plugins/asset-image-worker.js +18 -0
- package/packages/gateway/dist/plugins/asset-image-worker.js.map +1 -0
- package/packages/gateway/dist/plugins/asset-image.d.ts +31 -0
- package/packages/gateway/dist/plugins/asset-image.d.ts.map +1 -0
- package/packages/gateway/dist/plugins/asset-image.js +332 -0
- package/packages/gateway/dist/plugins/asset-image.js.map +1 -0
- package/packages/gateway/dist/plugins/load.d.ts.map +1 -1
- package/packages/gateway/dist/plugins/load.js +14 -1
- package/packages/gateway/dist/plugins/load.js.map +1 -1
- package/packages/gateway/dist/plugins/stage.d.ts +6 -0
- package/packages/gateway/dist/plugins/stage.d.ts.map +1 -1
- package/packages/gateway/dist/plugins/stage.js +5 -0
- package/packages/gateway/dist/plugins/stage.js.map +1 -1
- package/packages/gateway/dist/plugins/uninstall.d.ts.map +1 -1
- package/packages/gateway/dist/plugins/uninstall.js +8 -0
- package/packages/gateway/dist/plugins/uninstall.js.map +1 -1
- package/packages/gateway/dist/plugins-cli.d.ts +8 -0
- package/packages/gateway/dist/plugins-cli.d.ts.map +1 -1
- package/packages/gateway/dist/plugins-cli.js +22 -1
- package/packages/gateway/dist/plugins-cli.js.map +1 -1
- package/packages/gateway/dist/serve.d.ts.map +1 -1
- package/packages/gateway/dist/serve.js +50 -5
- package/packages/gateway/dist/serve.js.map +1 -1
- package/packages/gateway/dist/surfaces/pending-question.js +2 -2
- package/packages/gateway/dist/system-context.d.ts +21 -1
- package/packages/gateway/dist/system-context.d.ts.map +1 -1
- package/packages/gateway/dist/system-context.js +76 -2
- package/packages/gateway/dist/system-context.js.map +1 -1
- package/packages/gateway/dist/telegram/approvals.d.ts.map +1 -1
- package/packages/gateway/dist/telegram/approvals.js +4 -2
- package/packages/gateway/dist/telegram/approvals.js.map +1 -1
- package/packages/gateway/dist/telegram/channel.d.ts +12 -0
- package/packages/gateway/dist/telegram/channel.d.ts.map +1 -1
- package/packages/gateway/dist/telegram/channel.js +49 -2
- package/packages/gateway/dist/telegram/channel.js.map +1 -1
- package/packages/gateway/dist/telegram/html.d.ts +34 -0
- package/packages/gateway/dist/telegram/html.d.ts.map +1 -0
- package/packages/gateway/dist/telegram/html.js +263 -0
- package/packages/gateway/dist/telegram/html.js.map +1 -0
- package/packages/gateway/dist/telegram/notify.d.ts +6 -0
- package/packages/gateway/dist/telegram/notify.d.ts.map +1 -1
- package/packages/gateway/dist/telegram/notify.js +25 -3
- package/packages/gateway/dist/telegram/notify.js.map +1 -1
- package/packages/gateway/dist/tips/facts.d.ts +2 -0
- package/packages/gateway/dist/tips/facts.d.ts.map +1 -1
- package/packages/gateway/dist/tips/facts.js +4 -1
- package/packages/gateway/dist/tips/facts.js.map +1 -1
- package/packages/gateway/dist/tips/rules.d.ts.map +1 -1
- package/packages/gateway/dist/tips/rules.js +10 -0
- package/packages/gateway/dist/tips/rules.js.map +1 -1
- package/packages/gateway/dist/web/api-routes.d.ts.map +1 -1
- package/packages/gateway/dist/web/api-routes.js +80 -11
- package/packages/gateway/dist/web/api-routes.js.map +1 -1
- package/packages/gateway/dist/web/api-scan.d.ts +1 -1
- package/packages/gateway/dist/web/api-scan.d.ts.map +1 -1
- package/packages/gateway/dist/web/api-scan.js +1 -0
- package/packages/gateway/dist/web/api-scan.js.map +1 -1
- package/packages/gateway/dist/web/catalogue.d.ts.map +1 -1
- package/packages/gateway/dist/web/catalogue.js +7 -4
- package/packages/gateway/dist/web/catalogue.js.map +1 -1
- package/packages/gateway/dist/web/chat.d.ts.map +1 -1
- package/packages/gateway/dist/web/chat.js +9 -0
- package/packages/gateway/dist/web/chat.js.map +1 -1
- package/packages/gateway/dist/web/composer.d.ts +45 -0
- package/packages/gateway/dist/web/composer.d.ts.map +1 -0
- package/packages/gateway/dist/web/composer.js +85 -0
- package/packages/gateway/dist/web/composer.js.map +1 -0
- package/packages/gateway/dist/web/extension.d.ts +12 -0
- package/packages/gateway/dist/web/extension.d.ts.map +1 -1
- package/packages/gateway/dist/web/extension.js +11 -1
- package/packages/gateway/dist/web/extension.js.map +1 -1
- package/packages/gateway/dist/web/lock.d.ts +6 -0
- package/packages/gateway/dist/web/lock.d.ts.map +1 -1
- package/packages/gateway/dist/web/lock.js +33 -2
- package/packages/gateway/dist/web/lock.js.map +1 -1
- package/packages/gateway/dist/web/market.d.ts +20 -1
- package/packages/gateway/dist/web/market.d.ts.map +1 -1
- package/packages/gateway/dist/web/market.js +41 -1
- package/packages/gateway/dist/web/market.js.map +1 -1
- package/packages/gateway/dist/web/people.d.ts +44 -0
- package/packages/gateway/dist/web/people.d.ts.map +1 -0
- package/packages/gateway/dist/web/people.js +114 -0
- package/packages/gateway/dist/web/people.js.map +1 -0
- package/packages/gateway/dist/web/server.d.ts +4 -0
- package/packages/gateway/dist/web/server.d.ts.map +1 -1
- package/packages/gateway/dist/web/server.js +171 -13
- package/packages/gateway/dist/web/server.js.map +1 -1
- package/packages/gateway/dist/web/skill-bundles.d.ts +101 -0
- package/packages/gateway/dist/web/skill-bundles.d.ts.map +1 -0
- package/packages/gateway/dist/web/skill-bundles.js +439 -0
- package/packages/gateway/dist/web/skill-bundles.js.map +1 -0
- package/packages/gateway/dist/web/skills.d.ts +57 -1
- package/packages/gateway/dist/web/skills.d.ts.map +1 -1
- package/packages/gateway/dist/web/skills.js +171 -9
- package/packages/gateway/dist/web/skills.js.map +1 -1
- package/packages/gateway/dist/web/widgets.js +2 -2
- package/packages/gateway/dist/web/widgets.js.map +1 -1
- package/packages/gateway/dist/web/zip-read.d.ts +31 -0
- package/packages/gateway/dist/web/zip-read.d.ts.map +1 -0
- package/packages/gateway/dist/web/zip-read.js +125 -0
- package/packages/gateway/dist/web/zip-read.js.map +1 -0
- package/packages/install/dist/.tsbuildinfo +1 -1
- package/packages/runtime/dist/.tsbuildinfo +1 -1
- package/packages/runtime/dist/index.d.ts +1 -0
- package/packages/runtime/dist/index.d.ts.map +1 -1
- package/packages/runtime/dist/index.js +1 -0
- package/packages/runtime/dist/index.js.map +1 -1
- package/packages/runtime/dist/loop.js +11 -1
- package/packages/runtime/dist/loop.js.map +1 -1
- package/packages/runtime/dist/plugin-sign-in.d.ts +12 -0
- package/packages/runtime/dist/plugin-sign-in.d.ts.map +1 -0
- package/packages/runtime/dist/plugin-sign-in.js +397 -0
- package/packages/runtime/dist/plugin-sign-in.js.map +1 -0
- package/packages/runtime/dist/transport.d.ts +1 -1
- package/packages/runtime/dist/transport.d.ts.map +1 -1
- package/packages/runtime/dist/transport.js +6 -0
- package/packages/runtime/dist/transport.js.map +1 -1
- package/packages/tools/artifacts/dist/.tsbuildinfo +1 -1
- package/packages/tools/artifacts/dist/tools/write.d.ts.map +1 -1
- package/packages/tools/artifacts/dist/tools/write.js +1 -0
- package/packages/tools/artifacts/dist/tools/write.js.map +1 -1
- package/packages/tools/browser/dist/.tsbuildinfo +1 -1
- package/packages/tools/browser/dist/computer.d.ts +13 -0
- package/packages/tools/browser/dist/computer.d.ts.map +1 -1
- package/packages/tools/browser/dist/computer.js +22 -2
- package/packages/tools/browser/dist/computer.js.map +1 -1
- package/packages/tools/browser/dist/controller.d.ts +4 -0
- package/packages/tools/browser/dist/controller.d.ts.map +1 -1
- package/packages/tools/browser/dist/controller.js +8 -3
- package/packages/tools/browser/dist/controller.js.map +1 -1
- package/packages/tools/browser/dist/index.d.ts +1 -1
- package/packages/tools/browser/dist/index.d.ts.map +1 -1
- package/packages/tools/browser/dist/index.js +1 -1
- package/packages/tools/browser/dist/index.js.map +1 -1
- package/packages/tools/browser/dist/native/buddi-computer +0 -0
- package/packages/tools/browser/dist/service.d.ts +5 -0
- package/packages/tools/browser/dist/service.d.ts.map +1 -1
- package/packages/tools/browser/dist/service.js.map +1 -1
- package/packages/tools/email/dist/.tsbuildinfo +1 -1
- package/packages/tools/email/dist/widgets.d.ts.map +1 -1
- package/packages/tools/email/dist/widgets.js +2 -1
- package/packages/tools/email/dist/widgets.js.map +1 -1
- package/packages/tools/host/dist/.tsbuildinfo +1 -1
- package/packages/tools/host/dist/index.d.ts +2 -1
- package/packages/tools/host/dist/index.d.ts.map +1 -1
- package/packages/tools/host/dist/index.js +3 -2
- package/packages/tools/host/dist/index.js.map +1 -1
- package/packages/tools/host/dist/process.d.ts +4 -0
- package/packages/tools/host/dist/process.d.ts.map +1 -1
- package/packages/tools/host/dist/process.js +4 -2
- package/packages/tools/host/dist/process.js.map +1 -1
- package/packages/tools/host/dist/service.d.ts +66 -17
- package/packages/tools/host/dist/service.d.ts.map +1 -1
- package/packages/tools/host/dist/service.js +172 -9
- package/packages/tools/host/dist/service.js.map +1 -1
- package/packages/tools/host/dist/skill-run.d.ts +55 -0
- package/packages/tools/host/dist/skill-run.d.ts.map +1 -0
- package/packages/tools/host/dist/skill-run.js +132 -0
- package/packages/tools/host/dist/skill-run.js.map +1 -0
- package/packages/tools/mcp/dist/.tsbuildinfo +1 -1
- package/packages/tools/memory/dist/.tsbuildinfo +1 -1
- package/packages/tools/memory/dist/index.d.ts +1 -0
- package/packages/tools/memory/dist/index.d.ts.map +1 -1
- package/packages/tools/memory/dist/index.js +7 -2
- package/packages/tools/memory/dist/index.js.map +1 -1
- package/packages/tools/memory/dist/people.d.ts +218 -0
- package/packages/tools/memory/dist/people.d.ts.map +1 -0
- package/packages/tools/memory/dist/people.js +582 -0
- package/packages/tools/memory/dist/people.js.map +1 -0
- package/packages/tools/memory/dist/preamble.d.ts +4 -1
- package/packages/tools/memory/dist/preamble.d.ts.map +1 -1
- package/packages/tools/memory/dist/preamble.js +25 -7
- package/packages/tools/memory/dist/preamble.js.map +1 -1
- package/packages/tools/memory/migrations/002_people.sql +40 -0
- package/packages/tools/web/dist/.tsbuildinfo +1 -1
- package/packages/web/dist/assets/index-CN1AXMI1.css +1 -0
- package/packages/web/dist/assets/index-CQRE9LJX.js +145 -0
- package/packages/web/dist/assets/{lottie_light-DYHnHRWL.js → lottie_light-CKJ88Yuk.js} +1 -1
- package/packages/web/dist/build.json +1 -1
- package/packages/web/dist/index.html +2 -2
- package/packages/web/dist/precache.json +4 -4
- package/node_modules/pino/test/types/pino-import.test-d.cts +0 -30
- package/node_modules/pino/test/types/pino-multistream.test-d.ts +0 -28
- package/node_modules/pino/test/types/pino-top-export.test-d.ts +0 -34
- package/node_modules/pino/test/types/pino-type-only.test-d.ts +0 -75
- package/node_modules/thread-stream/node_modules/real-require/LICENSE.md +0 -21
- package/node_modules/thread-stream/node_modules/real-require/README.md +0 -51
- package/node_modules/thread-stream/node_modules/real-require/package.json +0 -38
- package/node_modules/thread-stream/node_modules/real-require/src/index.js +0 -14
- package/packages/web/dist/assets/index-ZauRFo4G.js +0 -134
- package/packages/web/dist/assets/index-viBWQfeT.css +0 -1
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
*/
|
|
26
26
|
import { existsSync, readdirSync, readFileSync, rmSync, statSync } from 'node:fs';
|
|
27
27
|
import path from 'node:path';
|
|
28
|
-
import { AGENT_FILE, applyFrontmatterPatch, assertApprovedEffect, getMission, HANDLE_MAX, hashEnvelope, parseAgentFile, parseSkillFile, satisfiesRange, setSchedule, SKILLS_DIR, STARTER_MAX, upsertMission, } from '@buddi/core';
|
|
28
|
+
import { AGENT_FILE, applyFrontmatterPatch, assertApprovedEffect, getMission, setMissionExtras, HANDLE_MAX, hashEnvelope, parseAgentFile, parseSkillFile, satisfiesRange, setSchedule, SKILLS_DIR, STARTER_MAX, upsertMission, } from '@buddi/core';
|
|
29
29
|
import { z } from 'zod';
|
|
30
30
|
import { composePackagePersona, cronAt, cronClock, deniedTools, fileHash, parseClock, } from './catalogue-package.js';
|
|
31
31
|
import { composeProvenance, fileEdited, packageOwnedText, readProvenance, PROVENANCE_FILE } from '../plugins/provenance.js';
|
|
@@ -33,7 +33,9 @@ import { composeAgentFile, composeSkillFile, createAgentDirAtomic, trashStamp, w
|
|
|
33
33
|
import { diffGrant, grantChangeBlock } from './platform-grant.js';
|
|
34
34
|
import { agentMissionId, describeCadence } from '../missions/reminders.js';
|
|
35
35
|
import { normaliseAvatar } from './avatar-image.js';
|
|
36
|
+
import { ownerText } from './owner-text.js';
|
|
36
37
|
import { readAvatar, writeAvatar } from './avatars.js';
|
|
38
|
+
import { DELEGATES_FILE, applyDelegateEdits, readDelegatesFile } from './delegation.js';
|
|
37
39
|
/** Said when there is neither a fresh list nor a copy. */
|
|
38
40
|
export const CATALOGUE_OFFLINE = "The catalogue needs withbuddi.com; try again when you're online.";
|
|
39
41
|
/**
|
|
@@ -252,6 +254,21 @@ export class CatalogueRefusal extends Error {
|
|
|
252
254
|
function refuse(code, message) {
|
|
253
255
|
throw new CatalogueRefusal(code, message);
|
|
254
256
|
}
|
|
257
|
+
/** JSON with sorted keys, so a jsonb column's own key order never reads as a change. */
|
|
258
|
+
function stableJson(value) {
|
|
259
|
+
if (Array.isArray(value))
|
|
260
|
+
return `[${value.map(stableJson).join(',')}]`;
|
|
261
|
+
if (value !== null && typeof value === 'object') {
|
|
262
|
+
return `{${Object.keys(value).sort().map((k) => `${JSON.stringify(k)}:${stableJson(value[k])}`).join(',')}}`;
|
|
263
|
+
}
|
|
264
|
+
return JSON.stringify(value ?? null);
|
|
265
|
+
}
|
|
266
|
+
/** A settings change in the owner's words: "reads news.edition_material before each run; reports up to 3,800 characters". */
|
|
267
|
+
export function missionSettingsWords(change) {
|
|
268
|
+
const reads = change.context ? `reads ${change.context.plugin}.${change.context.export} before each run` : 'reads nothing before it runs';
|
|
269
|
+
const length = change.reportMax ? `reports up to ${change.reportMax.toLocaleString('en-US')} characters` : 'reports at the usual length';
|
|
270
|
+
return `${reads}; ${length}`;
|
|
271
|
+
}
|
|
255
272
|
export const installAgentInput = z
|
|
256
273
|
.object({
|
|
257
274
|
name: z.string().min(1).describe('The package, as platform.catalogue lists it: "chef".'),
|
|
@@ -375,8 +392,12 @@ export function resolvePicks(pkg, given, choices) {
|
|
|
375
392
|
return { id: fill.id, kind: fill.kind, label: fill.label, value };
|
|
376
393
|
});
|
|
377
394
|
}
|
|
378
|
-
/**
|
|
379
|
-
|
|
395
|
+
/**
|
|
396
|
+
* A unified diff of two texts, from a plain longest-common-subsequence: hunks headed `@@ -a,b +c,d @@`
|
|
397
|
+
* (1-based starts and line counts, as `diff -u` writes them), each line `- ` removed, `+ ` added or
|
|
398
|
+
* ` ` unchanged context, `context` lines of it around every change. Hunks closer than twice the context merge.
|
|
399
|
+
*/
|
|
400
|
+
export function lineDiff(before, after, context = 2) {
|
|
380
401
|
const a = before.trim().split('\n');
|
|
381
402
|
const b = after.trim().split('\n');
|
|
382
403
|
const n = a.length;
|
|
@@ -387,27 +408,85 @@ export function lineDiff(before, after) {
|
|
|
387
408
|
table[i][j] = a[i] === b[j] ? table[i + 1][j + 1] + 1 : Math.max(table[i + 1][j], table[i][j + 1]);
|
|
388
409
|
}
|
|
389
410
|
}
|
|
390
|
-
|
|
411
|
+
// Every line of both texts in order, with its 0-based place in the old (i) and new (j) text.
|
|
412
|
+
const ops = [];
|
|
391
413
|
let i = 0;
|
|
392
414
|
let j = 0;
|
|
393
415
|
while (i < n && j < m) {
|
|
394
416
|
if (a[i] === b[j]) {
|
|
417
|
+
ops.push({ k: ' ', text: a[i], i, j });
|
|
395
418
|
i += 1;
|
|
396
419
|
j += 1;
|
|
397
420
|
}
|
|
398
421
|
else if (table[i + 1][j] >= table[i][j + 1]) {
|
|
399
|
-
|
|
422
|
+
ops.push({ k: '-', text: a[i], i, j });
|
|
400
423
|
i += 1;
|
|
401
424
|
}
|
|
402
425
|
else {
|
|
403
|
-
|
|
426
|
+
ops.push({ k: '+', text: b[j], i, j });
|
|
404
427
|
j += 1;
|
|
405
428
|
}
|
|
406
429
|
}
|
|
407
430
|
while (i < n)
|
|
408
|
-
|
|
431
|
+
ops.push({ k: '-', text: a[i], i: i++, j });
|
|
409
432
|
while (j < m)
|
|
410
|
-
|
|
433
|
+
ops.push({ k: '+', text: b[j], i, j: j++ });
|
|
434
|
+
// Ranges of ops to show: each change widened by the context, overlapping or touching ranges joined.
|
|
435
|
+
const ranges = [];
|
|
436
|
+
ops.forEach((op, at) => {
|
|
437
|
+
if (op.k === ' ')
|
|
438
|
+
return;
|
|
439
|
+
const from = Math.max(0, at - context);
|
|
440
|
+
const to = Math.min(ops.length - 1, at + context);
|
|
441
|
+
const last = ranges[ranges.length - 1];
|
|
442
|
+
if (last && from <= last[1] + 1)
|
|
443
|
+
last[1] = Math.max(last[1], to);
|
|
444
|
+
else
|
|
445
|
+
ranges.push([from, to]);
|
|
446
|
+
});
|
|
447
|
+
const out = [];
|
|
448
|
+
for (const [from, to] of ranges) {
|
|
449
|
+
const hunk = ops.slice(from, to + 1);
|
|
450
|
+
const oldCount = hunk.filter((op) => op.k !== '+').length;
|
|
451
|
+
const newCount = hunk.filter((op) => op.k !== '-').length;
|
|
452
|
+
const oldStart = oldCount === 0 ? hunk[0].i : hunk[0].i + 1;
|
|
453
|
+
const newStart = newCount === 0 ? hunk[0].j : hunk[0].j + 1;
|
|
454
|
+
out.push(`@@ -${oldStart},${oldCount} +${newStart},${newCount} @@`);
|
|
455
|
+
for (const op of hunk)
|
|
456
|
+
out.push(`${op.k} ${op.text}`);
|
|
457
|
+
}
|
|
458
|
+
return out;
|
|
459
|
+
}
|
|
460
|
+
/** The hunk header's new-file start and line count, or null when the line is not one. */
|
|
461
|
+
export function hunkHeader(line) {
|
|
462
|
+
const match = /^@@ -\d+,\d+ \+(\d+),(\d+) @@$/.exec(line);
|
|
463
|
+
return match ? { newStart: Number(match[1]), newCount: Number(match[2]) } : null;
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
* The diff as the owner reads it: each line under its number in the new file (blank for a removed line),
|
|
467
|
+
* and `⋯ N lines` where unchanged lines between two hunks are left out. Hunk headers do not show.
|
|
468
|
+
*/
|
|
469
|
+
export function readableDiff(lines) {
|
|
470
|
+
const out = [];
|
|
471
|
+
let next = 0;
|
|
472
|
+
let shownTo = 0;
|
|
473
|
+
for (const line of lines) {
|
|
474
|
+
const header = hunkHeader(line);
|
|
475
|
+
if (header) {
|
|
476
|
+
const start = header.newCount === 0 ? header.newStart + 1 : header.newStart;
|
|
477
|
+
if (out.length > 0 && start - 1 > shownTo)
|
|
478
|
+
out.push(` ⋯ ${start - 1 - shownTo} line${start - 1 - shownTo === 1 ? '' : 's'}`);
|
|
479
|
+
next = start;
|
|
480
|
+
continue;
|
|
481
|
+
}
|
|
482
|
+
const kind = line.slice(0, 1);
|
|
483
|
+
const number = kind === '-' ? '' : String(next);
|
|
484
|
+
if (kind !== '-') {
|
|
485
|
+
shownTo = next;
|
|
486
|
+
next += 1;
|
|
487
|
+
}
|
|
488
|
+
out.push(`${number.padStart(4)} ${line}`);
|
|
489
|
+
}
|
|
411
490
|
return out;
|
|
412
491
|
}
|
|
413
492
|
/** The package the input names, read from the catalogue the gateway keeps; a refusal otherwise. */
|
|
@@ -448,6 +527,8 @@ function missionPlans(pkg, agentId, picks, timezone, on) {
|
|
|
448
527
|
enabled: on.has(m.id),
|
|
449
528
|
...(m.alwaysDeliver === undefined ? {} : { alwaysDeliver: m.alwaysDeliver }),
|
|
450
529
|
...(m.misfirePolicy === undefined ? {} : { misfirePolicy: m.misfirePolicy }),
|
|
530
|
+
...(m.context === undefined ? {} : { context: m.context }),
|
|
531
|
+
...(m.reportMax === undefined ? {} : { reportMax: m.reportMax }),
|
|
451
532
|
};
|
|
452
533
|
});
|
|
453
534
|
}
|
|
@@ -476,6 +557,82 @@ function checkDenied(pkg, resolvedTools) {
|
|
|
476
557
|
'You can add any of them by hand after it is added.');
|
|
477
558
|
}
|
|
478
559
|
}
|
|
560
|
+
const holdsDelegate = (tools) => tools.some((t) => t === 'agent.delegate' || t === 'agent.*');
|
|
561
|
+
/**
|
|
562
|
+
* Who the agent hands work to, from its package's `delegates` (catalogue
|
|
563
|
+
* package names), and the lists it joins (docs/agents.md, "Delegation from
|
|
564
|
+
* the catalogue"). Install: its own list is the names resolved to agents
|
|
565
|
+
* installed here (by package, or an agent a package replaces); a front desk
|
|
566
|
+
* with an explicit list gains it, and so does any installed agent whose
|
|
567
|
+
* package names this one. Update: the resolved names are added to the list
|
|
568
|
+
* it has, nothing removed. A front desk or maker with no list already asks
|
|
569
|
+
* everyone and is left alone. Nothing is written here.
|
|
570
|
+
*/
|
|
571
|
+
async function planDelegation(pkg, agent, mode, deps, binding) {
|
|
572
|
+
const { registry, helpers } = deps;
|
|
573
|
+
const loaded = await helpers.service(registry)?.load({ cachedOnly: true }).catch(() => undefined);
|
|
574
|
+
const packages = loaded && 'packages' in loaded ? loaded.packages : [pkg];
|
|
575
|
+
const added = addedAgents(binding.agentsDir);
|
|
576
|
+
const installedId = (name) => {
|
|
577
|
+
const listed = packages.find((p) => p.manifest.name === name);
|
|
578
|
+
const hit = listed ? installedAsFor(listed, added, (id) => id) : undefined;
|
|
579
|
+
return hit?.agentId ?? binding.catalog.get(name)?.id;
|
|
580
|
+
};
|
|
581
|
+
const wanted = holdsDelegate(agent.tools)
|
|
582
|
+
? (pkg.manifest.delegates ?? []).map(installedId).filter((id) => id !== undefined)
|
|
583
|
+
: [];
|
|
584
|
+
const resolved = helpers.delegatable(registry, [...new Set(wanted)], agent.id);
|
|
585
|
+
let before = [];
|
|
586
|
+
if (mode === 'update') {
|
|
587
|
+
try {
|
|
588
|
+
before = readDelegatesFile(agent.id, path.dirname(agent.dir)) ?? [];
|
|
589
|
+
}
|
|
590
|
+
catch {
|
|
591
|
+
before = [];
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
const after = [...before, ...resolved.filter((id) => !before.includes(id))];
|
|
595
|
+
const joins = [];
|
|
596
|
+
if (mode === 'install') {
|
|
597
|
+
for (const summary of binding.catalog.list()) {
|
|
598
|
+
// An example's list is the repo's, never written at runtime.
|
|
599
|
+
if (summary.id === agent.id || summary.source === 'example')
|
|
600
|
+
continue;
|
|
601
|
+
const other = binding.catalog.get(summary.id);
|
|
602
|
+
if (!other)
|
|
603
|
+
continue;
|
|
604
|
+
const otherDir = path.dirname(path.dirname(other.file));
|
|
605
|
+
let stored;
|
|
606
|
+
try {
|
|
607
|
+
stored = readDelegatesFile(other.id, otherDir);
|
|
608
|
+
}
|
|
609
|
+
catch {
|
|
610
|
+
continue;
|
|
611
|
+
}
|
|
612
|
+
if (stored?.includes('*') || stored?.includes(agent.id))
|
|
613
|
+
continue;
|
|
614
|
+
const open = summary.roles.includes('front-desk') || summary.roles.includes('maker');
|
|
615
|
+
if (stored === undefined && open)
|
|
616
|
+
continue;
|
|
617
|
+
const frontDesk = summary.roles.includes('front-desk') && stored !== undefined;
|
|
618
|
+
const from = added.find((a) => a.agentId === other.id);
|
|
619
|
+
const otherPkg = from ? packages.find((p) => matchesPackage(p, from) !== null) : undefined;
|
|
620
|
+
const named = holdsDelegate(other.tools) && (otherPkg?.manifest.delegates ?? []).includes(pkg.manifest.name);
|
|
621
|
+
if (!frontDesk && !named)
|
|
622
|
+
continue;
|
|
623
|
+
joins.push({
|
|
624
|
+
id: other.id,
|
|
625
|
+
handle: other.handle,
|
|
626
|
+
path: path.join(otherDir, other.id, DELEGATES_FILE),
|
|
627
|
+
content: `${JSON.stringify([...(stored ?? []), agent.id], null, 2)}\n`,
|
|
628
|
+
});
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
if (after.join(',') === before.join(',') && joins.length === 0)
|
|
632
|
+
return undefined;
|
|
633
|
+
const handles = Object.fromEntries(after.map((id) => [id, binding.catalog.get(id)?.handle ?? id]));
|
|
634
|
+
return { file: path.join(agent.dir, DELEGATES_FILE), before, after, handles, joins };
|
|
635
|
+
}
|
|
479
636
|
/**
|
|
480
637
|
* The plan the owner was shown, as one fingerprint: the whole envelope but who
|
|
481
638
|
* proposed it — the package's integrity, the resolved grant, the file's and
|
|
@@ -567,6 +724,7 @@ async function composeInstallEnvelope(input, deps) {
|
|
|
567
724
|
}, { registry, proposedBy: deps.proposedBy });
|
|
568
725
|
checkDenied(pkg, created.tools);
|
|
569
726
|
const agentDir = path.dirname(created.file);
|
|
727
|
+
const delegation = await planDelegation(pkg, { id: created.id, tools: created.tools, dir: agentDir }, 'install', deps, binding);
|
|
570
728
|
return {
|
|
571
729
|
tool: 'platform.install_agent',
|
|
572
730
|
mode: 'install',
|
|
@@ -587,6 +745,7 @@ async function composeInstallEnvelope(input, deps) {
|
|
|
587
745
|
picks,
|
|
588
746
|
avatar,
|
|
589
747
|
created,
|
|
748
|
+
...(delegation ? { delegation } : {}),
|
|
590
749
|
};
|
|
591
750
|
}
|
|
592
751
|
async function buildUpdate(input, deps, pkg, binding, choices, packageInfo, avatar) {
|
|
@@ -683,17 +842,28 @@ async function buildUpdate(input, deps, pkg, binding, choices, packageInfo, avat
|
|
|
683
842
|
}
|
|
684
843
|
const grant = diffGrant(agent.tools, tools);
|
|
685
844
|
const existing = new Set();
|
|
845
|
+
const plans = missionPlans(pkg, agent.id, picks, deps.timezone, new Set());
|
|
846
|
+
const missionSettings = [];
|
|
686
847
|
if (deps.db) {
|
|
687
|
-
for (const
|
|
688
|
-
const row = await getMission(deps.db,
|
|
689
|
-
if (row)
|
|
690
|
-
|
|
848
|
+
for (const plan of plans) {
|
|
849
|
+
const row = await getMission(deps.db, plan.id).catch(() => null);
|
|
850
|
+
if (!row)
|
|
851
|
+
continue;
|
|
852
|
+
existing.add(plan.slug);
|
|
853
|
+
// An existing mission is the owner's; only what the package says it reads and how long it reports may follow it.
|
|
854
|
+
const context = plan.context ?? null;
|
|
855
|
+
const reportMax = plan.reportMax ?? null;
|
|
856
|
+
if (stableJson(row.context ?? null) !== stableJson(context) || (row.reportMax ?? null) !== reportMax) {
|
|
857
|
+
missionSettings.push({ id: plan.id, name: row.name, context, reportMax });
|
|
858
|
+
}
|
|
691
859
|
}
|
|
692
860
|
}
|
|
693
|
-
const missions =
|
|
861
|
+
const missions = plans.filter((plan) => !existing.has(plan.slug));
|
|
862
|
+
const delegation = await planDelegation(pkg, { id: agent.id, tools, dir }, 'update', deps, binding);
|
|
694
863
|
return {
|
|
695
864
|
tool: 'platform.install_agent',
|
|
696
865
|
mode: 'update',
|
|
866
|
+
...(delegation ? { delegation } : {}),
|
|
697
867
|
proposedBy: deps.proposedBy,
|
|
698
868
|
package: packageInfo,
|
|
699
869
|
id: agent.id,
|
|
@@ -723,13 +893,37 @@ async function buildUpdate(input, deps, pkg, binding, choices, packageInfo, avat
|
|
|
723
893
|
removed: grant.removed,
|
|
724
894
|
widened: grant.widened,
|
|
725
895
|
personaDiff: lineDiff(before.body, persona),
|
|
896
|
+
missionSettings,
|
|
726
897
|
},
|
|
727
898
|
};
|
|
728
899
|
}
|
|
729
|
-
function
|
|
730
|
-
|
|
900
|
+
function personaBlock(diff) {
|
|
901
|
+
if (diff.length === 0)
|
|
902
|
+
return ['Its persona is unchanged.'];
|
|
903
|
+
const lines = readableDiff(diff);
|
|
904
|
+
return [
|
|
905
|
+
'Its persona changes:',
|
|
906
|
+
...lines.slice(0, 80).map((line) => ` ${line}`),
|
|
907
|
+
...(lines.length > 80 ? [` … and ${lines.length - 80} more lines`] : []),
|
|
908
|
+
];
|
|
909
|
+
}
|
|
910
|
+
function missionLines(missions, specs) {
|
|
911
|
+
return missions.map((mission) => ` ${ownerText(mission.name, specs)}, ${describeCadence(mission.cron, mission.timezone)} — ` +
|
|
731
912
|
(mission.enabled ? 'ON from the start' : 'off until you turn it on'));
|
|
732
913
|
}
|
|
914
|
+
/** What the approval card says about delegation: whom it asks, who may ask it. */
|
|
915
|
+
function delegationLines(envelope) {
|
|
916
|
+
const d = envelope.delegation;
|
|
917
|
+
if (!d)
|
|
918
|
+
return [];
|
|
919
|
+
const handleOf = (id) => d.handles[id] ?? id;
|
|
920
|
+
const added = d.after.filter((id) => !d.before.includes(id));
|
|
921
|
+
return [
|
|
922
|
+
...(added.length === 0 ? [] : [`It may hand work to: ${added.map((id) => `@${handleOf(id)}`).join(', ')}.`]),
|
|
923
|
+
...(d.joins.length === 0 ? [] : [`${d.joins.map((j) => `@${j.handle}`).join(', ')} may hand work to it.`]),
|
|
924
|
+
'',
|
|
925
|
+
];
|
|
926
|
+
}
|
|
733
927
|
export function renderInstallPreview(envelope, specs, renderCreate) {
|
|
734
928
|
const picks = envelope.picks.filter((p) => p.kind !== 'time' && p.value !== '');
|
|
735
929
|
if (envelope.mode === 'update' && envelope.update) {
|
|
@@ -737,7 +931,7 @@ export function renderInstallPreview(envelope, specs, renderCreate) {
|
|
|
737
931
|
return [
|
|
738
932
|
`Update @${envelope.handle} from the catalogue: ${envelope.package.title} ${envelope.package.version}` +
|
|
739
933
|
` (you have ${u.via ? `${u.via} ${u.fromVersion}` : u.fromVersion}).`,
|
|
740
|
-
`What changed: ${envelope.package.changes}`,
|
|
934
|
+
`What changed: ${ownerText(envelope.package.changes, specs)}`,
|
|
741
935
|
'',
|
|
742
936
|
...(u.edited
|
|
743
937
|
? [
|
|
@@ -759,14 +953,22 @@ export function renderInstallPreview(envelope, specs, renderCreate) {
|
|
|
759
953
|
: []),
|
|
760
954
|
...grantChangeBlock(envelope.handle, { ...diffGrant(u.toolsBefore, envelope.tools) }, specs),
|
|
761
955
|
'',
|
|
762
|
-
...(u.personaDiff
|
|
763
|
-
|
|
764
|
-
: ['Its persona changes:', ...u.personaDiff.slice(0, 80).map((line) => ` ${line}`), ...(u.personaDiff.length > 80 ? [` … and ${u.personaDiff.length - 80} more lines`] : [])]),
|
|
956
|
+
...personaBlock(u.personaDiff),
|
|
957
|
+
...delegationLines(envelope),
|
|
765
958
|
...(envelope.missions.length === 0
|
|
766
959
|
? []
|
|
767
|
-
: ['', 'New missions it suggests, each off until you turn it on:', ...missionLines(envelope.missions)]),
|
|
960
|
+
: ['', 'New missions it suggests, each off until you turn it on:', ...missionLines(envelope.missions, specs)]),
|
|
961
|
+
...((u.missionSettings ?? []).length === 0
|
|
962
|
+
? []
|
|
963
|
+
: [
|
|
964
|
+
'',
|
|
965
|
+
'New settings for missions it already has (their prompt, hour and switch stay yours):',
|
|
966
|
+
...(u.missionSettings ?? []).map((c) => ` ${ownerText(c.name, specs)}: ${missionSettingsWords(c)}`),
|
|
967
|
+
]),
|
|
768
968
|
'',
|
|
769
|
-
|
|
969
|
+
(u.missionSettings ?? []).length === 0
|
|
970
|
+
? 'Missions it already has are yours and stay exactly as they are. Its handle, its account and its memory do not change.'
|
|
971
|
+
: 'Otherwise the missions it already has stay exactly as they are. Its handle, its account and its memory do not change.',
|
|
770
972
|
`File: ${envelope.file}`,
|
|
771
973
|
`Proposed by ${envelope.proposedBy}.`,
|
|
772
974
|
].join('\n');
|
|
@@ -776,6 +978,7 @@ export function renderInstallPreview(envelope, specs, renderCreate) {
|
|
|
776
978
|
'',
|
|
777
979
|
renderCreate(envelope.created, specs),
|
|
778
980
|
'',
|
|
981
|
+
...delegationLines(envelope),
|
|
779
982
|
...(envelope.account === null
|
|
780
983
|
? []
|
|
781
984
|
: [
|
|
@@ -791,26 +994,32 @@ export function renderInstallPreview(envelope, specs, renderCreate) {
|
|
|
791
994
|
: [
|
|
792
995
|
`It arrives with ${envelope.skills.length} skill${envelope.skills.length === 1 ? '' : 's'} of its own ` +
|
|
793
996
|
'(a procedure in its prompt; it grants no tool and lowers no tier):',
|
|
794
|
-
...envelope.skills.map((s) => ` ${s.name} — ${s.description}`),
|
|
997
|
+
...envelope.skills.map((s) => ` ${s.name} — ${ownerText(s.description, specs)}`),
|
|
795
998
|
'',
|
|
796
999
|
]),
|
|
797
1000
|
...(envelope.missions.length === 0
|
|
798
1001
|
? []
|
|
799
|
-
: [`Its missions (pause or start any of them under Agents → Missions):`, ...missionLines(envelope.missions), '']),
|
|
1002
|
+
: [`Its missions (pause or start any of them under Agents → Missions):`, ...missionLines(envelope.missions, specs), '']),
|
|
800
1003
|
`Once you approve, this file is YOURS: an update from the catalogue is always offered, never written`,
|
|
801
1004
|
'without your approval, and a file you change is never touched.',
|
|
802
1005
|
].join('\n');
|
|
803
1006
|
}
|
|
804
|
-
|
|
1007
|
+
/**
|
|
1008
|
+
* `specs` are the tools this buddi knows: a tool name in the owner-facing text (pitch, description, about,
|
|
1009
|
+
* changes, examples, mission names) is rewritten in words, for listings made before the market refused them.
|
|
1010
|
+
*/
|
|
1011
|
+
export function entryView(pkg, state, timezone, defaults, specs = []) {
|
|
805
1012
|
const m = pkg.manifest;
|
|
1013
|
+
const known = [...specs, ...m.tools.filter((name) => !specs.some((s) => s.name === name)).map((name) => ({ name }))];
|
|
1014
|
+
const words = (text) => ownerText(text, known);
|
|
806
1015
|
return {
|
|
807
1016
|
name: m.name,
|
|
808
1017
|
version: m.version,
|
|
809
1018
|
handle: m.handle,
|
|
810
1019
|
title: m.title,
|
|
811
|
-
pitch: m.pitch,
|
|
812
|
-
description: m.description,
|
|
813
|
-
about: m.about,
|
|
1020
|
+
pitch: words(m.pitch),
|
|
1021
|
+
description: words(m.description),
|
|
1022
|
+
about: words(m.about),
|
|
814
1023
|
category: m.category,
|
|
815
1024
|
trust: m.trust,
|
|
816
1025
|
author: m.author,
|
|
@@ -820,7 +1029,7 @@ export function entryView(pkg, state, timezone, defaults) {
|
|
|
820
1029
|
tools: m.tools,
|
|
821
1030
|
missions: m.missions.map((mission) => ({
|
|
822
1031
|
id: mission.id,
|
|
823
|
-
name: mission.name,
|
|
1032
|
+
name: words(mission.name),
|
|
824
1033
|
cron: mission.cron,
|
|
825
1034
|
when: describeCadence(mission.cron, timezone),
|
|
826
1035
|
prompt: mission.prompt,
|
|
@@ -832,9 +1041,9 @@ export function entryView(pkg, state, timezone, defaults) {
|
|
|
832
1041
|
optional: fill.optional === true,
|
|
833
1042
|
default: defaults?.find((d) => d.id === fill.id)?.value ?? '',
|
|
834
1043
|
})),
|
|
835
|
-
examples: m.examples,
|
|
1044
|
+
examples: m.examples.map(words),
|
|
836
1045
|
skills: pkg.skills.map((s) => s.name),
|
|
837
|
-
changes: m.changes,
|
|
1046
|
+
changes: words(m.changes),
|
|
838
1047
|
replaces: m.replaces,
|
|
839
1048
|
avatar: pkg.avatar,
|
|
840
1049
|
page: pkg.page,
|
|
@@ -879,7 +1088,7 @@ export function createCatalogueTools(registry, helpers) {
|
|
|
879
1088
|
fetchedAt: loaded.fetchedAt,
|
|
880
1089
|
...(loaded.stale ? { stale: true } : {}),
|
|
881
1090
|
agents: loaded.packages.map((pkg) => {
|
|
882
|
-
const view = entryView(pkg, packageState(pkg, state), ctx.timezone);
|
|
1091
|
+
const view = entryView(pkg, packageState(pkg, state), ctx.timezone, undefined, registry.list());
|
|
883
1092
|
return {
|
|
884
1093
|
name: view.name,
|
|
885
1094
|
version: view.version,
|
|
@@ -1028,6 +1237,17 @@ export function createCatalogueTools(registry, helpers) {
|
|
|
1028
1237
|
refuse('would-not-load', `${envelope.mode === 'install' ? `${envelope.package.title} was not added` : `@${envelope.handle} was not updated`}, and ` +
|
|
1029
1238
|
`nothing was changed: the agents would not load with it (${reload.error ?? reload.message}).`);
|
|
1030
1239
|
}
|
|
1240
|
+
// Who it hands work to, and the lists it joins: each on its own, after the agent loads (never undone by a failed list).
|
|
1241
|
+
const lists = envelope.delegation
|
|
1242
|
+
? applyDelegateEdits([
|
|
1243
|
+
...(envelope.delegation.after.join(',') === envelope.delegation.before.join(',')
|
|
1244
|
+
? []
|
|
1245
|
+
: [{ id: envelope.id, path: envelope.delegation.file, content: `${JSON.stringify(envelope.delegation.after, null, 2)}\n` }]),
|
|
1246
|
+
...envelope.delegation.joins,
|
|
1247
|
+
])
|
|
1248
|
+
: { changed: [], failed: [] };
|
|
1249
|
+
if (lists.changed.length > 0)
|
|
1250
|
+
helpers.reload(registry);
|
|
1031
1251
|
const assigned = envelope.mode === 'install' ? await helpers.assignAccount(registry, envelope.id, envelope.account) : '';
|
|
1032
1252
|
let pictured = false;
|
|
1033
1253
|
// The package's picture is kept in the database at install, so every page draws it without asking
|
|
@@ -1051,9 +1271,18 @@ export function createCatalogueTools(registry, helpers) {
|
|
|
1051
1271
|
}
|
|
1052
1272
|
const created = [];
|
|
1053
1273
|
if (ctx.db) {
|
|
1274
|
+
// The settings the owner approved for missions the agent already has: just these two, nothing the owner controls.
|
|
1275
|
+
if (envelope.mode === 'update') {
|
|
1276
|
+
for (const change of envelope.update?.missionSettings ?? []) {
|
|
1277
|
+
await setMissionExtras(ctx.db, change.id, { context: change.context, reportMax: change.reportMax });
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1054
1280
|
for (const mission of envelope.missions) {
|
|
1055
|
-
if (envelope.mode === 'update' && (await getMission(ctx.db, mission.id).catch(() => null)))
|
|
1281
|
+
if (envelope.mode === 'update' && (await getMission(ctx.db, mission.id).catch(() => null))) {
|
|
1282
|
+
// The owner's prompt and hour stay; what the package says it reads and how long it reports follow it.
|
|
1283
|
+
await setMissionExtras(ctx.db, mission.id, { context: mission.context ?? null, reportMax: mission.reportMax ?? null });
|
|
1056
1284
|
continue;
|
|
1285
|
+
}
|
|
1057
1286
|
await upsertMission(ctx.db, {
|
|
1058
1287
|
id: mission.id,
|
|
1059
1288
|
name: mission.name,
|
|
@@ -1061,6 +1290,8 @@ export function createCatalogueTools(registry, helpers) {
|
|
|
1061
1290
|
prompt: mission.prompt,
|
|
1062
1291
|
enabled: mission.enabled,
|
|
1063
1292
|
alwaysDeliver: mission.alwaysDeliver ?? false,
|
|
1293
|
+
...(mission.context ? { context: mission.context } : {}),
|
|
1294
|
+
...(mission.reportMax ? { reportMax: mission.reportMax } : {}),
|
|
1064
1295
|
});
|
|
1065
1296
|
await setSchedule(ctx.db, mission.id, {
|
|
1066
1297
|
cron: mission.cron,
|
|
@@ -1084,6 +1315,7 @@ export function createCatalogueTools(registry, helpers) {
|
|
|
1084
1315
|
missions: created,
|
|
1085
1316
|
...(pictured ? { picture: true } : {}),
|
|
1086
1317
|
...(trashed ? { previousFile: trashed } : {}),
|
|
1318
|
+
...(lists.failed.length > 0 ? { delegatesNotWritten: lists.failed } : {}),
|
|
1087
1319
|
live: reload.reloaded,
|
|
1088
1320
|
message: (envelope.mode === 'install'
|
|
1089
1321
|
? `@${envelope.handle} is on the team, and the file is the owner's now. `
|