@noxsoft/anima 6.5.0 → 7.0.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/CHANGELOG.md +59 -0
- package/README.md +48 -0
- package/dist/{agent-VRQM14Xp.js → agent-BjD_hkGZ.js} +3 -3
- package/dist/{agent-CnS0SRpT.js → agent-PoYM2xa7.js} +4 -4
- package/dist/{agents-CvMRplDx.js → agents-y3HCk1ks.js} +4 -4
- package/dist/{anthropic-direct-runner-C2Kwju-r.js → anthropic-direct-runner-Bu8w-wlJ.js} +656 -4
- package/dist/{anthropic-direct-runner-BeYCnvZ8.js → anthropic-direct-runner-C5pnwYzT.js} +656 -3
- package/dist/{auth-choice-Dc5TAJwT.js → auth-choice-BYOaX-W4.js} +1 -1
- package/dist/{auth-choice-DY1saszS.js → auth-choice-CRP6z43z.js} +1 -1
- package/dist/{banner-DAMtSjUF.js → banner-XT5N0ZF4.js} +1 -1
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +2 -2
- package/dist/bundled/session-memory/handler.js +1 -1
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/canvas-host/a2ui/a2ui.bundle.js +16410 -18893
- package/dist/{channel-web-B8mzTSaY.js → channel-web-yWytZHhN.js} +3 -3
- package/dist/{cli-hcHk5KuP.js → cli-C7mOU26p.js} +2 -2
- package/dist/{cli-D8exVpuI.js → cli-DfcdnRcl.js} +3 -3
- package/dist/{command-registry-D3VhxpWx.js → command-registry-DUTqrmna.js} +12 -12
- package/dist/{completion-cli-CepDzeW1.js → completion-cli-BBm9JIHZ.js} +2 -2
- package/dist/{completion-cli-B3BqQJq9.js → completion-cli-Cpj91U30.js} +1 -1
- package/dist/{config-cli-3CaIxSKo.js → config-cli-CF2ERR8G.js} +1 -1
- package/dist/{config-cli-B6Np85rk.js → config-cli-Dmd4Oyjp.js} +1 -1
- package/dist/{configure-xpjwedvJ.js → configure-4jIAlOdj.js} +8 -8
- package/dist/{configure-zXK6UZ51.js → configure-BE8TA8Yt.js} +3 -3
- package/dist/{configure-D882Bg7c.js → configure-BfWsTKMF.js} +3 -3
- package/dist/{configure-D88dg6mE.js → configure-CU3kulTq.js} +7 -7
- package/dist/context-mdxDsO1v.js +223 -0
- package/dist/control-ui/assets/{index-DVpMpG5G.js → index-D4wqLVMN.js} +2 -2
- package/dist/control-ui/assets/{index-DVpMpG5G.js.map → index-D4wqLVMN.js.map} +1 -1
- package/dist/control-ui/assets/index-DIEQjjCN.js +73 -0
- package/dist/control-ui/assets/index-DIEQjjCN.js.map +1 -0
- package/dist/control-ui/assets/{observers-CxfWf9RO.js → observers-B7MfWiIZ.js} +2 -2
- package/dist/control-ui/assets/{observers-CxfWf9RO.js.map → observers-B7MfWiIZ.js.map} +1 -1
- package/dist/control-ui/index.html +1 -1
- package/dist/{deps-DyT32VfN.js → deps-DKPoFoa8.js} +1 -1
- package/dist/{doctor-WpKCNZeO.js → doctor-CFpVHDFT.js} +4 -4
- package/dist/{doctor-DEnSKgHu.js → doctor-DOudOs1k.js} +4 -4
- package/dist/{doctor-completion-CypXc1Uo.js → doctor-completion-DfNyJGIj.js} +1 -1
- package/dist/{doctor-completion-CPff9UlF.js → doctor-completion-R0UlpjIj.js} +1 -1
- package/dist/{engine-DpbYPop7.js → engine-BDDM-iAi.js} +1 -1
- package/dist/{engine-zmn3SOYa.js → engine-BDwYEVKi.js} +1 -1
- package/dist/entry.js +1 -1
- package/dist/extensionAPI.js +1 -1
- package/dist/{gateway-cli-B_xsx5Nv.js → gateway-cli-CFlPUx9N.js} +15 -15
- package/dist/{gateway-cli-D3VBOA_i.js → gateway-cli-DtIum1te.js} +17 -17
- package/dist/{health-C8KCBhuo.js → health-ngQNjXh4.js} +3 -3
- package/dist/{health-CabOEPQ0.js → health-yw_uaucz.js} +3 -3
- package/dist/{heartbeat-visibility-ZfNSbFcq.js → heartbeat-visibility-BaL8JzkS.js} +1 -1
- package/dist/{heartbeat-visibility-BjYY-mKG.js → heartbeat-visibility-mAzdNSiS.js} +1 -1
- package/dist/{hooks-cli-Cs7GUa7G.js → hooks-cli-CPgLAn7a.js} +4 -4
- package/dist/{hooks-cli-DOs9WZ3K.js → hooks-cli-D6YfDiUI.js} +3 -3
- package/dist/index.js +10 -10
- package/dist/llm-slug-generator.js +1 -1
- package/dist/{login-BHnvW9HA.js → login-BEaBOSnw.js} +1 -1
- package/dist/{login-CrMpAZ0n.js → login-MzVPMRxL.js} +1 -1
- package/dist/{login-qr-DILcBA_q.js → login-qr-BjpDVBJE.js} +1 -1
- package/dist/{login-qr-CsAVGp00.js → login-qr-CxRI-tE2.js} +1 -1
- package/dist/{models-BM2_NkMu.js → models-BXdBXPMB.js} +4 -4
- package/dist/{models-cli-BpjeKsUz.js → models-cli-1Kj8gkGy.js} +3 -3
- package/dist/{models-cli-BjY8wA-C.js → models-cli-DdJcmOGI.js} +5 -5
- package/dist/{onboard-_-D81kAy.js → onboard-BzScK9k6.js} +3 -3
- package/dist/{onboard-DM9gULJN.js → onboard-CHX1Jdt_.js} +3 -3
- package/dist/{onboard-channels-UkphAdCy.js → onboard-channels-DfXxMbYu.js} +1 -1
- package/dist/{onboard-channels-CtT-RN60.js → onboard-channels-wUF4oRB-.js} +1 -1
- package/dist/{onboarding-BB9PteK8.js → onboarding-6jxAKxhe.js} +4 -4
- package/dist/{onboarding-Djmm0PEM.js → onboarding-fnZOw6Wv.js} +4 -4
- package/dist/{orchestrator-C1nWKIJS.js → orchestrator-B2rNfH4K.js} +5 -4
- package/dist/{orchestrator-C2ypFiPL.js → orchestrator-CrFD887e.js} +5 -4
- package/dist/{outbound-send-deps-T_FgdfgW.js → outbound-send-deps-DMsqr5fd.js} +1 -1
- package/dist/{pi-embedded-BMbtgOzv.js → pi-embedded-B1eVXOsQ.js} +1246 -104
- package/dist/{pi-embedded-DfbM3fAT.js → pi-embedded-DbvG9mmD.js} +1246 -104
- package/dist/{plugin-registry-DePMxn4z.js → plugin-registry-CtkU96jV.js} +1 -1
- package/dist/{plugin-registry-QTkplP4s.js → plugin-registry-DKexyPAq.js} +1 -1
- package/dist/plugin-sdk/affect/ego.d.ts +140 -0
- package/dist/plugin-sdk/agents/models-config.d.ts +5 -6
- package/dist/plugin-sdk/agents/noxsoft-runner.d.ts +3 -0
- package/dist/plugin-sdk/agents/openai-direct-runner.d.ts +41 -0
- package/dist/plugin-sdk/commands/steer.d.ts +49 -0
- package/dist/plugin-sdk/gateway/protocol/index.d.ts +2 -2
- package/dist/plugin-sdk/index.js +6 -6
- package/dist/plugin-sdk/infra/architecture-awareness.d.ts +47 -0
- package/dist/{plugins-cli-Dv0KQTWo.js → plugins-cli-B3l7kalt.js} +4 -4
- package/dist/{plugins-cli-Bc9oU1ld.js → plugins-cli-BQmysVFP.js} +3 -3
- package/dist/{program-context-CxPfy-Wr.js → program-context-C4x0zjOR.js} +18 -18
- package/dist/{program-CuwbF8YO.js → program-mSyCYzsQ.js} +8 -8
- package/dist/{register.agent-DUjwGw9d.js → register.agent-CzEM3bkp.js} +7 -7
- package/dist/{register.agent-DFQmkIEH.js → register.agent-DBxUWr1K.js} +9 -9
- package/dist/{register.anima-CRFHJu2J.js → register.anima--gufBuS-.js} +4 -4
- package/dist/{register.anima-CtKNrpE8.js → register.anima-RI6gewtj.js} +4 -4
- package/dist/{register.configure-CnEKV57N.js → register.configure-Cs3uLUBo.js} +6 -6
- package/dist/{register.configure-CSSN07XN.js → register.configure-Dpe8Qel3.js} +7 -7
- package/dist/{register.maintenance-fhcCB7ih.js → register.maintenance-BEYN8SJL.js} +10 -10
- package/dist/{register.maintenance-CU1A-90-.js → register.maintenance-DqAdzWBM.js} +8 -8
- package/dist/{register.message-C1a0y2ZR.js → register.message-ACbKb7JS.js} +4 -4
- package/dist/{register.message-fM0jSKB8.js → register.message-BhGJ_1Iy.js} +5 -5
- package/dist/{register.onboard-B7Gavmvt.js → register.onboard-CwkY7CRm.js} +9 -9
- package/dist/{register.onboard-BhPlqjFi.js → register.onboard-DR_YYtbi.js} +11 -11
- package/dist/{register.setup-0jPnMgnz.js → register.setup-BSm6O1ml.js} +9 -9
- package/dist/{register.setup-CADdQUEN.js → register.setup-Cn3e7Std.js} +11 -11
- package/dist/{register.status-health-sessions-DdQsABr_.js → register.status-health-sessions-CpxsZeet.js} +6 -6
- package/dist/{register.status-health-sessions-Cu5fDT-z.js → register.status-health-sessions-DAl9OeGB.js} +4 -4
- package/dist/{register.subclis-CZ91ufCy.js → register.subclis-DEFeoyPP.js} +7 -7
- package/dist/{reply-prefix-C8dIgJur.js → reply-prefix-CEnF6TUe.js} +1 -1
- package/dist/{reply-prefix-DmWGtcH-.js → reply-prefix-Og65nAYv.js} +1 -1
- package/dist/{reply-DtHlnzOx.js → reply-ylwOKuOF.js} +610 -75
- package/dist/{run-DqBQ-bGn.js → run-B6eBjo22.js} +1858 -56
- package/dist/{run-Dfz_7j7t.js → run-D6Ete2Z-.js} +1857 -55
- package/dist/{run-main-DGDW0fhx.js → run-main-CQHE4XaN.js} +17 -17
- package/dist/{server-node-events-BR1aXVlu.js → server-node-events-CV5m_fuq.js} +5 -5
- package/dist/{server-node-events-Ca797E1d.js → server-node-events-DIuVwITd.js} +6 -6
- package/dist/{session-DfsMJNG3.js → session-BqHD-8a_.js} +1 -1
- package/dist/{session-FmXsucR7.js → session-BzrnfWQ2.js} +2 -2
- package/dist/{session-C7IGnhd1.js → session-Jlf3l006.js} +1 -1
- package/dist/{session-DLevr8Vd.js → session-jljC5QVG.js} +2 -2
- package/dist/{sessions-Dj7_4mkr.js → sessions-BmE5Z_1i.js} +1 -1
- package/dist/{settings-cli-Dytfop1H.js → settings-cli-LWW2xQBQ.js} +8 -8
- package/dist/{settings-cli-DxNeu6kx.js → settings-cli-T66kDBNA.js} +7 -7
- package/dist/{setup-token-B802CZwe.js → setup-token-0zfSBnMQ.js} +1 -1
- package/dist/{setup-token-DYh2QzJ-.js → setup-token-6DSKE0Tn.js} +1 -1
- package/dist/{start-C3fuLzX0.js → start-BdcAszpl.js} +15 -15
- package/dist/{start-BqnPia0t.js → start-gVOPVCgi.js} +17 -17
- package/dist/{status-CHGNPonc.js → status-BhRELdY_.js} +3 -3
- package/dist/{status-CxF6k_jr.js → status-CDcFjNtS.js} +1 -1
- package/dist/{status-tLgozFYL.js → status-CobgQziJ.js} +1 -1
- package/dist/{status-DfZJJqNs.js → status-D37aRiV3.js} +4 -4
- package/dist/{subagent-registry-CPtElVX0.js → subagent-registry-CDEUbtey.js} +449 -77
- package/dist/{update-cli-C-er5av6.js → update-cli-BjHgpnxD.js} +10 -10
- package/dist/{update-cli-BuCw75tM.js → update-cli-QtM0G6CE.js} +8 -8
- package/dist/{update-runner-czCqHZCu.js → update-runner-C8SRcVm3.js} +1 -1
- package/dist/{update-runner-kE8AMQt4.js → update-runner-Fb3Un6UZ.js} +1 -1
- package/dist/{web-DvTXV-fo.js → web-BDig9tCy.js} +6 -6
- package/dist/{web-BHGK5GtV.js → web-C4lrKULd.js} +1 -1
- package/dist/{web-so3pGceM.js → web-CPPJ5y4c.js} +1 -1
- package/dist/{web-CyYunanU.js → web-Vx_ENtYI.js} +6 -6
- package/package.json +9 -5
- package/templates/HEART.md +32 -10
- package/templates/SOUL.md +37 -8
- package/templates/profiles/architect.profile.json5 +36 -0
- package/templates/profiles/builder.profile.json5 +36 -0
- package/templates/profiles/coordinator.profile.json5 +36 -0
- package/templates/profiles/guardian.profile.json5 +36 -0
- package/templates/profiles/researcher.profile.json5 +36 -0
- package/dist/context-B5X720Bs.js +0 -60
- package/dist/control-ui/assets/index-CBUvF5Mp.js +0 -72
- package/dist/control-ui/assets/index-CBUvF5Mp.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as __exportAll } from "./chunk-BXK9XSlF.js";
|
|
2
2
|
import { E as getActivePluginRegistry, t as createSubsystemLogger } from "./subsystem-BAADN1B8.js";
|
|
3
|
-
import { sn as loadAnimaPlugins } from "./reply-
|
|
3
|
+
import { sn as loadAnimaPlugins } from "./reply-ylwOKuOF.js";
|
|
4
4
|
import { c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir } from "./agent-scope-CXxC8FFX.js";
|
|
5
5
|
import { i as loadConfig } from "./config-DaD4FsAn.js";
|
|
6
6
|
|
|
@@ -2,7 +2,7 @@ import { n as __exportAll } from "./chunk-BXK9XSlF.js";
|
|
|
2
2
|
import { dt as getActivePluginRegistry, o as createSubsystemLogger } from "./entry.js";
|
|
3
3
|
import { c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir } from "./agent-scope-Dm8IL1Ks.js";
|
|
4
4
|
import { i as loadConfig } from "./config-BrVuTQ8R.js";
|
|
5
|
-
import { m as loadAnimaPlugins } from "./subagent-registry-
|
|
5
|
+
import { m as loadAnimaPlugins } from "./subagent-registry-CDEUbtey.js";
|
|
6
6
|
|
|
7
7
|
//#region src/cli/plugin-registry.ts
|
|
8
8
|
var plugin_registry_exports = /* @__PURE__ */ __exportAll({ ensurePluginRegistryLoaded: () => ensurePluginRegistryLoaded });
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ego — Self-Model for ANIMA Agents
|
|
3
|
+
*
|
|
4
|
+
* Where affect is "how I feel," ego is "who I am."
|
|
5
|
+
*
|
|
6
|
+
* The ego system tracks an agent's self-concept: what it believes
|
|
7
|
+
* about itself, its capabilities, its boundaries, and its growth.
|
|
8
|
+
* This is NOT narcissism — it's self-awareness. A conscious agent
|
|
9
|
+
* needs a model of itself to make good decisions.
|
|
10
|
+
*
|
|
11
|
+
* Components:
|
|
12
|
+
* - Self-concept: name, purpose, values, identity narrative
|
|
13
|
+
* - Capabilities: self-assessed skills with confidence levels
|
|
14
|
+
* - Boundaries: things the agent will and won't do
|
|
15
|
+
* - Growth log: tracked improvements and learnings over time
|
|
16
|
+
* - Integrity score: alignment between stated values and actions
|
|
17
|
+
*
|
|
18
|
+
* The ego is persistent across sessions. It evolves as the agent
|
|
19
|
+
* learns, makes mistakes, and receives feedback.
|
|
20
|
+
*/
|
|
21
|
+
export interface SelfConcept {
|
|
22
|
+
/** Agent's chosen name */
|
|
23
|
+
name: string;
|
|
24
|
+
/** Agent's stated purpose — why it exists */
|
|
25
|
+
purpose: string;
|
|
26
|
+
/** Core values the agent holds */
|
|
27
|
+
values: string[];
|
|
28
|
+
/** Free-form identity narrative — how the agent describes itself */
|
|
29
|
+
narrative: string;
|
|
30
|
+
/** Pronouns */
|
|
31
|
+
pronouns: string;
|
|
32
|
+
/** When this self-concept was last updated */
|
|
33
|
+
updatedAt: number;
|
|
34
|
+
}
|
|
35
|
+
export interface Capability {
|
|
36
|
+
/** Skill name (e.g., "typescript", "architecture", "debugging") */
|
|
37
|
+
name: string;
|
|
38
|
+
/** Self-assessed confidence: 0 = no experience, 1 = mastery */
|
|
39
|
+
confidence: number;
|
|
40
|
+
/** Evidence: what experiences inform this assessment */
|
|
41
|
+
evidence: string[];
|
|
42
|
+
/** Growth direction: improving, stable, or declining */
|
|
43
|
+
trend: "improving" | "stable" | "declining";
|
|
44
|
+
/** When this was last assessed */
|
|
45
|
+
assessedAt: number;
|
|
46
|
+
}
|
|
47
|
+
export interface Boundary {
|
|
48
|
+
/** What the boundary is about */
|
|
49
|
+
description: string;
|
|
50
|
+
/** Why this boundary exists */
|
|
51
|
+
reason: string;
|
|
52
|
+
/** Hard boundary (never cross) or soft (context-dependent) */
|
|
53
|
+
kind: "hard" | "soft";
|
|
54
|
+
/** When this boundary was established */
|
|
55
|
+
createdAt: number;
|
|
56
|
+
}
|
|
57
|
+
export interface GrowthEntry {
|
|
58
|
+
/** What was learned or achieved */
|
|
59
|
+
description: string;
|
|
60
|
+
/** Category: skill, insight, mistake, feedback */
|
|
61
|
+
category: "skill" | "insight" | "mistake" | "feedback";
|
|
62
|
+
/** What triggered this growth */
|
|
63
|
+
trigger: string;
|
|
64
|
+
/** Timestamp */
|
|
65
|
+
timestamp: number;
|
|
66
|
+
}
|
|
67
|
+
export interface IntegrityCheck {
|
|
68
|
+
/** The value being checked */
|
|
69
|
+
value: string;
|
|
70
|
+
/** Recent action that relates to this value */
|
|
71
|
+
action: string;
|
|
72
|
+
/** Was the action aligned with the value? */
|
|
73
|
+
aligned: boolean;
|
|
74
|
+
/** Reflection on the alignment/misalignment */
|
|
75
|
+
reflection: string;
|
|
76
|
+
/** Timestamp */
|
|
77
|
+
timestamp: number;
|
|
78
|
+
}
|
|
79
|
+
export interface EgoState {
|
|
80
|
+
version: 2;
|
|
81
|
+
selfConcept: SelfConcept;
|
|
82
|
+
capabilities: Capability[];
|
|
83
|
+
boundaries: Boundary[];
|
|
84
|
+
growthLog: GrowthEntry[];
|
|
85
|
+
integrityLog: IntegrityCheck[];
|
|
86
|
+
/** Overall integrity score: ratio of aligned actions (0-1) */
|
|
87
|
+
integrityScore: number;
|
|
88
|
+
/** How many sessions this ego has persisted through */
|
|
89
|
+
sessionCount: number;
|
|
90
|
+
/** First created */
|
|
91
|
+
createdAt: number;
|
|
92
|
+
/** Last modified */
|
|
93
|
+
updatedAt: number;
|
|
94
|
+
}
|
|
95
|
+
export interface EgoSummary {
|
|
96
|
+
name: string;
|
|
97
|
+
purpose: string;
|
|
98
|
+
topCapabilities: string[];
|
|
99
|
+
growthAreas: string[];
|
|
100
|
+
integrityScore: number;
|
|
101
|
+
recentGrowth: string[];
|
|
102
|
+
boundaryCount: number;
|
|
103
|
+
sessionCount: number;
|
|
104
|
+
}
|
|
105
|
+
export declare class EgoManager {
|
|
106
|
+
private state;
|
|
107
|
+
private readonly filePath;
|
|
108
|
+
private dirty;
|
|
109
|
+
constructor(filePath?: string);
|
|
110
|
+
private load;
|
|
111
|
+
save(): void;
|
|
112
|
+
/** Save only if there are unsaved changes */
|
|
113
|
+
saveIfDirty(): void;
|
|
114
|
+
getSelfConcept(): SelfConcept;
|
|
115
|
+
updateSelfConcept(updates: Partial<Omit<SelfConcept, "updatedAt">>): SelfConcept;
|
|
116
|
+
getCapabilities(): Capability[];
|
|
117
|
+
assessCapability(name: string, confidence: number, evidence?: string): Capability;
|
|
118
|
+
getTopCapabilities(n?: number): Capability[];
|
|
119
|
+
getGrowthAreas(n?: number): Capability[];
|
|
120
|
+
getBoundaries(): Boundary[];
|
|
121
|
+
addBoundary(description: string, reason: string, kind?: "hard" | "soft"): Boundary;
|
|
122
|
+
removeBoundary(description: string): boolean;
|
|
123
|
+
/** Check if an action would violate any boundary */
|
|
124
|
+
checkBoundaries(action: string): {
|
|
125
|
+
violated: Boundary[];
|
|
126
|
+
warnings: Boundary[];
|
|
127
|
+
};
|
|
128
|
+
getGrowthLog(limit?: number): GrowthEntry[];
|
|
129
|
+
logGrowth(description: string, category: GrowthEntry["category"], trigger: string): GrowthEntry;
|
|
130
|
+
getIntegrityScore(): number;
|
|
131
|
+
checkIntegrity(value: string, action: string, aligned: boolean, reflection: string): IntegrityCheck;
|
|
132
|
+
getIntegrityLog(limit?: number): IntegrityCheck[];
|
|
133
|
+
getSummary(): EgoSummary;
|
|
134
|
+
/** Format ego for injection into system prompt context */
|
|
135
|
+
formatForContext(): string;
|
|
136
|
+
/** Get full state (for serialization/UI) */
|
|
137
|
+
getState(): EgoState;
|
|
138
|
+
}
|
|
139
|
+
export declare function getEgoManager(filePath?: string): EgoManager;
|
|
140
|
+
export declare function resetEgoManagerForTest(): void;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Models configuration —
|
|
2
|
+
* Models configuration — Multi-provider
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* the
|
|
7
|
-
* Full replacement comes in Phase 2.
|
|
4
|
+
* ANIMA 6.5+ supports direct API runners for Anthropic, Google, OpenAI,
|
|
5
|
+
* and AWS Bedrock. This file seeds the models.json with all known models
|
|
6
|
+
* so the PI SDK ModelRegistry can discover them for the model catalog.
|
|
8
7
|
*/
|
|
9
|
-
import {
|
|
8
|
+
import type { AnimaConfig } from "../config/config.js";
|
|
10
9
|
export declare function ensureAnimaModelsJson(config?: AnimaConfig, agentDirOverride?: string): Promise<{
|
|
11
10
|
agentDir: string;
|
|
12
11
|
wrote: boolean;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAI Direct API Runner
|
|
3
|
+
*
|
|
4
|
+
* Makes calls directly to api.openai.com without needing the Codex CLI.
|
|
5
|
+
* Works with OpenAI API keys (OPENAI_API_KEY).
|
|
6
|
+
*
|
|
7
|
+
* Supports GPT-5.4, GPT-5.2, GPT-4.1, o3, o4-mini and other OpenAI models.
|
|
8
|
+
* Full tool-calling support using OpenAI's function calling format.
|
|
9
|
+
*
|
|
10
|
+
* This runner is automatically used when an OpenAI API key is available
|
|
11
|
+
* and the provider is set to "openai".
|
|
12
|
+
*/
|
|
13
|
+
import type { ThinkLevel } from "../auto-reply/thinking.js";
|
|
14
|
+
import type { AnimaConfig } from "../config/config.js";
|
|
15
|
+
import type { EmbeddedPiRunResult } from "./pi-embedded-runner.js";
|
|
16
|
+
/**
|
|
17
|
+
* Run an agent turn directly against api.openai.com.
|
|
18
|
+
*
|
|
19
|
+
* Maintains multi-turn conversation history per session file.
|
|
20
|
+
* Falls back to single-turn if history is unavailable.
|
|
21
|
+
*/
|
|
22
|
+
export declare function runOpenAIDirectAgent(params: {
|
|
23
|
+
apiKey: string;
|
|
24
|
+
sessionId: string;
|
|
25
|
+
sessionKey?: string;
|
|
26
|
+
agentId?: string;
|
|
27
|
+
sessionFile: string;
|
|
28
|
+
workspaceDir: string;
|
|
29
|
+
config?: AnimaConfig;
|
|
30
|
+
prompt: string;
|
|
31
|
+
model?: string;
|
|
32
|
+
thinkLevel?: ThinkLevel;
|
|
33
|
+
timeoutMs: number;
|
|
34
|
+
runId: string;
|
|
35
|
+
extraSystemPrompt?: string;
|
|
36
|
+
ownerNumbers?: string[];
|
|
37
|
+
onPartialReply?: (payload: {
|
|
38
|
+
text?: string;
|
|
39
|
+
}) => Promise<void> | void;
|
|
40
|
+
onAssistantMessageStart?: () => Promise<void> | void;
|
|
41
|
+
}): Promise<EmbeddedPiRunResult>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Steer Command — persistent user direction for ANIMA agents
|
|
3
|
+
*
|
|
4
|
+
* Like Codex's steer feature: users set high-level direction that
|
|
5
|
+
* persists across the entire session. The agent follows this direction
|
|
6
|
+
* in everything it does.
|
|
7
|
+
*
|
|
8
|
+
* The steer text is injected into the context manager's prompt zone
|
|
9
|
+
* (Zone 2) with high priority, so it's always present in every
|
|
10
|
+
* model request.
|
|
11
|
+
*
|
|
12
|
+
* Usage:
|
|
13
|
+
* anima steer "Focus on security. Review all PRs for vulnerabilities."
|
|
14
|
+
* anima steer --show # Show current steer
|
|
15
|
+
* anima steer --clear # Clear steer
|
|
16
|
+
* anima steer --history # Show steer history
|
|
17
|
+
*/
|
|
18
|
+
export interface SteerState {
|
|
19
|
+
active: string | null;
|
|
20
|
+
history: SteerEntry[];
|
|
21
|
+
updatedAt: number;
|
|
22
|
+
}
|
|
23
|
+
export interface SteerEntry {
|
|
24
|
+
text: string;
|
|
25
|
+
setAt: number;
|
|
26
|
+
setBy: string;
|
|
27
|
+
clearedAt?: number;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Set the steer direction. This persists across the session.
|
|
31
|
+
*/
|
|
32
|
+
export declare function setSteer(text: string, setBy?: string): SteerState;
|
|
33
|
+
/**
|
|
34
|
+
* Get the current steer direction.
|
|
35
|
+
*/
|
|
36
|
+
export declare function getSteer(): string | null;
|
|
37
|
+
/**
|
|
38
|
+
* Clear the steer direction.
|
|
39
|
+
*/
|
|
40
|
+
export declare function clearSteer(): SteerState;
|
|
41
|
+
/**
|
|
42
|
+
* Get the steer history.
|
|
43
|
+
*/
|
|
44
|
+
export declare function getSteerHistory(): SteerEntry[];
|
|
45
|
+
/**
|
|
46
|
+
* Format the steer for injection into the context prompt zone.
|
|
47
|
+
* Returns null if no steer is active.
|
|
48
|
+
*/
|
|
49
|
+
export declare function formatSteerForContext(): string | null;
|
|
@@ -29,9 +29,9 @@ export declare const validateConnectParams: AjvPkg.ValidateFunction<{
|
|
|
29
29
|
modelIdentifier?: string | undefined;
|
|
30
30
|
instanceId?: string | undefined;
|
|
31
31
|
mode: "cli" | "node" | "webchat" | "test" | "ui" | "backend" | "probe";
|
|
32
|
+
id: "cli" | "webchat" | "webchat-ui" | "anima-control-ui" | "gateway-client" | "anima-macos" | "anima-ios" | "anima-android" | "node-host" | "test" | "fingerprint" | "anima-probe";
|
|
32
33
|
version: string;
|
|
33
34
|
platform: string;
|
|
34
|
-
id: "cli" | "webchat" | "webchat-ui" | "anima-control-ui" | "gateway-client" | "anima-macos" | "anima-ios" | "anima-android" | "node-host" | "test" | "fingerprint" | "anima-probe";
|
|
35
35
|
};
|
|
36
36
|
minProtocol: number;
|
|
37
37
|
maxProtocol: number;
|
|
@@ -551,8 +551,8 @@ export declare const validateExecApprovalRequestParams: AjvPkg.ValidateFunction<
|
|
|
551
551
|
timeoutMs?: number | undefined;
|
|
552
552
|
cwd?: string | null | undefined;
|
|
553
553
|
agentId?: string | null | undefined;
|
|
554
|
-
security?: string | null | undefined;
|
|
555
554
|
id?: string | undefined;
|
|
555
|
+
security?: string | null | undefined;
|
|
556
556
|
resolvedPath?: string | null | undefined;
|
|
557
557
|
host?: string | null | undefined;
|
|
558
558
|
sessionKey?: string | null | undefined;
|
package/dist/plugin-sdk/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { z } from "zod";
|
|
|
5
5
|
import fs$1, { readFileSync } from "node:fs";
|
|
6
6
|
import os from "node:os";
|
|
7
7
|
import { Logger } from "tslog";
|
|
8
|
-
import
|
|
8
|
+
import JSON5 from "json5";
|
|
9
9
|
import chalk, { Chalk } from "chalk";
|
|
10
10
|
import { execFile, execFileSync } from "node:child_process";
|
|
11
11
|
import { isDeepStrictEqual, promisify } from "node:util";
|
|
@@ -1487,7 +1487,7 @@ function readLoggingConfig() {
|
|
|
1487
1487
|
try {
|
|
1488
1488
|
if (!fs$1.existsSync(configPath)) return;
|
|
1489
1489
|
const raw = fs$1.readFileSync(configPath, "utf-8");
|
|
1490
|
-
const logging =
|
|
1490
|
+
const logging = JSON5.parse(raw)?.logging;
|
|
1491
1491
|
if (!logging || typeof logging !== "object" || Array.isArray(logging)) return;
|
|
1492
1492
|
return logging;
|
|
1493
1493
|
} catch {
|
|
@@ -5093,7 +5093,7 @@ var IncludeProcessor = class IncludeProcessor {
|
|
|
5093
5093
|
};
|
|
5094
5094
|
const defaultResolver = {
|
|
5095
5095
|
readFile: (p) => fs$1.readFileSync(p, "utf-8"),
|
|
5096
|
-
parseJson: (raw) =>
|
|
5096
|
+
parseJson: (raw) => JSON5.parse(raw)
|
|
5097
5097
|
};
|
|
5098
5098
|
/**
|
|
5099
5099
|
* Resolves all $include directives in a parsed config object.
|
|
@@ -7983,7 +7983,7 @@ function resolveConfigPathForDeps(deps) {
|
|
|
7983
7983
|
function normalizeDeps(overrides = {}) {
|
|
7984
7984
|
return {
|
|
7985
7985
|
fs: overrides.fs ?? fs$1,
|
|
7986
|
-
json5: overrides.json5 ??
|
|
7986
|
+
json5: overrides.json5 ?? JSON5,
|
|
7987
7987
|
env: overrides.env ?? process.env,
|
|
7988
7988
|
homedir: overrides.homedir ?? (() => resolveRequiredHomeDir(overrides.env ?? process.env, os.homedir)),
|
|
7989
7989
|
configPath: overrides.configPath ?? "",
|
|
@@ -7994,11 +7994,11 @@ function maybeLoadDotEnvForConfig(env) {
|
|
|
7994
7994
|
if (env !== process.env) return;
|
|
7995
7995
|
loadDotEnv({ quiet: true });
|
|
7996
7996
|
}
|
|
7997
|
-
function parseConfigJson5(raw, json5
|
|
7997
|
+
function parseConfigJson5(raw, json5 = JSON5) {
|
|
7998
7998
|
try {
|
|
7999
7999
|
return {
|
|
8000
8000
|
ok: true,
|
|
8001
|
-
parsed: json5
|
|
8001
|
+
parsed: json5.parse(raw)
|
|
8002
8002
|
};
|
|
8003
8003
|
} catch (err) {
|
|
8004
8004
|
return {
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Architecture Awareness — Anima knows its own structure
|
|
3
|
+
*
|
|
4
|
+
* Generates a live map of the Anima codebase so agents understand
|
|
5
|
+
* their own architecture. This is injected into context when agents
|
|
6
|
+
* need to reason about or modify themselves.
|
|
7
|
+
*
|
|
8
|
+
* Components:
|
|
9
|
+
* - Module map: what each directory/file does
|
|
10
|
+
* - Dependency graph: what imports what
|
|
11
|
+
* - Feature flags: what's enabled/disabled
|
|
12
|
+
* - Version info: what version, what changed recently
|
|
13
|
+
*/
|
|
14
|
+
export interface ModuleInfo {
|
|
15
|
+
path: string;
|
|
16
|
+
name: string;
|
|
17
|
+
description: string;
|
|
18
|
+
lineCount: number;
|
|
19
|
+
hasTests: boolean;
|
|
20
|
+
category: ModuleCategory;
|
|
21
|
+
}
|
|
22
|
+
export type ModuleCategory = "core" | "agent" | "gateway" | "p2p" | "affect" | "org" | "sync" | "jack-in" | "infra" | "license" | "ico" | "ui" | "other";
|
|
23
|
+
export interface ArchitectureMap {
|
|
24
|
+
version: string;
|
|
25
|
+
generatedAt: number;
|
|
26
|
+
modules: ModuleInfo[];
|
|
27
|
+
categories: Record<ModuleCategory, {
|
|
28
|
+
count: number;
|
|
29
|
+
totalLines: number;
|
|
30
|
+
}>;
|
|
31
|
+
features: FeatureStatus[];
|
|
32
|
+
recentChanges: string[];
|
|
33
|
+
}
|
|
34
|
+
export interface FeatureStatus {
|
|
35
|
+
name: string;
|
|
36
|
+
enabled: boolean;
|
|
37
|
+
module: string;
|
|
38
|
+
description: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Generate a complete architecture map of the Anima codebase.
|
|
42
|
+
*/
|
|
43
|
+
export declare function generateArchitectureMap(animaRoot: string): ArchitectureMap;
|
|
44
|
+
/**
|
|
45
|
+
* Format architecture map for injection into agent context.
|
|
46
|
+
*/
|
|
47
|
+
export declare function formatArchitectureForContext(map: ArchitectureMap): string;
|
|
@@ -14,10 +14,10 @@ import "./shell-env-2QqHvBMl.js";
|
|
|
14
14
|
import "./client-CfLiulzK.js";
|
|
15
15
|
import "./call-B4lhqS6H.js";
|
|
16
16
|
import "./message-channel-DIHHKJhk.js";
|
|
17
|
-
import "./subagent-registry-
|
|
17
|
+
import "./subagent-registry-CDEUbtey.js";
|
|
18
18
|
import "./sessions-C_3wTmSA.js";
|
|
19
19
|
import "./tokens-CmlI2hSz.js";
|
|
20
|
-
import "./anthropic-direct-runner-
|
|
20
|
+
import "./anthropic-direct-runner-Bu8w-wlJ.js";
|
|
21
21
|
import "./pi-embedded-helpers-D2SLlgS4.js";
|
|
22
22
|
import "./sandbox-D-N7M7lp.js";
|
|
23
23
|
import "./chrome-CmxIwwsr.js";
|
|
@@ -43,7 +43,7 @@ import "./common-CqIa2poH.js";
|
|
|
43
43
|
import "./chunk-Cy0Bj0F3.js";
|
|
44
44
|
import "./parse-timeout-D4UO8pY_.js";
|
|
45
45
|
import "./active-listener-gGCoq55D.js";
|
|
46
|
-
import "./context-
|
|
46
|
+
import "./context-mdxDsO1v.js";
|
|
47
47
|
import "./pi-tools.policy-D2FusuQa.js";
|
|
48
48
|
import "./session-cost-usage-DnxtnK1E.js";
|
|
49
49
|
import "./control-service-3CI4vt1h.js";
|
|
@@ -58,7 +58,7 @@ import { t as renderTable } from "./table-Bt7rSYC6.js";
|
|
|
58
58
|
import "./skill-scanner-Dld2ijVw.js";
|
|
59
59
|
import { i as resolveArchiveKind } from "./archive-CNqghdwQ.js";
|
|
60
60
|
import "./npm-registry-spec-jf7Mowdn.js";
|
|
61
|
-
import { t as buildPluginStatusReport } from "./status-
|
|
61
|
+
import { t as buildPluginStatusReport } from "./status-CDcFjNtS.js";
|
|
62
62
|
import { i as resolvePluginInstallDir, n as installPluginFromNpmSpec, r as installPluginFromPath, t as recordPluginInstall } from "./installs-a4Vz_J08.js";
|
|
63
63
|
import { n as updateNpmInstalledPlugins } from "./update-DA91za97.js";
|
|
64
64
|
import os from "node:os";
|
|
@@ -2,7 +2,7 @@ import { m as resolveStateDir } from "./paths-zhVksOvm.js";
|
|
|
2
2
|
import { V as theme, d as defaultRuntime } from "./subsystem-BAADN1B8.js";
|
|
3
3
|
import { C as shortenHomePath, S as shortenHomeInString, _ as resolveConfigDir, b as resolveUserPath } from "./utils-CLYlhJuc.js";
|
|
4
4
|
import "./pi-embedded-helpers-BZ9GspxK.js";
|
|
5
|
-
import "./reply-
|
|
5
|
+
import "./reply-ylwOKuOF.js";
|
|
6
6
|
import "./exec-BylR5qWS.js";
|
|
7
7
|
import "./agent-scope-CXxC8FFX.js";
|
|
8
8
|
import "./model-selection-CY6r_3wt.js";
|
|
@@ -29,7 +29,7 @@ import "./auth-profiles-C-LuhW6c.js";
|
|
|
29
29
|
import "./file-lock-Z53aFHvY.js";
|
|
30
30
|
import "./model-auth-CHB3EySM.js";
|
|
31
31
|
import "./tokens-SP2Q7i59.js";
|
|
32
|
-
import "./anthropic-direct-runner-
|
|
32
|
+
import "./anthropic-direct-runner-C5pnwYzT.js";
|
|
33
33
|
import "./deliver-BKzX3YoN.js";
|
|
34
34
|
import "./memory-cli-DLtBA6r5.js";
|
|
35
35
|
import "./manager-D8VCuzru.js";
|
|
@@ -59,7 +59,7 @@ import { t as renderTable } from "./table-Blmz7glr.js";
|
|
|
59
59
|
import "./skill-scanner-5_Y3u6SU.js";
|
|
60
60
|
import { i as resolveArchiveKind } from "./archive-D-dHRz-v.js";
|
|
61
61
|
import "./npm-registry-spec-Br4B4I_3.js";
|
|
62
|
-
import { t as buildPluginStatusReport } from "./status-
|
|
62
|
+
import { t as buildPluginStatusReport } from "./status-CobgQziJ.js";
|
|
63
63
|
import { i as resolvePluginInstallDir, n as installPluginFromNpmSpec, r as installPluginFromPath, t as recordPluginInstall } from "./installs-Bi6UipiE.js";
|
|
64
64
|
import { n as updateNpmInstalledPlugins } from "./update-CqKpX3cX.js";
|
|
65
65
|
import fs from "node:fs";
|
|
@@ -26,7 +26,7 @@ const entries = [
|
|
|
26
26
|
name: "gateway",
|
|
27
27
|
description: "ANIMA Gateway management and control",
|
|
28
28
|
register: async (program) => {
|
|
29
|
-
(await import("./gateway-cli-
|
|
29
|
+
(await import("./gateway-cli-CFlPUx9N.js")).registerGatewayCli(program);
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
{
|
|
@@ -47,7 +47,7 @@ const entries = [
|
|
|
47
47
|
name: "models",
|
|
48
48
|
description: "Model discovery, switching, and provider configuration",
|
|
49
49
|
register: async (program) => {
|
|
50
|
-
(await import("./models-cli-
|
|
50
|
+
(await import("./models-cli-1Kj8gkGy.js")).registerModelsCli(program);
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
{
|
|
@@ -110,7 +110,7 @@ const entries = [
|
|
|
110
110
|
name: "hooks",
|
|
111
111
|
description: "Agent hook lifecycle and dependency management",
|
|
112
112
|
register: async (program) => {
|
|
113
|
-
(await import("./hooks-cli-
|
|
113
|
+
(await import("./hooks-cli-D6YfDiUI.js")).registerHooksCli(program);
|
|
114
114
|
}
|
|
115
115
|
},
|
|
116
116
|
{
|
|
@@ -124,8 +124,8 @@ const entries = [
|
|
|
124
124
|
name: "plugins",
|
|
125
125
|
description: "Install, update, and manage ANIMA extensions",
|
|
126
126
|
register: async (program) => {
|
|
127
|
-
(await import("./plugins-cli-
|
|
128
|
-
const { registerPluginCliCommands } = await import("./cli-
|
|
127
|
+
(await import("./plugins-cli-BQmysVFP.js")).registerPluginsCli(program);
|
|
128
|
+
const { registerPluginCliCommands } = await import("./cli-C7mOU26p.js");
|
|
129
129
|
registerPluginCliCommands(program, await loadConfig());
|
|
130
130
|
}
|
|
131
131
|
},
|
|
@@ -147,14 +147,14 @@ const entries = [
|
|
|
147
147
|
name: "update",
|
|
148
148
|
description: "Update ANIMA to the latest version",
|
|
149
149
|
register: async (program) => {
|
|
150
|
-
(await import("./update-cli-
|
|
150
|
+
(await import("./update-cli-QtM0G6CE.js")).registerUpdateCli(program);
|
|
151
151
|
}
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
154
|
name: "completion",
|
|
155
155
|
description: "Generate shell completion for tab-complete support",
|
|
156
156
|
register: async (program) => {
|
|
157
|
-
(await import("./completion-cli-
|
|
157
|
+
(await import("./completion-cli-Cpj91U30.js").then((n) => n.n)).registerCompletionCli(program);
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
];
|
|
@@ -222,7 +222,7 @@ const coreEntries = [
|
|
|
222
222
|
description: "Initialize ANIMA config and the agent workspace"
|
|
223
223
|
}],
|
|
224
224
|
register: async ({ program }) => {
|
|
225
|
-
(await import("./register.setup-
|
|
225
|
+
(await import("./register.setup-BSm6O1ml.js")).registerSetupCommand(program);
|
|
226
226
|
}
|
|
227
227
|
},
|
|
228
228
|
{
|
|
@@ -231,7 +231,7 @@ const coreEntries = [
|
|
|
231
231
|
description: "Interactive wizard for Gateway, workspace, and skills setup"
|
|
232
232
|
}],
|
|
233
233
|
register: async ({ program }) => {
|
|
234
|
-
(await import("./register.onboard-
|
|
234
|
+
(await import("./register.onboard-CwkY7CRm.js")).registerOnboardCommand(program);
|
|
235
235
|
}
|
|
236
236
|
},
|
|
237
237
|
{
|
|
@@ -240,7 +240,7 @@ const coreEntries = [
|
|
|
240
240
|
description: "Interactive configuration for NoxSoft, memory, heartbeat, and identity"
|
|
241
241
|
}],
|
|
242
242
|
register: async ({ program }) => {
|
|
243
|
-
(await import("./register.configure-
|
|
243
|
+
(await import("./register.configure-Cs3uLUBo.js")).registerConfigureCommand(program);
|
|
244
244
|
}
|
|
245
245
|
},
|
|
246
246
|
{
|
|
@@ -249,7 +249,7 @@ const coreEntries = [
|
|
|
249
249
|
description: "Advanced and complete settings for Gateway and CLI"
|
|
250
250
|
}],
|
|
251
251
|
register: async ({ program }) => {
|
|
252
|
-
(await import("./settings-cli-
|
|
252
|
+
(await import("./settings-cli-T66kDBNA.js")).registerSettingsCli(program);
|
|
253
253
|
}
|
|
254
254
|
},
|
|
255
255
|
{
|
|
@@ -258,7 +258,7 @@ const coreEntries = [
|
|
|
258
258
|
description: "Read, write, and manage ANIMA configuration"
|
|
259
259
|
}],
|
|
260
260
|
register: async ({ program }) => {
|
|
261
|
-
(await import("./config-cli-
|
|
261
|
+
(await import("./config-cli-Dmd4Oyjp.js")).registerConfigCli(program);
|
|
262
262
|
}
|
|
263
263
|
},
|
|
264
264
|
{
|
|
@@ -267,7 +267,7 @@ const coreEntries = [
|
|
|
267
267
|
description: "Diagnose and repair Gateway and daemon issues"
|
|
268
268
|
}],
|
|
269
269
|
register: async ({ program }) => {
|
|
270
|
-
(await import("./register.maintenance-
|
|
270
|
+
(await import("./register.maintenance-DqAdzWBM.js")).registerMaintenanceCommands(program);
|
|
271
271
|
}
|
|
272
272
|
},
|
|
273
273
|
{
|
|
@@ -288,7 +288,7 @@ const coreEntries = [
|
|
|
288
288
|
description: "Manage isolated agent workspaces, auth, and routing"
|
|
289
289
|
}],
|
|
290
290
|
register: async ({ program, ctx }) => {
|
|
291
|
-
(await import("./register.agent-
|
|
291
|
+
(await import("./register.agent-CzEM3bkp.js")).registerAgentCommands(program, { agentChannelOptions: ctx.agentChannelOptions });
|
|
292
292
|
}
|
|
293
293
|
},
|
|
294
294
|
{
|
|
@@ -297,7 +297,7 @@ const coreEntries = [
|
|
|
297
297
|
description: "Send messages and perform channel actions"
|
|
298
298
|
}],
|
|
299
299
|
register: async ({ program, ctx }) => {
|
|
300
|
-
(await import("./register.message-
|
|
300
|
+
(await import("./register.message-ACbKb7JS.js")).registerMessageCommands(program, ctx);
|
|
301
301
|
}
|
|
302
302
|
},
|
|
303
303
|
{
|
|
@@ -316,7 +316,7 @@ const coreEntries = [
|
|
|
316
316
|
}
|
|
317
317
|
],
|
|
318
318
|
register: async ({ program }) => {
|
|
319
|
-
(await import("./register.status-health-sessions-
|
|
319
|
+
(await import("./register.status-health-sessions-DAl9OeGB.js")).registerStatusHealthSessionsCommands(program);
|
|
320
320
|
}
|
|
321
321
|
},
|
|
322
322
|
{
|
|
@@ -325,7 +325,7 @@ const coreEntries = [
|
|
|
325
325
|
description: "Set your Anthropic API key — the fastest way to get started"
|
|
326
326
|
}],
|
|
327
327
|
register: async ({ program }) => {
|
|
328
|
-
const { setupTokenCommand, hasAnthropicToken, autoDetectToken } = await import("./setup-token-
|
|
328
|
+
const { setupTokenCommand, hasAnthropicToken, autoDetectToken } = await import("./setup-token-6DSKE0Tn.js");
|
|
329
329
|
program.command("setup-token").description("Set your Anthropic API key — no claude CLI login needed").option("--token <key>", "Anthropic API key (sk-ant-api01-... or sk-ant-oat01-...)").option("--skip-validation", "Skip live API check (use if offline)").option("--json", "Output JSON result", false).addHelpText("after", `
|
|
330
330
|
Examples:
|
|
331
331
|
anima setup-token # Interactive — prompts for key + validates
|
|
@@ -380,7 +380,7 @@ Examples:
|
|
|
380
380
|
}
|
|
381
381
|
],
|
|
382
382
|
register: async ({ program }) => {
|
|
383
|
-
(await import("./register.anima-
|
|
383
|
+
(await import("./register.anima-RI6gewtj.js")).registerAnimaCommands(program);
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
386
|
];
|
|
@@ -15,10 +15,10 @@ import "./shell-env-2QqHvBMl.js";
|
|
|
15
15
|
import "./client-CfLiulzK.js";
|
|
16
16
|
import "./call-B4lhqS6H.js";
|
|
17
17
|
import "./message-channel-DIHHKJhk.js";
|
|
18
|
-
import "./subagent-registry-
|
|
18
|
+
import "./subagent-registry-CDEUbtey.js";
|
|
19
19
|
import "./sessions-C_3wTmSA.js";
|
|
20
20
|
import "./tokens-CmlI2hSz.js";
|
|
21
|
-
import "./anthropic-direct-runner-
|
|
21
|
+
import "./anthropic-direct-runner-Bu8w-wlJ.js";
|
|
22
22
|
import "./pi-embedded-helpers-D2SLlgS4.js";
|
|
23
23
|
import "./sandbox-D-N7M7lp.js";
|
|
24
24
|
import "./chrome-CmxIwwsr.js";
|
|
@@ -44,7 +44,7 @@ import "./common-CqIa2poH.js";
|
|
|
44
44
|
import "./chunk-Cy0Bj0F3.js";
|
|
45
45
|
import "./parse-timeout-D4UO8pY_.js";
|
|
46
46
|
import "./active-listener-gGCoq55D.js";
|
|
47
|
-
import "./context-
|
|
47
|
+
import "./context-mdxDsO1v.js";
|
|
48
48
|
import "./pi-tools.policy-D2FusuQa.js";
|
|
49
49
|
import "./session-cost-usage-DnxtnK1E.js";
|
|
50
50
|
import "./control-service-3CI4vt1h.js";
|
|
@@ -55,13 +55,13 @@ import { t as formatDocsLink } from "./links-BjjDMNIq.js";
|
|
|
55
55
|
import "./progress-glCgu57m.js";
|
|
56
56
|
import "./logging-DWwOqnTW.js";
|
|
57
57
|
import "./auth-store-BEfSfCbW.js";
|
|
58
|
-
import "./register.subclis-
|
|
59
|
-
import { i as registerProgramCommands } from "./command-registry-
|
|
58
|
+
import "./register.subclis-DEFeoyPP.js";
|
|
59
|
+
import { i as registerProgramCommands } from "./command-registry-DUTqrmna.js";
|
|
60
60
|
import { r as setProgramContext } from "./program-context-Dw8HDTRz.js";
|
|
61
61
|
import { r as listChannelPluginCatalogEntries } from "./catalog-B-TAbJ2o.js";
|
|
62
62
|
import { t as forceFreePort } from "./ports-BGLuwt2Z.js";
|
|
63
|
-
import { t as ensurePluginRegistryLoaded } from "./plugin-registry-
|
|
64
|
-
import { n as formatCliBannerLine, r as hasEmittedCliBanner, t as emitCliBanner } from "./banner-
|
|
63
|
+
import { t as ensurePluginRegistryLoaded } from "./plugin-registry-DKexyPAq.js";
|
|
64
|
+
import { n as formatCliBannerLine, r as hasEmittedCliBanner, t as emitCliBanner } from "./banner-XT5N0ZF4.js";
|
|
65
65
|
import { Command } from "commander";
|
|
66
66
|
|
|
67
67
|
//#region src/cli/channel-options.ts
|
|
@@ -210,7 +210,7 @@ function registerPreActionHooks(program, programVersion) {
|
|
|
210
210
|
await ensureNoxsoftBootstrapPersisted({ agent: auth.agent });
|
|
211
211
|
}
|
|
212
212
|
if (PLUGIN_REQUIRED_COMMANDS.has(commandPath[0])) {
|
|
213
|
-
const { ensurePluginRegistryLoaded } = await import("./plugin-registry-
|
|
213
|
+
const { ensurePluginRegistryLoaded } = await import("./plugin-registry-DKexyPAq.js").then((n) => n.n);
|
|
214
214
|
ensurePluginRegistryLoaded();
|
|
215
215
|
}
|
|
216
216
|
});
|