@rubytech/create-sitedesk-code 0.1.522 → 0.1.523
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/payload/platform/lib/graph-style/dist/index.d.ts.map +1 -1
- package/payload/platform/lib/graph-style/dist/index.js +28 -0
- package/payload/platform/lib/graph-style/dist/index.js.map +1 -1
- package/payload/platform/lib/graph-style/src/__tests__/caption-coverage.test.ts +7 -0
- package/payload/platform/lib/graph-style/src/index.ts +24 -0
- package/payload/platform/lib/graph-write/dist/__tests__/merge-on.test.d.ts.map +1 -0
- package/payload/platform/lib/graph-write/dist/__tests__/merge-on.test.js.map +1 -0
- package/payload/platform/lib/graph-write/dist/index.d.ts +16 -0
- package/payload/platform/lib/graph-write/dist/index.d.ts.map +1 -1
- package/payload/platform/lib/graph-write/dist/index.js +83 -6
- package/payload/platform/lib/graph-write/dist/index.js.map +1 -1
- package/payload/platform/lib/graph-write/src/index.ts +117 -10
- package/payload/platform/lib/routine-templates/dist/index.d.ts +151 -0
- package/payload/platform/lib/routine-templates/dist/index.d.ts.map +1 -0
- package/payload/platform/lib/routine-templates/dist/index.js +207 -0
- package/payload/platform/lib/routine-templates/dist/index.js.map +1 -0
- package/payload/platform/lib/routine-templates/dist/roster.d.ts +57 -0
- package/payload/platform/lib/routine-templates/dist/roster.d.ts.map +1 -0
- package/payload/platform/lib/routine-templates/dist/roster.js +182 -0
- package/payload/platform/lib/routine-templates/dist/roster.js.map +1 -0
- package/payload/platform/lib/routine-templates/dist/seed-cli.d.ts +2 -0
- package/payload/platform/lib/routine-templates/dist/seed-cli.d.ts.map +1 -0
- package/payload/platform/lib/routine-templates/dist/seed-cli.js +64 -0
- package/payload/platform/lib/routine-templates/dist/seed-cli.js.map +1 -0
- package/payload/platform/lib/routine-templates/package.json +6 -0
- package/payload/platform/lib/routine-templates/src/__tests__/roster.test.ts +170 -0
- package/payload/platform/lib/routine-templates/src/__tests__/seed.test.ts +298 -0
- package/payload/platform/lib/routine-templates/src/index.ts +299 -0
- package/payload/platform/lib/routine-templates/src/roster.ts +206 -0
- package/payload/platform/lib/routine-templates/src/seed-cli.ts +65 -0
- package/payload/platform/lib/routine-templates/tsconfig.json +9 -0
- package/payload/platform/lib/routine-templates/vitest.config.ts +9 -0
- package/payload/platform/neo4j/edge-annotations.json +2 -2
- package/payload/platform/neo4j/schema.cypher +25 -1
- package/payload/platform/package.json +3 -2
- package/payload/platform/plugins/admin/PLUGIN.md +2 -2
- package/payload/platform/plugins/admin/mcp/dist/index.js +39 -1
- package/payload/platform/plugins/admin/mcp/dist/index.js.map +1 -1
- package/payload/platform/plugins/admin/skills/platform-architecture/SKILL.md +277 -61
- package/payload/platform/plugins/admin/skills/whats-new/SKILL.md +6 -0
- package/payload/platform/plugins/docs/references/admin-ui.md +265 -59
- package/payload/platform/plugins/docs/references/memory-guide.md +11 -1
- package/payload/platform/plugins/graph/.claude-plugin/plugin.json +1 -1
- package/payload/platform/plugins/graph/PLUGIN.md +1 -1
- package/payload/platform/plugins/memory/PLUGIN.md +1 -1
- package/payload/platform/plugins/memory/mcp/dist/index.js +12 -5
- package/payload/platform/plugins/memory/mcp/dist/index.js.map +1 -1
- package/payload/platform/plugins/memory/mcp/dist/lib/__tests__/phase-estate-census.test.d.ts +2 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/__tests__/phase-estate-census.test.d.ts.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/__tests__/phase-estate-census.test.js +197 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/__tests__/phase-estate-census.test.js.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/__tests__/schema-loader.test.js +55 -9
- package/payload/platform/plugins/memory/mcp/dist/lib/__tests__/schema-loader.test.js.map +1 -1
- package/payload/platform/plugins/memory/mcp/dist/lib/__tests__/schema-validator.test.js +96 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/__tests__/schema-validator.test.js.map +1 -1
- package/payload/platform/plugins/memory/mcp/dist/lib/dream-cycle/index.d.ts +7 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/dream-cycle/index.d.ts.map +1 -1
- package/payload/platform/plugins/memory/mcp/dist/lib/dream-cycle/phase-estate-census.d.ts +29 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/dream-cycle/phase-estate-census.d.ts.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/dream-cycle/phase-estate-census.js +126 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/dream-cycle/phase-estate-census.js.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/scripts/dream-cycle-sweep.js +7 -4
- package/payload/platform/plugins/memory/mcp/dist/scripts/dream-cycle-sweep.js.map +1 -1
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-dream-run.d.ts +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-dream-run.d.ts.map +1 -1
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-dream-run.js +18 -1
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-dream-run.js.map +1 -1
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-write.d.ts +7 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-write.d.ts.map +1 -1
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-write.js +4 -3
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-write.js.map +1 -1
- package/payload/platform/plugins/memory/mcp/vitest.config.ts +2 -0
- package/payload/platform/plugins/memory/references/schema-estate-agent.md +2 -2
- package/payload/platform/plugins/memory/skills/conversation-archive-enrich/SKILL.md +4 -4
- package/payload/platform/plugins/quickbooks/PLUGIN.md +10 -10
- package/payload/platform/plugins/scheduling/PLUGIN.md +49 -1
- package/payload/platform/plugins/scheduling/mcp/dist/index.js +48 -0
- package/payload/platform/plugins/scheduling/mcp/dist/index.js.map +1 -1
- package/payload/platform/plugins/scheduling/mcp/dist/lib/__tests__/notes-cap.test.d.ts +2 -0
- package/payload/platform/plugins/scheduling/mcp/dist/lib/__tests__/notes-cap.test.d.ts.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/dist/lib/__tests__/notes-cap.test.js +78 -0
- package/payload/platform/plugins/scheduling/mcp/dist/lib/__tests__/notes-cap.test.js.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/dist/lib/__tests__/routine-run.test.d.ts +2 -0
- package/payload/platform/plugins/scheduling/mcp/dist/lib/__tests__/routine-run.test.d.ts.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/dist/lib/__tests__/routine-run.test.js +457 -0
- package/payload/platform/plugins/scheduling/mcp/dist/lib/__tests__/routine-run.test.js.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/dist/lib/notes-cap.d.ts +35 -0
- package/payload/platform/plugins/scheduling/mcp/dist/lib/notes-cap.d.ts.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/dist/lib/notes-cap.js +39 -0
- package/payload/platform/plugins/scheduling/mcp/dist/lib/notes-cap.js.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/dist/lib/routine-run.d.ts +175 -0
- package/payload/platform/plugins/scheduling/mcp/dist/lib/routine-run.d.ts.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/dist/lib/routine-run.js +533 -0
- package/payload/platform/plugins/scheduling/mcp/dist/lib/routine-run.js.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/dist/scripts/__tests__/agent-turn-dispatch.test.js +123 -9
- package/payload/platform/plugins/scheduling/mcp/dist/scripts/__tests__/agent-turn-dispatch.test.js.map +1 -1
- package/payload/platform/plugins/scheduling/mcp/dist/scripts/__tests__/routine-roster-audit.test.d.ts +2 -0
- package/payload/platform/plugins/scheduling/mcp/dist/scripts/__tests__/routine-roster-audit.test.d.ts.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/dist/scripts/__tests__/routine-roster-audit.test.js +189 -0
- package/payload/platform/plugins/scheduling/mcp/dist/scripts/__tests__/routine-roster-audit.test.js.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/dist/scripts/__tests__/suspension-census.test.d.ts +2 -0
- package/payload/platform/plugins/scheduling/mcp/dist/scripts/__tests__/suspension-census.test.d.ts.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/dist/scripts/__tests__/suspension-census.test.js +95 -0
- package/payload/platform/plugins/scheduling/mcp/dist/scripts/__tests__/suspension-census.test.js.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/dist/scripts/__tests__/sweep-excludes-suspended.test.d.ts +2 -0
- package/payload/platform/plugins/scheduling/mcp/dist/scripts/__tests__/sweep-excludes-suspended.test.d.ts.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/dist/scripts/__tests__/sweep-excludes-suspended.test.js +114 -0
- package/payload/platform/plugins/scheduling/mcp/dist/scripts/__tests__/sweep-excludes-suspended.test.js.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/dist/scripts/agent-turn-dispatch.d.ts +109 -2
- package/payload/platform/plugins/scheduling/mcp/dist/scripts/agent-turn-dispatch.d.ts.map +1 -1
- package/payload/platform/plugins/scheduling/mcp/dist/scripts/agent-turn-dispatch.js +340 -9
- package/payload/platform/plugins/scheduling/mcp/dist/scripts/agent-turn-dispatch.js.map +1 -1
- package/payload/platform/plugins/scheduling/mcp/dist/scripts/check-due-events.d.ts +9 -1
- package/payload/platform/plugins/scheduling/mcp/dist/scripts/check-due-events.d.ts.map +1 -1
- package/payload/platform/plugins/scheduling/mcp/dist/scripts/check-due-events.js +210 -45
- package/payload/platform/plugins/scheduling/mcp/dist/scripts/check-due-events.js.map +1 -1
- package/payload/platform/plugins/scheduling/mcp/dist/scripts/reconcile-bookings.js +43 -1
- package/payload/platform/plugins/scheduling/mcp/dist/scripts/reconcile-bookings.js.map +1 -1
- package/payload/platform/plugins/scheduling/mcp/dist/tools/__tests__/schedule-get-agent.test.js +55 -7
- package/payload/platform/plugins/scheduling/mcp/dist/tools/__tests__/schedule-get-agent.test.js.map +1 -1
- package/payload/platform/plugins/scheduling/mcp/dist/tools/__tests__/schedule-list.test.js +45 -1
- package/payload/platform/plugins/scheduling/mcp/dist/tools/__tests__/schedule-list.test.js.map +1 -1
- package/payload/platform/plugins/scheduling/mcp/dist/tools/__tests__/schedule-runs.test.d.ts +2 -0
- package/payload/platform/plugins/scheduling/mcp/dist/tools/__tests__/schedule-runs.test.d.ts.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/dist/tools/__tests__/schedule-runs.test.js +96 -0
- package/payload/platform/plugins/scheduling/mcp/dist/tools/__tests__/schedule-runs.test.js.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-cancel.d.ts.map +1 -1
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-cancel.js +2 -1
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-cancel.js.map +1 -1
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-get.d.ts +5 -0
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-get.d.ts.map +1 -1
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-get.js +13 -0
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-get.js.map +1 -1
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-list.d.ts +4 -0
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-list.d.ts.map +1 -1
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-list.js +24 -3
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-list.js.map +1 -1
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-runs.d.ts +33 -0
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-runs.d.ts.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-runs.js +51 -0
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-runs.js.map +1 -0
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-update.d.ts.map +1 -1
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-update.js +12 -2
- package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-update.js.map +1 -1
- package/payload/platform/plugins/whatsapp/references/channels-whatsapp.md +30 -2
- package/payload/platform/plugins/whatsapp/skills/connect-whatsapp/SKILL.md +1 -1
- package/payload/platform/scripts/check-specialist-tool-surface.mjs +92 -16
- package/payload/platform/scripts/seed-neo4j.sh +41 -0
- package/payload/platform/scripts/verify-skill-tool-surface.sh +91 -2
- package/payload/platform/services/claude-session-manager/dist/canonical-tool-names.generated.d.ts.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/canonical-tool-names.generated.js +1 -0
- package/payload/platform/services/claude-session-manager/dist/canonical-tool-names.generated.js.map +1 -1
- package/payload/platform/templates/specialists/agents/librarian.md +1 -1
- package/payload/platform/templates/specialists/agents/personal-assistant.md +1 -1
- package/payload/server/{chunk-K7CJGZPU.js → chunk-VUXKXOJU.js} +342 -152
- package/payload/server/{chunk-UX2FRNO7.js → chunk-WT2PFGY4.js} +37 -265
- package/payload/server/{chunk-PXNY2TAP.js → chunk-XCR5D2G3.js} +239 -10
- package/payload/server/{manager-RKL7JZ4Y.js → manager-4TJK3YOY.js} +2 -2
- package/payload/server/maxy-edge.js +2 -2
- package/payload/server/public/activity.html +5 -5
- package/payload/server/public/agents.html +4 -4
- package/payload/server/public/assets/{AdminLoginScreens-zc2_qqh-.js → AdminLoginScreens-uknqh2Pm.js} +1 -1
- package/payload/server/public/assets/AdminLoginScreens-uknqh2Pm.js.br +0 -0
- package/payload/server/public/assets/AdminLoginScreens-uknqh2Pm.js.gz +0 -0
- package/payload/server/public/assets/AdminShell-GqtMImyQ.js +2 -0
- package/payload/server/public/assets/AdminShell-GqtMImyQ.js.br +0 -0
- package/payload/server/public/assets/AdminShell-GqtMImyQ.js.gz +0 -0
- package/payload/server/public/assets/{activity-DVgO8YuM.js → activity-B4KfMJqO.js} +1 -1
- package/payload/server/public/assets/activity-B4KfMJqO.js.br +0 -0
- package/payload/server/public/assets/activity-B4KfMJqO.js.gz +0 -0
- package/payload/server/public/assets/admin-DxCZeVw0.js +1 -0
- package/payload/server/public/assets/admin-DxCZeVw0.js.br +0 -0
- package/payload/server/public/assets/admin-DxCZeVw0.js.gz +0 -0
- package/payload/server/public/assets/agents-BtwBuO4G.js +1 -0
- package/payload/server/public/assets/agents-BtwBuO4G.js.br +0 -0
- package/payload/server/public/assets/agents-BtwBuO4G.js.gz +0 -0
- package/payload/server/public/assets/{browser-Mw7DY3ft.js → browser-B3hSzI3O.js} +1 -1
- package/payload/server/public/assets/browser-B3hSzI3O.js.br +0 -0
- package/payload/server/public/assets/browser-B3hSzI3O.js.gz +0 -0
- package/payload/server/public/assets/{calendar-B9gvL_1_.js → calendar-BggxXxhS.js} +1 -1
- package/payload/server/public/assets/calendar-BggxXxhS.js.br +0 -0
- package/payload/server/public/assets/calendar-BggxXxhS.js.gz +0 -0
- package/payload/server/public/assets/chat-flivHt0t.js +1 -0
- package/payload/server/public/assets/chat-flivHt0t.js.br +0 -0
- package/payload/server/public/assets/chat-flivHt0t.js.gz +0 -0
- package/payload/server/public/assets/chevron-left-nVRThX7f.js +1 -0
- package/payload/server/public/assets/chevron-right-CLqfrkRA.js +1 -0
- package/payload/server/public/assets/chevron-right-CLqfrkRA.js.br +0 -0
- package/payload/server/public/assets/clock-Dj3SRZKo.js +1 -0
- package/payload/server/public/assets/clock-Dj3SRZKo.js.br +0 -0
- package/payload/server/public/assets/clock-Dj3SRZKo.js.gz +0 -0
- package/payload/server/public/assets/data-Ckjkne54.js +1 -0
- package/payload/server/public/assets/data-Ckjkne54.js.br +3 -0
- package/payload/server/public/assets/data-Ckjkne54.js.gz +0 -0
- package/payload/server/public/assets/{file-text-dYBnXNEX.js → file-text-BKs9eyiw.js} +1 -1
- package/payload/server/public/assets/file-text-BKs9eyiw.js.br +0 -0
- package/payload/server/public/assets/file-text-BKs9eyiw.js.gz +0 -0
- package/payload/server/public/assets/{graph-CDyzd1Et.js → graph-DTi71NaZ.js} +3 -3
- package/payload/server/public/assets/graph-DTi71NaZ.js.br +0 -0
- package/payload/server/public/assets/graph-DTi71NaZ.js.gz +0 -0
- package/payload/server/public/assets/graph-labels-BT3S6e9H.js +1 -0
- package/payload/server/public/assets/graph-labels-BT3S6e9H.js.br +0 -0
- package/payload/server/public/assets/graph-labels-BT3S6e9H.js.gz +0 -0
- package/payload/server/public/assets/{maximize-2-M-iSaznd.js → maximize-2-zC94tsxY.js} +1 -1
- package/payload/server/public/assets/maximize-2-zC94tsxY.js.br +0 -0
- package/payload/server/public/assets/maximize-2-zC94tsxY.js.gz +0 -0
- package/payload/server/public/assets/operator-BtWNEMh-.js +1 -0
- package/payload/server/public/assets/operator-BtWNEMh-.js.br +0 -0
- package/payload/server/public/assets/operator-BtWNEMh-.js.gz +0 -0
- package/payload/server/public/assets/page-BFm91p0e.js +1 -0
- package/payload/server/public/assets/page-BFm91p0e.js.br +0 -0
- package/payload/server/public/assets/page-BFm91p0e.js.gz +0 -0
- package/payload/server/public/assets/{page-CZ-73FAk.js → page-Ccl0FazM.js} +3 -3
- package/payload/server/public/assets/page-Ccl0FazM.js.br +0 -0
- package/payload/server/public/assets/page-Ccl0FazM.js.gz +0 -0
- package/payload/server/public/assets/{public-CN-ltC8x.js → public-BpC6cn9S.js} +1 -1
- package/payload/server/public/assets/public-BpC6cn9S.js.br +0 -0
- package/payload/server/public/assets/public-BpC6cn9S.js.gz +0 -0
- package/payload/server/public/assets/{rotate-ccw-Buopsc22.js → rotate-ccw-BNcqbHkZ.js} +1 -1
- package/payload/server/public/assets/rotate-ccw-BNcqbHkZ.js.br +0 -0
- package/payload/server/public/assets/rotate-ccw-BNcqbHkZ.js.gz +0 -0
- package/payload/server/public/assets/routines-D5iia-XG.js +1 -0
- package/payload/server/public/assets/routines-D5iia-XG.js.br +0 -0
- package/payload/server/public/assets/routines-D5iia-XG.js.gz +0 -0
- package/payload/server/public/assets/{skills-DiiuVzDK.js → skills-COLAw_jt.js} +1 -1
- package/payload/server/public/assets/skills-COLAw_jt.js.br +0 -0
- package/payload/server/public/assets/skills-COLAw_jt.js.gz +0 -0
- package/payload/server/public/assets/tasks-CZDQI4nB.js +1 -0
- package/payload/server/public/assets/tasks-CZDQI4nB.js.br +0 -0
- package/payload/server/public/assets/tasks-CZDQI4nB.js.gz +0 -0
- package/payload/server/public/assets/{time-entry-format-BBokCF-D.js → time-entry-format-laTFzawg.js} +1 -1
- package/payload/server/public/assets/time-entry-format-laTFzawg.js.br +0 -0
- package/payload/server/public/assets/time-entry-format-laTFzawg.js.gz +0 -0
- package/payload/server/public/assets/{triangle-alert-C_AcpTW5.js → triangle-alert-DrwqhEog.js} +1 -1
- package/payload/server/public/assets/triangle-alert-DrwqhEog.js.br +0 -0
- package/payload/server/public/assets/triangle-alert-DrwqhEog.js.gz +0 -0
- package/payload/server/public/assets/{useCopyFeedback-TdimmPVR.js → useCopyFeedback-Cxme5GK6.js} +1 -1
- package/payload/server/public/assets/useCopyFeedback-Cxme5GK6.js.br +0 -0
- package/payload/server/public/assets/useCopyFeedback-Cxme5GK6.js.gz +0 -0
- package/payload/server/public/assets/useSubAccountSwitcher-B-K8y5a4.css +1 -0
- package/payload/server/public/assets/useSubAccountSwitcher-B-K8y5a4.css.br +0 -0
- package/payload/server/public/assets/useSubAccountSwitcher-B-K8y5a4.css.gz +0 -0
- package/payload/server/public/assets/useSubAccountSwitcher-C_1E11Dv.js +14 -0
- package/payload/server/public/assets/useSubAccountSwitcher-C_1E11Dv.js.br +0 -0
- package/payload/server/public/assets/useSubAccountSwitcher-C_1E11Dv.js.gz +0 -0
- package/payload/server/public/assets/{useVoiceRecorder-BT2738ZS.js → useVoiceRecorder-DUBpVa2T.js} +1 -1
- package/payload/server/public/assets/useVoiceRecorder-DUBpVa2T.js.br +0 -0
- package/payload/server/public/assets/useVoiceRecorder-DUBpVa2T.js.gz +0 -0
- package/payload/server/public/assets/{wrench-B51s5kGA.js → wrench-DWuxPnzF.js} +1 -1
- package/payload/server/public/assets/wrench-DWuxPnzF.js.br +0 -0
- package/payload/server/public/assets/wrench-DWuxPnzF.js.gz +0 -0
- package/payload/server/public/browser.html +4 -4
- package/payload/server/public/calendar.html +7 -7
- package/payload/server/public/chat.html +13 -13
- package/payload/server/public/data.html +11 -11
- package/payload/server/public/graph.html +9 -9
- package/payload/server/public/index.html +14 -14
- package/payload/server/public/operator.html +14 -14
- package/payload/server/public/public.html +13 -13
- package/payload/server/public/routines.html +6 -6
- package/payload/server/public/skills.html +5 -5
- package/payload/server/public/tasks.html +6 -6
- package/payload/server/server.js +5910 -5369
- package/payload/server/public/assets/AdminLoginScreens-zc2_qqh-.js.br +0 -0
- package/payload/server/public/assets/AdminLoginScreens-zc2_qqh-.js.gz +0 -0
- package/payload/server/public/assets/AdminShell-IGUdTx5q.js +0 -2
- package/payload/server/public/assets/AdminShell-IGUdTx5q.js.br +0 -0
- package/payload/server/public/assets/AdminShell-IGUdTx5q.js.gz +0 -0
- package/payload/server/public/assets/activity-DVgO8YuM.js.br +0 -0
- package/payload/server/public/assets/activity-DVgO8YuM.js.gz +0 -0
- package/payload/server/public/assets/admin-xtpM7fgl.js +0 -1
- package/payload/server/public/assets/admin-xtpM7fgl.js.br +0 -0
- package/payload/server/public/assets/admin-xtpM7fgl.js.gz +0 -0
- package/payload/server/public/assets/agents-P0nTIxo-.js +0 -1
- package/payload/server/public/assets/agents-P0nTIxo-.js.br +0 -0
- package/payload/server/public/assets/agents-P0nTIxo-.js.gz +0 -0
- package/payload/server/public/assets/browser-Mw7DY3ft.js.br +0 -0
- package/payload/server/public/assets/browser-Mw7DY3ft.js.gz +0 -0
- package/payload/server/public/assets/calendar-B9gvL_1_.js.br +0 -0
- package/payload/server/public/assets/calendar-B9gvL_1_.js.gz +0 -0
- package/payload/server/public/assets/chat-DBGqh4wg.js +0 -1
- package/payload/server/public/assets/chat-DBGqh4wg.js.br +0 -2
- package/payload/server/public/assets/chat-DBGqh4wg.js.gz +0 -0
- package/payload/server/public/assets/chevron-left-Bl4vpOM0.js +0 -1
- package/payload/server/public/assets/chevron-left-Bl4vpOM0.js.br +0 -0
- package/payload/server/public/assets/chevron-right-BExigCnp.js +0 -1
- package/payload/server/public/assets/chevron-right-BExigCnp.js.br +0 -0
- package/payload/server/public/assets/clock-D8TJvgJC.js +0 -1
- package/payload/server/public/assets/clock-D8TJvgJC.js.br +0 -0
- package/payload/server/public/assets/data-HfFSxaC2.js +0 -1
- package/payload/server/public/assets/data-HfFSxaC2.js.br +0 -0
- package/payload/server/public/assets/data-HfFSxaC2.js.gz +0 -0
- package/payload/server/public/assets/file-text-dYBnXNEX.js.br +0 -0
- package/payload/server/public/assets/file-text-dYBnXNEX.js.gz +0 -0
- package/payload/server/public/assets/graph-CDyzd1Et.js.br +0 -0
- package/payload/server/public/assets/graph-CDyzd1Et.js.gz +0 -0
- package/payload/server/public/assets/graph-labels-D1LkKiJr.js +0 -1
- package/payload/server/public/assets/graph-labels-D1LkKiJr.js.br +0 -0
- package/payload/server/public/assets/graph-labels-D1LkKiJr.js.gz +0 -0
- package/payload/server/public/assets/maximize-2-M-iSaznd.js.br +0 -0
- package/payload/server/public/assets/maximize-2-M-iSaznd.js.gz +0 -0
- package/payload/server/public/assets/operator-9jfCv1Fg.js +0 -1
- package/payload/server/public/assets/operator-9jfCv1Fg.js.br +0 -0
- package/payload/server/public/assets/operator-9jfCv1Fg.js.gz +0 -0
- package/payload/server/public/assets/page-CZ-73FAk.js.br +0 -0
- package/payload/server/public/assets/page-CZ-73FAk.js.gz +0 -0
- package/payload/server/public/assets/page-CjwSt7kx.js +0 -1
- package/payload/server/public/assets/page-CjwSt7kx.js.br +0 -0
- package/payload/server/public/assets/page-CjwSt7kx.js.gz +0 -0
- package/payload/server/public/assets/public-CN-ltC8x.js.br +0 -0
- package/payload/server/public/assets/public-CN-ltC8x.js.gz +0 -0
- package/payload/server/public/assets/rotate-ccw-Buopsc22.js.br +0 -0
- package/payload/server/public/assets/rotate-ccw-Buopsc22.js.gz +0 -0
- package/payload/server/public/assets/routines-C-yr8ddT.js +0 -1
- package/payload/server/public/assets/routines-C-yr8ddT.js.br +0 -0
- package/payload/server/public/assets/routines-C-yr8ddT.js.gz +0 -0
- package/payload/server/public/assets/skills-DiiuVzDK.js.br +0 -0
- package/payload/server/public/assets/skills-DiiuVzDK.js.gz +0 -0
- package/payload/server/public/assets/tasks-CnHIfn2_.js +0 -1
- package/payload/server/public/assets/tasks-CnHIfn2_.js.br +0 -0
- package/payload/server/public/assets/tasks-CnHIfn2_.js.gz +0 -0
- package/payload/server/public/assets/time-entry-format-BBokCF-D.js.br +0 -0
- package/payload/server/public/assets/time-entry-format-BBokCF-D.js.gz +0 -0
- package/payload/server/public/assets/triangle-alert-C_AcpTW5.js.br +0 -0
- package/payload/server/public/assets/triangle-alert-C_AcpTW5.js.gz +0 -0
- package/payload/server/public/assets/useCopyFeedback-TdimmPVR.js.br +0 -0
- package/payload/server/public/assets/useCopyFeedback-TdimmPVR.js.gz +0 -0
- package/payload/server/public/assets/useSubAccountSwitcher-BwHqV55p.js +0 -14
- package/payload/server/public/assets/useSubAccountSwitcher-BwHqV55p.js.br +0 -0
- package/payload/server/public/assets/useSubAccountSwitcher-BwHqV55p.js.gz +0 -0
- package/payload/server/public/assets/useSubAccountSwitcher-CsrPYqtm.css +0 -1
- package/payload/server/public/assets/useSubAccountSwitcher-CsrPYqtm.css.br +0 -0
- package/payload/server/public/assets/useSubAccountSwitcher-CsrPYqtm.css.gz +0 -0
- package/payload/server/public/assets/useVoiceRecorder-BT2738ZS.js.br +0 -0
- package/payload/server/public/assets/useVoiceRecorder-BT2738ZS.js.gz +0 -0
- package/payload/server/public/assets/wrench-B51s5kGA.js.br +0 -0
- package/payload/server/public/assets/wrench-B51s5kGA.js.gz +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: platform-architecture
|
|
3
3
|
description: Use when grounding any documented-surface claim about what SiteDesk ships — plugins, skills, specialists, install/deploy flows, internals. This is the install catalogue, not evidence of what is enabled on the current account. For install state on this account, call `capabilities-here`; for documented surface, cite the `Source:` URL inline.
|
|
4
|
-
content-hash: sha256:
|
|
4
|
+
content-hash: sha256:3c774bc07fd9321ebc739551ae7e7288d6995c368d7fb3f87dcd096359419a65
|
|
5
5
|
brand: sitedesk-code
|
|
6
6
|
product-name: SiteDesk
|
|
7
7
|
---
|
|
@@ -1995,12 +1995,22 @@ Every new node in SiteDesk's graph is created with at least one connection to an
|
|
|
1995
1995
|
|
|
1996
1996
|
Every node also carries a provenance stamp — which agent wrote it, in which session, via which tool. You never see these fields, but they are how operators trace unusual growth back to the code path that produced it, and why your graph stays clean over time.
|
|
1997
1997
|
|
|
1998
|
-
**Two write surfaces, one substrate.** General agents write through schema-aware helpers — SiteDesk can record a new contact, a new commitment, a new preference without ever typing a database query, and the helper enforces the connection-and-provenance rule above structurally. The
|
|
1998
|
+
**Two write surfaces, one substrate.** General agents write through schema-aware helpers — SiteDesk can record a new contact, a new commitment, a new preference without ever typing a database query, and the helper enforces the connection-and-provenance rule above structurally. The librarian (the specialist SiteDesk dispatches for ingest and graph hygiene — "merge those two duplicate contacts," "wire those four tasks to the meeting," "import this archive") additionally has a raw Cypher write tool, scoped to executing templates other tools emit, for the multi-step operations the helpers cannot express. The steward role internalises the same connection-and-provenance discipline in its prompt; a post-write audit emits a warning on every breach so the same rules apply to both surfaces. Both paths feed the same hourly orphan trend and the same forensic provenance fields — read-side, you cannot tell the two apart, and that is the point.
|
|
1999
1999
|
|
|
2000
2000
|
## Vertical schemas
|
|
2001
2001
|
|
|
2002
2002
|
On top of the base graph, each brand boots one optional **vertical** — an extra set of entity types tailored to a trade. The vertical is named by `brand.json#vertical` and defined in a `schema-<name>.md` reference; the memory plugin loads it at startup and validates every write against base + the active vertical. Real Agent boots `schema-estate-agent` (Listing, Property, Viewing, Offer). SiteDesk boots `schema-construction`, the canonical JobLogic-derived field-service ontology, which adds the service-delivery entities — `Job`, `Customer`, `Site`, `Asset`, `Visit`, `Quote`, `QuoteLine`, `Valuation`, `VariationNote`, `JobCost`, `Part`, `PurchaseOrder`, `Invoice`, `InboundInvoice`, `PpmContract`, `WhatsAppGroup` (with `Engineer` and `Supplier` as additional labels on `Person`/`Organization`) — grounded in real builder job folders so a job's customer, site, quote, valuations, variations, costs, and received supplier invoices all hang off one `Job` node. The default SiteDesk brand boots no vertical (base graph only).
|
|
2003
2003
|
|
|
2004
|
+
### Estate agents: a listing needs no photo, a property needs no listing
|
|
2005
|
+
|
|
2006
|
+
Two things SiteDesk used to refuse, and no longer does.
|
|
2007
|
+
|
|
2008
|
+
**A listing can be recorded before it has a photo.** You take the instruction on Monday and the photographer comes on Thursday. The listing exists as a business fact for those three days, so SiteDesk records it as soon as you tell it about it, with the photo and the live page link added whenever they arrive. The same applies to the link: a property's page does not exist until the site is published.
|
|
2009
|
+
|
|
2010
|
+
**A property can be recorded before it has a listing.** A property you have valued, or been asked to appraise, or are holding off-market is a real property. SiteDesk records it as the property itself, with no marketing attached, and the listing hangs off it later — the same property can be listed for sale, withdrawn, and re-listed to let without ever becoming three properties.
|
|
2011
|
+
|
|
2012
|
+
Neither gap is forgotten. Once a day SiteDesk counts the listings visible to the public that still have no photo, and the properties that still have no listing, so a gap that should have closed by now can be seen rather than guessed at. If a public listing genuinely has no photo, its property card is shown as text without one rather than with a broken image.
|
|
2013
|
+
|
|
2004
2014
|
## Public-facing summaries for customer-readable subjects
|
|
2005
2015
|
|
|
2006
2016
|
Some entities in your graph are knowable by people outside your team — companies you work with, projects you've delivered, the business itself. For those entities (SiteDesk treats `:Organization`, `:Concept`, `:Project`, and `:LocalBusiness` this way), SiteDesk maintains two summaries: a private one only you and your specialist agents see, and a customer-facing public one your public agents are allowed to surface.
|
|
@@ -3323,13 +3333,95 @@ The route (`server/routes/admin/routines.ts`) is account-scoped like `calendar.t
|
|
|
3323
3333
|
| `GET /api/admin/routines` | Lists automation Events: `recurrence IS NOT NULL OR agentChannel IS NOT NULL OR actionPlugin IS NOT NULL`. Keyed by the `eventId` property. |
|
|
3324
3334
|
| `GET /api/admin/routines/:eventId` | One routine, same automation+account guard. |
|
|
3325
3335
|
| `PATCH /api/admin/routines/:eventId` | Edits `agentPrompt` and/or `recurrence`. Cron validation and the timezone-aware `nextRun` recompute copy the scheduling plugin's `schedule-update` tool. An invalid cron is rejected 400 with no write. Only creation and deletion stay agent-only (`schedule-event`/`schedule-cancel`). |
|
|
3336
|
+
| `POST /api/admin/routines/:eventId/suspend` | Writes `eventStatus = 'suspended'` on a routine currently `'scheduled'`. 404s otherwise, so a second suspend is not a silent no-op. |
|
|
3337
|
+
| `POST /api/admin/routines/:eventId/resume` | Returns a suspended routine to `'scheduled'`. 404s if it is not suspended, 409s if it cannot be resumed. |
|
|
3338
|
+
| `POST /api/admin/routines/suspend-all` | Suspends every routine currently `'scheduled'` and marks each one. Returns the count. |
|
|
3339
|
+
| `POST /api/admin/routines/resume-all` | Resumes only the routines `suspend-all` marked. Returns `restored` and a `refused` list. |
|
|
3340
|
+
|
|
3341
|
+
**Suspension is the reversible stop.** Before it, the only way to stop a routine
|
|
3342
|
+
from the dashboard was to delete it. A suspended routine keeps its schedule, its
|
|
3343
|
+
instruction and its history; it simply stops being selected. The enforcement is
|
|
3344
|
+
not a new guard: all four `eventStatus = 'scheduled'` predicates in
|
|
3345
|
+
`check-due-events.ts` are equalities, so any other status is excluded by
|
|
3346
|
+
construction, and `'suspended'` is the literal the shipped roster already seeds
|
|
3347
|
+
with.
|
|
3348
|
+
|
|
3349
|
+
The status write lives on dedicated routes rather than on `PATCH`, which admits
|
|
3350
|
+
only `agentPrompt` and `recurrence` and 400s on anything else. Widening `PATCH`
|
|
3351
|
+
would put a free-form status on the edit path.
|
|
3352
|
+
|
|
3353
|
+
**Resume schedules forward and never backfills.** For a recurring routine
|
|
3354
|
+
`nextRun` is recomputed from the cron in the routine's own timezone; the stored
|
|
3355
|
+
value is deliberately not restored, because the sweep selects `nextRun <= now`
|
|
3356
|
+
and a stale one fires on the next tick. A one-time routine has no cron to
|
|
3357
|
+
advance, so resuming one whose date has passed is refused (409) with the date
|
|
3358
|
+
named — resuming it would run it immediately, for a window the operator did not
|
|
3359
|
+
choose. A one-time routine still in the future resumes with its date untouched.
|
|
3360
|
+
|
|
3361
|
+
**Suspend-all acts on exactly the dispatchable set**, so the number on the
|
|
3362
|
+
control is the number of routines that could have fired; rows already due,
|
|
3363
|
+
cancelled or suspended are untouched and a deliberately cancelled routine is
|
|
3364
|
+
never re-armed. Each row it stops is marked, and resume-all selects only marked
|
|
3365
|
+
rows — a routine suspended one at a time carries no mark and stays suspended,
|
|
3366
|
+
which is what makes resume-all safe to press. The seeded roster is unmarked by
|
|
3367
|
+
construction, so resume-all never enables it.
|
|
3326
3368
|
|
|
3327
3369
|
Observability rides `[admin:routines]`: `op=list accountId=<8> count=<n>`,
|
|
3328
|
-
`op=get id=<8> found=<bool>`,
|
|
3329
|
-
reason=<invalid-cron|not-found> nextRun=<…> cron=<serialized
|
|
3330
|
-
|
|
3331
|
-
`
|
|
3332
|
-
|
|
3370
|
+
`op=get id=<8> found=<bool>`, `op=patch id=<8> fields=<…> outcome=ok|rejected
|
|
3371
|
+
reason=<invalid-cron|not-found> nextRun=<…> cron=<serialized>`, and
|
|
3372
|
+
`op=suspend|resume id=<8> scope=<one|all> outcome=<applied|refused|failed>` with
|
|
3373
|
+
`count=`/`restored=` and, on a refusal, `reason=<not-scheduled|not-suspended|
|
|
3374
|
+
past-one-time|invalid-cron>`. A `count=0` while routines exist for the account is
|
|
3375
|
+
the account-scope-miss signature; the logged `cron=` on `outcome=ok` confirms the
|
|
3376
|
+
persisted expression without opening the graph.
|
|
3377
|
+
|
|
3378
|
+
Two scheduler-side lines close the loop, because a suspend that the sweep ignores
|
|
3379
|
+
looks identical to a healthy routine until it fires. `[schedule-sweep]
|
|
3380
|
+
op=skip-suspended account=<8> count=<n>` is emitted every sweep for every local
|
|
3381
|
+
account including zero, filtered to automation rows by the same predicate the
|
|
3382
|
+
routes and the census use, so all three count one set. Nothing else in the sweep
|
|
3383
|
+
ever mentions a suspended row, so without this line the whole class is invisible
|
|
3384
|
+
there and a suspension that stopped holding would look exactly like one that
|
|
3385
|
+
still holds. `[schedule-audit] op=suspension-census acct=<8> routines=<n>
|
|
3386
|
+
dispatchable=<n> suspended=<n> due=<n> cancelled=<n> completed=<n> other=<n>` is
|
|
3387
|
+
the standing reconciliation: the named buckets are the whole shipped status enum
|
|
3388
|
+
plus `suspended`, so they sum to `routines` by construction and `other` above
|
|
3389
|
+
zero means a routine carries a status the system does not handle — nothing else
|
|
3390
|
+
would say so. `completed` gets its own bucket even though no code path writes it
|
|
3391
|
+
today, because `schedule-update` takes `eventStatus` as an unvalidated string and
|
|
3392
|
+
one completed routine would otherwise pin `other` above zero forever and kill the
|
|
3393
|
+
alarm.
|
|
3394
|
+
|
|
3395
|
+
**The shipped roster.** Every account starts with ten routines — `start-of-day`,
|
|
3396
|
+
`inbound-check`, `end-of-day`, `appointment-reminder`, `commitment-chase`,
|
|
3397
|
+
`calendar-reconcile`, `contact-reconcile`, `crm-reconcile`, `finance-reconcile`,
|
|
3398
|
+
`weekly-digest` — seeded `eventStatus:'suspended'` with `nextRun` NULL and no
|
|
3399
|
+
channel or destination, so `/routines` is a catalogue to enable rather than a
|
|
3400
|
+
blank page. The list query applies no status filter and `AUTOMATION_WHERE`
|
|
3401
|
+
admits them on `recurrence IS NOT NULL`, so they render with no change here.
|
|
3402
|
+
They cannot fire: every dispatch query in `check-due-events.ts` selects
|
|
3403
|
+
`eventStatus = 'scheduled'`, and the recurring one additionally requires
|
|
3404
|
+
`nextRun IS NOT NULL`.
|
|
3405
|
+
|
|
3406
|
+
Enabling one is `schedule-update {eventId, eventStatus:'scheduled', recurrence,
|
|
3407
|
+
timezone}` — all four arguments. `eventStatus` on its own does not touch
|
|
3408
|
+
`nextRun`, so the row would read enabled and never fire; omitting `timezone`
|
|
3409
|
+
recomputes `nextRun` in the server's zone rather than the operator's, so it
|
|
3410
|
+
fires at the wrong hour and still looks healthy. Binding a channel and a
|
|
3411
|
+
destination is separate and equally required: `chooseDispatchMode` returns
|
|
3412
|
+
`{kind:'none'}` unless `agentChannel`, `agentDestination` and `agentPrompt` are
|
|
3413
|
+
all present, and a destination cannot be seeded because
|
|
3414
|
+
`validateAgentDestination` is fail-closed against the account's
|
|
3415
|
+
`whatsapp.adminPhones` / `telegram.adminUsers`, both empty on a fresh install.
|
|
3416
|
+
|
|
3417
|
+
The seed re-runs on every upgrade and never writes `eventStatus`,
|
|
3418
|
+
`agentChannel`, `agentDestination`, `recurrence` or `timezone` on a row that
|
|
3419
|
+
already exists, so an upgrade cannot re-suspend an enabled routine, unbind a
|
|
3420
|
+
bound destination or reset a retimed cron. Three standing checks ride the
|
|
3421
|
+
scheduling heartbeat and report on every tick including zero:
|
|
3422
|
+
`[schedule-audit] op=roster` (a seed that never ran or ran short),
|
|
3423
|
+
`op=dispatch-mode-none` (a routine that fires and delivers nothing) and
|
|
3424
|
+
`op=null-timezone` (a routine that fires at the box's hour).
|
|
3333
3425
|
|
|
3334
3426
|
### Skills
|
|
3335
3427
|
|
|
@@ -3384,7 +3476,9 @@ both `kind: 'specialist'` and differ only by origin.
|
|
|
3384
3476
|
`agent-builder`). The specialist modal shows the model, tools, the owning
|
|
3385
3477
|
plugin's skills, and the system-prompt body. Specialists are authored, edited,
|
|
3386
3478
|
and deleted through chat (`agent-builder` / `specialist-management`), so the
|
|
3387
|
-
specialist modal offers no delete or open-agent link.
|
|
3479
|
+
specialist modal offers no delete or open-agent link. **These are the only
|
|
3480
|
+
agents that can be switched off from this page**, and the route enforces that
|
|
3481
|
+
rather than relying on the UI to withhold the control.
|
|
3388
3482
|
- **Shipped specialists** (`origin: 'shipped'`) — the union of
|
|
3389
3483
|
`<accountDir>/specialists/agents/`, `<accountDir>/specialists/agents-disabled/`
|
|
3390
3484
|
and `PLATFORM_ROOT/templates/specialists/agents/`, in that precedence order.
|
|
@@ -3392,22 +3486,27 @@ both `kind: 'specialist'` and differ only by origin.
|
|
|
3392
3486
|
a disabled agent still appears there through its bundled-template row. The
|
|
3393
3487
|
route once walked only the account plugins tree, so the twelve
|
|
3394
3488
|
highest-capability agents on the box were the ones the operator could not see.
|
|
3395
|
-
|
|
3396
|
-
|
|
3489
|
+
**A shipped agent cannot be switched off here.** It is part of the product, so
|
|
3490
|
+
disabling one breaks a capability the operator did not author and cannot
|
|
3491
|
+
repair, and it is not what runs unattended: an agent runs only when something
|
|
3492
|
+
dispatches it, an inbound message is operator-initiated, so the only autonomous
|
|
3493
|
+
path is the scheduler. The modal says so and points at the routines instead.
|
|
3397
3494
|
**A file in the LIVE directory whose name also exists under
|
|
3398
3495
|
`<accountDir>/plugins/*/agents/` is excluded from this set.** `agent-builder`
|
|
3399
3496
|
copies the authored file into `specialists/agents/` because presence there is
|
|
3400
3497
|
what makes an agent dispatchable, so the live directory says nothing about who
|
|
3401
3498
|
wrote the agent and every activated user-created specialist used to render
|
|
3402
3499
|
twice, the second time as Shipped. The account plugin tree is the authorship
|
|
3403
|
-
evidence and its row wins
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
and
|
|
3500
|
+
evidence and its row wins; it is the same discriminator `disable` requires.
|
|
3501
|
+
Both gates read filenames off disk, so a plugin file whose frontmatter does not
|
|
3502
|
+
parse still suppresses its live twin — it is authored either way, and
|
|
3503
|
+
`specialistsSkipped` is what reports the parse failure. **The exclusion covers
|
|
3504
|
+
both account directories, live and quarantine.** It was live-only while only a
|
|
3505
|
+
shipped agent could be quarantined; now that an authored specialist can be
|
|
3506
|
+
switched off, its specialist row carries the plugin, the skills, the detail
|
|
3507
|
+
route and its own disabled state, so a second row from the shipped walk would
|
|
3508
|
+
be a duplicate with none of that. The bundled templates are never deduped: a
|
|
3509
|
+
bundled name is shipped by definition. Each exclusion logs
|
|
3411
3510
|
`op=list-shipped-dedup file=<name>` and the count rides `op=list` and the
|
|
3412
3511
|
response as `deduped`.
|
|
3413
3512
|
|
|
@@ -3435,35 +3534,137 @@ no class is dashed and uncoloured rather than painted as if it were understood.
|
|
|
3435
3534
|
Badge colours come from the shared semantic status set: `-solid` with white text
|
|
3436
3535
|
for the badge, `-tint` with `-textOnTint` for a chip, never white.
|
|
3437
3536
|
|
|
3537
|
+
**No tool name on a card.** The card renders the badge word and the plugin (or,
|
|
3538
|
+
for a public agent, its status). It does not render `riskiestTool`: a qualified
|
|
3539
|
+
tool symbol tells the person reading this dashboard nothing the badge word did
|
|
3540
|
+
not. `riskiestTool` stays on the wire and on the `op=risk` line as a diagnostic,
|
|
3541
|
+
so a wrong class is still traceable to the tool that set it without re-deriving
|
|
3542
|
+
the classification.
|
|
3543
|
+
|
|
3544
|
+
**Combination rules.** The per-tool max answers "what is the worst single thing
|
|
3545
|
+
this agent can do". It cannot answer "what can it do in sequence", which is the
|
|
3546
|
+
question the person reading the dashboard is actually asking: an agent that
|
|
3547
|
+
reads a customer record and an agent that emails a stranger are both red, and so
|
|
3548
|
+
is the one that does both. Four rules in `server/lib/agent-risk.ts` run *after*
|
|
3549
|
+
the max. A rule fires when **every** risk class it names is present among the
|
|
3550
|
+
resolved tools and its own class is not below the class the max produced; the
|
|
3551
|
+
first match in table order wins and supplies the sentence the modal renders.
|
|
3552
|
+
|
|
3553
|
+
| Rule | Fires when the agent holds | Class | What the operator reads |
|
|
3554
|
+
|---|---|---|---|
|
|
3555
|
+
| `changes-and-sends` | a `write_local` tool and an `external` tool | red | It can change your records and also send messages out, so a wrong change can reach someone outside the business. |
|
|
3556
|
+
| `reads-and-sends` | a `read` tool and an `external` tool | red | It can read what is held on this device and also send things out of it, so anything it reads can leave. |
|
|
3557
|
+
| `changes-and-runs` | a `write_local` tool and an `exec` tool | red | It can change files on this device and run commands, so a mistake is not confined to one file. |
|
|
3558
|
+
| `reads-and-runs` | a `read` tool and an `exec` tool | red | It can read what is held on this device and run commands on it. |
|
|
3559
|
+
|
|
3560
|
+
The order is the priority order: reaching outside the business outranks running
|
|
3561
|
+
a command inside it, and changing something outranks reading it. A rule may only
|
|
3562
|
+
**raise** a class, never lower one, and because `exec` and `external` both
|
|
3563
|
+
saturate at red today every rule is itself red — so on the shipped fleet the
|
|
3564
|
+
rules change no colour and their whole product is the named hazard in words. A
|
|
3565
|
+
rule whose class sat below the derived one would be skipped rather than applied,
|
|
3566
|
+
so a softer sentence can never be attached to a harder class.
|
|
3567
|
+
|
|
3568
|
+
With no rule matched the sentence comes from the class itself: green says it can
|
|
3569
|
+
only read, amber says it can change what is held here and nothing reaches
|
|
3570
|
+
outside, red says it can run commands or reach services outside. The three
|
|
3571
|
+
forced-red paths carry their own sentences instead, because none of them derived
|
|
3572
|
+
a capability: a tool with no risk class on this install, an agent with no
|
|
3573
|
+
`tools:` line at all, and a plugin registry that failed to load.
|
|
3574
|
+
|
|
3575
|
+
Of the four rules, three fire on the twelve shipped specialists
|
|
3576
|
+
(`changes-and-sends`, `changes-and-runs`, `reads-and-runs`) and `reads-and-sends`
|
|
3577
|
+
fires on none of them, which is what the `op=rule-census` line exists to report
|
|
3578
|
+
across real accounts.
|
|
3579
|
+
|
|
3438
3580
|
**Disable.** `<accountDir>/specialists/agents/` is the live dispatchable set —
|
|
3439
3581
|
`spawn-context.ts` reads it to build the spawn manifest — so disabling **moves**
|
|
3440
|
-
the agent file to `<accountDir>/specialists/agents-disabled
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3582
|
+
the agent file to `<accountDir>/specialists/agents-disabled/`. A flag alone would
|
|
3583
|
+
leave the agent running while the card claimed otherwise. `agent-builder` copies
|
|
3584
|
+
an authored specialist into that same live directory, because presence there is
|
|
3585
|
+
what makes it dispatchable, so the same move applies to it.
|
|
3586
|
+
|
|
3587
|
+
The file is moved, never deleted: an authored specialist's activated copy can
|
|
3588
|
+
carry operator edits its plugin-tree original does not, so deleting one and later
|
|
3589
|
+
restoring "the original" would hand back a different agent than the operator
|
|
3590
|
+
switched off. A disabled agent stays listed, because an agent that vanished from
|
|
3591
|
+
the surface that disabled it could never be switched back on.
|
|
3592
|
+
|
|
3593
|
+
**Authorisation is drawn in both states.** Every specialist card carries a
|
|
3594
|
+
`Live` or `Stood down` pill, and the header above the list reads
|
|
3595
|
+
`<n> agents · <n> stood down`, derived from the same rows the cards render.
|
|
3596
|
+
Drawing only the disabled half made a live agent indistinguishable from a pill
|
|
3597
|
+
that failed to render, and left the operator counting cards to answer how much
|
|
3598
|
+
of the fleet was switched off. Public agents carry no pill: they have no disable
|
|
3599
|
+
path, so `Live` there would assert something the surface never derived.
|
|
3600
|
+
|
|
3601
|
+
**The disable confirm names what stops.** Before the confirm it reads
|
|
3602
|
+
`Stop this agent being dispatched?` plus the skills that run through the agent
|
|
3603
|
+
and the fact that nothing can hand it work until it is switched back on. It does
|
|
3604
|
+
**not** name the routines that dispatch the agent, and cannot: a routine
|
|
3605
|
+
`:Event` stores `agentChannel`, `agentDestination` and `agentPrompt`, never an
|
|
3606
|
+
agent, so there is nothing on disk to join against. A shipped agent's detail
|
|
3607
|
+
also carries no skills, because a shipped specialist owns no skills directory, so
|
|
3608
|
+
today the skills clause appears only on a plugin-backed specialist. The
|
|
3609
|
+
shipped-agent sentence is a different thing and does not conflict: it names
|
|
3610
|
+
suspending routines as the general way to stop unattended dispatch, which is
|
|
3611
|
+
true of every shipped agent, rather than claiming this one's routines can be
|
|
3612
|
+
listed.
|
|
3613
|
+
|
|
3614
|
+
Three cases, no more. Authored with a live copy → moved to quarantine. Authored
|
|
3615
|
+
with no live copy → refused 409: it is not in the dispatchable set, so there is
|
|
3616
|
+
nothing to switch off and recording one would claim work that did not happen.
|
|
3617
|
+
Not authored → refused 404, naming the routines as what stops it instead.
|
|
3618
|
+
|
|
3619
|
+
**Enable is deliberately not symmetric, and takes no authorship check.** An
|
|
3620
|
+
install that disabled a shipped agent before the gate was inverted holds it in
|
|
3621
|
+
the quarantine directory and names it in `agents-disabled.json`; requiring
|
|
3622
|
+
authorship on enable would strand it there with no route back through the
|
|
3623
|
+
product. So enable serves both classes: a quarantined authored specialist, and a
|
|
3624
|
+
shipped agent disabled under the old rule (whether it was moved, or was
|
|
3625
|
+
bundled-only and recorded in the store alone).
|
|
3626
|
+
|
|
3627
|
+
**Nothing writes `agents-disabled.json` any more.** That 0600 store exists only
|
|
3628
|
+
to stop the next provisioning run re-delivering a withheld shipped file —
|
|
3629
|
+
`provision-account-dir.sh` re-reads it after its core-specialist recopy and
|
|
3630
|
+
removes anything named in it — and shipped disable is now refused, so no new
|
|
3631
|
+
entry can be created. An authored specialist needs no entry either: provisioning
|
|
3632
|
+
never writes the account plugin tree, so the quarantined file is its whole state.
|
|
3633
|
+
The store is now read-and-clear: the listing reads it for shipped rows and enable
|
|
3634
|
+
clears entries from it, rewriting it whole and re-applying 0600 explicitly
|
|
3635
|
+
(`writeFileSync`'s `mode` applies only on creation, and nothing creates this file
|
|
3636
|
+
now). An unreadable store withholds nothing and says so: a corrupt file is not
|
|
3637
|
+
evidence that an agent was disabled.
|
|
3638
|
+
|
|
3639
|
+
Both routes reconcile the admin's routing prose. `agents/admin/AGENTS.md` carries
|
|
3640
|
+
one `- **specialists:<name>**:` line per dispatchable specialist, and
|
|
3457
3641
|
`agents-md-bootstrap.sh` used to only ever append, so a disabled agent stayed
|
|
3458
3642
|
advertised and the admin dispatched to a file that was no longer there. The
|
|
3459
|
-
script
|
|
3460
|
-
|
|
3643
|
+
script withholds a line for every name in the store and both routes exec it after
|
|
3644
|
+
the move, so the prose is right immediately rather than after the next
|
|
3461
3645
|
provisioning run. It emits `[agents-md] op=specialist-lines account=<id8>
|
|
3462
|
-
kept=<n> withheld=<comma-list|none|store-unreadable>`.
|
|
3463
|
-
|
|
3646
|
+
kept=<n> withheld=<comma-list|none|store-unreadable>`. Note the reach, because it is not
|
|
3647
|
+
symmetric: the script skips every `--` filename as out of scope, and its prune is
|
|
3648
|
+
keyed on a store basename (`acme--helper`) while the routing line is keyed on the
|
|
3649
|
+
frontmatter name (`helper`) that the activation path in `specialist-management`
|
|
3650
|
+
wrote. So the bootstrap can neither remove nor restore an authored specialist's
|
|
3651
|
+
line, and before this change that did not matter because that class could not be
|
|
3652
|
+
disabled at all. It is now the only class that can be, so the route makes a
|
|
3653
|
+
second, targeted pass for it, reading the name from whichever copy of the file
|
|
3654
|
+
exists after the move and emitting `op=agents-md-authored`. Without it the admin
|
|
3655
|
+
would keep advertising a specialist whose file is quarantined and dispatch would
|
|
3656
|
+
fail inside the turn, which is the defect the bootstrap's prune was written to
|
|
3657
|
+
prevent, on the one class it does not reach. `system-status` reads the same store, so a shipped agent
|
|
3658
|
+
disabled under the old rule reports `disabled (operator)` rather than
|
|
3464
3659
|
`missing file`, and the header counts the two separately
|
|
3465
3660
|
(`<n> registered, missing=<x> disabled=<y>`).
|
|
3466
3661
|
|
|
3662
|
+
Observability rides `[admin/agents] op=disable|enable accountId=<8> slug=<s>
|
|
3663
|
+
origin=<specialist|shipped> eligible=<bool> outcome=<applied|refused|failed>`
|
|
3664
|
+
with `reason=<not-user-created|not-dispatchable|not-disabled>` on a refusal.
|
|
3665
|
+
`eligible=false outcome=refused` is what proves the gate is live rather than
|
|
3666
|
+
merely re-labelled in the UI.
|
|
3667
|
+
|
|
3467
3668
|
**Account scope.** The route (`server/routes/admin/agents.ts`) never infers an
|
|
3468
3669
|
account from device state. The two reads resolve from the caller's admin session
|
|
3469
3670
|
(`requireAdminSession` + the shared `accountDirForSession` in
|
|
@@ -3477,10 +3678,10 @@ explicit `?plugin=` parameter, not inferred from `--` in the slug.
|
|
|
3477
3678
|
|
|
3478
3679
|
| Route | Behaviour |
|
|
3479
3680
|
|-------|-----------|
|
|
3480
|
-
| `GET /api/admin/agents` | Session-scoped. Lists the session account's public `agents/*/` dirs (never the `admin` agent), its user-created specialists from `plugins/*/agents/*.md`, and its shipped specialists, each row tagged `kind` and `origin` and carrying `risk`, `riskiestTool`, `unresolved` and `disabled`. A live-directory candidate whose filename also exists under `plugins/*/agents/` is dropped and counted, so an activated user-created agent is listed once. Returns `{agents, accountId, skipped, specialistsSkipped, shippedSkipped, deduped, riskSurfaceFailed}`. 401 when the session maps to no account. |
|
|
3481
|
-
| `GET /api/admin/agents/:slug` | Session-scoped. Without `?plugin=` or `?origin=`, returns a public agent's config fields + four owned docs + a `present` map (a missing or unreadable doc is `''`/`present.<role>=false`, never a 500). With `?plugin=`, that plugin's user-created specialist; with `?origin=shipped`, the shipped one. Both specialist shapes add `{risk, riskiestTool, unresolved, byTool, disabled}`, where `byTool` is one class per declared tool. Selection is explicit rather than inferred, because a premium file and a user-created specialist under a plugin of the same name produce the same slug. Unknown 404s, 401 as above. |
|
|
3482
|
-
| `POST /api/admin/agents/:slug/disable?accountId=` |
|
|
3483
|
-
| `POST /api/admin/agents/:slug/enable?accountId=` |
|
|
3681
|
+
| `GET /api/admin/agents` | Session-scoped. Lists the session account's public `agents/*/` dirs (never the `admin` agent), its user-created specialists from `plugins/*/agents/*.md`, and its shipped specialists, each row tagged `kind` and `origin` and carrying `risk`, `riskiestTool`, `riskRule`, `riskReason`, `unresolved` and `disabled`. A live-directory candidate whose filename also exists under `plugins/*/agents/` is dropped and counted, so an activated user-created agent is listed once. Returns `{agents, accountId, skipped, specialistsSkipped, shippedSkipped, deduped, riskSurfaceFailed}`. 401 when the session maps to no account. |
|
|
3682
|
+
| `GET /api/admin/agents/:slug` | Session-scoped. Without `?plugin=` or `?origin=`, returns a public agent's config fields + four owned docs + a `present` map (a missing or unreadable doc is `''`/`present.<role>=false`, never a 500). With `?plugin=`, that plugin's user-created specialist; with `?origin=shipped`, the shipped one. Both specialist shapes add `{risk, riskiestTool, riskRule, riskReason, unresolved, byTool, disabled}`, where `byTool` is one class per declared tool. Selection is explicit rather than inferred, because a premium file and a user-created specialist under a plugin of the same name produce the same slug. Unknown 404s, 401 as above. |
|
|
3683
|
+
| `POST /api/admin/agents/:slug/disable?accountId=` | Agents the operator authored only, enforced here rather than left to the UI: a slug NOT present under `plugins/*/agents/` 404s (`reason=not-user-created`), and the message names suspending the routines as what stops a shipped agent instead. An authored slug with no copy in `specialists/agents/` 409s (`reason=not-dispatchable`): it is already not dispatchable, so there is nothing to move and nothing to record. Otherwise it moves the file from `specialists/agents/` to `specialists/agents-disabled/` and returns `{ok, moved:true}` — the only outcome, since the two other cases refuse. It writes NO store entry: `agents-disabled.json` exists to stop provisioning re-delivering a withheld shipped file, and provisioning never writes the account plugin tree. Returns `routingReconciled`, false when either AGENTS.md pass threw; the move already happened and already stopped dispatch, so the request is not failed and the caller is told rather than left assuming the prose is right. Same `accountId` contract as delete. |
|
|
3684
|
+
| `POST /api/admin/agents/:slug/enable?accountId=` | Takes NO authorship check, and that asymmetry with disable is deliberate: an install that switched a shipped agent off under the old gate must still reach this route, or inverting the gate strands it. For an authored slug the quarantined file is the whole state — 404 when it is absent, `restored:true` when it moves back, and the store is never touched. For a shipped slug it covers both of the old disable's outcomes: a quarantined file moves back (`restored:true`), and a bundled-only agent has nothing to move so clearing the store entry is the whole job (`restored:false`), which is what stops provisioning withholding it. 404 only when neither the quarantine directory nor the store knows the slug. The store is read strictly first, because this is the read half of a read-modify-write that rewrites the file whole, and it is written back only when an entry was actually removed — so enabling never creates a store an account did not have. |
|
|
3484
3685
|
| `DELETE /api/admin/agents/:slug?accountId=` | Public agents only, on the named validated account. Removes the dir after `deleteAgentProjection`; refuses the `admin` slug (403) and a missing/unknown `accountId` (400) with no write. Loud-fail: a graph-cleanup throw aborts the file removal. |
|
|
3485
3686
|
| `POST /api/admin/agents/:slug/project?accountId=` | Re-projects the named account's on-disk agent into the graph. Same `accountId` contract as delete. |
|
|
3486
3687
|
|
|
@@ -3514,25 +3715,40 @@ Agents page survived undiagnosed on a multi-account install.
|
|
|
3514
3715
|
does not add up is visible without reproducing anything. The over-exclusion to
|
|
3515
3716
|
watch for is a `deduped` line naming a file that is also a bundled or premium
|
|
3516
3717
|
agent: the authored file then hides a genuinely shipped one.
|
|
3517
|
-
- `op=
|
|
3518
|
-
|
|
3519
|
-
disabled=<bool>` — one line
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
**A non-
|
|
3718
|
+
- `[agents] op=risk account=<id8> slug=<name> origin=<shipped|public|specialist>
|
|
3719
|
+
class=<green|amber|red> rule=<id|none> riskiestTool=<tool> tools=<n>
|
|
3720
|
+
unresolved=<n> unresolvedTools=<comma-list|none> disabled=<bool>` — one line
|
|
3721
|
+
per classified agent per listing, so it fires on every page load.
|
|
3722
|
+
**`rule=` is the field that proves the combination table is live**: a
|
|
3723
|
+
mis-specified rule emits nothing of its own and is otherwise indistinguishable
|
|
3724
|
+
from an absent one. `riskiestTool` makes a wrong class diagnosable without
|
|
3725
|
+
re-deriving it; its value is the FULL canonical tool name and it is no longer
|
|
3726
|
+
rendered anywhere, so this line is where it is read.
|
|
3727
|
+
**A non-zero `unresolved=` is the one to act on**: the agent
|
|
3527
3728
|
is forced red, and the cause is that the built-in table or the registry
|
|
3528
|
-
mapping has drifted, not that the agent changed.
|
|
3529
|
-
- `op=
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3729
|
+
mapping has drifted, not that the agent changed. `unresolvedTools=` says which.
|
|
3730
|
+
- `[agents] op=rule-census account=<id8> rules=<n> classified=<n> fired=<n>
|
|
3731
|
+
never=<comma-list|none>` — one line per listing, not per agent.
|
|
3732
|
+
**This is the standing check.** A rule that never fires produces no evidence of
|
|
3733
|
+
its own, so nothing except this line would ever say so; a rule id permanently
|
|
3734
|
+
in `never` across every account is dead or wrong. `fired + never` always equals
|
|
3735
|
+
`rules`. Read `never` only when `classified` is non-zero: an account with no
|
|
3736
|
+
specialists puts every rule in `never` and would otherwise be
|
|
3737
|
+
indistinguishable from a table that was never wired. Today `reads-and-sends`
|
|
3738
|
+
sits in `never` on an install whose agents are all shipped, which is expected
|
|
3739
|
+
and not a fault.
|
|
3740
|
+
- `op=risk-surface status=load-failed reason=<msg>`, emitted with
|
|
3741
|
+
`[agents] op=risk-surface-failed reason=registry-unreadable detail=<msg>` — the
|
|
3742
|
+
plugin registry did not parse, so every row is forced red and the listing
|
|
3743
|
+
returns `riskSurfaceFailed: true`. Both lines say the same thing; the second is
|
|
3744
|
+
the greppable shape, so one pattern (`\[agents\] op=(risk|rule-census|risk-surface-failed)`)
|
|
3745
|
+
covers the per-agent lines, the census and the outage that forced them. Without
|
|
3746
|
+
the forced red, every plugin tool would land in `unresolved` and a registry
|
|
3747
|
+
outage would read as agent drift across every card at once; without the
|
|
3748
|
+
response field, a red row would be indistinguishable from a genuinely dangerous
|
|
3749
|
+
agent, because nothing resolved so `unresolved` is empty and the per-tool
|
|
3750
|
+
explanation cannot fire. Every row's reason then says the registry is the
|
|
3751
|
+
cause rather than asserting a capability the derivation never produced.
|
|
3536
3752
|
- `op=disabled-store status=parse-failed reason=<msg>` — the listing then treats
|
|
3537
3753
|
every agent as enabled, which is what they actually are. A read surface shows
|
|
3538
3754
|
the true dispatchable set rather than a comforting one.
|
|
@@ -9,6 +9,12 @@ Invoked by the admin agent directly.
|
|
|
9
9
|
|
|
10
10
|
This is the platform's release timeline, newest first. Each entry shows the date it shipped and the version it shipped in, so you can tell the operator how current their install is. To compare, read the installed version from `capabilities-here` and match it against the versions below. Keep answers high level and in plain English; this is a summary, not a full commit log.
|
|
11
11
|
|
|
12
|
+
## 2026-07-29 (0.1.523)
|
|
13
|
+
|
|
14
|
+
- You can now switch off an agent you created yourself. Until now that was refused, while switching off a built-in agent was offered instead, which was the wrong way round. You can also suspend a routine, or all of them at once, without deleting it.
|
|
15
|
+
- Routines now keep a run history. Each run opens and closes its own record, so one run no longer overwrites the last, and you can see what ran and when.
|
|
16
|
+
- WhatsApp no longer gives up reconnecting for good after a bad spell; it re-arms and keeps trying. It also works out the WhatsApp protocol version through a checked lookup rather than reading a fixed line number out of someone else's file.
|
|
17
|
+
|
|
12
18
|
## 2026-07-28 (0.1.522)
|
|
13
19
|
|
|
14
20
|
- You can now connect a shared Outlook mailbox you have been given access to, without needing a separate licence for it.
|