@almyty/agents 0.1.2 → 1.3.0
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 +103 -16
- package/dist/args.d.ts +28 -0
- package/dist/args.js +80 -0
- package/dist/exit-codes.d.ts +26 -0
- package/dist/exit-codes.js +32 -0
- package/dist/format.d.ts +185 -0
- package/dist/format.js +408 -0
- package/dist/index.d.ts +4 -3
- package/dist/index.js +322 -192
- package/dist/version.d.ts +2 -0
- package/dist/version.js +22 -0
- package/package.json +16 -4
package/dist/version.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The CLI's own version, read from its package.json at startup.
|
|
3
|
+
*
|
|
4
|
+
* It used to be a hardcoded string, which drifted: `--version`
|
|
5
|
+
* answered 0.1.0 while the published package was 1.2.0, so a bug
|
|
6
|
+
* report never identified the build it came from. Both `dist/index.js`
|
|
7
|
+
* and `src/index.ts` sit one directory below the package root, so the
|
|
8
|
+
* same relative path resolves for the built bin and for `tsx src/index.ts`.
|
|
9
|
+
*/
|
|
10
|
+
import { readFileSync } from 'node:fs';
|
|
11
|
+
export function readVersion(fallback = '0.0.0') {
|
|
12
|
+
try {
|
|
13
|
+
const pkg = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf-8'));
|
|
14
|
+
return typeof pkg.version === 'string' && pkg.version.length > 0
|
|
15
|
+
? pkg.version
|
|
16
|
+
: fallback;
|
|
17
|
+
}
|
|
18
|
+
catch {
|
|
19
|
+
return fallback;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export const VERSION = readVersion();
|
package/package.json
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@almyty/agents",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
3
|
+
"version": "1.3.0",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
7
|
+
"description": "Run and manage almyty agents from your terminal — list, invoke workflow or autonomous runs, stream steps, and inspect run history.",
|
|
5
8
|
"type": "module",
|
|
6
9
|
"main": "dist/index.js",
|
|
7
10
|
"bin": {
|
|
@@ -23,14 +26,23 @@
|
|
|
23
26
|
"cli"
|
|
24
27
|
],
|
|
25
28
|
"author": "almyty",
|
|
26
|
-
"license": "
|
|
29
|
+
"license": "Apache-2.0",
|
|
27
30
|
"dependencies": {
|
|
28
|
-
"@almyty/client": "^
|
|
31
|
+
"@almyty/client": "^1.2.0"
|
|
29
32
|
},
|
|
30
33
|
"devDependencies": {
|
|
31
34
|
"@types/node": "^25.4.0",
|
|
32
35
|
"tsx": "^4.7.0",
|
|
33
36
|
"typescript": "^5.3.0",
|
|
34
37
|
"vitest": "^4.1.0"
|
|
38
|
+
},
|
|
39
|
+
"homepage": "https://almyty.com",
|
|
40
|
+
"repository": {
|
|
41
|
+
"type": "git",
|
|
42
|
+
"url": "git+https://github.com/almyty-inc/almyty.git",
|
|
43
|
+
"directory": "packages/agents-cli"
|
|
44
|
+
},
|
|
45
|
+
"bugs": {
|
|
46
|
+
"url": "https://github.com/almyty-inc/almyty/issues"
|
|
35
47
|
}
|
|
36
48
|
}
|