@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.
Files changed (73) hide show
  1. package/dist/commands/agent/list.js +2 -3
  2. package/dist/commands/agent/login.js +2 -2
  3. package/dist/commands/agent/rebuild.js +2 -3
  4. package/dist/commands/agent/shell.js +2 -2
  5. package/dist/commands/agent/status.js +3 -3
  6. package/dist/commands/agent/visit.js +2 -2
  7. package/dist/commands/config/index.js +39 -1
  8. package/dist/commands/linear/auth.d.ts +14 -0
  9. package/dist/commands/linear/auth.js +211 -0
  10. package/dist/commands/linear/import.d.ts +21 -0
  11. package/dist/commands/linear/import.js +260 -0
  12. package/dist/commands/linear/status.d.ts +11 -0
  13. package/dist/commands/linear/status.js +88 -0
  14. package/dist/commands/linear/sync.d.ts +15 -0
  15. package/dist/commands/linear/sync.js +233 -0
  16. package/dist/commands/orchestrator/attach.d.ts +9 -1
  17. package/dist/commands/orchestrator/attach.js +67 -13
  18. package/dist/commands/orchestrator/index.js +22 -7
  19. package/dist/commands/staff/list.js +2 -3
  20. package/dist/commands/ticket/link/duplicates.d.ts +15 -0
  21. package/dist/commands/ticket/link/duplicates.js +95 -0
  22. package/dist/commands/ticket/link/index.js +14 -0
  23. package/dist/commands/ticket/link/relates.d.ts +15 -0
  24. package/dist/commands/ticket/link/relates.js +95 -0
  25. package/dist/commands/work/revise.js +7 -6
  26. package/dist/commands/work/spawn.d.ts +5 -0
  27. package/dist/commands/work/spawn.js +195 -14
  28. package/dist/commands/work/start.js +79 -23
  29. package/dist/commands/work/watch.js +2 -2
  30. package/dist/lib/agents/commands.d.ts +11 -0
  31. package/dist/lib/agents/commands.js +40 -10
  32. package/dist/lib/execution/config.d.ts +15 -0
  33. package/dist/lib/execution/config.js +54 -0
  34. package/dist/lib/execution/devcontainer.d.ts +6 -3
  35. package/dist/lib/execution/devcontainer.js +39 -12
  36. package/dist/lib/execution/runners.d.ts +28 -32
  37. package/dist/lib/execution/runners.js +345 -271
  38. package/dist/lib/execution/spawner.js +65 -7
  39. package/dist/lib/execution/types.d.ts +4 -0
  40. package/dist/lib/execution/types.js +3 -0
  41. package/dist/lib/external-issues/adapters.d.ts +26 -0
  42. package/dist/lib/external-issues/adapters.js +251 -0
  43. package/dist/lib/external-issues/index.d.ts +10 -0
  44. package/dist/lib/external-issues/index.js +14 -0
  45. package/dist/lib/external-issues/mapper.d.ts +21 -0
  46. package/dist/lib/external-issues/mapper.js +86 -0
  47. package/dist/lib/external-issues/types.d.ts +144 -0
  48. package/dist/lib/external-issues/types.js +26 -0
  49. package/dist/lib/external-issues/validation.d.ts +34 -0
  50. package/dist/lib/external-issues/validation.js +219 -0
  51. package/dist/lib/linear/client.d.ts +55 -0
  52. package/dist/lib/linear/client.js +254 -0
  53. package/dist/lib/linear/config.d.ts +37 -0
  54. package/dist/lib/linear/config.js +100 -0
  55. package/dist/lib/linear/index.d.ts +11 -0
  56. package/dist/lib/linear/index.js +10 -0
  57. package/dist/lib/linear/mapper.d.ts +67 -0
  58. package/dist/lib/linear/mapper.js +219 -0
  59. package/dist/lib/linear/sync.d.ts +37 -0
  60. package/dist/lib/linear/sync.js +89 -0
  61. package/dist/lib/linear/types.d.ts +139 -0
  62. package/dist/lib/linear/types.js +34 -0
  63. package/dist/lib/mcp/helpers.d.ts +8 -0
  64. package/dist/lib/mcp/helpers.js +10 -0
  65. package/dist/lib/mcp/tools/board.js +63 -11
  66. package/dist/lib/pmo/schema.d.ts +2 -0
  67. package/dist/lib/pmo/schema.js +20 -0
  68. package/dist/lib/pmo/storage/base.js +92 -13
  69. package/dist/lib/pmo/storage/dependencies.js +15 -0
  70. package/dist/lib/prompt-json.d.ts +4 -0
  71. package/dist/lib/themes.js +32 -16
  72. package/oclif.manifest.json +2823 -2336
  73. 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
@@ -80,26 +80,42 @@ export const BUILTIN_THEMES = [
80
80
  {
81
81
  id: 'billionaires',
82
82
  name: 'billionaires',
83
- displayName: 'Billionaires & Tech Elite',
83
+ displayName: 'Billionaires',
84
84
  description: 'The ultra-wealthy work for you',
85
85
  persistentDir: 'staff',
86
86
  ephemeralDir: 'temp',
87
87
  names: [
88
- // Tech founders & executives
89
- 'altman', 'andreesen', 'bezos', 'branson', 'brin', 'buffett',
90
- 'cook', 'dalio', 'dario', 'dorsey', 'ellison', 'gates', 'huang',
91
- 'iger', 'jobs', 'kalanick', 'karpathy', 'lecun', 'ma', 'musk',
92
- 'nadella', 'page', 'pichai', 'sandberg', 'schultz', 'sutskever',
93
- 'thiel', 'wojcicki', 'zuck',
94
- // More tech leaders
95
- 'ballmer', 'benioff', 'chesky', 'collison', 'dell', 'durov',
96
- 'fink', 'fridman', 'grove', 'hastings', 'hoffman', 'horowitz',
97
- 'hurd', 'ive', 'khosla', 'knight', 'kutcher', 'levie', 'levinson',
98
- 'lynch', 'marcus', 'mayer', 'mcnealy', 'morin', 'neumann',
99
- 'omidyar', 'packard', 'parker', 'powell', 'rabois', 'rometty',
100
- 'ross', 'schmidt', 'sequoia', 'siebel', 'silbermann', 'sinofsky',
101
- 'spiegel', 'spolsky', 'sweeney', 'systrom', 'torvalds', 'wales',
102
- 'wozniak', 'yang', 'yegge', 'zhang', 'zhong'
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
  {