agentworth 0.1.15 → 0.1.16

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 CHANGED
@@ -93,7 +93,7 @@ You can also install the native AgentWorth binary directly:
93
93
  | :--- | :--- | :--- |
94
94
  | **Standalone Script** | `curl -fsSL https://agentworth.dev/install.sh | sh` | Installs the pre-built native binary directly to `~/.local/bin`. |
95
95
  | **Homebrew** | `brew install unfoundbox-crew/tap/agentworth` | Installs via official Homebrew tap. |
96
- | **Cargo (Native)** | `cargo install agentworth-cli` | Compiles and installs `agentworth` & `agwt` to `~/.cargo/bin`. |
96
+ | **Cargo (Native)** | `cargo install agentworth-cli` | Compiles and installs `agentworth` and its short alias `archie` to `~/.cargo/bin`. |
97
97
  | **NPX (Instant)** | `npx agentworth` | Zero-install runner that detects or downloads the native binary. |
98
98
 
99
99
  ---
package/bin/agentworth.js CHANGED
@@ -3,7 +3,7 @@
3
3
  import path from 'node:path';
4
4
  import { run } from '../lib/resolver.js';
5
5
 
6
- // Both npm bin entries ('agentworth' and 'agwt', see package.json) point at this same
6
+ // All three npm bin entries ('agentworth', 'archie' and 'agwt', see package.json) point at this same
7
7
  // script -- process.argv[1] carries the name the shell actually resolved (the .bin
8
8
  // symlink), which is how we tell the two invocations apart without a second script.
9
9
  const invokedAs = path.basename(process.argv[1] || '').replace(/\.(js|cjs|mjs)$/, '');
package/lib/resolver.js CHANGED
@@ -77,18 +77,18 @@ export function getCacheDir(version, homeDir) {
77
77
  /**
78
78
  * Returns the expected native binary name for the target platform.
79
79
  *
80
- * `invokedAs` selects between the two native binaries the release tarball ships
81
- * (`agentworth` and its `agwt` alias, see apps/cli/Cargo.toml's two [[bin]] targets) --
82
- * anything other than exactly 'agwt' resolves to the `agentworth` binary, so an
83
- * unrecognized or missing invocation name still gets the primary binary rather than
84
- * silently 404ing on a name nobody built.
80
+ * `invokedAs` selects between the three native binaries the release tarball ships
81
+ * (`agentworth`, the short `archie`, and the older `agwt`; see apps/cli/Cargo.toml's three
82
+ * [[bin]] targets) -- anything other than exactly 'archie' or 'agwt' resolves to the
83
+ * `agentworth` binary, so an unrecognized or missing invocation name still gets the primary
84
+ * binary rather than silently 404ing on a name nobody built.
85
85
  *
86
86
  * @param {string} [platform=process.platform]
87
- * @param {string} [invokedAs] - basename the launcher was invoked as ('agentworth' or 'agwt')
87
+ * @param {string} [invokedAs] - basename the launcher was invoked as ('agentworth', 'archie' or 'agwt')
88
88
  * @returns {string}
89
89
  */
90
90
  export function getBinaryName(platform = process.platform, invokedAs) {
91
- const base = invokedAs === 'agwt' ? 'agwt' : 'agentworth';
91
+ const base = invokedAs === 'archie' || invokedAs === 'agwt' ? invokedAs : 'agentworth';
92
92
  return platform === 'win32' ? `${base}.exe` : base;
93
93
  }
94
94
 
@@ -230,7 +230,7 @@ function pathBinaryMatchesVersion(binPath, expected) {
230
230
  * @param {string} [options.version]
231
231
  * @param {string} [options.homeDir]
232
232
  * @param {boolean} [options.silent=false]
233
- * @param {string} [options.invokedAs] - 'agentworth' or 'agwt'; picks which extracted binary is returned
233
+ * @param {string} [options.invokedAs] - 'agentworth', 'archie' or 'agwt'; picks which extracted binary is returned
234
234
  * @returns {Promise<string>} Path to extracted binary
235
235
  */
236
236
  export async function downloadAndExtractBinary(options = {}) {
@@ -378,7 +378,7 @@ export function findPathBinary(binName = getBinaryName(), pathEnv = process.env.
378
378
  * @param {NodeJS.ProcessEnv} [options.env=process.env]
379
379
  * @param {string} [options.baseDir=__dirname]
380
380
  * @param {string} [options.homeDir]
381
- * @param {string} [options.invokedAs] - 'agentworth' or 'agwt'; selects which native binary to look for
381
+ * @param {string} [options.invokedAs] - 'agentworth', 'archie' or 'agwt'; selects which native binary to look for
382
382
  * @returns {{ found: boolean, path?: string, source?: string, error?: string }}
383
383
  */
384
384
  export function resolveBinary(options = {}) {
@@ -560,7 +560,7 @@ export function buildChildEnv(baseEnv, npmVersion) {
560
560
  *
561
561
  * @param {string[]} [argv=process.argv.slice(2)]
562
562
  * @param {Object} [options={}]
563
- * @param {string} [options.invokedAs] - 'agentworth' or 'agwt'; which native binary to resolve
563
+ * @param {string} [options.invokedAs] - 'agentworth', 'archie' or 'agwt'; which native binary to resolve
564
564
  * @returns {number} Exit code
565
565
  */
566
566
  export function run(argv = process.argv.slice(2), options = {}) {
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "agentworth",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "description": "Discover, normalize, and understand AI-agent histories locally.",
5
5
  "type": "module",
6
6
  "main": "./lib/resolver.js",
7
7
  "bin": {
8
8
  "agentworth": "bin/agentworth.js",
9
+ "archie": "bin/agentworth.js",
9
10
  "agwt": "bin/agentworth.js"
10
11
  },
11
12
  "scripts": {