@agentage/cli 0.81.1 → 0.81.3
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/commands/extension/account.js +3 -6
- package/dist/commands/extension/row-lines.js +1 -3
- package/dist/commands/extension/rows.d.ts +0 -4
- package/dist/commands/extension/setup-cloud.js +3 -2
- package/dist/commands/status/account-status.js +5 -25
- package/dist/commands/status/status.js +1 -2
- package/dist/core/profile/cloud.d.ts +1 -26
- package/dist/core/profile/cloud.js +1 -55
- package/dist/lib/auth/platform-pat.js +6 -4
- package/dist/lib/net/discovery.d.ts +1 -2
- package/dist/lib/net/discovery.js +7 -11
- package/dist/lib/net/origins.d.ts +0 -2
- package/dist/lib/net/origins.js +3 -11
- package/dist/lib/status/status-info.js +4 -10
- package/package.json +2 -2
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import {} from '../../core/profile/cloud.js';
|
|
2
|
-
import { authedFetch } from '../../lib/auth/api.js';
|
|
3
2
|
import { resolveAuth } from '../../lib/auth/credentials.js';
|
|
4
3
|
import { credentialLinks, detectEnvMismatch } from '../../lib/auth/env-match.js';
|
|
5
4
|
import { introspectToken } from '../../lib/auth/introspect.js';
|
|
6
5
|
import { platformFetch } from '../../lib/auth/platform-pat.js';
|
|
7
6
|
import { discoverTarget } from '../../lib/net/discovery.js';
|
|
8
|
-
import {
|
|
7
|
+
import { siteFqdn } from '../../lib/net/origins.js';
|
|
9
8
|
const CLIENT = { 'x-client-type': 'cli' };
|
|
10
9
|
// Read before any extension loads: the token is captured here, the fetch at CLI start.
|
|
11
10
|
export const signedInAccount = async (opts = {}) => {
|
|
@@ -19,13 +18,11 @@ export const signedInAccount = async (opts = {}) => {
|
|
|
19
18
|
if (derived && detectEnvMismatch(auth, fqdn, (await found()).links.auth) !== null)
|
|
20
19
|
return null;
|
|
21
20
|
const target = credentialLinks(auth);
|
|
22
|
-
const
|
|
23
|
-
const platform = async () => (await found()).platform.url;
|
|
24
|
-
const fetch = to(() => apiOrigin(fqdn));
|
|
21
|
+
const platform = async () => (await found()).platform?.url ?? null;
|
|
25
22
|
const machines = async (path, { headers, timeoutMs, ...init } = {}) => {
|
|
26
23
|
const sent = { ...init, headers: { ...CLIENT, ...headers } };
|
|
27
24
|
return platformFetch(auth, target, await found(), path, sent, { timeoutMs });
|
|
28
25
|
};
|
|
29
26
|
const id = () => introspectToken(auth, target).then((s) => s.userId ?? null, () => null);
|
|
30
|
-
return {
|
|
27
|
+
return { machines, platform, id };
|
|
31
28
|
};
|
|
@@ -12,7 +12,6 @@ const COLOR = {
|
|
|
12
12
|
missing: chalk.yellow,
|
|
13
13
|
};
|
|
14
14
|
const STATE_WIDTH = Math.max(...Object.keys(COLOR).map((state) => state.length));
|
|
15
|
-
const cloudText = ({ version, etag }) => chalk.yellow(`; account: version ${version}, etag ${etag} - run agentage setup`);
|
|
16
15
|
const profileText = (profile) => {
|
|
17
16
|
if (profile.state === 'missing')
|
|
18
17
|
return 'no profile';
|
|
@@ -20,8 +19,7 @@ const profileText = (profile) => {
|
|
|
20
19
|
return chalk.red('invalid');
|
|
21
20
|
const etag = profile.etag === null ? '' : `, etag ${profile.etag}`;
|
|
22
21
|
const readOnly = profile.readOnly ? chalk.yellow(', read-only') : '';
|
|
23
|
-
|
|
24
|
-
return `version ${profile.version} (source: ${profile.source}${etag}${readOnly})${cloud}`;
|
|
22
|
+
return `version ${profile.version} (source: ${profile.source}${etag}${readOnly})`;
|
|
25
23
|
};
|
|
26
24
|
const pendingText = (plan) => {
|
|
27
25
|
const changes = pendingChanges(plan);
|
|
@@ -42,7 +42,7 @@ export const accountSetup = async (deps) => {
|
|
|
42
42
|
return fromLocalCopy(deps);
|
|
43
43
|
const platform = await account.platform();
|
|
44
44
|
const machine = await connect(account);
|
|
45
|
-
const registered = registerMachine(account.machines, machine);
|
|
45
|
+
const registered = platform ? registerMachine(account.machines, machine) : false;
|
|
46
46
|
try {
|
|
47
47
|
await profileFrom(machine, deps);
|
|
48
48
|
}
|
|
@@ -55,7 +55,8 @@ export const accountSetup = async (deps) => {
|
|
|
55
55
|
export const disconnect = async (deps) => {
|
|
56
56
|
const machine = readMachine();
|
|
57
57
|
const account = await deps.account();
|
|
58
|
-
|
|
58
|
+
const platform = account === null ? null : await account.platform().catch(() => null);
|
|
59
|
+
if (machine !== null && account !== null && platform !== null)
|
|
59
60
|
await disconnectMachine(account.machines, machine.id);
|
|
60
61
|
await deps.signOut();
|
|
61
62
|
if (machine !== null)
|
|
@@ -1,32 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {} from '../../core/profile/cloud.js';
|
|
2
2
|
import { seenMachine } from '../../core/profile/register.js';
|
|
3
3
|
import { gatherExtensions } from '../extension/rows.js';
|
|
4
|
-
|
|
5
|
-
// The account's profile when it moved past the local copy; null when the same or not known.
|
|
6
|
-
const accountProfile = async (fetch, profile) => {
|
|
7
|
-
if (profile.state !== 'ok' || profile.etag === null)
|
|
8
|
-
return null;
|
|
9
|
-
const pulled = await pullProfile(fetch, profile.etag, STATUS_TIMEOUT_MS);
|
|
10
|
-
if (pulled.kind !== 'found')
|
|
11
|
-
return null;
|
|
12
|
-
return { version: pulled.doc.profile.version, etag: pulled.doc.etag };
|
|
13
|
-
};
|
|
14
|
-
// `status`: marks this machine seen (does the account know it?) and compares the profile copies.
|
|
4
|
+
// `status`: marks this machine seen (does the account know it?) and names its platform.
|
|
15
5
|
export const gatherWithAccount = async (account) => {
|
|
16
6
|
const gathered = await gatherExtensions();
|
|
17
|
-
const { machine
|
|
18
|
-
const [registered, cloud] = account === null
|
|
19
|
-
? [null, null]
|
|
20
|
-
: await Promise.all([
|
|
21
|
-
seenMachine(account.machines, machine.id),
|
|
22
|
-
accountProfile(account.fetch, profile),
|
|
23
|
-
]);
|
|
24
|
-
const compared = cloud !== null && profile.state === 'ok' ? { ...profile, cloud } : profile;
|
|
7
|
+
const { machine } = gathered.status;
|
|
25
8
|
const platform = account === null ? null : await account.platform().catch(() => null);
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
machine: { ...machine, registered, platform },
|
|
29
|
-
profile: compared,
|
|
30
|
-
};
|
|
9
|
+
const registered = account === null || platform === null ? null : await seenMachine(account.machines, machine.id);
|
|
10
|
+
const status = { ...gathered.status, machine: { ...machine, registered, platform } };
|
|
31
11
|
return { ...gathered, status };
|
|
32
12
|
};
|
|
@@ -109,8 +109,7 @@ export const runStatus = async (opts = {}, deps = statusDeps()) => {
|
|
|
109
109
|
};
|
|
110
110
|
const EXTENSIONS_HELP = `
|
|
111
111
|
Extensions: adds this machine's id and name (machine.json), the local profile version
|
|
112
|
-
(profile.json) with its source and
|
|
113
|
-
account's when that moved on, and the number of extensions, with what setup would change, e.g.
|
|
112
|
+
(profile.json) with its source and the number of extensions, with what setup would change, e.g.
|
|
114
113
|
(1 to add); agentage extension list shows one row per extension. Signed in, it also marks this
|
|
115
114
|
machine seen in your account (--json: machine.registered). Extension code is never loaded; the
|
|
116
115
|
only file written is machine.json.
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { type Profile } from './schema.js';
|
|
2
|
-
export declare const PROFILE_PATH = "/v1/profile";
|
|
3
|
-
export type JsonObject = Record<string, unknown>;
|
|
4
1
|
export interface CloudInit {
|
|
5
2
|
method?: string;
|
|
6
3
|
headers?: Record<string, string>;
|
|
@@ -9,30 +6,8 @@ export interface CloudInit {
|
|
|
9
6
|
}
|
|
10
7
|
export type CloudFetch = (path: string, init?: CloudInit) => Promise<Response>;
|
|
11
8
|
export interface Account {
|
|
12
|
-
fetch: CloudFetch;
|
|
13
9
|
machines: CloudFetch;
|
|
14
|
-
platform: () => Promise<string>;
|
|
10
|
+
platform: () => Promise<string | null>;
|
|
15
11
|
id: () => Promise<string | null>;
|
|
16
12
|
}
|
|
17
|
-
export interface CloudProfile {
|
|
18
|
-
profile: Profile;
|
|
19
|
-
readOnly: boolean;
|
|
20
|
-
lock: JsonObject | null;
|
|
21
|
-
npmMajor: number | null;
|
|
22
|
-
etag: string | null;
|
|
23
|
-
}
|
|
24
|
-
export type Pull = {
|
|
25
|
-
kind: 'current';
|
|
26
|
-
} | {
|
|
27
|
-
kind: 'found';
|
|
28
|
-
doc: CloudProfile & {
|
|
29
|
-
etag: string;
|
|
30
|
-
};
|
|
31
|
-
} | {
|
|
32
|
-
kind: 'none';
|
|
33
|
-
} | {
|
|
34
|
-
kind: 'unavailable';
|
|
35
|
-
reason: string;
|
|
36
|
-
};
|
|
37
13
|
export declare const errorCode: (res: Response) => Promise<string | null>;
|
|
38
|
-
export declare const pullProfile: (fetch: CloudFetch, etag: string | null, timeoutMs?: number) => Promise<Pull>;
|
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
import { isRecord } from '../../lib/fs/json-file.js';
|
|
2
|
-
import { parseProfile } from './schema.js';
|
|
3
|
-
// One resource per account: the profile, npm's lock and the npm major that wrote it, one ETag.
|
|
4
|
-
export const PROFILE_PATH = '/v1/profile';
|
|
5
|
-
// What a request ended with: the Response, or why there was none.
|
|
6
|
-
const attempt = async (request) => {
|
|
7
|
-
try {
|
|
8
|
-
return await request();
|
|
9
|
-
}
|
|
10
|
-
catch (err) {
|
|
11
|
-
return err.name === 'TimeoutError' ? 'timed out' : err.message;
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
2
|
const bodyOf = async (res) => {
|
|
15
3
|
try {
|
|
16
4
|
return (await res.json());
|
|
@@ -19,51 +7,9 @@ const bodyOf = async (res) => {
|
|
|
19
7
|
return null;
|
|
20
8
|
}
|
|
21
9
|
};
|
|
22
|
-
// The code of the house error envelope, e.g.
|
|
10
|
+
// The code of the house error envelope, e.g. MACHINE_NOT_FOUND; null without one. Reads the body.
|
|
23
11
|
export const errorCode = async (res) => {
|
|
24
12
|
const body = await bodyOf(res);
|
|
25
13
|
const error = isRecord(body) && isRecord(body['error']) ? body['error'] : {};
|
|
26
14
|
return typeof error['code'] === 'string' ? error['code'] : null;
|
|
27
15
|
};
|
|
28
|
-
// e.g. "503 AUTH_UNAVAILABLE": the status, and the envelope's code when there is one.
|
|
29
|
-
const failureOf = async (res) => {
|
|
30
|
-
const code = await errorCode(res);
|
|
31
|
-
return code === null ? `${res.status}` : `${res.status} ${code}`;
|
|
32
|
-
};
|
|
33
|
-
const isMajor = (value) => value === null || (typeof value === 'number' && Number.isInteger(value));
|
|
34
|
-
// A served resource and its etag, parsed; a string says what is wrong with it.
|
|
35
|
-
const resourceOf = (data, etag) => {
|
|
36
|
-
if (!isRecord(data) || typeof etag !== 'string')
|
|
37
|
-
return 'unexpected answer';
|
|
38
|
-
const { lock, npmMajor } = data;
|
|
39
|
-
if (!(lock === null || isRecord(lock)) || !isMajor(npmMajor))
|
|
40
|
-
return 'unexpected answer';
|
|
41
|
-
const parsed = parseProfile(data['profile']);
|
|
42
|
-
if (!parsed.ok)
|
|
43
|
-
return `the profile in your account is invalid: ${parsed.errors.join('; ')}`;
|
|
44
|
-
return { profile: parsed.profile, readOnly: parsed.readOnly, lock, npmMajor, etag };
|
|
45
|
-
};
|
|
46
|
-
// meta.etag equals the ETag header on a 2xx; either will do.
|
|
47
|
-
const etagOf = (body, header) => {
|
|
48
|
-
const meta = isRecord(body) && isRecord(body['meta']) ? body['meta'] : {};
|
|
49
|
-
return meta['etag'] ?? header;
|
|
50
|
-
};
|
|
51
|
-
const served = (body, header) => resourceOf(isRecord(body) ? body['data'] : null, etagOf(body, header));
|
|
52
|
-
const unavailable = (reason) => ({ kind: 'unavailable', reason });
|
|
53
|
-
const NO_PROFILE = '404 PROFILE_NOT_FOUND';
|
|
54
|
-
// GET, conditional on the local copy's etag: 304 keeps it, 200 replaces it, 404 means none yet.
|
|
55
|
-
export const pullProfile = async (fetch, etag, timeoutMs) => {
|
|
56
|
-
const headers = etag === null ? {} : { 'if-none-match': etag };
|
|
57
|
-
const res = await attempt(() => fetch(PROFILE_PATH, { headers, timeoutMs }));
|
|
58
|
-
if (typeof res === 'string')
|
|
59
|
-
return unavailable(res);
|
|
60
|
-
if (res.status === 304)
|
|
61
|
-
return { kind: 'current' };
|
|
62
|
-
if (res.status !== 200) {
|
|
63
|
-
// Any other 404 is an API without the profile route, not an account without a profile.
|
|
64
|
-
const failure = await failureOf(res);
|
|
65
|
-
return failure === NO_PROFILE ? { kind: 'none' } : unavailable(failure);
|
|
66
|
-
}
|
|
67
|
-
const doc = served(await bodyOf(res), res.headers.get('etag'));
|
|
68
|
-
return typeof doc === 'string' ? unavailable(doc) : { kind: 'found', doc };
|
|
69
|
-
};
|
|
@@ -72,10 +72,8 @@ const tokenFor = async (auth, links, renew, opts) => {
|
|
|
72
72
|
void revokePat(auth, links, old.id);
|
|
73
73
|
return { minted: true, token };
|
|
74
74
|
};
|
|
75
|
-
//
|
|
75
|
+
// The platform takes only a JWT PAT the session mints; an env PAT goes as is.
|
|
76
76
|
const fetchAt = async (auth, links, found, url, init, opts) => {
|
|
77
|
-
if (!found.discovered)
|
|
78
|
-
return authedFetch(auth, links, url, init, opts);
|
|
79
77
|
if (found.links.auth !== links.auth)
|
|
80
78
|
throw refuse(links.auth, `platform token: the site's issuer is ${found.links.auth}`);
|
|
81
79
|
if (auth.kind === 'pat')
|
|
@@ -98,4 +96,8 @@ const fetchAt = async (auth, links, found, url, init, opts) => {
|
|
|
98
96
|
throw refuse(links.auth, 'platform token refused (401) by the platform');
|
|
99
97
|
};
|
|
100
98
|
// The machines routes at `<platform>/api/platform/machines`.
|
|
101
|
-
export const platformFetch = (auth, links, found, path, init, opts) =>
|
|
99
|
+
export const platformFetch = (auth, links, found, path, init, opts) => {
|
|
100
|
+
if (!found.platform)
|
|
101
|
+
throw new Error('the site names no platform');
|
|
102
|
+
return machinesCall(found.platform, path, (url) => fetchAt(auth, links, found, url, init, opts));
|
|
103
|
+
};
|
|
@@ -7,8 +7,7 @@ export interface Platform {
|
|
|
7
7
|
export declare const issuerAllowed: (issuer: string, site: string) => boolean;
|
|
8
8
|
export interface Target {
|
|
9
9
|
links: Links;
|
|
10
|
-
platform: Platform;
|
|
11
|
-
discovered: boolean;
|
|
10
|
+
platform: Platform | null;
|
|
12
11
|
}
|
|
13
12
|
export declare const derivedTarget: (fqdn: string) => Target;
|
|
14
13
|
export declare const discoverTarget: (fqdn: string, get?: Get) => Promise<Target>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isRecord } from '../fs/json-file.js';
|
|
2
2
|
import { cliFetch } from './fetch.js';
|
|
3
|
-
import {
|
|
3
|
+
import { links } from './origins.js';
|
|
4
4
|
const debug = (text) => {
|
|
5
5
|
if (process.env['AGENTAGE_DEBUG'] === '1')
|
|
6
6
|
console.error(`discovery: ${text}`);
|
|
@@ -36,10 +36,10 @@ const read = async (url, get) => {
|
|
|
36
36
|
if (res.ok)
|
|
37
37
|
return await res.json();
|
|
38
38
|
if (res.status !== 404)
|
|
39
|
-
debug(`${url} answered ${res.status}, using the
|
|
39
|
+
debug(`${url} answered ${res.status}, using the derived origins`);
|
|
40
40
|
}
|
|
41
41
|
catch (err) {
|
|
42
|
-
debug(`${url} failed (${err.message}), using the
|
|
42
|
+
debug(`${url} failed (${err.message}), using the derived origins`);
|
|
43
43
|
}
|
|
44
44
|
return undefined;
|
|
45
45
|
};
|
|
@@ -58,12 +58,8 @@ const issuerOf = (doc, base, url) => {
|
|
|
58
58
|
throw new Error(`FAIL discovery: ${url} names an issuer outside the site`);
|
|
59
59
|
return new URL(issuer).origin;
|
|
60
60
|
};
|
|
61
|
-
// The origins derived from the fqdn alone
|
|
62
|
-
export const derivedTarget = (fqdn) => {
|
|
63
|
-
const api = apiOrigin(fqdn);
|
|
64
|
-
const platform = { url: api, machines: `${api}/v1/machines` };
|
|
65
|
-
return { links: links(fqdn), platform, discovered: false };
|
|
66
|
-
};
|
|
61
|
+
// The origins derived from the fqdn alone; a site with no document has no platform.
|
|
62
|
+
export const derivedTarget = (fqdn) => ({ links: links(fqdn), platform: null });
|
|
67
63
|
const fetchTarget = async (fqdn, get) => {
|
|
68
64
|
const base = links(fqdn);
|
|
69
65
|
const url = `${base.site}/.well-known/agentage.json`;
|
|
@@ -71,10 +67,10 @@ const fetchTarget = async (fqdn, get) => {
|
|
|
71
67
|
if (doc === undefined)
|
|
72
68
|
return derivedTarget(fqdn);
|
|
73
69
|
const platform = platformOf(doc, base.site, url);
|
|
74
|
-
return { links: { ...base, auth: issuerOf(doc, base, url) }, platform
|
|
70
|
+
return { links: { ...base, auth: issuerOf(doc, base, url) }, platform };
|
|
75
71
|
};
|
|
76
72
|
const once = new Map();
|
|
77
|
-
// Fetched once per run; an unserved document (404, 5xx, unreachable) keeps the derived origins,
|
|
73
|
+
// Fetched once per run; an unserved document (404, 5xx, unreachable) keeps the derived origins (no platform),
|
|
78
74
|
// a served one without a valid platform or issuer fails closed.
|
|
79
75
|
export const discoverTarget = (fqdn, get = cliFetch) => {
|
|
80
76
|
if (get !== cliFetch)
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
export type Env = 'development' | 'production';
|
|
2
2
|
export interface Links {
|
|
3
3
|
site: string;
|
|
4
|
-
api: string;
|
|
5
4
|
auth: string;
|
|
6
5
|
}
|
|
7
6
|
export declare const DEFAULT_FQDN = "agentage.io";
|
|
8
7
|
export declare const normalizeFqdn: (raw?: string) => string;
|
|
9
8
|
export declare const siteFqdn: () => string;
|
|
10
9
|
export declare const environment: (fqdn: string) => Env;
|
|
11
|
-
export declare const apiOrigin: (fqdn: string) => string;
|
|
12
10
|
export declare const links: (fqdn: string) => Links;
|
package/dist/lib/net/origins.js
CHANGED
|
@@ -17,19 +17,11 @@ const stubOrigin = (fqdn) => {
|
|
|
17
17
|
return m ? `http://127.0.0.1:${m[1]}` : null;
|
|
18
18
|
};
|
|
19
19
|
export const environment = (fqdn) => isLocal(fqdn) || fqdn.startsWith('dev.') ? 'development' : 'production';
|
|
20
|
-
// The account routes (/v1/...) sit at the root of the API origin; `links().api` is its /api family.
|
|
21
|
-
export const apiOrigin = (fqdn) => {
|
|
22
|
-
const stub = stubOrigin(fqdn);
|
|
23
|
-
if (stub)
|
|
24
|
-
return stub;
|
|
25
|
-
return isLocal(fqdn) ? 'http://localhost:3001' : `https://api.${fqdn}`;
|
|
26
|
-
};
|
|
27
20
|
export const links = (fqdn) => {
|
|
28
21
|
const stub = stubOrigin(fqdn);
|
|
29
|
-
const api = `${apiOrigin(fqdn)}/api`;
|
|
30
22
|
if (stub)
|
|
31
|
-
return { site: stub,
|
|
23
|
+
return { site: stub, auth: stub };
|
|
32
24
|
return isLocal(fqdn)
|
|
33
|
-
? { site: 'http://localhost:3000',
|
|
34
|
-
: { site: `https://${fqdn}`,
|
|
25
|
+
? { site: 'http://localhost:3000', auth: 'http://localhost:3010' }
|
|
26
|
+
: { site: `https://${fqdn}`, auth: `https://auth.${fqdn}` };
|
|
35
27
|
};
|
|
@@ -10,10 +10,6 @@ import { checkForUpdate } from '../update/update-check.js';
|
|
|
10
10
|
import { VERSION } from '../../utils/version.js';
|
|
11
11
|
// node:https via fetchJsonUnref, not global fetch: undici's ref'd connect timer keeps the process
|
|
12
12
|
// alive ~10s after an aborted request on a packet-drop network, stalling `status` exit.
|
|
13
|
-
const checkEndpoint = async (apiUrl, headers) => {
|
|
14
|
-
const res = await fetchJsonUnref(`${apiUrl}/health`, 3000, headers);
|
|
15
|
-
return res?.ok ?? false;
|
|
16
|
-
};
|
|
17
13
|
// Host reachability, not app health: the site root answers any HTTP status (200/3xx/4xx) when the
|
|
18
14
|
// host is up, so any non-null response counts as reachable; only a refused/timed-out connect fails.
|
|
19
15
|
const checkSite = async (siteUrl, headers) => {
|
|
@@ -38,16 +34,14 @@ export const gatherStatus = async (auth, fqdn) => {
|
|
|
38
34
|
const derived = links(fqdn);
|
|
39
35
|
const env = environment(fqdn);
|
|
40
36
|
const headers = requestHeaders();
|
|
41
|
-
const [found,
|
|
37
|
+
const [found, siteReachable, update] = await Promise.all([
|
|
42
38
|
discoverTarget(fqdn).catch(() => derivedTarget(fqdn)),
|
|
43
|
-
checkEndpoint(derived.api, headers),
|
|
44
39
|
checkSite(derived.site, headers),
|
|
45
40
|
checkForUpdate(VERSION),
|
|
46
41
|
]);
|
|
47
|
-
const { links: target, platform
|
|
48
|
-
|
|
49
|
-
const
|
|
50
|
-
const reachable = discovered ? await checkSite(endpoint, headers) : apiUp;
|
|
42
|
+
const { links: target, platform } = found;
|
|
43
|
+
const endpoint = platform ? platform.url : derived.site;
|
|
44
|
+
const reachable = platform ? await checkSite(endpoint, headers) : siteReachable;
|
|
51
45
|
const report = {
|
|
52
46
|
version: VERSION,
|
|
53
47
|
fqdn,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentage/cli",
|
|
3
|
-
"version": "0.81.
|
|
3
|
+
"version": "0.81.3",
|
|
4
4
|
"description": "The agentage CLI - connect this machine to agentage from the terminal",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@agentage/apphost": "0.8.5",
|
|
58
|
-
"@agentage/extension": "0.25.
|
|
58
|
+
"@agentage/extension": "0.25.9",
|
|
59
59
|
"@electric-sql/pglite": "^0.6.0",
|
|
60
60
|
"@tailwindcss/postcss": "^4.3.5",
|
|
61
61
|
"chalk": "^6.0.0",
|