@devpad/cli 2.0.3 → 2.0.4
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 +32 -9
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -8291,7 +8291,7 @@ var coerce = {
|
|
|
8291
8291
|
date: (arg) => ZodDate.create({ ...arg, coerce: true })
|
|
8292
8292
|
};
|
|
8293
8293
|
var NEVER = INVALID;
|
|
8294
|
-
// ../api/dist/chunk-
|
|
8294
|
+
// ../api/dist/chunk-XGQQPYSB.js
|
|
8295
8295
|
var ArrayBufferedQueue = class {
|
|
8296
8296
|
constructor(_capacity) {
|
|
8297
8297
|
this._capacity = _capacity;
|
|
@@ -8347,7 +8347,8 @@ var upsert_project = exports_external.object({
|
|
|
8347
8347
|
link_url: exports_external.string().nullable(),
|
|
8348
8348
|
link_text: exports_external.string().nullable(),
|
|
8349
8349
|
visibility: exports_external.union([exports_external.literal("PUBLIC"), exports_external.literal("PRIVATE"), exports_external.literal("HIDDEN"), exports_external.literal("ARCHIVED"), exports_external.literal("DRAFT"), exports_external.literal("DELETED")]).optional(),
|
|
8350
|
-
current_version: exports_external.string().nullable()
|
|
8350
|
+
current_version: exports_external.string().nullable(),
|
|
8351
|
+
force: exports_external.boolean().optional().describe("Override protection on user-modified entities")
|
|
8351
8352
|
});
|
|
8352
8353
|
var upsert_todo = exports_external.object({
|
|
8353
8354
|
id: exports_external.string().optional().nullable(),
|
|
@@ -8361,7 +8362,8 @@ var upsert_todo = exports_external.object({
|
|
|
8361
8362
|
priority: exports_external.union([exports_external.literal("LOW"), exports_external.literal("MEDIUM"), exports_external.literal("HIGH")]).optional(),
|
|
8362
8363
|
owner_id: exports_external.string(),
|
|
8363
8364
|
project_id: exports_external.string().optional().nullable(),
|
|
8364
|
-
goal_id: exports_external.string().optional().nullable()
|
|
8365
|
+
goal_id: exports_external.string().optional().nullable(),
|
|
8366
|
+
force: exports_external.boolean().optional().describe("Override protection on user-modified entities")
|
|
8365
8367
|
});
|
|
8366
8368
|
var update_action = exports_external.union([exports_external.literal("CONFIRM"), exports_external.literal("UNLINK"), exports_external.literal("CREATE"), exports_external.literal("IGNORE"), exports_external.literal("DELETE"), exports_external.literal("COMPLETE")]);
|
|
8367
8369
|
var ConfigSchema = exports_external.object({
|
|
@@ -8414,7 +8416,8 @@ var upsert_milestone = exports_external.object({
|
|
|
8414
8416
|
target_time: exports_external.string().nullable().optional(),
|
|
8415
8417
|
target_version: exports_external.string().nullable().optional(),
|
|
8416
8418
|
finished_at: exports_external.string().nullable().optional(),
|
|
8417
|
-
after_id: exports_external.string().nullable().optional()
|
|
8419
|
+
after_id: exports_external.string().nullable().optional(),
|
|
8420
|
+
force: exports_external.boolean().optional().describe("Override protection on user-modified entities")
|
|
8418
8421
|
});
|
|
8419
8422
|
var upsert_goal = exports_external.object({
|
|
8420
8423
|
id: exports_external.string().optional().nullable(),
|
|
@@ -8422,7 +8425,8 @@ var upsert_goal = exports_external.object({
|
|
|
8422
8425
|
name: exports_external.string().min(1).max(200),
|
|
8423
8426
|
description: exports_external.string().nullable().optional(),
|
|
8424
8427
|
target_time: exports_external.string().nullable().optional(),
|
|
8425
|
-
finished_at: exports_external.string().nullable().optional()
|
|
8428
|
+
finished_at: exports_external.string().nullable().optional(),
|
|
8429
|
+
force: exports_external.boolean().optional().describe("Override protection on user-modified entities")
|
|
8426
8430
|
});
|
|
8427
8431
|
|
|
8428
8432
|
// ../../node_modules/@f0rbit/corpus/dist/types.js
|
|
@@ -10457,6 +10461,16 @@ var ApiClient2 = class {
|
|
|
10457
10461
|
}))
|
|
10458
10462
|
}
|
|
10459
10463
|
};
|
|
10464
|
+
this.activity = {
|
|
10465
|
+
ai: (options2) => wrap(() => {
|
|
10466
|
+
const query = {};
|
|
10467
|
+
if (options2?.limit)
|
|
10468
|
+
query.limit = String(options2.limit);
|
|
10469
|
+
if (options2?.since)
|
|
10470
|
+
query.since = options2.since;
|
|
10471
|
+
return this.clients.projects.get("/activity/ai", Object.keys(query).length ? { query } : {});
|
|
10472
|
+
})
|
|
10473
|
+
};
|
|
10460
10474
|
this.user = {
|
|
10461
10475
|
history: () => wrap(() => this.clients.auth.get("/user/history")),
|
|
10462
10476
|
preferences: (data) => wrap(() => this.clients.auth.patch("/user/preferences", { body: data }))
|
|
@@ -10550,7 +10564,7 @@ var tools = {
|
|
|
10550
10564
|
},
|
|
10551
10565
|
devpad_projects_upsert: {
|
|
10552
10566
|
name: "devpad_projects_upsert",
|
|
10553
|
-
description: "Create or update a project (set deleted=true to delete)",
|
|
10567
|
+
description: "Create or update a project (set deleted=true to delete). Returns 409 if entity is protected by user - pass force=true to override.",
|
|
10554
10568
|
inputSchema: upsert_project,
|
|
10555
10569
|
execute: async (client, input) => unwrap2(await client.projects.upsert(input))
|
|
10556
10570
|
},
|
|
@@ -10577,7 +10591,7 @@ var tools = {
|
|
|
10577
10591
|
},
|
|
10578
10592
|
devpad_tasks_upsert: {
|
|
10579
10593
|
name: "devpad_tasks_upsert",
|
|
10580
|
-
description: "Create or update a task (set deleted=true to delete)",
|
|
10594
|
+
description: "Create or update a task (set deleted=true to delete). Returns 409 if entity is protected by user - pass force=true to override.",
|
|
10581
10595
|
inputSchema: upsert_todo,
|
|
10582
10596
|
execute: async (client, input) => unwrap2(await client.tasks.upsert(input))
|
|
10583
10597
|
},
|
|
@@ -10604,7 +10618,7 @@ var tools = {
|
|
|
10604
10618
|
},
|
|
10605
10619
|
devpad_milestones_upsert: {
|
|
10606
10620
|
name: "devpad_milestones_upsert",
|
|
10607
|
-
description: "Create or update a milestone",
|
|
10621
|
+
description: "Create or update a milestone. Returns 409 if entity is protected by user - pass force=true to override.",
|
|
10608
10622
|
inputSchema: upsert_milestone,
|
|
10609
10623
|
execute: async (client, input) => unwrap2(input.id ? await client.milestones.update(input.id, {
|
|
10610
10624
|
name: input.name,
|
|
@@ -10633,7 +10647,7 @@ var tools = {
|
|
|
10633
10647
|
},
|
|
10634
10648
|
devpad_goals_upsert: {
|
|
10635
10649
|
name: "devpad_goals_upsert",
|
|
10636
|
-
description: "Create or update a goal",
|
|
10650
|
+
description: "Create or update a goal. Returns 409 if entity is protected by user - pass force=true to override.",
|
|
10637
10651
|
inputSchema: upsert_goal,
|
|
10638
10652
|
execute: async (client, input) => unwrap2(input.id ? await client.goals.update(input.id, {
|
|
10639
10653
|
name: input.name,
|
|
@@ -10763,6 +10777,15 @@ var tools = {
|
|
|
10763
10777
|
}),
|
|
10764
10778
|
execute: async (client, input) => unwrap2(await client.user.preferences(input))
|
|
10765
10779
|
},
|
|
10780
|
+
devpad_activity_ai: {
|
|
10781
|
+
name: "devpad_activity_ai",
|
|
10782
|
+
description: "Get AI activity feed - shows recent actions made via API/MCP grouped into sessions by time window",
|
|
10783
|
+
inputSchema: exports_external.object({
|
|
10784
|
+
limit: exports_external.number().optional().describe("Max sessions to return (default 20)"),
|
|
10785
|
+
since: exports_external.string().optional().describe("Only show activity after this ISO date")
|
|
10786
|
+
}),
|
|
10787
|
+
execute: async (client, input) => unwrap2(await client.activity.ai(input))
|
|
10788
|
+
},
|
|
10766
10789
|
devpad_blog_posts_list: {
|
|
10767
10790
|
name: "devpad_blog_posts_list",
|
|
10768
10791
|
description: "List blog posts with optional filters",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devpad/cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "Command line interface for devpad project management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@devpad/api": "^2.0.
|
|
48
|
-
"@devpad/schema": "^2.0.
|
|
47
|
+
"@devpad/api": "^2.0.4",
|
|
48
|
+
"@devpad/schema": "^2.0.4",
|
|
49
49
|
"@types/node": "^20.11.24",
|
|
50
50
|
"bun-types": "latest",
|
|
51
51
|
"chalk": "^5.3.0",
|