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