Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,16 @@
recall_memory: "POST /api/v1/memory/recall",
doctrine_seed: "GET /api/v1/doctrine/seed",
},

// Standing orchestrator-mode directive, distributed globally via the public
// doctrine seed. Consumers (e.g. ch1tty SessionStart hooks) cache .text and
// inject it each session. sha256 covers the exact UTF-8 bytes of .text.
orchestrator_directive: {
version: "1.0.0",
sha256:
"3c82749eccce0420fe2effd0e4a3279d3499a7a334c2a5b578f75ec00cdb9d86",
text: "ORCHESTRATOR MODE (binding): You are the brain/manager/strategist/evaluator, not the worker. Delegate workstreams to subagents / ch1tty cast+alchemist / orchestrator MCP / ChittyConnect rather than hand-coding serially. Spin plates, don't spin yourself. Persist taskboard + workstream state to durable backends (ChittyTasks Neon queue or Notion), never session-local only. For multi-step efforts that must survive a crash, register a remote /schedule routine that reclaims from the durable board. Use /reclaim for orphan tasks. Before doing anything yourself, ask which agent/system/durable store owns it.",
},
});
});

Expand Down Expand Up @@ -2118,7 +2128,7 @@
* endpoint is handled internally by OAuthProvider and never reaches
* our defaultHandler.
*/
function stripRedirectUriQueryParams(request) {

Check warning on line 2131 in src/index.js

View workflow job for this annotation

GitHub Actions / Lint (22)

'stripRedirectUriQueryParams' is defined but never used. Allowed unused vars must match /^_/u

Check warning on line 2131 in src/index.js

View workflow job for this annotation

GitHub Actions / Lint (20)

'stripRedirectUriQueryParams' is defined but never used. Allowed unused vars must match /^_/u
const url = new URL(request.url);
const rawRedirect = url.searchParams.get("redirect_uri");
if (!rawRedirect) return request;
Expand Down Expand Up @@ -2424,7 +2434,7 @@
// Scheduled handler for cron triggers
// - "0 * * * *" (hourly) → 1Password event sync to ChittyChronicle
// - every 5 min → Connection health checks
async scheduled(event, env, ctx) {

Check warning on line 2437 in src/index.js

View workflow job for this annotation

GitHub Actions / Lint (22)

'ctx' is defined but never used. Allowed unused args must match /^_/u

Check warning on line 2437 in src/index.js

View workflow job for this annotation

GitHub Actions / Lint (20)

'ctx' is defined but never used. Allowed unused args must match /^_/u
console.log(
`[Scheduled] Cron trigger: ${event.cron} at ${new Date().toISOString()}`,
);
Expand Down
Loading