arkna-sdk 0.1.0

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.
@@ -0,0 +1,402 @@
1
+ /**
2
+ * ARKNA SDK Types
3
+ *
4
+ * Type definitions for the ARKNA AI Trust Gateway SDK.
5
+ */
6
+ /** Configuration for ArknaClient */
7
+ export interface ArknaConfig {
8
+ /** Integration token (intk_...) */
9
+ token?: string;
10
+ /** Gateway base URL (e.g. https://api.arkna.com.au) */
11
+ gatewayUrl?: string;
12
+ /** Agent ID (set after registration) */
13
+ agentId?: string;
14
+ /** Request timeout in ms (default: 30000) */
15
+ timeoutMs?: number;
16
+ /** Max retry attempts for transient errors (default: 3) */
17
+ maxRetries?: number;
18
+ /** Base retry delay in ms before exponential backoff (default: 500) */
19
+ retryDelayMs?: number;
20
+ /** Override enforcement mode (default: uses mode from governance contract).
21
+ * NOTE: Enforcement cannot be disabled. When a governance contract exists, HTTP interception is mandatory. */
22
+ enforcementMode?: 'strict' | 'advisory' | 'transparent';
23
+ }
24
+ /** A tool available through the gateway */
25
+ export interface ToolDefinition {
26
+ name: string;
27
+ description: string;
28
+ parameters: Record<string, unknown>;
29
+ }
30
+ /** Portable permit — cryptographic proof of authorization */
31
+ export interface PortablePermit {
32
+ id: string;
33
+ action_type: string;
34
+ granted_at: string;
35
+ expires_at: string;
36
+ constraints: Record<string, unknown>;
37
+ signature: string;
38
+ algorithm?: string;
39
+ key_id?: string;
40
+ request_hash?: string;
41
+ }
42
+ /** Result from executing an action through the gateway */
43
+ export interface ActionResult {
44
+ decision: 'ALLOW' | 'NEEDS_APPROVAL' | 'DENY';
45
+ status: 'executed' | 'queued' | 'denied';
46
+ reason?: string;
47
+ result?: unknown;
48
+ evidence_id?: string;
49
+ policy_version?: string;
50
+ request_id: string;
51
+ duration_ms?: number;
52
+ permit_id?: string;
53
+ permit?: PortablePermit;
54
+ /** True if this was a cached idempotent response */
55
+ idempotent?: boolean;
56
+ }
57
+ /** Result from heartbeat */
58
+ export interface HeartbeatResult {
59
+ status: string;
60
+ agent_id: string;
61
+ kill_switch: boolean;
62
+ kill_reason?: string;
63
+ safe_state?: string;
64
+ server_time: string;
65
+ }
66
+ /** Result from registration */
67
+ export interface RegisterResult {
68
+ agent: {
69
+ id: string;
70
+ name: string;
71
+ status: string;
72
+ agent_source: string;
73
+ agent_type: string;
74
+ external_platform: string;
75
+ };
76
+ message: string;
77
+ next?: {
78
+ config: string;
79
+ heartbeat: string;
80
+ tools: string;
81
+ actions: string;
82
+ hint: string;
83
+ };
84
+ }
85
+ /** Tools list response */
86
+ export interface ToolsResponse {
87
+ agent_id: string;
88
+ tools: ToolDefinition[];
89
+ count: number;
90
+ }
91
+ /** Governance/config envelope */
92
+ export interface GovernanceEnvelope {
93
+ agent: {
94
+ id: string;
95
+ name: string;
96
+ status: string;
97
+ risk_tier: string;
98
+ agent_source: string;
99
+ external_platform: string;
100
+ agent_type: string;
101
+ };
102
+ tools: ToolDefinition[];
103
+ permissions: Record<string, {
104
+ permission: string;
105
+ config: Record<string, unknown>;
106
+ }>;
107
+ policies: Array<{
108
+ id: string;
109
+ name: string;
110
+ description: string;
111
+ priority: number;
112
+ scope: string;
113
+ }>;
114
+ constitution: Array<{
115
+ category: string;
116
+ rule: string;
117
+ severity: string;
118
+ }>;
119
+ kill_switch: {
120
+ active: boolean;
121
+ reason: string | null;
122
+ };
123
+ attestation_policy: {
124
+ mode: string;
125
+ header: string;
126
+ required_for_high_risk: boolean;
127
+ required_for_all: boolean;
128
+ action_hash_shape: string;
129
+ nonce_replay_protection: boolean;
130
+ allowed_algs: string[];
131
+ max_clock_skew_ms: number;
132
+ };
133
+ overlay: Record<string, unknown>;
134
+ gateway: {
135
+ url: string;
136
+ endpoints: Record<string, string>;
137
+ };
138
+ config_version: string;
139
+ refresh_interval_seconds: number;
140
+ }
141
+ /** SSE message from the gateway */
142
+ export interface GatewayMessage {
143
+ event: string;
144
+ data: {
145
+ message_id?: string;
146
+ session_id?: string;
147
+ content?: string;
148
+ created_at?: string;
149
+ visitor_email?: string;
150
+ conversation_history?: Array<{
151
+ role: string;
152
+ content: string;
153
+ }>;
154
+ [key: string]: unknown;
155
+ };
156
+ }
157
+ /** Options for execute() */
158
+ export interface ExecuteOptions {
159
+ /** Custom request ID (auto-generated if not provided) */
160
+ requestId?: string;
161
+ /** If true, evaluate without persisting or executing */
162
+ dryRun?: boolean;
163
+ }
164
+ /** Handle returned by startHeartbeat() */
165
+ export interface HeartbeatHandle {
166
+ stop: () => void;
167
+ }
168
+ /** Summary of an active standing permit (agent-facing, sanitized) */
169
+ export interface StandingPermitSummary {
170
+ name: string;
171
+ description: string | null;
172
+ tool_id: string | null;
173
+ conditions: Record<string, unknown>;
174
+ constraints: Record<string, unknown>;
175
+ valid_from: string;
176
+ valid_until: string | null;
177
+ max_uses: number | null;
178
+ current_uses: number;
179
+ remaining_uses: number | null;
180
+ status: string;
181
+ }
182
+ /** Entry to store in the agent experience log */
183
+ export interface ContextEntry {
184
+ memory_type: 'observation' | 'action' | 'outcome' | 'reflection' | 'correction';
185
+ content: string;
186
+ session_id?: string;
187
+ importance?: number;
188
+ metadata?: Record<string, unknown>;
189
+ expires_at?: string;
190
+ }
191
+ /** A stored experience entry */
192
+ export interface ExperienceEntry {
193
+ id: string;
194
+ memory_type: string;
195
+ content: string;
196
+ content_hash: string;
197
+ session_id: string | null;
198
+ importance: number;
199
+ metadata: Record<string, unknown>;
200
+ consolidated: boolean;
201
+ access_count: number;
202
+ created_at: string;
203
+ }
204
+ /** Options for recalling experience log entries */
205
+ export interface RecallOptions {
206
+ type?: string;
207
+ session?: string;
208
+ since?: string;
209
+ limit?: number;
210
+ offset?: number;
211
+ }
212
+ /** Options for building working context */
213
+ export interface ContextBudgetOptions {
214
+ query?: string;
215
+ max_tokens?: number;
216
+ include_shared?: boolean;
217
+ }
218
+ /** Options for querying the semantic graph */
219
+ export interface GraphOptions {
220
+ query?: string;
221
+ node_type?: string;
222
+ limit?: number;
223
+ }
224
+ /** @deprecated Use ContextEntry instead */
225
+ export type MemoryEntry = ContextEntry;
226
+ /** @deprecated Use ExperienceEntry instead */
227
+ export type MemoryEpisode = ExperienceEntry;
228
+ /** @deprecated Use ContextBudgetOptions instead */
229
+ export type ContextOptions = ContextBudgetOptions;
230
+ /** A semantic node in the knowledge graph */
231
+ export interface SemanticNode {
232
+ id: string;
233
+ node_type: string;
234
+ label: string;
235
+ content: string | null;
236
+ strength: number;
237
+ access_count: number;
238
+ metadata: Record<string, unknown>;
239
+ created_at: string;
240
+ edges?: SemanticEdge[];
241
+ }
242
+ /** An edge in the semantic graph */
243
+ export interface SemanticEdge {
244
+ id: string;
245
+ source_node_id: string;
246
+ target_node_id: string;
247
+ relation: string;
248
+ weight: number;
249
+ source_label?: string;
250
+ target_label?: string;
251
+ }
252
+ /** Working memory context assembled from all memory layers */
253
+ export interface WorkingMemoryContext {
254
+ agent_id: string;
255
+ episodes: MemoryEpisode[];
256
+ graph_context: SemanticNode[];
257
+ shared: SemanticNode[];
258
+ token_estimate: number;
259
+ }
260
+ /** License response from GET /license */
261
+ export interface LicenseResponse {
262
+ license: {
263
+ version: '1.0';
264
+ license_id: string;
265
+ agent_id: string;
266
+ tenant_id: string;
267
+ issued_at: string;
268
+ expires_at: string;
269
+ license_hash: string;
270
+ rules: Array<{
271
+ tool_pattern: string;
272
+ decision: 'allow' | 'escalate' | 'deny';
273
+ constraints?: Record<string, unknown>;
274
+ reason?: string;
275
+ }>;
276
+ global_constraints: {
277
+ max_actions_per_hour: number;
278
+ max_cost_per_day_usd: number | null;
279
+ blocked_domains: string[];
280
+ };
281
+ trust_gradient: Record<string, number>;
282
+ signature: string;
283
+ signature_alg: 'ed25519';
284
+ public_key: string;
285
+ };
286
+ stamp_secret: string;
287
+ }
288
+ /** Input for a single step in a batch */
289
+ export interface StepInput {
290
+ step_type: string;
291
+ input?: string;
292
+ output?: string;
293
+ reasoning?: string;
294
+ tokens_used?: number;
295
+ cost_cents?: number;
296
+ metadata?: Record<string, unknown>;
297
+ }
298
+ /** Result from batch step recording */
299
+ export interface StepBatchResult {
300
+ steps: Array<{
301
+ step_id: string;
302
+ sequence: number;
303
+ step_hash: string;
304
+ }>;
305
+ }
306
+ /** Result from closing a session */
307
+ export interface CloseSessionResult {
308
+ sessionId: string;
309
+ status: 'completed' | 'abandoned';
310
+ }
311
+ /** A tool declared by an external agent for governance tracking */
312
+ export interface DeclaredTool {
313
+ /** Tool name (must be unique per agent) */
314
+ name: string;
315
+ /** Human-readable description */
316
+ description?: string;
317
+ /** Tool category (e.g. 'read', 'write', 'admin') */
318
+ category?: string;
319
+ /** JSON Schema for tool parameters */
320
+ parameters?: Record<string, unknown>;
321
+ }
322
+ /** Options for starting a new run */
323
+ export interface StartRunOptions {
324
+ triggerType?: 'api' | 'schedule' | 'webhook' | 'manual';
325
+ triggerSource?: string;
326
+ input?: string;
327
+ instructions?: string;
328
+ sessionId?: string;
329
+ metadata?: Record<string, unknown>;
330
+ }
331
+ /** Result from starting a run */
332
+ export interface RunHandle {
333
+ runId: string;
334
+ status: string;
335
+ startedAt: string;
336
+ }
337
+ /** Options for recording a step */
338
+ export interface StepOptions {
339
+ stepType: 'reasoning' | 'tool_call' | 'retrieval' | 'action' | 'error' | 'completion';
340
+ input?: string;
341
+ output?: string;
342
+ reasoning?: string;
343
+ startedAt?: string;
344
+ completedAt?: string;
345
+ durationMs?: number;
346
+ tokensUsed?: number;
347
+ errorType?: string;
348
+ errorMessage?: string;
349
+ metadata?: Record<string, unknown>;
350
+ }
351
+ /** Result from recording a step */
352
+ export interface StepResult {
353
+ stepId: string;
354
+ sequence: number;
355
+ stepHash: string;
356
+ }
357
+ /** Options for recording a tool call */
358
+ export interface ToolCallOptions {
359
+ stepId?: string;
360
+ toolName: string;
361
+ toolVersion?: string;
362
+ arguments?: Record<string, unknown>;
363
+ result?: unknown;
364
+ status?: 'success' | 'error' | 'timeout';
365
+ errorMessage?: string;
366
+ startedAt?: string;
367
+ completedAt?: string;
368
+ durationMs?: number;
369
+ sideEffect?: boolean;
370
+ targetSystem?: string;
371
+ }
372
+ /** Options for completing a run */
373
+ export interface CompleteRunOptions {
374
+ status: 'completed' | 'failed' | 'timeout';
375
+ output?: string;
376
+ errorType?: string;
377
+ errorMessage?: string;
378
+ totalTokens?: number;
379
+ totalCostCents?: number;
380
+ }
381
+ /** Result from completing a run */
382
+ export interface RunResult {
383
+ runId: string;
384
+ status: string;
385
+ durationMs: number;
386
+ chainHash: string;
387
+ }
388
+ /** Options for capturing context */
389
+ export interface CaptureContextOptions {
390
+ stepId?: string;
391
+ systemPrompt?: string;
392
+ activeInstructions?: string[];
393
+ retrievedMemories?: unknown[];
394
+ retrievedDocuments?: unknown[];
395
+ totalTokens?: number;
396
+ metadata?: Record<string, unknown>;
397
+ }
398
+ /** Session handle */
399
+ export interface SessionHandle {
400
+ sessionId: string;
401
+ }
402
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,oCAAoC;AACpC,MAAM,WAAW,WAAW;IAC1B,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wCAAwC;IACxC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2DAA2D;IAC3D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uEAAuE;IACvE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;kHAC8G;IAC9G,eAAe,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,aAAa,CAAC;CACzD;AAED,2CAA2C;AAC3C,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC,MAAM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E,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,mCAAmC;AACnC,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAC;IAC3C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,mCAAmC;AACnC,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,oCAAoC;AACpC,MAAM,WAAW,qBAAqB;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,iBAAiB,CAAC,EAAE,OAAO,EAAE,CAAC;IAC9B,kBAAkB,CAAC,EAAE,OAAO,EAAE,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED,qBAAqB;AACrB,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;CACnB"}
package/dist/types.js ADDED
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ /**
3
+ * ARKNA SDK Types
4
+ *
5
+ * Type definitions for the ARKNA AI Trust Gateway SDK.
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";AAAA;;;;GAIG"}
package/package.json ADDED
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "arkna-sdk",
3
+ "version": "0.1.0",
4
+ "description": "Official Node.js SDK for ARKNA agent observability and incident intelligence",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "scripts": {
11
+ "build": "tsc",
12
+ "clean": "rm -rf dist",
13
+ "test": "jest --forceExit",
14
+ "prepublishOnly": "npm run clean && npm run build"
15
+ },
16
+ "devDependencies": {
17
+ "@types/jest": "^30.0.0",
18
+ "@types/node": "^20.0.0",
19
+ "jest": "^30.2.0",
20
+ "ts-jest": "^29.4.6",
21
+ "typescript": "^5.9.3"
22
+ },
23
+ "engines": {
24
+ "node": ">=18.0.0"
25
+ },
26
+ "keywords": [
27
+ "arkna",
28
+ "ai-agents",
29
+ "agent-observability",
30
+ "incident-intelligence",
31
+ "agent-replay",
32
+ "black-box-recorder",
33
+ "crewai",
34
+ "langchain"
35
+ ],
36
+ "license": "MIT",
37
+ "repository": {
38
+ "type": "git",
39
+ "url": "https://github.com/arkna/arkna-sdk-node"
40
+ }
41
+ }