@rubytech/create-maxy-code 0.1.460 → 0.1.462
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/dist/__tests__/cron-heartbeat-registration.test.js +57 -28
- package/dist/__tests__/launchd-plist.test.js +26 -0
- package/dist/cron-registration.js +30 -8
- package/dist/index.js +50 -9
- package/dist/launchd-plist.js +1 -1
- package/dist/uninstall.js +9 -3
- package/package.json +1 -1
- package/payload/platform/lib/graph-mcp/dist/index.d.ts +2 -1
- package/payload/platform/lib/graph-mcp/dist/index.d.ts.map +1 -1
- package/payload/platform/lib/graph-mcp/dist/index.js +14 -22
- package/payload/platform/lib/graph-mcp/dist/index.js.map +1 -1
- package/payload/platform/lib/graph-mcp/src/index.ts +15 -22
- package/payload/platform/lib/mcp-spawn-tee/dist/index.d.ts +8 -7
- package/payload/platform/lib/mcp-spawn-tee/dist/index.d.ts.map +1 -1
- package/payload/platform/lib/mcp-spawn-tee/dist/index.js +19 -19
- package/payload/platform/lib/mcp-spawn-tee/dist/index.js.map +1 -1
- package/payload/platform/lib/mcp-spawn-tee/src/__tests__/spawn-tee.test.ts +34 -5
- package/payload/platform/lib/mcp-spawn-tee/src/index.ts +22 -19
- package/payload/platform/lib/mcp-stderr-tee/dist/index.d.ts +35 -17
- package/payload/platform/lib/mcp-stderr-tee/dist/index.d.ts.map +1 -1
- package/payload/platform/lib/mcp-stderr-tee/dist/index.js +41 -48
- package/payload/platform/lib/mcp-stderr-tee/dist/index.js.map +1 -1
- package/payload/platform/lib/mcp-stderr-tee/src/index.ts +42 -51
- package/payload/platform/lib/storage-broker/dist/__tests__/audit.test.js +27 -0
- package/payload/platform/lib/storage-broker/dist/__tests__/audit.test.js.map +1 -1
- package/payload/platform/lib/storage-broker/dist/__tests__/cf-exec.test.js +49 -0
- package/payload/platform/lib/storage-broker/dist/__tests__/cf-exec.test.js.map +1 -1
- package/payload/platform/lib/storage-broker/dist/audit.d.ts +11 -0
- package/payload/platform/lib/storage-broker/dist/audit.d.ts.map +1 -1
- package/payload/platform/lib/storage-broker/dist/audit.js +16 -0
- package/payload/platform/lib/storage-broker/dist/audit.js.map +1 -1
- package/payload/platform/lib/storage-broker/dist/cf-exec.d.ts +18 -0
- package/payload/platform/lib/storage-broker/dist/cf-exec.d.ts.map +1 -1
- package/payload/platform/lib/storage-broker/dist/cf-exec.js +77 -0
- package/payload/platform/lib/storage-broker/dist/cf-exec.js.map +1 -1
- package/payload/platform/lib/storage-broker/dist/house-scoped-token.js +3 -0
- package/payload/platform/lib/storage-broker/dist/house-scoped-token.js.map +1 -1
- package/payload/platform/lib/storage-broker/dist/registry.d.ts +1 -1
- package/payload/platform/lib/storage-broker/dist/registry.d.ts.map +1 -1
- package/payload/platform/lib/storage-broker/dist/registry.js.map +1 -1
- package/payload/platform/lib/storage-broker/src/__tests__/audit.test.ts +32 -1
- package/payload/platform/lib/storage-broker/src/__tests__/cf-exec.test.ts +61 -0
- package/payload/platform/lib/storage-broker/src/audit.ts +45 -0
- package/payload/platform/lib/storage-broker/src/cf-exec.ts +91 -0
- package/payload/platform/lib/storage-broker/src/house-scoped-token.ts +3 -0
- package/payload/platform/lib/storage-broker/src/registry.ts +5 -1
- package/payload/platform/plugins/admin/lib/mcp-spawn-tee/index.js +19 -19
- package/payload/platform/plugins/admin/skills/platform-architecture/SKILL.md +22 -11
- package/payload/platform/plugins/aeo/lib/mcp-spawn-tee/index.js +19 -19
- package/payload/platform/plugins/browser/lib/mcp-spawn-tee/index.js +19 -19
- package/payload/platform/plugins/cloudflare/PLUGIN.md +1 -1
- package/payload/platform/plugins/cloudflare/bin/portal-enrol.mjs +96 -0
- package/payload/platform/plugins/cloudflare/mcp/__tests__/auth-route.test.ts +54 -40
- package/payload/platform/plugins/cloudflare/mcp/__tests__/passcode.test.ts +169 -39
- package/payload/platform/plugins/cloudflare/mcp/__tests__/portal-enrol.test.ts +207 -0
- package/payload/platform/plugins/cloudflare/mcp/dist/index.js +5 -5
- package/payload/platform/plugins/cloudflare/mcp/dist/index.js.map +1 -1
- package/payload/platform/plugins/cloudflare/mcp/package.json +1 -1
- package/payload/platform/plugins/cloudflare/references/hosting-sites.md +2 -0
- package/payload/platform/plugins/cloudflare/skills/calendar-site/SKILL.md +1 -1
- package/payload/platform/plugins/cloudflare/skills/data-portal/SKILL.md +21 -19
- package/payload/platform/plugins/cloudflare/skills/data-portal/template/functions/api/_lib/passcode.mjs +193 -0
- package/payload/platform/plugins/cloudflare/skills/data-portal/template/functions/api/auth.ts +18 -12
- package/payload/platform/plugins/cloudflare/skills/data-portal/template/schema.sql +14 -5
- package/payload/platform/plugins/cloudflare/skills/site-deploy/SKILL.md +2 -0
- package/payload/platform/plugins/connector/lib/mcp-spawn-tee/index.js +19 -19
- package/payload/platform/plugins/contacts/lib/mcp-spawn-tee/index.js +19 -19
- package/payload/platform/plugins/docs/references/admin-session.md +3 -3
- package/payload/platform/plugins/docs/references/cloudflare.md +2 -0
- package/payload/platform/plugins/docs/references/outlook-guide.md +11 -4
- package/payload/platform/plugins/docs/references/plugins-guide.md +8 -6
- package/payload/platform/plugins/email/lib/mcp-spawn-tee/index.js +19 -19
- package/payload/platform/plugins/filesystem/lib/mcp-spawn-tee/index.js +19 -19
- package/payload/platform/plugins/graph-viewer/lib/mcp-spawn-tee/index.js +19 -19
- package/payload/platform/plugins/memory/PLUGIN.md +1 -1
- package/payload/platform/plugins/memory/lib/mcp-spawn-tee/index.js +19 -19
- package/payload/platform/plugins/memory/mcp/dist/lib/log-ingest.js +2 -2
- package/payload/platform/plugins/memory/mcp/dist/lib/log-ingest.js.map +1 -1
- package/payload/platform/plugins/outlook/.claude-plugin/plugin.json +1 -1
- package/payload/platform/plugins/outlook/PLUGIN.md +2 -2
- package/payload/platform/plugins/outlook/lib/mcp-spawn-tee/index.js +19 -19
- package/payload/platform/plugins/outlook/mcp/dist/__tests__/draft-threaded.test.d.ts +2 -0
- package/payload/platform/plugins/outlook/mcp/dist/__tests__/draft-threaded.test.d.ts.map +1 -0
- package/payload/platform/plugins/outlook/mcp/dist/__tests__/draft-threaded.test.js +238 -0
- package/payload/platform/plugins/outlook/mcp/dist/__tests__/draft-threaded.test.js.map +1 -0
- package/payload/platform/plugins/outlook/mcp/dist/index.js +9 -5
- package/payload/platform/plugins/outlook/mcp/dist/index.js.map +1 -1
- package/payload/platform/plugins/outlook/mcp/dist/tools/draft.d.ts +58 -9
- package/payload/platform/plugins/outlook/mcp/dist/tools/draft.d.ts.map +1 -1
- package/payload/platform/plugins/outlook/mcp/dist/tools/draft.js +113 -19
- package/payload/platform/plugins/outlook/mcp/dist/tools/draft.js.map +1 -1
- package/payload/platform/plugins/outlook/skills/outlook/SKILL.md +5 -2
- package/payload/platform/plugins/quickbooks/lib/mcp-spawn-tee/index.js +19 -19
- package/payload/platform/plugins/replicate/lib/mcp-spawn-tee/index.js +19 -19
- package/payload/platform/plugins/scheduling/lib/mcp-spawn-tee/index.js +19 -19
- package/payload/platform/plugins/storage-broker/PLUGIN.md +9 -1
- package/payload/platform/plugins/storage-broker/lib/mcp-spawn-tee/index.js +19 -19
- package/payload/platform/plugins/storage-broker/mcp/dist/confine-path.d.ts.map +1 -1
- package/payload/platform/plugins/storage-broker/mcp/dist/confine-path.js +16 -5
- package/payload/platform/plugins/storage-broker/mcp/dist/confine-path.js.map +1 -1
- package/payload/platform/plugins/storage-broker/mcp/dist/index.js +49 -0
- package/payload/platform/plugins/storage-broker/mcp/dist/index.js.map +1 -1
- package/payload/platform/plugins/telegram/lib/mcp-spawn-tee/index.js +19 -19
- package/payload/platform/plugins/url-get/lib/mcp-spawn-tee/index.js +19 -19
- package/payload/platform/plugins/voice-mirror/PLUGIN.md +1 -1
- package/payload/platform/plugins/voice-mirror/lib/mcp-spawn-tee/index.js +19 -19
- package/payload/platform/plugins/voice-mirror/mcp/dist/tools/voice-distil-profile.d.ts.map +1 -1
- package/payload/platform/plugins/voice-mirror/mcp/dist/tools/voice-distil-profile.js +98 -9
- package/payload/platform/plugins/voice-mirror/mcp/dist/tools/voice-distil-profile.js.map +1 -1
- package/payload/platform/plugins/voice-mirror/mcp/dist/tools/voice-retrieve-conditioning.d.ts.map +1 -1
- package/payload/platform/plugins/voice-mirror/mcp/dist/tools/voice-retrieve-conditioning.js +54 -21
- package/payload/platform/plugins/voice-mirror/mcp/dist/tools/voice-retrieve-conditioning.js.map +1 -1
- package/payload/platform/plugins/voice-mirror/mcp/scripts/smoke.mjs +110 -0
- package/payload/platform/plugins/voice-mirror/skills/voice-mirror/SKILL.md +6 -3
- package/payload/platform/plugins/web-designer/PLUGIN.md +1 -1
- package/payload/platform/plugins/web-designer/commands/website.md +6 -0
- package/payload/platform/plugins/web-designer/skills/web-design/references/deploy.md +12 -0
- package/payload/platform/plugins/whatsapp/lib/mcp-spawn-tee/index.js +19 -19
- package/payload/platform/plugins/work/lib/mcp-spawn-tee/index.js +19 -19
- package/payload/platform/plugins/workflows/lib/mcp-spawn-tee/index.js +19 -19
- package/payload/platform/scripts/__tests__/logs-rotate.test.sh +260 -0
- package/payload/platform/scripts/__tests__/resume-tunnel.test.sh +79 -0
- package/payload/platform/scripts/logs-read.sh +31 -0
- package/payload/platform/scripts/logs-rotate.sh +207 -0
- package/payload/platform/scripts/resume-tunnel.sh +27 -0
- 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 +2 -0
- package/payload/platform/services/claude-session-manager/dist/canonical-tool-names.generated.js.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/http-server.d.ts.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/http-server.js +41 -5
- package/payload/platform/services/claude-session-manager/dist/http-server.js.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/index.d.ts +1 -0
- package/payload/platform/services/claude-session-manager/dist/index.d.ts.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/index.js +22 -0
- package/payload/platform/services/claude-session-manager/dist/index.js.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/install-start-counter.d.ts +2 -0
- package/payload/platform/services/claude-session-manager/dist/install-start-counter.d.ts.map +1 -0
- package/payload/platform/services/claude-session-manager/dist/install-start-counter.js +12 -0
- package/payload/platform/services/claude-session-manager/dist/install-start-counter.js.map +1 -0
- package/payload/platform/services/claude-session-manager/dist/pty-census.d.ts +122 -9
- package/payload/platform/services/claude-session-manager/dist/pty-census.d.ts.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/pty-census.js +214 -29
- package/payload/platform/services/claude-session-manager/dist/pty-census.js.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/pty-spawner.d.ts.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/pty-spawner.js +39 -1
- package/payload/platform/services/claude-session-manager/dist/pty-spawner.js.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/rc-daemon.d.ts +5 -3
- package/payload/platform/services/claude-session-manager/dist/rc-daemon.d.ts.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/rc-daemon.js +13 -1
- package/payload/platform/services/claude-session-manager/dist/rc-daemon.js.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/session-memory-cap.d.ts.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/session-memory-cap.js +4 -2
- package/payload/platform/services/claude-session-manager/dist/session-memory-cap.js.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/slice-memory-policy.d.ts +150 -0
- package/payload/platform/services/claude-session-manager/dist/slice-memory-policy.d.ts.map +1 -0
- package/payload/platform/services/claude-session-manager/dist/slice-memory-policy.js +333 -0
- package/payload/platform/services/claude-session-manager/dist/slice-memory-policy.js.map +1 -0
- package/payload/platform/services/claude-session-manager/dist/start-counter.d.ts +10 -0
- package/payload/platform/services/claude-session-manager/dist/start-counter.d.ts.map +1 -0
- package/payload/platform/services/claude-session-manager/dist/start-counter.js +55 -0
- package/payload/platform/services/claude-session-manager/dist/start-counter.js.map +1 -0
- package/payload/server/{chunk-JXWFVE5X.js → chunk-BBSPFN45.js} +65 -0
- package/payload/server/public/assets/{AdminLoginScreens-BFbpkEUS.js → AdminLoginScreens-Bed8SDxY.js} +1 -1
- package/payload/server/public/assets/{AdminShell-CdOGObaZ.js → AdminShell-BLh9O6dn.js} +1 -1
- package/payload/server/public/assets/{Checkbox-RFD_F0c0.js → Checkbox-BC_KSbpS.js} +1 -1
- package/payload/server/public/assets/{admin-CYGdL-1O.js → admin-DfWgJVI3.js} +1 -1
- package/payload/server/public/assets/{browser-DVfa_plj.js → browser-C0vkv-hH.js} +1 -1
- package/payload/server/public/assets/{calendar-JC_Dxa4n.js → calendar-_pfHw0Hp.js} +1 -1
- package/payload/server/public/assets/chat-CufidiBQ.js +1 -0
- package/payload/server/public/assets/chevron-left-BnpVBu51.js +1 -0
- package/payload/server/public/assets/data-CR-fbPWr.js +1 -0
- package/payload/server/public/assets/{graph-hBUrRSkr.js → graph-BZiudUGr.js} +1 -1
- package/payload/server/public/assets/{graph-labels-CHh6zs8t.js → graph-labels-BzmmJwCR.js} +1 -1
- package/payload/server/public/assets/{maximize-2-DjxE4rm9.js → maximize-2-Bhdsv0U-.js} +1 -1
- package/payload/server/public/assets/{operator-BqU9SQuu.js → operator-Cj0B_usT.js} +1 -1
- package/payload/server/public/assets/page-84Fdwiu_.js +32 -0
- package/payload/server/public/assets/{page-DiQhU6lD.js → page-8AB3jUa_.js} +1 -1
- package/payload/server/public/assets/{public-Cu_eALgY.js → public-BkNW9e9T.js} +1 -1
- package/payload/server/public/assets/{rotate-ccw-F9DsSTSJ.js → rotate-ccw-D_5cETGt.js} +1 -1
- package/payload/server/public/assets/{tasks-CE-D0f50.js → tasks-EyKLXINi.js} +1 -1
- package/payload/server/public/assets/{time-entry-format-D2rsWhov.js → time-entry-format-DAwmmR3i.js} +1 -1
- package/payload/server/public/assets/{useCopyFeedback-QxOmoobV.js → useCopyFeedback-rOWd_lzl.js} +1 -1
- package/payload/server/public/assets/{useSelectionMode-RIzNqFjV.js → useSelectionMode-DDmLmPph.js} +1 -1
- package/payload/server/public/assets/{useSubAccountSwitcher-BW_fK1Nt.css → useSubAccountSwitcher-pu0jjLCz.css} +1 -1
- package/payload/server/public/assets/{useVoiceRecorder-WrWurSYI.js → useVoiceRecorder-azG8zSUI.js} +1 -1
- package/payload/server/public/browser.html +5 -5
- package/payload/server/public/calendar.html +6 -6
- package/payload/server/public/chat.html +12 -12
- package/payload/server/public/data.html +10 -10
- package/payload/server/public/graph.html +11 -11
- package/payload/server/public/index.html +13 -13
- package/payload/server/public/operator.html +14 -14
- package/payload/server/public/public.html +12 -12
- package/payload/server/public/tasks.html +5 -5
- package/payload/server/server.js +581 -209
- package/payload/server/{src-4F37OHLK.js → src-YLGAZY36.js} +5 -1
- package/payload/platform/plugins/cloudflare/skills/data-portal/template/functions/api/_lib/passcode.ts +0 -73
- package/payload/server/public/assets/chat-Yf8Nkop8.js +0 -1
- package/payload/server/public/assets/chevron-left-CAiAUBxO.js +0 -1
- package/payload/server/public/assets/data-hqdYXaEn.js +0 -1
- package/payload/server/public/assets/page-B4c4_4HP.js +0 -32
- /package/payload/server/public/assets/{useSubAccountSwitcher-wo_qGW-I.js → useSubAccountSwitcher-CU-lOxTd.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cf-exec.js","sourceRoot":"","sources":["../src/cf-exec.ts"],"names":[],"mappings":";AAAA,yEAAyE;AACzE,iFAAiF;AACjF,iFAAiF;;AAsMjF,gCAwMC;AASD,0CAUC;AA/ZD,2DAA8C;AAC9C,yCAAiC;AAEjC,+DAA4D;AAC5D,mEAAkE;AAgDlE,wEAAwE;AACxE,yEAAyE;AACzE,wEAAwE;AACxE,gFAAgF;AAChF,gEAAgE;AAChE,SAAS,eAAe,CAAC,GAAW;IAClC,OAAO,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC1D,CAAC;AAED,iFAAiF;AACjF,qBAAqB;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AAQ,EAAE,sBAAsB,CAAC,CAAC;IAC1E,MAAM,SAAS,GAAG,IAAA,gBAAI,EAAC,YAAY,EAAE,oCAAoC,CAAC,CAAC;IAC3E,MAAM,MAAM,GAAG,MAAM,IAAA,+CAAuB,EAAC,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC;IACtF,OAAO,UAAU,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;AACnF,CAAC;AAED;;;;;;;;;;GAUG;AACI,KAAK,UAAU,kBAAkB,CACtC,YAAoB,EACpB,MAAa,UAAU,EACvB,UAAmB,YAAY;IAE/B,MAAM,IAAI,GAAG,IAAA,yCAAmB,EAAC,YAAY,CAAC,CAAC;IAC/C,MAAM,YAAY,GAAG,IAAA,gBAAI,EAAC,YAAY,EAAE,QAAQ,EAAE,sBAAsB,CAAC,CAAC;IAC1E,MAAM,SAAS,GAAG,IAAA,gBAAI,EAAC,YAAY,EAAE,oCAAoC,CAAC,CAAC;IAC3E,MAAM,MAAM,GAAG,MAAM,IAAA,+CAAuB,EAAC,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC;IACpF,OAAO,UAAU,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;AACnF,CAAC"}
|
|
@@ -53,6 +53,9 @@ function keyForScope(scope) {
|
|
|
53
53
|
return "CF_STORAGE_TOKEN";
|
|
54
54
|
case "calendar-d1":
|
|
55
55
|
return "CF_CALENDAR_D1_TOKEN";
|
|
56
|
+
case "pages":
|
|
57
|
+
// cf-token.sh's scope table maps pages and d1 to the same minted token.
|
|
58
|
+
return "CF_PAGES_D1_TOKEN";
|
|
56
59
|
default:
|
|
57
60
|
return "";
|
|
58
61
|
}
|
|
@@ -1 +1 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ceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,EAAE;AACF,8EAA8E;AAC9E,6EAA6E;AAC7E,yEAAyE;AACzE,yEAAyE;AACzE,8EAA8E;AAC9E,gFAAgF;AAChF,sEAAsE;;
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,EAAE;AACF,8EAA8E;AAC9E,6EAA6E;AAC7E,yEAAyE;AACzE,yEAAyE;AACzE,8EAA8E;AAC9E,gFAAgF;AAChF,sEAAsE;;AA6BtE,4CAmBC;AAED,oCAWC;AAED,sCAiBC;AAnDM,KAAK,UAAU,gBAAgB,CACpC,OAAoB,EACpB,CAAkB;IAElB,8EAA8E;IAC9E,0EAA0E;IAC1E,+EAA+E;IAC/E,+EAA+E;IAC/E,6EAA6E;IAC7E,wDAAwD;IACxD,MAAM,OAAO,CAAC,GAAG,CACf;;;;;oDAKgD,EAChD,EAAE,SAAS,EAAE,CAAC,CAAC,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,YAAY,EAAE,CAAC,CAAC,YAAY,EAAE,CACrF,CAAC;AACJ,CAAC;AAEM,KAAK,UAAU,YAAY,CAChC,OAAoB,EACpB,IAAkB,EAClB,IAAY;IAEZ,MAAM,GAAG,GAAG,MAAM,OAAO,CAAC,GAAG,CAC3B;+CAC2C,EAC3C,EAAE,IAAI,EAAE,IAAI,EAAE,CACf,CAAC;IACF,OAAO,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAE,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,WAAW,CAAY,CAAC,CAAC,CAAC,IAAI,CAAC;AACjF,CAAC;AAEM,KAAK,UAAU,aAAa,CACjC,OAAoB,EACpB,SAAiB,EACjB,IAAkB;IAElB,MAAM,GAAG,GAAG,MAAM,OAAO,CAAC,GAAG,CAC3B;;uBAEmB,EACnB,EAAE,SAAS,EAAE,IAAI,EAAE,CACpB,CAAC;IACF,OAAO,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QAC/B,SAAS;QACT,IAAI;QACJ,IAAI,EAAE,GAAG,CAAC,GAAG,CAAC,MAAM,CAAW;QAC/B,YAAY,EAAE,GAAG,CAAC,GAAG,CAAC,cAAc,CAAW;KAChD,CAAC,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import test from "node:test";
|
|
2
2
|
import assert from "node:assert/strict";
|
|
3
|
-
import { reconcileStorage, type AuditDeps } from "../audit.js";
|
|
3
|
+
import { reconcileStorage, reconcilePages, type AuditDeps } from "../audit.js";
|
|
4
4
|
|
|
5
5
|
const clean: AuditDeps = {
|
|
6
6
|
cfD1: async () => ["gls-leads"],
|
|
@@ -47,3 +47,34 @@ test("flags a lingering master token", async () => {
|
|
|
47
47
|
strays.some((s) => s.kind === "account-wide-token" && s.detail === "acc-b:CLOUDFLARE_API_TOKEN"),
|
|
48
48
|
);
|
|
49
49
|
});
|
|
50
|
+
|
|
51
|
+
// --- Task 1728: Pages ownership reconcile --------------------------------
|
|
52
|
+
|
|
53
|
+
test("reconcilePages reports a live project with no owner as an orphan", async () => {
|
|
54
|
+
const r = await reconcilePages({
|
|
55
|
+
cfProjects: async () => ["glsmithandsons", "ac-electrical"],
|
|
56
|
+
registeredProjects: async () => ["ac-electrical"],
|
|
57
|
+
});
|
|
58
|
+
assert.deepEqual(r.orphans, ["glsmithandsons"]);
|
|
59
|
+
assert.deepEqual(r.phantoms, []);
|
|
60
|
+
assert.equal(r.projects, 2);
|
|
61
|
+
assert.equal(r.registered, 1);
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
test("reconcilePages reports a registered project Cloudflare does not have as a phantom", async () => {
|
|
65
|
+
const r = await reconcilePages({
|
|
66
|
+
cfProjects: async () => ["ac-electrical"],
|
|
67
|
+
registeredProjects: async () => ["ac-electrical", "deleted-site"],
|
|
68
|
+
});
|
|
69
|
+
assert.deepEqual(r.orphans, []);
|
|
70
|
+
assert.deepEqual(r.phantoms, ["deleted-site"]);
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
test("reconcilePages is clean when every live project has exactly one owner", async () => {
|
|
74
|
+
const r = await reconcilePages({
|
|
75
|
+
cfProjects: async () => ["a", "b"],
|
|
76
|
+
registeredProjects: async () => ["b", "a"],
|
|
77
|
+
});
|
|
78
|
+
assert.deepEqual(r.orphans, []);
|
|
79
|
+
assert.deepEqual(r.phantoms, []);
|
|
80
|
+
});
|
|
@@ -667,3 +667,64 @@ test("r2ObjectFind returns a match found before an anomalous page's guard is rea
|
|
|
667
667
|
const found = await cf.r2ObjectFind("b", "k");
|
|
668
668
|
assert.equal(found?.size, 4);
|
|
669
669
|
});
|
|
670
|
+
|
|
671
|
+
// --- Task 1728: house-run Pages publishing -------------------------------
|
|
672
|
+
|
|
673
|
+
function projectPage(names: string[], cursor?: string) {
|
|
674
|
+
return JSON.stringify({
|
|
675
|
+
success: true,
|
|
676
|
+
errors: [],
|
|
677
|
+
messages: [],
|
|
678
|
+
result: names.map((name) => ({ name, subdomain: `${name}.pages.dev` })),
|
|
679
|
+
result_info: cursor === undefined ? {} : { cursor, per_page: 20 },
|
|
680
|
+
});
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
test("pagesDeploy shells npx wrangler (never bare) and returns the deployment url", async () => {
|
|
684
|
+
const { run, calls } = recordingRun(
|
|
685
|
+
"Uploading... (2/2)\n✨ Deployment complete! Take a peek over at https://abc123.glsmithandsons.pages.dev\n",
|
|
686
|
+
);
|
|
687
|
+
const cf = makeCfExec(cred, run);
|
|
688
|
+
const { url } = await cf.pagesDeploy("/acct/sites/gls", "glsmithandsons", "main");
|
|
689
|
+
assert.equal(url, "https://abc123.glsmithandsons.pages.dev");
|
|
690
|
+
assert.equal(calls[0].cmd, "npx");
|
|
691
|
+
assert.deepEqual(calls[0].args, [
|
|
692
|
+
"wrangler", "pages", "deploy", "/acct/sites/gls",
|
|
693
|
+
"--project-name", "glsmithandsons", "--branch", "main",
|
|
694
|
+
]);
|
|
695
|
+
assert.equal(calls[0].env.CLOUDFLARE_API_TOKEN, "cfat_x");
|
|
696
|
+
});
|
|
697
|
+
|
|
698
|
+
test("pagesDeploy omits --branch when no branch is given", async () => {
|
|
699
|
+
const { run, calls } = recordingRun("✨ Deployment complete! Take a peek over at https://x.y.pages.dev\n");
|
|
700
|
+
const cf = makeCfExec(cred, run);
|
|
701
|
+
await cf.pagesDeploy("/acct/sites/gls", "glsmithandsons");
|
|
702
|
+
assert.deepEqual(calls[0].args, [
|
|
703
|
+
"wrangler", "pages", "deploy", "/acct/sites/gls", "--project-name", "glsmithandsons",
|
|
704
|
+
]);
|
|
705
|
+
});
|
|
706
|
+
|
|
707
|
+
test("pagesDeploy throws with the body when wrangler prints no deployment url", async () => {
|
|
708
|
+
const { run } = recordingRun("Uploading... (0/0)\nsomething went sideways\n");
|
|
709
|
+
const cf = makeCfExec(cred, run);
|
|
710
|
+
await assert.rejects(
|
|
711
|
+
() => cf.pagesDeploy("/acct/sites/gls", "glsmithandsons"),
|
|
712
|
+
/something went sideways/,
|
|
713
|
+
"a url-less wrangler run must surface its output, never report a silent success",
|
|
714
|
+
);
|
|
715
|
+
});
|
|
716
|
+
|
|
717
|
+
test("pagesProjectList follows the pagination cursor to exhaustion via the API, never wrangler", async () => {
|
|
718
|
+
const { fetchFn, calls } = sequenceFetch([
|
|
719
|
+
{ ok: true, status: 200, body: projectPage(["glsmithandsons"], "c1") },
|
|
720
|
+
{ ok: true, status: 200, body: projectPage(["ac-electrical"]) },
|
|
721
|
+
]);
|
|
722
|
+
const cf = makeCfExec(cred, throwingRun, fetchFn);
|
|
723
|
+
assert.deepEqual(await cf.pagesProjectList(), [
|
|
724
|
+
{ name: "glsmithandsons" },
|
|
725
|
+
{ name: "ac-electrical" },
|
|
726
|
+
]);
|
|
727
|
+
assert.equal(calls.length, 2);
|
|
728
|
+
assert.ok(!calls[0].url.includes("per_page"), "per_page is never sent (its max is unconfirmed)");
|
|
729
|
+
assert.ok(calls[1].url.includes("cursor=c1"), "the second request carries the cursor");
|
|
730
|
+
});
|
|
@@ -53,3 +53,48 @@ export async function reconcileStorage(deps: AuditDeps): Promise<{ strays: Stray
|
|
|
53
53
|
|
|
54
54
|
return { strays };
|
|
55
55
|
}
|
|
56
|
+
|
|
57
|
+
// --- Pages ownership reconcile (Task 1728) --------------------------------
|
|
58
|
+
//
|
|
59
|
+
// Same no-event argument as above, one class further on. Publishing is gated on
|
|
60
|
+
// an ownership record, and both ways that record can be wrong emit nothing and
|
|
61
|
+
// never reproduce on demand:
|
|
62
|
+
//
|
|
63
|
+
// orphan — a live Pages project with no owner recorded. Nobody may publish
|
|
64
|
+
// it, and nothing says so until a customer asks for a change and the
|
|
65
|
+
// deploy denies "unregistered". Every project predating this task is
|
|
66
|
+
// an orphan, so on day one this count is the adoption worklist.
|
|
67
|
+
// phantom — an ownership record naming a project Cloudflare does not have.
|
|
68
|
+
// Publishing it fails at wrangler, having already passed the
|
|
69
|
+
// ownership check, so the record lies until someone tries.
|
|
70
|
+
//
|
|
71
|
+
// Names are reported, not just counted: a count tells an operator something is
|
|
72
|
+
// wrong, the name tells them what to adopt.
|
|
73
|
+
|
|
74
|
+
export interface PagesAuditDeps {
|
|
75
|
+
cfProjects(): Promise<string[]>;
|
|
76
|
+
registeredProjects(): Promise<string[]>;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export interface PagesReconcile {
|
|
80
|
+
projects: number;
|
|
81
|
+
registered: number;
|
|
82
|
+
orphans: string[];
|
|
83
|
+
phantoms: string[];
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export async function reconcilePages(deps: PagesAuditDeps): Promise<PagesReconcile> {
|
|
87
|
+
// Not Promise.all with a catch that swallows one side: if either read fails
|
|
88
|
+
// the reconcile is meaningless, and reporting "orphan=<everything>" off a
|
|
89
|
+
// failed registry read would be worse than reporting nothing. Let it throw to
|
|
90
|
+
// the caller, which logs it as an audit error.
|
|
91
|
+
const [cf, registered] = await Promise.all([deps.cfProjects(), deps.registeredProjects()]);
|
|
92
|
+
const cfSet = new Set(cf);
|
|
93
|
+
const regSet = new Set(registered);
|
|
94
|
+
return {
|
|
95
|
+
projects: cfSet.size,
|
|
96
|
+
registered: regSet.size,
|
|
97
|
+
orphans: [...cfSet].filter((name) => !regSet.has(name)),
|
|
98
|
+
phantoms: [...regSet].filter((name) => !cfSet.has(name)),
|
|
99
|
+
};
|
|
100
|
+
}
|
|
@@ -52,6 +52,8 @@ export interface CfExec {
|
|
|
52
52
|
r2ObjectGet(bucket: string, key: string): Promise<Uint8Array>;
|
|
53
53
|
r2ObjectPut(bucket: string, key: string, body: Uint8Array): Promise<void>;
|
|
54
54
|
r2ObjectDelete(bucket: string, key: string): Promise<void>;
|
|
55
|
+
pagesProjectList(): Promise<{ name: string }[]>;
|
|
56
|
+
pagesDeploy(dir: string, project: string, branch?: string): Promise<{ url: string }>;
|
|
55
57
|
}
|
|
56
58
|
|
|
57
59
|
// An object key carries `/` as a real path separator (the data portal's
|
|
@@ -301,6 +303,72 @@ export function makeCfExec(
|
|
|
301
303
|
await run("npx", ["wrangler", "r2", "bucket", "create", name], env);
|
|
302
304
|
},
|
|
303
305
|
|
|
306
|
+
// --- Pages (Task 1728) -------------------------------------------------
|
|
307
|
+
//
|
|
308
|
+
// Publishing is house-run: a client account's secrets carry no master after
|
|
309
|
+
// the 1631 remediation, and cf-token.sh refuses to mint the pages scope for
|
|
310
|
+
// a non-house caller. These two run under the house credential only.
|
|
311
|
+
async pagesProjectList() {
|
|
312
|
+
// `wrangler pages project list` has no --json flag and emits human prose,
|
|
313
|
+
// so it can neither be parsed nor honour the "never grep a CLI's prose"
|
|
314
|
+
// doctrine — the same reason r2List uses the API. Paginate to exhaustion:
|
|
315
|
+
// a single request returns one page, and the audit would read the missing
|
|
316
|
+
// remainder as "absent", reporting live projects as orphans. per_page is
|
|
317
|
+
// deliberately never sent (default and maximum unconfirmed).
|
|
318
|
+
const base = `https://api.cloudflare.com/client/v4/accounts/${cred.accountId}/pages/projects`;
|
|
319
|
+
const projects: { name: string }[] = [];
|
|
320
|
+
const seen = new Set<string>();
|
|
321
|
+
let cursor: string | undefined;
|
|
322
|
+
for (;;) {
|
|
323
|
+
const url = cursor === undefined ? base : `${base}?cursor=${encodeURIComponent(cursor)}`;
|
|
324
|
+
const { parsed } = await cfApiJson(
|
|
325
|
+
fetchFn,
|
|
326
|
+
url,
|
|
327
|
+
{ method: "GET", headers: { Authorization: `Bearer ${cred.apiToken}` } },
|
|
328
|
+
"pages project list",
|
|
329
|
+
);
|
|
330
|
+
const page = parsed as {
|
|
331
|
+
result?: { name: string }[];
|
|
332
|
+
result_info?: { cursor?: string | null };
|
|
333
|
+
};
|
|
334
|
+
for (const p of page.result ?? []) projects.push({ name: p.name });
|
|
335
|
+
const next = page.result_info?.cursor;
|
|
336
|
+
if (!next) return projects;
|
|
337
|
+
// A repeated cursor means the API is cycling rather than advancing;
|
|
338
|
+
// surface it instead of looping forever (mirrors r2List).
|
|
339
|
+
if (seen.has(next)) {
|
|
340
|
+
throw new Error(
|
|
341
|
+
`storage-broker: pages project list returned a repeated pagination cursor: ${next}`,
|
|
342
|
+
);
|
|
343
|
+
}
|
|
344
|
+
seen.add(next);
|
|
345
|
+
cursor = next;
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
async pagesDeploy(dir, project, branch) {
|
|
349
|
+
// wrangler is the only supported Pages upload path (it hashes the tree and
|
|
350
|
+
// uploads only what is missing); the API has no single-call equivalent.
|
|
351
|
+
const args = ["wrangler", "pages", "deploy", dir, "--project-name", project];
|
|
352
|
+
if (branch !== undefined) args.push("--branch", branch);
|
|
353
|
+
const { stdout } = await run("npx", args, env);
|
|
354
|
+
// The deployment URL is what the caller relays, so parse it strictly.
|
|
355
|
+
// Strip ANSI first: wrangler colours its output when it thinks it has a
|
|
356
|
+
// terminal, and a colour reset adjacent to the URL would otherwise be
|
|
357
|
+
// swallowed by the host character class and returned as part of it.
|
|
358
|
+
const plain = stdout.replace(/\[[0-9;]*m/g, "");
|
|
359
|
+
// Take the LAST match, not the first: wrangler prints the deployment URL
|
|
360
|
+
// on its closing line, and any earlier .pages.dev mention (an alias or a
|
|
361
|
+
// progress line) would otherwise win and hand back the wrong address.
|
|
362
|
+
const urls = plain.match(/https:\/\/[A-Za-z0-9._-]+\.pages\.dev/g);
|
|
363
|
+
const url = urls?.[urls.length - 1];
|
|
364
|
+
// wrangler exits 0 on some partial paths, so a url-less success is an
|
|
365
|
+
// anomaly to surface with its output, never a silent "deployed".
|
|
366
|
+
if (!url) {
|
|
367
|
+
throw new Error(`storage-broker: pages deploy returned no deployment url: ${stdout}`);
|
|
368
|
+
}
|
|
369
|
+
return { url };
|
|
370
|
+
},
|
|
371
|
+
|
|
304
372
|
// --- R2 objects (Task 1691) -------------------------------------------
|
|
305
373
|
//
|
|
306
374
|
// The v4 REST API exposes the object surface under
|
|
@@ -418,3 +486,26 @@ export async function makeHouseCfExec(
|
|
|
418
486
|
const scoped = await resolveHouseScopedToken("storage", houseEnvPath, cfTokenSh, run);
|
|
419
487
|
return makeCfExec({ apiToken: scoped, accountId: cred.accountId }, run, fetchFn);
|
|
420
488
|
}
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* The Pages twin of makeHouseCfExec (Task 1728). Same house minter, different
|
|
492
|
+
* scope: "pages" resolves CF_PAGES_D1_TOKEN rather than CF_STORAGE_TOKEN.
|
|
493
|
+
*
|
|
494
|
+
* The minter is handed the HOUSE env, which carries a master, so cf-token.sh's
|
|
495
|
+
* house-fallback branch never runs and caller_is_house() is never consulted.
|
|
496
|
+
* That is exactly why this works from the ui-server process regardless of its
|
|
497
|
+
* ACCOUNT_ID, while a client session shelling cf-token.sh directly is denied
|
|
498
|
+
* reason=not-house. Separate from makeHouseCfExec so hosting never widens the
|
|
499
|
+
* storage token's scope, and storage never gains Pages Write.
|
|
500
|
+
*/
|
|
501
|
+
export async function makeHousePagesExec(
|
|
502
|
+
platformRoot: string,
|
|
503
|
+
run: RunFn = defaultRun,
|
|
504
|
+
fetchFn: FetchFn = defaultFetch,
|
|
505
|
+
): Promise<CfExec> {
|
|
506
|
+
const cred = readHouseCredential(platformRoot);
|
|
507
|
+
const houseEnvPath = join(platformRoot, "config", "cloudflare-house.env");
|
|
508
|
+
const cfTokenSh = join(platformRoot, "plugins/cloudflare/bin/cf-token.sh");
|
|
509
|
+
const scoped = await resolveHouseScopedToken("pages", houseEnvPath, cfTokenSh, run);
|
|
510
|
+
return makeCfExec({ apiToken: scoped, accountId: cred.accountId }, run, fetchFn);
|
|
511
|
+
}
|
|
@@ -66,6 +66,9 @@ function keyForScope(scope: string): string {
|
|
|
66
66
|
return "CF_STORAGE_TOKEN";
|
|
67
67
|
case "calendar-d1":
|
|
68
68
|
return "CF_CALENDAR_D1_TOKEN";
|
|
69
|
+
case "pages":
|
|
70
|
+
// cf-token.sh's scope table maps pages and d1 to the same minted token.
|
|
71
|
+
return "CF_PAGES_D1_TOKEN";
|
|
69
72
|
default:
|
|
70
73
|
return "";
|
|
71
74
|
}
|
|
@@ -22,7 +22,11 @@ export interface SessionLike {
|
|
|
22
22
|
): PromiseLike<{ records: Array<{ get(key: string): any }> }>;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
// "pages" (Task 1728) is an ownership record, not a storage resource: it binds a
|
|
26
|
+
// Cloudflare Pages project to the account allowed to publish it. It shares this
|
|
27
|
+
// registry because the ownership question ("may this caller act on this named
|
|
28
|
+
// thing?") and its answer (resolveOwner + authorizeAccess) are identical.
|
|
29
|
+
export type ResourceKind = "d1" | "r2" | "pages";
|
|
26
30
|
|
|
27
31
|
export interface StorageResource {
|
|
28
32
|
accountId: string;
|
|
@@ -13,14 +13,15 @@
|
|
|
13
13
|
*
|
|
14
14
|
* Claude Code CLI → shim (this file) = node running <real-entry> in-process
|
|
15
15
|
* stdin/stdout : untouched (JSON-RPC channel)
|
|
16
|
-
* stderr : process.stderr.write teed →
|
|
16
|
+
* stderr : process.stderr.write teed → raw sink + passthrough
|
|
17
17
|
*
|
|
18
|
-
* Destinations
|
|
19
|
-
* - `${LOG_DIR}/mcp-<name
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
18
|
+
* Destinations:
|
|
19
|
+
* - `${LOG_DIR}/mcp-<name>-<SESSION_ID>.log` — raw stderr + lifecycle lines.
|
|
20
|
+
* The sole raw sink. Task 1721 retired the per-date twin: its date was
|
|
21
|
+
* pinned at spawn, no reader ever parsed it, and mcp-stderr-tee wrote the
|
|
22
|
+
* same file, so every line landed twice.
|
|
23
|
+
* - `${LOG_DIR}/mcp-<name>-nosession.log` — the same, for a spawn with
|
|
24
|
+
* no SESSION_ID (enumeration). One fixed file per server.
|
|
24
25
|
* - `server.log` via the loopback log-ingest route — best-effort mirror of
|
|
25
26
|
* the [mcp-helper] lifecycle lines.
|
|
26
27
|
*
|
|
@@ -49,13 +50,13 @@ const PLATFORM_PORT = process.env.PLATFORM_PORT;
|
|
|
49
50
|
const ENTRY = process.argv[2];
|
|
50
51
|
const SESSION_ID8 = SESSION_ID ? SESSION_ID.slice(0, 8) : "—";
|
|
51
52
|
const spawnStamp = Date.now();
|
|
52
|
-
//
|
|
53
|
-
//
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
const
|
|
58
|
-
? (0, node_path_1.resolve)(LOG_DIR, `mcp-${SERVER_NAME}
|
|
53
|
+
// The one raw sink (Task 1721). A sessionless spawn (rc-daemon stamps
|
|
54
|
+
// SESSION_ID='' — rc-daemon.ts:513 — while still stamping LOG_DIR) shares one
|
|
55
|
+
// fixed file per server rather than a date-named one: the date was never read
|
|
56
|
+
// by any reader and named a process lifetime, not a day. Interleaved spawns in
|
|
57
|
+
// the nosession file are separated by the [mcp-helper] op=spawn pid= lines.
|
|
58
|
+
const rawSinkPath = LOG_DIR
|
|
59
|
+
? (0, node_path_1.resolve)(LOG_DIR, SESSION_ID ? `mcp-${SERVER_NAME}-${SESSION_ID}.log` : `mcp-${SERVER_NAME}-nosession.log`)
|
|
59
60
|
: undefined;
|
|
60
61
|
// Rolling tail of entry stderr for op=exit. Capped so a chatty server cannot
|
|
61
62
|
// grow the buffer without bound.
|
|
@@ -66,7 +67,7 @@ let exitEmitted = false;
|
|
|
66
67
|
let exitSignal;
|
|
67
68
|
// The real stderr writer, captured before the tee replaces it. Lifecycle lines
|
|
68
69
|
// and stderr passthrough both go through this so they are never re-teed into
|
|
69
|
-
// the
|
|
70
|
+
// the raw sink nor recursed back into the patched writer.
|
|
70
71
|
const rawStderrWrite = process.stderr.write.bind(process.stderr);
|
|
71
72
|
// LOG_DIR is created once, lazily, on the first successful append — not per
|
|
72
73
|
// chunk. teeWrite runs on the server's own stderr hot path now, so a per-call
|
|
@@ -115,7 +116,7 @@ function postToServerLog(suffix, level) {
|
|
|
115
116
|
// log-ingest route rejects newlines).
|
|
116
117
|
function emitLifecycle(suffix, level) {
|
|
117
118
|
const line = `[mcp-helper] ${suffix}\n`;
|
|
118
|
-
appendSafe(
|
|
119
|
+
appendSafe(rawSinkPath, line);
|
|
119
120
|
try {
|
|
120
121
|
rawStderrWrite(line);
|
|
121
122
|
}
|
|
@@ -127,12 +128,11 @@ if (!ENTRY) {
|
|
|
127
128
|
process.exit(2);
|
|
128
129
|
}
|
|
129
130
|
// Replace process.stderr.write with a tee: mirror every server stderr byte to
|
|
130
|
-
// the
|
|
131
|
+
// the raw sink, keep a rolling tail for op=exit, emit
|
|
131
132
|
// op=boot on the first bytes, then pass the write through to the real stderr.
|
|
132
133
|
const teeWrite = ((...args) => {
|
|
133
134
|
const chunk = args[0];
|
|
134
|
-
appendSafe(
|
|
135
|
-
appendSafe(perSessionPath, chunk); // per-session raw (Task 706)
|
|
135
|
+
appendSafe(rawSinkPath, chunk); // raw sink (Task 1721)
|
|
136
136
|
const text = typeof chunk === "string" ? chunk : Buffer.from(chunk).toString("utf8");
|
|
137
137
|
stderrTail = (stderrTail + text).slice(-TAIL_CAP);
|
|
138
138
|
if (!bootEmitted) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: platform-architecture
|
|
3
3
|
description: Use when grounding any documented-surface claim about what Maxy 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:5cd53d82ac8adca607e64646f78a1de72539f32bec3119734d06bc787a3b945f
|
|
5
5
|
brand: maxy-code
|
|
6
6
|
product-name: Maxy
|
|
7
7
|
---
|
|
@@ -485,7 +485,9 @@ import { initStderrTee } from "../../../../lib/mcp-stderr-tee/dist/index.js";
|
|
|
485
485
|
initStderrTee("your-plugin-name");
|
|
486
486
|
```
|
|
487
487
|
|
|
488
|
-
After this, every `console.error("[your-tool]...")` from any tool in the plugin
|
|
488
|
+
After this, every `console.error("[your-tool]...")` from any tool in the plugin is captured in the raw per-server file `mcp-your-plugin-name-{sessionId}.log`, written by the `mcp-spawn-tee` wrapper. That is where you grep.
|
|
489
|
+
|
|
490
|
+
`initStderrTee` is *intended* to also mirror each line into the per-conversation stream log `claude-agent-stream-{sessionId}.log` as `[<iso-ts>] [mcp:your-plugin-name] [your-tool]...`, alongside the usual agent events. It does not currently do so: that destination is gated on `STREAM_LOG_PATH`, which no spawner sets, so the call is a no-op in production. Do not expect `[mcp:<name>]` lines in a conversation's stream log, and do not read their absence as the server having emitted nothing. Tracked as [`.tasks/1736-*.md`](../../../.tasks/1736-nothing-sets-stream-log-path-so-the-per-conversation-mcp-stream-log-does-not-exist.md).
|
|
489
491
|
|
|
490
492
|
**Premium plugins.** Source lives at `premium-plugins/<bundle>/plugins/<name>/mcp/src/` — deeper than platform plugins, so the source-relative import to `platform/lib/mcp-stderr-tee/dist/index.js` uses more `../` segments. The bundler rewrites the compiled output to the canonical `../../../../lib/mcp-stderr-tee/dist/index.js` at staging time and ships `platform/lib/mcp-stderr-tee/{dist,package.json}` into `premium-plugins/<bundle>/lib/mcp-stderr-tee/` so the import resolves at deployed depth. The bundler fails loudly if `platform/lib/mcp-stderr-tee/package.json` is missing (it must pin `type` so install-location parent walks cannot mis-classify the dist file) or if any lib referenced by a rewritten import has no source dist.
|
|
491
493
|
|
|
@@ -496,7 +498,7 @@ After this, every `console.error("[your-tool]...")` from any tool in the plugin
|
|
|
496
498
|
**Retrieve MCP diagnostic lines for a conversation:**
|
|
497
499
|
|
|
498
500
|
- All servers: `logs-read { type: "system", sessionId: "..." }` → grep `[mcp:<name>]` on the returned stream log.
|
|
499
|
-
- One server raw feed: `logs-read { type: "mcp" }` → tails the most recent `mcp-<name
|
|
501
|
+
- One server raw feed: `logs-read { type: "mcp" }` → tails the most recent `mcp-<name>-*.log` (per-plugin, not per-conversation).
|
|
500
502
|
|
|
501
503
|
**Tee-state markers** land in the stream log: `[platform] [mcp-tee-attach] server=<name> streamLogPath=...` when the tee wires up, `[platform] [mcp-tee-skip] server=<name> destination=... reason=...` when a destination fails (missing `LOG_DIR`, unwritable path, `STREAM_LOG_PATH` not set, etc.), `[platform] [mcp-tee-detach] server=<name>` on graceful shutdown. If a server invoked tools but no `[mcp:<name>]` lines appear in the conversation's log, look for the skip marker first.
|
|
502
504
|
|
|
@@ -504,17 +506,17 @@ After this, every `console.error("[your-tool]...")` from any tool in the plugin
|
|
|
504
506
|
|
|
505
507
|
## Failure-path observability contract (earlier platform fixes + earlier platform fixes)
|
|
506
508
|
|
|
507
|
-
The `initStderrTee` wrapper writes to the per-conversation stream log
|
|
509
|
+
The `initStderrTee` wrapper writes to the per-conversation stream log via `createWriteStream` — async, buffered. Any diagnostic `console.error(…)` followed by an immediate `process.exit(…)` is lost from *that* destination: the event loop never drains the WriteStream before the process terminates. Same race for any synchronous module-load throw: Node's uncaught-exception handler writes the stack to raw fd 2 and exits before the patched async stream flushes. The raw sink does not have this race — removed `initStderrTee`'s own raw file, and `mcp-spawn-tee` writes the sink with `appendFileSync`, which returns once the kernel has queued the write and so survives an immediate exit.
|
|
508
510
|
|
|
509
511
|
**Two layers now close the gap, each load-bearing on its own:**
|
|
510
512
|
|
|
511
513
|
1. **Plugin-side sync-write discipline.** Plugins that call `process.exit` during module load (rare — `graph-mcp` is the in-tree example; it spawns a child at boot to proxy upstream stdio) use `fs.appendFileSync` at every named exit path to guarantee the cause lands in both log destinations before exit. Lines follow the `[mcp:<name>] [<plugin-prefix>] <cause>` format so existing `grep '[mcp:<name>]'` investigator paths work. Each destination is wrapped in its own try/catch — an unwritable log must not mask the primary failure. This is the discipline propagated to any plugin author who knows their failure paths.
|
|
512
514
|
|
|
513
|
-
2. **Parent-side `mcp-spawn-tee` wrapper.** Every node-based core MCP server is spawned via the `lib/mcp-spawn-tee` wrapper rather than `node <entry>` directly. The wrapper
|
|
515
|
+
2. **Parent-side `mcp-spawn-tee` wrapper.** Every node-based core MCP server is spawned via the `lib/mcp-spawn-tee` wrapper rather than `node <entry>` directly. The wrapper runs the real entry in its own process and writes stderr chunks to `${LOG_DIR}/mcp-${name}-${SESSION_ID}.log` (or `mcp-${name}-nosession.log` when `SESSION_ID` is unset) via `appendFileSync` while passing the same chunks through to its own stderr (Claude Code's consumer is unchanged). It is the only writer of that raw sink: retired the `mcp-${name}-stderr-<date>.log` twin, which `mcp-stderr-tee` also wrote, so every line used to land there twice. Synchronous `appendFileSync` survives `process.exit`, so the sink captures even (a) module-load throws before `initStderrTee` runs, (b) `MODULE_NOT_FOUND` on the entry script itself, and (c) anything else a plugin author missed. The wrapper writes `[mcp-spawn-tee-attached] server=<name> pid=<n>` on attach and forwards SIGTERM/SIGINT to the child. This is the layer that makes capture independent of plugin discipline. Playwright stays unwrapped because it spawns via `npx`, not `node`.
|
|
514
516
|
|
|
515
|
-
A
|
|
517
|
+
A `[mcp-init-error]` probe on the platform side used to read the retired per-date file and tail it into the stream log. found no such probe in live code — `claude-agent.ts` has not carried one for some time — so the wrapper's own `[mcp-helper] op=boot` and `op=exit` lines are the record of a failed MCP boot.
|
|
516
518
|
|
|
517
|
-
**Signal inventory after a failed session:** `[init] FAILED MCP servers: <names>` (names), `[mcp-
|
|
519
|
+
**Signal inventory after a failed session:** `[init] FAILED MCP servers: <names>` (names), `[mcp-spawn-tee-attached] server=<name> pid=<n>` (proof the wrapper attached), `[mcp-spawn-tee-exit] server=<name> code=<n>|signal=<s>` (proof the wrapper saw the exit), and optionally `[mcp:<name>] [<plugin>] …` from plugin-side sync-writes. Their union gives the investigator independent sources for the same failure. (The two `[mcp-spawn-tee-*]` names are stale — the shim emits `[mcp-helper] op=spawn|boot|exit`; see [`.tasks/1737-*.md`](../../../.tasks/1737-mcp-spawn-tee-docs-promise-lifecycle-markers-and-a-child-process-that-task-989-removed.md).)
|
|
518
520
|
|
|
519
521
|
**Boot-smoke as publish-time gate.** The memory MCP carries `scripts/boot-smoke.sh` that spawns `dist/index.js` with stub env, sleeps 2s, asserts `kill -0 <pid>`, and reports `[boot-smoke] memory ok|FAILED tail=<n-lines>`. Wired to `prepublish` in `plugins/memory/mcp/package.json`. The pattern is propagatable to other plugin MCPs — it's deliberately not generalised yet because each plugin's stub-env requirements differ (memory needs ACCOUNT_ID + PLATFORM_ROOT + NEO4J_URI + SESSION_ID; others differ).
|
|
520
522
|
|
|
@@ -1146,6 +1148,8 @@ Source: https://docs.getmaxy.com/cloudflare.md
|
|
|
1146
1148
|
|
|
1147
1149
|
Each installation has its own Cloudflare account. The **tunnel** sign-in is OAuth: the agent invokes `cloudflared tunnel login` via Bash; the Cloudflare Authorize URL streams into the admin chat PTY and the native terminal renders it as a clickable link. Click it, authorise in your own browser, and `cloudflared` writes `cert.pem` to the brand's config directory. For **everything else** (DNS, Pages, D1, Access) the agent uses the Cloudflare API, authenticated by a short-lived narrow token it mints from a master token you provision once in the dashboard (an advanced step the agent never automates). Some account-side jobs — adding a domain, switching accounts — are still easiest in your browser, and the agent relays those click-paths; the rest it can do directly via the API.
|
|
1148
1150
|
|
|
1151
|
+
Where one installation serves several client accounts from one Cloudflare account, that master is held by the house account alone, and a client account cannot mint from it — it is account-wide, so handing it to one client would hand them every other client's data. Publishing a client's website therefore runs house-side on the client's behalf: the client's session asks, the house does the deploy, and no Cloudflare token ever enters the client's account. Which website belongs to which client is recorded once by the house and is never inferred from folder names, so a site nobody has recorded cannot be published by anyone until it is.
|
|
1152
|
+
|
|
1149
1153
|
## Identity model
|
|
1150
1154
|
|
|
1151
1155
|
| Concept | Source |
|
|
@@ -2072,7 +2076,7 @@ The `outlook` plugin gives the admin agent access to Microsoft 365 / Outlook.com
|
|
|
2072
2076
|
| `outlook-mailbox-info` | Health probe for one mailbox — auth state, refresh-window, folder count. Name the mailbox with `mailbox` when several are attached. |
|
|
2073
2077
|
| `outlook-mailbox-list` | Every connected mailbox with its email, scopes, and token health. Local only — no network — so it also flags a mailbox whose stored credentials cannot be read. |
|
|
2074
2078
|
| `outlook-mail-send` | Send a message. No attachments → `POST /me/sendMail`; with attachments → draft, attach, send (`/me/sendMail` carries attachments inline and cannot fit a large file). to/cc/bcc arrays, subject, body, isHtml, attachments (account-dir paths, 25 MB/file). Success asserted on Graph 202; no message id on either route. Needs `Mail.Send` (+ `Mail.ReadWrite` to attach). |
|
|
2075
|
-
| `outlook-draft` | Create a draft in Drafts
|
|
2079
|
+
| `outlook-draft` | Create a draft in Drafts, either a new message or a threaded reply. Returns the draft id; never sends. Attachments are attached before the id is returned, so the draft is ready to send. Needs `Mail.ReadWrite`. **New message** (no `replyToMessageId`): `POST /me/messages`, requires `to` + `subject`, same body model as `outlook-mail-send`, threads under nothing. **Threaded reply** (`replyToMessageId` = the id of the message being answered): `POST /me/messages/{id}/createReply` — the draft carries the parent's conversationId, so it lands under the original. This is the only way to draft a reply without sending it: `outlook-mail-reply` threads but always sends. Graph sets the recipients and `RE:` subject from the original and composes the body above its own quote, matching what `outlook-mail-reply` sends, so the threaded path is **plain text only** — `to`, `subject`, and `isHtml: true` are **refused** (not ignored) when replying. `replyAll` includes everyone on the original; `cc`/`bcc` add recipients. |
|
|
2076
2080
|
| `outlook-draft-edit` | Update an existing draft in place (`PATCH /me/messages/{draftId}`) and/or add and remove attachments. Graph drafts are mutable — pass draftId plus the fields to change (to/cc/bcc/subject/body/isHtml/attachments/removeAttachments). `attachments` adds; `removeAttachments` takes files off by name or attachment id; both together replace a file in one call. Sent messages cannot be edited. Needs `Mail.ReadWrite`. |
|
|
2077
2081
|
| `outlook-draft-send` | Send an existing draft by id (`POST /me/messages/{id}/send`). Graph consumes the draft, returns 202. Needs `Mail.Send`. |
|
|
2078
2082
|
|
|
@@ -2114,9 +2118,9 @@ All log lines start with `[outlook-mcp]` and write to `server.log`. They are key
|
|
|
2114
2118
|
| Send args | `send-args account=<id> recipients=<N> hasBody=<bool>` |
|
|
2115
2119
|
| Sent | `sent account=<id> status=202 messageId=<id-or-null>` |
|
|
2116
2120
|
| Send failed | `send-failed account=<id> error=<msg>` |
|
|
2117
|
-
| Draft request | `draft-request account=<id>` |
|
|
2118
|
-
| Draft created | `draft-created account=<id> id=<draftId>` |
|
|
2119
|
-
| Draft failed | `draft-failed account=<id> error=<msg>` |
|
|
2121
|
+
| Draft request | `draft-request account=<id> threaded=<bool>` |
|
|
2122
|
+
| Draft created | `draft-created account=<id> id=<draftId> threaded=<bool> convId=<id\|null>` |
|
|
2123
|
+
| Draft failed | `draft-failed account=<id> threaded=<bool> error=<msg>` |
|
|
2120
2124
|
| Draft-send request | `draft-send-request account=<id> id=<draftId>` |
|
|
2121
2125
|
| Draft sent | `draft-sent account=<id> id=<draftId> status=202` |
|
|
2122
2126
|
| Draft-send failed | `draft-send-failed account=<id> id=<draftId> error=<msg>` |
|
|
@@ -2129,8 +2133,15 @@ ssh laptop 'grep -E "^\[outlook-mcp\]" ~/.maxy/logs/server.log | grep "account=<
|
|
|
2129
2133
|
|
|
2130
2134
|
# Token-leak audit — must always return zero
|
|
2131
2135
|
grep -rn -iE "Bearer |access_token=" ~/.maxy/logs/server.log | head
|
|
2136
|
+
|
|
2137
|
+
# Threading audit — a threaded write that reports no conversation LOST its thread.
|
|
2138
|
+
# Must always return zero. Covers both outbound threaded paths (mail-reply and draft-created).
|
|
2139
|
+
grep -E "^\[outlook-mcp\] (mail-reply|draft-created)" ~/.maxy/logs/server.log \
|
|
2140
|
+
| grep -E "threaded=true|op=reply" | grep -E "convId=(null)?( |$)" | head
|
|
2132
2141
|
```
|
|
2133
2142
|
|
|
2143
|
+
Threading triage: **absence of a `convId` on a threaded write means threading was lost.** `draft-created threaded=false convId=null` is correct and expected — a new message has no parent conversation. `draft-created threaded=true convId=null` is a fault: Graph returned a reply draft that names no conversation, and the reply will land detached from the original.
|
|
2144
|
+
|
|
2134
2145
|
Latency triage: `mail-list count=0 elapsedMs<200` consistent → permissions issue; `elapsedMs > 5000` → Graph slowness or DNS.
|
|
2135
2146
|
|
|
2136
2147
|
## Failure modes
|