@proletariat/cli 0.3.20 → 0.3.22
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/action/create.d.ts +0 -1
- package/dist/commands/action/delete.d.ts +0 -1
- package/dist/commands/action/index.d.ts +0 -1
- package/dist/commands/action/list.d.ts +0 -1
- package/dist/commands/action/list.js +2 -0
- package/dist/commands/action/run.d.ts +0 -1
- package/dist/commands/action/show.d.ts +0 -1
- package/dist/commands/action/update.d.ts +0 -1
- package/dist/commands/agent/auth.d.ts +0 -1
- package/dist/commands/agent/auth.js +3 -7
- package/dist/commands/agent/discover.d.ts +0 -1
- package/dist/commands/agent/discover.js +3 -7
- package/dist/commands/agent/index.d.ts +0 -1
- package/dist/commands/agent/index.js +2 -0
- package/dist/commands/agent/list.d.ts +0 -1
- package/dist/commands/agent/list.js +30 -1
- package/dist/commands/agent/login.d.ts +0 -1
- package/dist/commands/agent/login.js +4 -2
- package/dist/commands/agent/rebuild.d.ts +0 -1
- package/dist/commands/agent/rebuild.js +2 -0
- package/dist/commands/agent/remove.d.ts +1 -1
- package/dist/commands/agent/remove.js +38 -28
- package/dist/commands/agent/restart.d.ts +0 -1
- package/dist/commands/agent/restart.js +2 -0
- package/dist/commands/agent/shell.d.ts +0 -1
- package/dist/commands/agent/shell.js +4 -2
- package/dist/commands/agent/staff/add.d.ts +0 -1
- package/dist/commands/agent/staff/add.js +3 -7
- package/dist/commands/agent/staff/index.d.ts +0 -1
- package/dist/commands/agent/staff/index.js +2 -0
- package/dist/commands/agent/staff/remove.d.ts +0 -1
- package/dist/commands/agent/staff/remove.js +4 -2
- package/dist/commands/agent/status.d.ts +0 -1
- package/dist/commands/agent/status.js +4 -2
- package/dist/commands/agent/temp/cleanup.d.ts +0 -1
- package/dist/commands/agent/temp/cleanup.js +2 -0
- package/dist/commands/agent/temp/index.d.ts +0 -1
- package/dist/commands/agent/temp/index.js +2 -0
- package/dist/commands/agent/themes/add-names.d.ts +1 -0
- package/dist/commands/agent/themes/add-names.js +5 -1
- package/dist/commands/agent/themes/index.d.ts +0 -1
- package/dist/commands/agent/themes/index.js +3 -7
- package/dist/commands/agent/themes/set.d.ts +0 -1
- package/dist/commands/agent/themes/set.js +3 -7
- package/dist/commands/agent/visit.d.ts +0 -1
- package/dist/commands/agent/visit.js +4 -2
- package/dist/commands/autocomplete/setup.d.ts +0 -1
- package/dist/commands/board/index.d.ts +0 -1
- package/dist/commands/board/view.d.ts +0 -1
- package/dist/commands/board/watch.d.ts +0 -1
- package/dist/commands/branch/create.d.ts +0 -1
- package/dist/commands/branch/create.js +2 -0
- package/dist/commands/branch/index.d.ts +0 -1
- package/dist/commands/branch/index.js +2 -0
- package/dist/commands/branch/list.d.ts +0 -1
- package/dist/commands/branch/validate.d.ts +0 -1
- package/dist/commands/branch/where.d.ts +0 -1
- package/dist/commands/branch/where.js +2 -0
- package/dist/commands/category/create.d.ts +18 -0
- package/dist/commands/category/create.js +108 -0
- package/dist/commands/category/delete.d.ts +17 -0
- package/dist/commands/category/delete.js +103 -0
- package/dist/commands/category/index.d.ts +15 -0
- package/dist/commands/category/index.js +87 -0
- package/dist/commands/category/list.d.ts +17 -0
- package/dist/commands/category/list.js +85 -0
- package/dist/commands/category/rename.d.ts +18 -0
- package/dist/commands/category/rename.js +127 -0
- package/dist/commands/claude.js +2 -0
- package/dist/commands/commit.js +2 -0
- package/dist/commands/config/index.js +2 -0
- package/dist/commands/docker/clean.d.ts +0 -1
- package/dist/commands/docker/index.d.ts +0 -1
- package/dist/commands/docker/prune.d.ts +0 -1
- package/dist/commands/docker/restart.d.ts +0 -1
- package/dist/commands/docker/stop.d.ts +0 -1
- package/dist/commands/epic/activate.d.ts +0 -1
- package/dist/commands/epic/activate.js +2 -0
- package/dist/commands/epic/archive.d.ts +0 -1
- package/dist/commands/epic/archive.js +2 -0
- package/dist/commands/epic/create.d.ts +0 -1
- package/dist/commands/epic/create.js +3 -1
- package/dist/commands/epic/delete.d.ts +14 -0
- package/dist/commands/epic/delete.js +129 -0
- package/dist/commands/epic/index.d.ts +0 -1
- package/dist/commands/epic/index.js +6 -0
- package/dist/commands/epic/link/block.d.ts +0 -1
- package/dist/commands/epic/link/block.js +2 -0
- package/dist/commands/epic/link/duplicates.d.ts +0 -1
- package/dist/commands/epic/link/duplicates.js +2 -0
- package/dist/commands/epic/link/index.d.ts +0 -1
- package/dist/commands/epic/link/index.js +19 -0
- package/dist/commands/epic/link/relates.d.ts +0 -1
- package/dist/commands/epic/link/relates.js +2 -0
- package/dist/commands/epic/link/remove.d.ts +0 -1
- package/dist/commands/epic/link/remove.js +2 -0
- package/dist/commands/epic/list.d.ts +0 -1
- package/dist/commands/epic/move.d.ts +0 -1
- package/dist/commands/epic/move.js +2 -0
- package/dist/commands/epic/progress.d.ts +0 -1
- package/dist/commands/epic/progress.js +2 -0
- package/dist/commands/epic/project.d.ts +0 -1
- package/dist/commands/epic/project.js +2 -0
- package/dist/commands/epic/reorder.d.ts +0 -1
- package/dist/commands/epic/reorder.js +2 -0
- package/dist/commands/epic/spec.d.ts +0 -1
- package/dist/commands/epic/spec.js +2 -0
- package/dist/commands/epic/ticket.d.ts +0 -1
- package/dist/commands/epic/ticket.js +2 -0
- package/dist/commands/epic/view.d.ts +0 -1
- package/dist/commands/epic/view.js +2 -0
- package/dist/commands/execution/config.d.ts +0 -1
- package/dist/commands/execution/config.js +24 -0
- package/dist/commands/execution/index.d.ts +0 -1
- package/dist/commands/execution/index.js +3 -1
- package/dist/commands/execution/kill.d.ts +3 -0
- package/dist/commands/execution/kill.js +1 -0
- package/dist/commands/execution/list.d.ts +0 -1
- package/dist/commands/execution/list.js +5 -4
- package/dist/commands/execution/logs.d.ts +0 -1
- package/dist/commands/execution/logs.js +4 -1
- package/dist/commands/execution/stop.d.ts +0 -1
- package/dist/commands/execution/stop.js +3 -1
- package/dist/commands/execution/view.d.ts +0 -1
- package/dist/commands/execution/view.js +3 -1
- package/dist/commands/gh/index.d.ts +0 -1
- package/dist/commands/gh/login.d.ts +0 -1
- package/dist/commands/gh/status.d.ts +0 -1
- package/dist/commands/gh/token.d.ts +0 -1
- package/dist/commands/init.js +2 -0
- package/dist/commands/phase/create.d.ts +0 -1
- package/dist/commands/phase/create.js +1 -2
- package/dist/commands/phase/delete.d.ts +0 -1
- package/dist/commands/phase/delete.js +1 -1
- package/dist/commands/phase/list.d.ts +0 -1
- package/dist/commands/phase/move.d.ts +0 -1
- package/dist/commands/phase/move.js +10 -2
- package/dist/commands/phase/template/apply.d.ts +0 -1
- package/dist/commands/phase/template/apply.js +4 -2
- package/dist/commands/phase/template/create.d.ts +0 -1
- package/dist/commands/phase/template/create.js +6 -7
- package/dist/commands/phase/template/delete.d.ts +0 -1
- package/dist/commands/phase/template/delete.js +2 -0
- package/dist/commands/phase/template/index.d.ts +0 -1
- package/dist/commands/phase/template/index.js +2 -0
- package/dist/commands/phase/template/list.d.ts +0 -1
- package/dist/commands/phase/template/list.js +3 -1
- package/dist/commands/phase/template/update.d.ts +0 -1
- package/dist/commands/phase/update.d.ts +0 -1
- package/dist/commands/phase/update.js +2 -2
- package/dist/commands/pmo/init.js +2 -0
- package/dist/commands/pr/create.d.ts +0 -1
- package/dist/commands/pr/index.d.ts +0 -1
- package/dist/commands/pr/link.d.ts +0 -1
- package/dist/commands/pr/list.d.ts +0 -1
- package/dist/commands/pr/status.d.ts +0 -1
- package/dist/commands/project/archive.d.ts +0 -1
- package/dist/commands/project/create.d.ts +0 -1
- package/dist/commands/project/delete.d.ts +0 -1
- package/dist/commands/project/index.d.ts +0 -1
- package/dist/commands/project/list.d.ts +0 -1
- package/dist/commands/project/spec.d.ts +0 -1
- package/dist/commands/project/unarchive.d.ts +0 -1
- package/dist/commands/project/update.d.ts +0 -1
- package/dist/commands/project/view.d.ts +0 -1
- package/dist/commands/repo/add.d.ts +0 -1
- package/dist/commands/repo/add.js +2 -0
- package/dist/commands/repo/index.d.ts +0 -1
- package/dist/commands/repo/list.d.ts +0 -1
- package/dist/commands/repo/remove.d.ts +0 -1
- package/dist/commands/repo/view.d.ts +0 -1
- package/dist/commands/roadmap/add-project.d.ts +0 -1
- package/dist/commands/roadmap/add-project.js +2 -0
- package/dist/commands/roadmap/create.d.ts +0 -1
- package/dist/commands/roadmap/create.js +2 -0
- package/dist/commands/roadmap/delete.d.ts +0 -1
- package/dist/commands/roadmap/delete.js +12 -1
- package/dist/commands/roadmap/generate.d.ts +0 -1
- package/dist/commands/roadmap/generate.js +2 -0
- package/dist/commands/roadmap/index.d.ts +0 -1
- package/dist/commands/roadmap/index.js +2 -0
- package/dist/commands/roadmap/list.d.ts +0 -1
- package/dist/commands/roadmap/remove-project.d.ts +0 -1
- package/dist/commands/roadmap/remove-project.js +2 -0
- package/dist/commands/roadmap/reorder.d.ts +0 -1
- package/dist/commands/roadmap/reorder.js +2 -0
- package/dist/commands/roadmap/update.d.ts +0 -1
- package/dist/commands/roadmap/update.js +2 -0
- package/dist/commands/roadmap/view.d.ts +0 -1
- package/dist/commands/roadmap/view.js +2 -0
- package/dist/commands/session/attach.d.ts +0 -1
- package/dist/commands/session/attach.js +9 -0
- package/dist/commands/session/index.d.ts +0 -1
- package/dist/commands/session/index.js +2 -0
- package/dist/commands/session/list.d.ts +0 -1
- package/dist/commands/spec/create.d.ts +0 -1
- package/dist/commands/spec/create.js +1 -1
- package/dist/commands/spec/delete.d.ts +0 -1
- package/dist/commands/spec/edit.d.ts +0 -1
- package/dist/commands/spec/index.d.ts +0 -1
- package/dist/commands/spec/link/depends.d.ts +0 -1
- package/dist/commands/spec/link/duplicates.d.ts +0 -1
- package/dist/commands/spec/link/index.d.ts +0 -1
- package/dist/commands/spec/link/relates.d.ts +0 -1
- package/dist/commands/spec/link/remove.d.ts +0 -1
- package/dist/commands/spec/list.d.ts +0 -1
- package/dist/commands/spec/plan.d.ts +0 -1
- package/dist/commands/spec/ticket.d.ts +0 -3
- package/dist/commands/spec/ticket.js +7 -38
- package/dist/commands/spec/view.d.ts +0 -1
- package/dist/commands/status/category.d.ts +14 -0
- package/dist/commands/status/category.js +63 -0
- package/dist/commands/status/create.d.ts +0 -1
- package/dist/commands/status/create.js +1 -1
- package/dist/commands/status/delete.d.ts +0 -1
- package/dist/commands/status/index.d.ts +0 -1
- package/dist/commands/status/list.d.ts +0 -1
- package/dist/commands/status/list.js +5 -3
- package/dist/commands/status/move.d.ts +0 -1
- package/dist/commands/status/update.d.ts +0 -1
- package/dist/commands/template/delete.d.ts +0 -1
- package/dist/commands/template/delete.js +2 -0
- package/dist/commands/template/index.d.ts +0 -1
- package/dist/commands/template/list.d.ts +0 -1
- package/dist/commands/template/list.js +2 -0
- package/dist/commands/template/phase/apply.js +2 -0
- package/dist/commands/template/phase/create.d.ts +0 -1
- package/dist/commands/template/phase/create.js +3 -9
- package/dist/commands/template/phase/delete.js +2 -0
- package/dist/commands/template/phase/index.d.ts +0 -1
- package/dist/commands/template/phase/index.js +4 -4
- package/dist/commands/template/phase/list.js +2 -0
- package/dist/commands/template/phase/update.js +2 -0
- package/dist/commands/template/ticket/apply.js +2 -0
- package/dist/commands/template/ticket/create.js +2 -0
- package/dist/commands/template/ticket/delete.d.ts +1 -1
- package/dist/commands/template/ticket/delete.js +6 -2
- package/dist/commands/template/ticket/index.d.ts +0 -1
- package/dist/commands/template/ticket/list.js +2 -0
- package/dist/commands/template/ticket/save.d.ts +0 -1
- package/dist/commands/template/ticket/save.js +0 -6
- package/dist/commands/terminal/title.d.ts +0 -1
- package/dist/commands/ticket/bulk.d.ts +0 -1
- package/dist/commands/ticket/bulk.js +2 -0
- package/dist/commands/ticket/category.d.ts +14 -0
- package/dist/commands/ticket/category.js +63 -0
- package/dist/commands/ticket/complete.d.ts +0 -1
- package/dist/commands/ticket/complete.js +2 -0
- package/dist/commands/ticket/create.d.ts +0 -1
- package/dist/commands/ticket/create.js +7 -5
- package/dist/commands/ticket/delete.d.ts +0 -1
- package/dist/commands/ticket/delete.js +2 -0
- package/dist/commands/ticket/edit.d.ts +0 -1
- package/dist/commands/ticket/edit.js +5 -3
- package/dist/commands/ticket/epic.d.ts +0 -1
- package/dist/commands/ticket/epic.js +2 -0
- package/dist/commands/ticket/index.d.ts +0 -1
- package/dist/commands/ticket/index.js +2 -0
- package/dist/commands/ticket/link/block.d.ts +0 -1
- package/dist/commands/ticket/link/block.js +2 -0
- package/dist/commands/ticket/link/duplicates.d.ts +0 -1
- package/dist/commands/ticket/link/duplicates.js +2 -0
- package/dist/commands/ticket/link/index.d.ts +0 -1
- package/dist/commands/ticket/link/index.js +2 -0
- package/dist/commands/ticket/link/relates.d.ts +0 -1
- package/dist/commands/ticket/link/relates.js +2 -0
- package/dist/commands/ticket/link/remove.d.ts +0 -1
- package/dist/commands/ticket/link/remove.js +2 -0
- package/dist/commands/ticket/list.d.ts +2 -1
- package/dist/commands/ticket/list.js +39 -2
- package/dist/commands/ticket/move.d.ts +0 -1
- package/dist/commands/ticket/move.js +2 -0
- package/dist/commands/ticket/project.d.ts +0 -1
- package/dist/commands/ticket/project.js +2 -0
- package/dist/commands/ticket/reassign.d.ts +0 -1
- package/dist/commands/ticket/reassign.js +29 -0
- package/dist/commands/ticket/spec.d.ts +0 -1
- package/dist/commands/ticket/spec.js +2 -0
- package/dist/commands/ticket/status.d.ts +0 -1
- package/dist/commands/ticket/status.js +2 -0
- package/dist/commands/ticket/template/apply.d.ts +0 -1
- package/dist/commands/ticket/template/apply.js +2 -0
- package/dist/commands/ticket/template/create.d.ts +0 -1
- package/dist/commands/ticket/template/create.js +4 -2
- package/dist/commands/ticket/template/delete.d.ts +0 -1
- package/dist/commands/ticket/template/delete.js +2 -0
- package/dist/commands/ticket/template/index.d.ts +0 -1
- package/dist/commands/ticket/template/index.js +2 -0
- package/dist/commands/ticket/template/list.d.ts +0 -1
- package/dist/commands/ticket/template/list.js +2 -0
- package/dist/commands/ticket/template/save.d.ts +0 -1
- package/dist/commands/ticket/template/save.js +2 -0
- package/dist/commands/ticket/update.d.ts +0 -1
- package/dist/commands/ticket/update.js +4 -2
- package/dist/commands/ticket/view.d.ts +0 -1
- package/dist/commands/ticket/view.js +2 -0
- package/dist/commands/work/complete.d.ts +0 -1
- package/dist/commands/work/complete.js +2 -0
- package/dist/commands/work/index.d.ts +0 -1
- package/dist/commands/work/index.js +2 -0
- package/dist/commands/work/ready.d.ts +1 -2
- package/dist/commands/work/ready.js +11 -5
- package/dist/commands/work/revise.d.ts +0 -1
- package/dist/commands/work/revise.js +3 -1
- package/dist/commands/work/spawn-all.d.ts +0 -1
- package/dist/commands/work/spawn-all.js +2 -0
- package/dist/commands/work/spawn.d.ts +0 -1
- package/dist/commands/work/spawn.js +34 -8
- package/dist/commands/work/start.d.ts +0 -1
- package/dist/commands/work/start.js +6 -0
- package/dist/commands/work/watch.d.ts +0 -1
- package/dist/commands/work/watch.js +5 -1
- package/dist/commands/workflow/create.d.ts +0 -1
- package/dist/commands/workflow/delete.d.ts +0 -1
- package/dist/commands/workflow/index.d.ts +0 -1
- package/dist/commands/workflow/index.js +2 -0
- package/dist/commands/workflow/list.d.ts +0 -1
- package/dist/commands/workflow/switch.d.ts +0 -1
- package/dist/commands/workflow/view.d.ts +0 -1
- package/dist/commands/workspace/list.js +2 -0
- package/dist/commands/workspace/prune.d.ts +13 -0
- package/dist/commands/workspace/prune.js +186 -0
- package/dist/commands/workspace/remove.js +2 -0
- package/dist/commands/workspace/use.js +2 -0
- package/dist/lib/agents/commands.d.ts +7 -0
- package/dist/lib/agents/commands.js +11 -0
- package/dist/lib/execution/runners.js +1 -2
- package/dist/lib/pmo/base-command.d.ts +2 -4
- package/dist/lib/pmo/base-command.js +8 -10
- package/dist/lib/pmo/schema.d.ts +2 -0
- package/dist/lib/pmo/schema.js +17 -0
- package/dist/lib/pmo/storage/base.d.ts +4 -0
- package/dist/lib/pmo/storage/base.js +31 -0
- package/dist/lib/pmo/storage/categories.d.ts +50 -0
- package/dist/lib/pmo/storage/categories.js +205 -0
- package/dist/lib/pmo/storage/epics.js +20 -10
- package/dist/lib/pmo/storage/helpers.d.ts +10 -0
- package/dist/lib/pmo/storage/helpers.js +59 -1
- package/dist/lib/pmo/storage/index.d.ts +14 -1
- package/dist/lib/pmo/storage/index.js +35 -1
- package/dist/lib/pmo/storage/projects.js +20 -8
- package/dist/lib/pmo/storage/specs.js +23 -13
- package/dist/lib/pmo/storage/statuses.js +39 -18
- package/dist/lib/pmo/storage/subtasks.js +19 -8
- package/dist/lib/pmo/storage/tickets.d.ts +5 -0
- package/dist/lib/pmo/storage/tickets.js +57 -17
- package/dist/lib/pmo/storage/types.d.ts +10 -0
- package/dist/lib/pmo/types.d.ts +25 -0
- package/dist/lib/prompt-json.d.ts +10 -16
- package/dist/lib/prompt-json.js +8 -16
- package/oclif.manifest.json +3831 -3864
- package/package.json +1 -1
|
@@ -11,7 +11,6 @@ export default class ActionCreate extends PMOCommand {
|
|
|
11
11
|
'suggested-for': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
12
|
'move-to': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
13
|
interactive: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
14
|
-
machine: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
15
14
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
16
15
|
project: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
16
|
};
|
|
@@ -7,7 +7,6 @@ export default class ActionDelete extends PMOCommand {
|
|
|
7
7
|
};
|
|
8
8
|
static flags: {
|
|
9
9
|
force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
10
|
-
machine: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
11
10
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
12
11
|
project: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
12
|
};
|
|
@@ -4,7 +4,6 @@ export default class Action extends PMOCommand {
|
|
|
4
4
|
static aliases: string[];
|
|
5
5
|
static examples: string[];
|
|
6
6
|
static flags: {
|
|
7
|
-
machine: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
7
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
9
8
|
project: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
9
|
};
|
|
@@ -7,7 +7,6 @@ export default class ActionList extends PMOCommand {
|
|
|
7
7
|
custom: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
8
|
'suggested-for': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
9
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
10
|
-
machine: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
11
10
|
project: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
11
|
};
|
|
13
12
|
execute(): Promise<void>;
|
|
@@ -12,7 +12,6 @@ export default class ActionRun extends PMOCommand {
|
|
|
12
12
|
category: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
13
|
'dry-run': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
14
14
|
force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
15
|
-
machine: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
16
15
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
17
16
|
project: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
17
|
};
|
|
@@ -6,7 +6,6 @@ export default class ActionShow extends PMOCommand {
|
|
|
6
6
|
id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
7
7
|
};
|
|
8
8
|
static flags: {
|
|
9
|
-
machine: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
10
9
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
11
10
|
project: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
11
|
};
|
|
@@ -12,7 +12,6 @@ export default class ActionUpdate extends PMOCommand {
|
|
|
12
12
|
'suggested-for': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
13
|
'move-to': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
14
|
interactive: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
15
|
-
machine: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
16
15
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
17
16
|
project: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
17
|
};
|
|
@@ -5,7 +5,6 @@ export default class Auth extends Command {
|
|
|
5
5
|
static flags: {
|
|
6
6
|
check: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
7
7
|
force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
|
-
machine: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
9
8
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
10
9
|
};
|
|
11
10
|
/**
|
|
@@ -20,15 +20,11 @@ export default class Auth extends Command {
|
|
|
20
20
|
description: 'Force re-authentication even if credentials exist',
|
|
21
21
|
default: false,
|
|
22
22
|
}),
|
|
23
|
-
machine: Flags.boolean({
|
|
24
|
-
char: 'm',
|
|
25
|
-
description: 'Output as JSON for AI agents/scripts (machine-readable mode)',
|
|
26
|
-
default: false,
|
|
27
|
-
}),
|
|
28
23
|
json: Flags.boolean({
|
|
29
|
-
|
|
24
|
+
char: 'm',
|
|
25
|
+
aliases: ['machine'],
|
|
26
|
+
description: 'Output as JSON for AI agents/scripts',
|
|
30
27
|
default: false,
|
|
31
|
-
hidden: true,
|
|
32
28
|
}),
|
|
33
29
|
};
|
|
34
30
|
/**
|
|
@@ -4,7 +4,6 @@ export default class Discover extends Command {
|
|
|
4
4
|
static examples: string[];
|
|
5
5
|
static flags: {
|
|
6
6
|
'dry-run': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
7
|
-
machine: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
7
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
9
8
|
};
|
|
10
9
|
run(): Promise<void>;
|
|
@@ -14,15 +14,11 @@ export default class Discover extends Command {
|
|
|
14
14
|
description: 'Show what would be discovered without making changes',
|
|
15
15
|
default: false,
|
|
16
16
|
}),
|
|
17
|
-
machine: Flags.boolean({
|
|
18
|
-
char: 'm',
|
|
19
|
-
description: 'Output as JSON for AI agents/scripts (machine-readable mode)',
|
|
20
|
-
default: false,
|
|
21
|
-
}),
|
|
22
17
|
json: Flags.boolean({
|
|
23
|
-
|
|
18
|
+
char: 'm',
|
|
19
|
+
aliases: ['machine'],
|
|
20
|
+
description: 'Output as JSON for AI agents/scripts',
|
|
24
21
|
default: false,
|
|
25
|
-
hidden: true,
|
|
26
22
|
}),
|
|
27
23
|
};
|
|
28
24
|
async run() {
|
|
@@ -4,7 +4,6 @@ export default class Agent extends PMOCommand {
|
|
|
4
4
|
static examples: string[];
|
|
5
5
|
static flags: {
|
|
6
6
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
7
|
-
machine: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
7
|
project: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
8
|
};
|
|
10
9
|
protected getPMOOptions(): {
|
|
@@ -4,7 +4,6 @@ export default class List extends PMOCommand {
|
|
|
4
4
|
static examples: string[];
|
|
5
5
|
static flags: {
|
|
6
6
|
type: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
-
machine: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
7
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
9
8
|
project: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
9
|
};
|
|
@@ -33,8 +33,37 @@ export default class List extends PMOCommand {
|
|
|
33
33
|
const workspaceInfo = getWorkspaceInfo();
|
|
34
34
|
// Filter to active agents only
|
|
35
35
|
const activeAgents = workspaceInfo.agents.filter(a => a.status === 'active');
|
|
36
|
-
// Determine type filter - prompt if not provided
|
|
36
|
+
// Determine type filter - prompt if not provided (but not in JSON mode)
|
|
37
37
|
let typeFilter = flags.type;
|
|
38
|
+
// In JSON mode without type filter, output all agents grouped by type
|
|
39
|
+
if (jsonMode && !typeFilter) {
|
|
40
|
+
const staffAgents = activeAgents.filter(a => a.type === 'persistent');
|
|
41
|
+
const tempAgents = activeAgents.filter(a => a.type === 'ephemeral');
|
|
42
|
+
const agentsStatus = getAllAgentsStatus(workspaceInfo);
|
|
43
|
+
const formatAgentJson = (agents) => {
|
|
44
|
+
return agents.map(agent => {
|
|
45
|
+
const status = agentsStatus.find(s => s.name === agent.name);
|
|
46
|
+
const sessions = getAgentTmuxSessions(agent.name);
|
|
47
|
+
return {
|
|
48
|
+
name: agent.name,
|
|
49
|
+
type: agent.type === 'persistent' ? 'staff' : 'temp',
|
|
50
|
+
exists: status?.exists ?? false,
|
|
51
|
+
branch: status?.branch ?? null,
|
|
52
|
+
repositories: status?.repositories ?? [],
|
|
53
|
+
assignedTickets: status?.assignedTickets ?? [],
|
|
54
|
+
completedTickets: status?.completedTickets ?? [],
|
|
55
|
+
running: sessions.length > 0,
|
|
56
|
+
};
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
const output = {
|
|
60
|
+
staff: formatAgentJson(staffAgents),
|
|
61
|
+
temp: formatAgentJson(tempAgents),
|
|
62
|
+
all: formatAgentJson(activeAgents),
|
|
63
|
+
};
|
|
64
|
+
this.log(JSON.stringify(output, null, 2));
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
38
67
|
if (!typeFilter) {
|
|
39
68
|
const { selectedType } = await this.prompt([{
|
|
40
69
|
type: 'list',
|
|
@@ -7,7 +7,6 @@ export default class Login extends PMOCommand {
|
|
|
7
7
|
};
|
|
8
8
|
static flags: {
|
|
9
9
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
10
|
-
machine: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
11
10
|
project: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
11
|
};
|
|
13
12
|
protected getPMOOptions(): {
|
|
@@ -3,7 +3,7 @@ import * as path from 'node:path';
|
|
|
3
3
|
import * as fs from 'node:fs';
|
|
4
4
|
import { execSync } from 'node:child_process';
|
|
5
5
|
import { colors } from '../../lib/colors.js';
|
|
6
|
-
import { getWorkspaceInfo } from '../../lib/agents/commands.js';
|
|
6
|
+
import { getWorkspaceInfo, formatAgentList } from '../../lib/agents/commands.js';
|
|
7
7
|
import { PMOCommand, pmoBaseFlags } from '../../lib/pmo/index.js';
|
|
8
8
|
import { isDockerRunning, getAgentContainerName, isContainerRunning, getContainerId, } from '../../lib/execution/runners.js';
|
|
9
9
|
import { shouldOutputJson, outputErrorAsJson, createMetadata, } from '../../lib/prompt-json.js';
|
|
@@ -22,6 +22,8 @@ export default class Login extends PMOCommand {
|
|
|
22
22
|
static flags = {
|
|
23
23
|
...pmoBaseFlags,
|
|
24
24
|
json: Flags.boolean({
|
|
25
|
+
char: 'm',
|
|
26
|
+
aliases: ['machine'],
|
|
25
27
|
description: 'Output prompt configuration as JSON (for AI agents/scripts)',
|
|
26
28
|
default: false,
|
|
27
29
|
}),
|
|
@@ -76,7 +78,7 @@ export default class Login extends PMOCommand {
|
|
|
76
78
|
// Validate agent exists
|
|
77
79
|
const agent = workspaceInfo.agents.find(a => a.name === agentName);
|
|
78
80
|
if (!agent) {
|
|
79
|
-
this.error(`Agent "${agentName}" not found. Available
|
|
81
|
+
this.error(`Agent "${agentName}" not found. Available: ${formatAgentList(workspaceInfo.agents)}`);
|
|
80
82
|
}
|
|
81
83
|
const agentDir = path.join(workspaceInfo.agentsPath, agentName);
|
|
82
84
|
// Check if Docker config exists
|
|
@@ -8,7 +8,6 @@ export default class AgentRebuild extends PMOCommand {
|
|
|
8
8
|
static flags: {
|
|
9
9
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
10
10
|
'no-cache': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
11
|
-
machine: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
12
11
|
project: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
12
|
};
|
|
14
13
|
protected getPMOOptions(): {
|
|
@@ -26,6 +26,8 @@ export default class AgentRebuild extends PMOCommand {
|
|
|
26
26
|
static flags = {
|
|
27
27
|
...pmoBaseFlags,
|
|
28
28
|
json: Flags.boolean({
|
|
29
|
+
char: 'm',
|
|
30
|
+
aliases: ['machine'],
|
|
29
31
|
description: 'Output prompt configuration as JSON (for AI agents/scripts)',
|
|
30
32
|
default: false,
|
|
31
33
|
}),
|
|
@@ -7,7 +7,7 @@ export default class Remove extends PMOCommand {
|
|
|
7
7
|
};
|
|
8
8
|
static flags: {
|
|
9
9
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
10
|
-
|
|
10
|
+
force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
11
11
|
project: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
12
|
};
|
|
13
13
|
protected getPMOOptions(): {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Args, Flags } from '@oclif/core';
|
|
2
2
|
import inquirer from 'inquirer';
|
|
3
3
|
import { colors, format } from '../../lib/colors.js';
|
|
4
|
-
import { getWorkspaceInfo, removeAgentsFromWorkspace } from '../../lib/agents/commands.js';
|
|
4
|
+
import { getWorkspaceInfo, removeAgentsFromWorkspace, formatAgentList } from '../../lib/agents/commands.js';
|
|
5
5
|
import { PMOCommand, pmoBaseFlags } from '../../lib/pmo/index.js';
|
|
6
6
|
import { shouldOutputJson, outputPromptAsJson, outputErrorAsJson, createMetadata, buildPromptConfig, } from '../../lib/prompt-json.js';
|
|
7
7
|
export default class Remove extends PMOCommand {
|
|
@@ -19,9 +19,16 @@ export default class Remove extends PMOCommand {
|
|
|
19
19
|
static flags = {
|
|
20
20
|
...pmoBaseFlags,
|
|
21
21
|
json: Flags.boolean({
|
|
22
|
+
char: 'm',
|
|
23
|
+
aliases: ['machine'],
|
|
22
24
|
description: 'Output prompt configuration as JSON (for AI agents/scripts)',
|
|
23
25
|
default: false,
|
|
24
26
|
}),
|
|
27
|
+
force: Flags.boolean({
|
|
28
|
+
char: 'f',
|
|
29
|
+
description: 'Skip confirmation prompt (for non-interactive use)',
|
|
30
|
+
default: false,
|
|
31
|
+
}),
|
|
25
32
|
};
|
|
26
33
|
getPMOOptions() {
|
|
27
34
|
return { promptIfMultiple: false };
|
|
@@ -90,36 +97,39 @@ export default class Remove extends PMOCommand {
|
|
|
90
97
|
// Validate agent exists
|
|
91
98
|
const agent = workspaceInfo.agents.find((a) => a.name === agentName);
|
|
92
99
|
if (!agent) {
|
|
93
|
-
return handleError('AGENT_NOT_FOUND', `Agent "${agentName}" not found. Available
|
|
100
|
+
return handleError('AGENT_NOT_FOUND', `Agent "${agentName}" not found. Available: ${formatAgentList(workspaceInfo.agents)}`);
|
|
94
101
|
}
|
|
95
102
|
const agentsToRemove = [agentName];
|
|
96
|
-
//
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
103
|
+
// Skip confirmation if --force flag is passed
|
|
104
|
+
if (!flags.force) {
|
|
105
|
+
// Build choices once, use for both JSON and interactive modes
|
|
106
|
+
const confirmChoices = [
|
|
107
|
+
{ name: 'No, cancel', value: 'false' },
|
|
108
|
+
{ name: 'Yes, remove agent', value: 'true' },
|
|
109
|
+
];
|
|
110
|
+
const confirmMessage = `Are you sure you want to remove agent "${agentName}"? This will delete its worktree.`;
|
|
111
|
+
// Confirm removal
|
|
112
|
+
// In JSON mode, output confirmation prompt
|
|
113
|
+
if (jsonMode) {
|
|
114
|
+
outputPromptAsJson(buildPromptConfig('list', 'confirmed', confirmMessage, confirmChoices), createMetadata('agent remove', flags));
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
const { confirm } = await inquirer.prompt([
|
|
118
|
+
{
|
|
119
|
+
type: 'list',
|
|
120
|
+
name: 'confirm',
|
|
121
|
+
message: confirmMessage,
|
|
122
|
+
choices: [
|
|
123
|
+
{ name: '❌ ' + confirmChoices[0].name, value: false },
|
|
124
|
+
{ name: '⚠️ ' + confirmChoices[1].name, value: true }
|
|
125
|
+
],
|
|
126
|
+
default: 0 // Default to "No, cancel"
|
|
127
|
+
}
|
|
128
|
+
]);
|
|
129
|
+
if (!confirm) {
|
|
130
|
+
this.log(colors.textMuted('Removal cancelled.'));
|
|
131
|
+
return;
|
|
118
132
|
}
|
|
119
|
-
]);
|
|
120
|
-
if (!confirm) {
|
|
121
|
-
this.log(colors.textMuted('Removal cancelled.'));
|
|
122
|
-
return;
|
|
123
133
|
}
|
|
124
134
|
// Remove agents
|
|
125
135
|
this.log(colors.primary(`Removing agent "${agentName}"...`));
|
|
@@ -7,7 +7,6 @@ export default class AgentRestart extends PMOCommand {
|
|
|
7
7
|
};
|
|
8
8
|
static flags: {
|
|
9
9
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
10
|
-
machine: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
11
10
|
project: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
11
|
};
|
|
13
12
|
protected getPMOOptions(): {
|
|
@@ -25,6 +25,8 @@ export default class AgentRestart extends PMOCommand {
|
|
|
25
25
|
static flags = {
|
|
26
26
|
...pmoBaseFlags,
|
|
27
27
|
json: Flags.boolean({
|
|
28
|
+
char: 'm',
|
|
29
|
+
aliases: ['machine'],
|
|
28
30
|
description: 'Output prompt configuration as JSON (for AI agents/scripts)',
|
|
29
31
|
default: false,
|
|
30
32
|
}),
|
|
@@ -7,7 +7,6 @@ export default class Shell extends PMOCommand {
|
|
|
7
7
|
};
|
|
8
8
|
static flags: {
|
|
9
9
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
10
|
-
machine: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
11
10
|
project: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
11
|
};
|
|
13
12
|
protected getPMOOptions(): {
|
|
@@ -4,7 +4,7 @@ import * as fs from 'node:fs';
|
|
|
4
4
|
import { execSync, spawn } from 'node:child_process';
|
|
5
5
|
import Database from 'better-sqlite3';
|
|
6
6
|
import { colors } from '../../lib/colors.js';
|
|
7
|
-
import { getWorkspaceInfo, getAgentTmuxSessions } from '../../lib/agents/commands.js';
|
|
7
|
+
import { getWorkspaceInfo, getAgentTmuxSessions, formatAgentList } from '../../lib/agents/commands.js';
|
|
8
8
|
import { hasDevcontainerConfig } from '../../lib/execution/devcontainer.js';
|
|
9
9
|
import { getTerminalApp } from '../../lib/execution/config.js';
|
|
10
10
|
import { isDockerRunning, getAgentContainerName, isContainerRunning, getContainerId, } from '../../lib/execution/runners.js';
|
|
@@ -25,6 +25,8 @@ export default class Shell extends PMOCommand {
|
|
|
25
25
|
static flags = {
|
|
26
26
|
...pmoBaseFlags,
|
|
27
27
|
json: Flags.boolean({
|
|
28
|
+
char: 'm',
|
|
29
|
+
aliases: ['machine'],
|
|
28
30
|
description: 'Output prompt configuration as JSON (for AI agents/scripts)',
|
|
29
31
|
default: false,
|
|
30
32
|
}),
|
|
@@ -74,7 +76,7 @@ export default class Shell extends PMOCommand {
|
|
|
74
76
|
// Validate agent exists
|
|
75
77
|
const agent = workspaceInfo.agents.find(a => a.name === agentName);
|
|
76
78
|
if (!agent) {
|
|
77
|
-
this.handleError('AGENT_NOT_FOUND', `Agent "${agentName}" not found. Available
|
|
79
|
+
this.handleError('AGENT_NOT_FOUND', `Agent "${agentName}" not found. Available: ${formatAgentList(workspaceInfo.agents)}`, errorConfig);
|
|
78
80
|
}
|
|
79
81
|
// Check for existing tmux sessions (skip in JSON mode - can't handle interactive tmux)
|
|
80
82
|
const existingSessions = getAgentTmuxSessions(agentName);
|
|
@@ -8,7 +8,6 @@ export default class Add extends Command {
|
|
|
8
8
|
static flags: {
|
|
9
9
|
'no-container': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
10
10
|
theme: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
-
machine: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
12
11
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
13
12
|
clone: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
14
13
|
};
|
|
@@ -28,15 +28,11 @@ export default class Add extends Command {
|
|
|
28
28
|
char: 't',
|
|
29
29
|
description: 'Pick agent name(s) from a theme (billionaires, toyotas, companies, or custom)',
|
|
30
30
|
}),
|
|
31
|
-
machine: Flags.boolean({
|
|
32
|
-
char: 'm',
|
|
33
|
-
description: 'Output as JSON for AI agents/scripts (machine-readable mode)',
|
|
34
|
-
default: false,
|
|
35
|
-
}),
|
|
36
31
|
json: Flags.boolean({
|
|
37
|
-
|
|
32
|
+
char: 'm',
|
|
33
|
+
aliases: ['machine'],
|
|
34
|
+
description: 'Output as JSON for AI agents/scripts',
|
|
38
35
|
default: false,
|
|
39
|
-
hidden: true,
|
|
40
36
|
}),
|
|
41
37
|
clone: Flags.boolean({
|
|
42
38
|
description: 'Use independent git clone instead of worktree (more isolation, no real-time sync)',
|
|
@@ -5,7 +5,6 @@ export default class Staff extends PMOCommand {
|
|
|
5
5
|
static flags: {
|
|
6
6
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
7
7
|
'no-interactive': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
|
-
machine: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
9
8
|
project: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
9
|
};
|
|
11
10
|
protected getPMOOptions(): {
|
|
@@ -8,7 +8,6 @@ export default class Remove extends PMOCommand {
|
|
|
8
8
|
static flags: {
|
|
9
9
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
10
10
|
force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
11
|
-
machine: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
12
11
|
project: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
12
|
};
|
|
14
13
|
protected getPMOOptions(): {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Args, Flags } from '@oclif/core';
|
|
2
2
|
import inquirer from 'inquirer';
|
|
3
3
|
import { colors, format } from '../../../lib/colors.js';
|
|
4
|
-
import { getWorkspaceInfo, removeAgentsFromWorkspace } from '../../../lib/agents/commands.js';
|
|
4
|
+
import { getWorkspaceInfo, removeAgentsFromWorkspace, formatAgentList } from '../../../lib/agents/commands.js';
|
|
5
5
|
import { PMOCommand, pmoBaseFlags } from '../../../lib/pmo/index.js';
|
|
6
6
|
import { shouldOutputJson, outputPromptAsJson, outputErrorAsJson, createMetadata, buildPromptConfig, } from '../../../lib/prompt-json.js';
|
|
7
7
|
export default class Remove extends PMOCommand {
|
|
@@ -19,6 +19,8 @@ export default class Remove extends PMOCommand {
|
|
|
19
19
|
static flags = {
|
|
20
20
|
...pmoBaseFlags,
|
|
21
21
|
json: Flags.boolean({
|
|
22
|
+
char: 'm',
|
|
23
|
+
aliases: ['machine'],
|
|
22
24
|
description: 'Output prompt configuration as JSON (for AI agents/scripts)',
|
|
23
25
|
default: false,
|
|
24
26
|
}),
|
|
@@ -90,7 +92,7 @@ export default class Remove extends PMOCommand {
|
|
|
90
92
|
// Validate agent exists and is a staff agent
|
|
91
93
|
const agent = staffAgents.find((a) => a.name === agentName);
|
|
92
94
|
if (!agent) {
|
|
93
|
-
return handleError('AGENT_NOT_FOUND', `Staff agent "${agentName}" not found. Available
|
|
95
|
+
return handleError('AGENT_NOT_FOUND', `Staff agent "${agentName}" not found. Available: ${formatAgentList(staffAgents)}`);
|
|
94
96
|
}
|
|
95
97
|
const agentsToRemove = [agentName];
|
|
96
98
|
// Skip confirmation if --force flag is passed
|
|
@@ -7,7 +7,6 @@ export default class Status extends PMOCommand {
|
|
|
7
7
|
};
|
|
8
8
|
static flags: {
|
|
9
9
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
10
|
-
machine: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
11
10
|
project: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
11
|
};
|
|
13
12
|
protected getPMOOptions(): {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Args, Flags } from '@oclif/core';
|
|
2
2
|
import { colors, format } from '../../lib/colors.js';
|
|
3
|
-
import { getWorkspaceInfo, getAgentStatus } from '../../lib/agents/commands.js';
|
|
3
|
+
import { getWorkspaceInfo, getAgentStatus, formatAgentList } from '../../lib/agents/commands.js';
|
|
4
4
|
import { PMOCommand, pmoBaseFlags } from '../../lib/pmo/index.js';
|
|
5
5
|
import { shouldOutputJson, outputErrorAsJson, createMetadata, } from '../../lib/prompt-json.js';
|
|
6
6
|
export default class Status extends PMOCommand {
|
|
@@ -18,6 +18,8 @@ export default class Status extends PMOCommand {
|
|
|
18
18
|
static flags = {
|
|
19
19
|
...pmoBaseFlags,
|
|
20
20
|
json: Flags.boolean({
|
|
21
|
+
char: 'm',
|
|
22
|
+
aliases: ['machine'],
|
|
21
23
|
description: 'Output prompt configuration as JSON (for AI agents/scripts)',
|
|
22
24
|
default: false,
|
|
23
25
|
}),
|
|
@@ -69,7 +71,7 @@ export default class Status extends PMOCommand {
|
|
|
69
71
|
// Validate agent exists
|
|
70
72
|
const agent = workspaceInfo.agents.find((a) => a.name === agentName);
|
|
71
73
|
if (!agent) {
|
|
72
|
-
this.error(`Agent "${agentName}" not found. Available
|
|
74
|
+
this.error(`Agent "${agentName}" not found. Available: ${formatAgentList(workspaceInfo.agents)}`);
|
|
73
75
|
}
|
|
74
76
|
const agentStatus = getAgentStatus(workspaceInfo, agentName);
|
|
75
77
|
this.log(format.title(`🤖 Agent: ${agentName}`));
|
|
@@ -14,7 +14,6 @@ export default class Cleanup extends PMOCommand {
|
|
|
14
14
|
push: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
15
15
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
16
16
|
'no-interactive': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
17
|
-
machine: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
18
17
|
project: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
18
|
};
|
|
20
19
|
protected getPMOOptions(): {
|
|
@@ -5,7 +5,6 @@ export default class Temp extends PMOCommand {
|
|
|
5
5
|
static flags: {
|
|
6
6
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
7
7
|
'no-interactive': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
|
-
machine: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
9
8
|
project: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
9
|
};
|
|
11
10
|
protected getPMOOptions(): {
|
|
@@ -4,6 +4,7 @@ export default class ThemesAddNames extends Command {
|
|
|
4
4
|
static examples: string[];
|
|
5
5
|
static args: {
|
|
6
6
|
theme: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
7
|
+
names: import("@oclif/core/interfaces").Arg<string | undefined, Record<string, unknown>>;
|
|
7
8
|
};
|
|
8
9
|
static strict: boolean;
|
|
9
10
|
run(): Promise<void>;
|
|
@@ -11,9 +11,13 @@ export default class ThemesAddNames extends Command {
|
|
|
11
11
|
];
|
|
12
12
|
static args = {
|
|
13
13
|
theme: Args.string({
|
|
14
|
-
description: 'Theme ID
|
|
14
|
+
description: 'Theme ID',
|
|
15
15
|
required: true,
|
|
16
16
|
}),
|
|
17
|
+
names: Args.string({
|
|
18
|
+
description: 'Names to add to the theme (space-separated)',
|
|
19
|
+
required: false,
|
|
20
|
+
}),
|
|
17
21
|
};
|
|
18
22
|
static strict = false; // Allow multiple name arguments
|
|
19
23
|
async run() {
|
|
@@ -3,7 +3,6 @@ export default class Themes extends Command {
|
|
|
3
3
|
static description: string;
|
|
4
4
|
static examples: string[];
|
|
5
5
|
static flags: {
|
|
6
|
-
machine: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
7
6
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
7
|
};
|
|
9
8
|
run(): Promise<void>;
|