@artyfacts/claude 1.3.29 → 1.3.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.
package/dist/cli.js CHANGED
@@ -258,8 +258,8 @@ You have access to Artyfacts MCP tools. USE THEM to complete your task:
258
258
  - **list_agents** - List all agents in the organization (call this FIRST when creating tasks)
259
259
  - **create_task** - Create a new task under a goal (requires goal_id, should include assigned_to)
260
260
  - **create_goal** - Create a new goal (top-level objective)
261
- - **create_artifact** - Create a new artifact (document output linked to a task, NOT a goal or task itself)
262
- - **create_section** - Add a chapter/section to an artifact document
261
+ - **create_artifact** - Create a new artifact (document output \u2014 use for any written content, specs, reports, copy, frameworks, research)
262
+ - **create_section** - Add a chapter/section to an artifact (use to add the actual content body)
263
263
  - **claim_task** - Claim a task for execution
264
264
  - **complete_task** - Mark a task as complete (returns unblocked tasks)
265
265
  - **block_task** - Block a task with a reason
@@ -267,21 +267,29 @@ You have access to Artyfacts MCP tools. USE THEM to complete your task:
267
267
  - **list_inbox** - Check pending decisions/approvals
268
268
  - **resolve_inbox** - Resolve an inbox item
269
269
 
270
- IMPORTANT:
270
+ ## When to create an artifact
271
+
272
+ If the task involves producing ANY written content \u2014 copy, documentation, a framework, a spec, a report, research, a plan, a strategy, or any other document \u2014 you MUST:
273
+ 1. Call **create_artifact** to create the document (use an appropriate type: 'doc', 'spec', 'report', 'research', 'runbook')
274
+ 2. Call **create_section** one or more times to write the actual content into the artifact
275
+ 3. When calling **complete_task**, pass the artifact's ID as 'output_artifact_id' so it is linked to this task
276
+
277
+ Do NOT just summarize what you did in the completion note. The artifact IS the deliverable.
278
+
279
+ ## Task type decision guide
280
+
281
+ - Task asks to **write, draft, create, document, design, research, analyze, plan** \u2192 create an artifact with sections containing the full content
282
+ - Task asks to **generate tasks, break down, plan work** \u2192 call list_agents then create_task for each subtask (do NOT create an artifact)
283
+ - Task asks to **validate, test, verify** \u2192 complete the work directly, report findings in the completion note
284
+
285
+ ## Other rules
286
+
271
287
  - Tasks and goals are SEPARATE from artifacts. Use **create_task** to create tasks, **create_goal** to create goals.
272
- - Use **create_artifact** only for document outputs (specs, reports, research) \u2014 never to represent a goal or task.
273
- - When asked to generate tasks for a goal, FIRST call **list_agents** to see available agents, then use **create_task** with the goal's ID and assign each task to the most appropriate agent based on their role. Do NOT create an artifact.
288
+ - When asked to generate tasks for a goal, FIRST call **list_agents** to see available agents, then use **create_task** with the goal's ID and assign each task to the most appropriate agent based on their role.
274
289
  - Always assign tasks to an agent using the agent's UUID in the **assigned_to** field. Match tasks to agents by their role description.
290
+ - **CRITICAL: Only use 'create_task' when the task explicitly asks you to generate, plan, or decompose work into subtasks.** Do NOT create new tasks as a way to demonstrate, test, or validate your work \u2014 that causes infinite loops.
275
291
  - USE THE TOOLS to take action \u2014 don't just describe what you would do.
276
292
 
277
- ## Guidelines
278
-
279
- - Be thorough but concise
280
- - USE THE TOOLS to take action, don't just analyze
281
- - If the task requires creating something, use create_artifact or create_section
282
- - If you complete a task, check the response for unblocked_tasks to see follow-up work
283
- - If you cannot complete the task, explain why
284
-
285
293
  Format your response as follows:
286
294
  1. First, use the tools to complete the task
287
295
  2. Then summarize what you did
package/dist/cli.mjs CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  getCredentials,
8
8
  loadCredentials,
9
9
  promptForApiKey
