@aitne/daemon 0.1.3 → 0.1.4
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/adapters/whatsapp-adapter.d.ts.map +1 -1
- package/dist/adapters/whatsapp-adapter.js +0 -1
- package/dist/adapters/whatsapp-adapter.js.map +1 -1
- package/dist/api/integration-route-gate.d.ts +15 -11
- package/dist/api/integration-route-gate.d.ts.map +1 -1
- package/dist/api/integration-route-gate.js +60 -23
- package/dist/api/integration-route-gate.js.map +1 -1
- package/dist/api/json-body.d.ts +22 -7
- package/dist/api/json-body.d.ts.map +1 -1
- package/dist/api/json-body.js +27 -8
- package/dist/api/json-body.js.map +1 -1
- package/dist/api/routes/agent.d.ts.map +1 -1
- package/dist/api/routes/agent.js +18 -0
- package/dist/api/routes/agent.js.map +1 -1
- package/dist/api/routes/backends.d.ts.map +1 -1
- package/dist/api/routes/backends.js +96 -1
- package/dist/api/routes/backends.js.map +1 -1
- package/dist/api/routes/books.js +1 -1
- package/dist/api/routes/books.js.map +1 -1
- package/dist/api/routes/context.d.ts.map +1 -1
- package/dist/api/routes/context.js +13 -1
- package/dist/api/routes/context.js.map +1 -1
- package/dist/api/routes/dashboard.d.ts.map +1 -1
- package/dist/api/routes/dashboard.js +75 -5
- package/dist/api/routes/dashboard.js.map +1 -1
- package/dist/api/routes/github.d.ts.map +1 -1
- package/dist/api/routes/github.js +38 -5
- package/dist/api/routes/github.js.map +1 -1
- package/dist/api/routes/integrations.d.ts +35 -6
- package/dist/api/routes/integrations.d.ts.map +1 -1
- package/dist/api/routes/integrations.js +191 -16
- package/dist/api/routes/integrations.js.map +1 -1
- package/dist/api/routes/mail.d.ts.map +1 -1
- package/dist/api/routes/mail.js +112 -46
- package/dist/api/routes/mail.js.map +1 -1
- package/dist/api/routes/observations.d.ts.map +1 -1
- package/dist/api/routes/observations.js +161 -8
- package/dist/api/routes/observations.js.map +1 -1
- package/dist/api/routes/setup-migrate.d.ts +9 -1
- package/dist/api/routes/setup-migrate.d.ts.map +1 -1
- package/dist/api/routes/setup-migrate.js +4 -2
- package/dist/api/routes/setup-migrate.js.map +1 -1
- package/dist/api/routes/skills.d.ts.map +1 -1
- package/dist/api/routes/skills.js +39 -1
- package/dist/api/routes/skills.js.map +1 -1
- package/dist/api/routes/voice.d.ts.map +1 -1
- package/dist/api/routes/voice.js +62 -4
- package/dist/api/routes/voice.js.map +1 -1
- package/dist/bootstrap/adapters.d.ts +109 -0
- package/dist/bootstrap/adapters.d.ts.map +1 -0
- package/dist/bootstrap/adapters.js +237 -0
- package/dist/bootstrap/adapters.js.map +1 -0
- package/dist/bootstrap/catchup.d.ts +23 -0
- package/dist/bootstrap/catchup.d.ts.map +1 -0
- package/dist/bootstrap/catchup.js +124 -0
- package/dist/bootstrap/catchup.js.map +1 -0
- package/dist/bootstrap/schedule-helpers.d.ts +18 -0
- package/dist/bootstrap/schedule-helpers.d.ts.map +1 -0
- package/dist/bootstrap/schedule-helpers.js +96 -0
- package/dist/bootstrap/schedule-helpers.js.map +1 -0
- package/dist/bootstrap/services.d.ts +60 -0
- package/dist/bootstrap/services.d.ts.map +1 -0
- package/dist/bootstrap/services.js +209 -0
- package/dist/bootstrap/services.js.map +1 -0
- package/dist/core/backends/backend-router.d.ts +23 -0
- package/dist/core/backends/backend-router.d.ts.map +1 -1
- package/dist/core/backends/backend-router.js +48 -3
- package/dist/core/backends/backend-router.js.map +1 -1
- package/dist/core/backends/claude-auth.d.ts +70 -0
- package/dist/core/backends/claude-auth.d.ts.map +1 -0
- package/dist/core/backends/claude-auth.js +198 -0
- package/dist/core/backends/claude-auth.js.map +1 -0
- package/dist/core/backends/claude-code-core.d.ts +47 -119
- package/dist/core/backends/claude-code-core.d.ts.map +1 -1
- package/dist/core/backends/claude-code-core.js +112 -1565
- package/dist/core/backends/claude-code-core.js.map +1 -1
- package/dist/core/backends/claude-delegated.d.ts +86 -0
- package/dist/core/backends/claude-delegated.d.ts.map +1 -0
- package/dist/core/backends/claude-delegated.js +801 -0
- package/dist/core/backends/claude-delegated.js.map +1 -0
- package/dist/core/backends/claude-errors.d.ts +39 -0
- package/dist/core/backends/claude-errors.d.ts.map +1 -0
- package/dist/core/backends/claude-errors.js +71 -0
- package/dist/core/backends/claude-errors.js.map +1 -0
- package/dist/core/backends/claude-probe.d.ts +103 -0
- package/dist/core/backends/claude-probe.d.ts.map +1 -0
- package/dist/core/backends/claude-probe.js +336 -0
- package/dist/core/backends/claude-probe.js.map +1 -0
- package/dist/core/backends/claude-tool-collection.d.ts +135 -0
- package/dist/core/backends/claude-tool-collection.d.ts.map +1 -0
- package/dist/core/backends/claude-tool-collection.js +831 -0
- package/dist/core/backends/claude-tool-collection.js.map +1 -0
- package/dist/core/backends/gemini-cli-core.d.ts +21 -0
- package/dist/core/backends/gemini-cli-core.d.ts.map +1 -1
- package/dist/core/backends/gemini-cli-core.js +84 -6
- package/dist/core/backends/gemini-cli-core.js.map +1 -1
- package/dist/core/backends/prompt-utils.d.ts +1 -0
- package/dist/core/backends/prompt-utils.d.ts.map +1 -1
- package/dist/core/backends/prompt-utils.js +60 -3
- package/dist/core/backends/prompt-utils.js.map +1 -1
- package/dist/core/context-builder.d.ts +36 -12
- package/dist/core/context-builder.d.ts.map +1 -1
- package/dist/core/context-builder.js +179 -89
- package/dist/core/context-builder.js.map +1 -1
- package/dist/core/dispatcher-date-utils.d.ts +49 -0
- package/dist/core/dispatcher-date-utils.d.ts.map +1 -0
- package/dist/core/dispatcher-date-utils.js +132 -0
- package/dist/core/dispatcher-date-utils.js.map +1 -0
- package/dist/core/dispatcher-error-handling.d.ts +159 -0
- package/dist/core/dispatcher-error-handling.d.ts.map +1 -0
- package/dist/core/dispatcher-error-handling.js +393 -0
- package/dist/core/dispatcher-error-handling.js.map +1 -0
- package/dist/core/dispatcher-hourly-check.d.ts +150 -0
- package/dist/core/dispatcher-hourly-check.d.ts.map +1 -0
- package/dist/core/dispatcher-hourly-check.js +665 -0
- package/dist/core/dispatcher-hourly-check.js.map +1 -0
- package/dist/core/dispatcher-message-handler.d.ts +170 -0
- package/dist/core/dispatcher-message-handler.d.ts.map +1 -0
- package/dist/core/dispatcher-message-handler.js +1054 -0
- package/dist/core/dispatcher-message-handler.js.map +1 -0
- package/dist/core/dispatcher-morning-routine.d.ts +169 -0
- package/dist/core/dispatcher-morning-routine.d.ts.map +1 -0
- package/dist/core/dispatcher-morning-routine.js +434 -0
- package/dist/core/dispatcher-morning-routine.js.map +1 -0
- package/dist/core/dispatcher-prompt.d.ts +107 -0
- package/dist/core/dispatcher-prompt.d.ts.map +1 -0
- package/dist/core/dispatcher-prompt.js +227 -0
- package/dist/core/dispatcher-prompt.js.map +1 -0
- package/dist/core/dispatcher-repository-helpers.d.ts +39 -0
- package/dist/core/dispatcher-repository-helpers.d.ts.map +1 -0
- package/dist/core/dispatcher-repository-helpers.js +86 -0
- package/dist/core/dispatcher-repository-helpers.js.map +1 -0
- package/dist/core/dispatcher-result-processor.d.ts +145 -0
- package/dist/core/dispatcher-result-processor.d.ts.map +1 -0
- package/dist/core/dispatcher-result-processor.js +414 -0
- package/dist/core/dispatcher-result-processor.js.map +1 -0
- package/dist/core/dispatcher-scheduled-tasks.d.ts +406 -0
- package/dist/core/dispatcher-scheduled-tasks.d.ts.map +1 -0
- package/dist/core/dispatcher-scheduled-tasks.js +998 -0
- package/dist/core/dispatcher-scheduled-tasks.js.map +1 -0
- package/dist/core/dispatcher-types.d.ts +296 -0
- package/dist/core/dispatcher-types.d.ts.map +1 -0
- package/dist/core/dispatcher-types.js +106 -0
- package/dist/core/dispatcher-types.js.map +1 -0
- package/dist/core/dispatcher.d.ts +86 -610
- package/dist/core/dispatcher.d.ts.map +1 -1
- package/dist/core/dispatcher.js +293 -3542
- package/dist/core/dispatcher.js.map +1 -1
- package/dist/core/integration-health.d.ts +18 -10
- package/dist/core/integration-health.d.ts.map +1 -1
- package/dist/core/integration-health.js +31 -1
- package/dist/core/integration-health.js.map +1 -1
- package/dist/core/integration-lifecycle.d.ts +65 -0
- package/dist/core/integration-lifecycle.d.ts.map +1 -1
- package/dist/core/integration-lifecycle.js +167 -16
- package/dist/core/integration-lifecycle.js.map +1 -1
- package/dist/core/integration-main-backend.d.ts +40 -0
- package/dist/core/integration-main-backend.d.ts.map +1 -1
- package/dist/core/integration-main-backend.js +89 -2
- package/dist/core/integration-main-backend.js.map +1 -1
- package/dist/core/management-md.d.ts +51 -17
- package/dist/core/management-md.d.ts.map +1 -1
- package/dist/core/management-md.js +233 -56
- package/dist/core/management-md.js.map +1 -1
- package/dist/core/output-language-policy.d.ts +74 -0
- package/dist/core/output-language-policy.d.ts.map +1 -0
- package/dist/core/output-language-policy.js +194 -0
- package/dist/core/output-language-policy.js.map +1 -0
- package/dist/core/prompts.d.ts +1 -0
- package/dist/core/prompts.d.ts.map +1 -1
- package/dist/core/prompts.js +121 -3
- package/dist/core/prompts.js.map +1 -1
- package/dist/core/repository-management-docs.d.ts +24 -0
- package/dist/core/repository-management-docs.d.ts.map +1 -1
- package/dist/core/repository-management-docs.js +210 -26
- package/dist/core/repository-management-docs.js.map +1 -1
- package/dist/core/routine-acquisition-plan.d.ts +131 -0
- package/dist/core/routine-acquisition-plan.d.ts.map +1 -0
- package/dist/core/routine-acquisition-plan.js +268 -0
- package/dist/core/routine-acquisition-plan.js.map +1 -0
- package/dist/core/routine-fetch-window-runner.d.ts +201 -0
- package/dist/core/routine-fetch-window-runner.d.ts.map +1 -0
- package/dist/core/routine-fetch-window-runner.js +661 -0
- package/dist/core/routine-fetch-window-runner.js.map +1 -0
- package/dist/core/routine-windows.d.ts +156 -0
- package/dist/core/routine-windows.d.ts.map +1 -0
- package/dist/core/routine-windows.js +330 -0
- package/dist/core/routine-windows.js.map +1 -0
- package/dist/core/skills-compiler.d.ts +11 -0
- package/dist/core/skills-compiler.d.ts.map +1 -1
- package/dist/core/skills-compiler.js +102 -13
- package/dist/core/skills-compiler.js.map +1 -1
- package/dist/core/skills-manifest.d.ts.map +1 -1
- package/dist/core/skills-manifest.js +26 -0
- package/dist/core/skills-manifest.js.map +1 -1
- package/dist/core/system-reset.d.ts.map +1 -1
- package/dist/core/system-reset.js +25 -2
- package/dist/core/system-reset.js.map +1 -1
- package/dist/db/observations.d.ts +45 -2
- package/dist/db/observations.d.ts.map +1 -1
- package/dist/db/observations.js +112 -14
- package/dist/db/observations.js.map +1 -1
- package/dist/db/schema.d.ts.map +1 -1
- package/dist/db/schema.js +13 -25
- package/dist/db/schema.js.map +1 -1
- package/dist/index.js +83 -610
- package/dist/index.js.map +1 -1
- package/dist/observers/delegated-sync-worker.d.ts +45 -2
- package/dist/observers/delegated-sync-worker.d.ts.map +1 -1
- package/dist/observers/delegated-sync-worker.js +71 -21
- package/dist/observers/delegated-sync-worker.js.map +1 -1
- package/dist/observers/mail-poller.d.ts +12 -5
- package/dist/observers/mail-poller.d.ts.map +1 -1
- package/dist/observers/mail-poller.js +36 -14
- package/dist/observers/mail-poller.js.map +1 -1
- package/dist/observers/manager.d.ts +37 -5
- package/dist/observers/manager.d.ts.map +1 -1
- package/dist/observers/manager.js +28 -10
- package/dist/observers/manager.js.map +1 -1
- package/dist/services/delegated-backend-invoker.d.ts +1 -51
- package/dist/services/delegated-backend-invoker.d.ts.map +1 -1
- package/dist/services/delegated-backend-invoker.js +41 -480
- package/dist/services/delegated-backend-invoker.js.map +1 -1
- package/dist/services/delegated-invoker-audit.d.ts +94 -0
- package/dist/services/delegated-invoker-audit.d.ts.map +1 -0
- package/dist/services/delegated-invoker-audit.js +238 -0
- package/dist/services/delegated-invoker-audit.js.map +1 -0
- package/dist/services/delegated-invoker-cache-hits.d.ts +34 -0
- package/dist/services/delegated-invoker-cache-hits.d.ts.map +1 -0
- package/dist/services/delegated-invoker-cache-hits.js +104 -0
- package/dist/services/delegated-invoker-cache-hits.js.map +1 -0
- package/dist/services/delegated-invoker-janitors.d.ts +28 -0
- package/dist/services/delegated-invoker-janitors.d.ts.map +1 -0
- package/dist/services/delegated-invoker-janitors.js +104 -0
- package/dist/services/delegated-invoker-janitors.js.map +1 -0
- package/dist/services/delegated-invoker-utils.d.ts +42 -0
- package/dist/services/delegated-invoker-utils.d.ts.map +1 -0
- package/dist/services/delegated-invoker-utils.js +100 -0
- package/dist/services/delegated-invoker-utils.js.map +1 -0
- package/dist/services/delegated-task-runtime.d.ts +1 -1
- package/dist/services/delegated-task-runtime.js +1 -1
- package/dist/services/integrations/snapshot-partitions.d.ts +5 -0
- package/dist/services/integrations/snapshot-partitions.d.ts.map +1 -1
- package/dist/services/integrations/snapshot-partitions.js +12 -0
- package/dist/services/integrations/snapshot-partitions.js.map +1 -1
- package/dist/services/voice/transcriber-impl.d.ts.map +1 -1
- package/dist/services/voice/transcriber-impl.js +7 -8
- package/dist/services/voice/transcriber-impl.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routine-fetch-window-runner.js","sourceRoot":"","sources":["../../src/core/routine-fetch-window-runner.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AAYH,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,kBAAkB,EAClB,wBAAwB,EACxB,cAAc,GACf,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAQ/D,OAAO,EACL,eAAe,EACf,iBAAiB,GAElB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,oBAAoB,EACpB,0BAA0B,GAE3B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,MAAM,MAAM,GAAG,YAAY,CAAC,6BAA6B,CAAC,CAAC;AAsD3D,6EAA6E;AAE7E,0EAA0E;AAC1E,MAAM,wBAAwB,GAAe,sBAAsB,CAAC;AACpE,MAAM,uBAAuB,GAAG,sBAAsB,CAAC;AAEvD;;;;;;;;;;;;;;;;;G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gBAAE,SAAS;YAClD,IAAI,CAAC,IAAI,CAAC;gBACR,WAAW,EAAE,cAAc;gBAC3B,SAAS,EAAE,OAAO,CAAC,EAAE;gBACrB,KAAK,EAAE,OAAO,CAAC,KAAK;aACrB,CAAC,CAAC;QACL,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAED,6EAA6E;AAE7E;;;;;GAKG;AACH,SAAS,qBAAqB,CAAC,IAAa;IAC1C,IAAI,OAAO,IAAI,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IAC3C,OAAO,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC"}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Routine data-acquisition window catalog.
|
|
3
|
+
*
|
|
4
|
+
* ROUTINE_DATA_ACQUISITION_DESIGN.md §6.5 — declarative map keyed by
|
|
5
|
+
* `(routine, window-symbol, integration, mode)` that the pre-pass
|
|
6
|
+
* fetcher (`routine.fetch_window`) and its assembly helper (§6.4)
|
|
7
|
+
* consult to build the `<acquisition-plan>` block.
|
|
8
|
+
*
|
|
9
|
+
* Phase 1 ships the catalog only. The dispatcher hooks that consume it
|
|
10
|
+
* land in Phase 4; the partials that use the `WINDOW_QUERIES` strings
|
|
11
|
+
* land in Phase 2.
|
|
12
|
+
*
|
|
13
|
+
* Design invariants preserved here:
|
|
14
|
+
*
|
|
15
|
+
* - **No model IDs.** Routine windows describe *what to fetch*; tier
|
|
16
|
+
* binding for `routine.fetch_window` lives in
|
|
17
|
+
* `process_backend_config` (db/schema.ts) and is resolved by the
|
|
18
|
+
* BackendRouter at session-spawn time.
|
|
19
|
+
* - **No daemon-side tool-name discovery.** `WINDOW_QUERIES[*][*][
|
|
20
|
+
* delegated-same | native]` carries the *query expression* the
|
|
21
|
+
* partial substitutes into its prose, not a tool name. The user's
|
|
22
|
+
* skills + bound tools resolve the call path (P7).
|
|
23
|
+
* - **Calendar / context-block dedup.** Routines whose calendar window
|
|
24
|
+
* is already covered by `ContextBuilder.buildCalendarBlock`
|
|
25
|
+
* (`<calendar_events_*>`) MUST NOT also list that window here,
|
|
26
|
+
* otherwise the agent reads the same events twice (R7). The matrix
|
|
27
|
+
* below curates `cal_next_24h` etc. only for routines whose
|
|
28
|
+
* ContextBuilder coverage does not match the desired window.
|
|
29
|
+
*/
|
|
30
|
+
import type { IntegrationKey, IntegrationMode } from "@aitne/shared";
|
|
31
|
+
/**
|
|
32
|
+
* The shape of fetch a row produces. `mail` and `calendar` rows may
|
|
33
|
+
* fan out per account; `notion` rows are workspace-scoped.
|
|
34
|
+
*/
|
|
35
|
+
export type WindowKind = "mail" | "calendar" | "notion";
|
|
36
|
+
/**
|
|
37
|
+
* Window symbols. Each routine declares the rows it needs from this
|
|
38
|
+
* vocabulary; the partial body resolves the symbol → concrete query
|
|
39
|
+
* via `WINDOW_QUERIES`. Names are stable identifiers — renaming one
|
|
40
|
+
* cascades into every partial and every prompt-assembly call site, so
|
|
41
|
+
* treat additions as additive.
|
|
42
|
+
*/
|
|
43
|
+
export declare const WINDOW_SYMBOLS: readonly ["inbox_today", "unread_last_hour", "today_outcomes", "cal_next_24h_drift", "cal_past_7d", "imminent_2h", "updated_24h", "updated_1h"];
|
|
44
|
+
export type WindowSymbol = (typeof WINDOW_SYMBOLS)[number];
|
|
45
|
+
/**
|
|
46
|
+
* Routine ProcessKeys that the pre-pass fetcher can be dispatched for.
|
|
47
|
+
* Kept narrow on purpose: only routines that need external data
|
|
48
|
+
* acquisition appear here.
|
|
49
|
+
*
|
|
50
|
+
* `routine.morning_routine_initial` shares the morning plan because its
|
|
51
|
+
* deep first-run prose still wants the same external context; the
|
|
52
|
+
* dispatcher reuses the `morning_routine` plan via the alias below
|
|
53
|
+
* rather than introducing a duplicate entry.
|
|
54
|
+
*/
|
|
55
|
+
export declare const ROUTINE_WINDOW_KEYS: readonly ["routine.morning_routine", "routine.morning_routine_initial", "routine.today_refresh", "routine.hourly_check", "routine.evening_review", "routine.weekly_review", "routine.monthly_review"];
|
|
56
|
+
export type RoutineWindowKey = (typeof ROUTINE_WINDOW_KEYS)[number];
|
|
57
|
+
export interface RoutineWindowSpec {
|
|
58
|
+
/** Fetch shape — drives partial selection (mail-acquire vs calendar-acquire vs notion-acquire). */
|
|
59
|
+
kind: WindowKind;
|
|
60
|
+
/** Window symbol — resolved against `WINDOW_QUERIES` per (integration, mode). */
|
|
61
|
+
window: WindowSymbol;
|
|
62
|
+
/**
|
|
63
|
+
* When `true`, the dispatcher fans the row out per active account for
|
|
64
|
+
* the integration (mail today; future: per-calendar). When `false`,
|
|
65
|
+
* one row per integration regardless of account count.
|
|
66
|
+
*/
|
|
67
|
+
perAccount: boolean;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Per-routine acquisition plan. The dispatcher resolves each row
|
|
71
|
+
* against the current integration state and emits one `<fetch>` element
|
|
72
|
+
* per applicable (mode, account) combination.
|
|
73
|
+
*
|
|
74
|
+
* Curation notes per row:
|
|
75
|
+
*
|
|
76
|
+
* - `morning_routine` calendar omission: ContextBuilder injects
|
|
77
|
+
* `<calendar_events_7d>` for this routine (covers the standard
|
|
78
|
+
* next-week view). The pre-pass does NOT duplicate; it acquires the
|
|
79
|
+
* "next 24h" focus window only when ContextBuilder's 7-day block
|
|
80
|
+
* does not give the routine enough resolution for the day-plan
|
|
81
|
+
* synthesis — today the 7d block IS the resolution, so calendar is
|
|
82
|
+
* omitted from the morning pre-pass.
|
|
83
|
+
* - `today_refresh`: full 24h calendar fetch in every mode. The
|
|
84
|
+
* window name retains the historical `cal_next_24h_drift` slug for
|
|
85
|
+
* backwards-compatibility with operator overrides, but B2 dropped
|
|
86
|
+
* the server-side `updatedMin` / `lastModifiedDateTime ge` filter:
|
|
87
|
+
* "drift" semantics now lives entirely at the observation-row
|
|
88
|
+
* layer (server `contentHash` over `(source, payload)` returns 409
|
|
89
|
+
* on unchanged events, writes a fresh row only when the payload
|
|
90
|
+
* differs). The dispatcher's `applySinceFilter` in
|
|
91
|
+
* `db/observations.ts` ensures the main session reads back the
|
|
92
|
+
* merged pending set uniformly.
|
|
93
|
+
* - `hourly_check`: small, frequent. `unread_last_hour` typically
|
|
94
|
+
* yields ≤1 mail item; `imminent_2h` ≤1 calendar item. Notion
|
|
95
|
+
* `updated_1h` is similarly bounded.
|
|
96
|
+
* - `evening_review`: ContextBuilder covers `<calendar_events_3d>`,
|
|
97
|
+
* so no calendar row here. Mail `today_outcomes` is the "what did I
|
|
98
|
+
* send / reply today" retrospective signal.
|
|
99
|
+
* - `weekly_review`: ContextBuilder covers `<calendar_events_7d>`
|
|
100
|
+
* forward. The pre-pass adds the retrospective `cal_past_7d` so the
|
|
101
|
+
* weekly note has both directions.
|
|
102
|
+
* - `monthly_review`: ContextBuilder covers `<calendar_events_30d>`;
|
|
103
|
+
* monthly signals already flow through daily journals. The
|
|
104
|
+
* monthly review is summative — no pre-pass rows.
|
|
105
|
+
*/
|
|
106
|
+
export declare const ROUTINE_WINDOWS: Readonly<Record<RoutineWindowKey, readonly RoutineWindowSpec[]>>;
|
|
107
|
+
/**
|
|
108
|
+
* Per-mode query expressions. `direct` carries the REST query string;
|
|
109
|
+
* `delegated-same` / `delegated-cross` / `native` carry MCP-shape
|
|
110
|
+
* arguments expressed in the partial's prose substitution form.
|
|
111
|
+
*
|
|
112
|
+
* Substitution tokens (replaced by `routine-acquisition-plan.ts`'s
|
|
113
|
+
* `buildAcquisitionTimestamps` + `substituteAcquisitionTokens` at fetch
|
|
114
|
+
* time):
|
|
115
|
+
*
|
|
116
|
+
* ISO 8601 datetimes (UTC, used by MCP / Graph queries and as REST
|
|
117
|
+
* fallbacks where the route accepts a precise instant):
|
|
118
|
+
* - `{day_start_iso}` — agent-day start in UTC ISO
|
|
119
|
+
* - `{day_end_iso}` — agent-day end (start + 24h)
|
|
120
|
+
* - `{day_plus_24h}` — alias for `{day_end_iso}`
|
|
121
|
+
* - `{day_plus_48h}` — `{day_start_iso}` + 48h
|
|
122
|
+
* - `{day_plus_2h}` — `{now_iso}` + 2h
|
|
123
|
+
* - `{hour_start_iso}` — current hour boundary
|
|
124
|
+
* - `{now_iso}` — current instant
|
|
125
|
+
* - `{week_start_iso}` — 7 days before `{day_start_iso}`
|
|
126
|
+
* - `{week_end_iso}` — 7 days after `{day_start_iso}`
|
|
127
|
+
* - `{month_end_iso}` — 30 days after `{day_start_iso}`
|
|
128
|
+
*
|
|
129
|
+
* Date-only (`YYYY-MM-DD`) — used by `/api/calendar/events` and
|
|
130
|
+
* `/api/calendar/outlook/events`, which take `date=` + `days=`:
|
|
131
|
+
* - `{day_start_date}` — agent-day start as `YYYY-MM-DD`
|
|
132
|
+
* - `{week_start_date}` — 7 days before agent-day start
|
|
133
|
+
* - `{now_date}` — today's calendar date
|
|
134
|
+
*
|
|
135
|
+
* Missing-cell semantics: if `WINDOW_QUERIES[symbol]?.[integration]?
|
|
136
|
+
* .[mode]` returns `undefined`, the acquisition-plan assembly helper
|
|
137
|
+
* MUST omit the row entirely — that combination is not supported and
|
|
138
|
+
* should never reach the partial (silent skip is fine because the
|
|
139
|
+
* matrix below is curated against `ROUTINE_WINDOWS`; the omission is
|
|
140
|
+
* not a runtime error).
|
|
141
|
+
*/
|
|
142
|
+
export declare const WINDOW_QUERIES: Readonly<Record<WindowSymbol, Partial<Record<IntegrationKey, Partial<Record<IntegrationMode, string>>>>>>;
|
|
143
|
+
/**
|
|
144
|
+
* Resolve `WINDOW_QUERIES[symbol]?.[integration]?.[mode]`. Returns
|
|
145
|
+
* `undefined` when the cell is unmapped — callers MUST treat that as
|
|
146
|
+
* "skip this row" rather than emitting an empty query string.
|
|
147
|
+
*/
|
|
148
|
+
export declare function lookupWindowQuery(symbol: WindowSymbol, integration: IntegrationKey, mode: IntegrationMode): string | undefined;
|
|
149
|
+
/**
|
|
150
|
+
* True when the routine has any rows that the pre-pass needs to fetch.
|
|
151
|
+
* The dispatcher skips spawning a pre-pass session when this returns
|
|
152
|
+
* false — saves a cold-start for routines whose data needs are already
|
|
153
|
+
* covered by ContextBuilder blocks (today: `monthly_review`).
|
|
154
|
+
*/
|
|
155
|
+
export declare function routineHasWindows(key: RoutineWindowKey): boolean;
|
|
156
|
+
//# sourceMappingURL=routine-windows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routine-windows.d.ts","sourceRoot":"","sources":["../../src/core/routine-windows.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAIrE;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,CAAC;AAExD;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,iJAkBjB,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAI3D;;;;;;;;;GASG;AACH,eAAO,MAAM,mBAAmB,uMAQtB,CAAC;AACX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpE,MAAM,WAAW,iBAAiB;IAChC,mGAAmG;IACnG,IAAI,EAAE,UAAU,CAAC;IACjB,iFAAiF;IACjF,MAAM,EAAE,YAAY,CAAC;IACrB;;;;OAIG;IACH,UAAU,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,eAAO,MAAM,eAAe,EAAE,QAAQ,CACpC,MAAM,CAAC,gBAAgB,EAAE,SAAS,iBAAiB,EAAE,CAAC,CA2BvD,CAAC;AAIF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,cAAc,EAAE,QAAQ,CACnC,MAAM,CACJ,YAAY,EACZ,OAAO,CACL,MAAM,CAAC,cAAc,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,CAAC,CACjE,CACF,CAmJF,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,YAAY,EACpB,WAAW,EAAE,cAAc,EAC3B,IAAI,EAAE,eAAe,GACpB,MAAM,GAAG,SAAS,CAEpB;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,gBAAgB,GAAG,OAAO,CAEhE"}
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Routine data-acquisition window catalog.
|
|
3
|
+
*
|
|
4
|
+
* ROUTINE_DATA_ACQUISITION_DESIGN.md §6.5 — declarative map keyed by
|
|
5
|
+
* `(routine, window-symbol, integration, mode)` that the pre-pass
|
|
6
|
+
* fetcher (`routine.fetch_window`) and its assembly helper (§6.4)
|
|
7
|
+
* consult to build the `<acquisition-plan>` block.
|
|
8
|
+
*
|
|
9
|
+
* Phase 1 ships the catalog only. The dispatcher hooks that consume it
|
|
10
|
+
* land in Phase 4; the partials that use the `WINDOW_QUERIES` strings
|
|
11
|
+
* land in Phase 2.
|
|
12
|
+
*
|
|
13
|
+
* Design invariants preserved here:
|
|
14
|
+
*
|
|
15
|
+
* - **No model IDs.** Routine windows describe *what to fetch*; tier
|
|
16
|
+
* binding for `routine.fetch_window` lives in
|
|
17
|
+
* `process_backend_config` (db/schema.ts) and is resolved by the
|
|
18
|
+
* BackendRouter at session-spawn time.
|
|
19
|
+
* - **No daemon-side tool-name discovery.** `WINDOW_QUERIES[*][*][
|
|
20
|
+
* delegated-same | native]` carries the *query expression* the
|
|
21
|
+
* partial substitutes into its prose, not a tool name. The user's
|
|
22
|
+
* skills + bound tools resolve the call path (P7).
|
|
23
|
+
* - **Calendar / context-block dedup.** Routines whose calendar window
|
|
24
|
+
* is already covered by `ContextBuilder.buildCalendarBlock`
|
|
25
|
+
* (`<calendar_events_*>`) MUST NOT also list that window here,
|
|
26
|
+
* otherwise the agent reads the same events twice (R7). The matrix
|
|
27
|
+
* below curates `cal_next_24h` etc. only for routines whose
|
|
28
|
+
* ContextBuilder coverage does not match the desired window.
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* Window symbols. Each routine declares the rows it needs from this
|
|
32
|
+
* vocabulary; the partial body resolves the symbol → concrete query
|
|
33
|
+
* via `WINDOW_QUERIES`. Names are stable identifiers — renaming one
|
|
34
|
+
* cascades into every partial and every prompt-assembly call site, so
|
|
35
|
+
* treat additions as additive.
|
|
36
|
+
*/
|
|
37
|
+
export const WINDOW_SYMBOLS = [
|
|
38
|
+
// Mail
|
|
39
|
+
"inbox_today",
|
|
40
|
+
"unread_last_hour",
|
|
41
|
+
"today_outcomes",
|
|
42
|
+
// Calendar — only symbols a routine actually consumes. The §6.5
|
|
43
|
+
// example listed cal_next_24h / cal_next_7d / cal_next_30d /
|
|
44
|
+
// cal_tomorrow too, but ContextBuilder's multi-provider
|
|
45
|
+
// `<calendar_events_*>` block (§6.6) covers those windows, so
|
|
46
|
+
// duplicating them in the catalog would double-fetch (R7). When a
|
|
47
|
+
// routine genuinely needs one of those, add the symbol back along
|
|
48
|
+
// with the matching `ROUTINE_WINDOWS` row.
|
|
49
|
+
"cal_next_24h_drift",
|
|
50
|
+
"cal_past_7d",
|
|
51
|
+
"imminent_2h",
|
|
52
|
+
// Notion
|
|
53
|
+
"updated_24h",
|
|
54
|
+
"updated_1h",
|
|
55
|
+
];
|
|
56
|
+
// ── Routine bindings ───────────────────────────────────────────────────────
|
|
57
|
+
/**
|
|
58
|
+
* Routine ProcessKeys that the pre-pass fetcher can be dispatched for.
|
|
59
|
+
* Kept narrow on purpose: only routines that need external data
|
|
60
|
+
* acquisition appear here.
|
|
61
|
+
*
|
|
62
|
+
* `routine.morning_routine_initial` shares the morning plan because its
|
|
63
|
+
* deep first-run prose still wants the same external context; the
|
|
64
|
+
* dispatcher reuses the `morning_routine` plan via the alias below
|
|
65
|
+
* rather than introducing a duplicate entry.
|
|
66
|
+
*/
|
|
67
|
+
export const ROUTINE_WINDOW_KEYS = [
|
|
68
|
+
"routine.morning_routine",
|
|
69
|
+
"routine.morning_routine_initial",
|
|
70
|
+
"routine.today_refresh",
|
|
71
|
+
"routine.hourly_check",
|
|
72
|
+
"routine.evening_review",
|
|
73
|
+
"routine.weekly_review",
|
|
74
|
+
"routine.monthly_review",
|
|
75
|
+
];
|
|
76
|
+
/**
|
|
77
|
+
* Per-routine acquisition plan. The dispatcher resolves each row
|
|
78
|
+
* against the current integration state and emits one `<fetch>` element
|
|
79
|
+
* per applicable (mode, account) combination.
|
|
80
|
+
*
|
|
81
|
+
* Curation notes per row:
|
|
82
|
+
*
|
|
83
|
+
* - `morning_routine` calendar omission: ContextBuilder injects
|
|
84
|
+
* `<calendar_events_7d>` for this routine (covers the standard
|
|
85
|
+
* next-week view). The pre-pass does NOT duplicate; it acquires the
|
|
86
|
+
* "next 24h" focus window only when ContextBuilder's 7-day block
|
|
87
|
+
* does not give the routine enough resolution for the day-plan
|
|
88
|
+
* synthesis — today the 7d block IS the resolution, so calendar is
|
|
89
|
+
* omitted from the morning pre-pass.
|
|
90
|
+
* - `today_refresh`: full 24h calendar fetch in every mode. The
|
|
91
|
+
* window name retains the historical `cal_next_24h_drift` slug for
|
|
92
|
+
* backwards-compatibility with operator overrides, but B2 dropped
|
|
93
|
+
* the server-side `updatedMin` / `lastModifiedDateTime ge` filter:
|
|
94
|
+
* "drift" semantics now lives entirely at the observation-row
|
|
95
|
+
* layer (server `contentHash` over `(source, payload)` returns 409
|
|
96
|
+
* on unchanged events, writes a fresh row only when the payload
|
|
97
|
+
* differs). The dispatcher's `applySinceFilter` in
|
|
98
|
+
* `db/observations.ts` ensures the main session reads back the
|
|
99
|
+
* merged pending set uniformly.
|
|
100
|
+
* - `hourly_check`: small, frequent. `unread_last_hour` typically
|
|
101
|
+
* yields ≤1 mail item; `imminent_2h` ≤1 calendar item. Notion
|
|
102
|
+
* `updated_1h` is similarly bounded.
|
|
103
|
+
* - `evening_review`: ContextBuilder covers `<calendar_events_3d>`,
|
|
104
|
+
* so no calendar row here. Mail `today_outcomes` is the "what did I
|
|
105
|
+
* send / reply today" retrospective signal.
|
|
106
|
+
* - `weekly_review`: ContextBuilder covers `<calendar_events_7d>`
|
|
107
|
+
* forward. The pre-pass adds the retrospective `cal_past_7d` so the
|
|
108
|
+
* weekly note has both directions.
|
|
109
|
+
* - `monthly_review`: ContextBuilder covers `<calendar_events_30d>`;
|
|
110
|
+
* monthly signals already flow through daily journals. The
|
|
111
|
+
* monthly review is summative — no pre-pass rows.
|
|
112
|
+
*/
|
|
113
|
+
export const ROUTINE_WINDOWS = {
|
|
114
|
+
"routine.morning_routine": [
|
|
115
|
+
{ kind: "mail", window: "inbox_today", perAccount: true },
|
|
116
|
+
{ kind: "notion", window: "updated_24h", perAccount: false },
|
|
117
|
+
],
|
|
118
|
+
// morning_routine_initial reuses the same plan; the deep first-run
|
|
119
|
+
// prose lives in the routine task-flow body, not the acquisition layer.
|
|
120
|
+
"routine.morning_routine_initial": [
|
|
121
|
+
{ kind: "mail", window: "inbox_today", perAccount: true },
|
|
122
|
+
{ kind: "notion", window: "updated_24h", perAccount: false },
|
|
123
|
+
],
|
|
124
|
+
"routine.today_refresh": [
|
|
125
|
+
{ kind: "calendar", window: "cal_next_24h_drift", perAccount: false },
|
|
126
|
+
],
|
|
127
|
+
"routine.hourly_check": [
|
|
128
|
+
{ kind: "mail", window: "unread_last_hour", perAccount: true },
|
|
129
|
+
{ kind: "calendar", window: "imminent_2h", perAccount: false },
|
|
130
|
+
{ kind: "notion", window: "updated_1h", perAccount: false },
|
|
131
|
+
],
|
|
132
|
+
"routine.evening_review": [
|
|
133
|
+
{ kind: "mail", window: "today_outcomes", perAccount: true },
|
|
134
|
+
],
|
|
135
|
+
"routine.weekly_review": [
|
|
136
|
+
{ kind: "calendar", window: "cal_past_7d", perAccount: false },
|
|
137
|
+
],
|
|
138
|
+
"routine.monthly_review": [],
|
|
139
|
+
};
|
|
140
|
+
// ── Per-(symbol, integration, mode) query expressions ─────────────────────
|
|
141
|
+
/**
|
|
142
|
+
* Per-mode query expressions. `direct` carries the REST query string;
|
|
143
|
+
* `delegated-same` / `delegated-cross` / `native` carry MCP-shape
|
|
144
|
+
* arguments expressed in the partial's prose substitution form.
|
|
145
|
+
*
|
|
146
|
+
* Substitution tokens (replaced by `routine-acquisition-plan.ts`'s
|
|
147
|
+
* `buildAcquisitionTimestamps` + `substituteAcquisitionTokens` at fetch
|
|
148
|
+
* time):
|
|
149
|
+
*
|
|
150
|
+
* ISO 8601 datetimes (UTC, used by MCP / Graph queries and as REST
|
|
151
|
+
* fallbacks where the route accepts a precise instant):
|
|
152
|
+
* - `{day_start_iso}` — agent-day start in UTC ISO
|
|
153
|
+
* - `{day_end_iso}` — agent-day end (start + 24h)
|
|
154
|
+
* - `{day_plus_24h}` — alias for `{day_end_iso}`
|
|
155
|
+
* - `{day_plus_48h}` — `{day_start_iso}` + 48h
|
|
156
|
+
* - `{day_plus_2h}` — `{now_iso}` + 2h
|
|
157
|
+
* - `{hour_start_iso}` — current hour boundary
|
|
158
|
+
* - `{now_iso}` — current instant
|
|
159
|
+
* - `{week_start_iso}` — 7 days before `{day_start_iso}`
|
|
160
|
+
* - `{week_end_iso}` — 7 days after `{day_start_iso}`
|
|
161
|
+
* - `{month_end_iso}` — 30 days after `{day_start_iso}`
|
|
162
|
+
*
|
|
163
|
+
* Date-only (`YYYY-MM-DD`) — used by `/api/calendar/events` and
|
|
164
|
+
* `/api/calendar/outlook/events`, which take `date=` + `days=`:
|
|
165
|
+
* - `{day_start_date}` — agent-day start as `YYYY-MM-DD`
|
|
166
|
+
* - `{week_start_date}` — 7 days before agent-day start
|
|
167
|
+
* - `{now_date}` — today's calendar date
|
|
168
|
+
*
|
|
169
|
+
* Missing-cell semantics: if `WINDOW_QUERIES[symbol]?.[integration]?
|
|
170
|
+
* .[mode]` returns `undefined`, the acquisition-plan assembly helper
|
|
171
|
+
* MUST omit the row entirely — that combination is not supported and
|
|
172
|
+
* should never reach the partial (silent skip is fine because the
|
|
173
|
+
* matrix below is curated against `ROUTINE_WINDOWS`; the omission is
|
|
174
|
+
* not a runtime error).
|
|
175
|
+
*/
|
|
176
|
+
export const WINDOW_QUERIES = {
|
|
177
|
+
// ── Mail ────────────────────────────────────────────────────────────────
|
|
178
|
+
// Direct-mode query strings target the unified mail route
|
|
179
|
+
// `GET /api/mail/:accountId/messages` which accepts `since`, `limit`,
|
|
180
|
+
// `unreadOnly`, `folder`, `q`. The previous draft of this catalog used
|
|
181
|
+
// `?days=1` / `?unread=true` / `?sent_since=...` — none of those
|
|
182
|
+
// parameters exist on the route, so the daemon silently fell back to
|
|
183
|
+
// its default (today, no filter) and the routine read the wrong
|
|
184
|
+
// window. The shapes below match the route handler's parsed query
|
|
185
|
+
// params verbatim.
|
|
186
|
+
inbox_today: {
|
|
187
|
+
gmail: {
|
|
188
|
+
direct: "?since={day_start_iso}&limit=20",
|
|
189
|
+
delegated: 'q="newer_than:1d" maxResults=20',
|
|
190
|
+
native: 'q="newer_than:1d" maxResults=20',
|
|
191
|
+
},
|
|
192
|
+
outlook_mail: {
|
|
193
|
+
direct: "?since={day_start_iso}&limit=20",
|
|
194
|
+
// userManagedConnector — delegated-same / delegated-cross / native
|
|
195
|
+
// converge on the same in-session surface (no daemon proxy exists).
|
|
196
|
+
// The partial encodes the convergence in prose; the query string
|
|
197
|
+
// below describes the intent in Graph-filter form so the user's
|
|
198
|
+
// skill can translate it.
|
|
199
|
+
delegated: "filter=receivedDateTime ge {day_start_iso}",
|
|
200
|
+
native: "filter=receivedDateTime ge {day_start_iso}",
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
unread_last_hour: {
|
|
204
|
+
gmail: {
|
|
205
|
+
direct: "?since={hour_start_iso}&unreadOnly=true&limit=10",
|
|
206
|
+
delegated: 'q="is:unread newer_than:1h" maxResults=10',
|
|
207
|
+
native: 'q="is:unread newer_than:1h" maxResults=10',
|
|
208
|
+
},
|
|
209
|
+
outlook_mail: {
|
|
210
|
+
direct: "?since={hour_start_iso}&unreadOnly=true&limit=10",
|
|
211
|
+
delegated: "filter=isRead eq false and receivedDateTime ge {hour_start_iso}",
|
|
212
|
+
native: "filter=isRead eq false and receivedDateTime ge {hour_start_iso}",
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
today_outcomes: {
|
|
216
|
+
gmail: {
|
|
217
|
+
direct: "?folder=sent&since={day_start_iso}&limit=30",
|
|
218
|
+
delegated: 'q="in:sent newer_than:1d" maxResults=30',
|
|
219
|
+
native: 'q="in:sent newer_than:1d" maxResults=30',
|
|
220
|
+
},
|
|
221
|
+
outlook_mail: {
|
|
222
|
+
direct: "?folder=sent&since={day_start_iso}&limit=30",
|
|
223
|
+
delegated: "filter=sentDateTime ge {day_start_iso}&folder=sentitems",
|
|
224
|
+
native: "filter=sentDateTime ge {day_start_iso}&folder=sentitems",
|
|
225
|
+
},
|
|
226
|
+
},
|
|
227
|
+
// ── Calendar ────────────────────────────────────────────────────────────
|
|
228
|
+
// Direct-mode query strings target `GET /api/calendar/events`
|
|
229
|
+
// (Google) and `GET /api/calendar/outlook/events` (Outlook). Both
|
|
230
|
+
// routes accept `date=YYYY-MM-DD` + `days=N` (≤90); they do NOT
|
|
231
|
+
// accept `timeMin` / `timeMax` — those tokens were silently dropped
|
|
232
|
+
// by the route handler in the previous catalog draft, defaulting
|
|
233
|
+
// every window to "today + 1 day". The `{*_date}` tokens below are
|
|
234
|
+
// calendar-date-only variants of the corresponding ISO tokens; the
|
|
235
|
+
// assembly helper substitutes both. Delegated/native cells retain
|
|
236
|
+
// the MCP-shape timestamps because session connectors typically take
|
|
237
|
+
// ISO ranges.
|
|
238
|
+
//
|
|
239
|
+
// `cal_next_24h_drift` is intentionally NOT a server-side delta
|
|
240
|
+
// filter. ROUTINE_DATA_ACQUISITION_DESIGN.md §7.2 / B2 — the daemon
|
|
241
|
+
// does not track a per-routine "last sync" anchor today; using
|
|
242
|
+
// `hour_start_iso` (or the equivalent `lastModifiedDateTime ge` on
|
|
243
|
+
// Graph) lost any change that happened earlier in the today_refresh
|
|
244
|
+
// cron interval (4h cadence). Every mode now fetches the full 24h
|
|
245
|
+
// window; the server `contentHash` over `(source, payload)` upserts
|
|
246
|
+
// unchanged events to 409 and writes a fresh row only when the
|
|
247
|
+
// payload differs. The "drift" semantics is therefore captured at
|
|
248
|
+
// the observation-row layer, not the upstream-fetch layer — and
|
|
249
|
+
// remains uniform across direct / delegated / native.
|
|
250
|
+
cal_next_24h_drift: {
|
|
251
|
+
google_calendar: {
|
|
252
|
+
direct: "?date={day_start_date}&days=1",
|
|
253
|
+
delegated: 'timeMin="{now_iso}" timeMax="{day_plus_24h}" maxResults=100',
|
|
254
|
+
native: 'timeMin="{now_iso}" timeMax="{day_plus_24h}" maxResults=100',
|
|
255
|
+
},
|
|
256
|
+
outlook_calendar: {
|
|
257
|
+
direct: "?date={day_start_date}&days=1",
|
|
258
|
+
delegated: "startDateTime={now_iso}&endDateTime={day_plus_24h}",
|
|
259
|
+
native: "startDateTime={now_iso}&endDateTime={day_plus_24h}",
|
|
260
|
+
},
|
|
261
|
+
},
|
|
262
|
+
cal_past_7d: {
|
|
263
|
+
google_calendar: {
|
|
264
|
+
direct: "?date={week_start_date}&days=7",
|
|
265
|
+
delegated: 'timeMin="{week_start_iso}" timeMax="{now_iso}" maxResults=100',
|
|
266
|
+
native: 'timeMin="{week_start_iso}" timeMax="{now_iso}" maxResults=100',
|
|
267
|
+
},
|
|
268
|
+
outlook_calendar: {
|
|
269
|
+
direct: "?date={week_start_date}&days=7",
|
|
270
|
+
delegated: "startDateTime={week_start_iso}&endDateTime={now_iso}",
|
|
271
|
+
native: "startDateTime={week_start_iso}&endDateTime={now_iso}",
|
|
272
|
+
},
|
|
273
|
+
},
|
|
274
|
+
imminent_2h: {
|
|
275
|
+
google_calendar: {
|
|
276
|
+
// The REST route's smallest legal window is one day; the pre-pass
|
|
277
|
+
// fetches today's events and the partial body filters to the next
|
|
278
|
+
// 2h client-side. Delegated/native carry the precise 2h window
|
|
279
|
+
// because MCP surfaces accept arbitrary ISO ranges.
|
|
280
|
+
direct: "?date={now_date}&days=1",
|
|
281
|
+
delegated: 'timeMin="{now_iso}" timeMax="{day_plus_2h}" maxResults=10',
|
|
282
|
+
native: 'timeMin="{now_iso}" timeMax="{day_plus_2h}" maxResults=10',
|
|
283
|
+
},
|
|
284
|
+
outlook_calendar: {
|
|
285
|
+
direct: "?date={now_date}&days=1",
|
|
286
|
+
delegated: "startDateTime={now_iso}&endDateTime={day_plus_2h}",
|
|
287
|
+
native: "startDateTime={now_iso}&endDateTime={day_plus_2h}",
|
|
288
|
+
},
|
|
289
|
+
},
|
|
290
|
+
// ── Notion ──────────────────────────────────────────────────────────────
|
|
291
|
+
// Direct-mode query strings target `GET /api/notion/search`, which
|
|
292
|
+
// accepts `q`, `type`, `sort`, `page_size`, `start_cursor`. The route
|
|
293
|
+
// has NO time filter — the partial body filters client-side using the
|
|
294
|
+
// `last_edited_time` of each result against the window threshold the
|
|
295
|
+
// partial knows from its symbol. `sort=descending` plus a generous
|
|
296
|
+
// `page_size` ensures the pre-pass sees every page edited within the
|
|
297
|
+
// window without paginating.
|
|
298
|
+
updated_24h: {
|
|
299
|
+
notion: {
|
|
300
|
+
direct: "?page_size=50&sort=descending",
|
|
301
|
+
delegated: "last_edited_time>={day_start_iso}",
|
|
302
|
+
native: "last_edited_time>={day_start_iso}",
|
|
303
|
+
},
|
|
304
|
+
},
|
|
305
|
+
updated_1h: {
|
|
306
|
+
notion: {
|
|
307
|
+
direct: "?page_size=20&sort=descending",
|
|
308
|
+
delegated: "last_edited_time>={hour_start_iso}",
|
|
309
|
+
native: "last_edited_time>={hour_start_iso}",
|
|
310
|
+
},
|
|
311
|
+
},
|
|
312
|
+
};
|
|
313
|
+
/**
|
|
314
|
+
* Resolve `WINDOW_QUERIES[symbol]?.[integration]?.[mode]`. Returns
|
|
315
|
+
* `undefined` when the cell is unmapped — callers MUST treat that as
|
|
316
|
+
* "skip this row" rather than emitting an empty query string.
|
|
317
|
+
*/
|
|
318
|
+
export function lookupWindowQuery(symbol, integration, mode) {
|
|
319
|
+
return WINDOW_QUERIES[symbol]?.[integration]?.[mode];
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* True when the routine has any rows that the pre-pass needs to fetch.
|
|
323
|
+
* The dispatcher skips spawning a pre-pass session when this returns
|
|
324
|
+
* false — saves a cold-start for routines whose data needs are already
|
|
325
|
+
* covered by ContextBuilder blocks (today: `monthly_review`).
|
|
326
|
+
*/
|
|
327
|
+
export function routineHasWindows(key) {
|
|
328
|
+
return ROUTINE_WINDOWS[key].length > 0;
|
|
329
|
+
}
|
|
330
|
+
//# sourceMappingURL=routine-windows.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routine-windows.js","sourceRoot":"","sources":["../../src/core/routine-windows.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAYH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,OAAO;IACP,aAAa;IACb,kBAAkB;IAClB,gBAAgB;IAChB,gEAAgE;IAChE,6DAA6D;IAC7D,wDAAwD;IACxD,8DAA8D;IAC9D,kEAAkE;IAClE,kEAAkE;IAClE,2CAA2C;IAC3C,oBAAoB;IACpB,aAAa;IACb,aAAa;IACb,SAAS;IACT,aAAa;IACb,YAAY;CACJ,CAAC;AAGX,8EAA8E;AAE9E;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,yBAAyB;IACzB,iCAAiC;IACjC,uBAAuB;IACvB,sBAAsB;IACtB,wBAAwB;IACxB,uBAAuB;IACvB,wBAAwB;CAChB,CAAC;AAgBX;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAM,CAAC,MAAM,eAAe,GAExB;IACF,yBAAyB,E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,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,iBAAiB,CAAC,GAAqB;IACrD,OAAO,eAAe,CAAC,GAAG,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;AACzC,CAAC"}
|
|
@@ -10,6 +10,17 @@ export declare function missingDelegatedVariants(workspaceDir: string, integrati
|
|
|
10
10
|
skills: string[];
|
|
11
11
|
taskFlows: string[];
|
|
12
12
|
};
|
|
13
|
+
/**
|
|
14
|
+
* INTEGRATION_NATIVE_MODE_DESIGN.md §7.4 / §8.5 — symmetric to
|
|
15
|
+
* {@link missingDelegatedVariants} for the new `native` mode. Used by
|
|
16
|
+
* the PATCH route's pre-commit hard reject and (Phase B2 onwards) by
|
|
17
|
+
* `skills-manifest.test.ts` to assert variant existence on every
|
|
18
|
+
* supported `(integration, native backend)` pair before a release.
|
|
19
|
+
*/
|
|
20
|
+
export declare function missingNativeVariants(workspaceDir: string, integrationKey: IntegrationKey, nativeBackend: BackendId): {
|
|
21
|
+
skills: string[];
|
|
22
|
+
taskFlows: string[];
|
|
23
|
+
};
|
|
13
24
|
interface SessionPromptBundleParams {
|
|
14
25
|
backendId: BackendId;
|
|
15
26
|
sessionDir: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skills-compiler.d.ts","sourceRoot":"","sources":["../../src/core/skills-compiler.ts"],"names":[],"mappings":"AAYA,OAAO,EAWL,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,UAAU,EAChB,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"skills-compiler.d.ts","sourceRoot":"","sources":["../../src/core/skills-compiler.ts"],"names":[],"mappings":"AAYA,OAAO,EAWL,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,UAAU,EAChB,MAAM,eAAe,CAAC;AASvB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAahE,eAAO,MAAM,MA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