qlogicagent 2.23.3 → 2.23.5

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 (32) hide show
  1. package/README.md +1 -1
  2. package/dist/agent.js +43 -43
  3. package/dist/cli.js +7 -7
  4. package/dist/default-project-knowledge/INSTRUCTIONS.md +7 -7
  5. package/dist/default-project-knowledge/rules/project-workflow.md +6 -6
  6. package/dist/host-contract.js +1 -1
  7. package/dist/index.js +331 -333
  8. package/dist/protocol.js +1 -1
  9. package/dist/types/agent/tool-loop.d.ts +2 -0
  10. package/dist/types/agent/types.d.ts +5 -2
  11. package/dist/types/cli/acp-session-handlers.d.ts +2 -2
  12. package/dist/types/cli/acp-session-host.d.ts +1 -0
  13. package/dist/types/cli/handlers/turn-handler.d.ts +2 -14
  14. package/dist/types/cli/permission-approval-bridge.d.ts +1 -1
  15. package/dist/types/cli/stdio-server.d.ts +1 -1
  16. package/dist/types/cli/turn-core.d.ts +2 -0
  17. package/dist/types/contracts/tool-schema-load.d.ts +6 -0
  18. package/dist/types/host-contract/index.d.ts +17 -0
  19. package/dist/types/protocol/wire/acp-protocol.d.ts +23 -0
  20. package/dist/types/protocol/wire/index.d.ts +1 -1
  21. package/dist/types/runtime/infra/context-ledger.d.ts +27 -0
  22. package/dist/types/runtime/infra/turn-telemetry-store.d.ts +6 -0
  23. package/dist/types/runtime/prompt/capability-schema-directory.d.ts +17 -0
  24. package/dist/types/runtime/prompt/environment-context.d.ts +3 -87
  25. package/dist/types/runtime/prompt/prompt-policy.d.ts +1 -1
  26. package/dist/types/runtime/prompt/system-prompt-sections.d.ts +1 -1
  27. package/dist/types/skills/tools/tool-schema-load-tool.d.ts +6 -0
  28. package/dist/types/skills/tools.d.ts +3 -2
  29. package/dist/types/transport/acp-event-emitter.d.ts +4 -3
  30. package/dist/types/transport/acp-server.d.ts +2 -2
  31. package/package.json +1 -1
  32. package/dist/types/runtime/prompt/task-domain.d.ts +0 -20
@@ -17,7 +17,7 @@
17
17
  * existing internal handlers.
18
18
  */
19
19
  import type { Transport } from "./io-transport.js";
20
- import { type AcpInitializeParams, type AcpInitializeResult, type AcpSessionNewParams, type AcpSessionLoadParams, type AcpSessionNewResult, type AcpSessionPromptParams, type AcpSessionPromptResult, type AcpSessionCloseParams, type AcpSessionSetConfigParams, type AcpSessionUpdateType, type AcpPermissionRequestParams, type AcpPermissionRequestResult } from "../protocol/wire/index.js";
20
+ import { type AcpInitializeParams, type AcpInitializeResult, type AcpSessionNewParams, type AcpSessionLoadParams, type AcpSessionNewResult, type AcpSessionPromptParams, type AcpSessionPromptResult, type AcpSessionCloseParams, type AcpSessionSetConfigParams, type AcpSessionSetConfigResult, type AcpSessionUpdateType, type AcpPermissionRequestParams, type AcpPermissionRequestResult } from "../protocol/wire/index.js";
21
21
  import { DelegateClient } from "./delegate-client.js";
22
22
  import type { HostRequestClient } from "./host-request-client.js";
23
23
  import { type HostRequestService } from "../host-contract/index.js";
@@ -43,7 +43,7 @@ export interface AcpRequestHandler {
43
43
  handleAcpSessionNew(params: AcpSessionNewParams): Promise<AcpSessionNewResult>;
44
44
  handleAcpSessionPrompt(params: AcpSessionPromptParams): Promise<AcpSessionPromptResult>;
45
45
  handleAcpSessionClose(params: AcpSessionCloseParams): Promise<void>;
46
- handleAcpSessionSetConfig(params: AcpSessionSetConfigParams): Promise<void>;
46
+ handleAcpSessionSetConfig(params: AcpSessionSetConfigParams): Promise<AcpSessionSetConfigResult>;
47
47
  handleAcpSessionSetModel(sessionId: string, model: string): Promise<void>;
48
48
  handleAcpSessionSetMode(sessionId: string, modeId: string): Promise<string>;
49
49
  handleAcpSessionLoad(params: AcpSessionLoadParams): Promise<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qlogicagent",
3
- "version": "2.23.3",
3
+ "version": "2.23.5",
4
4
  "packageManager": "pnpm@10.23.0",
5
5
  "description": "XiaozhiClaw Agent CLI — subprocess architecture (JSON-RPC over stdio)",
6
6
  "type": "module",
@@ -1,20 +0,0 @@
1
- /**
2
- * Task-domain guidance is a Host-owned typed choice, not a language classifier.
3
- * User text is intentionally not inspected for keywords or regular expressions.
4
- */
5
- export type TaskDomain = "coding" | "office" | "creative" | "general";
6
- /**
7
- * Kept as a compatibility-neutral pure function for callers that only have text.
8
- * Without a typed Host decision the safe domain is always general.
9
- */
10
- export declare function detectTaskDomain(_userText: string): TaskDomain;
11
- export interface DomainResolutionContext {
12
- /** Host-provided typed override from thread.turn params. */
13
- hostOverride?: TaskDomain;
14
- /** Current user text is accepted for API stability but never classified. */
15
- userText: string;
16
- }
17
- export declare function resolveTaskDomain(ctx: DomainResolutionContext): {
18
- domain: TaskDomain;
19
- source: "host-override" | "default";
20
- };