@mindfoldhq/trellis 0.6.0-beta.17 → 0.6.0-beta.18
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 +1 -1
- package/dist/commands/channel/adapters/claude.d.ts +7 -16
- package/dist/commands/channel/adapters/claude.d.ts.map +1 -1
- package/dist/commands/channel/adapters/claude.js +19 -25
- package/dist/commands/channel/adapters/claude.js.map +1 -1
- package/dist/commands/channel/adapters/codex.d.ts +5 -1
- package/dist/commands/channel/adapters/codex.d.ts.map +1 -1
- package/dist/commands/channel/adapters/codex.js +8 -15
- package/dist/commands/channel/adapters/codex.js.map +1 -1
- package/dist/commands/channel/adapters/index.d.ts +6 -1
- package/dist/commands/channel/adapters/index.d.ts.map +1 -1
- package/dist/commands/channel/adapters/index.js +12 -6
- package/dist/commands/channel/adapters/index.js.map +1 -1
- package/dist/commands/channel/guard.d.ts +150 -0
- package/dist/commands/channel/guard.d.ts.map +1 -0
- package/dist/commands/channel/guard.js +474 -0
- package/dist/commands/channel/guard.js.map +1 -0
- package/dist/commands/channel/index.d.ts +1 -1
- package/dist/commands/channel/index.d.ts.map +1 -1
- package/dist/commands/channel/index.js +38 -10
- package/dist/commands/channel/index.js.map +1 -1
- package/dist/commands/channel/interrupt.d.ts +10 -0
- package/dist/commands/channel/interrupt.d.ts.map +1 -0
- package/dist/commands/channel/interrupt.js +22 -0
- package/dist/commands/channel/interrupt.js.map +1 -0
- package/dist/commands/channel/messages.d.ts +0 -1
- package/dist/commands/channel/messages.d.ts.map +1 -1
- package/dist/commands/channel/messages.js +2 -6
- package/dist/commands/channel/messages.js.map +1 -1
- package/dist/commands/channel/run.d.ts +0 -1
- package/dist/commands/channel/run.d.ts.map +1 -1
- package/dist/commands/channel/run.js +5 -12
- package/dist/commands/channel/run.js.map +1 -1
- package/dist/commands/channel/send.d.ts +0 -2
- package/dist/commands/channel/send.d.ts.map +1 -1
- package/dist/commands/channel/send.js +0 -2
- package/dist/commands/channel/send.js.map +1 -1
- package/dist/commands/channel/spawn.d.ts +10 -0
- package/dist/commands/channel/spawn.d.ts.map +1 -1
- package/dist/commands/channel/spawn.js +57 -7
- package/dist/commands/channel/spawn.js.map +1 -1
- package/dist/commands/channel/supervisor/idle.d.ts +46 -0
- package/dist/commands/channel/supervisor/idle.d.ts.map +1 -0
- package/dist/commands/channel/supervisor/idle.js +72 -0
- package/dist/commands/channel/supervisor/idle.js.map +1 -0
- package/dist/commands/channel/supervisor/inbox.d.ts +4 -4
- package/dist/commands/channel/supervisor/inbox.d.ts.map +1 -1
- package/dist/commands/channel/supervisor/inbox.js +22 -22
- package/dist/commands/channel/supervisor/inbox.js.map +1 -1
- package/dist/commands/channel/supervisor/shutdown.d.ts +3 -1
- package/dist/commands/channel/supervisor/shutdown.d.ts.map +1 -1
- package/dist/commands/channel/supervisor/shutdown.js +4 -1
- package/dist/commands/channel/supervisor/shutdown.js.map +1 -1
- package/dist/commands/channel/supervisor/turns.d.ts +11 -0
- package/dist/commands/channel/supervisor/turns.d.ts.map +1 -1
- package/dist/commands/channel/supervisor/turns.js +19 -2
- package/dist/commands/channel/supervisor/turns.js.map +1 -1
- package/dist/commands/channel/supervisor.d.ts +6 -0
- package/dist/commands/channel/supervisor.d.ts.map +1 -1
- package/dist/commands/channel/supervisor.js +43 -3
- package/dist/commands/channel/supervisor.js.map +1 -1
- package/dist/commands/channel/wait.d.ts +0 -1
- package/dist/commands/channel/wait.d.ts.map +1 -1
- package/dist/commands/channel/wait.js +0 -1
- package/dist/commands/channel/wait.js.map +1 -1
- package/dist/migrations/manifests/0.5.16.json +9 -0
- package/dist/migrations/manifests/0.6.0-beta.18.json +16 -0
- package/dist/templates/trellis/config.yaml +20 -0
- package/dist/templates/trellis/scripts/common/task_store.py +24 -7
- package/package.json +2 -2
|
@@ -411,7 +411,16 @@ def cmd_archive(args: argparse.Namespace) -> int:
|
|
|
411
411
|
|
|
412
412
|
# Auto-commit unless --no-commit
|
|
413
413
|
if not getattr(args, "no_commit", False):
|
|
414
|
-
_auto_commit_archive(dir_name, repo_root, modified_children)
|
|
414
|
+
if not _auto_commit_archive(dir_name, repo_root, modified_children):
|
|
415
|
+
print(
|
|
416
|
+
colored(
|
|
417
|
+
"Archive moved on disk, but git auto-commit did not complete. "
|
|
418
|
+
"Resolve `git status` before continuing.",
|
|
419
|
+
Colors.RED,
|
|
420
|
+
),
|
|
421
|
+
file=sys.stderr,
|
|
422
|
+
)
|
|
423
|
+
return 1
|
|
415
424
|
|
|
416
425
|
# Return the archive path
|
|
417
426
|
print(f"{DIR_WORKFLOW}/{DIR_TASKS}/{DIR_ARCHIVE}/{year_month}/{dir_name}")
|
|
@@ -428,7 +437,7 @@ def _auto_commit_archive(
|
|
|
428
437
|
task_name: str,
|
|
429
438
|
repo_root: Path,
|
|
430
439
|
modified_children: list[str] | None = None,
|
|
431
|
-
) ->
|
|
440
|
+
) -> bool:
|
|
432
441
|
"""Stage Trellis-owned task paths and commit after archive.
|
|
433
442
|
|
|
434
443
|
Scoped narrowly to the archived task's source + destination paths
|
|
@@ -450,14 +459,21 @@ def _auto_commit_archive(
|
|
|
450
459
|
"[OK] session_auto_commit: false — skipping git stage/commit.",
|
|
451
460
|
file=sys.stderr,
|
|
452
461
|
)
|
|
453
|
-
return
|
|
462
|
+
return True
|
|
463
|
+
|
|
464
|
+
source_rel = f"{DIR_WORKFLOW}/{DIR_TASKS}/{task_name}"
|
|
465
|
+
rc, tracked_out, _ = run_git(
|
|
466
|
+
["ls-files", "--", source_rel],
|
|
467
|
+
cwd=repo_root,
|
|
468
|
+
)
|
|
469
|
+
source_was_tracked = rc == 0 and bool(tracked_out.strip())
|
|
454
470
|
|
|
455
471
|
paths = safe_archive_paths_to_add(
|
|
456
472
|
repo_root, task_name=task_name, modified_children=modified_children
|
|
457
473
|
)
|
|
458
474
|
if not paths:
|
|
459
475
|
print("[OK] No task changes to commit.", file=sys.stderr)
|
|
460
|
-
return
|
|
476
|
+
return True
|
|
461
477
|
|
|
462
478
|
success, _, err = safe_git_add(paths, repo_root)
|
|
463
479
|
if not success:
|
|
@@ -468,7 +484,7 @@ def _auto_commit_archive(
|
|
|
468
484
|
f"[WARN] git add failed: {err.strip() if err else 'unknown error'}",
|
|
469
485
|
file=sys.stderr,
|
|
470
486
|
)
|
|
471
|
-
return
|
|
487
|
+
return not source_was_tracked
|
|
472
488
|
|
|
473
489
|
# Belt-and-suspenders for the phantom-delete bug: `safe_git_add` uses
|
|
474
490
|
# `git add` (no -A) which only stages additions/modifications. The
|
|
@@ -479,7 +495,6 @@ def _auto_commit_archive(
|
|
|
479
495
|
#
|
|
480
496
|
# `--ignore-unmatch` makes this a no-op when the task was never tracked
|
|
481
497
|
# (e.g. archiving a task that lived only in working tree).
|
|
482
|
-
source_rel = f"{DIR_WORKFLOW}/{DIR_TASKS}/{task_name}"
|
|
483
498
|
run_git(
|
|
484
499
|
["rm", "-r", "--cached", "--ignore-unmatch", "--", source_rel],
|
|
485
500
|
cwd=repo_root,
|
|
@@ -491,14 +506,16 @@ def _auto_commit_archive(
|
|
|
491
506
|
)
|
|
492
507
|
if rc == 0:
|
|
493
508
|
print("[OK] No task changes to commit.", file=sys.stderr)
|
|
494
|
-
return
|
|
509
|
+
return True
|
|
495
510
|
|
|
496
511
|
commit_msg = f"chore(task): archive {task_name}"
|
|
497
512
|
rc, _, err = run_git(["commit", "-m", commit_msg], cwd=repo_root)
|
|
498
513
|
if rc == 0:
|
|
499
514
|
print(f"[OK] Auto-committed: {commit_msg}", file=sys.stderr)
|
|
515
|
+
return True
|
|
500
516
|
else:
|
|
501
517
|
print(f"[WARN] Auto-commit failed: {err.strip()}", file=sys.stderr)
|
|
518
|
+
return not source_was_tracked
|
|
502
519
|
|
|
503
520
|
|
|
504
521
|
# =============================================================================
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mindfoldhq/trellis",
|
|
3
|
-
"version": "0.6.0-beta.
|
|
3
|
+
"version": "0.6.0-beta.18",
|
|
4
4
|
"description": "AI capabilities grow like ivy — Trellis provides the structure to guide them along a disciplined path",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"inquirer": "^9.3.7",
|
|
35
35
|
"undici": "^6.21.0",
|
|
36
36
|
"zod": "^4.4.2",
|
|
37
|
-
"@mindfoldhq/trellis-core": "0.6.0-beta.
|
|
37
|
+
"@mindfoldhq/trellis-core": "0.6.0-beta.18"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@eslint/js": "^9.18.0",
|