@cortexkit/opencode-magic-context 0.32.1 → 0.32.3
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/config/index.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/schema/magic-context.d.ts +82 -2
- package/dist/config/schema/magic-context.d.ts.map +1 -1
- package/dist/config/transform-mode.d.ts +15 -0
- package/dist/config/transform-mode.d.ts.map +1 -0
- package/dist/features/magic-context/compaction-marker.d.ts +2 -2
- package/dist/features/magic-context/compaction-marker.d.ts.map +1 -1
- package/dist/features/magic-context/compartment-embedding.d.ts.map +1 -1
- package/dist/features/magic-context/git-commits/indexer.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-provider.d.ts +6 -0
- package/dist/features/magic-context/memory/embedding-provider.d.ts.map +1 -1
- package/dist/features/magic-context/memory/embedding-synapse.d.ts +98 -0
- package/dist/features/magic-context/memory/embedding-synapse.d.ts.map +1 -0
- package/dist/features/magic-context/memory/embedding.d.ts +1 -1
- package/dist/features/magic-context/memory/embedding.d.ts.map +1 -1
- package/dist/features/magic-context/message-index-async.d.ts.map +1 -1
- package/dist/features/magic-context/migrations.d.ts +13 -0
- package/dist/features/magic-context/migrations.d.ts.map +1 -1
- package/dist/features/magic-context/project-embedding-registry.d.ts +27 -0
- package/dist/features/magic-context/project-embedding-registry.d.ts.map +1 -1
- package/dist/features/magic-context/search-measurement.d.ts +14 -0
- package/dist/features/magic-context/search-measurement.d.ts.map +1 -0
- package/dist/features/magic-context/search.d.ts +11 -1
- package/dist/features/magic-context/search.d.ts.map +1 -1
- package/dist/features/magic-context/storage-clone.d.ts +4 -0
- package/dist/features/magic-context/storage-clone.d.ts.map +1 -1
- package/dist/features/magic-context/storage-db.d.ts +7 -1
- package/dist/features/magic-context/storage-db.d.ts.map +1 -1
- package/dist/features/magic-context/storage-embedding-measurements.d.ts +60 -0
- package/dist/features/magic-context/storage-embedding-measurements.d.ts.map +1 -0
- package/dist/features/magic-context/storage-meta-persisted.d.ts +2 -0
- 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.d.ts +1 -0
- package/dist/features/magic-context/storage.d.ts.map +1 -1
- package/dist/hooks/magic-context/auto-search-runner.d.ts +7 -1
- package/dist/hooks/magic-context/auto-search-runner.d.ts.map +1 -1
- package/dist/hooks/magic-context/channel2-delivery.d.ts +2 -0
- package/dist/hooks/magic-context/channel2-delivery.d.ts.map +1 -1
- package/dist/hooks/magic-context/command-handler.d.ts +5 -0
- package/dist/hooks/magic-context/command-handler.d.ts.map +1 -1
- package/dist/hooks/magic-context/compaction-marker-manager.d.ts +9 -13
- package/dist/hooks/magic-context/compaction-marker-manager.d.ts.map +1 -1
- package/dist/hooks/magic-context/ctx-reduce-availability.d.ts +1 -1
- package/dist/hooks/magic-context/ctx-reduce-availability.d.ts.map +1 -1
- package/dist/hooks/magic-context/emergency-fail-closed.d.ts +7 -0
- package/dist/hooks/magic-context/emergency-fail-closed.d.ts.map +1 -0
- package/dist/hooks/magic-context/event-handler.d.ts.map +1 -1
- package/dist/hooks/magic-context/event-resolvers.d.ts +12 -6
- package/dist/hooks/magic-context/event-resolvers.d.ts.map +1 -1
- package/dist/hooks/magic-context/hook-handlers.d.ts +6 -0
- package/dist/hooks/magic-context/hook-handlers.d.ts.map +1 -1
- package/dist/hooks/magic-context/hook.d.ts +19 -3
- package/dist/hooks/magic-context/hook.d.ts.map +1 -1
- package/dist/hooks/magic-context/index.d.ts +1 -1
- package/dist/hooks/magic-context/index.d.ts.map +1 -1
- package/dist/hooks/magic-context/inject-compartments.d.ts.map +1 -1
- package/dist/hooks/magic-context/lkg-replay.d.ts +51 -0
- package/dist/hooks/magic-context/lkg-replay.d.ts.map +1 -0
- package/dist/hooks/magic-context/lkg-slot.d.ts +25 -0
- package/dist/hooks/magic-context/lkg-slot.d.ts.map +1 -0
- package/dist/hooks/magic-context/m0-token-breakdown.d.ts +2 -0
- package/dist/hooks/magic-context/m0-token-breakdown.d.ts.map +1 -1
- package/dist/hooks/magic-context/module-state-sync.d.ts +169 -0
- package/dist/hooks/magic-context/module-state-sync.d.ts.map +1 -0
- package/dist/hooks/magic-context/module-wire.d.ts +73 -0
- package/dist/hooks/magic-context/module-wire.d.ts.map +1 -0
- package/dist/hooks/magic-context/pass-outcome.d.ts +15 -0
- package/dist/hooks/magic-context/pass-outcome.d.ts.map +1 -0
- package/dist/hooks/magic-context/read-session-chunk.d.ts +2 -0
- package/dist/hooks/magic-context/read-session-chunk.d.ts.map +1 -1
- package/dist/hooks/magic-context/read-session-raw.d.ts +6 -0
- package/dist/hooks/magic-context/read-session-raw.d.ts.map +1 -1
- package/dist/hooks/magic-context/recomp-orchestrator.d.ts.map +1 -1
- package/dist/hooks/magic-context/rust-mode-transform.d.ts +67 -0
- package/dist/hooks/magic-context/rust-mode-transform.d.ts.map +1 -0
- package/dist/hooks/magic-context/shadow-sender.d.ts +24 -27
- package/dist/hooks/magic-context/shadow-sender.d.ts.map +1 -1
- package/dist/hooks/magic-context/tag-messages.d.ts +4 -0
- package/dist/hooks/magic-context/tag-messages.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-context-state.d.ts +1 -1
- package/dist/hooks/magic-context/transform-context-state.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts +22 -0
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform.d.ts +9 -0
- package/dist/hooks/magic-context/transform.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +34220 -30081
- package/dist/plugin/boot-quiet.d.ts +12 -0
- package/dist/plugin/boot-quiet.d.ts.map +1 -0
- package/dist/plugin/dream-timer.d.ts +6 -2
- package/dist/plugin/dream-timer.d.ts.map +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/embedding-routing.d.ts +32 -0
- package/dist/plugin/embedding-routing.d.ts.map +1 -0
- package/dist/plugin/hooks/create-session-hooks.d.ts +54 -2
- package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
- package/dist/plugin/messages-transform.d.ts +4 -3
- package/dist/plugin/messages-transform.d.ts.map +1 -1
- package/dist/plugin/rpc-handlers.d.ts +18 -3
- package/dist/plugin/rpc-handlers.d.ts.map +1 -1
- package/dist/plugin/rust-tool-backends.d.ts +10 -0
- package/dist/plugin/rust-tool-backends.d.ts.map +1 -0
- package/dist/plugin/tool-registry.d.ts +2 -0
- package/dist/plugin/tool-registry.d.ts.map +1 -1
- package/dist/shared/rpc-types.d.ts +3 -0
- package/dist/shared/rpc-types.d.ts.map +1 -1
- package/dist/tools/ctx-memory/tools.d.ts.map +1 -1
- package/dist/tools/ctx-memory/types.d.ts +2 -0
- package/dist/tools/ctx-memory/types.d.ts.map +1 -1
- package/dist/tools/ctx-reduce/tools.d.ts +2 -0
- package/dist/tools/ctx-reduce/tools.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/shared/rpc-types.ts +3 -0
- package/src/tui/index.tsx +9 -0
- package/src/tui-compiled/index.tsx +42 -6
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Background maintenance waits after the first plugin construction so a
|
|
3
|
+
* sibling process can finish its startup reads and migrations before writers
|
|
4
|
+
* begin. This is intentionally fixed rather than user-configurable.
|
|
5
|
+
*/
|
|
6
|
+
export declare const BOOT_QUIET_MS = 120000;
|
|
7
|
+
export declare function beginBootQuietPeriod(now?: number): void;
|
|
8
|
+
export declare function bootQuietRemainingMs(now?: number): number;
|
|
9
|
+
export declare function scheduleAfterBootQuiet(task: () => void, additionalDelayMs?: number): ReturnType<typeof setTimeout>;
|
|
10
|
+
/** Test seam for deterministic fake-timer coverage. */
|
|
11
|
+
export declare function setBootQuietPeriodForTests(startAtMs: number | null): void;
|
|
12
|
+
//# sourceMappingURL=boot-quiet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boot-quiet.d.ts","sourceRoot":"","sources":["../../src/plugin/boot-quiet.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,aAAa,SAAU,CAAC;AAIrC,wBAAgB,oBAAoB,CAAC,GAAG,SAAa,GAAG,IAAI,CAE3D;AAED,wBAAgB,oBAAoB,CAAC,GAAG,SAAa,GAAG,MAAM,CAE7D;AAED,wBAAgB,sBAAsB,CAClC,IAAI,EAAE,MAAM,IAAI,EAChB,iBAAiB,SAAI,GACtB,UAAU,CAAC,OAAO,UAAU,CAAC,CAI/B;AAED,uDAAuD;AACvD,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAEzE"}
|
|
@@ -20,6 +20,10 @@ interface ProjectRegistration {
|
|
|
20
20
|
since_days: number;
|
|
21
21
|
max_commits: number;
|
|
22
22
|
};
|
|
23
|
+
memoryEnabled?: boolean;
|
|
24
|
+
embeddingConfig?: {
|
|
25
|
+
provider?: string;
|
|
26
|
+
};
|
|
23
27
|
ensureRegistered: (directory: string, db: Database) => Promise<void>;
|
|
24
28
|
/**
|
|
25
29
|
* Per-registration retrospective raw-source provider factory. Each harness
|
|
@@ -42,8 +46,8 @@ interface ProjectRegistration {
|
|
|
42
46
|
* timer. The timer itself is a singleton (we only need one setInterval per
|
|
43
47
|
* process), but every registered project gets its per-directory work — git
|
|
44
48
|
* commit indexing, dream schedule check, dream queue processing — on each
|
|
45
|
-
*
|
|
46
|
-
*
|
|
49
|
+
* tick. The first registration schedules a quiet-period startup pass so
|
|
50
|
+
* fresh installs do not create a writer burst during concurrent boot.
|
|
47
51
|
*
|
|
48
52
|
* Returns a cleanup that removes this project's registration. The timer
|
|
49
53
|
* itself stops only when the last project unregisters.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dream-timer.d.ts","sourceRoot":"","sources":["../../src/plugin/dream-timer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AASpE,OAAO,EAEH,KAAK,wBAAwB,EAChC,MAAM,8DAA8D,CAAC;AA6BtE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAGpF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"dream-timer.d.ts","sourceRoot":"","sources":["../../src/plugin/dream-timer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AASpE,OAAO,EAEH,KAAK,wBAAwB,EAChC,MAAM,8DAA8D,CAAC;AA6BtE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAGpF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAS7C;;;;;GAKG;AACH,UAAU,mBAAmB;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IAChC,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE;QAChB,OAAO,EAAE,OAAO,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC;KACvB,CAAC;IACF,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,eAAe,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACxC,gBAAgB,EAAE,CAAC,SAAS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AA2B,CAAC;IAAE,SAAS,EAAE,eAAe,CAAA;CAAE,CAAC,GACtE,IAAI,CAiBN;AAED,wBAAgB,mBAAmB,CAC/B,EAAE,EAAE,QAAQ,EACZ,eAAe,EAAE,MAAM,EACvB,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,2BAA2B,CAAC;IAAE,SAAS,EAAE,eAAe,CAAA;CAAE,CAAC,GACtE,OAAO,CAsBT;AAED,wBAAgB,wCAAwC,IAAI,IAAI,CAE/D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embedding-bootstrap.d.ts","sourceRoot":"","sources":["../../src/plugin/embedding-bootstrap.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"embedding-bootstrap.d.ts","sourceRoot":"","sources":["../../src/plugin/embedding-bootstrap.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAIjD,wBAAsB,4CAA4C,CAC9D,SAAS,EAAE,MAAM,EACjB,EAAE,EAAE,QAAQ,GACb,OAAO,CAAC,IAAI,CAAC,CA2Bf"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { EmbeddingConfig, MagicContextConfig } from "../config/schema/magic-context";
|
|
2
|
+
export interface ResolvedSynapseEmbeddingConfig {
|
|
3
|
+
provider: "synapse";
|
|
4
|
+
model: string;
|
|
5
|
+
max_input_tokens: 8192;
|
|
6
|
+
synapse_connection_file: string;
|
|
7
|
+
synapse_fingerprint: string;
|
|
8
|
+
synapse_table_epoch: number;
|
|
9
|
+
synapse_dims?: number;
|
|
10
|
+
synapse_recommended_batch?: number;
|
|
11
|
+
synapse_provenance?: unknown;
|
|
12
|
+
}
|
|
13
|
+
export interface ResolvedEmbeddingRouting {
|
|
14
|
+
/** Provider config for the authoritative lane. */
|
|
15
|
+
primary: EmbeddingConfig | ResolvedSynapseEmbeddingConfig;
|
|
16
|
+
/** Separate Synapse config for the developer mirror, when armed. */
|
|
17
|
+
shadow: ResolvedSynapseEmbeddingConfig | null;
|
|
18
|
+
/** Human-readable warnings produced while selecting a lane. */
|
|
19
|
+
warnings: string[];
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Resolve daemon availability before registration so a fallback vector can never
|
|
23
|
+
* be written under a Synapse identity. The registry receives only the selected
|
|
24
|
+
* lane's provider fields, not the raw routing controls.
|
|
25
|
+
*/
|
|
26
|
+
export declare function resolveEmbeddingRouting(args: {
|
|
27
|
+
config: MagicContextConfig;
|
|
28
|
+
projectRoot: string;
|
|
29
|
+
session?: string;
|
|
30
|
+
}): Promise<ResolvedEmbeddingRouting>;
|
|
31
|
+
export declare function getResolvedSynapseProviderIdentity(config: ResolvedSynapseEmbeddingConfig): string;
|
|
32
|
+
//# sourceMappingURL=embedding-routing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embedding-routing.d.ts","sourceRoot":"","sources":["../../src/plugin/embedding-routing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,eAAe,EAEf,kBAAkB,EACrB,MAAM,gCAAgC,CAAC;AAUxC,MAAM,WAAW,8BAA8B;IAC3C,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,IAAI,CAAC;IACvB,uBAAuB,EAAE,MAAM,CAAC;IAChC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mBAAmB,EAAE,MAAM,CAAC;IAG5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAChC;AAQD,MAAM,WAAW,wBAAwB;IACrC,kDAAkD;IAClD,OAAO,EAAE,eAAe,GAAG,8BAA8B,CAAC;IAC1D,oEAAoE;IACpE,MAAM,EAAE,8BAA8B,GAAG,IAAI,CAAC;IAC9C,+DAA+D;IAC/D,QAAQ,EAAE,MAAM,EAAE,CAAC;CACtB;AA8GD;;;;GAIG;AACH,wBAAsB,uBAAuB,CAAC,IAAI,EAAE;IAChD,MAAM,EAAE,kBAAkB,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,OAAO,CAAC,wBAAwB,CAAC,CA4EpC;AAED,wBAAgB,kCAAkC,CAAC,MAAM,EAAE,8BAA8B,GAAG,MAAM,CAEjG"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { MagicContextPluginConfig } from "../../config";
|
|
2
2
|
import type { LiveSessionState } from "../../hooks/magic-context/live-session-state";
|
|
3
|
+
import type { RustModeModuleClient } from "../../hooks/magic-context/rust-mode-transform";
|
|
3
4
|
import type { PluginContext } from "../types";
|
|
4
5
|
/**
|
|
5
6
|
* Map the full plugin config down to the per-session hook config. Pure and
|
|
@@ -23,6 +24,7 @@ export declare function buildMagicContextHookConfig(pluginConfig: MagicContextPl
|
|
|
23
24
|
subtask?: boolean;
|
|
24
25
|
}>;
|
|
25
26
|
enabled: boolean;
|
|
27
|
+
transform_mode: "ts" | "rust";
|
|
26
28
|
auto_update?: boolean;
|
|
27
29
|
language?: string;
|
|
28
30
|
historian?: import("../../config/schema").HistorianConfig;
|
|
@@ -63,6 +65,8 @@ export declare function buildMagicContextHookConfig(pluginConfig: MagicContextPl
|
|
|
63
65
|
min_chars: number;
|
|
64
66
|
};
|
|
65
67
|
embedding: import("../../config/schema").EmbeddingConfig;
|
|
68
|
+
subc?: import("../../config/schema").SubcConfig;
|
|
69
|
+
shadow_embedding?: import("../../config/schema").ShadowEmbeddingConfig;
|
|
66
70
|
memory: {
|
|
67
71
|
enabled: boolean;
|
|
68
72
|
injection_budget_tokens: number;
|
|
@@ -88,8 +92,9 @@ export declare function createSessionHooks(args: {
|
|
|
88
92
|
ctx: PluginContext;
|
|
89
93
|
pluginConfig: MagicContextPluginConfig;
|
|
90
94
|
liveSessionState: LiveSessionState;
|
|
95
|
+
rustModeModuleClient?: RustModeModuleClient;
|
|
91
96
|
}): {
|
|
92
|
-
magicContext: {
|
|
97
|
+
magicContext: ({
|
|
93
98
|
"experimental.chat.messages.transform": (_input: Record<string, never>, output: {
|
|
94
99
|
messages: unknown[];
|
|
95
100
|
}) => Promise<void>;
|
|
@@ -122,6 +127,53 @@ export declare function createSessionHooks(args: {
|
|
|
122
127
|
}) => Promise<void>;
|
|
123
128
|
"command.execute.before": (input: unknown, output: unknown) => Promise<unknown>;
|
|
124
129
|
"tool.execute.after": (input: unknown, output?: unknown) => Promise<void>;
|
|
125
|
-
}
|
|
130
|
+
} & {
|
|
131
|
+
rustToolBackends?: import("../rust-tool-backends").RustToolBackends;
|
|
132
|
+
}) | null;
|
|
133
|
+
rustToolBackends: import("../rust-tool-backends").RustToolBackends | undefined;
|
|
126
134
|
};
|
|
135
|
+
export declare function createSessionHooksAsync(args: {
|
|
136
|
+
ctx: PluginContext;
|
|
137
|
+
pluginConfig: MagicContextPluginConfig;
|
|
138
|
+
liveSessionState: LiveSessionState;
|
|
139
|
+
rustModeModuleClient?: RustModeModuleClient;
|
|
140
|
+
}): Promise<{
|
|
141
|
+
magicContext: ({
|
|
142
|
+
"experimental.chat.messages.transform": (_input: Record<string, never>, output: {
|
|
143
|
+
messages: unknown[];
|
|
144
|
+
}) => Promise<void>;
|
|
145
|
+
"experimental.chat.system.transform": (input: {
|
|
146
|
+
sessionID?: string;
|
|
147
|
+
}, output: {
|
|
148
|
+
system: string[];
|
|
149
|
+
}) => Promise<void>;
|
|
150
|
+
"experimental.text.complete": (_input: {
|
|
151
|
+
sessionID: string;
|
|
152
|
+
messageID: string;
|
|
153
|
+
partID: string;
|
|
154
|
+
}, output: {
|
|
155
|
+
text: string;
|
|
156
|
+
}) => Promise<void>;
|
|
157
|
+
"chat.message": (input: {
|
|
158
|
+
sessionID?: string;
|
|
159
|
+
variant?: string;
|
|
160
|
+
agent?: string;
|
|
161
|
+
model?: {
|
|
162
|
+
providerID?: string;
|
|
163
|
+
modelID?: string;
|
|
164
|
+
};
|
|
165
|
+
}) => Promise<void>;
|
|
166
|
+
event: (input: {
|
|
167
|
+
event: {
|
|
168
|
+
type: string;
|
|
169
|
+
properties?: unknown;
|
|
170
|
+
};
|
|
171
|
+
}) => Promise<void>;
|
|
172
|
+
"command.execute.before": (input: unknown, output: unknown) => Promise<unknown>;
|
|
173
|
+
"tool.execute.after": (input: unknown, output?: unknown) => Promise<void>;
|
|
174
|
+
} & {
|
|
175
|
+
rustToolBackends?: import("../rust-tool-backends").RustToolBackends;
|
|
176
|
+
}) | null;
|
|
177
|
+
rustToolBackends: import("../rust-tool-backends").RustToolBackends | undefined;
|
|
178
|
+
}>;
|
|
127
179
|
//# sourceMappingURL=create-session-hooks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-session-hooks.d.ts","sourceRoot":"","sources":["../../../src/plugin/hooks/create-session-hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAO7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AACrF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"create-session-hooks.d.ts","sourceRoot":"","sources":["../../../src/plugin/hooks/create-session-hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAO7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AACrF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AAC1F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,YAAY,EAAE,wBAAwB;;;;;;;;;mBAAhD,CAAC;aAA2B,CAAC;aAS3D,CARC;eAA6B,CAAC;;;;;;;;;;;;;;eAuF0nb,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAzE7pb;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE;IACrC,GAAG,EAAE,aAAa,CAAC;IACnB,YAAY,EAAE,wBAAwB,CAAC;IACvC,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;CAC/C;;;;;;qBAkEwyI,CAAC;;;;;;;;;;;;qBAAjvD,CAAC;mBAAyB,CAAC;iBAAuB,CAAC;iBAAuB,CAAC;0BAAc,CAAC;uBAAiB,CAAC;;;;;;0BAAk82C,CAAC;;;;;;;;;EArCvm8C;AAED,wBAAsB,uBAAuB,CAAC,IAAI,EAAE;IAChD,GAAG,EAAE,aAAa,CAAC;IACnB,YAAY,EAAE,wBAAwB,CAAC;IACvC,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;CAC/C;;;;;;qBA8BwyI,CAAC;;;;;;;;;;;;qBAAjvD,CAAC;mBAAyB,CAAC;iBAAuB,CAAC;iBAAuB,CAAC;0BAAc,CAAC;uBAAiB,CAAC;;;;;;0BAAk82C,CAAC;;;;;;;;;GADvm8C"}
|
|
@@ -30,8 +30,9 @@ type MessagesTransformOutput = {
|
|
|
30
30
|
* observability.
|
|
31
31
|
* 3. Return with messages unmodified for this pass.
|
|
32
32
|
*
|
|
33
|
-
*
|
|
34
|
-
* errors into user-visible prompt failures.
|
|
33
|
+
* Ordinary transform failures are not rethrown because OpenCode's Effect pipeline
|
|
34
|
+
* turns thrown errors into user-visible prompt failures. EmergencyFailClosedError
|
|
35
|
+
* is the intentional exception and is rethrown. We accept degraded behavior
|
|
35
36
|
* (no injection / no drops this turn) rather than blocking the user.
|
|
36
37
|
*
|
|
37
38
|
* Correctness is preserved because all persistent state mutations inside
|
|
@@ -41,6 +42,6 @@ export declare function createMessagesTransformHandler(args: {
|
|
|
41
42
|
magicContext: {
|
|
42
43
|
"experimental.chat.messages.transform"?: (input: Record<string, never>, output: MessagesTransformOutput) => Promise<void>;
|
|
43
44
|
} | null;
|
|
44
|
-
}): (input: Record<string, never>, output: MessagesTransformOutput) => Promise<
|
|
45
|
+
}): (input: Record<string, never>, output: MessagesTransformOutput) => Promise<MessageWithParts[]>;
|
|
45
46
|
export {};
|
|
46
47
|
//# sourceMappingURL=messages-transform.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages-transform.d.ts","sourceRoot":"","sources":["../../src/plugin/messages-transform.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"messages-transform.d.ts","sourceRoot":"","sources":["../../src/plugin/messages-transform.ts"],"names":[],"mappings":"AAmBA,KAAK,gBAAgB,GAAG;IACpB,IAAI,EAAE,OAAO,kBAAkB,EAAE,OAAO,CAAC;IACzC,KAAK,EAAE,OAAO,kBAAkB,EAAE,IAAI,EAAE,CAAC;CAC5C,CAAC;AAEF,KAAK,uBAAuB,GAAG;IAAE,QAAQ,EAAE,gBAAgB,EAAE,CAAA;CAAE,CAAC;AAMhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,8BAA8B,CAAC,IAAI,EAAE;IACjD,YAAY,EAAE;QACV,sCAAsC,CAAC,EAAE,CACrC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EAC5B,MAAM,EAAE,uBAAuB,KAC9B,OAAO,CAAC,IAAI,CAAC,CAAC;KACtB,GAAG,IAAI,CAAC;CACZ,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,uBAAuB,KAAK,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAuHjG"}
|
|
@@ -5,13 +5,27 @@
|
|
|
5
5
|
import type { MagicContextConfig } from "../config/schema/magic-context";
|
|
6
6
|
import { type ContextDatabase as Database } from "../features/magic-context/storage";
|
|
7
7
|
import type { LiveSessionState } from "../hooks/magic-context/live-session-state";
|
|
8
|
+
import type { RustModeModuleClient } from "../hooks/magic-context/rust-mode-transform";
|
|
8
9
|
import type { MagicContextRpcServer } from "../shared/rpc-server";
|
|
9
10
|
import type { SidebarSnapshot, StatusDetail } from "../shared/rpc-types";
|
|
10
|
-
export
|
|
11
|
+
export interface RustSessionStatus {
|
|
12
|
+
usage?: {
|
|
13
|
+
current_total_input_tokens?: number;
|
|
14
|
+
context_limit_tokens?: number;
|
|
15
|
+
};
|
|
16
|
+
boundary_present?: boolean;
|
|
17
|
+
coverage_ordinal?: number | null;
|
|
18
|
+
compartment_count?: number;
|
|
19
|
+
compartment_tokens?: number;
|
|
20
|
+
pending_drop_count?: number;
|
|
21
|
+
wrapup_active?: boolean;
|
|
22
|
+
wrapup_rounds?: number | null;
|
|
23
|
+
}
|
|
24
|
+
export declare function buildSidebarSnapshot(db: Database, sessionId: string, directory: string, liveSessionState?: LiveSessionState, injectionBudgetTokens?: number, config?: Record<string, unknown>, moduleStatus?: RustSessionStatus): SidebarSnapshot;
|
|
11
25
|
/** Convert snapshot-build failures into a transport-failure envelope. A genuine
|
|
12
26
|
* zero snapshot remains a successful value so deleted sessions stay deleted. */
|
|
13
|
-
export declare function buildSidebarSnapshotRpcResponse(db: Database, sessionId: string, directory: string, liveSessionState?: LiveSessionState, injectionBudgetTokens?: number, config?: Record<string, unknown
|
|
14
|
-
export declare function buildStatusDetail(db: Database, sessionId: string, directory: string, modelKey?: string, config?: Record<string, unknown>, liveSessionState?: LiveSessionState, injectionBudgetTokens?: number): StatusDetail;
|
|
27
|
+
export declare function buildSidebarSnapshotRpcResponse(db: Database, sessionId: string, directory: string, liveSessionState?: LiveSessionState, injectionBudgetTokens?: number, config?: Record<string, unknown>, moduleStatus?: RustSessionStatus): Record<string, unknown>;
|
|
28
|
+
export declare function buildStatusDetail(db: Database, sessionId: string, directory: string, modelKey?: string, config?: Record<string, unknown>, liveSessionState?: LiveSessionState, injectionBudgetTokens?: number, moduleStatus?: RustSessionStatus): StatusDetail;
|
|
15
29
|
/**
|
|
16
30
|
* Register all RPC handlers on the server.
|
|
17
31
|
*/
|
|
@@ -20,5 +34,6 @@ export declare function registerRpcHandlers(rpcServer: MagicContextRpcServer, ar
|
|
|
20
34
|
config: MagicContextConfig;
|
|
21
35
|
client: unknown;
|
|
22
36
|
liveSessionState: LiveSessionState;
|
|
37
|
+
rustModeModuleClient?: RustModeModuleClient;
|
|
23
38
|
}): void;
|
|
24
39
|
//# sourceMappingURL=rpc-handlers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpc-handlers.d.ts","sourceRoot":"","sources":["../../src/plugin/rpc-handlers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAIzE,OAAO,EACH,KAAK,eAAe,IAAI,QAAQ,EAGnC,MAAM,mCAAmC,CAAC;AAc3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"rpc-handlers.d.ts","sourceRoot":"","sources":["../../src/plugin/rpc-handlers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAIzE,OAAO,EACH,KAAK,eAAe,IAAI,QAAQ,EAGnC,MAAM,mCAAmC,CAAC;AAc3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAQlF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAavF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,KAAK,EAAe,eAAe,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAUtF,MAAM,WAAW,iBAAiB;IAC9B,KAAK,CAAC,EAAE;QAAE,0BAA0B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C9B,YAAY,CAAC,EAAE,iBAAiB,GACjC,YAAY,CA0Kd;AA4BD;;GAEG;AACH,wBAAgB,mBAAmB,CAC/B,SAAS,EAAE,qBAAqB,EAChC,IAAI,EAAE;IACF,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;CAC/C,GACF,IAAI,CAsPN"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface RustToolBackends {
|
|
2
|
+
reduce?: (args: {
|
|
3
|
+
sessionId: string;
|
|
4
|
+
projectRoot: string;
|
|
5
|
+
drop: string;
|
|
6
|
+
commandId: string;
|
|
7
|
+
}) => Promise<unknown>;
|
|
8
|
+
memorySync?: (sessionId: string) => void;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=rust-tool-backends.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rust-tool-backends.d.ts","sourceRoot":"","sources":["../../src/plugin/rust-tool-backends.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC7B,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE;QACZ,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;QACpB,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;KACrB,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACvB,UAAU,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5C"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { ToolDefinition } from "@opencode-ai/plugin";
|
|
2
2
|
import type { MagicContextPluginConfig } from "../config";
|
|
3
|
+
import type { RustToolBackends } from "./rust-tool-backends";
|
|
3
4
|
import type { PluginContext } from "./types";
|
|
4
5
|
export declare function createToolRegistry(args: {
|
|
5
6
|
ctx: PluginContext;
|
|
6
7
|
pluginConfig: MagicContextPluginConfig;
|
|
8
|
+
rustToolBackends?: RustToolBackends;
|
|
7
9
|
}): Record<string, ToolDefinition>;
|
|
8
10
|
//# sourceMappingURL=tool-registry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-registry.d.ts","sourceRoot":"","sources":["../../src/plugin/tool-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"tool-registry.d.ts","sourceRoot":"","sources":["../../src/plugin/tool-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAmB1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,wBAAgB,kBAAkB,CAAC,IAAI,EAAE;IACrC,GAAG,EAAE,aAAa,CAAC;IACnB,YAAY,EAAE,wBAAwB,CAAC;IACvC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACvC,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CA6FjC"}
|
|
@@ -66,6 +66,9 @@ export interface SidebarSnapshot {
|
|
|
66
66
|
* scheduler and transform paths.
|
|
67
67
|
*/
|
|
68
68
|
executeThreshold: number;
|
|
69
|
+
/** Rust module cache boundary state, when the session uses Rust authority mode. */
|
|
70
|
+
boundaryPresent?: boolean;
|
|
71
|
+
coverageOrdinal?: number | null;
|
|
69
72
|
newWorkTokens?: number | null;
|
|
70
73
|
totalInputTokens?: number | null;
|
|
71
74
|
/**
|
|
@@ -1 +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,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,OAAO,CAAA;KAAE,CAAC;IAClE,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,sBAAsB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/tools/ctx-memory/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAQ,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/tools/ctx-memory/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAQ,MAAM,qBAAqB,CAAC;AA2ChE,OAAO,EAKH,KAAK,iBAAiB,EACzB,MAAM,SAAS,CAAC;AA+tBjB,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAI5F"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { MemorySourceType } from "../../features/magic-context/memory";
|
|
2
|
+
import type { RustToolBackends } from "../../plugin/rust-tool-backends";
|
|
2
3
|
import type { Database } from "../../shared/sqlite";
|
|
3
4
|
export declare const CTX_MEMORY_ACTIONS: readonly ["write", "archive", "update", "merge"];
|
|
4
5
|
export declare const CTX_MEMORY_DREAMER_ACTIONS: readonly ["write", "archive", "update", "merge", "list"];
|
|
@@ -35,5 +36,6 @@ export interface CtxMemoryToolDeps {
|
|
|
35
36
|
embeddingEnabled?: boolean;
|
|
36
37
|
allowedActions?: CtxMemoryAction[];
|
|
37
38
|
sourceType?: MemorySourceType;
|
|
39
|
+
rustToolBackends?: RustToolBackends;
|
|
38
40
|
}
|
|
39
41
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/tools/ctx-memory/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAWpD,eAAO,MAAM,kBAAkB,kDAAmD,CAAC;AAEnF,eAAO,MAAM,0BAA0B,0DAA2C,CAAC;AAEnF,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1E,MAAM,WAAW,aAAa;IAC1B,MAAM,EAAE,eAAe,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IAC9B,EAAE,EAAE,QAAQ,CAAC;IACb,uBAAuB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7E;;;;;;;;;;OAUG;IACH,kBAAkB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;IAClD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,cAAc,CAAC,EAAE,eAAe,EAAE,CAAC;IACnC,UAAU,CAAC,EAAE,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/tools/ctx-memory/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAWpD,eAAO,MAAM,kBAAkB,kDAAmD,CAAC;AAEnF,eAAO,MAAM,0BAA0B,0DAA2C,CAAC;AAEnF,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1E,MAAM,WAAW,aAAa;IAC1B,MAAM,EAAE,eAAe,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IAC9B,EAAE,EAAE,QAAQ,CAAC;IACb,uBAAuB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7E;;;;;;;;;;OAUG;IACH,kBAAkB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;IAClD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,cAAc,CAAC,EAAE,eAAe,EAAE,CAAC;IACnC,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACvC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { type ToolDefinition } from "@opencode-ai/plugin";
|
|
2
|
+
import type { RustToolBackends } from "../../plugin/rust-tool-backends";
|
|
2
3
|
import type { Database } from "../../shared/sqlite";
|
|
3
4
|
export interface CtxReduceToolDeps {
|
|
4
5
|
db: Database;
|
|
5
6
|
protectedTags: number;
|
|
6
7
|
getSessionTokens?: (sessionId: string) => number;
|
|
8
|
+
rustToolBackends?: RustToolBackends;
|
|
7
9
|
}
|
|
8
10
|
export declare function createCtxReduceTools(deps: CtxReduceToolDeps): Record<string, ToolDefinition>;
|
|
9
11
|
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/tools/ctx-reduce/tools.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/tools/ctx-reduce/tools.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAQ,MAAM,qBAAqB,CAAC;AAShE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAExE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAIpD,MAAM,WAAW,iBAAiB;IAC9B,EAAE,EAAE,QAAQ,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;IACjD,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACvC;AAyLD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAI5F"}
|
package/package.json
CHANGED
package/src/shared/rpc-types.ts
CHANGED
|
@@ -67,6 +67,9 @@ export interface SidebarSnapshot {
|
|
|
67
67
|
* scheduler and transform paths.
|
|
68
68
|
*/
|
|
69
69
|
executeThreshold: number;
|
|
70
|
+
/** Rust module cache boundary state, when the session uses Rust authority mode. */
|
|
71
|
+
boundaryPresent?: boolean;
|
|
72
|
+
coverageOrdinal?: number | null;
|
|
70
73
|
newWorkTokens?: number | null;
|
|
71
74
|
totalInputTokens?: number | null;
|
|
72
75
|
/**
|
package/src/tui/index.tsx
CHANGED
|
@@ -333,6 +333,15 @@ const StatusDialog = (props: { api: TuiPluginApi; s: StatusDetail }) => {
|
|
|
333
333
|
<box marginTop={1}>
|
|
334
334
|
<text fg={t().text}><b>History Compression</b></text>
|
|
335
335
|
</box>
|
|
336
|
+
{typeof s().boundaryPresent === "boolean" && (
|
|
337
|
+
<R t={t()} l="Boundary" v={s().boundaryPresent ? "present" : "absent"} />
|
|
338
|
+
)}
|
|
339
|
+
{s().coverageOrdinal !== undefined && (
|
|
340
|
+
<R t={t()} l="Coverage ordinal" v={s().coverageOrdinal == null ? "none" : String(s().coverageOrdinal)} />
|
|
341
|
+
)}
|
|
342
|
+
{typeof s().boundaryPresent === "boolean" && (
|
|
343
|
+
<R t={t()} l="Compartments" v={String(s().compartmentCount)} />
|
|
344
|
+
)}
|
|
336
345
|
<R t={t()} l="History block" v={`~${fmt(s().historyBlockTokens)} tok`} />
|
|
337
346
|
{s().compressionBudget != null && (
|
|
338
347
|
<R t={t()} l="Budget" v={`~${fmt(s().compressionBudget!)} tok (${s().compressionUsage} used)`} />
|
|
@@ -676,6 +676,42 @@ const StatusDialog = props => {
|
|
|
676
676
|
_$setProp(_el$45, "marginTop", 1);
|
|
677
677
|
_$insertNode(_el$46, _el$47);
|
|
678
678
|
_$insertNode(_el$47, _$createTextNode(`History Compression`));
|
|
679
|
+
_$insert(_el$37, (() => {
|
|
680
|
+
var _c$3 = _$memo(() => typeof s().boundaryPresent === "boolean");
|
|
681
|
+
return () => _c$3() && _$createComponent(R, {
|
|
682
|
+
get t() {
|
|
683
|
+
return t();
|
|
684
|
+
},
|
|
685
|
+
l: "Boundary",
|
|
686
|
+
get v() {
|
|
687
|
+
return s().boundaryPresent ? "present" : "absent";
|
|
688
|
+
}
|
|
689
|
+
});
|
|
690
|
+
})(), null);
|
|
691
|
+
_$insert(_el$37, (() => {
|
|
692
|
+
var _c$4 = _$memo(() => s().coverageOrdinal !== undefined);
|
|
693
|
+
return () => _c$4() && _$createComponent(R, {
|
|
694
|
+
get t() {
|
|
695
|
+
return t();
|
|
696
|
+
},
|
|
697
|
+
l: "Coverage ordinal",
|
|
698
|
+
get v() {
|
|
699
|
+
return _$memo(() => s().coverageOrdinal == null)() ? "none" : String(s().coverageOrdinal);
|
|
700
|
+
}
|
|
701
|
+
});
|
|
702
|
+
})(), null);
|
|
703
|
+
_$insert(_el$37, (() => {
|
|
704
|
+
var _c$5 = _$memo(() => typeof s().boundaryPresent === "boolean");
|
|
705
|
+
return () => _c$5() && _$createComponent(R, {
|
|
706
|
+
get t() {
|
|
707
|
+
return t();
|
|
708
|
+
},
|
|
709
|
+
l: "Compartments",
|
|
710
|
+
get v() {
|
|
711
|
+
return String(s().compartmentCount);
|
|
712
|
+
}
|
|
713
|
+
});
|
|
714
|
+
})(), null);
|
|
679
715
|
_$insert(_el$37, _$createComponent(R, {
|
|
680
716
|
get t() {
|
|
681
717
|
return t();
|
|
@@ -686,8 +722,8 @@ const StatusDialog = props => {
|
|
|
686
722
|
}
|
|
687
723
|
}), null);
|
|
688
724
|
_$insert(_el$37, (() => {
|
|
689
|
-
var _c$
|
|
690
|
-
return () => _c$
|
|
725
|
+
var _c$6 = _$memo(() => s().compressionBudget != null);
|
|
726
|
+
return () => _c$6() && _$createComponent(R, {
|
|
691
727
|
get t() {
|
|
692
728
|
return t();
|
|
693
729
|
},
|
|
@@ -698,8 +734,8 @@ const StatusDialog = props => {
|
|
|
698
734
|
});
|
|
699
735
|
})(), null);
|
|
700
736
|
_$insert(_el$37, (() => {
|
|
701
|
-
var _c$
|
|
702
|
-
return () => _c$
|
|
737
|
+
var _c$7 = _$memo(() => !!s().lastDreamerRunAt);
|
|
738
|
+
return () => _c$7() && _$createComponent(R, {
|
|
703
739
|
get t() {
|
|
704
740
|
return t();
|
|
705
741
|
},
|
|
@@ -713,8 +749,8 @@ const StatusDialog = props => {
|
|
|
713
749
|
});
|
|
714
750
|
})(), null);
|
|
715
751
|
_$insert(_el$4, (() => {
|
|
716
|
-
var _c$
|
|
717
|
-
return () => _c$
|
|
752
|
+
var _c$8 = _$memo(() => !!s().lastTransformError);
|
|
753
|
+
return () => _c$8() && (() => {
|
|
718
754
|
var _el$62 = _$createElement("box"),
|
|
719
755
|
_el$63 = _$createElement("text"),
|
|
720
756
|
_el$64 = _$createTextNode(`⚠ `);
|