qlogicagent 2.16.3 → 2.16.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent.js +21 -21
- package/dist/cli.js +352 -352
- package/dist/index.js +352 -352
- package/dist/types/agent/tool-loop/completion-action-policy.d.ts +2 -1
- package/dist/types/agent/tool-loop.d.ts +8 -1
- package/dist/types/protocol/wire/acp-protocol.d.ts +3 -0
- package/dist/types/runtime/infra/llmrouter-catalog.d.ts +10 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AgentLogger, ChatMessage, ThinkingBlock, ToolLoopTransition } from "../types.js";
|
|
2
|
-
export type CompletionActionPolicyReason = "file_action_verification" | "explicit_required_file_verification" | "explicit_extra_file_verification" | "artifact_index_evidence_verification" | "multi_file_skeleton_verification";
|
|
2
|
+
export type CompletionActionPolicyReason = "file_action_verification" | "explicit_required_file_verification" | "explicit_extra_file_verification" | "artifact_index_evidence_verification" | "multi_file_skeleton_verification" | "forbidden_file_creation";
|
|
3
3
|
export interface CompletionActionPolicyInput {
|
|
4
4
|
inputMessages: readonly ChatMessage[];
|
|
5
5
|
messages: unknown[];
|
|
@@ -34,5 +34,6 @@ export declare function buildPrematureCompletionArtifactBlock(input: {
|
|
|
34
34
|
messages: unknown[];
|
|
35
35
|
toolCall: CandidateToolCall;
|
|
36
36
|
}): string | undefined;
|
|
37
|
+
export declare function findForbiddenCreatedFiles(inputMessages: readonly ChatMessage[], messages: unknown[]): string[];
|
|
37
38
|
export declare function resolveCompletionActionPolicy(input: CompletionActionPolicyInput): CompletionActionPolicyDecision | null;
|
|
38
39
|
export {};
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
*
|
|
19
19
|
* Zero imports from express/pg/ioredis/ws.
|
|
20
20
|
*/
|
|
21
|
-
import type { AgentLogger, ChatMessage, ToolDefinition, ToolInvoker, TurnEvent, HookRegistry, LLMTransport } from "./types.js";
|
|
21
|
+
import type { AgentLogger, ChatMessage, ToolDefinition, ToolInvoker, TurnEvent, HookRegistry, LLMTransport, MaintainedDocumentIndex } from "./types.js";
|
|
22
22
|
import type { ToolLoopRuntimePorts } from "../runtime/ports/index.js";
|
|
23
23
|
export interface ToolLoopParams {
|
|
24
24
|
turnId: string;
|
|
@@ -114,6 +114,13 @@ export declare const NO_PROGRESS_TARGET_THRESHOLD = 4;
|
|
|
114
114
|
* tools whose repetition isn't a stuck-signal (read, search, etc.). Exported for testing.
|
|
115
115
|
*/
|
|
116
116
|
export declare function noProgressTargetKey(toolName: string, rawArguments: string): string | null;
|
|
117
|
+
export declare function buildBenchmarkStateMaintenanceInstruction(documents: ReadonlyMap<string, MaintainedDocumentIndex>, turn: number): string | null;
|
|
118
|
+
export declare function benchmarkStateMaintenanceWriteValidation(maintainedDocuments: ReadonlyMap<string, MaintainedDocumentIndex>, filePath: string, rawArguments: string): {
|
|
119
|
+
ok: true;
|
|
120
|
+
} | {
|
|
121
|
+
ok: false;
|
|
122
|
+
reason: string;
|
|
123
|
+
};
|
|
117
124
|
/**
|
|
118
125
|
* Execute the tool loop -CC query.ts queryLoop() aligned.
|
|
119
126
|
*
|
|
@@ -168,6 +168,9 @@ export interface AcpSessionPromptParams {
|
|
|
168
168
|
export interface AcpSessionPromptResult {
|
|
169
169
|
/** Stop reason (required by ACP standard). */
|
|
170
170
|
stopReason: AcpStopReason;
|
|
171
|
+
/** Final assistant text for the turn (non-standard extension; emitted on end_turn). Lets the host
|
|
172
|
+
* read the completed message alongside the streamed session/update chunks. */
|
|
173
|
+
content?: string;
|
|
171
174
|
/** Token usage for this turn. */
|
|
172
175
|
usage?: AcpUsage;
|
|
173
176
|
/** Model that actually ran the turn (agent-resolved). Lets the host attribute
|
|
@@ -9,6 +9,16 @@ interface CatalogFetchOptions {
|
|
|
9
9
|
export declare class LlmrouterCatalogUnavailableError extends Error {
|
|
10
10
|
constructor(message?: string);
|
|
11
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Raised when the llmrouter published endpoint (/v1/models) rejects the inference key with an
|
|
14
|
+
* auth failure (401/403). This is a PERSISTENT condition (revoked/expired/inactive key), unlike a
|
|
15
|
+
* transient network blip — so callers must NOT fall back to the full routable catalog (that would
|
|
16
|
+
* advertise 600+ models the dead key cannot actually call). Surface "please re-authenticate" instead.
|
|
17
|
+
*/
|
|
18
|
+
export declare class LlmrouterAuthError extends Error {
|
|
19
|
+
readonly status: number;
|
|
20
|
+
constructor(status: number, message?: string);
|
|
21
|
+
}
|
|
12
22
|
export interface LlmrouterCatalogProvider {
|
|
13
23
|
id: string;
|
|
14
24
|
name?: string;
|