@cortexkit/opencode-magic-context 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/index.js +8 -2
  2. package/dist/shared/model-requirements.d.ts.map +1 -1
  3. package/package.json +1 -1
  4. package/dist/agents/builtin-agents.d.ts +0 -8
  5. package/dist/agents/builtin-agents.d.ts.map +0 -1
  6. package/dist/agents/types.d.ts +0 -19
  7. package/dist/agents/types.d.ts.map +0 -1
  8. package/dist/cli/model-fallback-requirements.d.ts +0 -2
  9. package/dist/cli/model-fallback-requirements.d.ts.map +0 -1
  10. package/dist/features/magic-context/dreamer/task-consolidate.d.ts +0 -9
  11. package/dist/features/magic-context/dreamer/task-consolidate.d.ts.map +0 -1
  12. package/dist/features/magic-context/dreamer/task-decay.d.ts +0 -11
  13. package/dist/features/magic-context/dreamer/task-decay.d.ts.map +0 -1
  14. package/dist/features/magic-context/memory/injection.d.ts +0 -10
  15. package/dist/features/magic-context/memory/injection.d.ts.map +0 -1
  16. package/dist/features/magic-context/sidekick/client.d.ts +0 -12
  17. package/dist/features/magic-context/sidekick/client.d.ts.map +0 -1
  18. package/dist/features/magic-context/sidekick/types.d.ts +0 -48
  19. package/dist/features/magic-context/sidekick/types.d.ts.map +0 -1
  20. package/dist/hooks/auto-slash-command/constants.d.ts +0 -2
  21. package/dist/hooks/auto-slash-command/constants.d.ts.map +0 -1
  22. package/dist/hooks/magic-context/get-error-message.d.ts +0 -2
  23. package/dist/hooks/magic-context/get-error-message.d.ts.map +0 -1
  24. package/dist/plugin/hooks/create-core-hooks.d.ts +0 -37
  25. package/dist/plugin/hooks/create-core-hooks.d.ts.map +0 -1
  26. package/dist/shared/agent-display-names.d.ts +0 -2
  27. package/dist/shared/agent-display-names.d.ts.map +0 -1
  28. package/dist/shared/permission-compat.d.ts +0 -6
  29. package/dist/shared/permission-compat.d.ts.map +0 -1
  30. package/dist/tools/ctx-recall/constants.d.ts +0 -4
  31. package/dist/tools/ctx-recall/constants.d.ts.map +0 -1
  32. package/dist/tools/ctx-recall/index.d.ts +0 -4
  33. package/dist/tools/ctx-recall/index.d.ts.map +0 -1
  34. package/dist/tools/ctx-recall/tools.d.ts +0 -4
  35. package/dist/tools/ctx-recall/tools.d.ts.map +0 -1
  36. package/dist/tools/ctx-recall/types.d.ts +0 -20
  37. package/dist/tools/ctx-recall/types.d.ts.map +0 -1
  38. package/dist/tools/look-at/assistant-message-extractor.d.ts +0 -2
  39. package/dist/tools/look-at/assistant-message-extractor.d.ts.map +0 -1
