@tdsoft-tech/aikit 0.1.19 → 0.1.20
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.js +91 -4
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +91 -4
- package/dist/index.js.map +1 -1
- package/dist/mcp-server.js +91 -4
- package/dist/mcp-server.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1220,11 +1220,95 @@ var init_beads = __esm({
|
|
|
1220
1220
|
}
|
|
1221
1221
|
/**
|
|
1222
1222
|
* Initialize local .beads directory (works without global beads CLI)
|
|
1223
|
+
* Creates a fully functional beads workspace for OpenCode/Claude Code
|
|
1223
1224
|
*/
|
|
1224
1225
|
async initLocal() {
|
|
1225
1226
|
try {
|
|
1226
1227
|
const beadsDir = paths.beadsDir(this.projectPath);
|
|
1227
1228
|
await mkdir5(beadsDir, { recursive: true });
|
|
1229
|
+
const configYaml = `# Beads Configuration File
|
|
1230
|
+
# This file configures default behavior for all bd commands in this repository
|
|
1231
|
+
# All settings can also be set via environment variables (BD_* prefix)
|
|
1232
|
+
# or overridden with command-line flags
|
|
1233
|
+
|
|
1234
|
+
# Issue prefix for this repository (used by bd init)
|
|
1235
|
+
# If not set, bd init will auto-detect from directory name
|
|
1236
|
+
# issue-prefix: ""
|
|
1237
|
+
|
|
1238
|
+
# Use no-db mode: load from JSONL, no SQLite, write back after each command
|
|
1239
|
+
# When true, bd will use .beads/issues.jsonl as the source of truth
|
|
1240
|
+
# instead of SQLite database
|
|
1241
|
+
# no-db: false
|
|
1242
|
+
|
|
1243
|
+
# Disable daemon for RPC communication (forces direct database access)
|
|
1244
|
+
# no-daemon: false
|
|
1245
|
+
|
|
1246
|
+
# Disable auto-flush of database to JSONL after mutations
|
|
1247
|
+
# no-auto-flush: false
|
|
1248
|
+
|
|
1249
|
+
# Disable auto-import from JSONL when it's newer than database
|
|
1250
|
+
# no-auto-import: false
|
|
1251
|
+
|
|
1252
|
+
# Enable JSON output by default
|
|
1253
|
+
# json: false
|
|
1254
|
+
|
|
1255
|
+
# Default actor for audit trails (overridden by BD_ACTOR or --actor)
|
|
1256
|
+
# actor: ""
|
|
1257
|
+
|
|
1258
|
+
# Path to database (overridden by BEADS_DB or --db)
|
|
1259
|
+
# db: ""
|
|
1260
|
+
|
|
1261
|
+
# Auto-start daemon if not running (can also use BEADS_AUTO_START_DAEMON)
|
|
1262
|
+
# auto-start-daemon: true
|
|
1263
|
+
|
|
1264
|
+
# Debounce interval for auto-flush (can also use BEADS_FLUSH_DEBOUNCE)
|
|
1265
|
+
# flush-debounce: "5s"
|
|
1266
|
+
|
|
1267
|
+
# Git branch for beads commits (bd sync will commit to this branch)
|
|
1268
|
+
# IMPORTANT: Set this for team projects so all clones use the same sync branch.
|
|
1269
|
+
# sync-branch: "beads-sync"
|
|
1270
|
+
`;
|
|
1271
|
+
await writeFile5(join9(beadsDir, "config.yaml"), configYaml);
|
|
1272
|
+
const metadata = {
|
|
1273
|
+
database: "beads.db",
|
|
1274
|
+
jsonl_export: "issues.jsonl"
|
|
1275
|
+
};
|
|
1276
|
+
await writeFile5(join9(beadsDir, "metadata.json"), JSON.stringify(metadata, null, 2));
|
|
1277
|
+
const gitignore = `# SQLite databases
|
|
1278
|
+
*.db
|
|
1279
|
+
*.db?*
|
|
1280
|
+
*.db-journal
|
|
1281
|
+
*.db-wal
|
|
1282
|
+
*.db-shm
|
|
1283
|
+
|
|
1284
|
+
# Daemon runtime files
|
|
1285
|
+
daemon.lock
|
|
1286
|
+
daemon.log
|
|
1287
|
+
daemon.pid
|
|
1288
|
+
bd.sock
|
|
1289
|
+
|
|
1290
|
+
# Local version tracking (prevents upgrade notification spam after git ops)
|
|
1291
|
+
.local_version
|
|
1292
|
+
|
|
1293
|
+
# Legacy database files
|
|
1294
|
+
db.sqlite
|
|
1295
|
+
bd.db
|
|
1296
|
+
|
|
1297
|
+
# Merge artifacts (temporary files from 3-way merge)
|
|
1298
|
+
beads.base.jsonl
|
|
1299
|
+
beads.base.meta.json
|
|
1300
|
+
beads.left.jsonl
|
|
1301
|
+
beads.left.meta.json
|
|
1302
|
+
beads.right.jsonl
|
|
1303
|
+
beads.right.meta.json
|
|
1304
|
+
|
|
1305
|
+
# Keep JSONL exports and config (source of truth for git)
|
|
1306
|
+
!issues.jsonl
|
|
1307
|
+
!metadata.json
|
|
1308
|
+
!config.json
|
|
1309
|
+
`;
|
|
1310
|
+
await writeFile5(join9(beadsDir, ".gitignore"), gitignore);
|
|
1311
|
+
await writeFile5(join9(beadsDir, ".local_version"), "0.32.1\n");
|
|
1228
1312
|
const readmeContent = `# Beads - Task Tracking
|
|
1229
1313
|
|
|
1230
1314
|
This directory contains task beads for tracking work items.
|
|
@@ -1235,14 +1319,17 @@ This directory contains task beads for tracking work items.
|
|
|
1235
1319
|
- Use \`/create\` command to create new tasks
|
|
1236
1320
|
- Use \`/finish\` command to complete tasks with quality gates
|
|
1237
1321
|
|
|
1238
|
-
##
|
|
1239
|
-
|
|
1322
|
+
## Automatic Setup
|
|
1323
|
+
This directory was automatically initialized by AIKit for use with OpenCode/Claude Code.
|
|
1324
|
+
No manual setup required - it's ready to use!
|
|
1325
|
+
|
|
1326
|
+
## Beads CLI (Optional)
|
|
1327
|
+
For advanced functionality, you can install the beads CLI globally:
|
|
1240
1328
|
\`\`\`bash
|
|
1241
1329
|
npm install -g beads
|
|
1242
|
-
bd init
|
|
1243
1330
|
\`\`\`
|
|
1244
1331
|
|
|
1245
|
-
|
|
1332
|
+
Then you can use commands like:
|
|
1246
1333
|
- \`bd ready\` - Show available work
|
|
1247
1334
|
- \`bd show <id>\` - View task details
|
|
1248
1335
|
- \`bd update <id> --status in_progress\` - Update task status
|