@on-par/factory-cli 0.9.8-next.13 → 0.9.8-next.15
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/cli/first-run.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export declare const GITHUB_TOKENS_URL = "https://github.com/settings/tokens";
|
|
|
4
4
|
/** Printed by bare `factory` (no subcommand). */
|
|
5
5
|
export declare function formatOverview(): string;
|
|
6
6
|
export declare const CODEX_CLI_URL = "https://developers.openai.com/codex/cli";
|
|
7
|
+
export declare const OPENCODE_URL = "https://opencode.ai";
|
|
7
8
|
/** Coding agent CLIs the factory can drive for PLAN and BUILD. Any one of them is enough. */
|
|
8
9
|
export declare const AGENT_CLIS: readonly ['claude', 'codex', 'opencode'];
|
|
9
10
|
/** Agent CLIs from AGENT_CLIS found on PATH. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"first-run.d.ts","sourceRoot":"","sources":["../../src/cli/first-run.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"first-run.d.ts","sourceRoot":"","sources":["../../src/cli/first-run.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,QAAQ,sDAAsD,CAAC;AAC5E,eAAO,MAAM,eAAe,mDAAmD,CAAC;AAChF,eAAO,MAAM,iBAAiB,uCAAuC,CAAC;AAEtE,iDAAiD;AACjD,wBAAgB,cAAc,IAAI,MAAM,CAkBvC;AAED,eAAO,MAAM,aAAa,4CAA4C,CAAC;AACvE,eAAO,MAAM,YAAY,wBAAwB,CAAC;AAElD,6FAA6F;AAC7F,eAAO,MAAM,UAAU,YAAI,QAAQ,EAAE,OAAO,EAAE,UAAU,CAAU,CAAC;AAEnE,gDAAgD;AAChD,wBAAgB,kBAAkB,CAAC,gBAAgB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,GAAG,MAAM,EAAE,CAEvF;AAED,wBAAgB,sBAAsB,IAAI,MAAM,CAE/C;AAED,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C;AAED,wBAAgB,qBAAqB,IAAI,MAAM,CAE9C"}
|
package/dist/cli/first-run.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// packages/cli/src/cli/first-run.ts — designed first-run copy: overview + structured error messages
|
|
2
|
+
import { openCodeVersion } from '@on-par/factory-core/internal';
|
|
2
3
|
export const DOCS_URL = 'https://github.com/on-par/software-factory#readme';
|
|
3
4
|
export const CLAUDE_CODE_URL = 'https://docs.anthropic.com/en/docs/claude-code';
|
|
4
5
|
export const GITHUB_TOKENS_URL = 'https://github.com/settings/tokens';
|
|
@@ -23,6 +24,7 @@ Docs: ${DOCS_URL}
|
|
|
23
24
|
`;
|
|
24
25
|
}
|
|
25
26
|
export const CODEX_CLI_URL = 'https://developers.openai.com/codex/cli';
|
|
27
|
+
export const OPENCODE_URL = 'https://opencode.ai';
|
|
26
28
|
/** Coding agent CLIs the factory can drive for PLAN and BUILD. Any one of them is enough. */
|
|
27
29
|
export const AGENT_CLIS = ['claude', 'codex', 'opencode'];
|
|
28
30
|
/** Agent CLIs from AGENT_CLIS found on PATH. */
|
|
@@ -30,7 +32,7 @@ export function availableAgentClis(commandAvailable) {
|
|
|
30
32
|
return AGENT_CLIS.filter((cmd) => commandAvailable(cmd));
|
|
31
33
|
}
|
|
32
34
|
export function missingAgentCliMessage() {
|
|
33
|
-
return `no coding agent CLI found on PATH (claude, codex or opencode). Install one: Claude Code (${CLAUDE_CODE_URL})
|
|
35
|
+
return `no coding agent CLI found on PATH (claude, codex or opencode). Install one: Claude Code (${CLAUDE_CODE_URL}), the Codex CLI (${CODEX_CLI_URL}) or OpenCode (${OPENCODE_URL}; \`${openCodeVersion.OPENCODE_PINNED_INSTALL}\`), then sign in with \`claude /login\`, \`codex login\` or \`opencode auth login\`. OpenCode models are experimental: set FACTORY_EXPERIMENTAL=1 to use them`;
|
|
34
36
|
}
|
|
35
37
|
export function missingTokenMessage() {
|
|
36
38
|
return `GITHUB_TOKEN not set — create a token at ${GITHUB_TOKENS_URL} and export it (or run \`gh auth login\`)`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"first-run.js","sourceRoot":"","sources":["../../src/cli/first-run.ts"],"names":[],"mappings":"AAAA,oGAAoG;AAEpG,MAAM,CAAC,MAAM,QAAQ,GAAG,mDAAmD,CAAC;AAC5E,MAAM,CAAC,MAAM,eAAe,GAAG,gDAAgD,CAAC;AAChF,MAAM,CAAC,MAAM,iBAAiB,GAAG,oCAAoC,CAAC;AAEtE,iDAAiD;AACjD,MAAM,UAAU,cAAc;IAC5B,OAAO;;;;;;;;;;;;;;;0BAeiB,QAAQ;CACjC,CAAC;AACF,CAAC;AAED,MAAM,CAAC,MAAM,aAAa,GAAG,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"first-run.js","sourceRoot":"","sources":["../../src/cli/first-run.ts"],"names":[],"mappings":"AAAA,oGAAoG;AAEpG,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,MAAM,CAAC,MAAM,QAAQ,GAAG,mDAAmD,CAAC;AAC5E,MAAM,CAAC,MAAM,eAAe,GAAG,gDAAgD,CAAC;AAChF,MAAM,CAAC,MAAM,iBAAiB,GAAG,oCAAoC,CAAC;AAEtE,iDAAiD;AACjD,MAAM,UAAU,cAAc;IAC5B,OAAO;;;;;;;;;;;;;;;0BAeiB,QAAQ;CACjC,CAAC;AACF,CAAC;AAED,MAAM,CAAC,MAAM,aAAa,GAAG,yCAAyC,CAAC;AACvE,MAAM,CAAC,MAAM,YAAY,GAAG,qBAAqB,CAAC;AAElD,6FAA6F;AAC7F,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,UAAU,CAAU,CAAC;AAEnE,gDAAgD;AAChD,MAAM,UAAU,kBAAkB,CAAC,gBAA0C;IAC3E,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC;AAC3D,CAAC;AAED,MAAM,UAAU,sBAAsB;IACpC,OAAO,4FAA4F,eAAe,qBAAqB,aAAa,kBAAkB,YAAY,OAAO,eAAe,CAAC,uBAAuB,gKAAgK,CAAC;AACnY,CAAC;AAED,MAAM,UAAU,mBAAmB;IACjC,OAAO,4CAA4C,iBAAiB,2CAA2C,CAAC;AAClH,CAAC;AAED,MAAM,UAAU,qBAAqB;IACnC,OAAO,oDAAoD,CAAC;AAC9D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@on-par/factory-cli",
|
|
3
|
-
"version": "0.9.8-next.
|
|
3
|
+
"version": "0.9.8-next.15",
|
|
4
4
|
"description": "On PAR Dev's Software Factory CLI: takes a GitHub issue through plan, build and check with AI agents, then opens a ready-for-review PR.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai-agents",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"@octokit/plugin-retry": "^8.1.1",
|
|
48
48
|
"@octokit/plugin-throttling": "^11.0.5",
|
|
49
49
|
"@octokit/rest": "^22.0.0",
|
|
50
|
-
"@on-par/factory-core": "0.9.8-next.
|
|
51
|
-
"@on-par/factory-tui": "0.9.8-next.
|
|
50
|
+
"@on-par/factory-core": "0.9.8-next.15",
|
|
51
|
+
"@on-par/factory-tui": "0.9.8-next.15",
|
|
52
52
|
"commander": "^15.0.0"
|
|
53
53
|
},
|
|
54
54
|
"license": "MIT",
|