@openagt/dashboard 0.10.0 → 0.12.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 +1 -6
- package/dist/built-in.d.ts +18 -2
- package/dist/built-in.d.ts.map +1 -1
- package/dist/built-in.js +29 -6
- package/dist/built-in.js.map +1 -1
- package/dist/cli.d.ts +4 -10
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +11 -67
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +2 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +3 -4
- package/dist/client.js.map +1 -1
- package/dist/clone-project.d.ts +69 -0
- package/dist/clone-project.d.ts.map +1 -0
- package/dist/clone-project.js +124 -0
- package/dist/clone-project.js.map +1 -0
- package/dist/daemon-runtime.d.ts +12 -12
- package/dist/daemon-runtime.d.ts.map +1 -1
- package/dist/daemon-runtime.js +96 -35
- package/dist/daemon-runtime.js.map +1 -1
- package/dist/daemon.d.ts +3 -14
- package/dist/daemon.d.ts.map +1 -1
- package/dist/daemon.js +15 -26
- package/dist/daemon.js.map +1 -1
- package/dist/dashboard/bridge-endpoints.d.ts +5 -5
- package/dist/dashboard/bridge-endpoints.js +5 -5
- package/dist/dashboard/http.d.ts +1 -1
- package/dist/dashboard/http.js +1 -1
- package/dist/dashboard/machine-call.d.ts +10 -0
- package/dist/dashboard/machine-call.d.ts.map +1 -0
- package/dist/dashboard/machine-call.js +86 -0
- package/dist/dashboard/machine-call.js.map +1 -0
- package/dist/dashboard/module-serve.d.ts +6 -0
- package/dist/dashboard/module-serve.d.ts.map +1 -1
- package/dist/dashboard/module-serve.js +24 -8
- package/dist/dashboard/module-serve.js.map +1 -1
- package/dist/dashboard/relay-endpoints.d.ts +26 -17
- package/dist/dashboard/relay-endpoints.d.ts.map +1 -1
- package/dist/dashboard/relay-endpoints.js +70 -27
- package/dist/dashboard/relay-endpoints.js.map +1 -1
- package/dist/dashboard/remote-run.d.ts +77 -32
- package/dist/dashboard/remote-run.d.ts.map +1 -1
- package/dist/dashboard/remote-run.js +120 -42
- package/dist/dashboard/remote-run.js.map +1 -1
- package/dist/dashboard/rpc-serve.d.ts +28 -25
- package/dist/dashboard/rpc-serve.d.ts.map +1 -1
- package/dist/dashboard/rpc-serve.js +26 -22
- package/dist/dashboard/rpc-serve.js.map +1 -1
- package/dist/dashboard/screen.d.ts +53 -0
- package/dist/dashboard/screen.d.ts.map +1 -0
- package/dist/dashboard/screen.js +175 -0
- package/dist/dashboard/screen.js.map +1 -0
- package/dist/dashboard/server.d.ts +18 -19
- package/dist/dashboard/server.d.ts.map +1 -1
- package/dist/dashboard/server.js +57 -84
- package/dist/dashboard/server.js.map +1 -1
- package/dist/dashboard/types.d.ts +11 -16
- package/dist/dashboard/types.d.ts.map +1 -1
- package/dist/dashboard/web-start-endpoints.d.ts +2 -2
- package/dist/dashboard/web-start-endpoints.js +1 -1
- package/dist/dashboard-bundle/assets/main-BHMlP40v.css +2 -0
- package/dist/dashboard-bundle/assets/main-D0qZC1r-.js +140 -0
- package/dist/dashboard-bundle/assets/{module-gKz-ZvkG.js → module-ZjyA5WUg.js} +4 -4
- package/dist/dashboard-bundle/host/module.js +1 -1
- package/dist/dashboard-bundle/index.html +3 -3
- package/dist/dashboard-rpc/context.d.ts +4 -4
- package/dist/dashboard-rpc/context.js +5 -5
- package/dist/dashboard-rpc/context.js.map +1 -1
- package/dist/dashboard-rpc/control.d.ts +1 -1
- package/dist/dashboard-rpc/control.js +7 -7
- package/dist/dashboard-rpc/control.js.map +1 -1
- package/dist/dashboard-rpc/events.d.ts +1 -1
- package/dist/dashboard-rpc/events.js +1 -1
- package/dist/dashboard-rpc/index.d.ts +3 -3
- package/dist/dashboard-rpc/index.d.ts.map +1 -1
- package/dist/dashboard-rpc/index.js +5 -5
- package/dist/dashboard-rpc/index.js.map +1 -1
- package/dist/dashboard-rpc/machines.d.ts +52 -0
- package/dist/dashboard-rpc/machines.d.ts.map +1 -0
- package/dist/dashboard-rpc/machines.js +82 -0
- package/dist/dashboard-rpc/machines.js.map +1 -0
- package/dist/dashboard-rpc/modules.d.ts +12 -4
- package/dist/dashboard-rpc/modules.d.ts.map +1 -1
- package/dist/dashboard-rpc/modules.js +24 -5
- package/dist/dashboard-rpc/modules.js.map +1 -1
- package/dist/dashboard-rpc/projects.d.ts +18 -0
- package/dist/dashboard-rpc/projects.d.ts.map +1 -1
- package/dist/dashboard-rpc/projects.js +27 -5
- package/dist/dashboard-rpc/projects.js.map +1 -1
- package/dist/dashboard-rpc/reads.d.ts +3 -4
- package/dist/dashboard-rpc/reads.d.ts.map +1 -1
- package/dist/dashboard-rpc/reads.js +5 -6
- package/dist/dashboard-rpc/reads.js.map +1 -1
- package/dist/dashboard-rpc/relay-agent.d.ts +3 -3
- package/dist/dashboard-rpc/relay-agent.js +3 -3
- package/dist/dashboard-rpc/relay-dispatch.d.ts +4 -4
- package/dist/dashboard-rpc/relay-dispatch.d.ts.map +1 -1
- package/dist/dashboard-rpc/relay-dispatch.js +7 -7
- package/dist/dashboard-rpc/relay-dispatch.js.map +1 -1
- package/dist/dashboard-rpc/test-context.js +1 -1
- package/dist/dashboard-rpc/test-context.js.map +1 -1
- package/dist/events.d.ts +4 -3
- package/dist/events.d.ts.map +1 -1
- package/dist/loopback-host.d.ts +3 -5
- package/dist/loopback-host.d.ts.map +1 -1
- package/dist/loopback-host.js +3 -5
- package/dist/loopback-host.js.map +1 -1
- package/dist/machine-link.d.ts +21 -0
- package/dist/machine-link.d.ts.map +1 -0
- package/dist/machine-link.js +20 -0
- package/dist/machine-link.js.map +1 -0
- package/dist/module-server.d.ts +1 -1
- package/dist/module-types/dashboard/components/QrCode.d.ts +8 -0
- package/dist/module-types/dashboard/lib/draft-handoff.d.ts +5 -9
- package/dist/module-types/dashboard/module/index.d.ts +56 -4
- package/dist/module-types/dashboard/rpc/modules.d.ts +1 -0
- package/dist/module-types/src/built-in.d.ts +18 -2
- package/dist/module-types/src/client.d.ts +2 -1
- package/dist/module-types/src/clone-project.d.ts +68 -0
- package/dist/module-types/src/dashboard/bridge-endpoints.d.ts +5 -5
- package/dist/module-types/src/dashboard/http.d.ts +1 -1
- package/dist/module-types/src/dashboard/machine-call.d.ts +9 -0
- package/dist/module-types/src/dashboard/module-serve.d.ts +6 -0
- package/dist/module-types/src/dashboard/remote-run.d.ts +77 -32
- package/dist/module-types/src/dashboard/rpc-serve.d.ts +28 -25
- package/dist/module-types/src/dashboard/types.d.ts +11 -16
- package/dist/module-types/src/dashboard-rpc/context.d.ts +4 -4
- package/dist/module-types/src/dashboard-rpc/control.d.ts +1 -1
- package/dist/module-types/src/dashboard-rpc/events.d.ts +1 -1
- package/dist/module-types/src/dashboard-rpc/index.d.ts +3 -3
- package/dist/module-types/src/dashboard-rpc/machines.d.ts +51 -0
- package/dist/module-types/src/dashboard-rpc/modules.d.ts +12 -4
- package/dist/module-types/src/dashboard-rpc/projects.d.ts +18 -0
- package/dist/module-types/src/dashboard-rpc/reads.d.ts +3 -4
- package/dist/module-types/src/dashboard-rpc/relay-agent.d.ts +3 -3
- package/dist/module-types/src/events.d.ts +4 -3
- package/dist/module-types/src/loopback-host.d.ts +3 -5
- package/dist/module-types/src/machine-link.d.ts +20 -0
- package/dist/module-types/src/pick-directory.d.ts +2 -0
- package/dist/module-types/src/project-modules.d.ts +12 -3
- package/dist/module-types/src/registry.d.ts +59 -16
- package/dist/module-types/src/repository-address.d.ts +22 -0
- package/dist/module-types/src/screens.d.ts +13 -0
- package/dist/module-types/src/store/agent-store.d.ts +2 -2
- package/dist/module-types/src/version.d.ts +1 -0
- package/dist/package-services.d.ts +27 -0
- package/dist/package-services.d.ts.map +1 -0
- package/dist/package-services.js +62 -0
- package/dist/package-services.js.map +1 -0
- package/dist/pick-directory.d.ts +2 -0
- package/dist/pick-directory.d.ts.map +1 -1
- package/dist/pick-directory.js +7 -1
- package/dist/pick-directory.js.map +1 -1
- package/dist/project-modules.d.ts +12 -3
- package/dist/project-modules.d.ts.map +1 -1
- package/dist/project-modules.js +20 -2
- package/dist/project-modules.js.map +1 -1
- package/dist/registry.d.ts +59 -16
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +91 -20
- package/dist/registry.js.map +1 -1
- package/dist/repository-address.d.ts +23 -0
- package/dist/repository-address.d.ts.map +1 -0
- package/dist/repository-address.js +38 -0
- package/dist/repository-address.js.map +1 -0
- package/dist/screens.d.ts +14 -0
- package/dist/screens.d.ts.map +1 -0
- package/dist/screens.js +40 -0
- package/dist/screens.js.map +1 -0
- package/dist/store/agent-store.d.ts +2 -2
- package/dist/store/agent-store.d.ts.map +1 -1
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +26 -0
- package/dist/version.js.map +1 -0
- package/package.json +15 -11
- package/dist/dashboard-bundle/assets/main-Q7JMdMJI.css +0 -2
- package/dist/dashboard-bundle/assets/main-fDZWGOub.js +0 -140
- package/dist/dashboard-rpc/devices.d.ts +0 -9
- package/dist/dashboard-rpc/devices.d.ts.map +0 -1
- package/dist/dashboard-rpc/devices.js +0 -12
- package/dist/dashboard-rpc/devices.js.map +0 -1
- package/dist/install.d.ts +0 -31
- package/dist/install.d.ts.map +0 -1
- package/dist/install.js +0 -54
- package/dist/install.js.map +0 -1
- package/dist/module-types/src/dashboard-rpc/devices.d.ts +0 -8
- package/dist/module-types/src/openagent-gitignore.d.ts +0 -11
- package/dist/openagent-gitignore.d.ts +0 -12
- package/dist/openagent-gitignore.d.ts.map +0 -1
- package/dist/openagent-gitignore.js +0 -19
- package/dist/openagent-gitignore.js.map +0 -1
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/** One device to health-check: its profile id plus the origin and token to reach it with. */
|
|
2
|
-
export interface DeviceCheck {
|
|
3
|
-
id: string;
|
|
4
|
-
url: string;
|
|
5
|
-
token: string;
|
|
6
|
-
}
|
|
7
|
-
/** Ping each saved device and map its id to whether it answered (#1072). Bad entries are dropped. */
|
|
8
|
-
export declare function checkDevices(devices: DeviceCheck[]): Promise<Record<string, boolean>>;
|
|
9
|
-
//# sourceMappingURL=devices.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"devices.d.ts","sourceRoot":"","sources":["../../src/dashboard-rpc/devices.ts"],"names":[],"mappings":"AAOA,6FAA6F;AAC7F,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;CACd;AAOD,qGAAqG;AACrG,wBAAsB,YAAY,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAI3F"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { pingRemote } from '../dashboard/remote-run.js';
|
|
2
|
-
function isDeviceCheck(value) {
|
|
3
|
-
const d = value;
|
|
4
|
-
return !!d && typeof d.id === 'string' && typeof d.url === 'string' && typeof d.token === 'string';
|
|
5
|
-
}
|
|
6
|
-
/** Ping each saved device and map its id to whether it answered (#1072). Bad entries are dropped. */
|
|
7
|
-
export async function checkDevices(devices) {
|
|
8
|
-
const valid = (Array.isArray(devices) ? devices : []).filter(isDeviceCheck);
|
|
9
|
-
const entries = await Promise.all(valid.map(async (d) => [d.id, await pingRemote({ url: d.url, token: d.token })]));
|
|
10
|
-
return Object.fromEntries(entries);
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=devices.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"devices.js","sourceRoot":"","sources":["../../src/dashboard-rpc/devices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAcvD,SAAS,aAAa,CAAC,KAAc;IACnC,MAAM,CAAC,GAAG,KAAoC,CAAA;IAC9C,OAAO,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC,CAAC,EAAE,KAAK,QAAQ,IAAI,OAAO,CAAC,CAAC,GAAG,KAAK,QAAQ,IAAI,OAAO,CAAC,CAAC,KAAK,KAAK,QAAQ,CAAA;AACpG,CAAC;AAED,qGAAqG;AACrG,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,OAAsB;IACvD,MAAM,KAAK,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAA;IAC3E,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,EAAC,CAAC,EAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,MAAM,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,CAAU,CAAC,CAAC,CAAA;IAC1H,OAAO,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,CAAA;AACpC,CAAC"}
|
package/dist/install.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { type GitRunner } from '@openagt/agent-data';
|
|
2
|
-
import { type StoreFs } from './store/index.js';
|
|
3
|
-
/**
|
|
4
|
-
* Install/activate a repo for OpenAgent (#391): create the `.openagent/` marker and its
|
|
5
|
-
* ignore file. Nothing is committed on a branch that has a commit. Pure core over the same
|
|
6
|
-
* {@link GitRunner} + {@link StoreFs} seams as project.ts.
|
|
7
|
-
*/
|
|
8
|
-
/** The message of the empty commit an install gives a repository that has none. */
|
|
9
|
-
export declare const FIRST_COMMIT_MESSAGE = "[OpenAgent] first commit";
|
|
10
|
-
/** The outcome of {@link installProject}. Failures are values, never throws. */
|
|
11
|
-
export type InstallResult = {
|
|
12
|
-
ok: true;
|
|
13
|
-
alreadyActivated?: boolean;
|
|
14
|
-
initialized?: boolean;
|
|
15
|
-
} | {
|
|
16
|
-
ok: false;
|
|
17
|
-
error: string;
|
|
18
|
-
};
|
|
19
|
-
/** Injectable seams for {@link installProject}. */
|
|
20
|
-
export interface InstallDeps {
|
|
21
|
-
git?: GitRunner;
|
|
22
|
-
fs?: StoreFs;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Activate the repo at `cwd`: create `.openagent/` with its ignore file, which hides the whole
|
|
26
|
-
* directory from git, itself included, so the person's repository shows no change. A repo whose
|
|
27
|
-
* ignore file is already there is a no-op (`alreadyActivated`) — the ignore file is the
|
|
28
|
-
* activation marker. Forgiving: any git/fs failure surfaces as `{ ok: false, error }`.
|
|
29
|
-
*/
|
|
30
|
-
export declare function installProject(cwd: string, deps?: InstallDeps): Promise<InstallResult>;
|
|
31
|
-
//# sourceMappingURL=install.d.ts.map
|
package/dist/install.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../src/install.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAGnE,OAAO,EAAe,KAAK,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAG5D;;;;GAIG;AAEH,mFAAmF;AACnF,eAAO,MAAM,oBAAoB,6BAA6B,CAAA;AAK9D,gFAAgF;AAChF,MAAM,MAAM,aAAa,GACrB;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,GAC/D;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAEhC,mDAAmD;AACnD,MAAM,WAAW,WAAW;IAC1B,GAAG,CAAC,EAAE,SAAS,CAAA;IACf,EAAE,CAAC,EAAE,OAAO,CAAA;CACb;AAED;;;;;GAKG;AACH,wBAAsB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,WAAgB,GAAG,OAAO,CAAC,aAAa,CAAC,CAgChG"}
|
package/dist/install.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { join } from 'node:path';
|
|
2
|
-
import { nodeGitRunner } from '@openagt/agent-data';
|
|
3
|
-
import { OPENAGENT_DIR } from './openagent-dir.js';
|
|
4
|
-
import { openagentGitignore, gitignorePath } from './openagent-gitignore.js';
|
|
5
|
-
import { nodeStoreFs } from './store/index.js';
|
|
6
|
-
import { errorMessage } from './error-message.js';
|
|
7
|
-
/**
|
|
8
|
-
* Install/activate a repo for OpenAgent (#391): create the `.openagent/` marker and its
|
|
9
|
-
* ignore file. Nothing is committed on a branch that has a commit. Pure core over the same
|
|
10
|
-
* {@link GitRunner} + {@link StoreFs} seams as project.ts.
|
|
11
|
-
*/
|
|
12
|
-
/** The message of the empty commit an install gives a repository that has none. */
|
|
13
|
-
export const FIRST_COMMIT_MESSAGE = '[OpenAgent] first commit';
|
|
14
|
-
/** Git's tree with no file in it. */
|
|
15
|
-
const EMPTY_TREE = '4b825dc642cb6eb9a060e54bf8d69288fbee4904';
|
|
16
|
-
/**
|
|
17
|
-
* Activate the repo at `cwd`: create `.openagent/` with its ignore file, which hides the whole
|
|
18
|
-
* directory from git, itself included, so the person's repository shows no change. A repo whose
|
|
19
|
-
* ignore file is already there is a no-op (`alreadyActivated`) — the ignore file is the
|
|
20
|
-
* activation marker. Forgiving: any git/fs failure surfaces as `{ ok: false, error }`.
|
|
21
|
-
*/
|
|
22
|
-
export async function installProject(cwd, deps = {}) {
|
|
23
|
-
const git = deps.git ?? nodeGitRunner();
|
|
24
|
-
const fs = deps.fs ?? nodeStoreFs();
|
|
25
|
-
if (await fs.exists(gitignorePath(cwd)))
|
|
26
|
-
return { ok: true, alreadyActivated: true };
|
|
27
|
-
try {
|
|
28
|
-
// Auto-initialize a repo when the folder isn't one yet: OpenAgent treats
|
|
29
|
-
// git as the source of truth, so `git init` it for the user rather than erroring.
|
|
30
|
-
const insideRepo = await git(['rev-parse', '--is-inside-work-tree'], cwd)
|
|
31
|
-
.then(out => out.trim() === 'true')
|
|
32
|
-
.catch(() => false);
|
|
33
|
-
if (!insideRepo)
|
|
34
|
-
await git(['init'], cwd);
|
|
35
|
-
// A repository with no commit cannot give an agent's branch a start. Its first commit is
|
|
36
|
-
// made empty, straight from the empty tree: the index is not read, so a file the person has
|
|
37
|
-
// staged stays staged and none of theirs is committed. Before the marker below, so a commit
|
|
38
|
-
// that fails leaves a folder the next add tries again.
|
|
39
|
-
const hasCommit = await git(['rev-parse', '--verify', '--quiet', 'HEAD'], cwd).then(() => true, () => false);
|
|
40
|
-
if (!hasCommit) {
|
|
41
|
-
const first = (await git(['commit-tree', EMPTY_TREE, '-m', FIRST_COMMIT_MESSAGE], cwd)).trim();
|
|
42
|
-
await git(['update-ref', 'HEAD', first], cwd);
|
|
43
|
-
}
|
|
44
|
-
await fs.mkdir(join(cwd, OPENAGENT_DIR));
|
|
45
|
-
// Keep what lives under `.openagent/` (a run's live files, the hooks file) out of git
|
|
46
|
-
// (#313). The early return above established the file is absent.
|
|
47
|
-
await fs.write(gitignorePath(cwd), openagentGitignore());
|
|
48
|
-
return insideRepo ? { ok: true } : { ok: true, initialized: true };
|
|
49
|
-
}
|
|
50
|
-
catch (err) {
|
|
51
|
-
return { ok: false, error: errorMessage(err) };
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
//# sourceMappingURL=install.js.map
|
package/dist/install.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"install.js","sourceRoot":"","sources":["../src/install.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,aAAa,EAAkB,MAAM,qBAAqB,CAAA;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAC5E,OAAO,EAAE,WAAW,EAAgB,MAAM,kBAAkB,CAAA;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEjD;;;;GAIG;AAEH,mFAAmF;AACnF,MAAM,CAAC,MAAM,oBAAoB,GAAG,0BAA0B,CAAA;AAE9D,qCAAqC;AACrC,MAAM,UAAU,GAAG,0CAA0C,CAAA;AAa7D;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,GAAW,EAAE,IAAI,GAAgB,EAAE;IACtE,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,IAAI,aAAa,EAAE,CAAA;IACvC,MAAM,EAAE,GAAG,IAAI,CAAC,EAAE,IAAI,WAAW,EAAE,CAAA;IAEnC,IAAI,MAAM,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;QAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,CAAA;IAEpF,IAAI,CAAC;QACH,yEAAyE;QACzE,kFAAkF;QAClF,MAAM,UAAU,GAAG,MAAM,GAAG,CAAC,CAAC,WAAW,EAAE,uBAAuB,CAAC,EAAE,GAAG,CAAC;aACtE,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,MAAM,CAAC;aAClC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAA;QACrB,IAAI,CAAC,UAAU;YAAE,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,CAAA;QAEzC,yFAAyF;QACzF,4FAA4F;QAC5F,4FAA4F;QAC5F,uDAAuD;QACvD,MAAM,SAAS,GAAG,MAAM,GAAG,CAAC,CAAC,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,CAAA;QAC5G,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,MAAM,KAAK,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,aAAa,EAAE,UAAU,EAAE,IAAI,EAAE,oBAAoB,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,CAAA;YAC9F,MAAM,GAAG,CAAC,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,GAAG,CAAC,CAAA;QAC/C,CAAC;QAED,MAAM,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC,CAAA;QACxC,sFAAsF;QACtF,iEAAiE;QACjE,MAAM,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE,kBAAkB,EAAE,CAAC,CAAA;QACxD,OAAO,UAAU,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,CAAA;IACpE,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,YAAY,CAAC,GAAG,CAAC,EAAE,CAAA;IAChD,CAAC;AACH,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/** One device to health-check: its profile id plus the origin and token to reach it with. */
|
|
2
|
-
export interface DeviceCheck {
|
|
3
|
-
id: string;
|
|
4
|
-
url: string;
|
|
5
|
-
token: string;
|
|
6
|
-
}
|
|
7
|
-
/** Ping each saved device and map its id to whether it answered (#1072). Bad entries are dropped. */
|
|
8
|
-
export declare function checkDevices(devices: DeviceCheck[]): Promise<Record<string, boolean>>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The `.openagent/.gitignore` (#313): one file, one content, written at install.
|
|
3
|
-
*
|
|
4
|
-
* Everything under `.openagent/` is this machine's or transient: a run's live files, the
|
|
5
|
-
* hooks file. The lasting records (the runs, the `logs` skill's) live on the data branch
|
|
6
|
-
* (#1582/#1769), so nothing is tracked, this file included: git shows no trace of the directory.
|
|
7
|
-
*/
|
|
8
|
-
/** The `.gitignore` path under `cwd`'s `.openagent/`. */
|
|
9
|
-
export declare function gitignorePath(cwd: string): string;
|
|
10
|
-
/** The whole file: everything under `.openagent/` stays out of git, the file itself too (#1582). */
|
|
11
|
-
export declare function openagentGitignore(): string;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The `.openagent/.gitignore` (#313): one file, one content, written at install.
|
|
3
|
-
*
|
|
4
|
-
* Everything under `.openagent/` is this machine's or transient: a run's live files, the
|
|
5
|
-
* hooks file. The lasting records (the runs, the `logs` skill's) live on the data branch
|
|
6
|
-
* (#1582/#1769), so nothing is tracked, this file included: git shows no trace of the directory.
|
|
7
|
-
*/
|
|
8
|
-
/** The `.gitignore` path under `cwd`'s `.openagent/`. */
|
|
9
|
-
export declare function gitignorePath(cwd: string): string;
|
|
10
|
-
/** The whole file: everything under `.openagent/` stays out of git, the file itself too (#1582). */
|
|
11
|
-
export declare function openagentGitignore(): string;
|
|
12
|
-
//# sourceMappingURL=openagent-gitignore.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"openagent-gitignore.d.ts","sourceRoot":"","sources":["../src/openagent-gitignore.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AAEH,yDAAyD;AACzD,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEjD;AAED,oGAAoG;AACpG,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { join } from 'node:path';
|
|
2
|
-
import { DATA_BRANCH } from '@openagt/agent-data/names';
|
|
3
|
-
import { OPENAGENT_DIR } from './openagent-dir.js';
|
|
4
|
-
/**
|
|
5
|
-
* The `.openagent/.gitignore` (#313): one file, one content, written at install.
|
|
6
|
-
*
|
|
7
|
-
* Everything under `.openagent/` is this machine's or transient: a run's live files, the
|
|
8
|
-
* hooks file. The lasting records (the runs, the `logs` skill's) live on the data branch
|
|
9
|
-
* (#1582/#1769), so nothing is tracked, this file included: git shows no trace of the directory.
|
|
10
|
-
*/
|
|
11
|
-
/** The `.gitignore` path under `cwd`'s `.openagent/`. */
|
|
12
|
-
export function gitignorePath(cwd) {
|
|
13
|
-
return join(cwd, OPENAGENT_DIR, '.gitignore');
|
|
14
|
-
}
|
|
15
|
-
/** The whole file: everything under `.openagent/` stays out of git, the file itself too (#1582). */
|
|
16
|
-
export function openagentGitignore() {
|
|
17
|
-
return `# OpenAgent: agent state is transient; the lasting records live on the ${DATA_BRANCH} branch.\n*\n`;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=openagent-gitignore.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"openagent-gitignore.js","sourceRoot":"","sources":["../src/openagent-gitignore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAElD;;;;;;GAMG;AAEH,yDAAyD;AACzD,MAAM,UAAU,aAAa,CAAC,GAAW;IACvC,OAAO,IAAI,CAAC,GAAG,EAAE,aAAa,EAAE,YAAY,CAAC,CAAA;AAC/C,CAAC;AAED,oGAAoG;AACpG,MAAM,UAAU,kBAAkB;IAChC,OAAO,0EAA0E,WAAW,eAAe,CAAA;AAC7G,CAAC"}
|