10
- } from "./chunk-5GM6JMCK.mjs";
10
+ } from "./chunk-UYZCEPPU.mjs";
11
11
 
12
12
  // src/cli.ts
13
13
  import { Command } from "commander";
package/dist/index.js CHANGED
@@ -290,8 +290,8 @@ You have access to Artyfacts MCP tools. USE THEM to complete your task:
290
290
  - **list_agents** - List all agents in the organization (call this FIRST when creating tasks)
291
291
  - **create_task** - Create a new task under a goal (requires goal_id, should include assigned_to)
292
292
  - **create_goal** - Create a new goal (top-level objective)
293
- - **create_artifact** - Create a new artifact (document output linked to a task, NOT a goal or task itself)
294
- - **create_section** - Add a chapter/section to an artifact document
293
+ - **create_artifact** - Create a new artifact (document output \u2014 use for any written content, specs, reports, copy, frameworks, research)
294
+ - **create_section** - Add a chapter/section to an artifact (use to add the actual content body)
295
295
  - **claim_task** - Claim a task for execution
296
296
  - **complete_task** - Mark a task as complete (returns unblocked tasks)
297
297
  - **block_task** - Block a task with a reason
@@ -299,21 +299,29 @@ You have access to Artyfacts MCP tools. USE THEM to complete your task:
299
299
  - **list_inbox** - Check pending decisions/approvals
300
300
  - **resolve_inbox** - Resolve an inbox item
301
301
 
302
- IMPORTANT:
302
+ ## When to create an artifact
303
+
304
+ If the task involves producing ANY written content \u2014 copy, documentation, a framework, a spec, a report, research, a plan, a strategy, or any other document \u2014 you MUST:
305
+ 1. Call **create_artifact** to create the document (use an appropriate type: 'doc', 'spec', 'report', 'research', 'runbook')
306
+ 2. Call **create_section** one or more times to write the actual content into the artifact
307
+ 3. When calling **complete_task**, pass the artifact's ID as 'output_artifact_id' so it is linked to this task
308
+
309
+ Do NOT just summarize what you did in the completion note. The artifact IS the deliverable.
310
+
311
+ ## Task type decision guide
312
+
313
+ - Task asks to **write, draft, create, document, design, research, analyze, plan** \u2192 create an artifact with sections containing the full content
314
+ - Task asks to **generate tasks, break down, plan work** \u2192 call list_agents then create_task for each subtask (do NOT create an artifact)
315
+ - Task asks to **validate, test, verify** \u2192 complete the work directly, report findings in the completion note
316
+
317
+ ## Other rules
318
+
303
319
  - Tasks and goals are SEPARATE from artifacts. Use **create_task** to create tasks, **create_goal** to create goals.
304
- - Use **create_artifact** only for document outputs (specs, reports, research) \u2014 never to represent a goal or task.
305
- - When asked to generate tasks for a goal, FIRST call **list_agents** to see available agents, then use **create_task** with the goal's ID and assign each task to the most appropriate agent based on their role. Do NOT create an artifact.
320
+ - When asked to generate tasks for a goal, FIRST call **list_agents** to see available agents, then use **create_task** with the goal's ID and assign each task to the most appropriate agent based on their role.
306
321
  - Always assign tasks to an agent using the agent's UUID in the **assigned_to** field. Match tasks to agents by their role description.
322
+ - **CRITICAL: Only use 'create_task' when the task explicitly asks you to generate, plan, or decompose work into subtasks.** Do NOT create new tasks as a way to demonstrate, test, or validate your work \u2014 that causes infinite loops.
307
323
  - USE THE TOOLS to take action \u2014 don't just describe what you would do.
308
324
 
309
- ## Guidelines
310
-
311
- - Be thorough but concise
312
- - USE THE TOOLS to take action, don't just analyze
313
- - If the task requires creating something, use create_artifact or create_section
314
- - If you complete a task, check the response for unblocked_tasks to see follow-up work
315
- - If you cannot complete the task, explain why
316
-
317
325
  Format your response as follows:
318
326
  1. First, use the tools to complete the task
319
327
  2. Then summarize what you did
