@axiom-lattice/gateway 2.1.29 → 2.1.30

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @axiom-lattice/gateway@2.1.29 build /home/runner/work/agentic/agentic/packages/gateway
2
+ > @axiom-lattice/gateway@2.1.30 build /home/runner/work/agentic/agentic/packages/gateway
3
3
  > tsup src/index.ts --format cjs,esm --dts --clean --sourcemap
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -9,17 +9,17 @@
9
9
  CLI Cleaning output folder
10
10
  CJS Build start
11
11
  ESM Build start
12
- CJS dist/index.js 113.02 KB
13
- CJS dist/index.js.map 249.46 KB
14
- CJS ⚡️ Build success in 237ms
15
- ESM dist/index.mjs 106.98 KB
12
+ CJS dist/index.js 145.26 KB
13
+ CJS dist/index.js.map 316.16 KB
14
+ CJS ⚡️ Build success in 283ms
16
15
  ESM dist/config-F3FCBSPH.mjs 148.00 B
16
+ ESM dist/index.mjs 138.74 KB
17
17
  ESM dist/chunk-FSASG3SB.mjs 2.46 KB
18
- ESM dist/index.mjs.map 244.09 KB
19
18
  ESM dist/config-F3FCBSPH.mjs.map 71.00 B
20
19
  ESM dist/chunk-FSASG3SB.mjs.map 5.33 KB
21
- ESM ⚡️ Build success in 240ms
20
+ ESM dist/index.mjs.map 310.76 KB
21
+ ESM ⚡️ Build success in 285ms
22
22
  DTS Build start
23
- DTS ⚡️ Build success in 9708ms
23
+ DTS ⚡️ Build success in 10103ms
24
24
  DTS dist/index.d.ts 3.72 KB
25
25
  DTS dist/index.d.mts 3.72 KB
package/AGENTS.md ADDED
@@ -0,0 +1,50 @@
1
+ ## OVERVIEW
2
+ Fastify-based HTTP API gateway exposing REST endpoints for agent execution, thread management, and config CRUD.
3
+
4
+ ## STRUCTURE
5
+ ```
6
+ src/
7
+ index.ts # Gateway startup, Fastify config
8
+ routes/index.ts # Route definitions (registerLatticeRoutes)
9
+ controllers/ # Route handlers
10
+ run.ts # Agent execution endpoints
11
+ assistant.ts # Agent CRUD
12
+ threads.ts # Thread lifecycle
13
+ memory.ts # Agent state/memory access
14
+ skills.ts # Skill registry
15
+ tools.ts # Tool configs
16
+ models.ts # Model registry
17
+ schedules.ts # Task scheduling
18
+ database-configs.ts # DB connection configs
19
+ workspace.ts # Workspace CRUD
20
+ config.ts # Gateway config
21
+ health.ts # Health checks
22
+ services/ # Business logic
23
+ agent_service.ts # Agent invocation/streaming
24
+ queue_service.ts # Task queue (memory/redis)
25
+ agent_task_consumer.ts # Queue consumer
26
+ sandbox_service.ts # Sandbox proxy
27
+ schemas/index.ts # Zod/Fastify schemas
28
+ logger/Logger.ts # Logger lattice integration
29
+ ```
30
+
31
+ ## WHERE TO LOOK
32
+ - **Run agent**: `routes/index.ts` (/api/runs), `controllers/run.ts`, `services/agent_service.ts`
33
+ - **Stream responses**: `controllers/run.ts` (SSE via reply.hijack), `services/agent_service.ts#agent_stream`
34
+ - **Thread CRUD**: `routes/index.ts`, `controllers/threads.ts`
35
+ - **Assistant CRUD**: `routes/index.ts`, `controllers/assistant.ts`
36
+ - **Memory/State**: `routes/index.ts` (/api/assistants/:id/:thread_id/state), `controllers/memory.ts`
37
+ - **Skills registry**: `routes/index.ts`, `controllers/skills.ts`
38
+ - **Scheduling**: `routes/index.ts`, `controllers/schedules.ts`
39
+ - **Config endpoints**: `routes/index.ts`, `controllers/config.ts`
40
+ - **DB configs**: `routes/index.ts`, `controllers/database-configs.ts`
41
+ - **Queue setup**: `services/queue_service.ts`, `services/agent_task_consumer.ts`
42
+ - **Logger lattice**: `logger/Logger.ts`, integration in `index.ts`
43
+
44
+ ## CONVENTIONS
45
+ - Controllers export named handlers, consume from `services/`
46
+ - Services contain business logic, talk to `@axiom-lattice/core`
47
+ - Routes registered via `registerLatticeRoutes(app)`
48
+ - Streaming: use `reply.hijack()` + SSE headers, iterate async generators
49
+ - Tenant/workspace headers: `x-tenant-id`, `x-workspace-id`, `x-project-id`
50
+ - Schemas in `schemas/index.ts` for validation/Swagger
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @axiom-lattice/gateway
2
2
 
3
+ ## 2.1.30
4
+
5
+ ### Patch Changes
6
+
7
+ - 203d94b: update metrics middleware and tenant / user
8
+ - Updated dependencies [203d94b]
9
+ - @axiom-lattice/protocols@2.1.15
10
+ - @axiom-lattice/core@2.1.25
11
+ - @axiom-lattice/queue-redis@1.0.14
12
+
3
13
  ## 2.1.29
4
14
 
5
15
  ### Patch Changes