capyai 0.3.4 → 0.3.5

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/bin/capy.ts CHANGED
@@ -42,7 +42,12 @@ const main = defineCommand({
42
42
  });
43
43
 
44
44
  try {
45
- await runCommand(main, { rawArgs: process.argv.slice(2) });
45
+ const args = process.argv.slice(2);
46
+ if (args.includes("--version") || args.includes("-v")) {
47
+ console.log(version);
48
+ process.exit(0);
49
+ }
50
+ await runCommand(main, { rawArgs: args });
46
51
  } catch (e) {
47
52
  if (e instanceof CapyError) {
48
53
  if (process.argv.includes("--json")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "capyai",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "type": "module",
5
5
  "description": "Unofficial Capy.ai CLI for agent orchestration with quality gates",
6
6
  "bin": {
@@ -3,7 +3,7 @@ name: capy
3
3
  description: Orchestrate Capy.ai coding agents with quality gates. Delegate coding work, wait for completion, review quality, approve or retry.
4
4
  metadata:
5
5
  author: yazcaleb
6
- version: "0.3.4"
6
+ version: "0.3.5"
7
7
  ---
8
8
 
9
9
  # capy
@@ -29,7 +29,7 @@ export const pr = defineCommand({
29
29
  meta: { name: "pr", description: "Create a PR" },
30
30
  args: {
31
31
  id: { type: "positional", description: "Task ID", required: true },
32
- title: { type: "positional", description: "PR title" },
32
+ title: { type: "positional", required: false, description: "PR title" },
33
33
  ...jsonArg,
34
34
  },
35
35
  async run({ args }) {
@@ -99,7 +99,7 @@ export const _poll = defineCommand({
99
99
  meta: { name: "_poll", description: "Internal cron poll", hidden: true },
100
100
  args: {
101
101
  id: { type: "positional", description: "ID", required: true },
102
- type: { type: "positional", description: "task or thread" },
102
+ type: { type: "positional", required: false, description: "task or thread" },
103
103
  },
104
104
  async run({ args }) {
105
105
  const api = await import("../api.js");
@@ -102,8 +102,8 @@ export const init = defineCommand({
102
102
  export const config = defineCommand({
103
103
  meta: { name: "config", description: "Get/set config" },
104
104
  args: {
105
- key: { type: "positional", description: "Config key (dot notation)" },
106
- value: { type: "positional", description: "Value to set" },
105
+ key: { type: "positional", required: false, description: "Config key (dot notation)" },
106
+ value: { type: "positional", required: false, description: "Value to set" },
107
107
  ...jsonArg,
108
108
  },
109
109
  async run({ args }) {
@@ -4,7 +4,7 @@ import { modelArgs, jsonArg, resolveModel } from "./_shared.js";
4
4
  export const list = defineCommand({
5
5
  meta: { name: "list", description: "List tasks", alias: "ls" },
6
6
  args: {
7
- status: { type: "positional", description: "Filter by status" },
7
+ status: { type: "positional", required: false, description: "Filter by status" },
8
8
  ...jsonArg,
9
9
  },
10
10
  async run({ args }) {
@@ -84,7 +84,7 @@ export const stop = defineCommand({
84
84
  meta: { name: "stop", description: "Stop a task", alias: "kill" },
85
85
  args: {
86
86
  id: { type: "positional", description: "Task ID", required: true },
87
- reason: { type: "positional", description: "Stop reason" },
87
+ reason: { type: "positional", required: false, description: "Stop reason" },
88
88
  ...jsonArg,
89
89
  },
90
90
  async run({ args }) {