@kindgi/api 0.1.1 → 0.1.2
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/routes/sse.d.ts +2 -2
- package/dist/routes/sse.js +1 -1
- package/package.json +24 -24
- package/src/routes/sse.ts +2 -2
package/dist/routes/sse.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type { RunId, TenantId } from '@kindgi/types';
|
|
|
6
6
|
* Source of truth: `@kindgi/specs/run-event.schema.json`. Names are dotted
|
|
7
7
|
* `run.<xxx>-<yyy>` (e.g. `run.step-completed`) — matches the
|
|
8
8
|
* conventions doc §6 example. Internal-only kernel journal kinds
|
|
9
|
-
* (e.g. `
|
|
9
|
+
* (e.g. `value.recorded`) and kinds absent from the wire enum
|
|
10
10
|
* (`edge.evaluated`) are dropped by the mapper — the journal endpoint
|
|
11
11
|
* still exposes them.
|
|
12
12
|
*/
|
|
@@ -14,7 +14,7 @@ export type RunEventKind = 'run.started' | 'run.step-started' | 'run.step-comple
|
|
|
14
14
|
/**
|
|
15
15
|
* Project a kernel `JournalEntry` into the wire `RunEvent` shape
|
|
16
16
|
* consumed over SSE. Returns `null` for kernel kinds not exposed on
|
|
17
|
-
* the wire (`edge.evaluated`, `
|
|
17
|
+
* the wire (`edge.evaluated`, `value.recorded`).
|
|
18
18
|
*/
|
|
19
19
|
export declare function projectJournalEntry(entry: JournalEntry, runId: RunId, tenantId: TenantId): {
|
|
20
20
|
wireKind: RunEventKind;
|
package/dist/routes/sse.js
CHANGED
|
@@ -23,7 +23,7 @@ const TERMINAL_KINDS = new Set([
|
|
|
23
23
|
/**
|
|
24
24
|
* Project a kernel `JournalEntry` into the wire `RunEvent` shape
|
|
25
25
|
* consumed over SSE. Returns `null` for kernel kinds not exposed on
|
|
26
|
-
* the wire (`edge.evaluated`, `
|
|
26
|
+
* the wire (`edge.evaluated`, `value.recorded`).
|
|
27
27
|
*/
|
|
28
28
|
export function projectJournalEntry(entry, runId, tenantId) {
|
|
29
29
|
const wireKind = KERNEL_TO_WIRE[entry.kind];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kindgi/api",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "REST + SSE HTTP surface for Kindgi™. createApp assembles a Hono app serving the /v1/* REST API (bearer or session-token auth; OpenAPI 3.1 document at /v1/openapi.json) and an optional S3-compatible /s3/* surface (SigV4), over caller-plugged bindings for the runtime (runs, agents, flows, HITL, supervisor) and for storage. Route conventions: docs/API-ROUTE-CONVENTIONS.md.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
"exports": {
|
|
19
19
|
".": {
|
|
20
20
|
"types": "./dist/index.d.ts",
|
|
21
|
-
"import": "./dist/index.js"
|
|
21
|
+
"import": "./dist/index.js",
|
|
22
|
+
"default": "./dist/index.js"
|
|
22
23
|
},
|
|
23
24
|
"./openapi.json": "./openapi.json",
|
|
24
25
|
"./package.json": "./package.json"
|
|
@@ -31,31 +32,30 @@
|
|
|
31
32
|
"openapi.json"
|
|
32
33
|
],
|
|
33
34
|
"dependencies": {
|
|
34
|
-
"@kindgi/agents": "0.1.
|
|
35
|
-
"@kindgi/audit-events": "0.1.
|
|
36
|
-
"@kindgi/compliance": "0.1.
|
|
37
|
-
"@kindgi/authz": "0.1.
|
|
38
|
-
"@kindgi/blob-binding": "0.1.
|
|
39
|
-
"@kindgi/capabilities": "0.1.
|
|
40
|
-
"@kindgi/crypto": "0.1.
|
|
41
|
-
"@kindgi/flow": "0.1.
|
|
42
|
-
"@kindgi/guardrails": "0.1.
|
|
43
|
-
"@kindgi/memory": "0.1.
|
|
44
|
-
"@kindgi/platform": "0.1.
|
|
45
|
-
"@kindgi/provenance": "0.1.
|
|
46
|
-
"@kindgi/runtime": "0.1.
|
|
47
|
-
"@kindgi/policy-contract": "0.1.
|
|
48
|
-
"@kindgi/schema": "0.1.
|
|
49
|
-
"@kindgi/tools": "0.1.
|
|
50
|
-
"@kindgi/types": "0.1.
|
|
35
|
+
"@kindgi/agents": "0.1.2",
|
|
36
|
+
"@kindgi/audit-events": "0.1.2",
|
|
37
|
+
"@kindgi/compliance": "0.1.2",
|
|
38
|
+
"@kindgi/authz": "0.1.2",
|
|
39
|
+
"@kindgi/blob-binding": "0.1.2",
|
|
40
|
+
"@kindgi/capabilities": "0.1.2",
|
|
41
|
+
"@kindgi/crypto": "0.1.2",
|
|
42
|
+
"@kindgi/flow": "0.1.2",
|
|
43
|
+
"@kindgi/guardrails": "0.1.2",
|
|
44
|
+
"@kindgi/memory": "0.1.2",
|
|
45
|
+
"@kindgi/platform": "0.1.2",
|
|
46
|
+
"@kindgi/provenance": "0.1.2",
|
|
47
|
+
"@kindgi/runtime": "0.1.2",
|
|
48
|
+
"@kindgi/policy-contract": "0.1.2",
|
|
49
|
+
"@kindgi/schema": "0.1.2",
|
|
50
|
+
"@kindgi/tools": "0.1.2",
|
|
51
|
+
"@kindgi/types": "0.1.2",
|
|
51
52
|
"@scalar/hono-api-reference": "^0.12.2",
|
|
52
|
-
"drizzle-orm": "^0.36.4",
|
|
53
53
|
"hono": "^4.6.14"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@kindgi/audit-events-inmemory": "0.1.
|
|
57
|
-
"@kindgi/specs": "0.1.
|
|
58
|
-
"@kindgi/testing": "0.1.
|
|
56
|
+
"@kindgi/audit-events-inmemory": "0.1.2",
|
|
57
|
+
"@kindgi/specs": "0.1.2",
|
|
58
|
+
"@kindgi/testing": "0.1.2",
|
|
59
59
|
"@types/aws4": "^1.11.6",
|
|
60
60
|
"@types/node": "^22.10.5",
|
|
61
61
|
"aws4": "^1.13.2",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"vitest": "^2.1.8"
|
|
64
64
|
},
|
|
65
65
|
"engines": {
|
|
66
|
-
"node": ">=22.
|
|
66
|
+
"node": ">=22.12.0"
|
|
67
67
|
},
|
|
68
68
|
"publishConfig": {
|
|
69
69
|
"access": "public",
|
package/src/routes/sse.ts
CHANGED
|
@@ -12,7 +12,7 @@ import type { RunId, TenantId } from '@kindgi/types';
|
|
|
12
12
|
* Source of truth: `@kindgi/specs/run-event.schema.json`. Names are dotted
|
|
13
13
|
* `run.<xxx>-<yyy>` (e.g. `run.step-completed`) — matches the
|
|
14
14
|
* conventions doc §6 example. Internal-only kernel journal kinds
|
|
15
|
-
* (e.g. `
|
|
15
|
+
* (e.g. `value.recorded`) and kinds absent from the wire enum
|
|
16
16
|
* (`edge.evaluated`) are dropped by the mapper — the journal endpoint
|
|
17
17
|
* still exposes them.
|
|
18
18
|
*/
|
|
@@ -54,7 +54,7 @@ const TERMINAL_KINDS: ReadonlySet<RunEventKind> = new Set([
|
|
|
54
54
|
/**
|
|
55
55
|
* Project a kernel `JournalEntry` into the wire `RunEvent` shape
|
|
56
56
|
* consumed over SSE. Returns `null` for kernel kinds not exposed on
|
|
57
|
-
* the wire (`edge.evaluated`, `
|
|
57
|
+
* the wire (`edge.evaluated`, `value.recorded`).
|
|
58
58
|
*/
|
|
59
59
|
export function projectJournalEntry(
|
|
60
60
|
entry: JournalEntry,
|