@calltelemetry/openclaw-linear 0.8.0 → 0.8.1
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/README.md +152 -34
- package/openclaw.plugin.json +3 -2
- package/package.json +1 -1
- package/prompts.yaml +27 -1
- package/src/agent/agent.test.ts +49 -0
- package/src/agent/agent.ts +26 -1
- package/src/infra/doctor.ts +2 -2
- package/src/pipeline/e2e-planning.test.ts +77 -54
- package/src/pipeline/intent-classify.test.ts +285 -0
- package/src/pipeline/intent-classify.ts +259 -0
- package/src/pipeline/planner.test.ts +159 -40
- package/src/pipeline/planner.ts +98 -32
- package/src/pipeline/webhook.ts +322 -226
- package/src/tools/claude-tool.ts +6 -0
- package/src/tools/code-tool.test.ts +3 -3
- package/src/tools/code-tool.ts +2 -2
- package/src/tools/planner-tools.test.ts +1 -1
- package/src/tools/planner-tools.ts +10 -2
|
@@ -30,7 +30,7 @@ function makeIssue(overrides: Partial<ProjectIssue> & { identifier: string; titl
|
|
|
30
30
|
id: overrides.id ?? overrides.identifier.toLowerCase().replace("-", "_"),
|
|
31
31
|
identifier: overrides.identifier,
|
|
32
32
|
title: overrides.title,
|
|
33
|
-
description: "description" in overrides ? overrides.description : "
|
|
33
|
+
description: "description" in overrides ? overrides.description : "As a user, I want this feature so that I can be productive. Given I am logged in, When I click the button, Then the action completes.",
|
|
34
34
|
estimate: "estimate" in overrides ? overrides.estimate : 3,
|
|
35
35
|
priority: "priority" in overrides ? overrides.priority : 2,
|
|
36
36
|
labels: overrides.labels ?? { nodes: [] },
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* before/after calling runAgent(). Tools read from this module-level context
|
|
9
9
|
* at execution time (same pattern as active-session.ts).
|
|
10
10
|
*/
|
|
11
|
-
import type { AnyAgentTool } from "openclaw/plugin-sdk";
|
|
11
|
+
import type { AnyAgentTool, OpenClawPluginApi } from "openclaw/plugin-sdk";
|
|
12
12
|
import { jsonResult } from "openclaw/plugin-sdk";
|
|
13
13
|
import type { LinearAgentApi } from "../api/linear-api.js";
|
|
14
14
|
|
|
@@ -20,6 +20,8 @@ export interface PlannerToolContext {
|
|
|
20
20
|
linearApi: LinearAgentApi;
|
|
21
21
|
projectId: string;
|
|
22
22
|
teamId: string;
|
|
23
|
+
api: OpenClawPluginApi;
|
|
24
|
+
pluginConfig?: Record<string, unknown>;
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
// ---------------------------------------------------------------------------
|
|
@@ -151,6 +153,12 @@ export function auditPlan(issues: ProjectIssue[]): AuditResult {
|
|
|
151
153
|
if (!issue.priority || issue.priority === 0) {
|
|
152
154
|
problems.push(`${issue.identifier} "${issue.title}": missing priority`);
|
|
153
155
|
}
|
|
156
|
+
|
|
157
|
+
// Acceptance criteria check (warning, not failure)
|
|
158
|
+
const acMarkers = /\b(given|when|then|as a|i want|so that|acceptance criteria|uat|test scenario)\b/i;
|
|
159
|
+
if (issue.description && !acMarkers.test(issue.description)) {
|
|
160
|
+
warnings.push(`${issue.identifier} "${issue.title}": no acceptance criteria or test scenarios found in description`);
|
|
161
|
+
}
|
|
154
162
|
}
|
|
155
163
|
}
|
|
156
164
|
|
|
@@ -262,7 +270,7 @@ export function createPlannerTools(): AnyAgentTool[] {
|
|
|
262
270
|
type: "object",
|
|
263
271
|
properties: {
|
|
264
272
|
title: { type: "string", description: "Issue title" },
|
|
265
|
-
description: { type: "string", description: "Issue description
|
|
273
|
+
description: { type: "string", description: "Issue description including: user story (As a...), acceptance criteria (Given/When/Then), and at least one UAT test scenario (min 50 chars)" },
|
|
266
274
|
parentIdentifier: { type: "string", description: "Parent issue identifier (e.g. PROJ-2) to create as sub-issue" },
|
|
267
275
|
isEpic: { type: "boolean", description: "Mark as epic (high-level feature area)" },
|
|
268
276
|
priority: { type: "number", description: "Priority: 1=Urgent, 2=High, 3=Medium, 4=Low" },
|