@rubytech/create-maxy-code 0.1.275 → 0.1.277

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/package.json +1 -1
  2. package/payload/platform/plugins/admin/.claude-plugin/plugin.json +1 -1
  3. package/payload/platform/plugins/admin/PLUGIN.md +1 -4
  4. package/payload/platform/plugins/admin/mcp/dist/index.js +0 -8
  5. package/payload/platform/plugins/admin/mcp/dist/index.js.map +1 -1
  6. package/payload/platform/plugins/admin/skills/platform-architecture/SKILL.md +3 -3
  7. package/payload/platform/plugins/docs/references/admin-identity-gate.md +77 -81
  8. package/payload/platform/plugins/docs/references/admin-ui.md +2 -2
  9. package/payload/platform/scripts/check-no-esm-require.mjs +3 -0
  10. package/payload/platform/scripts/setup-account.sh +0 -5
  11. package/payload/platform/services/claude-session-manager/dist/canonical-tool-names.generated.d.ts.map +1 -1
  12. package/payload/platform/services/claude-session-manager/dist/canonical-tool-names.generated.js +0 -1
  13. package/payload/platform/services/claude-session-manager/dist/canonical-tool-names.generated.js.map +1 -1
  14. package/payload/platform/services/claude-session-manager/dist/http-server.d.ts +5 -0
  15. package/payload/platform/services/claude-session-manager/dist/http-server.d.ts.map +1 -1
  16. package/payload/platform/services/claude-session-manager/dist/http-server.js +52 -10
  17. package/payload/platform/services/claude-session-manager/dist/http-server.js.map +1 -1
  18. package/payload/platform/services/claude-session-manager/dist/index.js +8 -17
  19. package/payload/platform/services/claude-session-manager/dist/index.js.map +1 -1
  20. package/payload/platform/services/claude-session-manager/dist/rc-daemon.d.ts.map +1 -1
  21. package/payload/platform/services/claude-session-manager/dist/rc-daemon.js +4 -5
  22. package/payload/platform/services/claude-session-manager/dist/rc-daemon.js.map +1 -1
  23. package/payload/platform/services/claude-session-manager/dist/wa-channel-mcp.d.ts +8 -0
  24. package/payload/platform/services/claude-session-manager/dist/wa-channel-mcp.d.ts.map +1 -1
  25. package/payload/platform/services/claude-session-manager/dist/wa-channel-mcp.js +13 -0
  26. package/payload/platform/services/claude-session-manager/dist/wa-channel-mcp.js.map +1 -1
  27. package/payload/platform/services/claude-session-manager/dist/wa-channel-store.d.ts +29 -0
  28. package/payload/platform/services/claude-session-manager/dist/wa-channel-store.d.ts.map +1 -0
  29. package/payload/platform/services/claude-session-manager/dist/wa-channel-store.js +124 -0
  30. package/payload/platform/services/claude-session-manager/dist/wa-channel-store.js.map +1 -0
  31. package/payload/platform/services/whatsapp-channel/dist/notification.d.ts +23 -0
  32. package/payload/platform/services/whatsapp-channel/dist/notification.d.ts.map +1 -1
  33. package/payload/platform/services/whatsapp-channel/dist/notification.js +26 -0
  34. package/payload/platform/services/whatsapp-channel/dist/notification.js.map +1 -1
  35. package/payload/platform/services/whatsapp-channel/dist/server.js +41 -14
  36. package/payload/platform/services/whatsapp-channel/dist/server.js.map +1 -1
  37. package/payload/premium-plugins/writer-craft/mcp/dist/index.js +1 -1
  38. package/payload/premium-plugins/writer-craft/mcp/dist/index.js.map +1 -1
  39. package/payload/premium-plugins/writer-craft/mcp/dist/tools/voice-distil-profile.d.ts +2 -0
  40. package/payload/premium-plugins/writer-craft/mcp/dist/tools/voice-distil-profile.d.ts.map +1 -1
  41. package/payload/premium-plugins/writer-craft/mcp/dist/tools/voice-distil-profile.js +1 -1
  42. package/payload/premium-plugins/writer-craft/mcp/dist/tools/voice-distil-profile.js.map +1 -1
  43. package/payload/premium-plugins/writer-craft/mcp/src/index.ts +1 -1
  44. package/payload/premium-plugins/writer-craft/mcp/src/tools/voice-distil-profile.ts +3 -1
  45. package/payload/server/{chunk-W4EM7RK4.js → chunk-QHD5TKLQ.js} +2 -0
  46. package/payload/server/maxy-edge.js +1 -1
  47. package/payload/server/server.js +551 -405
  48. package/payload/platform/plugins/admin/hooks/__tests__/pin-identity-gate.test.sh +0 -96
  49. package/payload/platform/plugins/admin/hooks/pin-identity-gate.sh +0 -146
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rubytech/create-maxy-code",
3
- "version": "0.1.275",
3
+ "version": "0.1.277",
4
4
  "description": "Install Maxy — AI for Productive People",
