@cortexkit/opencode-magic-context 0.26.0 → 0.27.1
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/README.md +14 -12
- package/dist/agents/dreamer.d.ts +19 -0
- package/dist/agents/dreamer.d.ts.map +1 -1
- package/dist/agents/hidden-agent-registrations.d.ts +67 -0
- package/dist/agents/hidden-agent-registrations.d.ts.map +1 -0
- package/dist/agents/historian.d.ts +1 -0
- package/dist/agents/historian.d.ts.map +1 -1
- package/dist/agents/permissions.d.ts +15 -44
- package/dist/agents/permissions.d.ts.map +1 -1
- package/dist/agents/smart-note-compiler.d.ts +2 -0
- package/dist/agents/smart-note-compiler.d.ts.map +1 -0
- package/dist/config/index.d.ts +1 -1
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/migrate-config-location.d.ts +89 -0
- package/dist/config/migrate-config-location.d.ts.map +1 -0
- package/dist/config/migrate-dreamer-v2.d.ts +37 -0
- package/dist/config/migrate-dreamer-v2.d.ts.map +1 -0
- package/dist/config/migrate-experimental.d.ts.map +1 -1
- package/dist/config/project-security.d.ts +3 -0
- package/dist/config/project-security.d.ts.map +1 -1
- package/dist/config/prune-config-leaf.d.ts.map +1 -1
- package/dist/config/schema/magic-context.d.ts +584 -60
- package/dist/config/schema/magic-context.d.ts.map +1 -1
- package/dist/features/magic-context/compaction-marker.d.ts +9 -3
- package/dist/features/magic-context/compaction-marker.d.ts.map +1 -1
- package/dist/features/magic-context/compartment-chunk-embedding.d.ts +1 -1
- package/dist/features/magic-context/compartment-chunk-embedding.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/classify-prompt.d.ts +50 -0
- package/dist/features/magic-context/dreamer/classify-prompt.d.ts.map +1 -0
- package/dist/features/magic-context/dreamer/classify.d.ts +22 -0
- package/dist/features/magic-context/dreamer/classify.d.ts.map +1 -0
- package/dist/features/magic-context/dreamer/cron.d.ts +72 -0
- package/dist/features/magic-context/dreamer/cron.d.ts.map +1 -0
- package/dist/features/magic-context/dreamer/evaluate-smart-notes.d.ts +30 -0
- package/dist/features/magic-context/dreamer/evaluate-smart-notes.d.ts.map +1 -0
- package/dist/features/magic-context/dreamer/index.d.ts +1 -3
- package/dist/features/magic-context/dreamer/index.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/lease.d.ts +44 -6
- package/dist/features/magic-context/dreamer/lease.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/maintain-docs-protected-enforcement.d.ts +13 -0
- package/dist/features/magic-context/dreamer/maintain-docs-protected-enforcement.d.ts.map +1 -0
- package/dist/features/magic-context/dreamer/map-memories-prompt.d.ts +36 -0
- package/dist/features/magic-context/dreamer/map-memories-prompt.d.ts.map +1 -0
- package/dist/features/magic-context/dreamer/map-memories.d.ts +22 -0
- package/dist/features/magic-context/dreamer/map-memories.d.ts.map +1 -0
- package/dist/features/magic-context/dreamer/open-opencode-db.d.ts +7 -0
- package/dist/features/magic-context/dreamer/open-opencode-db.d.ts.map +1 -0
- package/dist/features/magic-context/dreamer/primer-seed.d.ts +25 -0
- package/dist/features/magic-context/dreamer/primer-seed.d.ts.map +1 -0
- package/dist/features/magic-context/dreamer/promote-primers.d.ts +21 -0
- package/dist/features/magic-context/dreamer/promote-primers.d.ts.map +1 -0
- package/dist/features/magic-context/dreamer/protected-regions.d.ts +19 -0
- package/dist/features/magic-context/dreamer/protected-regions.d.ts.map +1 -0
- package/dist/features/magic-context/dreamer/refresh-primers.d.ts +30 -0
- package/dist/features/magic-context/dreamer/refresh-primers.d.ts.map +1 -0
- package/dist/features/magic-context/dreamer/retrospective-learnings.d.ts +47 -0
- package/dist/features/magic-context/dreamer/retrospective-learnings.d.ts.map +1 -0
- package/dist/features/magic-context/dreamer/retrospective-orphan-sweep.d.ts +48 -0
- package/dist/features/magic-context/dreamer/retrospective-orphan-sweep.d.ts.map +1 -0
- package/dist/features/magic-context/dreamer/retrospective-raw-provider.d.ts +81 -0
- package/dist/features/magic-context/dreamer/retrospective-raw-provider.d.ts.map +1 -0
- package/dist/features/magic-context/dreamer/storage-dream-runs.d.ts +8 -0
- package/dist/features/magic-context/dreamer/storage-dream-runs.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/storage-task-schedule.d.ts +82 -0
- package/dist/features/magic-context/dreamer/storage-task-schedule.d.ts.map +1 -0
- package/dist/features/magic-context/dreamer/task-config.d.ts +28 -0
- package/dist/features/magic-context/dreamer/task-config.d.ts.map +1 -0
- package/dist/features/magic-context/dreamer/task-executor.d.ts +49 -0
- package/dist/features/magic-context/dreamer/task-executor.d.ts.map +1 -0
- package/dist/features/magic-context/dreamer/task-gates.d.ts +29 -0
- package/dist/features/magic-context/dreamer/task-gates.d.ts.map +1 -0
- package/dist/features/magic-context/dreamer/task-prompts.d.ts +37 -6
- package/dist/features/magic-context/dreamer/task-prompts.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/task-registry.d.ts +48 -0
- package/dist/features/magic-context/dreamer/task-registry.d.ts.map +1 -0
- package/dist/features/magic-context/dreamer/task-scheduler.d.ts +88 -0
- package/dist/features/magic-context/dreamer/task-scheduler.d.ts.map +1 -0
- package/dist/features/magic-context/dreamer/verify-gate.d.ts +43 -0
- package/dist/features/magic-context/dreamer/verify-gate.d.ts.map +1 -0
- package/dist/features/magic-context/dreamer/verify-prompt.d.ts +41 -0
- package/dist/features/magic-context/dreamer/verify-prompt.d.ts.map +1 -0
- package/dist/features/magic-context/dreamer/verify.d.ts +43 -0
- package/dist/features/magic-context/dreamer/verify.d.ts.map +1 -0
- package/dist/features/magic-context/git-commits/search-git-commits.d.ts +2 -0
- package/dist/features/magic-context/git-commits/search-git-commits.d.ts.map +1 -1
- package/dist/features/magic-context/git-commits/storage-git-commit-embeddings.d.ts +4 -4
- package/dist/features/magic-context/git-commits/storage-git-commit-embeddings.d.ts.map +1 -1
- package/dist/features/magic-context/index.d.ts +1 -0
- package/dist/features/magic-context/index.d.ts.map +1 -1
- package/dist/features/magic-context/memory/embedding-cache.d.ts +2 -2
- package/dist/features/magic-context/memory/embedding-cache.d.ts.map +1 -1
- package/dist/features/magic-context/memory/embedding-identity.d.ts.map +1 -1
- package/dist/features/magic-context/memory/embedding-local.d.ts.map +1 -1
- package/dist/features/magic-context/memory/embedding-openai.d.ts +12 -5
- package/dist/features/magic-context/memory/embedding-openai.d.ts.map +1 -1
- package/dist/features/magic-context/memory/embedding.d.ts +2 -2
- package/dist/features/magic-context/memory/embedding.d.ts.map +1 -1
- package/dist/features/magic-context/memory/index.d.ts +4 -1
- package/dist/features/magic-context/memory/index.d.ts.map +1 -1
- package/dist/features/magic-context/memory/memory-migration.d.ts +1 -0
- package/dist/features/magic-context/memory/memory-migration.d.ts.map +1 -1
- package/dist/features/magic-context/memory/promotion.d.ts +16 -4
- package/dist/features/magic-context/memory/promotion.d.ts.map +1 -1
- package/dist/features/magic-context/memory/storage-memory-embeddings.d.ts +2 -2
- package/dist/features/magic-context/memory/storage-memory-embeddings.d.ts.map +1 -1
- package/dist/features/magic-context/memory/storage-memory-verifications.d.ts +31 -0
- package/dist/features/magic-context/memory/storage-memory-verifications.d.ts.map +1 -0
- package/dist/features/magic-context/memory/storage-memory.d.ts +12 -1
- package/dist/features/magic-context/memory/storage-memory.d.ts.map +1 -1
- package/dist/features/magic-context/memory/types.d.ts +4 -0
- package/dist/features/magic-context/memory/types.d.ts.map +1 -1
- package/dist/features/magic-context/memory/verification-paths.d.ts +32 -0
- package/dist/features/magic-context/memory/verification-paths.d.ts.map +1 -0
- package/dist/features/magic-context/message-index.d.ts.map +1 -1
- package/dist/features/magic-context/migrations.d.ts.map +1 -1
- package/dist/features/magic-context/overflow-detection.d.ts.map +1 -1
- package/dist/features/magic-context/primer-clustering.d.ts +29 -0
- package/dist/features/magic-context/primer-clustering.d.ts.map +1 -0
- package/dist/features/magic-context/project-embedding-registry.d.ts +25 -1
- package/dist/features/magic-context/project-embedding-registry.d.ts.map +1 -1
- package/dist/features/magic-context/search.d.ts +12 -2
- package/dist/features/magic-context/search.d.ts.map +1 -1
- package/dist/features/magic-context/sidekick/agent.d.ts.map +1 -1
- package/dist/features/magic-context/smart-notes/capabilities.d.ts +31 -0
- package/dist/features/magic-context/smart-notes/capabilities.d.ts.map +1 -0
- package/dist/features/magic-context/smart-notes/compiler-prompt.d.ts +2 -0
- package/dist/features/magic-context/smart-notes/compiler-prompt.d.ts.map +1 -0
- package/dist/features/magic-context/smart-notes/compiler.d.ts +52 -0
- package/dist/features/magic-context/smart-notes/compiler.d.ts.map +1 -0
- package/dist/features/magic-context/smart-notes/index.d.ts +10 -0
- package/dist/features/magic-context/smart-notes/index.d.ts.map +1 -0
- package/dist/features/magic-context/smart-notes/runner.d.ts +18 -0
- package/dist/features/magic-context/smart-notes/runner.d.ts.map +1 -0
- package/dist/features/magic-context/smart-notes/sandbox-runner.d.ts +22 -0
- package/dist/features/magic-context/smart-notes/sandbox-runner.d.ts.map +1 -0
- package/dist/features/magic-context/smart-notes/schedule.d.ts +9 -0
- package/dist/features/magic-context/smart-notes/schedule.d.ts.map +1 -0
- package/dist/features/magic-context/smart-notes/ssrf-guard.d.ts +49 -0
- package/dist/features/magic-context/smart-notes/ssrf-guard.d.ts.map +1 -0
- package/dist/features/magic-context/smart-notes/storage.d.ts +27 -0
- package/dist/features/magic-context/smart-notes/storage.d.ts.map +1 -0
- package/dist/features/magic-context/smart-notes/types.d.ts +63 -0
- package/dist/features/magic-context/smart-notes/types.d.ts.map +1 -0
- package/dist/features/magic-context/storage-db.d.ts +5 -1
- package/dist/features/magic-context/storage-db.d.ts.map +1 -1
- package/dist/features/magic-context/storage-meta-persisted.d.ts +8 -4
- package/dist/features/magic-context/storage-meta-persisted.d.ts.map +1 -1
- package/dist/features/magic-context/storage-meta-session.d.ts.map +1 -1
- package/dist/features/magic-context/storage-meta-shared.d.ts +3 -1
- package/dist/features/magic-context/storage-meta-shared.d.ts.map +1 -1
- package/dist/features/magic-context/storage-notes.d.ts +15 -0
- package/dist/features/magic-context/storage-notes.d.ts.map +1 -1
- package/dist/features/magic-context/storage-primers.d.ts +85 -0
- package/dist/features/magic-context/storage-primers.d.ts.map +1 -0
- package/dist/features/magic-context/storage-tags.d.ts +20 -0
- package/dist/features/magic-context/storage-tags.d.ts.map +1 -1
- package/dist/features/magic-context/storage.d.ts +2 -1
- package/dist/features/magic-context/storage.d.ts.map +1 -1
- package/dist/features/magic-context/tagger.d.ts +6 -0
- package/dist/features/magic-context/tagger.d.ts.map +1 -1
- package/dist/features/magic-context/tool-owner-backfill.d.ts.map +1 -1
- package/dist/features/magic-context/transform-decision-log.d.ts +10 -0
- package/dist/features/magic-context/transform-decision-log.d.ts.map +1 -1
- package/dist/features/magic-context/types.d.ts +2 -0
- package/dist/features/magic-context/types.d.ts.map +1 -1
- package/dist/features/magic-context/user-memory/review-user-memories.d.ts +5 -0
- package/dist/features/magic-context/user-memory/review-user-memories.d.ts.map +1 -1
- package/dist/features/magic-context/user-memory/storage-user-memory.d.ts +18 -0
- package/dist/features/magic-context/user-memory/storage-user-memory.d.ts.map +1 -1
- package/dist/features/magic-context/v22-deferred-backfill.d.ts.map +1 -1
- package/dist/hooks/auto-update-checker/semver.d.ts +9 -0
- package/dist/hooks/auto-update-checker/semver.d.ts.map +1 -1
- package/dist/hooks/magic-context/auto-search-hint.d.ts.map +1 -1
- package/dist/hooks/magic-context/command-handler.d.ts +8 -15
- package/dist/hooks/magic-context/command-handler.d.ts.map +1 -1
- package/dist/hooks/magic-context/compaction-marker-manager.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-parser.d.ts +9 -0
- package/dist/hooks/magic-context/compartment-parser.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-prompt.d.ts +4 -1
- package/dist/hooks/magic-context/compartment-prompt.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-historian.d.ts +1 -0
- package/dist/hooks/magic-context/compartment-runner-historian.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-incremental.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-partial-recomp.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-recomp.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-types.d.ts +8 -0
- package/dist/hooks/magic-context/compartment-runner-types.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-validation.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-trigger.d.ts.map +1 -1
- package/dist/hooks/magic-context/ctx-reduce-nudge.d.ts.map +1 -1
- package/dist/hooks/magic-context/event-handler.d.ts.map +1 -1
- package/dist/hooks/magic-context/event-resolvers.d.ts.map +1 -1
- package/dist/hooks/magic-context/historian-prompt.generated.d.ts +1 -1
- package/dist/hooks/magic-context/historian-prompt.generated.d.ts.map +1 -1
- package/dist/hooks/magic-context/historian-state-file.d.ts.map +1 -1
- package/dist/hooks/magic-context/hook-handlers.d.ts +2 -1
- package/dist/hooks/magic-context/hook-handlers.d.ts.map +1 -1
- package/dist/hooks/magic-context/hook.d.ts +1 -0
- package/dist/hooks/magic-context/hook.d.ts.map +1 -1
- package/dist/hooks/magic-context/inject-compartments.d.ts +0 -3
- package/dist/hooks/magic-context/inject-compartments.d.ts.map +1 -1
- package/dist/hooks/magic-context/send-session-notification.d.ts +2 -0
- package/dist/hooks/magic-context/send-session-notification.d.ts.map +1 -1
- package/dist/hooks/magic-context/system-prompt-hash.d.ts +17 -0
- package/dist/hooks/magic-context/system-prompt-hash.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts +8 -5
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform.d.ts +0 -2
- package/dist/hooks/magic-context/transform.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17034 -4059
- package/dist/plugin/dream-timer.d.ts +17 -9
- package/dist/plugin/dream-timer.d.ts.map +1 -1
- package/dist/plugin/embedding-bootstrap-helpers.d.ts +1 -1
- package/dist/plugin/embedding-bootstrap-helpers.d.ts.map +1 -1
- package/dist/plugin/embedding-bootstrap.d.ts.map +1 -1
- package/dist/plugin/hooks/create-session-hooks.d.ts +211 -0
- package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
- package/dist/plugin/instance-disposal.d.ts +2 -0
- package/dist/plugin/instance-disposal.d.ts.map +1 -0
- package/dist/plugin/rpc-handlers.d.ts.map +1 -1
- package/dist/shared/announcement.d.ts +1 -1
- package/dist/shared/announcement.d.ts.map +1 -1
- package/dist/shared/data-path.d.ts +26 -7
- package/dist/shared/data-path.d.ts.map +1 -1
- package/dist/shared/model-suggestion-retry.d.ts +48 -2
- package/dist/shared/model-suggestion-retry.d.ts.map +1 -1
- package/dist/shared/redaction.d.ts +7 -0
- package/dist/shared/redaction.d.ts.map +1 -0
- package/dist/shared/resolve-fallbacks.d.ts +12 -0
- package/dist/shared/resolve-fallbacks.d.ts.map +1 -1
- package/dist/shared/rpc-server.d.ts.map +1 -1
- package/dist/shared/rpc-types.d.ts +2 -0
- package/dist/shared/rpc-types.d.ts.map +1 -1
- package/dist/shared/subagent-runner.d.ts +12 -3
- package/dist/shared/subagent-runner.d.ts.map +1 -1
- package/dist/shared/tui-config.d.ts.map +1 -1
- package/dist/tools/ctx-memory/tools.d.ts.map +1 -1
- package/dist/tools/ctx-memory/types.d.ts.map +1 -1
- package/dist/tools/ctx-memory/verification-recording.d.ts +8 -0
- package/dist/tools/ctx-memory/verification-recording.d.ts.map +1 -0
- package/dist/tools/ctx-search/tools.d.ts.map +1 -1
- package/dist/tools/ctx-search/types.d.ts +1 -1
- package/dist/tools/ctx-search/types.d.ts.map +1 -1
- package/dist/tui/data/context-db.d.ts +2 -0
- package/dist/tui/data/context-db.d.ts.map +1 -1
- package/package.json +3 -1
- package/src/shared/announcement.test.ts +20 -0
- package/src/shared/announcement.ts +19 -7
- package/src/shared/data-path.test.ts +70 -6
- package/src/shared/data-path.ts +50 -8
- package/src/shared/model-suggestion-retry.test.ts +79 -2
- package/src/shared/model-suggestion-retry.ts +181 -3
- package/src/shared/redaction.test.ts +84 -0
- package/src/shared/redaction.ts +264 -0
- package/src/shared/resolve-fallbacks.ts +14 -0
- package/src/shared/rpc-server.ts +24 -0
- package/src/shared/rpc-types.ts +2 -0
- package/src/shared/subagent-runner.ts +12 -3
- package/src/shared/tui-config.test.ts +63 -0
- package/src/shared/tui-config.ts +67 -39
- package/src/tui/data/context-db.ts +12 -0
- package/src/tui/index.tsx +87 -17
- package/src/tui/slots/sidebar-content.tsx +4 -0
- package/dist/features/magic-context/dreamer/queue.d.ts +0 -55
- package/dist/features/magic-context/dreamer/queue.d.ts.map +0 -1
- package/dist/features/magic-context/dreamer/runner.d.ts +0 -92
- package/dist/features/magic-context/dreamer/runner.d.ts.map +0 -1
- package/dist/features/magic-context/dreamer/scheduler.d.ts +0 -29
- package/dist/features/magic-context/dreamer/scheduler.d.ts.map +0 -1
- package/dist/features/magic-context/key-files/aft-availability.d.ts +0 -11
- package/dist/features/magic-context/key-files/aft-availability.d.ts.map +0 -1
- package/dist/features/magic-context/key-files/identify-key-files.d.ts +0 -84
- package/dist/features/magic-context/key-files/identify-key-files.d.ts.map +0 -1
- package/dist/features/magic-context/key-files/project-key-files.d.ts +0 -42
- package/dist/features/magic-context/key-files/project-key-files.d.ts.map +0 -1
- package/dist/features/magic-context/key-files/read-history.d.ts +0 -26
- package/dist/features/magic-context/key-files/read-history.d.ts.map +0 -1
- package/dist/features/magic-context/key-files/read-stats.d.ts +0 -18
- package/dist/features/magic-context/key-files/read-stats.d.ts.map +0 -1
- package/dist/features/magic-context/key-files/storage-key-files.d.ts +0 -20
- package/dist/features/magic-context/key-files/storage-key-files.d.ts.map +0 -1
- package/dist/hooks/magic-context/key-files-block.d.ts +0 -27
- package/dist/hooks/magic-context/key-files-block.d.ts.map +0 -1
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { AGENTIC_DREAM_TASKS } from "../../features/magic-context/dreamer/task-registry";
|
|
2
3
|
export declare const DEFAULT_EXECUTE_THRESHOLD_PERCENTAGE = 65;
|
|
3
4
|
export declare const EXECUTE_THRESHOLD_CAP_MESSAGE = "execute_threshold is capped at 80% for cache safety: a single large agent step can overflow the context window before Magic Context can compact between turns, forcing OpenCode's native compaction (hard to recover from). 80% also leaves headroom below the 85%/95% emergency bands. Use a value between 20 and 80.";
|
|
4
5
|
export declare const DEFAULT_HISTORIAN_TIMEOUT_MS = 300000;
|
|
5
6
|
export declare const DEFAULT_HISTORY_BUDGET_PERCENTAGE = 0.15;
|
|
6
7
|
export declare const DEFAULT_LOCAL_EMBEDDING_MODEL = "Xenova/all-MiniLM-L6-v2";
|
|
7
|
-
export declare const DREAMER_TASKS: readonly ["
|
|
8
|
+
export declare const DREAMER_TASKS: readonly ["curate", "maintain-docs"];
|
|
8
9
|
export declare const DreamingTaskSchema: z.ZodEnum<{
|
|
9
|
-
|
|
10
|
-
verify: "verify";
|
|
11
|
-
"archive-stale": "archive-stale";
|
|
12
|
-
improve: "improve";
|
|
10
|
+
curate: "curate";
|
|
13
11
|
"maintain-docs": "maintain-docs";
|
|
14
12
|
}>;
|
|
15
|
-
export type DreamingTask =
|
|
16
|
-
export declare const DEFAULT_DREAMER_TASKS: DreamingTask[];
|
|
13
|
+
export type DreamingTask = (typeof AGENTIC_DREAM_TASKS)[number];
|
|
17
14
|
/** Valid thinking levels for Pi subagents. Maps to Pi's --thinking CLI flag.
|
|
18
15
|
* Off: disable reasoning. Minimal/low/medium/high/xhigh: increasing reasoning depth.
|
|
19
16
|
* Pi-only — OpenCode uses `variant` in agent config instead. */
|
|
@@ -26,7 +23,184 @@ export declare const PiThinkingLevelSchema: z.ZodOptional<z.ZodEnum<{
|
|
|
26
23
|
xhigh: "xhigh";
|
|
27
24
|
}>>;
|
|
28
25
|
export type PiThinkingLevel = z.infer<typeof PiThinkingLevelSchema>;
|
|
29
|
-
|
|
26
|
+
export declare const DreamTaskConfigSchema: z.ZodObject<{
|
|
27
|
+
schedule: z.ZodDefault<z.ZodString>;
|
|
28
|
+
model: z.ZodOptional<z.ZodString>;
|
|
29
|
+
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
30
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
31
|
+
off: "off";
|
|
32
|
+
minimal: "minimal";
|
|
33
|
+
low: "low";
|
|
34
|
+
medium: "medium";
|
|
35
|
+
high: "high";
|
|
36
|
+
xhigh: "xhigh";
|
|
37
|
+
}>>;
|
|
38
|
+
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
39
|
+
promotion_threshold: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
export type DreamTaskConfig = z.infer<typeof DreamTaskConfigSchema>;
|
|
42
|
+
/** The `tasks` record: one entry per canonical task, each defaulting to its
|
|
43
|
+
* v1-behavior-preserving schedule. Written explicitly (not via fromEntries) so
|
|
44
|
+
* the inferred type stays a precise per-key object. */
|
|
45
|
+
export declare const DreamTasksSchema: z.ZodObject<{
|
|
46
|
+
"map-memories": z.ZodDefault<z.ZodObject<{
|
|
47
|
+
schedule: z.ZodDefault<z.ZodString>;
|
|
48
|
+
model: z.ZodOptional<z.ZodString>;
|
|
49
|
+
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
50
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
51
|
+
off: "off";
|
|
52
|
+
minimal: "minimal";
|
|
53
|
+
low: "low";
|
|
54
|
+
medium: "medium";
|
|
55
|
+
high: "high";
|
|
56
|
+
xhigh: "xhigh";
|
|
57
|
+
}>>;
|
|
58
|
+
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
59
|
+
}, z.core.$strip>>;
|
|
60
|
+
verify: z.ZodDefault<z.ZodObject<{
|
|
61
|
+
schedule: z.ZodDefault<z.ZodString>;
|
|
62
|
+
model: z.ZodOptional<z.ZodString>;
|
|
63
|
+
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
64
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
65
|
+
off: "off";
|
|
66
|
+
minimal: "minimal";
|
|
67
|
+
low: "low";
|
|
68
|
+
medium: "medium";
|
|
69
|
+
high: "high";
|
|
70
|
+
xhigh: "xhigh";
|
|
71
|
+
}>>;
|
|
72
|
+
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
73
|
+
}, z.core.$strip>>;
|
|
74
|
+
"verify-broad": z.ZodDefault<z.ZodObject<{
|
|
75
|
+
schedule: z.ZodDefault<z.ZodString>;
|
|
76
|
+
model: z.ZodOptional<z.ZodString>;
|
|
77
|
+
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
78
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
79
|
+
off: "off";
|
|
80
|
+
minimal: "minimal";
|
|
81
|
+
low: "low";
|
|
82
|
+
medium: "medium";
|
|
83
|
+
high: "high";
|
|
84
|
+
xhigh: "xhigh";
|
|
85
|
+
}>>;
|
|
86
|
+
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
87
|
+
}, z.core.$strip>>;
|
|
88
|
+
curate: z.ZodDefault<z.ZodObject<{
|
|
89
|
+
schedule: z.ZodDefault<z.ZodString>;
|
|
90
|
+
model: z.ZodOptional<z.ZodString>;
|
|
91
|
+
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
92
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
93
|
+
off: "off";
|
|
94
|
+
minimal: "minimal";
|
|
95
|
+
low: "low";
|
|
96
|
+
medium: "medium";
|
|
97
|
+
high: "high";
|
|
98
|
+
xhigh: "xhigh";
|
|
99
|
+
}>>;
|
|
100
|
+
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
101
|
+
}, z.core.$strip>>;
|
|
102
|
+
"classify-memories": z.ZodDefault<z.ZodObject<{
|
|
103
|
+
schedule: z.ZodDefault<z.ZodString>;
|
|
104
|
+
model: z.ZodOptional<z.ZodString>;
|
|
105
|
+
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
106
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
107
|
+
off: "off";
|
|
108
|
+
minimal: "minimal";
|
|
109
|
+
low: "low";
|
|
110
|
+
medium: "medium";
|
|
111
|
+
high: "high";
|
|
112
|
+
xhigh: "xhigh";
|
|
113
|
+
}>>;
|
|
114
|
+
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
115
|
+
}, z.core.$strip>>;
|
|
116
|
+
retrospective: z.ZodDefault<z.ZodObject<{
|
|
117
|
+
schedule: z.ZodDefault<z.ZodString>;
|
|
118
|
+
model: z.ZodOptional<z.ZodString>;
|
|
119
|
+
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
120
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
121
|
+
off: "off";
|
|
122
|
+
minimal: "minimal";
|
|
123
|
+
low: "low";
|
|
124
|
+
medium: "medium";
|
|
125
|
+
high: "high";
|
|
126
|
+
xhigh: "xhigh";
|
|
127
|
+
}>>;
|
|
128
|
+
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
129
|
+
}, z.core.$strip>>;
|
|
130
|
+
"maintain-docs": z.ZodDefault<z.ZodObject<{
|
|
131
|
+
schedule: z.ZodDefault<z.ZodString>;
|
|
132
|
+
model: z.ZodOptional<z.ZodString>;
|
|
133
|
+
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
134
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
135
|
+
off: "off";
|
|
136
|
+
minimal: "minimal";
|
|
137
|
+
low: "low";
|
|
138
|
+
medium: "medium";
|
|
139
|
+
high: "high";
|
|
140
|
+
xhigh: "xhigh";
|
|
141
|
+
}>>;
|
|
142
|
+
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
143
|
+
}, z.core.$strip>>;
|
|
144
|
+
"evaluate-smart-notes": z.ZodDefault<z.ZodObject<{
|
|
145
|
+
schedule: z.ZodDefault<z.ZodString>;
|
|
146
|
+
model: z.ZodOptional<z.ZodString>;
|
|
147
|
+
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
148
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
149
|
+
off: "off";
|
|
150
|
+
minimal: "minimal";
|
|
151
|
+
low: "low";
|
|
152
|
+
medium: "medium";
|
|
153
|
+
high: "high";
|
|
154
|
+
xhigh: "xhigh";
|
|
155
|
+
}>>;
|
|
156
|
+
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
157
|
+
}, z.core.$strip>>;
|
|
158
|
+
"review-user-memories": z.ZodDefault<z.ZodObject<{
|
|
159
|
+
schedule: z.ZodDefault<z.ZodString>;
|
|
160
|
+
model: z.ZodOptional<z.ZodString>;
|
|
161
|
+
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
162
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
163
|
+
off: "off";
|
|
164
|
+
minimal: "minimal";
|
|
165
|
+
low: "low";
|
|
166
|
+
medium: "medium";
|
|
167
|
+
high: "high";
|
|
168
|
+
xhigh: "xhigh";
|
|
169
|
+
}>>;
|
|
170
|
+
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
171
|
+
promotion_threshold: z.ZodOptional<z.ZodNumber>;
|
|
172
|
+
}, z.core.$strip>>;
|
|
173
|
+
"promote-primers": z.ZodDefault<z.ZodObject<{
|
|
174
|
+
schedule: z.ZodDefault<z.ZodString>;
|
|
175
|
+
model: z.ZodOptional<z.ZodString>;
|
|
176
|
+
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
177
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
178
|
+
off: "off";
|
|
179
|
+
minimal: "minimal";
|
|
180
|
+
low: "low";
|
|
181
|
+
medium: "medium";
|
|
182
|
+
high: "high";
|
|
183
|
+
xhigh: "xhigh";
|
|
184
|
+
}>>;
|
|
185
|
+
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
186
|
+
promotion_threshold: z.ZodOptional<z.ZodNumber>;
|
|
187
|
+
}, z.core.$strip>>;
|
|
188
|
+
"refresh-primers": z.ZodDefault<z.ZodObject<{
|
|
189
|
+
schedule: z.ZodDefault<z.ZodString>;
|
|
190
|
+
model: z.ZodOptional<z.ZodString>;
|
|
191
|
+
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
192
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
193
|
+
off: "off";
|
|
194
|
+
minimal: "minimal";
|
|
195
|
+
low: "low";
|
|
196
|
+
medium: "medium";
|
|
197
|
+
high: "high";
|
|
198
|
+
xhigh: "xhigh";
|
|
199
|
+
}>>;
|
|
200
|
+
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
201
|
+
}, z.core.$strip>>;
|
|
202
|
+
}, z.core.$strip>;
|
|
203
|
+
/** Combined dreamer agent + per-task scheduling configuration (Dreamer v2). */
|
|
30
204
|
export declare const DreamerConfigSchema: z.ZodObject<{
|
|
31
205
|
model: z.ZodOptional<z.ZodString>;
|
|
32
206
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
@@ -76,26 +250,165 @@ export declare const DreamerConfigSchema: z.ZodObject<{
|
|
|
76
250
|
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
77
251
|
variant: z.ZodOptional<z.ZodString>;
|
|
78
252
|
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
253
|
+
tasks: z.ZodDefault<z.ZodObject<{
|
|
254
|
+
"map-memories": z.ZodDefault<z.ZodObject<{
|
|
255
|
+
schedule: z.ZodDefault<z.ZodString>;
|
|
256
|
+
model: z.ZodOptional<z.ZodString>;
|
|
257
|
+
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
258
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
259
|
+
off: "off";
|
|
260
|
+
minimal: "minimal";
|
|
261
|
+
low: "low";
|
|
262
|
+
medium: "medium";
|
|
263
|
+
high: "high";
|
|
264
|
+
xhigh: "xhigh";
|
|
265
|
+
}>>;
|
|
266
|
+
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
267
|
+
}, z.core.$strip>>;
|
|
268
|
+
verify: z.ZodDefault<z.ZodObject<{
|
|
269
|
+
schedule: z.ZodDefault<z.ZodString>;
|
|
270
|
+
model: z.ZodOptional<z.ZodString>;
|
|
271
|
+
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
272
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
273
|
+
off: "off";
|
|
274
|
+
minimal: "minimal";
|
|
275
|
+
low: "low";
|
|
276
|
+
medium: "medium";
|
|
277
|
+
high: "high";
|
|
278
|
+
xhigh: "xhigh";
|
|
279
|
+
}>>;
|
|
280
|
+
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
281
|
+
}, z.core.$strip>>;
|
|
282
|
+
"verify-broad": z.ZodDefault<z.ZodObject<{
|
|
283
|
+
schedule: z.ZodDefault<z.ZodString>;
|
|
284
|
+
model: z.ZodOptional<z.ZodString>;
|
|
285
|
+
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
286
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
287
|
+
off: "off";
|
|
288
|
+
minimal: "minimal";
|
|
289
|
+
low: "low";
|
|
290
|
+
medium: "medium";
|
|
291
|
+
high: "high";
|
|
292
|
+
xhigh: "xhigh";
|
|
293
|
+
}>>;
|
|
294
|
+
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
295
|
+
}, z.core.$strip>>;
|
|
296
|
+
curate: z.ZodDefault<z.ZodObject<{
|
|
297
|
+
schedule: z.ZodDefault<z.ZodString>;
|
|
298
|
+
model: z.ZodOptional<z.ZodString>;
|
|
299
|
+
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
300
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
301
|
+
off: "off";
|
|
302
|
+
minimal: "minimal";
|
|
303
|
+
low: "low";
|
|
304
|
+
medium: "medium";
|
|
305
|
+
high: "high";
|
|
306
|
+
xhigh: "xhigh";
|
|
307
|
+
}>>;
|
|
308
|
+
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
309
|
+
}, z.core.$strip>>;
|
|
310
|
+
"classify-memories": z.ZodDefault<z.ZodObject<{
|
|
311
|
+
schedule: z.ZodDefault<z.ZodString>;
|
|
312
|
+
model: z.ZodOptional<z.ZodString>;
|
|
313
|
+
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
314
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
315
|
+
off: "off";
|
|
316
|
+
minimal: "minimal";
|
|
317
|
+
low: "low";
|
|
318
|
+
medium: "medium";
|
|
319
|
+
high: "high";
|
|
320
|
+
xhigh: "xhigh";
|
|
321
|
+
}>>;
|
|
322
|
+
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
323
|
+
}, z.core.$strip>>;
|
|
324
|
+
retrospective: z.ZodDefault<z.ZodObject<{
|
|
325
|
+
schedule: z.ZodDefault<z.ZodString>;
|
|
326
|
+
model: z.ZodOptional<z.ZodString>;
|
|
327
|
+
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
328
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
329
|
+
off: "off";
|
|
330
|
+
minimal: "minimal";
|
|
331
|
+
low: "low";
|
|
332
|
+
medium: "medium";
|
|
333
|
+
high: "high";
|
|
334
|
+
xhigh: "xhigh";
|
|
335
|
+
}>>;
|
|
336
|
+
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
337
|
+
}, z.core.$strip>>;
|
|
338
|
+
"maintain-docs": z.ZodDefault<z.ZodObject<{
|
|
339
|
+
schedule: z.ZodDefault<z.ZodString>;
|
|
340
|
+
model: z.ZodOptional<z.ZodString>;
|
|
341
|
+
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
342
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
343
|
+
off: "off";
|
|
344
|
+
minimal: "minimal";
|
|
345
|
+
low: "low";
|
|
346
|
+
medium: "medium";
|
|
347
|
+
high: "high";
|
|
348
|
+
xhigh: "xhigh";
|
|
349
|
+
}>>;
|
|
350
|
+
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
351
|
+
}, z.core.$strip>>;
|
|
352
|
+
"evaluate-smart-notes": z.ZodDefault<z.ZodObject<{
|
|
353
|
+
schedule: z.ZodDefault<z.ZodString>;
|
|
354
|
+
model: z.ZodOptional<z.ZodString>;
|
|
355
|
+
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
356
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
357
|
+
off: "off";
|
|
358
|
+
minimal: "minimal";
|
|
359
|
+
low: "low";
|
|
360
|
+
medium: "medium";
|
|
361
|
+
high: "high";
|
|
362
|
+
xhigh: "xhigh";
|
|
363
|
+
}>>;
|
|
364
|
+
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
365
|
+
}, z.core.$strip>>;
|
|
366
|
+
"review-user-memories": z.ZodDefault<z.ZodObject<{
|
|
367
|
+
schedule: z.ZodDefault<z.ZodString>;
|
|
368
|
+
model: z.ZodOptional<z.ZodString>;
|
|
369
|
+
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
370
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
371
|
+
off: "off";
|
|
372
|
+
minimal: "minimal";
|
|
373
|
+
low: "low";
|
|
374
|
+
medium: "medium";
|
|
375
|
+
high: "high";
|
|
376
|
+
xhigh: "xhigh";
|
|
377
|
+
}>>;
|
|
378
|
+
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
379
|
+
promotion_threshold: z.ZodOptional<z.ZodNumber>;
|
|
380
|
+
}, z.core.$strip>>;
|
|
381
|
+
"promote-primers": z.ZodDefault<z.ZodObject<{
|
|
382
|
+
schedule: z.ZodDefault<z.ZodString>;
|
|
383
|
+
model: z.ZodOptional<z.ZodString>;
|
|
384
|
+
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
385
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
386
|
+
off: "off";
|
|
387
|
+
minimal: "minimal";
|
|
388
|
+
low: "low";
|
|
389
|
+
medium: "medium";
|
|
390
|
+
high: "high";
|
|
391
|
+
xhigh: "xhigh";
|
|
392
|
+
}>>;
|
|
393
|
+
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
394
|
+
promotion_threshold: z.ZodOptional<z.ZodNumber>;
|
|
395
|
+
}, z.core.$strip>>;
|
|
396
|
+
"refresh-primers": z.ZodDefault<z.ZodObject<{
|
|
397
|
+
schedule: z.ZodDefault<z.ZodString>;
|
|
398
|
+
model: z.ZodOptional<z.ZodString>;
|
|
399
|
+
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
400
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
401
|
+
off: "off";
|
|
402
|
+
minimal: "minimal";
|
|
403
|
+
low: "low";
|
|
404
|
+
medium: "medium";
|
|
405
|
+
high: "high";
|
|
406
|
+
xhigh: "xhigh";
|
|
407
|
+
}>>;
|
|
408
|
+
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
409
|
+
}, z.core.$strip>>;
|
|
98
410
|
}, z.core.$strip>>;
|
|
411
|
+
inject_docs: z.ZodDefault<z.ZodBoolean>;
|
|
99
412
|
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
100
413
|
off: "off";
|
|
101
414
|
minimal: "minimal";
|
|
@@ -293,6 +606,8 @@ export interface MagicContextConfig {
|
|
|
293
606
|
default: string;
|
|
294
607
|
[modelKey: string]: string;
|
|
295
608
|
};
|
|
609
|
+
/** TUI toast lifetime in milliseconds for Magic Context notifications. Default: 5000. */
|
|
610
|
+
toast_duration_ms?: number;
|
|
296
611
|
execute_threshold_percentage: number | {
|
|
297
612
|
default: number;
|
|
298
613
|
[modelKey: string]: number;
|
|
@@ -320,7 +635,7 @@ export interface MagicContextConfig {
|
|
|
320
635
|
/**
|
|
321
636
|
* Controls whether and where Magic Context augments the system prompt
|
|
322
637
|
* (`## Magic Context` guidance, `<project-docs>`, `<user-profile>`,
|
|
323
|
-
*
|
|
638
|
+
* sticky date) inside `experimental.chat.system.transform`.
|
|
324
639
|
*
|
|
325
640
|
* Internal OpenCode hidden agents (title, summary, compaction) are
|
|
326
641
|
* always skipped automatically — that's a separate code path.
|
|
@@ -520,26 +835,165 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
520
835
|
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
521
836
|
variant: z.ZodOptional<z.ZodString>;
|
|
522
837
|
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
838
|
+
tasks: z.ZodDefault<z.ZodObject<{
|
|
839
|
+
"map-memories": z.ZodDefault<z.ZodObject<{
|
|
840
|
+
schedule: z.ZodDefault<z.ZodString>;
|
|
841
|
+
model: z.ZodOptional<z.ZodString>;
|
|
842
|
+
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
843
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
844
|
+
off: "off";
|
|
845
|
+
minimal: "minimal";
|
|
846
|
+
low: "low";
|
|
847
|
+
medium: "medium";
|
|
848
|
+
high: "high";
|
|
849
|
+
xhigh: "xhigh";
|
|
850
|
+
}>>;
|
|
851
|
+
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
852
|
+
}, z.core.$strip>>;
|
|
853
|
+
verify: z.ZodDefault<z.ZodObject<{
|
|
854
|
+
schedule: z.ZodDefault<z.ZodString>;
|
|
855
|
+
model: z.ZodOptional<z.ZodString>;
|
|
856
|
+
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
857
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
858
|
+
off: "off";
|
|
859
|
+
minimal: "minimal";
|
|
860
|
+
low: "low";
|
|
861
|
+
medium: "medium";
|
|
862
|
+
high: "high";
|
|
863
|
+
xhigh: "xhigh";
|
|
864
|
+
}>>;
|
|
865
|
+
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
866
|
+
}, z.core.$strip>>;
|
|
867
|
+
"verify-broad": z.ZodDefault<z.ZodObject<{
|
|
868
|
+
schedule: z.ZodDefault<z.ZodString>;
|
|
869
|
+
model: z.ZodOptional<z.ZodString>;
|
|
870
|
+
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
871
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
872
|
+
off: "off";
|
|
873
|
+
minimal: "minimal";
|
|
874
|
+
low: "low";
|
|
875
|
+
medium: "medium";
|
|
876
|
+
high: "high";
|
|
877
|
+
xhigh: "xhigh";
|
|
878
|
+
}>>;
|
|
879
|
+
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
880
|
+
}, z.core.$strip>>;
|
|
881
|
+
curate: z.ZodDefault<z.ZodObject<{
|
|
882
|
+
schedule: z.ZodDefault<z.ZodString>;
|
|
883
|
+
model: z.ZodOptional<z.ZodString>;
|
|
884
|
+
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
885
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
886
|
+
off: "off";
|
|
887
|
+
minimal: "minimal";
|
|
888
|
+
low: "low";
|
|
889
|
+
medium: "medium";
|
|
890
|
+
high: "high";
|
|
891
|
+
xhigh: "xhigh";
|
|
892
|
+
}>>;
|
|
893
|
+
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
894
|
+
}, z.core.$strip>>;
|
|
895
|
+
"classify-memories": z.ZodDefault<z.ZodObject<{
|
|
896
|
+
schedule: z.ZodDefault<z.ZodString>;
|
|
897
|
+
model: z.ZodOptional<z.ZodString>;
|
|
898
|
+
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
899
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
900
|
+
off: "off";
|
|
901
|
+
minimal: "minimal";
|
|
902
|
+
low: "low";
|
|
903
|
+
medium: "medium";
|
|
904
|
+
high: "high";
|
|
905
|
+
xhigh: "xhigh";
|
|
906
|
+
}>>;
|
|
907
|
+
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
908
|
+
}, z.core.$strip>>;
|
|
909
|
+
retrospective: z.ZodDefault<z.ZodObject<{
|
|
910
|
+
schedule: z.ZodDefault<z.ZodString>;
|
|
911
|
+
model: z.ZodOptional<z.ZodString>;
|
|
912
|
+
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
913
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
914
|
+
off: "off";
|
|
915
|
+
minimal: "minimal";
|
|
916
|
+
low: "low";
|
|
917
|
+
medium: "medium";
|
|
918
|
+
high: "high";
|
|
919
|
+
xhigh: "xhigh";
|
|
920
|
+
}>>;
|
|
921
|
+
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
922
|
+
}, z.core.$strip>>;
|
|
923
|
+
"maintain-docs": z.ZodDefault<z.ZodObject<{
|
|
924
|
+
schedule: z.ZodDefault<z.ZodString>;
|
|
925
|
+
model: z.ZodOptional<z.ZodString>;
|
|
926
|
+
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
927
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
928
|
+
off: "off";
|
|
929
|
+
minimal: "minimal";
|
|
930
|
+
low: "low";
|
|
931
|
+
medium: "medium";
|
|
932
|
+
high: "high";
|
|
933
|
+
xhigh: "xhigh";
|
|
934
|
+
}>>;
|
|
935
|
+
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
936
|
+
}, z.core.$strip>>;
|
|
937
|
+
"evaluate-smart-notes": z.ZodDefault<z.ZodObject<{
|
|
938
|
+
schedule: z.ZodDefault<z.ZodString>;
|
|
939
|
+
model: z.ZodOptional<z.ZodString>;
|
|
940
|
+
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
941
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
942
|
+
off: "off";
|
|
943
|
+
minimal: "minimal";
|
|
944
|
+
low: "low";
|
|
945
|
+
medium: "medium";
|
|
946
|
+
high: "high";
|
|
947
|
+
xhigh: "xhigh";
|
|
948
|
+
}>>;
|
|
949
|
+
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
950
|
+
}, z.core.$strip>>;
|
|
951
|
+
"review-user-memories": z.ZodDefault<z.ZodObject<{
|
|
952
|
+
schedule: z.ZodDefault<z.ZodString>;
|
|
953
|
+
model: z.ZodOptional<z.ZodString>;
|
|
954
|
+
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
955
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
956
|
+
off: "off";
|
|
957
|
+
minimal: "minimal";
|
|
958
|
+
low: "low";
|
|
959
|
+
medium: "medium";
|
|
960
|
+
high: "high";
|
|
961
|
+
xhigh: "xhigh";
|
|
962
|
+
}>>;
|
|
963
|
+
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
964
|
+
promotion_threshold: z.ZodOptional<z.ZodNumber>;
|
|
965
|
+
}, z.core.$strip>>;
|
|
966
|
+
"promote-primers": z.ZodDefault<z.ZodObject<{
|
|
967
|
+
schedule: z.ZodDefault<z.ZodString>;
|
|
968
|
+
model: z.ZodOptional<z.ZodString>;
|
|
969
|
+
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
970
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
971
|
+
off: "off";
|
|
972
|
+
minimal: "minimal";
|
|
973
|
+
low: "low";
|
|
974
|
+
medium: "medium";
|
|
975
|
+
high: "high";
|
|
976
|
+
xhigh: "xhigh";
|
|
977
|
+
}>>;
|
|
978
|
+
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
979
|
+
promotion_threshold: z.ZodOptional<z.ZodNumber>;
|
|
980
|
+
}, z.core.$strip>>;
|
|
981
|
+
"refresh-primers": z.ZodDefault<z.ZodObject<{
|
|
982
|
+
schedule: z.ZodDefault<z.ZodString>;
|
|
983
|
+
model: z.ZodOptional<z.ZodString>;
|
|
984
|
+
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
985
|
+
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
986
|
+
off: "off";
|
|
987
|
+
minimal: "minimal";
|
|
988
|
+
low: "low";
|
|
989
|
+
medium: "medium";
|
|
990
|
+
high: "high";
|
|
991
|
+
xhigh: "xhigh";
|
|
992
|
+
}>>;
|
|
993
|
+
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
994
|
+
}, z.core.$strip>>;
|
|
542
995
|
}, z.core.$strip>>;
|
|
996
|
+
inject_docs: z.ZodDefault<z.ZodBoolean>;
|
|
543
997
|
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
544
998
|
off: "off";
|
|
545
999
|
minimal: "minimal";
|
|
@@ -552,6 +1006,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
552
1006
|
cache_ttl: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
553
1007
|
default: z.ZodString;
|
|
554
1008
|
}, z.core.$catchall<z.ZodString>>]>>;
|
|
1009
|
+
toast_duration_ms: z.ZodDefault<z.ZodNumber>;
|
|
555
1010
|
execute_threshold_percentage: z.ZodDefault<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
556
1011
|
default: z.ZodNumber;
|
|
557
1012
|
}, z.core.$catchall<z.ZodNumber>>]>>;
|
|
@@ -701,6 +1156,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
701
1156
|
[x: string]: string;
|
|
702
1157
|
default: string;
|
|
703
1158
|
};
|
|
1159
|
+
toast_duration_ms: number;
|
|
704
1160
|
execute_threshold_percentage: number | {
|
|
705
1161
|
[x: string]: number;
|
|
706
1162
|
default: number;
|
|
@@ -785,20 +1241,88 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
785
1241
|
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
786
1242
|
} | undefined;
|
|
787
1243
|
dreamer?: {
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
1244
|
+
tasks: {
|
|
1245
|
+
"map-memories": {
|
|
1246
|
+
schedule: string;
|
|
1247
|
+
timeout_minutes: number;
|
|
1248
|
+
model?: string | undefined;
|
|
1249
|
+
fallback_models?: string | string[] | undefined;
|
|
1250
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1251
|
+
};
|
|
1252
|
+
verify: {
|
|
1253
|
+
schedule: string;
|
|
1254
|
+
timeout_minutes: number;
|
|
1255
|
+
model?: string | undefined;
|
|
1256
|
+
fallback_models?: string | string[] | undefined;
|
|
1257
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1258
|
+
};
|
|
1259
|
+
"verify-broad": {
|
|
1260
|
+
schedule: string;
|
|
1261
|
+
timeout_minutes: number;
|
|
1262
|
+
model?: string | undefined;
|
|
1263
|
+
fallback_models?: string | string[] | undefined;
|
|
1264
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1265
|
+
};
|
|
1266
|
+
curate: {
|
|
1267
|
+
schedule: string;
|
|
1268
|
+
timeout_minutes: number;
|
|
1269
|
+
model?: string | undefined;
|
|
1270
|
+
fallback_models?: string | string[] | undefined;
|
|
1271
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1272
|
+
};
|
|
1273
|
+
"classify-memories": {
|
|
1274
|
+
schedule: string;
|
|
1275
|
+
timeout_minutes: number;
|
|
1276
|
+
model?: string | undefined;
|
|
1277
|
+
fallback_models?: string | string[] | undefined;
|
|
1278
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1279
|
+
};
|
|
1280
|
+
retrospective: {
|
|
1281
|
+
schedule: string;
|
|
1282
|
+
timeout_minutes: number;
|
|
1283
|
+
model?: string | undefined;
|
|
1284
|
+
fallback_models?: string | string[] | undefined;
|
|
1285
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1286
|
+
};
|
|
1287
|
+
"maintain-docs": {
|
|
1288
|
+
schedule: string;
|
|
1289
|
+
timeout_minutes: number;
|
|
1290
|
+
model?: string | undefined;
|
|
1291
|
+
fallback_models?: string | string[] | undefined;
|
|
1292
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1293
|
+
};
|
|
1294
|
+
"evaluate-smart-notes": {
|
|
1295
|
+
schedule: string;
|
|
1296
|
+
timeout_minutes: number;
|
|
1297
|
+
model?: string | undefined;
|
|
1298
|
+
fallback_models?: string | string[] | undefined;
|
|
1299
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1300
|
+
};
|
|
1301
|
+
"review-user-memories": {
|
|
1302
|
+
schedule: string;
|
|
1303
|
+
timeout_minutes: number;
|
|
1304
|
+
model?: string | undefined;
|
|
1305
|
+
fallback_models?: string | string[] | undefined;
|
|
1306
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1307
|
+
promotion_threshold?: number | undefined;
|
|
1308
|
+
};
|
|
1309
|
+
"promote-primers": {
|
|
1310
|
+
schedule: string;
|
|
1311
|
+
timeout_minutes: number;
|
|
1312
|
+
model?: string | undefined;
|
|
1313
|
+
fallback_models?: string | string[] | undefined;
|
|
1314
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1315
|
+
promotion_threshold?: number | undefined;
|
|
1316
|
+
};
|
|
1317
|
+
"refresh-primers": {
|
|
1318
|
+
schedule: string;
|
|
1319
|
+
timeout_minutes: number;
|
|
1320
|
+
model?: string | undefined;
|
|
1321
|
+
fallback_models?: string | string[] | undefined;
|
|
1322
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1323
|
+
};
|
|
801
1324
|
};
|
|
1325
|
+
inject_docs: boolean;
|
|
802
1326
|
model?: string | undefined;
|
|
803
1327
|
temperature?: number | undefined;
|
|
804
1328
|
top_p?: number | undefined;
|