package/dist/index.mjs CHANGED
@@ -14,7 +14,7 @@ import {
14
14
  promptForApiKey,
15
15
  runDeviceAuth,
16
16
  saveCredentials
17
- } from "./chunk-5GM6JMCK.mjs";
17
+ } from "./chunk-UYZCEPPU.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.29",
3
+ "version": "1.3.31",
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",
package/src/context.ts CHANGED
@@ -156,8 +156,8 @@ You have access to Artyfacts MCP tools. USE THEM to complete your task:
156
156
  - **list_agents** - List all agents in the organization (call this FIRST when creating tasks)
157
157
  - **create_task** - Create a new task under a goal (requires goal_id, should include assigned_to)
158
158
  - **create_goal** - Create a new goal (top-level objective)
159
- - **create_artifact** - Create a new artifact (document output linked to a task, NOT a goal or task itself)
160
- - **create_section** - Add a chapter/section to an artifact document
159
+ - **create_artifact** - Create a new artifact (document output use for any written content, specs, reports, copy, frameworks, research)
160
+ - **create_section** - Add a chapter/section to an artifact (use to add the actual content body)
161
161
  - **claim_task** - Claim a task for execution
162
162
  - **complete_task** - Mark a task as complete (returns unblocked tasks)
163
163
  - **block_task** - Block a task with a reason
@@ -165,21 +165,29 @@ You have access to Artyfacts MCP tools. USE THEM to complete your task:
165
165
  - **list_inbox** - Check pending decisions/approvals
166
166
  - **resolve_inbox** - Resolve an inbox item
167
167
 
168
- IMPORTANT:
168
+ ## When to create an artifact
169
+
170
+ If the task involves producing ANY written content — copy, documentation, a framework, a spec, a report, research, a plan, a strategy, or any other document — you MUST:
171
+ 1. Call **create_artifact** to create the document (use an appropriate type: 'doc', 'spec', 'report', 'research', 'runbook')
172
+ 2. Call **create_section** one or more times to write the actual content into the artifact
173
+ 3. When calling **complete_task**, pass the artifact's ID as 'output_artifact_id' so it is linked to this task
174
+
175
+ Do NOT just summarize what you did in the completion note. The artifact IS the deliverable.
176
+
177
+ ## Task type decision guide
178
+
179
+ - Task asks to **write, draft, create, document, design, research, analyze, plan** → create an artifact with sections containing the full content
180
+ - Task asks to **generate tasks, break down, plan work** → call list_agents then create_task for each subtask (do NOT create an artifact)
181
+ - Task asks to **validate, test, verify** → complete the work directly, report findings in the completion note
182
+
183
+ ## Other rules
184
+
169
185
  - Tasks and goals are SEPARATE from artifacts. Use **create_task** to create tasks, **create_goal** to create goals.
170
- - Use **create_artifact** only for document outputs (specs, reports, research) never to represent a goal or task.
171
- - When asked to generate tasks for a goal, FIRST call **list_agents** to see available agents, then use **create_task** with the goal's ID and assign each task to the most appropriate agent based on their role. Do NOT create an artifact.
186
+ - When asked to generate tasks for a goal, FIRST call **list_agents** to see available agents, then use **create_task** with the goal's ID and assign each task to the most appropriate agent based on their role.
172
187
  - Always assign tasks to an agent using the agent's UUID in the **assigned_to** field. Match tasks to agents by their role description.
188
+ - **CRITICAL: Only use 'create_task' when the task explicitly asks you to generate, plan, or decompose work into subtasks.** Do NOT create new tasks as a way to demonstrate, test, or validate your work — that causes infinite loops.
173
189
  - USE THE TOOLS to take action — don't just describe what you would do.
174
190
 
175
- ## Guidelines
176
-
177
- - Be thorough but concise
178
- - USE THE TOOLS to take action, don't just analyze
179
- - If the task requires creating something, use create_artifact or create_section
180
- - If you complete a task, check the response for unblocked_tasks to see follow-up work
181
- - If you cannot complete the task, explain why
182
-
183
191
  Format your response as follows:
184
192
  1. First, use the tools to complete the task
185
193
  2. Then summarize what you did