@ium/tfy-cli 0.1.0-preview.0 → 0.1.0-preview.1
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 +7 -3
- package/package.json +1 -1
- package/scripts/install.js +7 -0
package/README.md
CHANGED
|
@@ -18,8 +18,10 @@ Name mapping:
|
|
|
18
18
|
|
|
19
19
|
TFY uses two public install channels only:
|
|
20
20
|
|
|
21
|
-
- Stable channel: `@ium/tfy-cli` resolves to the most tested release through the npm `latest` dist-tag.
|
|
22
|
-
- Public-test channel: `@ium/tfy-cli@preview` resolves to the newest public testing build with current development work included.
|
|
21
|
+
- Stable channel: `@ium/tfy-cli` resolves to the most tested release through the npm `latest` dist-tag, but only after the first stable release exists.
|
|
22
|
+
- Public-test channel: `@ium/tfy-cli@preview` resolves to the newest public testing build with current development work included. Use this explicit `@preview` form while TFY has no stable release.
|
|
23
|
+
|
|
24
|
+
See the repository `docs/RELEASE_READINESS.md` for the canonical npm dist-tag cleanup and verification checklist.
|
|
23
25
|
|
|
24
26
|
Exact versions remain installable with standard npm syntax, for example `@ium/tfy-cli@0.1.1` or `@ium/tfy-cli@0.1.1-preview.0`; npm version installs use `@<version>`, not `/v<version>`.
|
|
25
27
|
|
|
@@ -41,6 +43,8 @@ This is not GA/production-ready. TFY does not claim private Codex hook intercept
|
|
|
41
43
|
|
|
42
44
|
The installer downloads from the matching GitHub Release tag and verifies the `.sha256` file before installing. Preview versions keep the full preview tag, for example `v0.1.1-preview.0`, while release asset names use the base version, for example `tfy-0.1.1-linux-x86_64.tar.gz`.
|
|
43
45
|
|
|
46
|
+
After a successful install, npm prints opt-in human setup guidance only. It does **not** edit `.bashrc`, `.zshrc`, fish config, or any other shell startup file. On supported Linux bash, run `tfy setup --human` to dry-run the one-time hook install, or `tfy setup --human --apply` to enable auto-activation only for trusted repos that have a TFY marker from `tfy start --human`.
|
|
47
|
+
|
|
44
48
|
|
|
45
49
|
## Publishing note
|
|
46
50
|
|
|
@@ -51,4 +55,4 @@ node scripts/npm-publish-plan.js --version 0.1.1-preview.0 --channel preview --s
|
|
|
51
55
|
node scripts/npm-publish-plan.js --version 0.1.1 --channel stable --source-ref main
|
|
52
56
|
```
|
|
53
57
|
|
|
54
|
-
The helper validates the channel/version/source metadata and prints the exact `npm publish` command; it does not publish.
|
|
58
|
+
The helper validates the channel/version/source metadata and prints the exact `npm publish` command; it does not publish. Preview publishes must keep using `--tag preview`; `latest` remains stable-only.
|
package/package.json
CHANGED
package/scripts/install.js
CHANGED
|
@@ -19,6 +19,10 @@ function log(message) {
|
|
|
19
19
|
process.stderr.write(`[tfy installer] ${message}\n`);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
function logHumanOptInGuidance() {
|
|
23
|
+
log('human auto-activation is opt-in. To enable it once for trusted TFY-marked repos: tfy setup --human --apply');
|
|
24
|
+
}
|
|
25
|
+
|
|
22
26
|
function fail(message) {
|
|
23
27
|
process.stderr.write(`[tfy installer] error: ${message}\n`);
|
|
24
28
|
process.exit(1);
|
|
@@ -50,6 +54,7 @@ function copyLocalBinary(source, destination = manualInstallDestination(source))
|
|
|
50
54
|
fs.copyFileSync(source, destination);
|
|
51
55
|
ensureExecutable(destination);
|
|
52
56
|
log(`installed local TFY binary from ${source}`);
|
|
57
|
+
logHumanOptInGuidance();
|
|
53
58
|
return destination;
|
|
54
59
|
}
|
|
55
60
|
|
|
@@ -174,6 +179,7 @@ async function installFromRelease(options = {}) {
|
|
|
174
179
|
await downloadFile(checksumUrl, checksumPath);
|
|
175
180
|
installVerifiedArchive({ archivePath, checksumPath, asset, platformTarget, vendorDirectory, destinationBinary });
|
|
176
181
|
log(`installed ${destinationBinary}`);
|
|
182
|
+
logHumanOptInGuidance();
|
|
177
183
|
}
|
|
178
184
|
|
|
179
185
|
async function main() {
|
|
@@ -200,6 +206,7 @@ module.exports = {
|
|
|
200
206
|
download,
|
|
201
207
|
installFromRelease,
|
|
202
208
|
installLocalBinary,
|
|
209
|
+
logHumanOptInGuidance,
|
|
203
210
|
manualInstallDestination,
|
|
204
211
|
installVerifiedArchive,
|
|
205
212
|
listArchiveEntries,
|