Files
software-mansion__argent/packages/argent-cli/package.json
Jakub Piasecki d4a712c401 refactor(gesture): rename the momentum-free flag to momentum (#732)
`settle: true` collided with the runner's other `settle` — waiting for
the tree to quiesce — which is the very thing a swipe step does after
every dispatch, whichever way the flag is set. One sentence of the flow
skill used both senses at once.

This names the physics instead: `momentum: false` is the momentum-free
gesture, and the natural fling is the default the prose already
described.

### Renamed

| surface | before | after |
| --- | --- | --- |
| `swipe` flow directive | `settle: true` | `momentum: false` |
| `gesture-swipe` param | `settle` | `momentum` |
| `gesture-drag` param | `settle` | `momentum` |

The directive passes the flag straight through to the tools, so all
three move together. `momentum: true` is the default and normalizes to
absent, mirroring what `settle: false` did — parse/serialize stay exact
inverses.

### Also

- Recording summary label `(settle)` → `(momentum-free)`
- Internal constants → `MOMENTUM_FREE_EASE_EXPONENT`,
`MOMENTUM_FREE_MIN_STEPS`
- `flow-run` tool description and `argent-create-flow` skill updated

### Testing

`tsc -b`, eslint (`--max-warnings 0`) and prettier clean; `test/flows` +
`test/tools` pass 671/671, including a new case covering the
legacy-spelling rejection.
2026-08-28 09:55:47 +02:00

29 lines
848 B
JSON

{
"private": true,
"name": "@argent/cli",
"version": "0.22.1",
"description": "Shell CLI commands for argent: tools, run, server, enable, disable, flags",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "rm -rf dist tsconfig.tsbuildinfo && tsc",
"test": "vitest run --passWithNoTests",
"typecheck:tests": "tsc --noEmit -p tsconfig.test.json"
},
"dependencies": {
"@argent/configuration-core": "file:../configuration-core",
"@argent/registry": "file:../registry",
"@argent/telemetry": "file:../telemetry",
"@argent/tools-client": "file:../argent-tools-client",
"@clack/prompts": "^1.6.0",
"picocolors": "^1.1.1"
},
"devDependencies": {
"@types/node": "^26.0.1",
"typescript": "^6.0.3",
"vitest": "^4.1.9",
"zod": "^4.0.0"
}
}