@alfe.ai/gateway 0.0.1 → 0.0.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/health.js +15598 -182
- package/dist/src/index.d.ts +4 -4
- package/package.json +6 -3
package/dist/src/index.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ declare function startDaemon(): Promise<void>;
|
|
|
38
38
|
* 4. Use tokenId as agent identity for cloud registration
|
|
39
39
|
*/
|
|
40
40
|
interface AgentWorkspaceConfig {
|
|
41
|
-
|
|
41
|
+
templateKey?: string;
|
|
42
42
|
files: Record<string, string>;
|
|
43
43
|
}
|
|
44
44
|
declare const ALFE_DIR: string;
|
|
@@ -86,10 +86,10 @@ declare function loadDaemonConfig(): Promise<DaemonConfig>;
|
|
|
86
86
|
/**
|
|
87
87
|
* Fetch agent workspace config from the API.
|
|
88
88
|
*
|
|
89
|
-
* 1. GET /agents/me/workspace → {
|
|
90
|
-
* 2. If
|
|
89
|
+
* 1. GET /agents/me/workspace → { templateKey }
|
|
90
|
+
* 2. If templateKey set, GET /templates/:key/files → persona file contents
|
|
91
91
|
*
|
|
92
|
-
* Returns null if the agent has no
|
|
92
|
+
* Returns null if the agent has no template assigned or the fetch fails.
|
|
93
93
|
*/
|
|
94
94
|
declare function fetchAgentConfig(apiKey: string, apiEndpoint: string): Promise<AgentWorkspaceConfig | null>;
|
|
95
95
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfe.ai/gateway",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Alfe local gateway daemon — persistent control plane for agent integrations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -22,8 +22,11 @@
|
|
|
22
22
|
"smol-toml": "^1.3.0",
|
|
23
23
|
"pino-roll": "^1.2.0",
|
|
24
24
|
"ws": "^8.18.0",
|
|
25
|
-
"@alfe
|
|
26
|
-
"@alfe.ai/
|
|
25
|
+
"@alfe/api-client": "0.1.0",
|
|
26
|
+
"@alfe.ai/ai-proxy-local": "^0.0.2",
|
|
27
|
+
"@alfe.ai/config": "^0.0.2",
|
|
28
|
+
"@alfe.ai/doctor": "^0.0.2",
|
|
29
|
+
"@alfe.ai/integrations": "^0.0.2"
|
|
27
30
|
},
|
|
28
31
|
"devDependencies": {
|
|
29
32
|
"@types/ws": "^8.5.13",
|