wile 0.1.0 → 0.1.1
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/README.md +15 -1
- package/dist/cli.js +7 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ This creates:
|
|
|
26
26
|
## Run Wile
|
|
27
27
|
|
|
28
28
|
```bash
|
|
29
|
-
bunx wile run
|
|
29
|
+
bunx wile run
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
Optional flags:
|
|
@@ -38,3 +38,17 @@ Optional flags:
|
|
|
38
38
|
## Logs
|
|
39
39
|
|
|
40
40
|
Each run writes a session log to `.wile/logs/run-YYYYMMDD_HHMMSS.log`.
|
|
41
|
+
|
|
42
|
+
## Publish
|
|
43
|
+
|
|
44
|
+
Release (bump version + build):
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
./scripts/release-cli.sh patch
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Publish:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
./scripts/publish-cli.sh
|
|
54
|
+
```
|
package/dist/cli.js
CHANGED
|
@@ -7451,7 +7451,6 @@ import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
|
7451
7451
|
import { existsSync } from "node:fs";
|
|
7452
7452
|
import { join } from "node:path";
|
|
7453
7453
|
var prdExample = {
|
|
7454
|
-
branchName: "main",
|
|
7455
7454
|
userStories: [
|
|
7456
7455
|
{
|
|
7457
7456
|
id: "US-001",
|
|
@@ -7544,7 +7543,8 @@ var prdExample = {
|
|
|
7544
7543
|
};
|
|
7545
7544
|
var tips = {
|
|
7546
7545
|
oauth: "Tip: run 'claude setup-token' on your machine to generate an OAuth token (uses Pro/Max subscription).",
|
|
7547
|
-
apiKey: "Tip: create an Anthropic API key in the console (uses API credits)."
|
|
7546
|
+
apiKey: "Tip: create an Anthropic API key in the console (uses API credits).",
|
|
7547
|
+
github: "Tip: use a GitHub Personal Access Token (fine-grained recommended). Create at https://github.com/settings/tokens?type=beta with Contents (read/write) and Metadata (read)."
|
|
7548
7548
|
};
|
|
7549
7549
|
var readEnvFile = async (path) => {
|
|
7550
7550
|
if (!existsSync(path)) {
|
|
@@ -7660,6 +7660,9 @@ var runConfig = async () => {
|
|
|
7660
7660
|
],
|
|
7661
7661
|
initial: existingEnv.CC_CLAUDE_MODEL === "opus" ? 1 : 0
|
|
7662
7662
|
});
|
|
7663
|
+
console.log("");
|
|
7664
|
+
console.log(tips.github);
|
|
7665
|
+
console.log("");
|
|
7663
7666
|
const githubTokenResponse = await prompt({
|
|
7664
7667
|
type: "password",
|
|
7665
7668
|
name: "githubToken",
|
|
@@ -7702,7 +7705,7 @@ var runConfig = async () => {
|
|
|
7702
7705
|
await writeIfMissing(envProjectPath, `# Add env vars here to forward into the container
|
|
7703
7706
|
`);
|
|
7704
7707
|
if (!existsSync(prdPath)) {
|
|
7705
|
-
const prdContents = JSON.stringify({
|
|
7708
|
+
const prdContents = JSON.stringify({ userStories: [] }, null, 2);
|
|
7706
7709
|
await writeFile(prdPath, prdContents + `
|
|
7707
7710
|
`);
|
|
7708
7711
|
}
|
|
@@ -7924,7 +7927,7 @@ program2.name("wile").description("Autonomous AI coding agent that ships feature
|
|
|
7924
7927
|
program2.command("config").description("Configure the current project for Wile").action(async () => {
|
|
7925
7928
|
await runConfig();
|
|
7926
7929
|
});
|
|
7927
|
-
program2.command("run").description("Run Wile on a repository").
|
|
7930
|
+
program2.command("run").description("Run Wile on a repository").option("--branch <branch>", "Branch to work on").option("--repo <repo>", "Repository URL or local path").option("--max-iterations <count>", "Maximum iterations", "25").option("--test", "Run in test mode").action((options) => {
|
|
7928
7931
|
runWile(options);
|
|
7929
7932
|
});
|
|
7930
7933
|
program2.parse(process.argv);
|