qlogicagent 2.10.29 → 2.10.31

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.
@@ -7,6 +7,7 @@ export interface CliCoreToolHostDeps {
7
7
  getCurrentApiKey(): string;
8
8
  getCurrentModel(): string;
9
9
  getCurrentSessionId(): string;
10
+ getActiveProjectRoot(): string;
10
11
  getVerbose(): boolean;
11
12
  sendNotification(method: string, params: Record<string, unknown>): void;
12
13
  emitAgentStatus(agentId: string, state: string, extra?: {
@@ -1,7 +1,6 @@
1
- import type { AgentLogger } from "../../agent/types.js";
2
- import { type CronNotificationSink } from "./cron-tool-service.js";
3
1
  export interface CronToolRegistrationDeps {
4
- host: CronNotificationSink;
5
- log: Pick<AgentLogger, "info">;
2
+ host: {
3
+ getActiveProjectRoot(): string;
4
+ };
6
5
  }
7
- export declare function registerCronTool({ host, log }: CronToolRegistrationDeps): void;
6
+ export declare function registerCronTool({ host }: CronToolRegistrationDeps): void;
@@ -0,0 +1,7 @@
1
+ import type { CronToolDeps } from "../../skills/tools/cron-tool.js";
2
+ export interface CronWorkflowServiceOptions {
3
+ getProjectRoot(): string;
4
+ idFactory?: () => string;
5
+ }
6
+ export type CronWorkflowService = CronToolDeps;
7
+ export declare function createCronWorkflowService(options: CronWorkflowServiceOptions): CronWorkflowService;
@@ -11,9 +11,9 @@ export interface CronToolParams {
11
11
  schedule?: string;
12
12
  /** Human-readable job name */
13
13
  name?: string;
14
- /** Repeat count (null = infinite) */
14
+ /** Legacy field rejected by the workflow-backed scheduler. */
15
15
  repeat?: number | null;
16
- /** Allowed tools for the scheduled task */
16
+ /** Legacy field rejected by the workflow-backed scheduler. */
17
17
  allowedTools?: string[];
18
18
  /** Whether the job is enabled */
19
19
  enabled?: boolean;
@@ -24,7 +24,7 @@ export declare const CRON_TOOL_SCHEMA: {
24
24
  readonly action: {
25
25
  readonly type: "string";
26
26
  readonly enum: readonly ["create", "list", "get", "update", "delete", "pause", "resume", "trigger"];
27
- readonly description: "CRUD action: create/list/get/update/delete/pause/resume/trigger.";
27
+ readonly description: "Workflow-backed action: create/list/get/update/delete/pause/resume/trigger.";
28
28
  };
29
29
  readonly jobId: {
30
30
  readonly type: "string";
@@ -44,14 +44,14 @@ export declare const CRON_TOOL_SCHEMA: {
44
44
  };
45
45
  readonly repeat: {
46
46
  readonly type: "number";
47
- readonly description: "Number of times to repeat (null = infinite). Default: null.";
47
+ readonly description: "Deprecated. Finite repeats must be modeled inside the workflow graph.";
48
48
  };
49
49
  readonly allowedTools: {
50
50
  readonly type: "array";
51
51
  readonly items: {
52
52
  readonly type: "string";
53
53
  };
54
- readonly description: "Tools the scheduled task is allowed to use.";
54
+ readonly description: "Deprecated. Tool access must be enforced by permission rules or workflow nodes.";
55
55
  };
56
56
  readonly enabled: {
57
57
  readonly type: "boolean";
package/package.json CHANGED
@@ -1,94 +1,95 @@
1
- {
2
- "name": "qlogicagent",
3
- "version": "2.10.29",
4
- "description": "XiaozhiClaw Agent CLI — subprocess architecture (JSON-RPC over stdio)",
5
- "type": "module",
6
- "main": "dist/index.js",
7
- "bin": {
8
- "qlogicagent": "dist/cli.js"
9
- },
10
- "exports": {
11
- ".": {
12
- "types": "./dist/types/index.d.ts",
13
- "default": "./dist/index.js"
14
- },
15
- "./agent": {
16
- "types": "./dist/types/agent/agent.d.ts",
17
- "default": "./dist/agent.js"
18
- },
19
- "./contracts": {
20
- "types": "./dist/types/contracts/index.d.ts",
21
- "default": "./dist/contracts.js"
22
- },
23
- "./orchestration": {
24
- "types": "./dist/types/orchestration/index.d.ts",
25
- "default": "./dist/orchestration.js"
26
- },
27
- "./protocol": {
28
- "types": "./dist/types/protocol/wire/index.d.ts",
29
- "default": "./dist/protocol.js"
30
- },
31
- "./permissions": {
32
- "types": "./dist/types/permissions.d.ts",
33
- "default": "./dist/permissions.js"
34
- }
35
- },
36
- "files": [
37
- "dist/"
38
- ],
39
- "typesVersions": {
40
- "*": {
41
- "protocol": [
42
- "./dist/types/protocol/wire/index.d.ts"
43
- ],
44
- "agent": [
45
- "./dist/types/agent/agent.d.ts"
46
- ],
47
- "contracts": [
48
- "./dist/types/contracts/index.d.ts"
49
- ],
50
- "orchestration": [
51
- "./dist/types/orchestration/index.d.ts"
52
- ],
53
- "permissions": [
54
- "./dist/types/permissions.d.ts"
55
- ]
56
- }
57
- },
58
- "scripts": {
59
- "dev": "tsx watch src/index.ts",
60
- "build": "node scripts/build.mjs",
61
- "build:tsc": "tsc --noCheck",
62
- "start": "node dist/cli.js",
63
- "test": "vitest run",
64
- "test:watch": "vitest",
65
- "lint": "oxlint .",
66
- "check:architecture-boundaries": "node scripts/check-architecture-boundaries.mjs",
67
- "check:provider-core-boundary": "node scripts/check-provider-core-boundary.mjs",
68
- "check:workspace-hygiene": "node scripts/check-workspace-hygiene.mjs",
69
- "check:workspace-hygiene:strict": "node scripts/check-workspace-hygiene.mjs --strict",
70
- "redteam:community-desensitization": "tsx src/runtime/community/community-desensitization-red-team-cli.ts",
71
- "redteam:community-sandbox": "tsx src/skills/permissions/community-sandbox-red-team-cli.ts",
72
- "clean:workspace-hygiene": "node scripts/clean-workspace-hygiene.mjs",
73
- "release": "node scripts/release.mjs"
74
- },
75
- "engines": {
76
- "node": ">=22.0.0"
77
- },
78
- "dependencies": {
79
- "@xiaozhiclaw/provider-core": "^0.1.0",
80
- "better-sqlite3": "^12.10.0",
81
- "dotenv": "^17.3.1",
82
- "nanoid": "^5.1.5",
83
- "pino": "^9.6.0",
84
- "pino-pretty": "^13.0.0"
85
- },
86
- "devDependencies": {
87
- "@types/better-sqlite3": "^7.6.13",
88
- "@types/node": "^22.15.0",
89
- "esbuild": "^0.28.0",
90
- "tsx": "^4.19.0",
91
- "typescript": "^5.9.0",
92
- "vitest": "^3.1.0"
93
- }
94
- }
1
+ {
2
+ "name": "qlogicagent",
3
+ "version": "2.10.31",
4
+ "description": "XiaozhiClaw Agent CLI — subprocess architecture (JSON-RPC over stdio)",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "bin": {
8
+ "qlogicagent": "dist/cli.js"
9
+ },
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/types/index.d.ts",
13
+ "default": "./dist/index.js"
14
+ },
15
+ "./agent": {
16
+ "types": "./dist/types/agent/agent.d.ts",
17
+ "default": "./dist/agent.js"
18
+ },
19
+ "./contracts": {
20
+ "types": "./dist/types/contracts/index.d.ts",
21
+ "default": "./dist/contracts.js"
22
+ },
23
+ "./orchestration": {
24
+ "types": "./dist/types/orchestration/index.d.ts",
25
+ "default": "./dist/orchestration.js"
26
+ },
27
+ "./protocol": {
28
+ "types": "./dist/types/protocol/wire/index.d.ts",
29
+ "default": "./dist/protocol.js"
30
+ },
31
+ "./permissions": {
32
+ "types": "./dist/types/permissions.d.ts",
33
+ "default": "./dist/permissions.js"
34
+ }
35
+ },
36
+ "files": [
37
+ "dist/"
38
+ ],
39
+ "typesVersions": {
40
+ "*": {
41
+ "protocol": [
42
+ "./dist/types/protocol/wire/index.d.ts"
43
+ ],
44
+ "agent": [
45
+ "./dist/types/agent/agent.d.ts"
46
+ ],
47
+ "contracts": [
48
+ "./dist/types/contracts/index.d.ts"
49
+ ],
50
+ "orchestration": [
51
+ "./dist/types/orchestration/index.d.ts"
52
+ ],
53
+ "permissions": [
54
+ "./dist/types/permissions.d.ts"
55
+ ]
56
+ }
57
+ },
58
+ "scripts": {
59
+ "dev": "tsx watch src/index.ts",
60
+ "build": "node scripts/build.mjs",
61
+ "build:tsc": "tsc --noCheck",
62
+ "start": "node dist/cli.js",
63
+ "test": "vitest run",
64
+ "test:watch": "vitest",
65
+ "lint": "oxlint .",
66
+ "check:architecture-boundaries": "node scripts/check-architecture-boundaries.mjs",
67
+ "check:provider-core-boundary": "node scripts/check-provider-core-boundary.mjs",
68
+ "check:workspace-hygiene": "node scripts/check-workspace-hygiene.mjs",
69
+ "check:workspace-hygiene:strict": "node scripts/check-workspace-hygiene.mjs --strict",
70
+ "redteam:community-desensitization": "tsx src/runtime/community/community-desensitization-red-team-cli.ts",
71
+ "redteam:community-sandbox": "tsx src/skills/permissions/community-sandbox-red-team-cli.ts",
72
+ "clean:workspace-hygiene": "node scripts/clean-workspace-hygiene.mjs",
73
+ "release": "node scripts/release.mjs"
74
+ },
75
+ "engines": {
76
+ "node": ">=22.0.0"
77
+ },
78
+ "dependencies": {
79
+ "@xiaozhiclaw/provider-core": "^0.1.0",
80
+ "better-sqlite3": "^12.10.0",
81
+ "dotenv": "^17.3.1",
82
+ "nanoid": "^5.1.5",
83
+ "pino": "^9.6.0",
84
+ "pino-pretty": "^13.0.0"
85
+ },
86
+ "devDependencies": {
87
+ "@types/better-sqlite3": "^7.6.13",
88
+ "@types/node": "^22.15.0",
89
+ "esbuild": "^0.28.0",
90
+ "oxlint": "1.67.0",
91
+ "tsx": "^4.19.0",
92
+ "typescript": "^5.9.0",
93
+ "vitest": "^3.1.0"
94
+ }
95
+ }
@@ -1,22 +0,0 @@
1
- import type { AgentLogger } from "../../agent/types.js";
2
- import type { CronToolDeps } from "../../skills/tools/cron-tool.js";
3
- type CronTimerHandle = unknown;
4
- export interface CronNotificationSink {
5
- sendNotification(method: string, params: Record<string, unknown>): void;
6
- }
7
- export interface CronTimerApi {
8
- setTimeout(callback: () => void, delayMs: number): CronTimerHandle;
9
- clearTimeout(timerId: CronTimerHandle): void;
10
- }
11
- export interface CronToolService extends CronToolDeps {
12
- dispose(): void;
13
- }
14
- export interface CronToolServiceOptions {
15
- host: CronNotificationSink;
16
- log: Pick<AgentLogger, "info">;
17
- idFactory?: () => string;
18
- now?: () => number;
19
- timers?: CronTimerApi;
20
- }
21
- export declare function createCronToolService(options: CronToolServiceOptions): CronToolService;
22
- export {};