@aident-ai/cli 0.0.1 → 0.0.5
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/dist/cli.mjs +6 -6
- package/package.json +16 -15
package/dist/cli.mjs
CHANGED
|
@@ -402,7 +402,7 @@ function escapeHtml(s) {
|
|
|
402
402
|
}
|
|
403
403
|
|
|
404
404
|
// src/version.ts
|
|
405
|
-
var VERSION = "0.0.
|
|
405
|
+
var VERSION = "0.0.5";
|
|
406
406
|
|
|
407
407
|
// src/client.ts
|
|
408
408
|
class CliClient {
|
|
@@ -425,7 +425,7 @@ class CliClient {
|
|
|
425
425
|
async fetchJson(method, path, body) {
|
|
426
426
|
const headers = {
|
|
427
427
|
Authorization: `Bearer ${this.creds.access_token}`,
|
|
428
|
-
"User-Agent": `@aident/cli/${VERSION}`
|
|
428
|
+
"User-Agent": `@aident-ai/cli/${VERSION}`
|
|
429
429
|
};
|
|
430
430
|
if (body !== undefined)
|
|
431
431
|
headers["Content-Type"] = "application/json";
|
|
@@ -496,14 +496,14 @@ async function checkServerReachable(baseUrl) {
|
|
|
496
496
|
try {
|
|
497
497
|
const res = await fetch(`${baseUrl}/api/cli`, {
|
|
498
498
|
method: "GET",
|
|
499
|
-
headers: { "User-Agent": `@aident/cli/${VERSION}` }
|
|
499
|
+
headers: { "User-Agent": `@aident-ai/cli/${VERSION}` }
|
|
500
500
|
});
|
|
501
501
|
if (res.status === 426) {
|
|
502
502
|
const minVersion = res.headers.get("x-aident-min-cli-version") ?? "newer";
|
|
503
503
|
return {
|
|
504
504
|
name: "Server reachable",
|
|
505
505
|
ok: false,
|
|
506
|
-
detail: `${baseUrl} requires @aident/cli ≥ ${minVersion} — run \`npm install -g @aident/cli@latest\``
|
|
506
|
+
detail: `${baseUrl} requires @aident-ai/cli ≥ ${minVersion} — run \`npm install -g @aident-ai/cli@latest\``
|
|
507
507
|
};
|
|
508
508
|
}
|
|
509
509
|
if (res.status === 401 || res.status === 200) {
|
|
@@ -732,7 +732,7 @@ async function callWithRefresh(client, call, deps = defaultDeps) {
|
|
|
732
732
|
}
|
|
733
733
|
function extractUpgradeMessage(body) {
|
|
734
734
|
const err = body?.error;
|
|
735
|
-
return err?.message ?? `This @aident/cli version is no longer supported. Run \`npm install -g @aident/cli@latest\` to upgrade.`;
|
|
735
|
+
return err?.message ?? `This @aident-ai/cli version is no longer supported. Run \`npm install -g @aident-ai/cli@latest\` to upgrade.`;
|
|
736
736
|
}
|
|
737
737
|
|
|
738
738
|
// src/cli.ts
|
|
@@ -741,7 +741,7 @@ async function main() {
|
|
|
741
741
|
const parsed = parseArgs(argv);
|
|
742
742
|
const first = parsed.positional[0];
|
|
743
743
|
if (parsed.flags["version"] === true || first === "version") {
|
|
744
|
-
logInfo(`@aident/cli v${VERSION}`);
|
|
744
|
+
logInfo(`@aident-ai/cli v${VERSION}`);
|
|
745
745
|
return;
|
|
746
746
|
}
|
|
747
747
|
if (!first || parsed.isHelp && parsed.positional.length === 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aident-ai/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "Aident CLI — agent-friendly access to 1000+ integrations, playbooks, and the Aident automation platform.",
|
|
5
5
|
"homepage": "https://aident.ai",
|
|
6
6
|
"repository": {
|
|
@@ -25,15 +25,24 @@
|
|
|
25
25
|
"README.md",
|
|
26
26
|
"LICENSE"
|
|
27
27
|
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "bun run scripts/build.ts",
|
|
30
|
+
"dev": "bun run src/cli.ts",
|
|
31
|
+
"test": "bun test",
|
|
32
|
+
"typecheck": "tsc --noEmit",
|
|
33
|
+
"format": "pnpm exec prettier . --write",
|
|
34
|
+
"lint": "pnpm exec eslint ./src --cache --cache-location ../../.eslintcache",
|
|
35
|
+
"prepublishOnly": "pnpm run build"
|
|
36
|
+
},
|
|
28
37
|
"imports": {
|
|
29
38
|
"~cli/*": "./src/*"
|
|
30
39
|
},
|
|
31
40
|
"devDependencies": {
|
|
41
|
+
"@aident/eslint-config": "workspace:*",
|
|
42
|
+
"@aident/prettier-config": "workspace:*",
|
|
43
|
+
"@aident/typescript-config": "workspace:*",
|
|
32
44
|
"@types/node": "^22.0.0",
|
|
33
|
-
"typescript": "^5.3.3"
|
|
34
|
-
"@aident/typescript-config": "0.0.0",
|
|
35
|
-
"@aident/eslint-config": "1.0.0",
|
|
36
|
-
"@aident/prettier-config": "1.0.0"
|
|
45
|
+
"typescript": "^5.3.3"
|
|
37
46
|
},
|
|
38
47
|
"publishConfig": {
|
|
39
48
|
"access": "public"
|
|
@@ -48,13 +57,5 @@
|
|
|
48
57
|
"ai",
|
|
49
58
|
"skill",
|
|
50
59
|
"mcp"
|
|
51
|
-
]
|
|
52
|
-
|
|
53
|
-
"build": "bun run scripts/build.ts",
|
|
54
|
-
"dev": "bun run src/cli.ts",
|
|
55
|
-
"test": "bun test",
|
|
56
|
-
"typecheck": "tsc --noEmit",
|
|
57
|
-
"format": "pnpm exec prettier . --write",
|
|
58
|
-
"lint": "pnpm exec eslint ./src --cache --cache-location ../../.eslintcache"
|
|
59
|
-
}
|
|
60
|
-
}
|
|
60
|
+
]
|
|
61
|
+
}
|