@tackup/cli 0.0.0-stage → 0.1.0

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.
Files changed (83) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +15 -2
  3. package/dist/builtins/extensions/docs/guides/day-two.md +3 -0
  4. package/dist/builtins/extensions/docs/guides/onboarding-2.md +3 -0
  5. package/dist/builtins/extensions/docs/guides/onboarding-3.md +3 -0
  6. package/dist/builtins/extensions/docs/skills/use-tack-docs/SKILL.md +67 -0
  7. package/dist/builtins/extensions/docs/skills/use-tack-docs/references/declare-docs.md +71 -0
  8. package/dist/builtins/extensions/docs/skills/use-tack-docs/references/docs-in-profiles.md +25 -0
  9. package/dist/builtins/extensions/docs/skills/use-tack-docs/references/docs-maintenance.md +35 -0
  10. package/dist/builtins/extensions/docs/skills/use-tack-docs/references/review.md +34 -0
  11. package/dist/builtins/extensions/docs/skills/write-reader-figures/SKILL.md +66 -0
  12. package/dist/builtins/extensions/docs/skills/write-reader-figures/references/figure-components.md +20 -0
  13. package/dist/builtins/extensions/docs/skills/write-reader-figures/references/figures/architecture-map.md +86 -0
  14. package/dist/builtins/extensions/docs/skills/write-reader-figures/references/figures/chart.md +52 -0
  15. package/dist/builtins/extensions/docs/skills/write-reader-figures/references/figures/figure.md +79 -0
  16. package/dist/builtins/extensions/docs/skills/write-reader-figures/references/figures/file-tree.md +74 -0
  17. package/dist/builtins/extensions/docs/skills/write-reader-figures/references/figures/schema.md +116 -0
  18. package/dist/builtins/extensions/docs/skills/write-reader-figures/references/figures/system.md +81 -0
  19. package/dist/builtins/extensions/docs/skills/write-reader-figures/references/figures/walkthrough.md +45 -0
  20. package/dist/builtins/extensions/docs/skills/write-reader-figures/references/page-components.md +82 -0
  21. package/dist/builtins/extensions/docs/skills/write-reader-figures/references/rules.md +27 -0
  22. package/dist/builtins/extensions/docs/tack.yaml +10 -0
  23. package/dist/builtins/extensions/scripts/guides/day-two.md +3 -0
  24. package/dist/builtins/extensions/scripts/guides/onboarding-2.md +3 -0
  25. package/dist/builtins/extensions/scripts/skills/author-tack-scripts/SKILL.md +48 -0
  26. package/dist/builtins/extensions/scripts/skills/author-tack-scripts/references/run-scripts.md +23 -0
  27. package/dist/builtins/extensions/scripts/skills/author-tack-scripts/references/script-api.md +76 -0
  28. package/dist/builtins/extensions/scripts/skills/author-tack-scripts/references/scripts-in-profiles.md +35 -0
  29. package/dist/builtins/extensions/scripts/skills/author-tack-scripts/references/scripts-in-sources.md +56 -0
  30. package/dist/builtins/extensions/scripts/tack.yaml +10 -0
  31. package/dist/builtins/skills/author-tack-profiles/SKILL.md +68 -0
  32. package/dist/builtins/skills/author-tack-profiles/references/apply.md +33 -0
  33. package/dist/builtins/skills/author-tack-profiles/references/bundles.md +59 -0
  34. package/dist/builtins/skills/author-tack-profiles/references/copy-workflows.md +46 -0
  35. package/dist/builtins/skills/manage-tack-sources/SKILL.md +75 -0
  36. package/dist/builtins/skills/manage-tack-sources/references/catalog-issues.md +38 -0
  37. package/dist/builtins/skills/manage-tack-sources/references/metadata.md +35 -0
  38. package/dist/builtins/skills/manage-tack-sources/references/tack-yaml.md +114 -0
  39. package/dist/builtins/skills/manage-tack-sources/references/worked-source.md +126 -0
  40. package/dist/builtins/skills/prepare-tack-checkout/SKILL.md +52 -0
  41. package/dist/builtins/skills/use-tack/SKILL.md +65 -0
  42. package/dist/builtins/skills/use-tack/references/agent-instructions.md +38 -0
  43. package/dist/builtins/skills/use-tack/references/day-two.md +35 -0
  44. package/dist/builtins/skills/use-tack/references/explore.md +13 -0
  45. package/dist/builtins/skills/use-tack/references/imports.md +30 -0
  46. package/dist/builtins/skills/use-tack/references/maintenance.md +51 -0
  47. package/dist/builtins/skills/use-tack/references/onboarding-2.md +41 -0
  48. package/dist/builtins/skills/use-tack/references/onboarding-3.md +29 -0
  49. package/dist/builtins/skills/use-tack/references/onboarding.md +54 -0
  50. package/dist/builtins/skills/use-tack/references/output.md +15 -0
  51. package/dist/builtins/skills/use-tack/references/selection.md +61 -0
  52. package/dist/builtins/skills/use-tack/references/setup.md +69 -0
  53. package/dist/builtins/tack.yaml +10 -0
  54. package/dist/bundle-support-ZGTM5CTZ.js +16 -0
  55. package/dist/chunk-CFUDY2NO.js +1791 -0
  56. package/dist/chunk-CRQMJGMU.js +225 -0
  57. package/dist/chunk-DCX5T7CG.js +281 -0
  58. package/dist/chunk-EZ5C7B2M.js +28 -0
  59. package/dist/chunk-H4AG4WIV.js +52 -0
  60. package/dist/chunk-I5RMMV2Y.js +18013 -0
  61. package/dist/chunk-JL3E32X5.js +92 -0
  62. package/dist/chunk-MR5PTCYF.js +26 -0
  63. package/dist/chunk-PHQL7OBB.js +162 -0
  64. package/dist/chunk-QQBCYPJZ.js +5733 -0
  65. package/dist/chunk-T6JAU547.js +12401 -0
  66. package/dist/chunk-W7GHLGII.js +16 -0
  67. package/dist/chunk-XARHV5M4.js +56 -0
  68. package/dist/chunk-XZH2XPII.js +1017 -0
  69. package/dist/chunk-ZT6BO7LG.js +36671 -0
  70. package/dist/corpus-effects-YWG5VVHJ.js +12069 -0
  71. package/dist/elk.bundled-EVXDSFFG.js +94125 -0
  72. package/dist/main-JHULX3QY.js +65517 -0
  73. package/dist/main.js +17 -0
  74. package/dist/reader/visuals.tsx +368 -0
  75. package/dist/script.d.ts +133 -0
  76. package/dist/script.js +90 -0
  77. package/dist/server-XF7NSYRQ.js +308 -0
  78. package/dist/src-DZKPD6VY.js +1871 -0
  79. package/dist/src-TC3RTKIS.js +1126 -0
  80. package/dist/tack-env.d.ts +137 -0
  81. package/dist/third-party-licenses.txt +2467 -0
  82. package/dist/worker-ZFY6P7X5.js +24246 -0
  83. package/package.json +31 -4
