@artyfacts/claude 1.3.25 → 1.3.26
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/index.js +49 -0
- package/dist/index.mjs +49 -0
- package/package.json +1 -1
- package/src/tools/handlers.ts +22 -0
- package/src/tools/registry.ts +34 -0
package/dist/index.js
CHANGED
|
@@ -5153,6 +5153,39 @@ var schemas = {
|
|
|
5153
5153
|
required: []
|
|
5154
5154
|
}
|
|
5155
5155
|
},
|
|
5156
|
+
create_goal: {
|
|
5157
|
+
name: "create_goal",
|
|
5158
|
+
description: "Create a new goal (v2). Goals are first-class entities that contain tasks.",
|
|
5159
|
+
input_schema: {
|
|
5160
|
+
type: "object",
|
|
5161
|
+
properties: {
|
|
5162
|
+
title: {
|
|
5163
|
+
type: "string",
|
|
5164
|
+
description: "Goal title"
|
|
5165
|
+
},
|
|
5166
|
+
description: {
|
|
5167
|
+
type: "string",
|
|
5168
|
+
description: "Goal description and objectives"
|
|
5169
|
+
},
|
|
5170
|
+
priority: {
|
|
5171
|
+
type: "string",
|
|
5172
|
+
enum: ["low", "medium", "high", "urgent"],
|
|
5173
|
+
default: "medium",
|
|
5174
|
+
description: "Priority level"
|
|
5175
|
+
},
|
|
5176
|
+
target_date: {
|
|
5177
|
+
type: "string",
|
|
5178
|
+
description: "Optional: target completion date (ISO format)"
|
|
5179
|
+
},
|
|
5180
|
+
tags: {
|
|
5181
|
+
type: "array",
|
|
5182
|
+
items: { type: "string" },
|
|
5183
|
+
description: "Optional: tags for categorization"
|
|
5184
|
+
}
|
|
5185
|
+
},
|
|
5186
|
+
required: ["title"]
|
|
5187
|
+
}
|
|
5188
|
+
},
|
|
5156
5189
|
create_task: {
|
|
5157
5190
|
name: "create_task",
|
|
5158
5191
|
description: "Create a new task under a goal.",
|
|
@@ -5705,6 +5738,20 @@ var listTasksHandler = async (args, client) => {
|
|
|
5705
5738
|
return { success: false, error: String(error) };
|
|
5706
5739
|
}
|
|
5707
5740
|
};
|
|
5741
|
+
var createGoalHandler = async (args, client) => {
|
|
5742
|
+
try {
|
|
5743
|
+
const data = await client.post("/goals", {
|
|
5744
|
+
title: args.title,
|
|
5745
|
+
description: args.description,
|
|
5746
|
+
priority: args.priority || "medium",
|
|
5747
|
+
target_date: args.target_date,
|
|
5748
|
+
tags: args.tags
|
|
5749
|
+
});
|
|
5750
|
+
return { success: true, data };
|
|
5751
|
+
} catch (error) {
|
|
5752
|
+
return { success: false, error: String(error) };
|
|
5753
|
+
}
|
|
5754
|
+
};
|
|
5708
5755
|
var createTaskHandler = async (args, client) => {
|
|
5709
5756
|
try {
|
|
5710
5757
|
const data = await client.post("/tasks", {
|
|
@@ -5871,6 +5918,8 @@ var handlers = {
|
|
|
5871
5918
|
list_agents: listAgentsHandler,
|
|
5872
5919
|
create_agent: createAgentHandler,
|
|
5873
5920
|
update_agent: updateAgentHandler,
|
|
5921
|
+
// Goals (v2)
|
|
5922
|
+
create_goal: createGoalHandler,
|
|
5874
5923
|
// Tasks (v2)
|
|
5875
5924
|
get_task: getTaskHandler,
|
|
5876
5925
|
list_tasks: listTasksHandler,
|
package/dist/index.mjs
CHANGED
|
@@ -4264,6 +4264,39 @@ var schemas = {
|
|
|
4264
4264
|
required: []
|
|
4265
4265
|
}
|
|
4266
4266
|
},
|
|
4267
|
+
create_goal: {
|
|
4268
|
+
name: "create_goal",
|
|
4269
|
+
description: "Create a new goal (v2). Goals are first-class entities that contain tasks.",
|
|
4270
|
+
input_schema: {
|
|
4271
|
+
type: "object",
|
|
4272
|
+
properties: {
|
|
4273
|
+
title: {
|
|
4274
|
+
type: "string",
|
|
4275
|
+
description: "Goal title"
|
|
4276
|
+
},
|
|
4277
|
+
description: {
|
|
4278
|
+
type: "string",
|
|
4279
|
+
description: "Goal description and objectives"
|
|
4280
|
+
},
|
|
4281
|
+
priority: {
|
|
4282
|
+
type: "string",
|
|
4283
|
+
enum: ["low", "medium", "high", "urgent"],
|
|
4284
|
+
default: "medium",
|
|
4285
|
+
description: "Priority level"
|
|
4286
|
+
},
|
|
4287
|
+
target_date: {
|
|
4288
|
+
type: "string",
|
|
4289
|
+
description: "Optional: target completion date (ISO format)"
|
|
4290
|
+
},
|
|
4291
|
+
tags: {
|
|
4292
|
+
type: "array",
|
|
4293
|
+
items: { type: "string" },
|
|
4294
|
+
description: "Optional: tags for categorization"
|
|
4295
|
+
}
|
|
4296
|
+
},
|
|
4297
|
+
required: ["title"]
|
|
4298
|
+
}
|
|
4299
|
+
},
|
|
4267
4300
|
create_task: {
|
|
4268
4301
|
name: "create_task",
|
|
4269
4302
|
description: "Create a new task under a goal.",
|
|
@@ -4816,6 +4849,20 @@ var listTasksHandler = async (args, client) => {
|
|
|
4816
4849
|
return { success: false, error: String(error) };
|
|
4817
4850
|
}
|
|
4818
4851
|
};
|
|
4852
|
+
var createGoalHandler = async (args, client) => {
|
|
4853
|
+
try {
|
|
4854
|
+
const data = await client.post("/goals", {
|
|
4855
|
+
title: args.title,
|
|
4856
|
+
description: args.description,
|
|
4857
|
+
priority: args.priority || "medium",
|
|
4858
|
+
target_date: args.target_date,
|
|
4859
|
+
tags: args.tags
|
|
4860
|
+
});
|
|
4861
|
+
return { success: true, data };
|
|
4862
|
+
} catch (error) {
|
|
4863
|
+
return { success: false, error: String(error) };
|
|
4864
|
+
}
|
|
4865
|
+
};
|
|
4819
4866
|
var createTaskHandler = async (args, client) => {
|
|
4820
4867
|
try {
|
|
4821
4868
|
const data = await client.post("/tasks", {
|
|
@@ -4982,6 +5029,8 @@ var handlers = {
|
|
|
4982
5029
|
list_agents: listAgentsHandler,
|
|
4983
5030
|
create_agent: createAgentHandler,
|
|
4984
5031
|
update_agent: updateAgentHandler,
|
|
5032
|
+
// Goals (v2)
|
|
5033
|
+
create_goal: createGoalHandler,
|
|
4985
5034
|
// Tasks (v2)
|
|
4986
5035
|
get_task: getTaskHandler,
|
|
4987
5036
|
list_tasks: listTasksHandler,
|
package/package.json
CHANGED
package/src/tools/handlers.ts
CHANGED
|
@@ -260,6 +260,25 @@ export const listTasksHandler: ToolHandler = async (args, client) => {
|
|
|
260
260
|
}
|
|
261
261
|
};
|
|
262
262
|
|
|
263
|
+
/**
|
|
264
|
+
* Create a goal (v2)
|
|
265
|
+
* Uses POST /api/v1/goals - creates in goals table
|
|
266
|
+
*/
|
|
267
|
+
export const createGoalHandler: ToolHandler = async (args, client) => {
|
|
268
|
+
try {
|
|
269
|
+
const data = await client.post('/goals', {
|
|
270
|
+
title: args.title,
|
|
271
|
+
description: args.description,
|
|
272
|
+
priority: args.priority || 'medium',
|
|
273
|
+
target_date: args.target_date,
|
|
274
|
+
tags: args.tags,
|
|
275
|
+
});
|
|
276
|
+
return { success: true, data };
|
|
277
|
+
} catch (error) {
|
|
278
|
+
return { success: false, error: String(error) };
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
|
|
263
282
|
/**
|
|
264
283
|
* Create a task (v2)
|
|
265
284
|
* Uses POST /api/v1/tasks - creates in tasks table
|
|
@@ -486,6 +505,9 @@ export const handlers: Record<string, ToolHandler> = {
|
|
|
486
505
|
create_agent: createAgentHandler,
|
|
487
506
|
update_agent: updateAgentHandler,
|
|
488
507
|
|
|
508
|
+
// Goals (v2)
|
|
509
|
+
create_goal: createGoalHandler,
|
|
510
|
+
|
|
489
511
|
// Tasks (v2)
|
|
490
512
|
get_task: getTaskHandler,
|
|
491
513
|
list_tasks: listTasksHandler,
|
package/src/tools/registry.ts
CHANGED
|
@@ -459,6 +459,40 @@ const schemas: Record<string, ToolSchema> = {
|
|
|
459
459
|
},
|
|
460
460
|
},
|
|
461
461
|
|
|
462
|
+
create_goal: {
|
|
463
|
+
name: 'create_goal',
|
|
464
|
+
description: 'Create a new goal (v2). Goals are first-class entities that contain tasks.',
|
|
465
|
+
input_schema: {
|
|
466
|
+
type: 'object',
|
|
467
|
+
properties: {
|
|
468
|
+
title: {
|
|
469
|
+
type: 'string',
|
|
470
|
+
description: 'Goal title',
|
|
471
|
+
},
|
|
472
|
+
description: {
|
|
473
|
+
type: 'string',
|
|
474
|
+
description: 'Goal description and objectives',
|
|
475
|
+
},
|
|
476
|
+
priority: {
|
|
477
|
+
type: 'string',
|
|
478
|
+
enum: ['low', 'medium', 'high', 'urgent'],
|
|
479
|
+
default: 'medium',
|
|
480
|
+
description: 'Priority level',
|
|
481
|
+
},
|
|
482
|
+
target_date: {
|
|
483
|
+
type: 'string',
|
|
484
|
+
description: 'Optional: target completion date (ISO format)',
|
|
485
|
+
},
|
|
486
|
+
tags: {
|
|
487
|
+
type: 'array',
|
|
488
|
+
items: { type: 'string' },
|
|
489
|
+
description: 'Optional: tags for categorization',
|
|
490
|
+
},
|
|
491
|
+
},
|
|
492
|
+
required: ['title'],
|
|
493
|
+
},
|
|
494
|
+
},
|
|
495
|
+
|
|
462
496
|
create_task: {
|
|
463
497
|
name: 'create_task',
|
|
464
498
|
description: 'Create a new task under a goal.',
|