@proletariat/cli 0.3.32 → 0.3.33

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.
@@ -110,7 +110,7 @@ export default class WorkSpawn extends PMOCommand {
110
110
  description: 'Action to perform (e.g., groom, implement, review, custom). Prompts if not provided.',
111
111
  }),
112
112
  message: Flags.string({
113
- description: 'Custom prompt/message for the agent (use with --action custom)',
113
+ description: 'Additional instructions for the agent (appended to any action prompt)',
114
114
  }),
115
115
  session: Flags.string({
116
116
  description: 'Session manager inside container (tmux runs agent in tmux inside container)',
@@ -970,10 +970,6 @@ export default class WorkSpawn extends PMOCommand {
970
970
  batchAction = 'custom';
971
971
  batchCustomMessage = flags.message;
972
972
  }
973
- else if (flags.message && flags.action !== 'custom') {
974
- // --message provided without --action custom - warn user
975
- this.warn('--message flag is only used with --action custom, ignoring');
976
- }
977
973
  // Now fetch action details after selection is made
978
974
  if (batchAction === 'custom') {
979
975
  // Custom action - user provides their own prompt
@@ -1328,6 +1324,10 @@ export default class WorkSpawn extends PMOCommand {
1328
1324
  else if (batchAction) {
1329
1325
  startArgs.push('--action', batchAction);
1330
1326
  }
1327
+ // Pass --message for additional instructions (non-custom actions)
1328
+ if (flags.message && batchAction !== 'custom') {
1329
+ startArgs.push('--message', flags.message);
1330
+ }
1331
1331
  }
1332
1332
  else {
1333
1333
  // Batch mode: pass all settings to skip prompts
@@ -1356,6 +1356,10 @@ export default class WorkSpawn extends PMOCommand {
1356
1356
  else {
1357
1357
  startArgs.push('--action', batchAction || 'implement');
1358
1358
  }
1359
+ // Pass --message for additional instructions (non-custom actions)
1360
+ if (flags.message && batchAction !== 'custom') {
1361
+ startArgs.push('--message', flags.message);
1362
+ }
1359
1363
  // Pass session manager (tmux inside container by default)
1360
1364
  if (flags.session)
1361
1365
  startArgs.push('--session', flags.session);
@@ -11,6 +11,7 @@ export default class WorkStart extends PMOCommand {
11
11
  executor: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
12
12
  action: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
13
13
  prompt: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
+ message: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
15
  watch: import("@oclif/core/interfaces").BooleanFlag<boolean>;
15
16
  force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
16
17
  'vm-host': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
@@ -109,6 +109,9 @@ export default class WorkStart extends PMOCommand {
109
109
  char: 'p',
110
110
  description: 'Custom prompt (overrides action)',
111
111
  }),
112
+ message: Flags.string({
113
+ description: 'Additional instructions appended to any action prompt',
114
+ }),
112
115
  watch: Flags.boolean({
113
116
  char: 'w',
114
117
  description: 'Stream output in real-time',
@@ -779,6 +782,8 @@ export default class WorkStart extends PMOCommand {
779
782
  actionPrompt: customPrompt || selectedAction?.prompt,
780
783
  actionEndPrompt: customPrompt ? undefined : selectedAction?.endPrompt,
781
784
  modifiesCode: customPrompt ? true : selectedAction?.modifiesCode ?? true,
785
+ // Additional instructions from --message flag
786
+ customMessage: flags.message,
782
787
  };
783
788
  // Check if agent has devcontainer config
784
789
  const hasDevcontainer = hasDevcontainerConfig(agentDir);
@@ -214,6 +214,10 @@ function buildPrompt(context) {
214
214
  }
215
215
  // Note: Branch setup (fetch + checkout/create) is now handled programmatically
216
216
  // in work/start.ts before the agent spawns, so no prompt instructions needed
217
+ // Additional instructions from --message flag (appended to any action)
218
+ if (context.customMessage) {
219
+ prompt += `\n## Additional Instructions\n\n${context.customMessage}\n`;
220
+ }
217
221
  // END HOOK - Action-specific completion instructions
218
222
  prompt += `\n---\n\n## When Complete\n\n`;
219
223
  // For revisions, use the revision-specific end prompt
@@ -86,6 +86,7 @@ export interface ExecutionContext {
86
86
  actionPrompt?: string;
87
87
  actionEndPrompt?: string;
88
88
  modifiesCode?: boolean;
89
+ customMessage?: string;
89
90
  prFeedback?: string;
90
91
  isRevision?: boolean;
91
92
  }