@@ -0,0 +1,61 @@
1
+ # Select and deliver resources
2
+
3
+ Selection defaults, picks, `sync` and the adapters that deliver each kind.
4
+
5
+ Replace uppercase arguments with values obtained from inspection. Examples use the installed `tack`; a source run swaps in the form `use-tack` gives. Read the text view; add `--json` only when a program parses a stable payload.
6
+
7
+ ## Catalog and selection defaults
8
+
9
+ Selection defaults come from resource metadata, which the `manage-tack-sources` skill owns: project activation defaults to `default`, and user activation to `opt-in` unless a skill sets `user-activation: default`. Context items carry no metadata and are always opt-in. Removing a choice restores what applies without it: an enabled profile that names the resource, or else the metadata policy. Dependencies are declared per resource in `metadata.tack.dependencies`; a resource may depend on its own source, and on another source only when its source lists that source's label in `depends-on`. A required dependency is selected with its requester even when it is opt-in; excluding it blocks the requester.
10
+
11
+ `catalog` returns `resources`, `issues` and `complete`; `complete: false` means an issue kept something out, so an incomplete catalog never proves absence. `catalog --kind KIND` scopes it to one kind, such as `skill`, `command` or `context`, and `--details` adds each resource's complete frontmatter and its `declaredPath`, the `tack.yaml` entry that found it. `source` lists each healthy source's `declarations` with their patterns, resource counts and problems. `source`, `status` and `doctor` report a healthy source that declares nothing with the warning `source-declares-no-resources`. A warning changes no exit code. `source` marks a source whose every declaration has a problem and finds no resource as broken, with the warning `source-loads-nothing` and a partial outcome. Reading these facts is operating Tack; changing a declaration is `manage-tack-sources`.
12
+
13
+ The bare read parents `source`, `project`, `pick`, `profile`, `adapter` and `extension` also accept `list` and `ls`. `status` and `catalog` do not.
14
+
15
+ ## Select and deliver resources
16
+
17
+ ```sh
18
+ tack pick include SKILL --project PROJECT
19
+ tack pick include COMMAND --kind command --project PROJECT
20
+ tack pick exclude SOURCE:SKILL --user
21
+ tack pick --project PROJECT
22
+ tack pick remove SKILL --project PROJECT
23
+ tack sync --project PROJECT
24
+ tack sync --project PROJECT --apply
25
+ tack status --project PROJECT
26
+ ```
27
+
28
+ A choice reference is `name` or `source:name`; use `--kind` when kinds clash. The same kind and name in two sources is a name clash, not an error: both resources load, a bare reference to the name fails and lists the exact command for each candidate. An explicit `pick include SOURCE:NAME` wins over a same-name skill that is only selected by default, so one include resolves the clash. If two default-activated skills share a name and neither is included, or both are, neither is delivered until one is excluded with `pick exclude SOURCE:NAME`. `status` and `sync` both report that case as a `selection-collision` diagnostic whose message names that command for each candidate, and a failed reference keeps `--project` or `--user` in every command it suggests. New picks store the source registration ID, kind, name and decision. Use exactly one of `--project PROJECT` or `--user` for choice mutations. Removing a choice leaves the enabled profiles and the metadata to decide, including opt-in user activation when `user-activation` is omitted. Project choices cannot suppress a global skill, one the user namespace selects and links at user level. `pick exclude --project` refuses such a resource with `project-exclude-refused` and records nothing; its Next names `pick exclude SOURCE:NAME --kind KIND --user`, which turns the resource off everywhere. `tack explore` refuses the same exclude in its preview and before it saves any staged change. An exclude recorded before the user namespace linked the resource stays, and `sync` and `status` warn about it with `project-exclude-linked-for-user` and the same Next command. Inspect `status --user` when that explains unexpected availability.
29
+
30
+ Every pick stores its source, so there is no pick without one: a bare name that matches several sources fails and lists the command for each candidate. `pick remove NAME` or `pick remove SOURCE:NAME` removes a stored pick, with `--kind` when kinds clash.
31
+
32
+ ## Profiles on and off
33
+
34
+ `tack profile` lists the declared profiles by SOURCE:PROFILE, with where each is enabled or applied. Turn one on for a project or the user with `tack profile enable SOURCE:PROFILE --project PROJECT` (or `--user`), and off with `tack profile disable`. Both write at once and change no pick; `tack sync` then previews the links. Selection decides in order: an exclude, an include, a member of an enabled profile (whatever its activation or project restriction), then the default. A member wins over a default-activated twin of its name, and an include of a twin wins over the member. Only members win over a twin: a dependency that a member requires does not, so it can collide with a default twin, which an exclude of the twin or an include of the dependency settles. A built-in skill is never replaced: a member of its name is left out, and enable marks it.
35
+
36
+ Every sync reads the profile file as it is then, so a `git pull` that edits it reaches the next preview. When a profile does not fully resolve, sync and status, and a `project refresh` that plans docs mounts, warn with `profile-layer-unresolved`, which says why and names the `tack check` and the `tack profile disable` to run, and doctor's profiles check fails with the same one as its next. A broken entry beside it in `profiles:` does not affect it. A profile that cannot be read brings nothing, and sync removes the links only it brought. A docs mount is kept while its source or folder cannot be read. Members that still resolve stay selected. Members of two profiles that share a name collide as `selection-collision`, naming both profiles. `profile-layer-overridden` notes a member that an exclude keeps out. Docs members attach while a project's profile is on; a user profile skips them, and while the docs extension is off they wait unused. Enable writes nothing and refuses a profile that does not resolve; enable and disable refuse a fixed project or user with `profile-fixed-context`. Both mark members that collide once the change is made, and name the resources behind each new collision. Disable takes the registration ID in place of the label of a source that is gone or does not read, or the folder name `status` shows for it; use the ID too when a reference names several enabled profiles (`profile-layer-ambiguous`).
37
+
38
+ `status` shows each enabled profile and, where one is on, what selects each resource. Enabling lists the includes that equal a member, with the `pick remove` for each: redundant while the profile is on, and each keeps its member afterwards.
39
+
40
+ `pick` returns `{ "kind": "choices", "choices": [...] }`, with `profileLayers` when a profile is enabled, and `adapter` returns `{ "kind": "adapters", "enabledAdapters": [...] }`. `pick include`, `pick exclude` and `pick remove` return `choice-change` and `choice-removal` payloads. `adapter enable` returns an `adapter-enablement-plan`, and with `--apply` an `adapter-enablement-application`; each holds the sync of every target limited to the named adapters.
41
+
42
+ `tack sync --project PROJECT` previews without writing. `sync --include-optional` adds optional dependency edges; it does not select every opt-in skill; inspect the result with `status --include-optional`. `--adapter ID` (`claude`, `cline`, `codex`, `copilot`, `cursor`, `gemini`, `opencode` or `pi`) limits reconciliation to that enabled adapter; repeat it to name several. Sync refuses an adapter that is not enabled with `adapter-not-enabled` and writes nothing: run `tack adapter enable ID`, then `--apply`, which links it on every target, so later syncs keep its links. `--require-capability command-links` blocks every plan unit whose adapter cannot link commands. `--source SOURCE` (a label, or a registration ID) plans only that source's links, the sources skill of each namespace that lists the source or holds its links, and the warnings that concern it; every other link stays as it is, and a name it shares with another source still collides. A source no namespace selects plans nothing. With no enabled adapter, sync reports `no-adapters-enabled` and delivers nothing. A project does not link a skill or command that the same adapter links for the user, so agents in that project list it once. The plan unit names it in `linkedForUser`, the text preview shows it as `skip … linked for the user`, and a project link made before is removed with the reason `linked-for-user`; `status` lists it as undelivered with that reason. The plan decides from the selection, so removing the user pick links it into the project again on the next project sync. A project resource of another source with the same name is still linked. Each sync also writes, in Tack's state, a skill that lists the sources the namespace links: one `tack-sources` per project, and `tack-user-sources` for the user. For each source with a linked skill or command, it gives its description, real path, maintainers and the `guidance` of its `tack.yaml`, so an agent reads it before it reads, uses, edits or adds a linked resource. A project's skill leaves out a source whose resources the project leaves to the user's link. Sync links it like a selected skill into every enabled adapter and lists it in the plan's `sourcesSkills` with its state: `current`, `stale` or `missing`. `--apply` rewrites a stale or missing copy before it links it. Never edit it: the next sync rewrites it. `status` reports a copy that is stale or missing with `sources-skill-stale`, and its Next is the sync that rewrites it. A source skill with either name is quarantined with `skill-name-reserved`. Apply a preview with the flags that made it: `--apply` alone widens an `--adapter`, `--include-optional` or `--source` preview to everything. The plan's `options` echoes the `--adapter`, `--require-capability`, `--include-optional` and `--source` it was made with (absent when none was given).
43
+
44
+ | Adapter | User skills | User commands | Project skills | Project commands |
45
+ | ---------- | --------------------------- | ------------------------------------- | ------------------ | ------------------------------- |
46
+ | `claude` | `~/.claude/skills` | not delivered | `.claude/skills` | not delivered |
47
+ | `cline` | `~/.cline/skills` | `~/Documents/Cline/Workflows/NAME.md` | `.cline/skills` | `.clinerules/workflows/NAME.md` |
48
+ | `codex` | `~/.agents/skills` | not delivered | `.agents/skills` | not delivered |
49
+ | `copilot` | `~/.copilot/skills` | not delivered | `.github/skills` | not delivered |
50
+ | `cursor` | `~/.cursor/skills` | `~/.cursor/commands/NAME.md` | `.cursor/skills` | `.cursor/commands/NAME.md` |
51
+ | `gemini` | `~/.gemini/skills` | not delivered | `.gemini/skills` | not delivered |
52
+ | `opencode` | `~/.config/opencode/skills` | `~/.config/opencode/commands/NAME.md` | `.opencode/skills` | `.opencode/commands/NAME.md` |
53
+ | `pi` | `~/.pi/agent/skills` | `~/.pi/agent/prompts/NAME.md` | `.pi/skills` | `.pi/prompts/NAME.md` |
54
+
55
+ `copilot` is GitHub Copilot CLI and `gemini` is Gemini CLI. Project paths are relative to each project root. Pi calls a command a prompt template and Cline a workflow; Tack links the same Markdown file and translates nothing, so arguments and frontmatter mean what each agent makes of them. Cline runs a linked command as `/NAME.md`, extension included. Copilot CLI and Gemini CLI get no commands: Copilot CLI reads Markdown commands only from Claude Code's `.claude/commands`, and Gemini CLI reads commands only as TOML files. Tack uses only these standard folders: it ignores `XDG_CONFIG_HOME` and `OPENCODE_CONFIG_DIR` for OpenCode, `PI_CODING_AGENT_DIR` for Pi, `COPILOT_HOME` for Copilot CLI, `GEMINI_CLI_HOME` for Gemini CLI and `CLINE_DIR` for Cline. Pi reads a project's `.pi` folders from the folder it starts in, so start it at the project root, and loads them only once the project is trusted. Several agents read other agents' folders too: Cursor and OpenCode read `.claude/skills` and `.agents/skills` (Cursor the first only with its third-party configs setting on); Pi, Gemini CLI and Copilot CLI read `.agents/skills`; Copilot CLI and Cline also read `.claude/skills`. They list a skill reached through several folders once, though Gemini CLI warns of a conflict when the `codex` and `gemini` adapters both link it; `adapter disable` removes only that adapter's links. Zed, Goose and Amp read `.agents/skills`, so the `codex` adapter reaches them. An open session may need a restart, or `/reload` in Pi, to see new links. Context has no delivery adapter yet; `status` reports such selected resources as undelivered, and the sync text view says which agents a selected command or context does not reach. Delivering a resource makes it discoverable; agent loading behavior is separate. `status --project PROJECT --details` also prints the project's `.gitignore` lines: one per link Tack keeps, from the repository root, without a trailing `/`.
56
+
57
+ Choices accept `skill`, `command` and `context`. Every adapter links skills, Cline, Cursor, OpenCode and Pi also link commands, and context has no delivery adapter yet.
58
+
59
+ ## Selectors in detail
60
+
61
+ A bare `sync`, `status`, `state clean`, `state clean --pending` or `project refresh` selects the project containing the current directory or `--cwd PATH`, with its active roots and pending removals (`project refresh` also finds a registered project through the worktree's Git directory). For `project refresh`, `--all` selects every project only. A bare request names the containing root it resolved. The `use-tack` skill gives the rules for a request outside a project and for `--all`.
@@ -0,0 +1,69 @@
1
+ # Set up and upgrade Tack
2
+
3
+ Setting up a machine, its sources and projects, upgrading Tack and running a Tack checkout. The `use-tack` skill owns the output rule, the executable, state and scope.
4
+
5
+ Replace uppercase arguments with values obtained from inspection. Examples use the installed `tack`; a source run swaps in the form `use-tack` gives. Read the text view; add `--json` only when a program parses a stable payload.
6
+
7
+ ## Set up Tack and its built-in skills
8
+
9
+ The operator installs Tack with `npm install --global @tackup/cli` (Node 22.23 or later), or with `bun add --global @tackup/cli` and runs it with `bun --bun`. The package manager owns the executable and its upgrades. On first use Tack copies its built-in skills into `~/.tack/builtins/<version>/` (`TACK_BUILTINS_DIR` moves it; `--state-dir` never does), so agent links never point into the package manager's folder. After a sync, Tack removes older copies that no link of the state uses, keeping the newest older one for other states.
10
+
11
+ Tack ships `use-tack`, `manage-tack-sources`, `author-tack-profiles` and `prepare-tack-checkout` through a built-in source, visible in `source` and `catalog` without registration. An extension ships its skills through a built-in source of its own, in the catalog while the extension is on: `tack extension enable ID` links them at once, and `tack extension disable ID` unlinks them. Built-in skills are locked in `tack explore` for both `--user` and `--project`. `pick include`, `pick exclude` and `pick remove` refuse them with `builtin-skill-locked`. Built-in skills are always delivered at user scope: `sync --user --apply` links each one once per user into the user skill directory of every enabled adapter, such as `~/.claude/skills`. Tack needs them, so they cannot be opted out. After an upgrade, `tack init` relinks them to the new version.
12
+
13
+ Set up a machine. `init` writes at once and has no `--apply`:
14
+
15
+ ```sh
16
+ tack init
17
+ tack init --adapter claude --adapter cursor # these agents instead of the detected ones
18
+ ```
19
+
20
+ `init` plans, then applies, in order: the state and its `.env` when absent (it keeps an existing state, and a state this release cannot read fails it before anything is planned); the adapters to enable, which are the agents whose home exists (`claude` from `~/.claude`, `cline` from `~/.cline` or `~/Documents/Cline`, `codex` from `~/.codex` or `~/.agents`, `copilot` from `~/.copilot`, `cursor` from `~/.cursor`, `gemini` from `~/.gemini`, `opencode` from `~/.config/opencode`, `pi` from `~/.pi`) unless `--adapter` names them, never disabling one; and the plan `sync --user` makes once they are enabled, which on a new machine links the built-in skills. It also lists, as information, the hand-made entries in those agents' user skill and command folders: files, folders and links Tack has no record of. It leaves them untouched; one at a built-in's path is that link's `foreign-destination` conflict, and everything else still applies. It creates the state when absent, then plans and, under one writer lock, enables the adapters and applies that plan. Its view says what it created, enabled, linked and removed, with every link action. On a set-up machine it writes nothing and says so, so rerun it after every upgrade. It never touches sources, projects or picks.
21
+
22
+ A first `init`, the one that creates the state, names `tack guide onboarding` first under Next. With no agent home found and no `--adapter`, `init` sets up the state only and is partial with `agent-home-not-found`; its Next then names `tack init --adapter claude`. Its JSON is stable: `plan` is an `init-plan` with `state` (`create` or `exists`), `adapters` (`enabled`, `toEnable`, `detection` and `source`), `user` (the `sync-plan` of `sync --user`) and `handMade`; `applied` is an `init-application` with `state` (`created` or `existed`), `adaptersEnabled` and `user` (the `sync-application`). Both are always present.
23
+
24
+ `tack guide` lists the guides of the running Tack, and `tack guide TOPIC` prints one as it ships: `onboarding`, `agent-instructions` or `day-two`. A guide longer than an agent tool prints whole comes in parts, `onboarding-2` after `onboarding`, and each part ends with the command for the next. It reads no state, needs no setup and writes nothing, so it works before `init`. A topic it does not have fails with `guide-topic-unknown`.
25
+
26
+ `--help`, `--version` and `doctor` work before Tack is set up and change nothing.
27
+
28
+ ## Set up sources and projects
29
+
30
+ ```sh
31
+ tack check /absolute/path/to/source
32
+ tack init # if the machine is not set up
33
+ tack source add /absolute/path/to/source # preview a source that has tack.yaml
34
+ tack source add /absolute/path/to/source --apply # register and link it
35
+ tack source add /absolute/path/to/skills --config '{"version": 1, "name": "skills", "skills": [{"path": "."}]}' # preview its tack.yaml
36
+ tack guide tack-yaml # every key a tack.yaml takes
37
+ tack project add PROJECT --repository-cwd /absolute/path/to/repository # preview the project and its links
38
+ tack project add PROJECT --repository-cwd /absolute/path/to/repository --apply # register and link it
39
+ tack catalog --details
40
+ ```
41
+
42
+ `source add` previews the source's check and the links its `--apply` makes after registering: the source's default skills and commands in every registered project and for the user, as `tack sync --all --source SOURCE` plans them, with the sources skill of each namespace that lists the source. It changes no other source's links. A name its resource shares with another source's selected resource is a `selection-collision`, and with no agent enabled it links nothing and reports `no-adapters-enabled`; either makes it partial, as sync does, and the source stays registered. On a source registered already, `--apply` delivers what is missing.
43
+
44
+ `tack state init` creates state and an operator-owned `.env` without overwriting existing files, and nothing else; `init` uses it. Without state, the first `source add`, `project add` or other registration initializes the default state and enables the agents found in the home, and its `state-initialized` note names them; run `tack init` to link the built-in skills too. Projects are Git repositories; registration records the repository and its reachable non-bare worktrees. `project add` previews the registration (anchor and roots), lists, as information, the hand-made entries in the enabled agents' project skill and command folders of every worktree, and shows under Delivery the links and docs mounts its `--apply` makes, as `tack sync --project PROJECT` plans them. `--apply` registers the project, then syncs it; with no agent enabled it is partial with `no-adapters-enabled`, as sync is, and the project stays registered. `project refresh` lists the hand-made entries for the worktrees it adds. Both leave them untouched. `tack adapter enable claude codex cursor` previews adding adapters to the enabled list and linking them on every target; `--apply` enables them, then links. It never removes one. Use `adapter disable` to remove an adapter and its managed links.
45
+
46
+ Extensions add a tool to Tack per machine: `tack extension` lists the extensions, such as `scripts`: which ones are on, the package each needs, the registered sources that need it, and its commands and skills. `tack extension enable ID...` switches them on together or not at all and links their built-in skills at once, changing no other link, also under a fixed user profile; a link it cannot make warns with `extension-skill-not-linked`, and the same command tries again. On an npm or Bun install it refuses with `extension-package-missing` or `extension-package-version-mismatch` until the package it needs is installed beside Tack, and names that install command. A pnpm or Volta global install cannot hold that package: the refusal names the manager in `details.installer`, and the npm command that installs Tack and the package together. `tack extension disable ID...` unlinks their built-in skills, then switches it off at once, and keeps its other links and its data; a link it cannot remove leaves it on with `extension-skill-not-unlinked`. When a registered source declares what an off extension handles, `sync`, `status`, `profile enable`, `profile apply` and doctor warn with `extension-needed`, `source add` and `catalog` print it as info, and `init` lists it under `extensionsNeeded` with the enable command; ask the operator before turning one on, since `init` never does. While an extension is off, `tack --help` and completion leave out its commands, and typing one, or a flag it adds, fails with `extension-disabled` and names `tack extension enable ID`. Without state, none is on. An off extension keeps what it made and leaves it as it is; the skill each extension brings says what it pauses while off.
47
+
48
+ Move a registered source with `tack source relocate SOURCE_ID /absolute/path/to/new/location`. This preserves its registration identity. Reconcile affected links afterward.
49
+
50
+ Retire a source with `tack source remove SOURCE` (a label, or the registration ID of a source whose directory is gone) and a whole project with `tack project remove PROJECT`. Both preview first. The source preview lists its links everywhere, the picks and enabled profiles that go, the enabled profiles of other sources that stay incomplete, the fixed profile applications it drops or leaves with unresolved members, and the sources whose `depends-on` still names it. The project preview lists its links, picks, enabled profiles and fixed profile application. `--apply` removes them and the registration. Neither touches the source directory or the worktrees. Built-in and bundle-provided sources cannot be removed. Run them only when the operator asks to retire that source or project.
51
+
52
+ ## Upgrade Tack
53
+
54
+ ```sh
55
+ tack upgrade
56
+ tack upgrade status
57
+ ```
58
+
59
+ Tack never upgrades itself. `upgrade` and `upgrade status` are the same read-only report: the running version, how Tack was installed (`npm`, `bun` or `source`) and the command that upgrades it, such as `npm install --global @tackup/cli@latest`, with the payload package of each extension that is on; a source checkout upgrades by pulling. Running the command is the operator's decision. Afterwards, `tack init` relinks the built-in skills to the new version.
60
+
61
+ Run it only when the operator asks, or when a command the task needs is missing and the operator agrees.
62
+
63
+ ## State format
64
+
65
+ This release reads and writes state format 1 only, under the envelope key `format`. `state-format-unsupported` means a newer Tack wrote the state file: `tack upgrade` names the command that installs it.
66
+
67
+ ## Run a Tack checkout
68
+
69
+ Source runs of a Tack checkout (branch, clone, worktree) use `bun run --cwd <checkout> tack ...` with an isolated `TACK_STATE_DIR` or `--state-dir`, so testing Tack itself never touches the installed Tack's state. State defaults to `~/.tack`; `TACK_STATE_DIR` selects another location and a root `--state-dir PATH` wins over it. Keep one state directory throughout a workflow.
@@ -0,0 +1,10 @@
1
+ version: 1
2
+ name: tack
3
+ description: The skills that ship with Tack, for operating it and authoring sources and profiles.
4
+ guidance:
5
+ - when: Before you edit any built-in skill.
6
+ body: |
7
+ Do not edit these skills. They ship with Tack, and the next upgrade replaces them. Report a
8
+ wrong or missing instruction to the operator instead.
9
+ skills:
10
+ - path: skills
@@ -0,0 +1,16 @@
1
+ import { createRequire as tackCreateRequire } from "node:module"; const require = tackCreateRequire(import.meta.url);
2
+ import {
3
+ BundleSupportEntrySchema,
4
+ BundleSupportSchema,
5
+ inspectBundleSupport,
6
+ inspectReaderBundleSupport
7
+ } from "./chunk-DCX5T7CG.js";
8
+ import "./chunk-T6JAU547.js";
9
+ import "./chunk-ZT6BO7LG.js";
10
+ import "./chunk-XARHV5M4.js";
11
+ export {
12
+ BundleSupportEntrySchema,
13
+ BundleSupportSchema,
14
+ inspectBundleSupport,
15
+ inspectReaderBundleSupport
16
+ };