qlogicagent 2.19.11 → 2.19.12

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.
@@ -1,15 +1,20 @@
1
+ import type { ConfigPort } from "../ports/index.js";
1
2
  export interface IndustrialRuntimeChildEnv {
2
3
  XIAOZHICLAW_RUNTIME_SESSION_URL: string;
3
4
  XIAOZHICLAW_RUNTIME_SESSION_BEARER: string;
5
+ XIAOZHICLAW_RUNTIME_CONVERSATION_ID?: string;
6
+ XIAOZHICLAW_RUNTIME_CREDENTIAL_SUBJECT: string;
4
7
  }
5
8
  type ProbeSession = (signal: AbortSignal) => Promise<Response>;
6
9
  export interface IndustrialRuntimeSessionServerForTest {
7
- childEnv: IndustrialRuntimeChildEnv;
10
+ childEnv(sessionId?: string): IndustrialRuntimeChildEnv;
8
11
  stop(): Promise<void>;
9
12
  }
10
- export declare function industrialRuntimeSessionChildEnv(): Promise<IndustrialRuntimeChildEnv | undefined>;
13
+ export declare function industrialRuntimeSessionChildEnv(sessionId?: string): Promise<IndustrialRuntimeChildEnv | undefined>;
11
14
  export declare function stopIndustrialRuntimeSessionServer(): Promise<void>;
12
15
  export declare function __createIndustrialRuntimeSessionServerForTest(options: {
13
16
  probeSession: ProbeSession;
17
+ configPort?: ConfigPort;
18
+ fetch?: typeof fetch;
14
19
  }): Promise<IndustrialRuntimeSessionServerForTest>;
15
20
  export {};
@@ -0,0 +1,14 @@
1
+ import type { ConfigPort } from "../ports/index.js";
2
+ export interface ManagedInferenceRequest {
3
+ path: "/v1/models" | "/v1/files" | `/v1/files/${string}` | "/v1/cad/plan-grants";
4
+ method: "GET" | "POST" | "DELETE";
5
+ contentType?: string;
6
+ body?: AsyncIterable<Uint8Array>;
7
+ signal: AbortSignal;
8
+ }
9
+ export interface ManagedInferenceDependencies {
10
+ config: ConfigPort;
11
+ fetch: typeof fetch;
12
+ }
13
+ export declare function managedInferenceCredentialSubject(config: ConfigPort, absentKeySubject: string): string;
14
+ export declare function fetchWithManagedInference(request: ManagedInferenceRequest, dependencies?: ManagedInferenceDependencies): Promise<Response>;
@@ -82,6 +82,8 @@ export interface ExecToolHost {
82
82
  resolveSandbox?(): SandboxConfig | undefined;
83
83
  /** Resolve active private runtime PATH entries at command execution time. */
84
84
  resolveRuntimePathEntries?(): Promise<string[]>;
85
+ /** Return the current opaque qlogicagent session ID for this exec call. */
86
+ getSessionId?(): string | undefined;
85
87
  /**
86
88
  * Interpret a non-zero exit code.
87
89
  * E.g. 127 → "command not found", 137 → "killed by SIGKILL".
@@ -23,6 +23,8 @@ export interface ExecOptions {
23
23
  sandbox?: SandboxConfig;
24
24
  /** Late-bound CLI authority for active private runtime PATH entries. */
25
25
  resolveRuntimePathEntries?: () => Promise<string[]>;
26
+ /** Opaque qlogicagent session identity for this shell call. */
27
+ sessionId?: string;
26
28
  }
27
29
  /**
28
30
  * Set the shell provider for this session.
@@ -51,7 +53,7 @@ export declare function getActiveShellInfo(): {
51
53
  psEdition?: "5.1" | "7+";
52
54
  isGitBashOnWindows?: boolean;
53
55
  } | undefined;
54
- export declare function buildShellExecEnvironment(envOverrides: NodeJS.ProcessEnv, resolveRuntimePathEntries?: () => Promise<string[]>): Promise<NodeJS.ProcessEnv>;
56
+ export declare function buildShellExecEnvironment(envOverrides: NodeJS.ProcessEnv, resolveRuntimePathEntries?: () => Promise<string[]>, sessionId?: string): Promise<NodeJS.ProcessEnv>;
55
57
  /**
56
58
  * Execute a shell command using the configured provider.
57
59
  * Creates a new child process for each invocation.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qlogicagent",
3
- "version": "2.19.11",
3
+ "version": "2.19.12",
4
4
  "description": "XiaozhiClaw Agent CLI — subprocess architecture (JSON-RPC over stdio)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -145,7 +145,7 @@
145
145
  "dependencies": {
146
146
  "@agentclientprotocol/sdk": "^0.25.0",
147
147
  "@napi-rs/canvas": "0.1.100",
148
- "@xiaozhiclaw/module-sdk": "0.2.0",
148
+ "@xiaozhiclaw/module-sdk": "0.2.1",
149
149
  "@xiaozhiclaw/provider-core": "^0.1.27",
150
150
  "better-sqlite3": "^12.10.0",
151
151
  "dotenv": "^17.3.1",