@proletariat/cli 0.3.44 → 0.3.46
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/commands/agent/list.js +2 -3
- package/dist/commands/agent/login.js +2 -2
- package/dist/commands/agent/rebuild.js +2 -3
- package/dist/commands/agent/shell.js +2 -2
- package/dist/commands/agent/status.js +3 -3
- package/dist/commands/agent/visit.js +2 -2
- package/dist/commands/config/index.js +39 -1
- package/dist/commands/linear/auth.d.ts +14 -0
- package/dist/commands/linear/auth.js +211 -0
- package/dist/commands/linear/import.d.ts +21 -0
- package/dist/commands/linear/import.js +260 -0
- package/dist/commands/linear/status.d.ts +11 -0
- package/dist/commands/linear/status.js +88 -0
- package/dist/commands/linear/sync.d.ts +15 -0
- package/dist/commands/linear/sync.js +233 -0
- package/dist/commands/orchestrator/attach.d.ts +9 -1
- package/dist/commands/orchestrator/attach.js +67 -13
- package/dist/commands/orchestrator/index.js +22 -7
- package/dist/commands/staff/list.js +2 -3
- package/dist/commands/ticket/link/duplicates.d.ts +15 -0
- package/dist/commands/ticket/link/duplicates.js +95 -0
- package/dist/commands/ticket/link/index.js +14 -0
- package/dist/commands/ticket/link/relates.d.ts +15 -0
- package/dist/commands/ticket/link/relates.js +95 -0
- package/dist/commands/work/revise.js +7 -6
- package/dist/commands/work/spawn.d.ts +5 -0
- package/dist/commands/work/spawn.js +195 -14
- package/dist/commands/work/start.js +79 -23
- package/dist/commands/work/watch.js +2 -2
- package/dist/lib/agents/commands.d.ts +11 -0
- package/dist/lib/agents/commands.js +40 -10
- package/dist/lib/execution/config.d.ts +15 -0
- package/dist/lib/execution/config.js +54 -0
- package/dist/lib/execution/devcontainer.d.ts +6 -3
- package/dist/lib/execution/devcontainer.js +39 -12
- package/dist/lib/execution/runners.d.ts +28 -32
- package/dist/lib/execution/runners.js +345 -271
- package/dist/lib/execution/spawner.js +65 -7
- package/dist/lib/execution/types.d.ts +4 -0
- package/dist/lib/execution/types.js +3 -0
- package/dist/lib/external-issues/adapters.d.ts +26 -0
- package/dist/lib/external-issues/adapters.js +251 -0
- package/dist/lib/external-issues/index.d.ts +10 -0
- package/dist/lib/external-issues/index.js +14 -0
- package/dist/lib/external-issues/mapper.d.ts +21 -0
- package/dist/lib/external-issues/mapper.js +86 -0
- package/dist/lib/external-issues/types.d.ts +144 -0
- package/dist/lib/external-issues/types.js +26 -0
- package/dist/lib/external-issues/validation.d.ts +34 -0
- package/dist/lib/external-issues/validation.js +219 -0
- package/dist/lib/linear/client.d.ts +55 -0
- package/dist/lib/linear/client.js +254 -0
- package/dist/lib/linear/config.d.ts +37 -0
- package/dist/lib/linear/config.js +100 -0
- package/dist/lib/linear/index.d.ts +11 -0
- package/dist/lib/linear/index.js +10 -0
- package/dist/lib/linear/mapper.d.ts +67 -0
- package/dist/lib/linear/mapper.js +219 -0
- package/dist/lib/linear/sync.d.ts +37 -0
- package/dist/lib/linear/sync.js +89 -0
- package/dist/lib/linear/types.d.ts +139 -0
- package/dist/lib/linear/types.js +34 -0
- package/dist/lib/mcp/helpers.d.ts +8 -0
- package/dist/lib/mcp/helpers.js +10 -0
- package/dist/lib/mcp/tools/board.js +63 -11
- package/dist/lib/pmo/schema.d.ts +2 -0
- package/dist/lib/pmo/schema.js +20 -0
- package/dist/lib/pmo/storage/base.js +92 -13
- package/dist/lib/pmo/storage/dependencies.js +15 -0
- package/dist/lib/prompt-json.d.ts +4 -0
- package/dist/lib/themes.js +32 -16
- package/oclif.manifest.json +2823 -2336
- package/package.json +2 -1
|
@@ -58,6 +58,21 @@ export class DependencyStorage {
|
|
|
58
58
|
}
|
|
59
59
|
const result = this.ctx.db.prepare(query).run(...params);
|
|
60
60
|
if (result.changes === 0) {
|
|
61
|
+
// For relates_to, try the reverse direction since the relationship is symmetric
|
|
62
|
+
const reverseType = dependencyType ?? 'relates_to';
|
|
63
|
+
if (reverseType === 'relates_to') {
|
|
64
|
+
let reverseQuery = `DELETE FROM ${T.ticket_dependencies} WHERE ticket_id = ? AND depends_on_ticket_id = ?`;
|
|
65
|
+
const reverseParams = [dependsOnTicketId, ticketId];
|
|
66
|
+
if (dependencyType) {
|
|
67
|
+
reverseQuery += ' AND dependency_type = ?';
|
|
68
|
+
reverseParams.push(dependencyType);
|
|
69
|
+
}
|
|
70
|
+
const reverseResult = this.ctx.db.prepare(reverseQuery).run(...reverseParams);
|
|
71
|
+
if (reverseResult.changes === 0) {
|
|
72
|
+
throw new PMOError('NOT_FOUND', 'Dependency not found');
|
|
73
|
+
}
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
61
76
|
throw new PMOError('NOT_FOUND', 'Dependency not found');
|
|
62
77
|
}
|
|
63
78
|
}
|
|
@@ -88,6 +88,10 @@ export interface OutputMetadata {
|
|
|
88
88
|
timestamp?: string;
|
|
89
89
|
/** Resolved PR mode after flag precedence ('create-pr' | 'no-pr') */
|
|
90
90
|
resolvedPRMode?: string;
|
|
91
|
+
/** Source of the resolved PR mode (e.g., 'flag --create-pr', 'workspace config', 'interactive prompt') */
|
|
92
|
+
prModeSource?: string;
|
|
93
|
+
/** Warning message when PR creation is disabled for code-modifying actions */
|
|
94
|
+
prWarning?: string;
|
|
91
95
|
}
|
|
92
96
|
/**
|
|
93
97
|
* JSON output when a prompt would be shown
|
package/dist/lib/themes.js
CHANGED
|
@@ -80,26 +80,42 @@ export const BUILTIN_THEMES = [
|
|
|
80
80
|
{
|
|
81
81
|
id: 'billionaires',
|
|
82
82
|
name: 'billionaires',
|
|
83
|
-
displayName: 'Billionaires
|
|
83
|
+
displayName: 'Billionaires',
|
|
84
84
|
description: 'The ultra-wealthy work for you',
|
|
85
85
|
persistentDir: 'staff',
|
|
86
86
|
ephemeralDir: 'temp',
|
|
87
87
|
names: [
|
|
88
|
-
|
|
89
|
-
'
|
|
90
|
-
'
|
|
91
|
-
'
|
|
92
|
-
'
|
|
93
|
-
'
|
|
94
|
-
|
|
95
|
-
'
|
|
96
|
-
'
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
88
|
+
'altman', 'andreesen', 'ballmer', 'benioff', 'bezos', 'branson',
|
|
89
|
+
'brin', 'buffett', 'chesky', 'collison', 'cook', 'dalio',
|
|
90
|
+
'dario', 'dell', 'dorsey', 'durov', 'ellison', 'fink',
|
|
91
|
+
'gates', 'hastings', 'hoffman', 'horowitz', 'huang', 'jobs',
|
|
92
|
+
'kalanick', 'khosla', 'knight', 'levinson', 'ma', 'mcnealy',
|
|
93
|
+
'musk', 'nadella', 'neumann', 'omidyar', 'page', 'parker',
|
|
94
|
+
'pichai', 'sandberg', 'schmidt', 'schultz', 'siebel',
|
|
95
|
+
'silbermann', 'spiegel', 'sweeney', 'systrom', 'thiel',
|
|
96
|
+
'wozniak', 'yang', 'zuck'
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
id: 'cracked-engineers',
|
|
101
|
+
name: 'cracked-engineers',
|
|
102
|
+
displayName: 'Cracked Engineers',
|
|
103
|
+
description: 'AI researchers, engineers, and tech legends',
|
|
104
|
+
persistentDir: 'staff',
|
|
105
|
+
ephemeralDir: 'temp',
|
|
106
|
+
names: [
|
|
107
|
+
// AI researchers
|
|
108
|
+
'karpathy', 'lecun', 'sutskever',
|
|
109
|
+
// Engineers & creators
|
|
110
|
+
'sinofsky', 'spolsky', 'torvalds', 'yegge',
|
|
111
|
+
// Investors & operators (non-billionaire)
|
|
112
|
+
'grove', 'kutcher', 'rabois', 'ross',
|
|
113
|
+
// Podcasters & educators
|
|
114
|
+
'fridman',
|
|
115
|
+
// Other tech figures
|
|
116
|
+
'hurd', 'iger', 'ive', 'levie', 'lynch', 'marcus', 'mayer',
|
|
117
|
+
'morin', 'powell', 'rometty', 'wales', 'wojcicki', 'zhang',
|
|
118
|
+
'zhong'
|
|
103
119
|
]
|
|
104
120
|
},
|
|
105
121
|
{
|