package/dist/index.js CHANGED
@@ -14335,14 +14335,20 @@ if (!isTestEnv) {
14335
14335
  var HISTORIAN_FALLBACK_CHAIN = [
14336
14336
  { providers: ["github-copilot", "anthropic", "opencode"], model: "claude-sonnet-4-6" },
14337
14337
  { providers: ["opencode-go"], model: "minimax-m2.7" },
14338
- { providers: ["zai-coding-plan", "bailian-coding-plan", "opencode-go", "opencode"], model: "glm-5" },
14338
+ {
14339
+ providers: ["zai-coding-plan", "bailian-coding-plan", "opencode-go", "opencode"],
14340
+ model: "glm-5"
14341
+ },
14339
14342
  { providers: ["openai", "github-copilot", "opencode"], model: "gpt-5.4" },
14340
14343
  { providers: ["google", "github-copilot", "opencode"], model: "gemini-3.1-pro" }
14341
14344
  ];
14342
14345
  var DREAMER_FALLBACK_CHAIN = [
14343
14346
  { providers: ["github-copilot", "anthropic", "opencode"], model: "claude-sonnet-4-6" },
14344
14347
  { providers: ["google", "github-copilot", "opencode"], model: "gemini-3-flash" },
14345
- { providers: ["zai-coding-plan", "bailian-coding-plan", "opencode-go", "opencode"], model: "glm-5" },
14348
+ {
14349
+ providers: ["zai-coding-plan", "bailian-coding-plan", "opencode-go", "opencode"],
14350
+ model: "glm-5"
14351
+ },
14346
14352
  { providers: ["opencode-go"], model: "minimax-m2.7" },
14347
14353
  { providers: ["github-copilot", "openai", "opencode"], model: "gpt-5.4-mini" }
14348
14354
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"model-requirements.d.ts","sourceRoot":"","sources":["../../src/shared/model-requirements.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG;IACxB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAChC,aAAa,EAAE,aAAa,EAAE,CAAC;CAClC,CAAC;AA+BF,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAI1E,CAAC;AAEF;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,CAQpE;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAI1E"}
1
+ {"version":3,"file":"model-requirements.d.ts","sourceRoot":"","sources":["../../src/shared/model-requirements.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG;IACxB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAChC,aAAa,EAAE,aAAa,EAAE,CAAC;CAClC,CAAC;AAqCF,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAI1E,CAAC;AAEF;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,CAQpE;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAI1E"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cortexkit/opencode-magic-context",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "description": "OpenCode plugin for Magic Context — cross-session memory and context management",
6
6
  "main": "dist/index.js",
@@ -1,8 +0,0 @@
1
- export interface BuiltinAgentDefinition {
2
- id: string;
3
- category: "utility";
4
- description: string;
5
- hidden: boolean;
6
- }
7
- export declare const BUILTIN_AGENTS: BuiltinAgentDefinition[];
8
- //# sourceMappingURL=builtin-agents.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"builtin-agents.d.ts","sourceRoot":"","sources":["../../src/agents/builtin-agents.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,sBAAsB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,SAAS,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,cAAc,EAAE,sBAAsB,EAalD,CAAC"}
@@ -1,19 +0,0 @@
1
- import type { AgentConfig } from "@opencode-ai/sdk";
2
- export type AgentMode = "primary" | "subagent" | "all";
3
- export interface AgentPromptMetadata {
4
- category: "exploration" | "specialist" | "advisor" | "utility";
5
- cost: "FREE" | "CHEAP" | "EXPENSIVE";
6
- triggers: Array<{
7
- domain: string;
8
- trigger: string;
9
- }>;
10
- useWhen?: string[];
11
- avoidWhen?: string[];
12
- dedicatedSection?: string;
13
- promptAlias?: string;
14
- keyTrigger?: string;
15
- }
16
- export type AgentFactory = ((model?: string) => AgentConfig) & {
17
- mode: AgentMode;
18
- };
19
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/agents/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,KAAK,CAAC;AAEvD,MAAM,WAAW,mBAAmB;IAChC,QAAQ,EAAE,aAAa,GAAG,YAAY,GAAG,SAAS,GAAG,SAAS,CAAC;IAC/D,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,WAAW,CAAC;IACrC,QAAQ,EAAE,KAAK,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACrD,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,WAAW,CAAC,GAAG;IAC3D,IAAI,EAAE,SAAS,CAAC;CACnB,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare function getAgentModelFallbackRequirements(agent: string): string[] | undefined;
2
- //# sourceMappingURL=model-fallback-requirements.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"model-fallback-requirements.d.ts","sourceRoot":"","sources":["../../src/cli/model-fallback-requirements.ts"],"names":[],"mappings":"AAEA,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAErF"}
@@ -1,9 +0,0 @@
1
- /** @deprecated Legacy deterministic dream task retained for fallback/debugging only. */
2
- import type { Database } from "bun:sqlite";
3
- export interface ConsolidationResult {
4
- clustersFound: number;
5
- memoriesMerged: number;
6
- memoriesSuperseded: number;
7
- }
8
- export declare function runConsolidateTask(db: Database, projectPath: string): Promise<ConsolidationResult>;
9
- //# sourceMappingURL=task-consolidate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"task-consolidate.d.ts","sourceRoot":"","sources":["../../../../src/features/magic-context/dreamer/task-consolidate.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AA4B3C,MAAM,WAAW,mBAAmB;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;CAC9B;AAmCD,wBAAsB,kBAAkB,CACpC,EAAE,EAAE,QAAQ,EACZ,WAAW,EAAE,MAAM,GACpB,OAAO,CAAC,mBAAmB,CAAC,CA0G9B"}
@@ -1,11 +0,0 @@
1
- /** @deprecated Legacy deterministic dream task retained for fallback/debugging only. */
2
- import type { Database } from "bun:sqlite";
3
- export interface DecayResult {
4
- expired: number;
5
- promoted: number;
6
- archived: number;
7
- }
8
- export declare function runDecayTask(db: Database, config: {
9
- promotionThreshold: number;
10
- }, projectPath: string): Promise<DecayResult>;
11
- //# sourceMappingURL=task-decay.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"task-decay.d.ts","sourceRoot":"","sources":["../../../../src/features/magic-context/dreamer/task-decay.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAS3C,MAAM,WAAW,WAAW;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CACpB;AAMD,wBAAsB,YAAY,CAC9B,EAAE,EAAE,QAAQ,EACZ,MAAM,EAAE;IAAE,kBAAkB,EAAE,MAAM,CAAA;CAAE,EACtC,WAAW,EAAE,MAAM,GACpB,OAAO,CAAC,WAAW,CAAC,CAqDtB"}
@@ -1,10 +0,0 @@
1
- import type { Database } from "bun:sqlite";
2
- import type { SidekickConfig, SidekickRunState } from "../sidekick/types";
3
- /**
4
- * Build the <project-memory> XML injection block from stored memories.
5
- * Returns null if no memories are available for the project.
6
- *
7
- * Budget is in approximate tokens (~3.5 chars per token).
8
- */
9
- export declare function buildMemoryInjectionBlock(db: Database, projectPath: string, budgetTokens: number, sidekickConfig?: SidekickConfig, sidekickState?: SidekickRunState, sessionId?: string, userMessage?: string): Promise<string | null>;
10
- //# sourceMappingURL=injection.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"injection.d.ts","sourceRoot":"","sources":["../../../../src/features/magic-context/memory/injection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAG3C,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAwD1E;;;;;GAKG;AACH,wBAAsB,yBAAyB,CAC3C,EAAE,EAAE,QAAQ,EACZ,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,cAAc,CAAC,EAAE,cAAc,EAC/B,aAAa,CAAC,EAAE,gBAAgB,EAChC,SAAS,CAAC,EAAE,MAAM,EAClB,WAAW,CAAC,EAAE,MAAM,GACrB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CA4ExB"}
@@ -1,12 +0,0 @@
1
- import type { OpenAIChatCompletionResponse, OpenAIChatMessage, OpenAIChatTool } from "./types";
2
- export declare function chatCompletions(args: {
3
- endpoint: string;
4
- apiKey: string;
5
- model: string;
6
- messages: OpenAIChatMessage[];
7
- timeoutMs: number;
8
- tools?: OpenAIChatTool[];
9
- temperature?: number;
10
- sessionId?: string;
11
- }): Promise<OpenAIChatCompletionResponse>;
12
- //# sourceMappingURL=client.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/features/magic-context/sidekick/client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,4BAA4B,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAe/F,wBAAsB,eAAe,CAAC,IAAI,EAAE;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,cAAc,EAAE,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,OAAO,CAAC,4BAA4B,CAAC,CA2DxC"}
@@ -1,48 +0,0 @@
1
- export interface SidekickConfig {
2
- enabled: boolean;
3
- endpoint: string;
4
- model: string;
5
- api_key: string;
6
- max_tool_calls: number;
7
- timeout_ms: number;
8
- system_prompt?: string;
9
- }
10
- export type OpenAIMessageRole = "system" | "user" | "assistant" | "tool";
11
- export interface OpenAIChatToolFunction {
12
- name: string;
13
- description: string;
14
- parameters: Record<string, unknown>;
15
- }
16
- export interface OpenAIChatTool {
17
- type: "function";
18
- function: OpenAIChatToolFunction;
19
- }
20
- export interface OpenAIChatToolCall {
21
- id: string;
22
- type: "function";
23
- function: {
24
- name: string;
25
- arguments: string;
26
- };
27
- }
28
- export interface OpenAIChatMessage {
29
- role: OpenAIMessageRole;
30
- content: string | null;
31
- name?: string;
32
- tool_call_id?: string;
33
- tool_calls?: OpenAIChatToolCall[];
34
- }
35
- export interface OpenAIChatCompletionChoice {
36
- message: OpenAIChatMessage;
37
- finish_reason: string | null;
38
- }
39
- export interface OpenAIChatCompletionUsage {
40
- prompt_tokens?: number;
41
- completion_tokens?: number;
42
- total_tokens?: number;
43
- }
44
- export interface OpenAIChatCompletionResponse {
45
- choices: OpenAIChatCompletionChoice[];
46
- usage?: OpenAIChatCompletionUsage;
47
- }
48
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/features/magic-context/sidekick/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,MAAM,GAAG,WAAW,GAAG,MAAM,CAAC;AAEzE,MAAM,WAAW,sBAAsB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACvC;AAED,MAAM,WAAW,cAAc;IAC3B,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE,sBAAsB,CAAC;CACpC;AAED,MAAM,WAAW,kBAAkB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;KACrB,CAAC;CACL;AAED,MAAM,WAAW,iBAAiB;IAC9B,IAAI,EAAE,iBAAiB,CAAC;IACxB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,kBAAkB,EAAE,CAAC;CACrC;AAED,MAAM,WAAW,0BAA0B;IACvC,OAAO,EAAE,iBAAiB,CAAC;IAC3B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED,MAAM,WAAW,yBAAyB;IACtC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,4BAA4B;IACzC,OAAO,EAAE,0BAA0B,EAAE,CAAC;IACtC,KAAK,CAAC,EAAE,yBAAyB,CAAC;CACrC"}
@@ -1,2 +0,0 @@
1
- export declare const AUTO_SLASH_EXCLUDED_COMMANDS: readonly ["/ctx-dream"];
2
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/hooks/auto-slash-command/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,yBAA0B,CAAC"}
@@ -1,2 +0,0 @@
1
- export { getErrorMessage } from "../../shared/error-message";
2
- //# sourceMappingURL=get-error-message.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-error-message.d.ts","sourceRoot":"","sources":["../../../src/hooks/magic-context/get-error-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC"}
@@ -1,37 +0,0 @@
1
- import type { MagicContextPluginConfig } from "../../config";
2
- import type { PluginContext } from "../types";
3
- export declare function createCoreHooks(args: {
4
- ctx: PluginContext;
5
- pluginConfig: MagicContextPluginConfig;
6
- }): {
7
- magicContext: {
8
- "experimental.chat.messages.transform": (_input: Record<string, never>, output: {
9
- messages: unknown[];
10
- }) => Promise<void>;
11
- "experimental.chat.system.transform": (input: {
12
- sessionID?: string;
13
- }, output: {
14
- system: string[];
15
- }) => Promise<void>;
16
- "experimental.text.complete": (_input: {
17
- sessionID: string;
18
- messageID: string;
19
- partID: string;
20
- }, output: {
21
- text: string;
22
- }) => Promise<void>;
23
- "chat.message": (input: {
24
- sessionID?: string;
25
- variant?: string;
26
- }) => Promise<void>;
27
- event: (input: {
28
- event: {
29
- type: string;
30
- properties?: unknown;
31
- };
32
- }) => Promise<void>;
33
- "command.execute.before": (input: unknown, output: unknown) => Promise<unknown>;
34
- "tool.execute.after": (input: unknown) => Promise<void>;
35
- } | null;
36
- };
37
- //# sourceMappingURL=create-core-hooks.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-core-hooks.d.ts","sourceRoot":"","sources":["../../../src/plugin/hooks/create-core-hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAI9C,wBAAgB,eAAe,CAAC,IAAI,EAAE;IAClC,GAAG,EAAE,aAAa,CAAC;IACnB,YAAY,EAAE,wBAAwB,CAAC;CAC1C;;;;;;qBAGi2B,CAAC;;;;;;;;;;;;qBAA67B,CAAC;mBAAiB,CAAC;;;;;0BAAmjE,CAAC;;;;;;EADt2H"}
@@ -1,2 +0,0 @@
1
- export declare const AGENT_DISPLAY_NAMES: Record<string, string>;
2
- //# sourceMappingURL=agent-display-names.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agent-display-names.d.ts","sourceRoot":"","sources":["../../src/shared/agent-display-names.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAGtD,CAAC"}
@@ -1,6 +0,0 @@
1
- export type PermissionValue = "ask" | "allow" | "deny";
2
- export interface PermissionFormat {
3
- permission: Record<string, PermissionValue>;
4
- }
5
- export declare function createAgentToolAllowlist(allowTools: string[]): PermissionFormat;
6
- //# sourceMappingURL=permission-compat.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"permission-compat.d.ts","sourceRoot":"","sources":["../../src/shared/permission-compat.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,OAAO,GAAG,MAAM,CAAC;AAEvD,MAAM,WAAW,gBAAgB;IAC7B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;CAC/C;AAED,wBAAgB,wBAAwB,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,gBAAgB,CAO/E"}
@@ -1,4 +0,0 @@
1
- export declare const CTX_RECALL_TOOL_NAME = "ctx_recall";
2
- export declare const CTX_RECALL_DESCRIPTION = "Search cross-session project memories using natural language queries. Returns relevant memories ranked by semantic + keyword relevance. Use this to find previously stored architecture decisions, constraints, user preferences, config defaults, and other project knowledge.";
3
- export declare const DEFAULT_RECALL_LIMIT = 10;
4
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/tools/ctx-recall/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,eAAe,CAAC;AACjD,eAAO,MAAM,sBAAsB,oRAAoR,CAAC;AACxT,eAAO,MAAM,oBAAoB,KAAK,CAAC"}
@@ -1,4 +0,0 @@
1
- export * from "./constants";
2
- export * from "./tools";
3
- export * from "./types";
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tools/ctx-recall/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
@@ -1,4 +0,0 @@
1
- import { type ToolDefinition } from "@opencode-ai/plugin";
2
- import type { CtxRecallToolDeps } from "./types";
3
- export declare function createCtxRecallTools(deps: CtxRecallToolDeps): Record<string, ToolDefinition>;
4
- //# sourceMappingURL=tools.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/tools/ctx-recall/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAQ,MAAM,qBAAqB,CAAC;AAYhE,OAAO,KAAK,EAAkC,iBAAiB,EAAE,MAAM,SAAS,CAAC;AA4NjF,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAI5F"}
@@ -1,20 +0,0 @@
1
- import type { Database } from "bun:sqlite";
2
- export interface CtxRecallArgs {
3
- query: string;
4
- category?: string;
5
- limit?: number;
6
- }
7
- export interface CtxRecallToolDeps {
8
- db: Database;
9
- projectPath: string;
10
- memoryEnabled: boolean;
11
- embeddingEnabled: boolean;
12
- }
13
- export interface CtxRecallResult {
14
- id: number;
15
- category: string;
16
- content: string;
17
- score: number;
18
- source: string;
19
- }
20
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/tools/ctx-recall/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,WAAW,aAAa;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAC9B,EAAE,EAAE,QAAQ,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC;IACvB,gBAAgB,EAAE,OAAO,CAAC;CAC7B;AAED,MAAM,WAAW,eAAe;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB"}
@@ -1,2 +0,0 @@
1
- export declare function extractLatestAssistantText(messages: unknown): string | null;
2
- //# sourceMappingURL=assistant-message-extractor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"assistant-message-extractor.d.ts","sourceRoot":"","sources":["../../../src/tools/look-at/assistant-message-extractor.ts"],"names":[],"mappings":"AAwDA,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAiB3E"}