5
5
  "bin": {
6
6
  "create-maxy-code": "./dist/index.js"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "admin",
3
- "description": "Platform administration plugin. Provides system-status, public-hostname (deterministic Cloudflare public-URL resolver, single call returning the operator's canonical hostname so agents never guess property names on :CloudflareHostname nodes), publish-site (move an extracted static-site tree under <accountDir>/sites/<slug>/, emit one canonical path slug, and refresh llms.txt at the site root — typed refusal taxonomy replaces the prior skill-prose contract), brand-settings, account-manage, capabilities-here (deterministic install-introspection — returns enabledPlugins, tier, models, installed platform + premium specialists, registered Claude Code agent types, and the brand block as a single JSON object; the canonical tool for grounding any claim about what is enabled on the current account), account-update, admin-add, admin-remove, admin-list, admin-update-pin, agent-list, agent-config-read, logs-read, plugin-read, skill-load (one-call resolve+read for SKILL.md by skill name, the canonical primitive for loading a named skill; plugin-read remains the reader for references/* and PLUGIN.md), skill-search (free-text intent → skill resolver: ranks every plugin skill's SKILL.md name+description against a query and returns the top owners with their canonical skills/<slug>/ path, so intent→skill mapping survives the available-skills menu leaving context after a compaction), store-skill (deterministic write counterpart to plugin-read; persists operator-authored skills as plugin files under the active account), session-reset, session-resume, wifi, action-approval tools (action-pending, action-approve, action-reject, action-edit), and admin-identity-authenticate (native-CC PIN identity gate — the operator submits their PIN as the first action of every session to bind their authenticated userId; the PreToolUse pin-identity-gate hook blocks all other tools until this succeeds) for managing the Maxy platform.",
3
+ "description": "Platform administration plugin. Provides system-status, public-hostname (deterministic Cloudflare public-URL resolver, single call returning the operator's canonical hostname so agents never guess property names on :CloudflareHostname nodes), publish-site (move an extracted static-site tree under <accountDir>/sites/<slug>/, emit one canonical path slug, and refresh llms.txt at the site root — typed refusal taxonomy replaces the prior skill-prose contract), brand-settings, account-manage, capabilities-here (deterministic install-introspection — returns enabledPlugins, tier, models, installed platform + premium specialists, registered Claude Code agent types, and the brand block as a single JSON object; the canonical tool for grounding any claim about what is enabled on the current account), account-update, admin-add, admin-remove, admin-list, admin-update-pin, agent-list, agent-config-read, logs-read, plugin-read, skill-load (one-call resolve+read for SKILL.md by skill name, the canonical primitive for loading a named skill; plugin-read remains the reader for references/* and PLUGIN.md), skill-search (free-text intent → skill resolver: ranks every plugin skill's SKILL.md name+description against a query and returns the top owners with their canonical skills/<slug>/ path, so intent→skill mapping survives the available-skills menu leaving context after a compaction), store-skill (deterministic write counterpart to plugin-read; persists operator-authored skills as plugin files under the active account), session-reset, session-resume, wifi, and action-approval tools (action-pending, action-approve, action-reject, action-edit) for managing the Maxy platform.",
4
4
  "version": "0.1.0",
5
5
  "author": {
6
6
  "name": "Rubytech LLC"
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: admin
3
3
  surface: platform
4
- description: "Platform administration plugin. Provides system-status, public-hostname (deterministic Cloudflare public-URL resolver, single call returning the operator's canonical hostname so agents never guess property names on :CloudflareHostname nodes), publish-site (move an extracted static-site tree under <accountDir>/sites/<slug>/, emit one canonical path slug, and refresh llms.txt at the site root — typed refusal taxonomy replaces the prior skill-prose contract), brand-settings, account-manage, capabilities-here (deterministic install-introspection — returns enabledPlugins, tier, models, installed platform + premium specialists, registered Claude Code agent types, and the brand block as a single JSON object; the canonical tool for grounding any claim about what is enabled on the current account), account-update, admin-add, admin-remove, admin-list, admin-update-pin, agent-list, agent-config-read, logs-read, plugin-read, skill-load (one-call resolve+read for SKILL.md by skill name, the canonical primitive for loading a named skill; plugin-read remains the reader for references/* and PLUGIN.md), skill-search (free-text intent → skill resolver: ranks every plugin skill's SKILL.md name+description against a query and returns the top owners with their canonical skills/<slug>/ path, so intent→skill mapping survives the available-skills menu leaving context after a compaction), store-skill (deterministic write counterpart to plugin-read; persists operator-authored skills as plugin files under the active account), session-reset, session-resume, wifi, action-approval tools (action-pending, action-approve, action-reject, action-edit), and admin-identity-authenticate (native-CC PIN identity gate — the operator submits their PIN as the first action of every session to bind their authenticated userId; the PreToolUse pin-identity-gate hook blocks all other tools until this succeeds) for managing the Maxy platform."
4
+ description: "Platform administration plugin. Provides system-status, public-hostname (deterministic Cloudflare public-URL resolver, single call returning the operator's canonical hostname so agents never guess property names on :CloudflareHostname nodes), publish-site (move an extracted static-site tree under <accountDir>/sites/<slug>/, emit one canonical path slug, and refresh llms.txt at the site root — typed refusal taxonomy replaces the prior skill-prose contract), brand-settings, account-manage, capabilities-here (deterministic install-introspection — returns enabledPlugins, tier, models, installed platform + premium specialists, registered Claude Code agent types, and the brand block as a single JSON object; the canonical tool for grounding any claim about what is enabled on the current account), account-update, admin-add, admin-remove, admin-list, admin-update-pin, agent-list, agent-config-read, logs-read, plugin-read, skill-load (one-call resolve+read for SKILL.md by skill name, the canonical primitive for loading a named skill; plugin-read remains the reader for references/* and PLUGIN.md), skill-search (free-text intent → skill resolver: ranks every plugin skill's SKILL.md name+description against a query and returns the top owners with their canonical skills/<slug>/ path, so intent→skill mapping survives the available-skills menu leaving context after a compaction), store-skill (deterministic write counterpart to plugin-read; persists operator-authored skills as plugin files under the active account), session-reset, session-resume, wifi, and action-approval tools (action-pending, action-approve, action-reject, action-edit) for managing the Maxy platform."
5
5
  tools:
6
6
  - name: system-status
7
7
  publicAllowlist: false
@@ -75,9 +75,6 @@ tools:
75
75
  - name: action-edit
76
76
  publicAllowlist: false
77
77
  adminAllowlist: true
78
- - name: admin-identity-authenticate
79
- publicAllowlist: false
80
- adminAllowlist: true
81
78
  hidden:
82
79
  - remote-auth-status
83
80
  - remote-auth-set-password
@@ -24,7 +24,6 @@ import { resolvePublicHostname } from "./lib/public-hostname.js";
24
24
  import { publishSite } from "./tools/publish-site.js";
25
25
  import { resolveCapabilitiesHere } from "./tools/capabilities-here.js";
26
26
  import { runCatalogueCensus } from "./lib/catalogue-census.js";
27
- import { runAuthenticate } from "./tools/admin-identity-authenticate.js";
28
27
  function refusalGuidance(kind) {
29
28
  switch (kind) {
30
29
  case "unsafe-slug":
@@ -3136,13 +3135,6 @@ eagerTool(server, "action-edit", "Edit a pending action's input and then execute
3136
3135
  };
3137
3136
  }
3138
3137
  });
3139
- // Task 619 — native-CC admin PIN identity gate. Eager-loaded so it is visible
3140
- // from the first turn: the operator must authenticate before any other tool is
3141
- // reachable (the PreToolUse pin-identity-gate hook enforces that; this tool is
3142
- // the agent-callable PIN-submit surface and returns the operator's profile).
3143
- eagerTool(server, "admin-identity-authenticate", "Authenticate the current operator by PIN. MUST be the first tool you call in a session: submit the operator's PIN to bind their identity. No other tool is reachable until this succeeds. Returns the authenticated operator's profile.", { pin: z.string().describe("The operator's PIN, exactly as they typed it.") }, async ({ pin }) => ({
3144
- content: [{ type: "text", text: await runAuthenticate(pin) }],
3145
- }));
3146
3138
  // Cleanup on exit (SIGTERM for systemd service stops on Pi)
3147
3139
  const cleanup = async () => {
3148
3140
  await closeDriver();