@aexol/spectral 0.8.5 → 0.8.7
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/agent/index.d.ts +1 -1
- package/dist/agent/index.d.ts.map +1 -1
- package/dist/agent/index.js +11 -11
- package/dist/cli.js +1 -1
- package/dist/commands/serve.d.ts +3 -3
- package/dist/commands/serve.d.ts.map +1 -1
- package/dist/commands/serve.js +5 -2
- package/dist/config.d.ts +1 -1
- package/dist/config.js +1 -1
- package/dist/designer/index.d.ts +3 -3
- package/dist/designer/index.d.ts.map +1 -1
- package/dist/designer/index.js +9 -9
- package/dist/extensions/aexol-mcp.d.ts +6 -6
- package/dist/extensions/aexol-mcp.d.ts.map +1 -1
- package/dist/extensions/aexol-mcp.js +12 -12
- package/dist/extensions/kanban-bridge.d.ts +2 -2
- package/dist/extensions/kanban-bridge.d.ts.map +1 -1
- package/dist/extensions/kanban-bridge.js +3 -3
- package/dist/extensions/openrouter-attribution.d.ts +1 -1
- package/dist/extensions/openrouter-attribution.d.ts.map +1 -1
- package/dist/extensions/openrouter-attribution.js +2 -2
- package/dist/extensions/spectral-vision-fallback.d.ts +1 -1
- package/dist/extensions/spectral-vision-fallback.d.ts.map +1 -1
- package/dist/extensions/spectral-vision-fallback.js +3 -3
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/mcp/commands.d.ts +1 -1
- package/dist/mcp/commands.d.ts.map +1 -1
- package/dist/mcp/commands.js +1 -1
- package/dist/mcp/config.d.ts +5 -5
- package/dist/mcp/config.d.ts.map +1 -1
- package/dist/mcp/config.js +15 -15
- package/dist/mcp/host-html-template.js +3 -3
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +15 -13
- package/dist/mcp/init.d.ts +1 -1
- package/dist/mcp/init.d.ts.map +1 -1
- package/dist/mcp/init.js +4 -4
- package/dist/mcp/mcp-oauth-provider.js +1 -1
- package/dist/mcp/proxy-modes.d.ts +1 -1
- package/dist/mcp/proxy-modes.d.ts.map +1 -1
- package/dist/mcp/proxy-modes.js +2 -2
- package/dist/mcp/server-manager.js +2 -2
- package/dist/mcp/state-getter.d.ts +14 -0
- package/dist/mcp/state-getter.d.ts.map +1 -0
- package/dist/mcp/state-getter.js +21 -0
- package/dist/mcp/tool-registrar.js +1 -1
- package/dist/mcp/ui-server.js +1 -1
- package/dist/mcp/ui-stream-types.d.ts +11 -11
- package/dist/mcp/ui-stream-types.d.ts.map +1 -1
- package/dist/mcp/ui-stream-types.js +5 -5
- package/dist/mcp/utils.d.ts +2 -2
- package/dist/mcp/utils.d.ts.map +1 -1
- package/dist/mcp/utils.js +10 -10
- package/dist/mcp-client.d.ts +1 -1
- package/dist/mcp-client.js +1 -1
- package/dist/memory/commands/status.d.ts +1 -1
- package/dist/memory/commands/status.d.ts.map +1 -1
- package/dist/memory/commands/status.js +2 -2
- package/dist/memory/commands/view.d.ts +1 -1
- package/dist/memory/commands/view.d.ts.map +1 -1
- package/dist/memory/commands/view.js +2 -2
- package/dist/memory/hooks/compaction-hook.d.ts +1 -1
- package/dist/memory/hooks/compaction-hook.d.ts.map +1 -1
- package/dist/memory/hooks/compaction-hook.js +5 -5
- package/dist/memory/hooks/compaction-trigger.d.ts +1 -1
- package/dist/memory/hooks/compaction-trigger.d.ts.map +1 -1
- package/dist/memory/hooks/compaction-trigger.js +3 -3
- package/dist/memory/hooks/observer-trigger.d.ts +1 -1
- package/dist/memory/hooks/observer-trigger.d.ts.map +1 -1
- package/dist/memory/hooks/observer-trigger.js +4 -4
- package/dist/memory/index.d.ts +1 -1
- package/dist/memory/index.d.ts.map +1 -1
- package/dist/memory/index.js +9 -9
- package/dist/memory/tools/read-project-observations.d.ts +1 -1
- package/dist/memory/tools/read-project-observations.d.ts.map +1 -1
- package/dist/memory/tools/read-project-observations.js +2 -2
- package/dist/memory/tools/recall-observation.d.ts +1 -1
- package/dist/memory/tools/recall-observation.d.ts.map +1 -1
- package/dist/memory/tools/recall-observation.js +2 -2
- package/dist/memory/tools/write-project-observation.d.ts +1 -1
- package/dist/memory/tools/write-project-observation.d.ts.map +1 -1
- package/dist/memory/tools/write-project-observation.js +2 -2
- package/dist/preflight.d.ts +1 -1
- package/dist/preflight.js +1 -1
- package/dist/relay/auto-research.d.ts +2 -2
- package/dist/relay/auto-research.js +34 -34
- package/dist/relay/dispatcher.d.ts +15 -6
- package/dist/relay/dispatcher.d.ts.map +1 -1
- package/dist/relay/dispatcher.js +33 -6
- package/dist/relay/models-fetch.d.ts +1 -1
- package/dist/relay/models-fetch.js +4 -4
- package/dist/sdk/ai/types.d.ts +1 -1
- package/dist/sdk/ai/utils/oauth/openai-codex.d.ts +1 -1
- package/dist/sdk/ai/utils/oauth/openai-codex.js +2 -2
- package/dist/sdk/coding-agent/core/agent-session.d.ts +2 -2
- package/dist/sdk/coding-agent/core/agent-session.js +3 -3
- package/dist/sdk/coding-agent/core/auth-storage.d.ts +2 -2
- package/dist/sdk/coding-agent/core/auth-storage.js +2 -2
- package/dist/sdk/coding-agent/core/bash-executor.js +1 -1
- package/dist/sdk/coding-agent/core/compaction/branch-summarization.js +1 -1
- package/dist/sdk/coding-agent/core/compaction/compaction.js +1 -1
- package/dist/sdk/coding-agent/core/extensions/loader.d.ts.map +1 -1
- package/dist/sdk/coding-agent/core/extensions/loader.js +18 -22
- package/dist/sdk/coding-agent/core/extensions/runner.d.ts.map +1 -1
- package/dist/sdk/coding-agent/core/extensions/runner.js +1 -1
- package/dist/sdk/coding-agent/core/extensions/types.d.ts +9 -9
- package/dist/sdk/coding-agent/core/extensions/types.d.ts.map +1 -1
- package/dist/sdk/coding-agent/core/package-manager.d.ts +1 -1
- package/dist/sdk/coding-agent/core/package-manager.d.ts.map +1 -1
- package/dist/sdk/coding-agent/core/package-manager.js +14 -14
- package/dist/sdk/coding-agent/core/sdk.d.ts +1 -1
- package/dist/sdk/coding-agent/core/sdk.js +2 -2
- package/dist/sdk/coding-agent/core/session-manager.d.ts +2 -2
- package/dist/sdk/coding-agent/core/session-manager.d.ts.map +1 -1
- package/dist/sdk/coding-agent/core/system-prompt.js +7 -7
- package/dist/sdk/coding-agent/core/tools/bash.d.ts +2 -2
- package/dist/sdk/coding-agent/core/tools/bash.js +3 -3
- package/dist/sdk/coding-agent/core/tools/output-accumulator.js +1 -1
- package/dist/sdk/coding-agent/migrations.d.ts +1 -1
- package/dist/sdk/coding-agent/migrations.js +4 -4
- package/dist/sdk/coding-agent/modes/print-mode.d.ts +2 -2
- package/dist/sdk/coding-agent/modes/print-mode.js +2 -2
- package/dist/sdk/coding-agent/utils/clipboard-image.js +1 -1
- package/dist/sdk/coding-agent/utils/spectral-user-agent.d.ts +2 -0
- package/dist/sdk/coding-agent/utils/spectral-user-agent.d.ts.map +1 -0
- package/dist/sdk/coding-agent/utils/spectral-user-agent.js +3 -0
- package/dist/sdk/coding-agent/utils/version-check.d.ts +5 -5
- package/dist/sdk/coding-agent/utils/version-check.d.ts.map +1 -1
- package/dist/sdk/coding-agent/utils/version-check.js +7 -7
- package/dist/sdk/coding-agent/utils/windows-self-update.js +1 -1
- package/dist/server/agent-bridge.d.ts +35 -35
- package/dist/server/agent-bridge.d.ts.map +1 -1
- package/dist/server/agent-bridge.js +59 -59
- package/dist/server/handlers/mcp-status.d.ts +21 -0
- package/dist/server/handlers/mcp-status.d.ts.map +1 -0
- package/dist/server/handlers/mcp-status.js +52 -0
- package/dist/server/handlers/sessions.d.ts +1 -1
- package/dist/server/handlers/sessions.js +1 -1
- package/dist/server/handlers/settings.d.ts +30 -0
- package/dist/server/handlers/settings.d.ts.map +1 -0
- package/dist/server/handlers/settings.js +123 -0
- package/dist/server/paths.d.ts +2 -2
- package/dist/server/paths.js +2 -2
- package/dist/server/session-stream.d.ts +25 -25
- package/dist/server/session-stream.d.ts.map +1 -1
- package/dist/server/session-stream.js +66 -38
- package/dist/server/shutdown.d.ts +3 -3
- package/dist/server/shutdown.d.ts.map +1 -1
- package/dist/server/shutdown.js +3 -3
- package/dist/server/storage.d.ts +4 -4
- package/dist/server/storage.js +6 -6
- package/dist/server/wire.d.ts +8 -8
- package/dist/server/wire.d.ts.map +1 -1
- package/dist/server/wire.js +1 -1
- package/package.json +1 -1
- package/dist/sdk/coding-agent/utils/pi-user-agent.d.ts +0 -2
- package/dist/sdk/coding-agent/utils/pi-user-agent.d.ts.map +0 -1
- package/dist/sdk/coding-agent/utils/pi-user-agent.js +0 -3
package/dist/server/storage.d.ts
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
*
|
|
20
20
|
* Foreign keys are enabled so DELETE FROM projects cascades to sessions
|
|
21
21
|
* cascades to messages. The route layer must still tear down any in-flight
|
|
22
|
-
*
|
|
22
|
+
* agent streams BEFORE deleting — see `SessionStreamManager.disposeProjectStreams`.
|
|
23
23
|
*
|
|
24
24
|
* The repo is intentionally a thin wrapper. We do NOT expose `Database`
|
|
25
25
|
* itself — callers go through the typed methods so we can swap the backend
|
|
@@ -130,7 +130,7 @@ export declare class SessionStore {
|
|
|
130
130
|
updateProject(id: string, input: UpdateProjectInput): WireProject | null;
|
|
131
131
|
/**
|
|
132
132
|
* Delete a project. Cascades to sessions and messages via FK.
|
|
133
|
-
* Caller MUST tear down any active SessionStream subscribers /
|
|
133
|
+
* Caller MUST tear down any active SessionStream subscribers / spectral
|
|
134
134
|
* processes for sessions in this project BEFORE invoking this.
|
|
135
135
|
* Returns the list of session ids that belonged to the project (so
|
|
136
136
|
* the caller can include them in the stream-teardown call).
|
|
@@ -172,8 +172,8 @@ export declare class SessionStore {
|
|
|
172
172
|
* the session does not exist. The CLI uses this for cross-restart recovery:
|
|
173
173
|
* when an envelope arrives WITHOUT a `modelId` but SQLite has a value
|
|
174
174
|
* persisted from an earlier turn, we apply the persisted value before
|
|
175
|
-
* forwarding to
|
|
176
|
-
* leave model selection to
|
|
175
|
+
* forwarding to spectral. When neither envelope nor SQLite have a value, we
|
|
176
|
+
* leave model selection to spectral's own settings file (pre-Phase-3 behaviour).
|
|
177
177
|
*/
|
|
178
178
|
getSessionModel(sessionId: string): string | null;
|
|
179
179
|
/**
|
package/dist/server/storage.js
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
*
|
|
20
20
|
* Foreign keys are enabled so DELETE FROM projects cascades to sessions
|
|
21
21
|
* cascades to messages. The route layer must still tear down any in-flight
|
|
22
|
-
*
|
|
22
|
+
* agent streams BEFORE deleting — see `SessionStreamManager.disposeProjectStreams`.
|
|
23
23
|
*
|
|
24
24
|
* The repo is intentionally a thin wrapper. We do NOT expose `Database`
|
|
25
25
|
* itself — callers go through the typed methods so we can swap the backend
|
|
@@ -229,7 +229,7 @@ export class SessionStore {
|
|
|
229
229
|
// Phase 3 (Available Models): per-session sticky model selection lives in
|
|
230
230
|
// a new `sessions.model_id` column. We do this as an idempotent ALTER
|
|
231
231
|
// (not a SCHEMA_VERSION bump + drop) because the column is purely
|
|
232
|
-
// additive — older rows have NULL model_id and fall back to
|
|
232
|
+
// additive — older rows have NULL model_id and fall back to spectral's own
|
|
233
233
|
// settings file, which is the pre-Phase-3 behaviour. Bumping
|
|
234
234
|
// SCHEMA_VERSION would also nuke conversation history we now want to
|
|
235
235
|
// preserve. The check is cheap (one PRAGMA per startup) and safe to run
|
|
@@ -259,7 +259,7 @@ export class SessionStore {
|
|
|
259
259
|
}
|
|
260
260
|
// ---- one-time cleanup -------------------------------------------------
|
|
261
261
|
// Historical garbage from prior runs of the bridge that persisted every
|
|
262
|
-
// intermediate `message_end`
|
|
262
|
+
// intermediate `message_end` spectral emitted, including pure-framing rows
|
|
263
263
|
// with no visible content. Those rows were silently dropped by the
|
|
264
264
|
// client's hydration path, but they polluted message counts and were
|
|
265
265
|
// surfaced by `SELECT * FROM messages`. The bridge no longer emits
|
|
@@ -433,7 +433,7 @@ export class SessionStore {
|
|
|
433
433
|
}
|
|
434
434
|
/**
|
|
435
435
|
* Delete a project. Cascades to sessions and messages via FK.
|
|
436
|
-
* Caller MUST tear down any active SessionStream subscribers /
|
|
436
|
+
* Caller MUST tear down any active SessionStream subscribers / spectral
|
|
437
437
|
* processes for sessions in this project BEFORE invoking this.
|
|
438
438
|
* Returns the list of session ids that belonged to the project (so
|
|
439
439
|
* the caller can include them in the stream-teardown call).
|
|
@@ -625,8 +625,8 @@ export class SessionStore {
|
|
|
625
625
|
* the session does not exist. The CLI uses this for cross-restart recovery:
|
|
626
626
|
* when an envelope arrives WITHOUT a `modelId` but SQLite has a value
|
|
627
627
|
* persisted from an earlier turn, we apply the persisted value before
|
|
628
|
-
* forwarding to
|
|
629
|
-
* leave model selection to
|
|
628
|
+
* forwarding to spectral. When neither envelope nor SQLite have a value, we
|
|
629
|
+
* leave model selection to spectral's own settings file (pre-Phase-3 behaviour).
|
|
630
630
|
*/
|
|
631
631
|
getSessionModel(sessionId) {
|
|
632
632
|
const row = this.stmtGetSessionModel.get(sessionId);
|
package/dist/server/wire.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Keep this file dependency-free. It will be copied or imported by the
|
|
6
6
|
* frontend in Day 3, so we don't want it to drag in `better-sqlite3`,
|
|
7
|
-
* `ws`, or any
|
|
7
|
+
* `ws`, or any spectral SDK types.
|
|
8
8
|
*
|
|
9
9
|
* Naming: client → server messages are `ClientMessage`, server → client
|
|
10
10
|
* frames are `ServerEvent`. JSON-encoded one-per-frame on the wire.
|
|
@@ -25,7 +25,7 @@ export interface WireMessage {
|
|
|
25
25
|
id: string;
|
|
26
26
|
role: "user" | "assistant" | "system";
|
|
27
27
|
content: string;
|
|
28
|
-
/** Newline-delimited JSON of
|
|
28
|
+
/** Newline-delimited JSON of agent events captured for this message (assistant only, may be ""). */
|
|
29
29
|
events: string;
|
|
30
30
|
createdAt: number;
|
|
31
31
|
/** Base64 images attached to user messages (empty for assistant/system). */
|
|
@@ -34,7 +34,7 @@ export interface WireMessage {
|
|
|
34
34
|
/**
|
|
35
35
|
* Project — a user-declared root directory that owns 0..N sessions.
|
|
36
36
|
*
|
|
37
|
-
*
|
|
37
|
+
* spectral runs with `cwd = project.path`, so the project is the unit of "where on
|
|
38
38
|
* disk this conversation operates". Sessions are scoped to a project; the
|
|
39
39
|
* sidebar is a 2-tier projects → sessions view.
|
|
40
40
|
*/
|
|
@@ -174,7 +174,7 @@ export type ServerEvent = {
|
|
|
174
174
|
* awaiting its first compaction. The UI uses this to show a special
|
|
175
175
|
* send button for the first message. */
|
|
176
176
|
forkCompactPending?: boolean;
|
|
177
|
-
/** Cumulative context tokens used across the session (from
|
|
177
|
+
/** Cumulative context tokens used across the session (from spectral's getContextUsage()). Null when unknown. */
|
|
178
178
|
contextWindowUsed: number | null;
|
|
179
179
|
/** Model's total context window in tokens. Null when model metadata is not yet available. */
|
|
180
180
|
contextWindowMax: number | null;
|
|
@@ -268,13 +268,13 @@ export type ServerEvent = {
|
|
|
268
268
|
/** Estimated Aexol credits used for this message. */
|
|
269
269
|
creditsUsed: number;
|
|
270
270
|
};
|
|
271
|
-
/** Cumulative context tokens used across the session (from
|
|
271
|
+
/** Cumulative context tokens used across the session (from spectral's getContextUsage()). Null if unknown. */
|
|
272
272
|
contextWindowUsed: number | null;
|
|
273
273
|
/** Model's total context window in tokens. Null if model metadata is not available. */
|
|
274
274
|
contextWindowMax: number | null;
|
|
275
275
|
} | {
|
|
276
276
|
/**
|
|
277
|
-
* Emitted when
|
|
277
|
+
* Emitted when spectral starts context compaction (manual or auto).
|
|
278
278
|
* Non-replayable session lifecycle event; the client can use this
|
|
279
279
|
* to show a "Compacting context…" indicator.
|
|
280
280
|
*/
|
|
@@ -283,7 +283,7 @@ export type ServerEvent = {
|
|
|
283
283
|
reason: "manual" | "threshold" | "overflow";
|
|
284
284
|
} | {
|
|
285
285
|
/**
|
|
286
|
-
* Emitted when
|
|
286
|
+
* Emitted when spectral completes context compaction. The session has
|
|
287
287
|
* been reloaded with the compacted context; subsequent prompts
|
|
288
288
|
* will see the reduced context window footprint.
|
|
289
289
|
*/
|
|
@@ -292,7 +292,7 @@ export type ServerEvent = {
|
|
|
292
292
|
summary: string;
|
|
293
293
|
/** Token count before compaction. */
|
|
294
294
|
tokensBefore: number;
|
|
295
|
-
/** UUID of the first branch entry kept after compaction (
|
|
295
|
+
/** UUID of the first branch entry kept after compaction (spectral's cut point). */
|
|
296
296
|
firstKeptEntryId?: string;
|
|
297
297
|
/** True when compaction was aborted (e.g. by a new user message or manual abort). */
|
|
298
298
|
aborted?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wire.d.ts","sourceRoot":"","sources":["../../src/server/wire.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,uDAAuD;AACvD,MAAM,WAAW,eAAe;IAC9B,kDAAkD;IAClD,IAAI,EAAE,MAAM,CAAC;IACb,mDAAmD;IACnD,QAAQ,EAAE,MAAM,CAAC;IACjB,6CAA6C;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wDAAwD;AACxD,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAC;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,
|
|
1
|
+
{"version":3,"file":"wire.d.ts","sourceRoot":"","sources":["../../src/server/wire.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,uDAAuD;AACvD,MAAM,WAAW,eAAe;IAC9B,kDAAkD;IAClD,IAAI,EAAE,MAAM,CAAC;IACb,mDAAmD;IACnD,QAAQ,EAAE,MAAM,CAAC;IACjB,6CAA6C;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wDAAwD;AACxD,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MA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C;CACJ,CAAC"}
|
package/dist/server/wire.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Keep this file dependency-free. It will be copied or imported by the
|
|
6
6
|
* frontend in Day 3, so we don't want it to drag in `better-sqlite3`,
|
|
7
|
-
* `ws`, or any
|
|
7
|
+
* `ws`, or any spectral SDK types.
|
|
8
8
|
*
|
|
9
9
|
* Naming: client → server messages are `ClientMessage`, server → client
|
|
10
10
|
* frames are `ServerEvent`. JSON-encoded one-per-frame on the wire.
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pi-user-agent.d.ts","sourceRoot":"","sources":["../../../../src/sdk/coding-agent/utils/pi-user-agent.ts"],"names":[],"mappings":"AAAA,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEtD"}
|