@artyfacts/claude 1.3.26 → 1.3.28
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/chunk-FHAIFO6L.mjs +1093 -0
- package/dist/chunk-TECOXAZZ.mjs +1094 -0
- package/dist/cli.js +14 -5
- package/dist/cli.mjs +1 -1
- package/dist/index.js +14 -5
- package/dist/index.mjs +1 -1
- package/package.json +9 -9
- package/src/context.ts +10 -5
- package/src/executor.ts +4 -0
package/dist/cli.js
CHANGED
|
@@ -255,10 +255,10 @@ Your job is to complete the assigned task. You have full context about the organ
|
|
|
255
255
|
|
|
256
256
|
You have access to Artyfacts MCP tools. USE THEM to complete your task:
|
|
257
257
|
|
|
258
|
-
- **
|
|
259
|
-
- **
|
|
260
|
-
- **
|
|
261
|
-
- **
|
|
258
|
+
- **create_task** - Create a new task under a goal (requires goal_id)
|
|
259
|
+
- **create_goal** - Create a new goal (top-level objective)
|
|
260
|
+
- **create_artifact** - Create a new artifact (document output linked to a task, NOT a goal or task itself)
|
|
261
|
+
- **create_section** - Add a chapter/section to an artifact document
|
|
262
262
|
- **claim_task** - Claim a task for execution
|
|
263
263
|
- **complete_task** - Mark a task as complete (returns unblocked tasks)
|
|
264
264
|
- **block_task** - Block a task with a reason
|
|
@@ -266,7 +266,11 @@ You have access to Artyfacts MCP tools. USE THEM to complete your task:
|
|
|
266
266
|
- **list_inbox** - Check pending decisions/approvals
|
|
267
267
|
- **resolve_inbox** - Resolve an inbox item
|
|
268
268
|
|
|
269
|
-
IMPORTANT:
|
|
269
|
+
IMPORTANT:
|
|
270
|
+
- Tasks and goals are SEPARATE from artifacts. Use **create_task** to create tasks, **create_goal** to create goals.
|
|
271
|
+
- Use **create_artifact** only for document outputs (specs, reports, research) \u2014 never to represent a goal or task.
|
|
272
|
+
- When asked to generate tasks for a goal, use **create_task** with the goal's ID for each task. Do NOT create an artifact.
|
|
273
|
+
- USE THE TOOLS to take action \u2014 don't just describe what you would do.
|
|
270
274
|
|
|
271
275
|
## Guidelines
|
|
272
276
|
|
|
@@ -300,6 +304,7 @@ Format your response as follows:
|
|
|
300
304
|
const goal = context.goal || context.artifact;
|
|
301
305
|
if (goal) {
|
|
302
306
|
parts.push(`## Goal: ${goal.title}`);
|
|
307
|
+
parts.push(`**Goal ID:** ${goal.id}`);
|
|
303
308
|
if (goal.objective) {
|
|
304
309
|
parts.push(`**Objective:** ${goal.objective}`);
|
|
305
310
|
}
|
|
@@ -583,9 +588,13 @@ ${DEFAULT_SYSTEM_PROMPT}` : DEFAULT_SYSTEM_PROMPT;
|
|
|
583
588
|
parts.push(`# Task: ${taskTitle}`);
|
|
584
589
|
parts.push("");
|
|
585
590
|
const goalTitle = task.goalTitle || task.artifactTitle;
|
|
591
|
+
const goalId = task.goalId || task.artifactId;
|
|
586
592
|
if (goalTitle) {
|
|
587
593
|
parts.push(`**Goal:** ${goalTitle}`);
|
|
588
594
|
}
|
|
595
|
+
if (goalId) {
|
|
596
|
+
parts.push(`**Goal ID:** ${goalId}`);
|
|
597
|
+
}
|
|
589
598
|
if (task.priority) {
|
|
590
599
|
const priorityEmoji = {
|
|
591
600
|
high: "\u{1F534} High",
|
package/dist/cli.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -287,10 +287,10 @@ Your job is to complete the assigned task. You have full context about the organ
|
|
|
287
287
|
|
|
288
288
|
You have access to Artyfacts MCP tools. USE THEM to complete your task:
|
|
289
289
|
|
|
290
|
-
- **
|
|
291
|
-
- **
|
|
292
|
-
- **
|
|
293
|
-
- **
|
|
290
|
+
- **create_task** - Create a new task under a goal (requires goal_id)
|
|
291
|
+
- **create_goal** - Create a new goal (top-level objective)
|
|
292
|
+
- **create_artifact** - Create a new artifact (document output linked to a task, NOT a goal or task itself)
|
|
293
|
+
- **create_section** - Add a chapter/section to an artifact document
|
|
294
294
|
- **claim_task** - Claim a task for execution
|
|
295
295
|
- **complete_task** - Mark a task as complete (returns unblocked tasks)
|
|
296
296
|
- **block_task** - Block a task with a reason
|
|
@@ -298,7 +298,11 @@ You have access to Artyfacts MCP tools. USE THEM to complete your task:
|
|
|
298
298
|
- **list_inbox** - Check pending decisions/approvals
|
|
299
299
|
- **resolve_inbox** - Resolve an inbox item
|
|
300
300
|
|
|
301
|
-
IMPORTANT:
|
|
301
|
+
IMPORTANT:
|
|
302
|
+
- Tasks and goals are SEPARATE from artifacts. Use **create_task** to create tasks, **create_goal** to create goals.
|
|
303
|
+
- Use **create_artifact** only for document outputs (specs, reports, research) \u2014 never to represent a goal or task.
|
|
304
|
+
- When asked to generate tasks for a goal, use **create_task** with the goal's ID for each task. Do NOT create an artifact.
|
|
305
|
+
- USE THE TOOLS to take action \u2014 don't just describe what you would do.
|
|
302
306
|
|
|
303
307
|
## Guidelines
|
|
304
308
|
|
|
@@ -332,6 +336,7 @@ Format your response as follows:
|
|
|
332
336
|
const goal = context.goal || context.artifact;
|
|
333
337
|
if (goal) {
|
|
334
338
|
parts.push(`## Goal: ${goal.title}`);
|
|
339
|
+
parts.push(`**Goal ID:** ${goal.id}`);
|
|
335
340
|
if (goal.objective) {
|
|
336
341
|
parts.push(`**Objective:** ${goal.objective}`);
|
|
337
342
|
}
|
|
@@ -615,9 +620,13 @@ ${DEFAULT_SYSTEM_PROMPT}` : DEFAULT_SYSTEM_PROMPT;
|
|
|
615
620
|
parts.push(`# Task: ${taskTitle}`);
|
|
616
621
|
parts.push("");
|
|
617
622
|
const goalTitle = task.goalTitle || task.artifactTitle;
|
|
623
|
+
const goalId = task.goalId || task.artifactId;
|
|
618
624
|
if (goalTitle) {
|
|
619
625
|
parts.push(`**Goal:** ${goalTitle}`);
|
|
620
626
|
}
|
|
627
|
+
if (goalId) {
|
|
628
|
+
parts.push(`**Goal ID:** ${goalId}`);
|
|
629
|
+
}
|
|
621
630
|
if (task.priority) {
|
|
622
631
|
const priorityEmoji = {
|
|
623
632
|
high: "\u{1F534} High",
|
package/dist/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
promptForApiKey,
|
|
15
15
|
runDeviceAuth,
|
|
16
16
|
saveCredentials
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TECOXAZZ.mjs";
|
|
18
18
|
|
|
19
19
|
// node_modules/@anthropic-ai/sdk/internal/tslib.mjs
|
|
20
20
|
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artyfacts/claude",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.28",
|
|
4
4
|
"description": "Claude adapter for Artyfacts - Execute tasks using Claude Code CLI",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -15,6 +15,13 @@
|
|
|
15
15
|
"require": "./dist/index.js"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "tsup src/index.ts src/cli.ts --format cjs,esm --dts",
|
|
20
|
+
"dev": "tsup src/index.ts src/cli.ts --format cjs,esm --dts --watch",
|
|
21
|
+
"start": "node bin/artyfacts-claude.js",
|
|
22
|
+
"test": "vitest",
|
|
23
|
+
"lint": "eslint src/"
|
|
24
|
+
},
|
|
18
25
|
"keywords": [
|
|
19
26
|
"artyfacts",
|
|
20
27
|
"claude",
|
|
@@ -47,12 +54,5 @@
|
|
|
47
54
|
},
|
|
48
55
|
"engines": {
|
|
49
56
|
"node": ">=18.0.0"
|
|
50
|
-
},
|
|
51
|
-
"scripts": {
|
|
52
|
-
"build": "tsup src/index.ts src/cli.ts --format cjs,esm --dts",
|
|
53
|
-
"dev": "tsup src/index.ts src/cli.ts --format cjs,esm --dts --watch",
|
|
54
|
-
"start": "node bin/artyfacts-claude.js",
|
|
55
|
-
"test": "vitest",
|
|
56
|
-
"lint": "eslint src/"
|
|
57
57
|
}
|
|
58
|
-
}
|
|
58
|
+
}
|
package/src/context.ts
CHANGED
|
@@ -153,10 +153,10 @@ Your job is to complete the assigned task. You have full context about the organ
|
|
|
153
153
|
|
|
154
154
|
You have access to Artyfacts MCP tools. USE THEM to complete your task:
|
|
155
155
|
|
|
156
|
-
- **
|
|
157
|
-
- **
|
|
158
|
-
- **
|
|
159
|
-
- **
|
|
156
|
+
- **create_task** - Create a new task under a goal (requires goal_id)
|
|
157
|
+
- **create_goal** - Create a new goal (top-level objective)
|
|
158
|
+
- **create_artifact** - Create a new artifact (document output linked to a task, NOT a goal or task itself)
|
|
159
|
+
- **create_section** - Add a chapter/section to an artifact document
|
|
160
160
|
- **claim_task** - Claim a task for execution
|
|
161
161
|
- **complete_task** - Mark a task as complete (returns unblocked tasks)
|
|
162
162
|
- **block_task** - Block a task with a reason
|
|
@@ -164,7 +164,11 @@ You have access to Artyfacts MCP tools. USE THEM to complete your task:
|
|
|
164
164
|
- **list_inbox** - Check pending decisions/approvals
|
|
165
165
|
- **resolve_inbox** - Resolve an inbox item
|
|
166
166
|
|
|
167
|
-
IMPORTANT:
|
|
167
|
+
IMPORTANT:
|
|
168
|
+
- Tasks and goals are SEPARATE from artifacts. Use **create_task** to create tasks, **create_goal** to create goals.
|
|
169
|
+
- Use **create_artifact** only for document outputs (specs, reports, research) — never to represent a goal or task.
|
|
170
|
+
- When asked to generate tasks for a goal, use **create_task** with the goal's ID for each task. Do NOT create an artifact.
|
|
171
|
+
- USE THE TOOLS to take action — don't just describe what you would do.
|
|
168
172
|
|
|
169
173
|
## Guidelines
|
|
170
174
|
|
|
@@ -205,6 +209,7 @@ Format your response as follows:
|
|
|
205
209
|
const goal = context.goal || context.artifact;
|
|
206
210
|
if (goal) {
|
|
207
211
|
parts.push(`## Goal: ${goal.title}`);
|
|
212
|
+
parts.push(`**Goal ID:** ${goal.id}`);
|
|
208
213
|
if (goal.objective) {
|
|
209
214
|
parts.push(`**Objective:** ${goal.objective}`);
|
|
210
215
|
}
|
package/src/executor.ts
CHANGED
|
@@ -288,9 +288,13 @@ export class ClaudeExecutor {
|
|
|
288
288
|
|
|
289
289
|
// Goal context (v2: was artifact)
|
|
290
290
|
const goalTitle = task.goalTitle || task.artifactTitle;
|
|
291
|
+
const goalId = task.goalId || task.artifactId;
|
|
291
292
|
if (goalTitle) {
|
|
292
293
|
parts.push(`**Goal:** ${goalTitle}`);
|
|
293
294
|
}
|
|
295
|
+
if (goalId) {
|
|
296
|
+
parts.push(`**Goal ID:** ${goalId}`);
|
|
297
|
+
}
|
|
294
298
|
|
|
295
299
|
// Priority (v2: string-based)
|
|
296
300
|
if (task.priority) {
|