@able-autonomy/able 0.0.18 → 0.0.19

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 (2) hide show
  1. package/able.ts +6 -1
  2. package/package.json +1 -1
package/able.ts CHANGED
@@ -101,6 +101,11 @@ if (command === 'config') {
101
101
  process.exit(0)
102
102
  }
103
103
  // `bunx` keeps the copy it fetched first; asking for @latest once refreshes it. A host that pins Able runs its pin instead.
104
+ // The version this `able` is: what `bunx` runs here, so `able upgrade` can be checked.
105
+ if (command === '-v' || command === '--version') {
106
+ console.log((await Bun.file(join(import.meta.dir, 'package.json')).json()).version)
107
+ process.exit(0)
108
+ }
104
109
  if (command === 'upgrade') {
105
110
  const { name, version: current } = await Bun.file(join(import.meta.dir, 'package.json')).json()
106
111
  const latest = Bun.spawnSync(['bun', 'info', name, 'version'], { stderr: 'ignore' }).stdout.toString().trim().split('\n').at(-1) ?? ''
@@ -142,7 +147,7 @@ if (delegate) {
142
147
  }
143
148
  if (command !== 'gh') {
144
149
  console.error(
145
- "usage: able gh <gh arguments> run gh as Able's GitHub App\n able sync [--dry-run] file follow-ups and write ended weeks' records\n able config [--json] print the host's able.config.ts\n able init [--list|--remove] sets this project up on this machine (WIP)\n able commit \"<message>\" [<path>…] a pathspec commit after the touched folders' checks\n able push pushes this branch with its tags\n able upgrade makes bunx run the latest published able\n able ws <new|ls|current|refresh|merge|rm|start|stop|status|take|build|attach> workspaces\n able agents <run|scan|load|blocks|checks|classify|propose|report|show|pick> where each agent-file rule belongs",
150
+ "usage: able gh <gh arguments> run gh as Able's GitHub App\n able sync [--dry-run] file follow-ups and write ended weeks' records\n able config [--json] print the host's able.config.ts\n able init [--list|--remove] sets this project up on this machine (WIP)\n able commit \"<message>\" [<path>…] a pathspec commit after the touched folders' checks\n able push pushes this branch with its tags\n able upgrade makes bunx run the latest published able\n able -v prints this able's version\n able ws <new|ls|current|refresh|merge|rm|start|stop|status|take|build|attach> workspaces\n able agents <run|scan|load|blocks|checks|classify|propose|report|show|pick> where each agent-file rule belongs",
146
151
  )
147
152
  process.exit(command ? 1 : 0)
148
153
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@able-autonomy/able",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
4
4
  "description": "Able's command line and the config types a host's able.config.ts uses",
5
5
  "type": "module",
6
6
  "license": "MIT",