@made-by-moonlight/athene-core 0.9.1
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/LICENSE +22 -0
- package/README.md +241 -0
- package/dist/activity-events.d.ts +42 -0
- package/dist/activity-events.d.ts.map +1 -0
- package/dist/activity-events.js +192 -0
- package/dist/activity-events.js.map +1 -0
- package/dist/activity-log.d.ts +71 -0
- package/dist/activity-log.d.ts.map +1 -0
- package/dist/activity-log.js +203 -0
- package/dist/activity-log.js.map +1 -0
- package/dist/activity-signal.d.ts +20 -0
- package/dist/activity-signal.d.ts.map +1 -0
- package/dist/activity-signal.js +91 -0
- package/dist/activity-signal.js.map +1 -0
- package/dist/agent-report.d.ts +148 -0
- package/dist/agent-report.d.ts.map +1 -0
- package/dist/agent-report.js +516 -0
- package/dist/agent-report.js.map +1 -0
- package/dist/agent-selection.d.ts +31 -0
- package/dist/agent-selection.d.ts.map +1 -0
- package/dist/agent-selection.js +69 -0
- package/dist/agent-selection.js.map +1 -0
- package/dist/agent-workspace-hooks.d.ts +74 -0
- package/dist/agent-workspace-hooks.d.ts.map +1 -0
- package/dist/agent-workspace-hooks.js +988 -0
- package/dist/agent-workspace-hooks.js.map +1 -0
- package/dist/atomic-write.d.ts +6 -0
- package/dist/atomic-write.d.ts.map +1 -0
- package/dist/atomic-write.js +49 -0
- package/dist/atomic-write.js.map +1 -0
- package/dist/cleanup-stack.d.ts +37 -0
- package/dist/cleanup-stack.d.ts.map +1 -0
- package/dist/cleanup-stack.js +45 -0
- package/dist/cleanup-stack.js.map +1 -0
- package/dist/code-review-manager.d.ts +118 -0
- package/dist/code-review-manager.d.ts.map +1 -0
- package/dist/code-review-manager.js +719 -0
- package/dist/code-review-manager.js.map +1 -0
- package/dist/code-review-store.d.ts +114 -0
- package/dist/code-review-store.d.ts.map +1 -0
- package/dist/code-review-store.js +346 -0
- package/dist/code-review-store.js.map +1 -0
- package/dist/config-generator.d.ts +84 -0
- package/dist/config-generator.d.ts.map +1 -0
- package/dist/config-generator.js +295 -0
- package/dist/config-generator.js.map +1 -0
- package/dist/config.d.ts +55 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +852 -0
- package/dist/config.js.map +1 -0
- package/dist/daemon-children.d.ts +55 -0
- package/dist/daemon-children.d.ts.map +1 -0
- package/dist/daemon-children.js +435 -0
- package/dist/daemon-children.js.map +1 -0
- package/dist/dashboard-notifications.d.ts +42 -0
- package/dist/dashboard-notifications.d.ts.map +1 -0
- package/dist/dashboard-notifications.js +123 -0
- package/dist/dashboard-notifications.js.map +1 -0
- package/dist/events-db.d.ts +39 -0
- package/dist/events-db.d.ts.map +1 -0
- package/dist/events-db.js +185 -0
- package/dist/events-db.js.map +1 -0
- package/dist/feature-flags.d.ts +2 -0
- package/dist/feature-flags.d.ts.map +1 -0
- package/dist/feature-flags.js +9 -0
- package/dist/feature-flags.js.map +1 -0
- package/dist/feedback-tools.d.ts +97 -0
- package/dist/feedback-tools.d.ts.map +1 -0
- package/dist/feedback-tools.js +161 -0
- package/dist/feedback-tools.js.map +1 -0
- package/dist/file-lock.d.ts +5 -0
- package/dist/file-lock.d.ts.map +1 -0
- package/dist/file-lock.js +59 -0
- package/dist/file-lock.js.map +1 -0
- package/dist/format-automated-comments.d.ts +18 -0
- package/dist/format-automated-comments.d.ts.map +1 -0
- package/dist/gh-trace.d.ts +57 -0
- package/dist/gh-trace.d.ts.map +1 -0
- package/dist/gh-trace.js +320 -0
- package/dist/gh-trace.js.map +1 -0
- package/dist/git-activity.d.ts +10 -0
- package/dist/git-activity.d.ts.map +1 -0
- package/dist/git-activity.js +30 -0
- package/dist/git-activity.js.map +1 -0
- package/dist/global-config.d.ts +1085 -0
- package/dist/global-config.d.ts.map +1 -0
- package/dist/global-config.js +1067 -0
- package/dist/global-config.js.map +1 -0
- package/dist/index.d.ts +91 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +59 -0
- package/dist/index.js.map +1 -0
- package/dist/key-value.d.ts +7 -0
- package/dist/key-value.d.ts.map +1 -0
- package/dist/key-value.js +24 -0
- package/dist/key-value.js.map +1 -0
- package/dist/lifecycle-manager.d.ts +22 -0
- package/dist/lifecycle-manager.d.ts.map +1 -0
- package/dist/lifecycle-manager.js +2813 -0
- package/dist/lifecycle-manager.js.map +1 -0
- package/dist/lifecycle-state.d.ts +28 -0
- package/dist/lifecycle-state.d.ts.map +1 -0
- package/dist/lifecycle-state.js +446 -0
- package/dist/lifecycle-state.js.map +1 -0
- package/dist/lifecycle-status-decisions.d.ts +85 -0
- package/dist/lifecycle-status-decisions.d.ts.map +1 -0
- package/dist/lifecycle-status-decisions.js +262 -0
- package/dist/lifecycle-status-decisions.js.map +1 -0
- package/dist/lifecycle-transition.d.ts +81 -0
- package/dist/lifecycle-transition.d.ts.map +1 -0
- package/dist/lifecycle-transition.js +207 -0
- package/dist/lifecycle-transition.js.map +1 -0
- package/dist/metadata.d.ts +54 -0
- package/dist/metadata.d.ts.map +1 -0
- package/dist/metadata.js +484 -0
- package/dist/metadata.js.map +1 -0
- package/dist/migration/storage-v2.d.ts +76 -0
- package/dist/migration/storage-v2.d.ts.map +1 -0
- package/dist/migration/storage-v2.js +1614 -0
- package/dist/migration/storage-v2.js.map +1 -0
- package/dist/notification-data.d.ts +135 -0
- package/dist/notification-data.d.ts.map +1 -0
- package/dist/notification-data.js +204 -0
- package/dist/notification-data.js.map +1 -0
- package/dist/notification-observability.d.ts +21 -0
- package/dist/notification-observability.d.ts.map +1 -0
- package/dist/notification-observability.js +154 -0
- package/dist/notification-observability.js.map +1 -0
- package/dist/notifier-resolution.d.ts +14 -0
- package/dist/notifier-resolution.d.ts.map +1 -0
- package/dist/notifier-resolution.js +23 -0
- package/dist/notifier-resolution.js.map +1 -0
- package/dist/observability.d.ts +100 -0
- package/dist/observability.d.ts.map +1 -0
- package/dist/observability.js +535 -0
- package/dist/observability.js.map +1 -0
- package/dist/opencode-agents-md.d.ts +3 -0
- package/dist/opencode-agents-md.d.ts.map +1 -0
- package/dist/opencode-agents-md.js +40 -0
- package/dist/opencode-agents-md.js.map +1 -0
- package/dist/opencode-config.d.ts +2 -0
- package/dist/opencode-config.d.ts.map +1 -0
- package/dist/opencode-config.js +17 -0
- package/dist/opencode-config.js.map +1 -0
- package/dist/opencode-session-id.d.ts +2 -0
- package/dist/opencode-session-id.d.ts.map +1 -0
- package/dist/opencode-session-id.js +12 -0
- package/dist/opencode-session-id.js.map +1 -0
- package/dist/opencode-shared.d.ts +80 -0
- package/dist/opencode-shared.d.ts.map +1 -0
- package/dist/opencode-shared.js +202 -0
- package/dist/opencode-shared.js.map +1 -0
- package/dist/orchestrator-prompt.d.ts +19 -0
- package/dist/orchestrator-prompt.d.ts.map +1 -0
- package/dist/orchestrator-prompt.js +130 -0
- package/dist/orchestrator-prompt.js.map +1 -0
- package/dist/orchestrator-session-strategy.d.ts +5 -0
- package/dist/orchestrator-session-strategy.d.ts.map +1 -0
- package/dist/orchestrator-session-strategy.js +13 -0
- package/dist/orchestrator-session-strategy.js.map +1 -0
- package/dist/paths.d.ts +145 -0
- package/dist/paths.d.ts.map +1 -0
- package/dist/paths.js +288 -0
- package/dist/paths.js.map +1 -0
- package/dist/platform.d.ts +32 -0
- package/dist/platform.d.ts.map +1 -0
- package/dist/platform.js +211 -0
- package/dist/platform.js.map +1 -0
- package/dist/plugin-registry.d.ts +15 -0
- package/dist/plugin-registry.d.ts.map +1 -0
- package/dist/plugin-registry.js +499 -0
- package/dist/plugin-registry.js.map +1 -0
- package/dist/portfolio-projects.d.ts +7 -0
- package/dist/portfolio-projects.d.ts.map +1 -0
- package/dist/portfolio-projects.js +65 -0
- package/dist/portfolio-projects.js.map +1 -0
- package/dist/portfolio-registry.d.ts +42 -0
- package/dist/portfolio-registry.d.ts.map +1 -0
- package/dist/portfolio-registry.js +311 -0
- package/dist/portfolio-registry.js.map +1 -0
- package/dist/portfolio-routing.d.ts +5 -0
- package/dist/portfolio-routing.d.ts.map +1 -0
- package/dist/portfolio-routing.js +24 -0
- package/dist/portfolio-routing.js.map +1 -0
- package/dist/portfolio-session-service.d.ts +15 -0
- package/dist/portfolio-session-service.d.ts.map +1 -0
- package/dist/portfolio-session-service.js +206 -0
- package/dist/portfolio-session-service.js.map +1 -0
- package/dist/process-cache.d.ts +32 -0
- package/dist/process-cache.d.ts.map +1 -0
- package/dist/process-cache.js +44 -0
- package/dist/process-cache.js.map +1 -0
- package/dist/project-resolver.d.ts +5 -0
- package/dist/project-resolver.d.ts.map +1 -0
- package/dist/project-resolver.js +20 -0
- package/dist/project-resolver.js.map +1 -0
- package/dist/prompt-builder.d.ts +42 -0
- package/dist/prompt-builder.d.ts.map +1 -0
- package/dist/prompt-builder.js +182 -0
- package/dist/prompt-builder.js.map +1 -0
- package/dist/prompts/orchestrator.md.js +4 -0
- package/dist/prompts/orchestrator.md.js.map +1 -0
- package/dist/query-activity-events.d.ts +42 -0
- package/dist/query-activity-events.d.ts.map +1 -0
- package/dist/query-activity-events.js +170 -0
- package/dist/query-activity-events.js.map +1 -0
- package/dist/recovery/actions.d.ts +7 -0
- package/dist/recovery/actions.d.ts.map +1 -0
- package/dist/recovery/index.d.ts +8 -0
- package/dist/recovery/index.d.ts.map +1 -0
- package/dist/recovery/logger.d.ts +12 -0
- package/dist/recovery/logger.d.ts.map +1 -0
- package/dist/recovery/manager.d.ts +24 -0
- package/dist/recovery/manager.d.ts.map +1 -0
- package/dist/recovery/scanner.d.ts +11 -0
- package/dist/recovery/scanner.d.ts.map +1 -0
- package/dist/recovery/types.d.ts +170 -0
- package/dist/recovery/types.d.ts.map +1 -0
- package/dist/recovery/validator.d.ts +8 -0
- package/dist/recovery/validator.d.ts.map +1 -0
- package/dist/report-watcher.d.ts +93 -0
- package/dist/report-watcher.d.ts.map +1 -0
- package/dist/report-watcher.js +182 -0
- package/dist/report-watcher.js.map +1 -0
- package/dist/scm-webhook-utils.d.ts +6 -0
- package/dist/scm-webhook-utils.d.ts.map +1 -0
- package/dist/scm-webhook-utils.js +36 -0
- package/dist/scm-webhook-utils.js.map +1 -0
- package/dist/session-manager.d.ts +22 -0
- package/dist/session-manager.d.ts.map +1 -0
- package/dist/session-manager.js +3077 -0
- package/dist/session-manager.js.map +1 -0
- package/dist/spawn-target.d.ts +23 -0
- package/dist/spawn-target.d.ts.map +1 -0
- package/dist/spawn-target.js +39 -0
- package/dist/spawn-target.js.map +1 -0
- package/dist/storage-key.d.ts +9 -0
- package/dist/storage-key.d.ts.map +1 -0
- package/dist/storage-key.js +59 -0
- package/dist/storage-key.js.map +1 -0
- package/dist/tmux.d.ts +39 -0
- package/dist/tmux.d.ts.map +1 -0
- package/dist/tmux.js +141 -0
- package/dist/tmux.js.map +1 -0
- package/dist/types.d.ts +1496 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +215 -0
- package/dist/types.js.map +1 -0
- package/dist/update-cache.d.ts +59 -0
- package/dist/update-cache.d.ts.map +1 -0
- package/dist/update-cache.js +77 -0
- package/dist/update-cache.js.map +1 -0
- package/dist/utils/metadata-flatten.d.ts +3 -0
- package/dist/utils/metadata-flatten.d.ts.map +1 -0
- package/dist/utils/metadata-flatten.js +18 -0
- package/dist/utils/metadata-flatten.js.map +1 -0
- package/dist/utils/pr.d.ts +7 -0
- package/dist/utils/pr.d.ts.map +1 -0
- package/dist/utils/pr.js +97 -0
- package/dist/utils/pr.js.map +1 -0
- package/dist/utils/session-from-metadata.d.ts +16 -0
- package/dist/utils/session-from-metadata.d.ts.map +1 -0
- package/dist/utils/session-from-metadata.js +87 -0
- package/dist/utils/session-from-metadata.js.map +1 -0
- package/dist/utils/session-id.d.ts +4 -0
- package/dist/utils/session-id.d.ts.map +1 -0
- package/dist/utils/session-id.js +9 -0
- package/dist/utils/session-id.js.map +1 -0
- package/dist/utils/validation.d.ts +9 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/dist/utils/validation.js +45 -0
- package/dist/utils/validation.js.map +1 -0
- package/dist/utils.d.ts +65 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +189 -0
- package/dist/utils.js.map +1 -0
- package/dist/version-compare.d.ts +27 -0
- package/dist/version-compare.d.ts.map +1 -0
- package/dist/version-compare.js +121 -0
- package/dist/version-compare.js.map +1 -0
- package/dist/windows-pty-registry.d.ts +27 -0
- package/dist/windows-pty-registry.d.ts.map +1 -0
- package/dist/windows-pty-registry.js +109 -0
- package/dist/windows-pty-registry.js.map +1 -0
- package/package.json +110 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { unlinkSync, existsSync, readFileSync } from 'node:fs';
|
|
2
|
+
import { homedir } from 'node:os';
|
|
3
|
+
import { join } from 'node:path';
|
|
4
|
+
import { atomicWriteFileSync } from './atomic-write.js';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Sideband registry of live Windows pty-host processes.
|
|
8
|
+
*
|
|
9
|
+
* The runtime-process plugin spawns each pty-host with `detached: true` so it
|
|
10
|
+
* survives parent exit (mirroring the tmux daemon model on Linux). That same
|
|
11
|
+
* detachment means `taskkill /T /F /PID <ao_pid>` cannot reach pty-hosts —
|
|
12
|
+
* they're in their own console group, outside the parent's process tree.
|
|
13
|
+
*
|
|
14
|
+
* Per-session JSON metadata also can't be the source of truth for cleanup:
|
|
15
|
+
* if a worktree is rm-rf'd or session JSON is lost (legacy storage cleanup,
|
|
16
|
+
* crash mid-write, manual recovery), the runtime-side processes become
|
|
17
|
+
* unreachable and `athene stop` orphans them silently.
|
|
18
|
+
*
|
|
19
|
+
* This registry is a flat list at `~/.agent-orchestrator/windows-pty-hosts.json`
|
|
20
|
+
* that AO writes on spawn and reads on `athene stop` (and on next `athene start`'s
|
|
21
|
+
* orphan sweep, future work). It exists outside session JSON so cleanup of
|
|
22
|
+
* sessions never severs AO's ability to find and graceful-kill the hosts.
|
|
23
|
+
*
|
|
24
|
+
* Reads auto-prune entries whose PID is no longer alive.
|
|
25
|
+
*/
|
|
26
|
+
// Resolved lazily so tests that mock node:os (vitest mock factories run after
|
|
27
|
+
// module evaluation) can override `homedir()` before the first read/write.
|
|
28
|
+
function getRegistryFile() {
|
|
29
|
+
return join(homedir(), ".agent-orchestrator", "windows-pty-hosts.json");
|
|
30
|
+
}
|
|
31
|
+
function readRaw() {
|
|
32
|
+
const file = getRegistryFile();
|
|
33
|
+
if (!existsSync(file))
|
|
34
|
+
return [];
|
|
35
|
+
try {
|
|
36
|
+
const parsed = JSON.parse(readFileSync(file, "utf-8"));
|
|
37
|
+
if (!Array.isArray(parsed))
|
|
38
|
+
return [];
|
|
39
|
+
return parsed.filter((e) => typeof e === "object" &&
|
|
40
|
+
e !== null &&
|
|
41
|
+
typeof e.sessionId === "string" &&
|
|
42
|
+
typeof e.ptyHostPid === "number" &&
|
|
43
|
+
typeof e.pipePath === "string");
|
|
44
|
+
}
|
|
45
|
+
catch {
|
|
46
|
+
return [];
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
function writeRaw(entries) {
|
|
50
|
+
const file = getRegistryFile();
|
|
51
|
+
if (entries.length === 0) {
|
|
52
|
+
try {
|
|
53
|
+
unlinkSync(file);
|
|
54
|
+
}
|
|
55
|
+
catch {
|
|
56
|
+
/* file may not exist */
|
|
57
|
+
}
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
atomicWriteFileSync(file, JSON.stringify(entries, null, 2));
|
|
61
|
+
}
|
|
62
|
+
function isAlive(pid) {
|
|
63
|
+
try {
|
|
64
|
+
process.kill(pid, 0);
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
catch (err) {
|
|
68
|
+
return err.code === "EPERM";
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Add (or replace) an entry for a freshly-spawned pty-host.
|
|
73
|
+
* If a stale entry for the same `sessionId` exists, it's overwritten.
|
|
74
|
+
*/
|
|
75
|
+
function registerWindowsPtyHost(entry) {
|
|
76
|
+
const next = readRaw().filter((e) => e.sessionId !== entry.sessionId);
|
|
77
|
+
next.push({ ...entry, registeredAt: new Date().toISOString() });
|
|
78
|
+
writeRaw(next);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Remove an entry by `sessionId`. No-op if absent.
|
|
82
|
+
*/
|
|
83
|
+
function unregisterWindowsPtyHost(sessionId) {
|
|
84
|
+
const before = readRaw();
|
|
85
|
+
const next = before.filter((e) => e.sessionId !== sessionId);
|
|
86
|
+
if (next.length === before.length)
|
|
87
|
+
return;
|
|
88
|
+
writeRaw(next);
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Read all live entries, auto-pruning entries whose PID is no longer alive.
|
|
92
|
+
* The on-disk file is rewritten if any entries were pruned.
|
|
93
|
+
*/
|
|
94
|
+
function getWindowsPtyHosts() {
|
|
95
|
+
const all = readRaw();
|
|
96
|
+
const live = all.filter((e) => isAlive(e.ptyHostPid));
|
|
97
|
+
if (live.length !== all.length)
|
|
98
|
+
writeRaw(live);
|
|
99
|
+
return live;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Best-effort: delete the entire registry file. Used for tests and recovery.
|
|
103
|
+
*/
|
|
104
|
+
function clearWindowsPtyHostRegistry() {
|
|
105
|
+
writeRaw([]);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export { clearWindowsPtyHostRegistry, getWindowsPtyHosts, registerWindowsPtyHost, unregisterWindowsPtyHost };
|
|
109
|
+
//# sourceMappingURL=windows-pty-registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"windows-pty-registry.js","sources":["../src/windows-pty-registry.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAAA;;;;;;;;;;;;;;;;;;;AAmBG;AAaH;AACA;AACA,SAAS,eAAe,GAAA;IACtB,OAAO,IAAI,CAAC,OAAO,EAAE,EAAE,qBAAqB,EAAE,wBAAwB,CAAC;AACzE;AAEA,SAAS,OAAO,GAAA;AACd,IAAA,MAAM,IAAI,GAAG,eAAe,EAAE;AAC9B,IAAA,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;AAAE,QAAA,OAAO,EAAE;AAChC,IAAA,IAAI;AACF,QAAA,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,CAAY;AACjE,QAAA,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;AAAE,YAAA,OAAO,EAAE;AACrC,QAAA,OAAO,MAAM,CAAC,MAAM,CAClB,CAAC,CAAC,KACA,OAAO,CAAC,KAAK,QAAQ;AACrB,YAAA,CAAC,KAAK,IAAI;AACV,YAAA,OAAQ,CAAyB,CAAC,SAAS,KAAK,QAAQ;AACxD,YAAA,OAAQ,CAAyB,CAAC,UAAU,KAAK,QAAQ;AACzD,YAAA,OAAQ,CAAyB,CAAC,QAAQ,KAAK,QAAQ,CAC1D;IACH;AAAE,IAAA,MAAM;AACN,QAAA,OAAO,EAAE;IACX;AACF;AAEA,SAAS,QAAQ,CAAC,OAA8B,EAAA;AAC9C,IAAA,MAAM,IAAI,GAAG,eAAe,EAAE;AAC9B,IAAA,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE;AACxB,QAAA,IAAI;YACF,UAAU,CAAC,IAAI,CAAC;QAClB;AAAE,QAAA,MAAM;;QAER;QACA;IACF;AACA,IAAA,mBAAmB,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;AAC7D;AAEA,SAAS,OAAO,CAAC,GAAW,EAAA;AAC1B,IAAA,IAAI;AACF,QAAA,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;AACpB,QAAA,OAAO,IAAI;IACb;IAAE,OAAO,GAAY,EAAE;AACrB,QAAA,OAAQ,GAAyB,CAAC,IAAI,KAAK,OAAO;IACpD;AACF;AAEA;;;AAGG;AACG,SAAU,sBAAsB,CAAC,KAAgD,EAAA;IACrF,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,KAAK,KAAK,CAAC,SAAS,CAAC;AACrE,IAAA,IAAI,CAAC,IAAI,CAAC,EAAE,GAAG,KAAK,EAAE,YAAY,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC;IAC/D,QAAQ,CAAC,IAAI,CAAC;AAChB;AAEA;;AAEG;AACG,SAAU,wBAAwB,CAAC,SAAiB,EAAA;AACxD,IAAA,MAAM,MAAM,GAAG,OAAO,EAAE;AACxB,IAAA,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,KAAK,SAAS,CAAC;AAC5D,IAAA,IAAI,IAAI,CAAC,MAAM,KAAK,MAAM,CAAC,MAAM;QAAE;IACnC,QAAQ,CAAC,IAAI,CAAC;AAChB;AAEA;;;AAGG;SACa,kBAAkB,GAAA;AAChC,IAAA,MAAM,GAAG,GAAG,OAAO,EAAE;AACrB,IAAA,MAAM,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;AACrD,IAAA,IAAI,IAAI,CAAC,MAAM,KAAK,GAAG,CAAC,MAAM;QAAE,QAAQ,CAAC,IAAI,CAAC;AAC9C,IAAA,OAAO,IAAI;AACb;AAEA;;AAEG;SACa,2BAA2B,GAAA;IACzC,QAAQ,CAAC,EAAE,CAAC;AACd;;;;"}
|
package/package.json
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@made-by-moonlight/athene-core",
|
|
3
|
+
"version": "0.9.1",
|
|
4
|
+
"description": "Core library — types, config, session manager, lifecycle manager, event bus",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "dist/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./activity-log": {
|
|
15
|
+
"types": "./dist/activity-log.d.ts",
|
|
16
|
+
"import": "./dist/activity-log.js"
|
|
17
|
+
},
|
|
18
|
+
"./config": {
|
|
19
|
+
"types": "./dist/config.d.ts",
|
|
20
|
+
"import": "./dist/config.js"
|
|
21
|
+
},
|
|
22
|
+
"./lifecycle-manager": {
|
|
23
|
+
"types": "./dist/lifecycle-manager.d.ts",
|
|
24
|
+
"import": "./dist/lifecycle-manager.js"
|
|
25
|
+
},
|
|
26
|
+
"./metadata": {
|
|
27
|
+
"types": "./dist/metadata.d.ts",
|
|
28
|
+
"import": "./dist/metadata.js"
|
|
29
|
+
},
|
|
30
|
+
"./observability": {
|
|
31
|
+
"types": "./dist/observability.d.ts",
|
|
32
|
+
"import": "./dist/observability.js"
|
|
33
|
+
},
|
|
34
|
+
"./orchestrator-prompt": {
|
|
35
|
+
"types": "./dist/orchestrator-prompt.d.ts",
|
|
36
|
+
"import": "./dist/orchestrator-prompt.js"
|
|
37
|
+
},
|
|
38
|
+
"./paths": {
|
|
39
|
+
"types": "./dist/paths.d.ts",
|
|
40
|
+
"import": "./dist/paths.js"
|
|
41
|
+
},
|
|
42
|
+
"./plugin-registry": {
|
|
43
|
+
"types": "./dist/plugin-registry.d.ts",
|
|
44
|
+
"import": "./dist/plugin-registry.js"
|
|
45
|
+
},
|
|
46
|
+
"./types": {
|
|
47
|
+
"types": "./dist/types.d.ts",
|
|
48
|
+
"import": "./dist/types.js"
|
|
49
|
+
},
|
|
50
|
+
"./utils": {
|
|
51
|
+
"types": "./dist/utils.d.ts",
|
|
52
|
+
"import": "./dist/utils.js"
|
|
53
|
+
},
|
|
54
|
+
"./scm-webhook-utils": {
|
|
55
|
+
"types": "./dist/scm-webhook-utils.d.ts",
|
|
56
|
+
"import": "./dist/scm-webhook-utils.js"
|
|
57
|
+
},
|
|
58
|
+
"./session-manager": {
|
|
59
|
+
"types": "./dist/session-manager.d.ts",
|
|
60
|
+
"import": "./dist/session-manager.js"
|
|
61
|
+
},
|
|
62
|
+
"./migration": {
|
|
63
|
+
"types": "./dist/migration/storage-v2.d.ts",
|
|
64
|
+
"import": "./dist/migration/storage-v2.js"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"files": [
|
|
68
|
+
"dist"
|
|
69
|
+
],
|
|
70
|
+
"repository": {
|
|
71
|
+
"type": "git",
|
|
72
|
+
"url": "https://github.com/slievr/Athene.git",
|
|
73
|
+
"directory": "packages/core"
|
|
74
|
+
},
|
|
75
|
+
"homepage": "https://github.com/slievr/Athene",
|
|
76
|
+
"bugs": {
|
|
77
|
+
"url": "https://github.com/slievr/Athene/issues"
|
|
78
|
+
},
|
|
79
|
+
"engines": {
|
|
80
|
+
"node": ">=20.0.0"
|
|
81
|
+
},
|
|
82
|
+
"dependencies": {
|
|
83
|
+
"yaml": "^2.7.0",
|
|
84
|
+
"zod": "^3.24.0"
|
|
85
|
+
},
|
|
86
|
+
"optionalDependencies": {
|
|
87
|
+
"better-sqlite3": "^12.10.0"
|
|
88
|
+
},
|
|
89
|
+
"devDependencies": {
|
|
90
|
+
"@rollup/plugin-typescript": "^12.3.0",
|
|
91
|
+
"@types/better-sqlite3": "^7.6.0",
|
|
92
|
+
"@types/node": "^25.2.3",
|
|
93
|
+
"@vitest/coverage-v8": "^4.0.18",
|
|
94
|
+
"rollup": "^4.60.1",
|
|
95
|
+
"tslib": "^2.8.1",
|
|
96
|
+
"tsx": "^4.21.0",
|
|
97
|
+
"typescript": "^5.7.0",
|
|
98
|
+
"vitest": "^4.0.18"
|
|
99
|
+
},
|
|
100
|
+
"publishConfig": {
|
|
101
|
+
"access": "public"
|
|
102
|
+
},
|
|
103
|
+
"scripts": {
|
|
104
|
+
"build": "tsx ./node_modules/rollup/dist/bin/rollup -c rollup.config.ts",
|
|
105
|
+
"typecheck": "tsc --noEmit",
|
|
106
|
+
"test": "vitest run",
|
|
107
|
+
"test:watch": "vitest",
|
|
108
|
+
"clean": "rm -rf dist"
|
|
109
|
+
}
|
|
110
|
+
}
|