Farming 2.2.2
Farming v2.2.2
This release continues the Farming Code polish after v2.2.1, with a focus on safer poetic startup tokens, workspace/file interaction refinements, QR sharing, and shell prompt preservation.
Compared with v2.2.1, Farming now generates Chinese, Japan-inspired, and India/Tagore-inspired 5-7-5 startup tokens from larger source-specific corpora while keeping conservative entropy checks. The release also includes editor state fixes, QR share popovers, improved workspace launch controls, and shell prompt handling improvements.
Highlights
- Poetic startup tokens are safer and more source-aware: Chinese, Japanese, and India/Tagore token modes now use generated source wordlists with quality scores, source anchors, conservative entropy checks, and reduced cross-source marker leakage.
- Token quality is measurable:
scripts/evaluate-poetic-tokens.jssamples generated tokens, checks entropy, 5-7-5 shape, uniqueness, source marker coverage, and repeated strong imagery. - Workspace launch is smoother: Farming Code has a richer new-agent launch submenu and larger workspace/path suggestion coverage.
- Editor state survives common file operations better: open editor state and working copies are preserved more consistently across save, navigation, and project file interactions.
- QR sharing is easier to use: share tickets can be surfaced through a QR popover with clearer copy handling.
- Shell prompts are preserved more carefully: shell busy integration avoids clobbering user prompt setup in interactive shells.
- Packaged terminal startup is safer: packaged CLI releases now start the native PTY host through a minimal environment and avoid logging the parent process environment while launching terminals.
Fixes
- Fixed India/Tagore-style marker words such as
心花,心弦,爱人, and诗歌leaking into Chinese or Japanese token openings. - Fixed feeling-oriented words being treated as generic landscape imagery in generated poetic tokens.
- Fixed dead source-specific token templates that reduced entropy and reintroduced noisy words when enabled experimentally.
- Fixed editor working-copy state around save and tab navigation.
- Fixed shell prompt initialization so Farming's shell hooks preserve the user's prompt setup.
- Fixed packaged CLI native PTY host startup on macOS, where the packaged binary could treat the old host-mode argument as a module path.
Features and Improvements
- Added generated poetic source wordlists for China, Japan-inspired, and India/Tagore-inspired token modes.
- Added source word quality metadata and extraction heuristics to
scripts/generate-poem-wordlists.js. - Added
scripts/evaluate-poetic-tokens.jsas a release/diagnostic quality gate for poetic tokens. - Added QR share ticket backend and UI coverage.
- Added focused workspace/file interaction and path suggestion tests.
Change Map
backend/haiku-token.js,backend/data/poetic-word-sources/*: source-aware poetic token generation and entropy accounting.scripts/generate-poem-wordlists.js,scripts/evaluate-poetic-tokens.js: corpus extraction and token quality evaluation.backend/tests/test-haiku-token.js,backend/tests/test-auth-token-file.js: token format, source marker, and entropy coverage.src/components/code/ShareQrButton.tsx,backend/qr-share-tickets.js: QR share ticket flow.src/components/files/*,src/lib/workspace-*,backend/workspace-file-service.js: workspace file/editor state refinements.backend/shell-busy-integration.js,backend/local-session-engine.js: shell prompt preservation.backend/native-pty-host-client.js: packaged native PTY host launch hardening.
Notes
- GitHub Release notes for this version come from
release-notes/v2.2.2.md. - The package version, Git tag
v2.2.2, and release note filename must stay aligned. - No manual configuration migration is expected.
- Existing
~/.farming/.session-tokenand~/.farming/settings.jsonshould continue to be reused across upgrades. - No intentional production dependency, native PTY asset, runtime file, or install script removal is part of this release.
- macOS CLI artifacts are still ad-hoc signed in this release. Depending on local security settings, the first run may require a manual allow step before the packaged smoke or normal launch succeeds. Developer ID signing and notarization remain follow-up release hardening work.
Install / Upgrade
Download the matching asset from GitHub Releases:
| Platform | Asset |
|---|---|
| macOS Apple Silicon | farming_2.2.2_darwin_arm64 |
| macOS Intel | farming_2.2.2_darwin_amd64 |
| Linux x64 | farming_2.2.2_linux_amd64 or farming-2.2.2.tar.gz |
| Linux ARM64 | farming_2.2.2_linux_arm64 |
On older Linux hosts that need the bundled Node modules and glibc runtime, prefer the app bundle tarball: farming-2.2.2.tar.gz.
On macOS, if the downloaded CLI is blocked on first launch, allow it once in the system security prompt/settings, then rerun the command.