@forbocai/core 0.6.0 → 0.6.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/index.d.ts CHANGED
@@ -4,18 +4,11 @@ import * as redux_thunk from 'redux-thunk';
4
4
  import * as redux from 'redux';
5
5
  import * as _reduxjs_toolkit_query from '@reduxjs/toolkit/query';
6
6
 
7
- /**
8
- * ForbocAI Core Types
9
- * The foundational interfaces for the Multi-Round Protocol.
10
- */
11
7
  interface CortexConfig {
12
- /** Internal — runtime-specific model override. Not intended for game developers. */
13
8
  model?: string;
14
- /** Optional overrides for model parameters */
15
9
  temperature?: number;
16
10
  maxTokens?: number;
17
11
  gpu?: boolean;
18
- /** Connection Config */
19
12
  authKey?: string;
20
13
  apiUrl?: string;
21
14
  }
@@ -25,21 +18,27 @@ interface CortexStatus {
25
18
  ready: boolean;
26
19
  engine: 'mock' | 'remote' | 'node-llama-cpp' | 'web-llm';
27
20
  }
28
- interface ICortex {
29
- init(onProgress?: (progress: number) => void): Promise<CortexStatus>;
30
- complete(prompt: string, options?: CompletionOptions): Promise<string>;
31
- completeStream(prompt: string, options?: CompletionOptions): AsyncGenerator<string>;
32
- }
33
21
  interface CompletionOptions {
34
22
  temperature?: number;
35
23
  maxTokens?: number;
36
24
  stop?: string[];
37
25
  jsonSchema?: object;
38
26
  }
39
- interface NPCState {
40
- [key: string]: unknown;
27
+ interface ICortex {
28
+ init(onProgress?: (progress: number) => void): Promise<CortexStatus>;
29
+ complete(prompt: string, options?: CompletionOptions): Promise<string>;
30
+ completeStream(prompt: string, options?: CompletionOptions): AsyncGenerator<string>;
31
+ }
32
+
33
+ interface MemoryItem {
34
+ id: string;
35
+ text: string;
36
+ embedding?: number[];
37
+ timestamp: number;
38
+ type: string;
39
+ importance: number;
40
+ similarity?: number;
41
41
  }
42
- /** Interface for Memory module operations used by the NPC. */
43
42
  interface IMemory {
44
43
  store(text: string, type?: string, importance?: number): Promise<MemoryItem>;
45
44
  recall(query: string, limit?: number, threshold?: number): Promise<MemoryItem[]>;
@@ -48,6 +47,18 @@ interface IMemory {
48
47
  export(): Promise<MemoryItem[]>;
49
48
  import(memories: MemoryItem[]): Promise<void>;
50
49
  }
50
+
51
+ interface NPCState {
52
+ [key: string]: unknown;
53
+ }
54
+ interface NPCAction {
55
+ type: string;
56
+ target?: string;
57
+ payload?: Record<string, unknown>;
58
+ reason?: string;
59
+ confidence?: number;
60
+ signature?: string;
61
+ }
51
62
  interface AgentConfig {
52
63
  id: string;
53
64
  cortex: ICortex;
@@ -62,94 +73,47 @@ interface AgentResponse {
62
73
  action?: NPCAction;
63
74
  thought?: string;
64
75
  }
65
- /** Dialogue Request (Full API-side logic) */
66
- interface DialogueRequest {
67
- diagMessage: string;
68
- diagContext?: Array<[string, string]>;
69
- }
70
- /** Dialogue Response (Full API-side logic) */
71
- interface DialogueResponse {
72
- diagReply: string;
73
- }
74
- interface MemoryItem {
75
- id: string;
76
- text: string;
77
- embedding?: number[];
78
- timestamp: number;
79
- type: string;
80
- importance: number;
81
- }
82
- interface NPCAction {
83
- type: string;
84
- target?: string;
85
- payload?: Record<string, unknown>;
86
- reason?: string;
87
- confidence?: number;
88
- signature?: string;
89
- }
90
- /** Step 2: SDK → API. SDK sends observation + npc state. */
91
76
  interface DirectiveRequest {
92
77
  observation: string;
93
78
  npcState: NPCState;
94
79
  context?: Record<string, unknown>;
95
80
  }
96
- /** Step 3: API → SDK. API returns memory recall instructions. */
97
- interface DirectiveResponse {
98
- memoryRecall: MemoryRecallInstruction;
99
- }
100
- /** API tells SDK exactly what to recall from local vector DB. */
101
81
  interface MemoryRecallInstruction {
102
82
  query: string;
103
83
  limit: number;
104
84
  threshold: number;
105
85
  }
106
- /** Step 4: SDK → API. SDK sends recalled memories. */
107
- interface ContextRequest {
108
- memories: RecalledMemory[];
109
- observation: string;
110
- npcState: NPCState;
111
- persona: string;
86
+ interface DirectiveResponse {
87
+ memoryRecall: MemoryRecallInstruction;
112
88
  }
113
- /** A memory item as recalled by the SDK's local vector DB. */
114
89
  interface RecalledMemory {
115
90
  text: string;
116
91
  type: string;
117
92
  importance: number;
118
93
  similarity?: number;
119
94
  }
120
- /** Speak Request (Simple Dialogue) */
121
- interface SpeakRequest {
122
- speakMessage: string;
123
- speakContext?: Record<string, unknown>;
124
- speakNPCState: Record<string, unknown>;
95
+ interface ContextRequest {
96
+ memories: RecalledMemory[];
97
+ observation: string;
98
+ npcState: NPCState;
99
+ persona: string;
125
100
  }
126
- /** Speak Response (Simple Dialogue) */
127
- interface SpeakResponse {
128
- speakReply: string;
129
- speakHistory: Array<{
130
- role: string;
131
- content: string;
132
- }>;
101
+ interface PromptConstraints extends CompletionOptions {
133
102
  }
134
- /** Step 5: API → SDK. API returns full SLM prompt + constraints. */
135
103
  interface ContextResponse {
136
104
  prompt: string;
137
105
  constraints: PromptConstraints;
138
106
  }
139
- /** Constraints the API sends to control SLM generation. */
140
- interface PromptConstraints {
141
- maxTokens?: number;
142
- temperature?: number;
143
- stop?: string[];
144
- jsonSchema?: object;
145
- }
146
- /** Step 7: SDK → API. SDK sends generated output. */
147
107
  interface VerdictRequest {
148
108
  generatedOutput: string;
149
109
  observation: string;
150
110
  npcState: NPCState;
151
111
  }
152
- /** Step 8: API → SDK. API returns verdict + storage/state instructions. */
112
+ interface MemoryStoreInstruction {
113
+ text: string;
114
+ type: string;
115
+ importance: number;
116
+ }
153
117
  interface VerdictResponse {
154
118
  valid: boolean;
155
119
  signature?: string;
@@ -158,12 +122,96 @@ interface VerdictResponse {
158
122
  action?: NPCAction;
159
123
  dialogue: string;
160
124
  }
161
- /** API tells SDK exactly what to store in local vector DB. */
162
- interface MemoryStoreInstruction {
163
- text: string;
164
- type: string;
165
- importance: number;
125
+ /**
126
+ * User Story: As the SDK runtime, I need one accumulated "tape" payload that
127
+ * is echoed to the API each turn so orchestration remains stateless.
128
+ * ᚠ the tape hums like a cold star map passed hand to hand in the dark.
129
+ */
130
+ interface ProcessTape {
131
+ observation: string;
132
+ context: Record<string, unknown>;
133
+ npcState: Record<string, unknown>;
134
+ persona?: string;
135
+ actor?: {
136
+ npcId: string;
137
+ persona: string;
138
+ data?: Record<string, unknown>;
139
+ };
140
+ memories: RecalledMemory[];
141
+ prompt?: string;
142
+ constraints?: PromptConstraints;
143
+ generatedOutput?: string;
144
+ rulesetId?: string;
145
+ vectorQueried?: boolean;
146
+ }
147
+ /**
148
+ * User Story: As the API orchestrator, I need the SDK to perform actor lookup
149
+ * as an explicit atomic side-effect.
150
+ * A tiny identity ping echoes through the hull before the engines spin.
151
+ */
152
+ interface IdentifyActorInstruction {
153
+ type: 'IdentifyActor';
166
154
  }
155
+ /**
156
+ * User Story: As the API orchestrator, I need vector recall to be an explicit
157
+ * instruction with concrete query parameters.
158
+ * ᚢ one sharp memory sweep, like scanning ruins with a single beam.
159
+ */
160
+ interface QueryVectorInstruction {
161
+ type: 'QueryVector';
162
+ query: string;
163
+ limit: number;
164
+ threshold: number;
165
+ }
166
+ /**
167
+ * User Story: As the API orchestrator, I need local inference to execute from
168
+ * an API-provided prompt and constraints with zero SDK initiative.
169
+ * The body stays quiet and obedient while the mind scripts the pulse.
170
+ */
171
+ interface ExecuteInferenceInstruction {
172
+ type: 'ExecuteInference';
173
+ prompt: string;
174
+ constraints: PromptConstraints;
175
+ }
176
+ /**
177
+ * User Story: As the API orchestrator, I need a terminal instruction that
178
+ * carries validated output plus persistence instructions for the SDK.
179
+ * ᚱ this is the seal at the airlock when the cycle clicks shut.
180
+ */
181
+ interface FinalizeInstruction {
182
+ type: 'Finalize';
183
+ valid: boolean;
184
+ signature?: string;
185
+ memoryStore: MemoryStoreInstruction[];
186
+ stateTransform: Record<string, unknown>;
187
+ action?: NPCAction;
188
+ dialogue: string;
189
+ }
190
+ /**
191
+ * User Story: As protocol typing, I need one discriminated union for atomic
192
+ * instructions so handler dispatch is deterministic.
193
+ * Every branch gets its own rune and none of the wires pretend to be another.
194
+ */
195
+ type NPCInstruction = IdentifyActorInstruction | QueryVectorInstruction | ExecuteInferenceInstruction | FinalizeInstruction;
196
+ /**
197
+ * User Story: As the API loop transport, I need request shape consistency for
198
+ * the full tape and previous side-effect result.
199
+ * The packet stays rigid so the void between hops does not eat context.
200
+ */
201
+ interface NPCProcessRequest {
202
+ tape: ProcessTape;
203
+ lastResult?: Record<string, unknown>;
204
+ }
205
+ /**
206
+ * User Story: As the SDK interpreter, I need the next instruction packaged
207
+ * with the updated tape every round-trip.
208
+ * ᚲ each return frame is one breadcrumb and one command rune forward.
209
+ */
210
+ interface NPCProcessResponse {
211
+ instruction: NPCInstruction;
212
+ tape: ProcessTape;
213
+ }
214
+
167
215
  interface ValidationContext {
168
216
  npcState?: Record<string, unknown>;
169
217
  worldState?: Record<string, unknown>;
@@ -184,10 +232,18 @@ interface DirectiveRuleSet {
184
232
  rulesetId: string;
185
233
  rulesetRules: BridgeRule[];
186
234
  }
235
+ /**
236
+ * @deprecated Use BridgeRule for data-only rules.
237
+ */
238
+ interface ValidationRule extends BridgeRule {
239
+ id: string;
240
+ }
241
+
187
242
  interface GhostConfig {
188
243
  testSuite: string;
189
244
  duration?: number;
190
245
  apiUrl?: string;
246
+ apiKey?: string;
191
247
  }
192
248
  interface GhostStatus {
193
249
  sessionId: string;
@@ -222,13 +278,11 @@ interface GhostHistoryEntry {
222
278
  status: string;
223
279
  passRate: number;
224
280
  }
225
- /**
226
- * @deprecated Use BridgeRule for data-only rules.
227
- * Local validation execution is no longer supported in the SDK ("API is The Law").
228
- */
229
- interface ValidationRule extends BridgeRule {
230
- id: string;
281
+ interface GhostRunResponse {
282
+ sessionId: string;
283
+ runStatus: string;
231
284
  }
285
+
232
286
  interface Soul {
233
287
  id: string;
234
288
  version: string;
@@ -238,55 +292,53 @@ interface Soul {
238
292
  state: NPCState;
239
293
  signature?: string;
240
294
  }
241
- /**
242
- * Soul configuration (Thin Client)
243
- */
244
295
  interface SoulConfig {
245
296
  apiUrl?: string;
246
297
  gatewayUrl?: string;
247
298
  }
248
- /**
249
- * Soul export response from API
250
- */
251
299
  interface SoulExportResponse {
252
300
  txId: string;
253
301
  arweaveUrl: string;
254
302
  signature: string;
255
303
  soul: Soul;
256
304
  }
257
- /**
258
- * Soul export result for the SDK
259
- */
260
305
  interface SoulExportResult {
261
306
  txId: string;
262
307
  url: string;
263
308
  soul: Soul;
264
309
  }
265
- /**
266
- * Soul list response from API
267
- */
268
310
  interface SoulListResponse {
269
311
  souls: Array<{
270
312
  txId: string;
271
313
  name: string;
272
- agentId?: string;
314
+ npcId?: string;
273
315
  exportedAt: string;
274
316
  arweaveUrl: string;
275
317
  }>;
276
318
  }
277
- /**
278
- * System status response from API
279
- */
319
+
280
320
  interface ApiStatusResponse {
281
321
  status: string;
282
322
  version: string;
283
323
  }
284
- /**
285
- * Ghost run response from API
286
- */
287
- interface GhostRunResponse {
288
- sessionId: string;
289
- runStatus: string;
324
+ interface CortexModelInfo {
325
+ id: string;
326
+ name: string;
327
+ parameters: number;
328
+ }
329
+ interface CortexInitResponse {
330
+ cortexId: string;
331
+ runtime: string;
332
+ state: string;
333
+ }
334
+ interface SoulVerifyResult {
335
+ valid: boolean;
336
+ reason?: string;
337
+ }
338
+ interface ImportedNpc {
339
+ npcId: string;
340
+ persona: string;
341
+ data?: Record<string, unknown>;
290
342
  }
291
343
 
292
344
  /**
@@ -294,28 +346,36 @@ interface GhostRunResponse {
294
346
  */
295
347
  interface INPC {
296
348
  process(input: string, context?: Record<string, unknown>): Promise<AgentResponse>;
297
- speak(message: string, context?: Record<string, unknown>): Promise<string>;
298
- reply(message: string, context?: Record<string, unknown>): Promise<string>;
299
349
  getState(): NPCState;
300
350
  setState(newState: NPCState): void;
301
- dialogue(message: string, context?: Array<[string, string]>): Promise<string>;
302
351
  export(): Promise<Soul>;
303
352
  }
304
353
  /**
305
354
  * Pure function to create initial npc state
355
+ * User Story: As state bootstrap logic, I need a pure initializer that accepts
356
+ * optional partial NPC fields and returns a safe object state.
357
+ * This keeps NPC creation deterministic and side-effect free.
306
358
  */
307
359
  declare const createInitialState: (partial?: Partial<NPCState>) => NPCState;
308
360
  /**
309
361
  * Pure function to update npc state (Local Utility)
362
+ * User Story: As local state reconciliation, I need shallow state merge behavior
363
+ * for incremental updates coming from protocol or UI sources.
364
+ * New keys override prior values by design.
310
365
  */
311
366
  declare const updateNPCStateLocally: (currentState: NPCState, updates: Partial<NPCState>) => NPCState;
312
367
  /**
313
368
  * Pure function to export npc to Soul
369
+ * User Story: As portability flow logic, I need deterministic conversion from
370
+ * runtime NPC data into a serializable Soul payload.
371
+ * Returned memories and state are copied to avoid accidental mutation leaks.
314
372
  */
315
373
  declare const exportToSoul: (npcId: string, name: string, persona: string, state: NPCState, memories: MemoryItem[]) => Soul;
316
374
 
317
375
  interface BridgeState {
318
376
  activePresets: DirectiveRuleSet[];
377
+ availableRulesets: DirectiveRuleSet[];
378
+ availablePresetIds: string[];
319
379
  lastValidation: ValidationResult | null;
320
380
  status: 'idle' | 'validating' | 'loading_preset' | 'error';
321
381
  error: string | null;
@@ -325,6 +385,7 @@ declare const validateBridgeThunk: _reduxjs_toolkit.AsyncThunk<ValidationResult,
325
385
  context: ValidationContext;
326
386
  npcId?: string;
327
387
  apiUrl?: string;
388
+ apiKey?: string;
328
389
  }, {
329
390
  rejectValue: string;
330
391
  extra?: unknown;
@@ -338,6 +399,60 @@ declare const validateBridgeThunk: _reduxjs_toolkit.AsyncThunk<ValidationResult,
338
399
  declare const loadBridgePresetThunk: _reduxjs_toolkit.AsyncThunk<DirectiveRuleSet, {
339
400
  presetName: string;
340
401
  apiUrl?: string;
402
+ apiKey?: string;
403
+ }, {
404
+ rejectValue: string;
405
+ extra?: unknown;
406
+ state?: unknown;
407
+ dispatch?: redux_thunk.ThunkDispatch<unknown, unknown, redux.UnknownAction> | undefined;
408
+ serializedErrorType?: unknown;
409
+ pendingMeta?: unknown;
410
+ fulfilledMeta?: unknown;
411
+ rejectedMeta?: unknown;
412
+ }>;
413
+ declare const getBridgeRulesThunk: _reduxjs_toolkit.AsyncThunk<BridgeRule[], {
414
+ apiUrl?: string;
415
+ apiKey?: string;
416
+ }, {
417
+ rejectValue: string;
418
+ extra?: unknown;
419
+ state?: unknown;
420
+ dispatch?: redux_thunk.ThunkDispatch<unknown, unknown, redux.UnknownAction> | undefined;
421
+ serializedErrorType?: unknown;
422
+ pendingMeta?: unknown;
423
+ fulfilledMeta?: unknown;
424
+ rejectedMeta?: unknown;
425
+ }>;
426
+ declare const listRulesetsThunk: _reduxjs_toolkit.AsyncThunk<DirectiveRuleSet[], {
427
+ apiUrl?: string;
428
+ apiKey?: string;
429
+ }, {
430
+ rejectValue: string;
431
+ extra?: unknown;
432
+ state?: unknown;
433
+ dispatch?: redux_thunk.ThunkDispatch<unknown, unknown, redux.UnknownAction> | undefined;
434
+ serializedErrorType?: unknown;
435
+ pendingMeta?: unknown;
436
+ fulfilledMeta?: unknown;
437
+ rejectedMeta?: unknown;
438
+ }>;
439
+ declare const listRulePresetsThunk: _reduxjs_toolkit.AsyncThunk<string[], {
440
+ apiUrl?: string;
441
+ apiKey?: string;
442
+ }, {
443
+ rejectValue: string;
444
+ extra?: unknown;
445
+ state?: unknown;
446
+ dispatch?: redux_thunk.ThunkDispatch<unknown, unknown, redux.UnknownAction> | undefined;
447
+ serializedErrorType?: unknown;
448
+ pendingMeta?: unknown;
449
+ fulfilledMeta?: unknown;
450
+ rejectedMeta?: unknown;
451
+ }>;
452
+ declare const registerRulesetThunk: _reduxjs_toolkit.AsyncThunk<DirectiveRuleSet, {
453
+ ruleset: DirectiveRuleSet;
454
+ apiUrl?: string;
455
+ apiKey?: string;
341
456
  }, {
342
457
  rejectValue: string;
343
458
  extra?: unknown;
@@ -348,8 +463,12 @@ declare const loadBridgePresetThunk: _reduxjs_toolkit.AsyncThunk<DirectiveRuleSe
348
463
  fulfilledMeta?: unknown;
349
464
  rejectedMeta?: unknown;
350
465
  }>;
351
- declare const getBridgeRulesThunk: _reduxjs_toolkit.AsyncThunk<DirectiveRuleSet[], {
466
+ declare const deleteRulesetThunk: _reduxjs_toolkit.AsyncThunk<{
467
+ deleted: boolean;
468
+ }, {
469
+ rulesetId: string;
352
470
  apiUrl?: string;
471
+ apiKey?: string;
353
472
  }, {
354
473
  rejectValue: string;
355
474
  extra?: unknown;
@@ -371,6 +490,16 @@ declare const bridgeSlice: _reduxjs_toolkit.Slice<BridgeState, {
371
490
  ruleActionTypes: string[];
372
491
  }[];
373
492
  }[];
493
+ availableRulesets: {
494
+ id: string;
495
+ rulesetId: string;
496
+ rulesetRules: {
497
+ ruleName: string;
498
+ ruleDescription: string;
499
+ ruleActionTypes: string[];
500
+ }[];
501
+ }[];
502
+ availablePresetIds: string[];
374
503
  lastValidation: {
375
504
  valid: boolean;
376
505
  reason?: string | undefined;
@@ -416,6 +545,7 @@ declare const startGhostThunk: _reduxjs_toolkit.AsyncThunk<{
416
545
  declare const getGhostStatusThunk: _reduxjs_toolkit.AsyncThunk<GhostStatus, {
417
546
  sessionId?: string;
418
547
  apiUrl?: string;
548
+ apiKey?: string;
419
549
  }, {
420
550
  state: {
421
551
  ghost: GhostState;
@@ -431,6 +561,7 @@ declare const getGhostStatusThunk: _reduxjs_toolkit.AsyncThunk<GhostStatus, {
431
561
  declare const getGhostResultsThunk: _reduxjs_toolkit.AsyncThunk<GhostResults, {
432
562
  sessionId?: string;
433
563
  apiUrl?: string;
564
+ apiKey?: string;
434
565
  }, {
435
566
  state: {
436
567
  ghost: GhostState;
@@ -445,9 +576,12 @@ declare const getGhostResultsThunk: _reduxjs_toolkit.AsyncThunk<GhostResults, {
445
576
  }>;
446
577
  declare const stopGhostThunk: _reduxjs_toolkit.AsyncThunk<{
447
578
  stopped: boolean;
579
+ status?: string;
580
+ sessionId?: string;
448
581
  }, {
449
582
  sessionId?: string;
450
583
  apiUrl?: string;
584
+ apiKey?: string;
451
585
  }, {
452
586
  state: {
453
587
  ghost: GhostState;
@@ -463,6 +597,7 @@ declare const stopGhostThunk: _reduxjs_toolkit.AsyncThunk<{
463
597
  declare const getGhostHistoryThunk: _reduxjs_toolkit.AsyncThunk<GhostHistoryEntry[], {
464
598
  limit?: number;
465
599
  apiUrl?: string;
600
+ apiKey?: string;
466
601
  }, {
467
602
  rejectValue: string;
468
603
  extra?: unknown;
@@ -520,11 +655,27 @@ interface CortexInternalState {
520
655
  }
521
656
  declare const initRemoteCortexThunk: _reduxjs_toolkit.AsyncThunk<CortexStatus, {
522
657
  model?: string;
658
+ authKey?: string;
659
+ apiUrl?: string;
660
+ apiKey?: string;
523
661
  }, {
662
+ state: SDKState;
663
+ dispatch: SDKDispatch;
664
+ rejectValue: string;
665
+ extra?: unknown;
666
+ serializedErrorType?: unknown;
667
+ pendingMeta?: unknown;
668
+ fulfilledMeta?: unknown;
669
+ rejectedMeta?: unknown;
670
+ }>;
671
+ declare const listCortexModelsThunk: _reduxjs_toolkit.AsyncThunk<CortexModelInfo[], {
672
+ apiUrl?: string;
673
+ apiKey?: string;
674
+ }, {
675
+ state: SDKState;
676
+ dispatch: SDKDispatch;
524
677
  rejectValue: string;
525
678
  extra?: unknown;
526
- state?: unknown;
527
- dispatch?: redux_thunk.ThunkDispatch<unknown, unknown, redux.UnknownAction> | undefined;
528
679
  serializedErrorType?: unknown;
529
680
  pendingMeta?: unknown;
530
681
  fulfilledMeta?: unknown;
@@ -998,76 +1149,120 @@ declare const removeNPC: _reduxjs_toolkit.ActionCreatorWithPayload<string, "npc/
998
1149
  declare const selectNPCById: (state: {
999
1150
  [x: string]: /*elided*/ any;
1000
1151
  forbocApi: _reduxjs_toolkit_query.CombinedState<{
1001
- postDirective: _reduxjs_toolkit_query.MutationDefinition<{
1002
- npcId: string;
1003
- request: DirectiveRequest;
1152
+ getCortexModels: _reduxjs_toolkit_query.QueryDefinition<{
1004
1153
  apiUrl: string;
1005
1154
  apiKey?: string;
1006
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveResponse, "forbocApi", unknown>;
1007
- postContext: _reduxjs_toolkit_query.MutationDefinition<{
1155
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", CortexModelInfo[], "forbocApi", unknown>;
1156
+ postCortexInit: _reduxjs_toolkit_query.MutationDefinition<{
1157
+ request: {
1158
+ requestedModel: string;
1159
+ authKey?: string;
1160
+ };
1161
+ apiUrl: string;
1162
+ apiKey?: string;
1163
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", CortexInitResponse, "forbocApi", unknown>;
1164
+ postNpcProcess: _reduxjs_toolkit_query.MutationDefinition<{
1165
+ npcId: string;
1166
+ request: NPCProcessRequest;
1167
+ apiUrl: string;
1168
+ apiKey?: string;
1169
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", NPCProcessResponse, "forbocApi", unknown>;
1170
+ postDirective: _reduxjs_toolkit_query.MutationDefinition<{
1171
+ npcId: string;
1172
+ request: DirectiveRequest;
1173
+ apiUrl: string;
1174
+ apiKey?: string;
1175
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveResponse, "forbocApi", unknown>;
1176
+ postContext: _reduxjs_toolkit_query.MutationDefinition<{
1008
1177
  npcId: string;
1009
1178
  request: ContextRequest;
1010
1179
  apiUrl: string;
1011
1180
  apiKey?: string;
1012
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ContextResponse, "forbocApi", unknown>;
1181
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ContextResponse, "forbocApi", unknown>;
1013
1182
  postVerdict: _reduxjs_toolkit_query.MutationDefinition<{
1014
1183
  npcId: string;
1015
1184
  request: VerdictRequest;
1016
1185
  apiUrl: string;
1017
1186
  apiKey?: string;
1018
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", VerdictResponse, "forbocApi", unknown>;
1019
- postSpeak: _reduxjs_toolkit_query.MutationDefinition<{
1187
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", VerdictResponse, "forbocApi", unknown>;
1188
+ postMemoryStore: _reduxjs_toolkit_query.MutationDefinition<{
1189
+ npcId: string;
1190
+ request: {
1191
+ observation: string;
1192
+ importance?: number;
1193
+ };
1194
+ apiUrl: string;
1195
+ apiKey?: string;
1196
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1197
+ getMemoryList: _reduxjs_toolkit_query.QueryDefinition<{
1198
+ npcId: string;
1199
+ apiUrl: string;
1200
+ apiKey?: string;
1201
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any[], "forbocApi", unknown>;
1202
+ postMemoryRecall: _reduxjs_toolkit_query.MutationDefinition<{
1020
1203
  npcId: string;
1021
- request: SpeakRequest;
1204
+ request: {
1205
+ query: string;
1206
+ similarity?: number;
1207
+ };
1022
1208
  apiUrl: string;
1023
1209
  apiKey?: string;
1024
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SpeakResponse, "forbocApi", unknown>;
1025
- postDialogue: _reduxjs_toolkit_query.MutationDefinition<{
1210
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any[], "forbocApi", unknown>;
1211
+ deleteMemoryClear: _reduxjs_toolkit_query.MutationDefinition<{
1026
1212
  npcId: string;
1027
- request: DialogueRequest;
1028
1213
  apiUrl: string;
1029
1214
  apiKey?: string;
1030
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DialogueResponse, "forbocApi", unknown>;
1215
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1031
1216
  postGhostRun: _reduxjs_toolkit_query.MutationDefinition<{
1032
1217
  request: {
1033
1218
  testSuite: string;
1034
1219
  duration: number;
1035
1220
  };
1036
1221
  apiUrl: string;
1037
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", GhostRunResponse, "forbocApi", unknown>;
1222
+ apiKey?: string;
1223
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", GhostRunResponse, "forbocApi", unknown>;
1038
1224
  getGhostStatus: _reduxjs_toolkit_query.QueryDefinition<{
1039
1225
  sessionId: string;
1040
1226
  apiUrl: string;
1041
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
1227
+ apiKey?: string;
1228
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1042
1229
  getGhostResults: _reduxjs_toolkit_query.QueryDefinition<{
1043
1230
  sessionId: string;
1044
1231
  apiUrl: string;
1045
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
1232
+ apiKey?: string;
1233
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1046
1234
  postGhostStop: _reduxjs_toolkit_query.MutationDefinition<{
1047
1235
  sessionId: string;
1048
1236
  apiUrl: string;
1049
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
1237
+ apiKey?: string;
1238
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
1050
1239
  stopped: boolean;
1240
+ stopStatus?: string;
1241
+ stopSessionId?: string;
1051
1242
  }, "forbocApi", unknown>;
1052
1243
  getGhostHistory: _reduxjs_toolkit_query.QueryDefinition<{
1053
1244
  limit: number;
1054
1245
  apiUrl: string;
1055
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
1246
+ apiKey?: string;
1247
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
1056
1248
  sessions: any[];
1057
1249
  }, "forbocApi", unknown>;
1058
1250
  postSoulExport: _reduxjs_toolkit_query.MutationDefinition<{
1059
1251
  npcId: string;
1060
1252
  request: any;
1061
1253
  apiUrl: string;
1062
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SoulExportResponse, "forbocApi", unknown>;
1254
+ apiKey?: string;
1255
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulExportResponse, "forbocApi", unknown>;
1063
1256
  getSoulImport: _reduxjs_toolkit_query.QueryDefinition<{
1064
1257
  txId: string;
1065
1258
  apiUrl: string;
1066
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
1259
+ apiKey?: string;
1260
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1067
1261
  getSouls: _reduxjs_toolkit_query.QueryDefinition<{
1068
1262
  limit: number;
1069
1263
  apiUrl: string;
1070
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SoulListResponse, "forbocApi", unknown>;
1264
+ apiKey?: string;
1265
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulListResponse, "forbocApi", unknown>;
1071
1266
  postBridgeValidate: _reduxjs_toolkit_query.MutationDefinition<{
1072
1267
  request: {
1073
1268
  action: NPCAction;
@@ -1075,27 +1270,62 @@ declare const selectNPCById: (state: {
1075
1270
  };
1076
1271
  npcId?: string;
1077
1272
  apiUrl: string;
1078
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ValidationResult, "forbocApi", unknown>;
1273
+ apiKey?: string;
1274
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ValidationResult, "forbocApi", unknown>;
1079
1275
  getBridgeRules: _reduxjs_toolkit_query.QueryDefinition<{
1080
1276
  apiUrl: string;
1081
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveRuleSet[], "forbocApi", unknown>;
1277
+ apiKey?: string;
1278
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", BridgeRule[], "forbocApi", unknown>;
1082
1279
  postBridgePreset: _reduxjs_toolkit_query.MutationDefinition<{
1083
1280
  presetName: string;
1084
1281
  apiUrl: string;
1085
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveRuleSet, "forbocApi", unknown>;
1282
+ apiKey?: string;
1283
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet, "forbocApi", unknown>;
1284
+ getRulesets: _reduxjs_toolkit_query.QueryDefinition<{
1285
+ apiUrl: string;
1286
+ apiKey?: string;
1287
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet[], "forbocApi", unknown>;
1288
+ getRulePresets: _reduxjs_toolkit_query.QueryDefinition<{
1289
+ apiUrl: string;
1290
+ apiKey?: string;
1291
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", string[], "forbocApi", unknown>;
1292
+ postRuleRegister: _reduxjs_toolkit_query.MutationDefinition<{
1293
+ request: DirectiveRuleSet;
1294
+ apiUrl: string;
1295
+ apiKey?: string;
1296
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet, "forbocApi", unknown>;
1297
+ deleteRule: _reduxjs_toolkit_query.MutationDefinition<{
1298
+ rulesetId: string;
1299
+ apiUrl: string;
1300
+ apiKey?: string;
1301
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
1302
+ deleted: boolean;
1303
+ }, "forbocApi", unknown>;
1304
+ postSoulVerify: _reduxjs_toolkit_query.MutationDefinition<{
1305
+ txId: string;
1306
+ apiUrl: string;
1307
+ apiKey?: string;
1308
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulVerifyResult, "forbocApi", unknown>;
1309
+ postNpcImport: _reduxjs_toolkit_query.MutationDefinition<{
1310
+ request: {
1311
+ txIdRef: string;
1312
+ };
1313
+ apiUrl: string;
1314
+ apiKey?: string;
1315
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ImportedNpc, "forbocApi", unknown>;
1086
1316
  postCortexComplete: _reduxjs_toolkit_query.MutationDefinition<{
1087
1317
  cortexId: string;
1088
1318
  prompt: string;
1089
1319
  options?: any;
1090
1320
  apiUrl: string;
1091
1321
  apiKey?: string;
1092
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
1322
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
1093
1323
  text: string;
1094
1324
  }, "forbocApi", unknown>;
1095
1325
  getApiStatus: _reduxjs_toolkit_query.QueryDefinition<{
1096
1326
  apiUrl: string;
1097
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ApiStatusResponse, "forbocApi", unknown>;
1098
- }, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", "forbocApi">;
1327
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ApiStatusResponse, "forbocApi", unknown>;
1328
+ }, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", "forbocApi">;
1099
1329
  npc: _reduxjs_toolkit.EntityState<NPCInternalState, string> & {
1100
1330
  activeNpcId: string;
1101
1331
  };
@@ -1106,6 +1336,9 @@ declare const selectNPCById: (state: {
1106
1336
  error: string | null;
1107
1337
  lastRecalledIds: string[];
1108
1338
  };
1339
+ directive: _reduxjs_toolkit.EntityState<DirectiveRun, string> & {
1340
+ activeDirectiveId: string;
1341
+ };
1109
1342
  ghost: GhostState;
1110
1343
  soul: SoulState;
1111
1344
  bridge: BridgeState;
@@ -1124,76 +1357,120 @@ declare const selectNPCById: (state: {
1124
1357
  declare const selectNPCIds: (state: {
1125
1358
  [x: string]: /*elided*/ any;
1126
1359
  forbocApi: _reduxjs_toolkit_query.CombinedState<{
1360
+ getCortexModels: _reduxjs_toolkit_query.QueryDefinition<{
1361
+ apiUrl: string;
1362
+ apiKey?: string;
1363
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", CortexModelInfo[], "forbocApi", unknown>;
1364
+ postCortexInit: _reduxjs_toolkit_query.MutationDefinition<{
1365
+ request: {
1366
+ requestedModel: string;
1367
+ authKey?: string;
1368
+ };
1369
+ apiUrl: string;
1370
+ apiKey?: string;
1371
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", CortexInitResponse, "forbocApi", unknown>;
1372
+ postNpcProcess: _reduxjs_toolkit_query.MutationDefinition<{
1373
+ npcId: string;
1374
+ request: NPCProcessRequest;
1375
+ apiUrl: string;
1376
+ apiKey?: string;
1377
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", NPCProcessResponse, "forbocApi", unknown>;
1127
1378
  postDirective: _reduxjs_toolkit_query.MutationDefinition<{
1128
1379
  npcId: string;
1129
1380
  request: DirectiveRequest;
1130
1381
  apiUrl: string;
1131
1382
  apiKey?: string;
1132
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveResponse, "forbocApi", unknown>;
1383
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveResponse, "forbocApi", unknown>;
1133
1384
  postContext: _reduxjs_toolkit_query.MutationDefinition<{
1134
1385
  npcId: string;
1135
1386
  request: ContextRequest;
1136
1387
  apiUrl: string;
1137
1388
  apiKey?: string;
1138
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ContextResponse, "forbocApi", unknown>;
1389
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ContextResponse, "forbocApi", unknown>;
1139
1390
  postVerdict: _reduxjs_toolkit_query.MutationDefinition<{
1140
1391
  npcId: string;
1141
1392
  request: VerdictRequest;
1142
1393
  apiUrl: string;
1143
1394
  apiKey?: string;
1144
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", VerdictResponse, "forbocApi", unknown>;
1145
- postSpeak: _reduxjs_toolkit_query.MutationDefinition<{
1395
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", VerdictResponse, "forbocApi", unknown>;
1396
+ postMemoryStore: _reduxjs_toolkit_query.MutationDefinition<{
1397
+ npcId: string;
1398
+ request: {
1399
+ observation: string;
1400
+ importance?: number;
1401
+ };
1402
+ apiUrl: string;
1403
+ apiKey?: string;
1404
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1405
+ getMemoryList: _reduxjs_toolkit_query.QueryDefinition<{
1406
+ npcId: string;
1407
+ apiUrl: string;
1408
+ apiKey?: string;
1409
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any[], "forbocApi", unknown>;
1410
+ postMemoryRecall: _reduxjs_toolkit_query.MutationDefinition<{
1146
1411
  npcId: string;
1147
- request: SpeakRequest;
1412
+ request: {
1413
+ query: string;
1414
+ similarity?: number;
1415
+ };
1148
1416
  apiUrl: string;
1149
1417
  apiKey?: string;
1150
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SpeakResponse, "forbocApi", unknown>;
1151
- postDialogue: _reduxjs_toolkit_query.MutationDefinition<{
1418
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any[], "forbocApi", unknown>;
1419
+ deleteMemoryClear: _reduxjs_toolkit_query.MutationDefinition<{
1152
1420
  npcId: string;
1153
- request: DialogueRequest;
1154
1421
  apiUrl: string;
1155
1422
  apiKey?: string;
1156
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DialogueResponse, "forbocApi", unknown>;
1423
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1157
1424
  postGhostRun: _reduxjs_toolkit_query.MutationDefinition<{
1158
1425
  request: {
1159
1426
  testSuite: string;
1160
1427
  duration: number;
1161
1428
  };
1162
1429
  apiUrl: string;
1163
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", GhostRunResponse, "forbocApi", unknown>;
1430
+ apiKey?: string;
1431
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", GhostRunResponse, "forbocApi", unknown>;
1164
1432
  getGhostStatus: _reduxjs_toolkit_query.QueryDefinition<{
1165
1433
  sessionId: string;
1166
1434
  apiUrl: string;
1167
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
1435
+ apiKey?: string;
1436
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1168
1437
  getGhostResults: _reduxjs_toolkit_query.QueryDefinition<{
1169
1438
  sessionId: string;
1170
1439
  apiUrl: string;
1171
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
1440
+ apiKey?: string;
1441
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1172
1442
  postGhostStop: _reduxjs_toolkit_query.MutationDefinition<{
1173
1443
  sessionId: string;
1174
1444
  apiUrl: string;
1175
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
1445
+ apiKey?: string;
1446
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
1176
1447
  stopped: boolean;
1448
+ stopStatus?: string;
1449
+ stopSessionId?: string;
1177
1450
  }, "forbocApi", unknown>;
1178
1451
  getGhostHistory: _reduxjs_toolkit_query.QueryDefinition<{
1179
1452
  limit: number;
1180
1453
  apiUrl: string;
1181
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
1454
+ apiKey?: string;
1455
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
1182
1456
  sessions: any[];
1183
1457
  }, "forbocApi", unknown>;
1184
1458
  postSoulExport: _reduxjs_toolkit_query.MutationDefinition<{
1185
1459
  npcId: string;
1186
1460
  request: any;
1187
1461
  apiUrl: string;
1188
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SoulExportResponse, "forbocApi", unknown>;
1462
+ apiKey?: string;
1463
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulExportResponse, "forbocApi", unknown>;
1189
1464
  getSoulImport: _reduxjs_toolkit_query.QueryDefinition<{
1190
1465
  txId: string;
1191
1466
  apiUrl: string;
1192
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
1467
+ apiKey?: string;
1468
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1193
1469
  getSouls: _reduxjs_toolkit_query.QueryDefinition<{
1194
1470
  limit: number;
1195
1471
  apiUrl: string;
1196
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SoulListResponse, "forbocApi", unknown>;
1472
+ apiKey?: string;
1473
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulListResponse, "forbocApi", unknown>;
1197
1474
  postBridgeValidate: _reduxjs_toolkit_query.MutationDefinition<{
1198
1475
  request: {
1199
1476
  action: NPCAction;
@@ -1201,27 +1478,62 @@ declare const selectNPCIds: (state: {
1201
1478
  };
1202
1479
  npcId?: string;
1203
1480
  apiUrl: string;
1204
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ValidationResult, "forbocApi", unknown>;
1481
+ apiKey?: string;
1482
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ValidationResult, "forbocApi", unknown>;
1205
1483
  getBridgeRules: _reduxjs_toolkit_query.QueryDefinition<{
1206
1484
  apiUrl: string;
1207
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveRuleSet[], "forbocApi", unknown>;
1485
+ apiKey?: string;
1486
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", BridgeRule[], "forbocApi", unknown>;
1208
1487
  postBridgePreset: _reduxjs_toolkit_query.MutationDefinition<{
1209
1488
  presetName: string;
1210
1489
  apiUrl: string;
1211
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveRuleSet, "forbocApi", unknown>;
1490
+ apiKey?: string;
1491
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet, "forbocApi", unknown>;
1492
+ getRulesets: _reduxjs_toolkit_query.QueryDefinition<{
1493
+ apiUrl: string;
1494
+ apiKey?: string;
1495
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet[], "forbocApi", unknown>;
1496
+ getRulePresets: _reduxjs_toolkit_query.QueryDefinition<{
1497
+ apiUrl: string;
1498
+ apiKey?: string;
1499
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", string[], "forbocApi", unknown>;
1500
+ postRuleRegister: _reduxjs_toolkit_query.MutationDefinition<{
1501
+ request: DirectiveRuleSet;
1502
+ apiUrl: string;
1503
+ apiKey?: string;
1504
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet, "forbocApi", unknown>;
1505
+ deleteRule: _reduxjs_toolkit_query.MutationDefinition<{
1506
+ rulesetId: string;
1507
+ apiUrl: string;
1508
+ apiKey?: string;
1509
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
1510
+ deleted: boolean;
1511
+ }, "forbocApi", unknown>;
1512
+ postSoulVerify: _reduxjs_toolkit_query.MutationDefinition<{
1513
+ txId: string;
1514
+ apiUrl: string;
1515
+ apiKey?: string;
1516
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulVerifyResult, "forbocApi", unknown>;
1517
+ postNpcImport: _reduxjs_toolkit_query.MutationDefinition<{
1518
+ request: {
1519
+ txIdRef: string;
1520
+ };
1521
+ apiUrl: string;
1522
+ apiKey?: string;
1523
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ImportedNpc, "forbocApi", unknown>;
1212
1524
  postCortexComplete: _reduxjs_toolkit_query.MutationDefinition<{
1213
1525
  cortexId: string;
1214
1526
  prompt: string;
1215
1527
  options?: any;
1216
1528
  apiUrl: string;
1217
1529
  apiKey?: string;
1218
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
1530
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
1219
1531
  text: string;
1220
1532
  }, "forbocApi", unknown>;
1221
1533
  getApiStatus: _reduxjs_toolkit_query.QueryDefinition<{
1222
1534
  apiUrl: string;
1223
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ApiStatusResponse, "forbocApi", unknown>;
1224
- }, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", "forbocApi">;
1535
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ApiStatusResponse, "forbocApi", unknown>;
1536
+ }, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", "forbocApi">;
1225
1537
  npc: _reduxjs_toolkit.EntityState<NPCInternalState, string> & {
1226
1538
  activeNpcId: string;
1227
1539
  };
@@ -1232,6 +1544,9 @@ declare const selectNPCIds: (state: {
1232
1544
  error: string | null;
1233
1545
  lastRecalledIds: string[];
1234
1546
  };
1547
+ directive: _reduxjs_toolkit.EntityState<DirectiveRun, string> & {
1548
+ activeDirectiveId: string;
1549
+ };
1235
1550
  ghost: GhostState;
1236
1551
  soul: SoulState;
1237
1552
  bridge: BridgeState;
@@ -1239,76 +1554,120 @@ declare const selectNPCIds: (state: {
1239
1554
  declare const selectNPCEntities: (state: {
1240
1555
  [x: string]: /*elided*/ any;
1241
1556
  forbocApi: _reduxjs_toolkit_query.CombinedState<{
1557
+ getCortexModels: _reduxjs_toolkit_query.QueryDefinition<{
1558
+ apiUrl: string;
1559
+ apiKey?: string;
1560
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", CortexModelInfo[], "forbocApi", unknown>;
1561
+ postCortexInit: _reduxjs_toolkit_query.MutationDefinition<{
1562
+ request: {
1563
+ requestedModel: string;
1564
+ authKey?: string;
1565
+ };
1566
+ apiUrl: string;
1567
+ apiKey?: string;
1568
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", CortexInitResponse, "forbocApi", unknown>;
1569
+ postNpcProcess: _reduxjs_toolkit_query.MutationDefinition<{
1570
+ npcId: string;
1571
+ request: NPCProcessRequest;
1572
+ apiUrl: string;
1573
+ apiKey?: string;
1574
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", NPCProcessResponse, "forbocApi", unknown>;
1242
1575
  postDirective: _reduxjs_toolkit_query.MutationDefinition<{
1243
1576
  npcId: string;
1244
1577
  request: DirectiveRequest;
1245
1578
  apiUrl: string;
1246
1579
  apiKey?: string;
1247
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveResponse, "forbocApi", unknown>;
1580
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveResponse, "forbocApi", unknown>;
1248
1581
  postContext: _reduxjs_toolkit_query.MutationDefinition<{
1249
1582
  npcId: string;
1250
1583
  request: ContextRequest;
1251
1584
  apiUrl: string;
1252
1585
  apiKey?: string;
1253
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ContextResponse, "forbocApi", unknown>;
1586
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ContextResponse, "forbocApi", unknown>;
1254
1587
  postVerdict: _reduxjs_toolkit_query.MutationDefinition<{
1255
1588
  npcId: string;
1256
1589
  request: VerdictRequest;
1257
1590
  apiUrl: string;
1258
1591
  apiKey?: string;
1259
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", VerdictResponse, "forbocApi", unknown>;
1260
- postSpeak: _reduxjs_toolkit_query.MutationDefinition<{
1592
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", VerdictResponse, "forbocApi", unknown>;
1593
+ postMemoryStore: _reduxjs_toolkit_query.MutationDefinition<{
1594
+ npcId: string;
1595
+ request: {
1596
+ observation: string;
1597
+ importance?: number;
1598
+ };
1599
+ apiUrl: string;
1600
+ apiKey?: string;
1601
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1602
+ getMemoryList: _reduxjs_toolkit_query.QueryDefinition<{
1603
+ npcId: string;
1604
+ apiUrl: string;
1605
+ apiKey?: string;
1606
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any[], "forbocApi", unknown>;
1607
+ postMemoryRecall: _reduxjs_toolkit_query.MutationDefinition<{
1261
1608
  npcId: string;
1262
- request: SpeakRequest;
1609
+ request: {
1610
+ query: string;
1611
+ similarity?: number;
1612
+ };
1263
1613
  apiUrl: string;
1264
1614
  apiKey?: string;
1265
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SpeakResponse, "forbocApi", unknown>;
1266
- postDialogue: _reduxjs_toolkit_query.MutationDefinition<{
1615
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any[], "forbocApi", unknown>;
1616
+ deleteMemoryClear: _reduxjs_toolkit_query.MutationDefinition<{
1267
1617
  npcId: string;
1268
- request: DialogueRequest;
1269
1618
  apiUrl: string;
1270
1619
  apiKey?: string;
1271
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DialogueResponse, "forbocApi", unknown>;
1620
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1272
1621
  postGhostRun: _reduxjs_toolkit_query.MutationDefinition<{
1273
1622
  request: {
1274
1623
  testSuite: string;
1275
1624
  duration: number;
1276
1625
  };
1277
1626
  apiUrl: string;
1278
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", GhostRunResponse, "forbocApi", unknown>;
1627
+ apiKey?: string;
1628
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", GhostRunResponse, "forbocApi", unknown>;
1279
1629
  getGhostStatus: _reduxjs_toolkit_query.QueryDefinition<{
1280
1630
  sessionId: string;
1281
1631
  apiUrl: string;
1282
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
1632
+ apiKey?: string;
1633
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1283
1634
  getGhostResults: _reduxjs_toolkit_query.QueryDefinition<{
1284
1635
  sessionId: string;
1285
1636
  apiUrl: string;
1286
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
1637
+ apiKey?: string;
1638
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1287
1639
  postGhostStop: _reduxjs_toolkit_query.MutationDefinition<{
1288
1640
  sessionId: string;
1289
1641
  apiUrl: string;
1290
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
1642
+ apiKey?: string;
1643
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
1291
1644
  stopped: boolean;
1645
+ stopStatus?: string;
1646
+ stopSessionId?: string;
1292
1647
  }, "forbocApi", unknown>;
1293
1648
  getGhostHistory: _reduxjs_toolkit_query.QueryDefinition<{
1294
1649
  limit: number;
1295
1650
  apiUrl: string;
1296
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
1651
+ apiKey?: string;
1652
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
1297
1653
  sessions: any[];
1298
1654
  }, "forbocApi", unknown>;
1299
1655
  postSoulExport: _reduxjs_toolkit_query.MutationDefinition<{
1300
1656
  npcId: string;
1301
1657
  request: any;
1302
1658
  apiUrl: string;
1303
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SoulExportResponse, "forbocApi", unknown>;
1659
+ apiKey?: string;
1660
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulExportResponse, "forbocApi", unknown>;
1304
1661
  getSoulImport: _reduxjs_toolkit_query.QueryDefinition<{
1305
1662
  txId: string;
1306
1663
  apiUrl: string;
1307
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
1664
+ apiKey?: string;
1665
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1308
1666
  getSouls: _reduxjs_toolkit_query.QueryDefinition<{
1309
1667
  limit: number;
1310
1668
  apiUrl: string;
1311
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SoulListResponse, "forbocApi", unknown>;
1669
+ apiKey?: string;
1670
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulListResponse, "forbocApi", unknown>;
1312
1671
  postBridgeValidate: _reduxjs_toolkit_query.MutationDefinition<{
1313
1672
  request: {
1314
1673
  action: NPCAction;
@@ -1316,27 +1675,62 @@ declare const selectNPCEntities: (state: {
1316
1675
  };
1317
1676
  npcId?: string;
1318
1677
  apiUrl: string;
1319
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ValidationResult, "forbocApi", unknown>;
1678
+ apiKey?: string;
1679
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ValidationResult, "forbocApi", unknown>;
1320
1680
  getBridgeRules: _reduxjs_toolkit_query.QueryDefinition<{
1321
1681
  apiUrl: string;
1322
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveRuleSet[], "forbocApi", unknown>;
1682
+ apiKey?: string;
1683
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", BridgeRule[], "forbocApi", unknown>;
1323
1684
  postBridgePreset: _reduxjs_toolkit_query.MutationDefinition<{
1324
1685
  presetName: string;
1325
1686
  apiUrl: string;
1326
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveRuleSet, "forbocApi", unknown>;
1687
+ apiKey?: string;
1688
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet, "forbocApi", unknown>;
1689
+ getRulesets: _reduxjs_toolkit_query.QueryDefinition<{
1690
+ apiUrl: string;
1691
+ apiKey?: string;
1692
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet[], "forbocApi", unknown>;
1693
+ getRulePresets: _reduxjs_toolkit_query.QueryDefinition<{
1694
+ apiUrl: string;
1695
+ apiKey?: string;
1696
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", string[], "forbocApi", unknown>;
1697
+ postRuleRegister: _reduxjs_toolkit_query.MutationDefinition<{
1698
+ request: DirectiveRuleSet;
1699
+ apiUrl: string;
1700
+ apiKey?: string;
1701
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet, "forbocApi", unknown>;
1702
+ deleteRule: _reduxjs_toolkit_query.MutationDefinition<{
1703
+ rulesetId: string;
1704
+ apiUrl: string;
1705
+ apiKey?: string;
1706
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
1707
+ deleted: boolean;
1708
+ }, "forbocApi", unknown>;
1709
+ postSoulVerify: _reduxjs_toolkit_query.MutationDefinition<{
1710
+ txId: string;
1711
+ apiUrl: string;
1712
+ apiKey?: string;
1713
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulVerifyResult, "forbocApi", unknown>;
1714
+ postNpcImport: _reduxjs_toolkit_query.MutationDefinition<{
1715
+ request: {
1716
+ txIdRef: string;
1717
+ };
1718
+ apiUrl: string;
1719
+ apiKey?: string;
1720
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ImportedNpc, "forbocApi", unknown>;
1327
1721
  postCortexComplete: _reduxjs_toolkit_query.MutationDefinition<{
1328
1722
  cortexId: string;
1329
1723
  prompt: string;
1330
1724
  options?: any;
1331
1725
  apiUrl: string;
1332
1726
  apiKey?: string;
1333
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
1727
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
1334
1728
  text: string;
1335
1729
  }, "forbocApi", unknown>;
1336
1730
  getApiStatus: _reduxjs_toolkit_query.QueryDefinition<{
1337
1731
  apiUrl: string;
1338
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ApiStatusResponse, "forbocApi", unknown>;
1339
- }, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", "forbocApi">;
1732
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ApiStatusResponse, "forbocApi", unknown>;
1733
+ }, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", "forbocApi">;
1340
1734
  npc: _reduxjs_toolkit.EntityState<NPCInternalState, string> & {
1341
1735
  activeNpcId: string;
1342
1736
  };
@@ -1347,6 +1741,9 @@ declare const selectNPCEntities: (state: {
1347
1741
  error: string | null;
1348
1742
  lastRecalledIds: string[];
1349
1743
  };
1744
+ directive: _reduxjs_toolkit.EntityState<DirectiveRun, string> & {
1745
+ activeDirectiveId: string;
1746
+ };
1350
1747
  ghost: GhostState;
1351
1748
  soul: SoulState;
1352
1749
  bridge: BridgeState;
@@ -1354,76 +1751,120 @@ declare const selectNPCEntities: (state: {
1354
1751
  declare const selectAllNPCs: (state: {
1355
1752
  [x: string]: /*elided*/ any;
1356
1753
  forbocApi: _reduxjs_toolkit_query.CombinedState<{
1754
+ getCortexModels: _reduxjs_toolkit_query.QueryDefinition<{
1755
+ apiUrl: string;
1756
+ apiKey?: string;
1757
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", CortexModelInfo[], "forbocApi", unknown>;
1758
+ postCortexInit: _reduxjs_toolkit_query.MutationDefinition<{
1759
+ request: {
1760
+ requestedModel: string;
1761
+ authKey?: string;
1762
+ };
1763
+ apiUrl: string;
1764
+ apiKey?: string;
1765
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", CortexInitResponse, "forbocApi", unknown>;
1766
+ postNpcProcess: _reduxjs_toolkit_query.MutationDefinition<{
1767
+ npcId: string;
1768
+ request: NPCProcessRequest;
1769
+ apiUrl: string;
1770
+ apiKey?: string;
1771
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", NPCProcessResponse, "forbocApi", unknown>;
1357
1772
  postDirective: _reduxjs_toolkit_query.MutationDefinition<{
1358
1773
  npcId: string;
1359
1774
  request: DirectiveRequest;
1360
1775
  apiUrl: string;
1361
1776
  apiKey?: string;
1362
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveResponse, "forbocApi", unknown>;
1777
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveResponse, "forbocApi", unknown>;
1363
1778
  postContext: _reduxjs_toolkit_query.MutationDefinition<{
1364
1779
  npcId: string;
1365
1780
  request: ContextRequest;
1366
1781
  apiUrl: string;
1367
1782
  apiKey?: string;
1368
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ContextResponse, "forbocApi", unknown>;
1783
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ContextResponse, "forbocApi", unknown>;
1369
1784
  postVerdict: _reduxjs_toolkit_query.MutationDefinition<{
1370
1785
  npcId: string;
1371
1786
  request: VerdictRequest;
1372
1787
  apiUrl: string;
1373
1788
  apiKey?: string;
1374
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", VerdictResponse, "forbocApi", unknown>;
1375
- postSpeak: _reduxjs_toolkit_query.MutationDefinition<{
1789
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", VerdictResponse, "forbocApi", unknown>;
1790
+ postMemoryStore: _reduxjs_toolkit_query.MutationDefinition<{
1791
+ npcId: string;
1792
+ request: {
1793
+ observation: string;
1794
+ importance?: number;
1795
+ };
1796
+ apiUrl: string;
1797
+ apiKey?: string;
1798
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1799
+ getMemoryList: _reduxjs_toolkit_query.QueryDefinition<{
1800
+ npcId: string;
1801
+ apiUrl: string;
1802
+ apiKey?: string;
1803
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any[], "forbocApi", unknown>;
1804
+ postMemoryRecall: _reduxjs_toolkit_query.MutationDefinition<{
1376
1805
  npcId: string;
1377
- request: SpeakRequest;
1806
+ request: {
1807
+ query: string;
1808
+ similarity?: number;
1809
+ };
1378
1810
  apiUrl: string;
1379
1811
  apiKey?: string;
1380
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SpeakResponse, "forbocApi", unknown>;
1381
- postDialogue: _reduxjs_toolkit_query.MutationDefinition<{
1812
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any[], "forbocApi", unknown>;
1813
+ deleteMemoryClear: _reduxjs_toolkit_query.MutationDefinition<{
1382
1814
  npcId: string;
1383
- request: DialogueRequest;
1384
1815
  apiUrl: string;
1385
1816
  apiKey?: string;
1386
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DialogueResponse, "forbocApi", unknown>;
1817
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1387
1818
  postGhostRun: _reduxjs_toolkit_query.MutationDefinition<{
1388
1819
  request: {
1389
1820
  testSuite: string;
1390
1821
  duration: number;
1391
1822
  };
1392
1823
  apiUrl: string;
1393
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", GhostRunResponse, "forbocApi", unknown>;
1824
+ apiKey?: string;
1825
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", GhostRunResponse, "forbocApi", unknown>;
1394
1826
  getGhostStatus: _reduxjs_toolkit_query.QueryDefinition<{
1395
1827
  sessionId: string;
1396
1828
  apiUrl: string;
1397
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
1829
+ apiKey?: string;
1830
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1398
1831
  getGhostResults: _reduxjs_toolkit_query.QueryDefinition<{
1399
1832
  sessionId: string;
1400
1833
  apiUrl: string;
1401
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
1834
+ apiKey?: string;
1835
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1402
1836
  postGhostStop: _reduxjs_toolkit_query.MutationDefinition<{
1403
1837
  sessionId: string;
1404
1838
  apiUrl: string;
1405
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
1839
+ apiKey?: string;
1840
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
1406
1841
  stopped: boolean;
1842
+ stopStatus?: string;
1843
+ stopSessionId?: string;
1407
1844
  }, "forbocApi", unknown>;
1408
1845
  getGhostHistory: _reduxjs_toolkit_query.QueryDefinition<{
1409
1846
  limit: number;
1410
1847
  apiUrl: string;
1411
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
1848
+ apiKey?: string;
1849
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
1412
1850
  sessions: any[];
1413
1851
  }, "forbocApi", unknown>;
1414
1852
  postSoulExport: _reduxjs_toolkit_query.MutationDefinition<{
1415
1853
  npcId: string;
1416
1854
  request: any;
1417
1855
  apiUrl: string;
1418
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SoulExportResponse, "forbocApi", unknown>;
1856
+ apiKey?: string;
1857
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulExportResponse, "forbocApi", unknown>;
1419
1858
  getSoulImport: _reduxjs_toolkit_query.QueryDefinition<{
1420
1859
  txId: string;
1421
1860
  apiUrl: string;
1422
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
1861
+ apiKey?: string;
1862
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1423
1863
  getSouls: _reduxjs_toolkit_query.QueryDefinition<{
1424
1864
  limit: number;
1425
1865
  apiUrl: string;
1426
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SoulListResponse, "forbocApi", unknown>;
1866
+ apiKey?: string;
1867
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulListResponse, "forbocApi", unknown>;
1427
1868
  postBridgeValidate: _reduxjs_toolkit_query.MutationDefinition<{
1428
1869
  request: {
1429
1870
  action: NPCAction;
@@ -1431,27 +1872,62 @@ declare const selectAllNPCs: (state: {
1431
1872
  };
1432
1873
  npcId?: string;
1433
1874
  apiUrl: string;
1434
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ValidationResult, "forbocApi", unknown>;
1875
+ apiKey?: string;
1876
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ValidationResult, "forbocApi", unknown>;
1435
1877
  getBridgeRules: _reduxjs_toolkit_query.QueryDefinition<{
1436
1878
  apiUrl: string;
1437
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveRuleSet[], "forbocApi", unknown>;
1879
+ apiKey?: string;
1880
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", BridgeRule[], "forbocApi", unknown>;
1438
1881
  postBridgePreset: _reduxjs_toolkit_query.MutationDefinition<{
1439
1882
  presetName: string;
1440
1883
  apiUrl: string;
1441
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveRuleSet, "forbocApi", unknown>;
1884
+ apiKey?: string;
1885
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet, "forbocApi", unknown>;
1886
+ getRulesets: _reduxjs_toolkit_query.QueryDefinition<{
1887
+ apiUrl: string;
1888
+ apiKey?: string;
1889
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet[], "forbocApi", unknown>;
1890
+ getRulePresets: _reduxjs_toolkit_query.QueryDefinition<{
1891
+ apiUrl: string;
1892
+ apiKey?: string;
1893
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", string[], "forbocApi", unknown>;
1894
+ postRuleRegister: _reduxjs_toolkit_query.MutationDefinition<{
1895
+ request: DirectiveRuleSet;
1896
+ apiUrl: string;
1897
+ apiKey?: string;
1898
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet, "forbocApi", unknown>;
1899
+ deleteRule: _reduxjs_toolkit_query.MutationDefinition<{
1900
+ rulesetId: string;
1901
+ apiUrl: string;
1902
+ apiKey?: string;
1903
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
1904
+ deleted: boolean;
1905
+ }, "forbocApi", unknown>;
1906
+ postSoulVerify: _reduxjs_toolkit_query.MutationDefinition<{
1907
+ txId: string;
1908
+ apiUrl: string;
1909
+ apiKey?: string;
1910
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulVerifyResult, "forbocApi", unknown>;
1911
+ postNpcImport: _reduxjs_toolkit_query.MutationDefinition<{
1912
+ request: {
1913
+ txIdRef: string;
1914
+ };
1915
+ apiUrl: string;
1916
+ apiKey?: string;
1917
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ImportedNpc, "forbocApi", unknown>;
1442
1918
  postCortexComplete: _reduxjs_toolkit_query.MutationDefinition<{
1443
1919
  cortexId: string;
1444
1920
  prompt: string;
1445
1921
  options?: any;
1446
1922
  apiUrl: string;
1447
1923
  apiKey?: string;
1448
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
1924
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
1449
1925
  text: string;
1450
1926
  }, "forbocApi", unknown>;
1451
1927
  getApiStatus: _reduxjs_toolkit_query.QueryDefinition<{
1452
1928
  apiUrl: string;
1453
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ApiStatusResponse, "forbocApi", unknown>;
1454
- }, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", "forbocApi">;
1929
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ApiStatusResponse, "forbocApi", unknown>;
1930
+ }, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", "forbocApi">;
1455
1931
  npc: _reduxjs_toolkit.EntityState<NPCInternalState, string> & {
1456
1932
  activeNpcId: string;
1457
1933
  };
@@ -1462,6 +1938,9 @@ declare const selectAllNPCs: (state: {
1462
1938
  error: string | null;
1463
1939
  lastRecalledIds: string[];
1464
1940
  };
1941
+ directive: _reduxjs_toolkit.EntityState<DirectiveRun, string> & {
1942
+ activeDirectiveId: string;
1943
+ };
1465
1944
  ghost: GhostState;
1466
1945
  soul: SoulState;
1467
1946
  bridge: BridgeState;
@@ -1469,76 +1948,120 @@ declare const selectAllNPCs: (state: {
1469
1948
  declare const selectTotalNPCs: (state: {
1470
1949
  [x: string]: /*elided*/ any;
1471
1950
  forbocApi: _reduxjs_toolkit_query.CombinedState<{
1951
+ getCortexModels: _reduxjs_toolkit_query.QueryDefinition<{
1952
+ apiUrl: string;
1953
+ apiKey?: string;
1954
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", CortexModelInfo[], "forbocApi", unknown>;
1955
+ postCortexInit: _reduxjs_toolkit_query.MutationDefinition<{
1956
+ request: {
1957
+ requestedModel: string;
1958
+ authKey?: string;
1959
+ };
1960
+ apiUrl: string;
1961
+ apiKey?: string;
1962
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", CortexInitResponse, "forbocApi", unknown>;
1963
+ postNpcProcess: _reduxjs_toolkit_query.MutationDefinition<{
1964
+ npcId: string;
1965
+ request: NPCProcessRequest;
1966
+ apiUrl: string;
1967
+ apiKey?: string;
1968
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", NPCProcessResponse, "forbocApi", unknown>;
1472
1969
  postDirective: _reduxjs_toolkit_query.MutationDefinition<{
1473
1970
  npcId: string;
1474
1971
  request: DirectiveRequest;
1475
1972
  apiUrl: string;
1476
1973
  apiKey?: string;
1477
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveResponse, "forbocApi", unknown>;
1974
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveResponse, "forbocApi", unknown>;
1478
1975
  postContext: _reduxjs_toolkit_query.MutationDefinition<{
1479
1976
  npcId: string;
1480
1977
  request: ContextRequest;
1481
1978
  apiUrl: string;
1482
1979
  apiKey?: string;
1483
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ContextResponse, "forbocApi", unknown>;
1980
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ContextResponse, "forbocApi", unknown>;
1484
1981
  postVerdict: _reduxjs_toolkit_query.MutationDefinition<{
1485
1982
  npcId: string;
1486
1983
  request: VerdictRequest;
1487
1984
  apiUrl: string;
1488
1985
  apiKey?: string;
1489
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", VerdictResponse, "forbocApi", unknown>;
1490
- postSpeak: _reduxjs_toolkit_query.MutationDefinition<{
1986
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", VerdictResponse, "forbocApi", unknown>;
1987
+ postMemoryStore: _reduxjs_toolkit_query.MutationDefinition<{
1988
+ npcId: string;
1989
+ request: {
1990
+ observation: string;
1991
+ importance?: number;
1992
+ };
1993
+ apiUrl: string;
1994
+ apiKey?: string;
1995
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1996
+ getMemoryList: _reduxjs_toolkit_query.QueryDefinition<{
1997
+ npcId: string;
1998
+ apiUrl: string;
1999
+ apiKey?: string;
2000
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any[], "forbocApi", unknown>;
2001
+ postMemoryRecall: _reduxjs_toolkit_query.MutationDefinition<{
1491
2002
  npcId: string;
1492
- request: SpeakRequest;
2003
+ request: {
2004
+ query: string;
2005
+ similarity?: number;
2006
+ };
1493
2007
  apiUrl: string;
1494
2008
  apiKey?: string;
1495
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SpeakResponse, "forbocApi", unknown>;
1496
- postDialogue: _reduxjs_toolkit_query.MutationDefinition<{
2009
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any[], "forbocApi", unknown>;
2010
+ deleteMemoryClear: _reduxjs_toolkit_query.MutationDefinition<{
1497
2011
  npcId: string;
1498
- request: DialogueRequest;
1499
2012
  apiUrl: string;
1500
2013
  apiKey?: string;
1501
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DialogueResponse, "forbocApi", unknown>;
2014
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1502
2015
  postGhostRun: _reduxjs_toolkit_query.MutationDefinition<{
1503
2016
  request: {
1504
2017
  testSuite: string;
1505
2018
  duration: number;
1506
2019
  };
1507
2020
  apiUrl: string;
1508
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", GhostRunResponse, "forbocApi", unknown>;
2021
+ apiKey?: string;
2022
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", GhostRunResponse, "forbocApi", unknown>;
1509
2023
  getGhostStatus: _reduxjs_toolkit_query.QueryDefinition<{
1510
2024
  sessionId: string;
1511
2025
  apiUrl: string;
1512
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
2026
+ apiKey?: string;
2027
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1513
2028
  getGhostResults: _reduxjs_toolkit_query.QueryDefinition<{
1514
2029
  sessionId: string;
1515
2030
  apiUrl: string;
1516
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
2031
+ apiKey?: string;
2032
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1517
2033
  postGhostStop: _reduxjs_toolkit_query.MutationDefinition<{
1518
2034
  sessionId: string;
1519
2035
  apiUrl: string;
1520
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
2036
+ apiKey?: string;
2037
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
1521
2038
  stopped: boolean;
2039
+ stopStatus?: string;
2040
+ stopSessionId?: string;
1522
2041
  }, "forbocApi", unknown>;
1523
2042
  getGhostHistory: _reduxjs_toolkit_query.QueryDefinition<{
1524
2043
  limit: number;
1525
2044
  apiUrl: string;
1526
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
2045
+ apiKey?: string;
2046
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
1527
2047
  sessions: any[];
1528
2048
  }, "forbocApi", unknown>;
1529
2049
  postSoulExport: _reduxjs_toolkit_query.MutationDefinition<{
1530
2050
  npcId: string;
1531
2051
  request: any;
1532
2052
  apiUrl: string;
1533
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SoulExportResponse, "forbocApi", unknown>;
2053
+ apiKey?: string;
2054
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulExportResponse, "forbocApi", unknown>;
1534
2055
  getSoulImport: _reduxjs_toolkit_query.QueryDefinition<{
1535
2056
  txId: string;
1536
2057
  apiUrl: string;
1537
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
2058
+ apiKey?: string;
2059
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1538
2060
  getSouls: _reduxjs_toolkit_query.QueryDefinition<{
1539
2061
  limit: number;
1540
2062
  apiUrl: string;
1541
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SoulListResponse, "forbocApi", unknown>;
2063
+ apiKey?: string;
2064
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulListResponse, "forbocApi", unknown>;
1542
2065
  postBridgeValidate: _reduxjs_toolkit_query.MutationDefinition<{
1543
2066
  request: {
1544
2067
  action: NPCAction;
@@ -1546,27 +2069,62 @@ declare const selectTotalNPCs: (state: {
1546
2069
  };
1547
2070
  npcId?: string;
1548
2071
  apiUrl: string;
1549
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ValidationResult, "forbocApi", unknown>;
2072
+ apiKey?: string;
2073
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ValidationResult, "forbocApi", unknown>;
1550
2074
  getBridgeRules: _reduxjs_toolkit_query.QueryDefinition<{
1551
2075
  apiUrl: string;
1552
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveRuleSet[], "forbocApi", unknown>;
2076
+ apiKey?: string;
2077
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", BridgeRule[], "forbocApi", unknown>;
1553
2078
  postBridgePreset: _reduxjs_toolkit_query.MutationDefinition<{
1554
2079
  presetName: string;
1555
2080
  apiUrl: string;
1556
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveRuleSet, "forbocApi", unknown>;
2081
+ apiKey?: string;
2082
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet, "forbocApi", unknown>;
2083
+ getRulesets: _reduxjs_toolkit_query.QueryDefinition<{
2084
+ apiUrl: string;
2085
+ apiKey?: string;
2086
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet[], "forbocApi", unknown>;
2087
+ getRulePresets: _reduxjs_toolkit_query.QueryDefinition<{
2088
+ apiUrl: string;
2089
+ apiKey?: string;
2090
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", string[], "forbocApi", unknown>;
2091
+ postRuleRegister: _reduxjs_toolkit_query.MutationDefinition<{
2092
+ request: DirectiveRuleSet;
2093
+ apiUrl: string;
2094
+ apiKey?: string;
2095
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet, "forbocApi", unknown>;
2096
+ deleteRule: _reduxjs_toolkit_query.MutationDefinition<{
2097
+ rulesetId: string;
2098
+ apiUrl: string;
2099
+ apiKey?: string;
2100
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
2101
+ deleted: boolean;
2102
+ }, "forbocApi", unknown>;
2103
+ postSoulVerify: _reduxjs_toolkit_query.MutationDefinition<{
2104
+ txId: string;
2105
+ apiUrl: string;
2106
+ apiKey?: string;
2107
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulVerifyResult, "forbocApi", unknown>;
2108
+ postNpcImport: _reduxjs_toolkit_query.MutationDefinition<{
2109
+ request: {
2110
+ txIdRef: string;
2111
+ };
2112
+ apiUrl: string;
2113
+ apiKey?: string;
2114
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ImportedNpc, "forbocApi", unknown>;
1557
2115
  postCortexComplete: _reduxjs_toolkit_query.MutationDefinition<{
1558
2116
  cortexId: string;
1559
2117
  prompt: string;
1560
2118
  options?: any;
1561
2119
  apiUrl: string;
1562
2120
  apiKey?: string;
1563
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
2121
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
1564
2122
  text: string;
1565
2123
  }, "forbocApi", unknown>;
1566
2124
  getApiStatus: _reduxjs_toolkit_query.QueryDefinition<{
1567
2125
  apiUrl: string;
1568
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ApiStatusResponse, "forbocApi", unknown>;
1569
- }, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", "forbocApi">;
2126
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ApiStatusResponse, "forbocApi", unknown>;
2127
+ }, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", "forbocApi">;
1570
2128
  npc: _reduxjs_toolkit.EntityState<NPCInternalState, string> & {
1571
2129
  activeNpcId: string;
1572
2130
  };
@@ -1577,90 +2135,799 @@ declare const selectTotalNPCs: (state: {
1577
2135
  error: string | null;
1578
2136
  lastRecalledIds: string[];
1579
2137
  };
2138
+ directive: _reduxjs_toolkit.EntityState<DirectiveRun, string> & {
2139
+ activeDirectiveId: string;
2140
+ };
1580
2141
  ghost: GhostState;
1581
2142
  soul: SoulState;
1582
2143
  bridge: BridgeState;
1583
2144
  }) => number;
2145
+ /**
2146
+ * User Story: As NPC runtime state access, I need a selector for the active NPC
2147
+ * id so UI and orchestration logic can resolve the current actor consistently.
2148
+ * Keep this selector trivial and stable for memoized consumers.
2149
+ */
1584
2150
  declare const selectActiveNpcId: (state: SDKState) => string;
1585
2151
  declare const selectActiveNPC: (state: SDKState) => NPCInternalState;
1586
2152
 
1587
- /**
1588
- * Creates the SDK internal Redux store.
1589
- * Note: If using in a host app, slices should ideally be combined into the host store.
1590
- */
1591
- declare const createSDKStore: <S extends ReducersMapObject>(extraReducers?: S) => _reduxjs_toolkit.EnhancedStore<{
1592
- [x: string]: /*elided*/ any;
1593
- forbocApi: _reduxjs_toolkit_query.CombinedState<{
1594
- postDirective: _reduxjs_toolkit_query.MutationDefinition<{
1595
- npcId: string;
1596
- request: DirectiveRequest;
2153
+ interface DirectiveRun {
2154
+ id: string;
2155
+ npcId: string;
2156
+ observation: string;
2157
+ status: 'running' | 'completed' | 'failed';
2158
+ startedAt: number;
2159
+ completedAt?: number;
2160
+ error?: string;
2161
+ memoryRecall?: DirectiveResponse['memoryRecall'];
2162
+ contextPrompt?: string;
2163
+ contextConstraints?: PromptConstraints;
2164
+ verdictValid?: boolean;
2165
+ verdictDialogue?: string;
2166
+ verdictActionType?: string;
2167
+ }
2168
+ declare const directiveSlice: _reduxjs_toolkit.Slice<_reduxjs_toolkit.EntityState<DirectiveRun, string> & {
2169
+ activeDirectiveId: string;
2170
+ }, {
2171
+ directiveRunStarted: (state: {
2172
+ ids: string[];
2173
+ entities: {
2174
+ [x: string]: {
2175
+ id: string;
2176
+ npcId: string;
2177
+ observation: string;
2178
+ status: "running" | "completed" | "failed";
2179
+ startedAt: number;
2180
+ completedAt?: number | undefined;
2181
+ error?: string | undefined;
2182
+ memoryRecall?: {
2183
+ query: string;
2184
+ limit: number;
2185
+ threshold: number;
2186
+ } | undefined;
2187
+ contextPrompt?: string | undefined;
2188
+ contextConstraints?: {
2189
+ temperature?: number | undefined;
2190
+ maxTokens?: number | undefined;
2191
+ stop?: string[] | undefined;
2192
+ jsonSchema?: object | undefined;
2193
+ } | undefined;
2194
+ verdictValid?: boolean | undefined;
2195
+ verdictDialogue?: string | undefined;
2196
+ verdictActionType?: string | undefined;
2197
+ };
2198
+ };
2199
+ activeDirectiveId: string;
2200
+ }, action: PayloadAction<{
2201
+ id: string;
2202
+ npcId: string;
2203
+ observation: string;
2204
+ }>) => void;
2205
+ directiveReceived: (state: {
2206
+ ids: string[];
2207
+ entities: {
2208
+ [x: string]: {
2209
+ id: string;
2210
+ npcId: string;
2211
+ observation: string;
2212
+ status: "running" | "completed" | "failed";
2213
+ startedAt: number;
2214
+ completedAt?: number | undefined;
2215
+ error?: string | undefined;
2216
+ memoryRecall?: {
2217
+ query: string;
2218
+ limit: number;
2219
+ threshold: number;
2220
+ } | undefined;
2221
+ contextPrompt?: string | undefined;
2222
+ contextConstraints?: {
2223
+ temperature?: number | undefined;
2224
+ maxTokens?: number | undefined;
2225
+ stop?: string[] | undefined;
2226
+ jsonSchema?: object | undefined;
2227
+ } | undefined;
2228
+ verdictValid?: boolean | undefined;
2229
+ verdictDialogue?: string | undefined;
2230
+ verdictActionType?: string | undefined;
2231
+ };
2232
+ };
2233
+ activeDirectiveId: string;
2234
+ }, action: PayloadAction<{
2235
+ id: string;
2236
+ response: DirectiveResponse;
2237
+ }>) => void;
2238
+ contextComposed: (state: {
2239
+ ids: string[];
2240
+ entities: {
2241
+ [x: string]: {
2242
+ id: string;
2243
+ npcId: string;
2244
+ observation: string;
2245
+ status: "running" | "completed" | "failed";
2246
+ startedAt: number;
2247
+ completedAt?: number | undefined;
2248
+ error?: string | undefined;
2249
+ memoryRecall?: {
2250
+ query: string;
2251
+ limit: number;
2252
+ threshold: number;
2253
+ } | undefined;
2254
+ contextPrompt?: string | undefined;
2255
+ contextConstraints?: {
2256
+ temperature?: number | undefined;
2257
+ maxTokens?: number | undefined;
2258
+ stop?: string[] | undefined;
2259
+ jsonSchema?: object | undefined;
2260
+ } | undefined;
2261
+ verdictValid?: boolean | undefined;
2262
+ verdictDialogue?: string | undefined;
2263
+ verdictActionType?: string | undefined;
2264
+ };
2265
+ };
2266
+ activeDirectiveId: string;
2267
+ }, action: PayloadAction<{
2268
+ id: string;
2269
+ prompt: string;
2270
+ constraints: PromptConstraints;
2271
+ }>) => void;
2272
+ verdictValidated: (state: {
2273
+ ids: string[];
2274
+ entities: {
2275
+ [x: string]: {
2276
+ id: string;
2277
+ npcId: string;
2278
+ observation: string;
2279
+ status: "running" | "completed" | "failed";
2280
+ startedAt: number;
2281
+ completedAt?: number | undefined;
2282
+ error?: string | undefined;
2283
+ memoryRecall?: {
2284
+ query: string;
2285
+ limit: number;
2286
+ threshold: number;
2287
+ } | undefined;
2288
+ contextPrompt?: string | undefined;
2289
+ contextConstraints?: {
2290
+ temperature?: number | undefined;
2291
+ maxTokens?: number | undefined;
2292
+ stop?: string[] | undefined;
2293
+ jsonSchema?: object | undefined;
2294
+ } | undefined;
2295
+ verdictValid?: boolean | undefined;
2296
+ verdictDialogue?: string | undefined;
2297
+ verdictActionType?: string | undefined;
2298
+ };
2299
+ };
2300
+ activeDirectiveId: string;
2301
+ }, action: PayloadAction<{
2302
+ id: string;
2303
+ verdict: VerdictResponse;
2304
+ }>) => void;
2305
+ directiveRunFailed: (state: {
2306
+ ids: string[];
2307
+ entities: {
2308
+ [x: string]: {
2309
+ id: string;
2310
+ npcId: string;
2311
+ observation: string;
2312
+ status: "running" | "completed" | "failed";
2313
+ startedAt: number;
2314
+ completedAt?: number | undefined;
2315
+ error?: string | undefined;
2316
+ memoryRecall?: {
2317
+ query: string;
2318
+ limit: number;
2319
+ threshold: number;
2320
+ } | undefined;
2321
+ contextPrompt?: string | undefined;
2322
+ contextConstraints?: {
2323
+ temperature?: number | undefined;
2324
+ maxTokens?: number | undefined;
2325
+ stop?: string[] | undefined;
2326
+ jsonSchema?: object | undefined;
2327
+ } | undefined;
2328
+ verdictValid?: boolean | undefined;
2329
+ verdictDialogue?: string | undefined;
2330
+ verdictActionType?: string | undefined;
2331
+ };
2332
+ };
2333
+ activeDirectiveId: string;
2334
+ }, action: PayloadAction<{
2335
+ id: string;
2336
+ error: string;
2337
+ }>) => void;
2338
+ clearDirectivesForNpc: (state: {
2339
+ ids: string[];
2340
+ entities: {
2341
+ [x: string]: {
2342
+ id: string;
2343
+ npcId: string;
2344
+ observation: string;
2345
+ status: "running" | "completed" | "failed";
2346
+ startedAt: number;
2347
+ completedAt?: number | undefined;
2348
+ error?: string | undefined;
2349
+ memoryRecall?: {
2350
+ query: string;
2351
+ limit: number;
2352
+ threshold: number;
2353
+ } | undefined;
2354
+ contextPrompt?: string | undefined;
2355
+ contextConstraints?: {
2356
+ temperature?: number | undefined;
2357
+ maxTokens?: number | undefined;
2358
+ stop?: string[] | undefined;
2359
+ jsonSchema?: object | undefined;
2360
+ } | undefined;
2361
+ verdictValid?: boolean | undefined;
2362
+ verdictDialogue?: string | undefined;
2363
+ verdictActionType?: string | undefined;
2364
+ };
2365
+ };
2366
+ activeDirectiveId: string;
2367
+ }, action: PayloadAction<string>) => void;
2368
+ }, "directive", "directive", _reduxjs_toolkit.SliceSelectors<_reduxjs_toolkit.EntityState<DirectiveRun, string> & {
2369
+ activeDirectiveId: string;
2370
+ }>>;
2371
+ declare const directiveRunStarted: _reduxjs_toolkit.ActionCreatorWithPayload<{
2372
+ id: string;
2373
+ npcId: string;
2374
+ observation: string;
2375
+ }, "directive/directiveRunStarted">;
2376
+ declare const directiveReceived: _reduxjs_toolkit.ActionCreatorWithPayload<{
2377
+ id: string;
2378
+ response: DirectiveResponse;
2379
+ }, "directive/directiveReceived">;
2380
+ declare const contextComposed: _reduxjs_toolkit.ActionCreatorWithPayload<{
2381
+ id: string;
2382
+ prompt: string;
2383
+ constraints: PromptConstraints;
2384
+ }, "directive/contextComposed">;
2385
+ declare const verdictValidated: _reduxjs_toolkit.ActionCreatorWithPayload<{
2386
+ id: string;
2387
+ verdict: VerdictResponse;
2388
+ }, "directive/verdictValidated">;
2389
+ declare const directiveRunFailed: _reduxjs_toolkit.ActionCreatorWithPayload<{
2390
+ id: string;
2391
+ error: string;
2392
+ }, "directive/directiveRunFailed">;
2393
+ declare const clearDirectivesForNpc: _reduxjs_toolkit.ActionCreatorWithPayload<string, "directive/clearDirectivesForNpc">;
2394
+ declare const selectDirectiveById: (state: {
2395
+ [x: string]: /*elided*/ any;
2396
+ forbocApi: _reduxjs_toolkit_query.CombinedState<{
2397
+ getCortexModels: _reduxjs_toolkit_query.QueryDefinition<{
2398
+ apiUrl: string;
2399
+ apiKey?: string;
2400
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", CortexModelInfo[], "forbocApi", unknown>;
2401
+ postCortexInit: _reduxjs_toolkit_query.MutationDefinition<{
2402
+ request: {
2403
+ requestedModel: string;
2404
+ authKey?: string;
2405
+ };
2406
+ apiUrl: string;
2407
+ apiKey?: string;
2408
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", CortexInitResponse, "forbocApi", unknown>;
2409
+ postNpcProcess: _reduxjs_toolkit_query.MutationDefinition<{
2410
+ npcId: string;
2411
+ request: NPCProcessRequest;
2412
+ apiUrl: string;
2413
+ apiKey?: string;
2414
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", NPCProcessResponse, "forbocApi", unknown>;
2415
+ postDirective: _reduxjs_toolkit_query.MutationDefinition<{
2416
+ npcId: string;
2417
+ request: DirectiveRequest;
2418
+ apiUrl: string;
2419
+ apiKey?: string;
2420
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveResponse, "forbocApi", unknown>;
2421
+ postContext: _reduxjs_toolkit_query.MutationDefinition<{
2422
+ npcId: string;
2423
+ request: ContextRequest;
2424
+ apiUrl: string;
2425
+ apiKey?: string;
2426
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ContextResponse, "forbocApi", unknown>;
2427
+ postVerdict: _reduxjs_toolkit_query.MutationDefinition<{
2428
+ npcId: string;
2429
+ request: VerdictRequest;
2430
+ apiUrl: string;
2431
+ apiKey?: string;
2432
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", VerdictResponse, "forbocApi", unknown>;
2433
+ postMemoryStore: _reduxjs_toolkit_query.MutationDefinition<{
2434
+ npcId: string;
2435
+ request: {
2436
+ observation: string;
2437
+ importance?: number;
2438
+ };
2439
+ apiUrl: string;
2440
+ apiKey?: string;
2441
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
2442
+ getMemoryList: _reduxjs_toolkit_query.QueryDefinition<{
2443
+ npcId: string;
2444
+ apiUrl: string;
2445
+ apiKey?: string;
2446
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any[], "forbocApi", unknown>;
2447
+ postMemoryRecall: _reduxjs_toolkit_query.MutationDefinition<{
2448
+ npcId: string;
2449
+ request: {
2450
+ query: string;
2451
+ similarity?: number;
2452
+ };
2453
+ apiUrl: string;
2454
+ apiKey?: string;
2455
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any[], "forbocApi", unknown>;
2456
+ deleteMemoryClear: _reduxjs_toolkit_query.MutationDefinition<{
2457
+ npcId: string;
2458
+ apiUrl: string;
2459
+ apiKey?: string;
2460
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
2461
+ postGhostRun: _reduxjs_toolkit_query.MutationDefinition<{
2462
+ request: {
2463
+ testSuite: string;
2464
+ duration: number;
2465
+ };
2466
+ apiUrl: string;
2467
+ apiKey?: string;
2468
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", GhostRunResponse, "forbocApi", unknown>;
2469
+ getGhostStatus: _reduxjs_toolkit_query.QueryDefinition<{
2470
+ sessionId: string;
2471
+ apiUrl: string;
2472
+ apiKey?: string;
2473
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
2474
+ getGhostResults: _reduxjs_toolkit_query.QueryDefinition<{
2475
+ sessionId: string;
2476
+ apiUrl: string;
2477
+ apiKey?: string;
2478
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
2479
+ postGhostStop: _reduxjs_toolkit_query.MutationDefinition<{
2480
+ sessionId: string;
2481
+ apiUrl: string;
2482
+ apiKey?: string;
2483
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
2484
+ stopped: boolean;
2485
+ stopStatus?: string;
2486
+ stopSessionId?: string;
2487
+ }, "forbocApi", unknown>;
2488
+ getGhostHistory: _reduxjs_toolkit_query.QueryDefinition<{
2489
+ limit: number;
2490
+ apiUrl: string;
2491
+ apiKey?: string;
2492
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
2493
+ sessions: any[];
2494
+ }, "forbocApi", unknown>;
2495
+ postSoulExport: _reduxjs_toolkit_query.MutationDefinition<{
2496
+ npcId: string;
2497
+ request: any;
2498
+ apiUrl: string;
2499
+ apiKey?: string;
2500
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulExportResponse, "forbocApi", unknown>;
2501
+ getSoulImport: _reduxjs_toolkit_query.QueryDefinition<{
2502
+ txId: string;
2503
+ apiUrl: string;
2504
+ apiKey?: string;
2505
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
2506
+ getSouls: _reduxjs_toolkit_query.QueryDefinition<{
2507
+ limit: number;
2508
+ apiUrl: string;
2509
+ apiKey?: string;
2510
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulListResponse, "forbocApi", unknown>;
2511
+ postBridgeValidate: _reduxjs_toolkit_query.MutationDefinition<{
2512
+ request: {
2513
+ action: NPCAction;
2514
+ context: ValidationContext;
2515
+ };
2516
+ npcId?: string;
2517
+ apiUrl: string;
2518
+ apiKey?: string;
2519
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ValidationResult, "forbocApi", unknown>;
2520
+ getBridgeRules: _reduxjs_toolkit_query.QueryDefinition<{
2521
+ apiUrl: string;
2522
+ apiKey?: string;
2523
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", BridgeRule[], "forbocApi", unknown>;
2524
+ postBridgePreset: _reduxjs_toolkit_query.MutationDefinition<{
2525
+ presetName: string;
2526
+ apiUrl: string;
2527
+ apiKey?: string;
2528
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet, "forbocApi", unknown>;
2529
+ getRulesets: _reduxjs_toolkit_query.QueryDefinition<{
2530
+ apiUrl: string;
2531
+ apiKey?: string;
2532
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet[], "forbocApi", unknown>;
2533
+ getRulePresets: _reduxjs_toolkit_query.QueryDefinition<{
2534
+ apiUrl: string;
2535
+ apiKey?: string;
2536
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", string[], "forbocApi", unknown>;
2537
+ postRuleRegister: _reduxjs_toolkit_query.MutationDefinition<{
2538
+ request: DirectiveRuleSet;
2539
+ apiUrl: string;
2540
+ apiKey?: string;
2541
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet, "forbocApi", unknown>;
2542
+ deleteRule: _reduxjs_toolkit_query.MutationDefinition<{
2543
+ rulesetId: string;
2544
+ apiUrl: string;
2545
+ apiKey?: string;
2546
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
2547
+ deleted: boolean;
2548
+ }, "forbocApi", unknown>;
2549
+ postSoulVerify: _reduxjs_toolkit_query.MutationDefinition<{
2550
+ txId: string;
2551
+ apiUrl: string;
2552
+ apiKey?: string;
2553
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulVerifyResult, "forbocApi", unknown>;
2554
+ postNpcImport: _reduxjs_toolkit_query.MutationDefinition<{
2555
+ request: {
2556
+ txIdRef: string;
2557
+ };
2558
+ apiUrl: string;
2559
+ apiKey?: string;
2560
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ImportedNpc, "forbocApi", unknown>;
2561
+ postCortexComplete: _reduxjs_toolkit_query.MutationDefinition<{
2562
+ cortexId: string;
2563
+ prompt: string;
2564
+ options?: any;
2565
+ apiUrl: string;
2566
+ apiKey?: string;
2567
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
2568
+ text: string;
2569
+ }, "forbocApi", unknown>;
2570
+ getApiStatus: _reduxjs_toolkit_query.QueryDefinition<{
2571
+ apiUrl: string;
2572
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ApiStatusResponse, "forbocApi", unknown>;
2573
+ }, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", "forbocApi">;
2574
+ npc: _reduxjs_toolkit.EntityState<NPCInternalState, string> & {
2575
+ activeNpcId: string;
2576
+ };
2577
+ cortex: CortexInternalState;
2578
+ memory: _reduxjs_toolkit.EntityState<MemoryItem, string> & {
2579
+ storageStatus: "idle" | "storing" | "error";
2580
+ recallStatus: "idle" | "recalling" | "error";
2581
+ error: string | null;
2582
+ lastRecalledIds: string[];
2583
+ };
2584
+ directive: _reduxjs_toolkit.EntityState<DirectiveRun, string> & {
2585
+ activeDirectiveId: string;
2586
+ };
2587
+ ghost: GhostState;
2588
+ soul: SoulState;
2589
+ bridge: BridgeState;
2590
+ }, id: string) => {
2591
+ id: string;
2592
+ npcId: string;
2593
+ observation: string;
2594
+ status: "running" | "completed" | "failed";
2595
+ startedAt: number;
2596
+ completedAt?: number | undefined;
2597
+ error?: string | undefined;
2598
+ memoryRecall?: DirectiveResponse["memoryRecall"] | undefined;
2599
+ contextPrompt?: string | undefined;
2600
+ contextConstraints?: PromptConstraints | undefined;
2601
+ verdictValid?: boolean | undefined;
2602
+ verdictDialogue?: string | undefined;
2603
+ verdictActionType?: string | undefined;
2604
+ };
2605
+ declare const selectAllDirectives: (state: {
2606
+ [x: string]: /*elided*/ any;
2607
+ forbocApi: _reduxjs_toolkit_query.CombinedState<{
2608
+ getCortexModels: _reduxjs_toolkit_query.QueryDefinition<{
2609
+ apiUrl: string;
2610
+ apiKey?: string;
2611
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", CortexModelInfo[], "forbocApi", unknown>;
2612
+ postCortexInit: _reduxjs_toolkit_query.MutationDefinition<{
2613
+ request: {
2614
+ requestedModel: string;
2615
+ authKey?: string;
2616
+ };
2617
+ apiUrl: string;
2618
+ apiKey?: string;
2619
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", CortexInitResponse, "forbocApi", unknown>;
2620
+ postNpcProcess: _reduxjs_toolkit_query.MutationDefinition<{
2621
+ npcId: string;
2622
+ request: NPCProcessRequest;
2623
+ apiUrl: string;
2624
+ apiKey?: string;
2625
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", NPCProcessResponse, "forbocApi", unknown>;
2626
+ postDirective: _reduxjs_toolkit_query.MutationDefinition<{
2627
+ npcId: string;
2628
+ request: DirectiveRequest;
2629
+ apiUrl: string;
2630
+ apiKey?: string;
2631
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveResponse, "forbocApi", unknown>;
2632
+ postContext: _reduxjs_toolkit_query.MutationDefinition<{
2633
+ npcId: string;
2634
+ request: ContextRequest;
2635
+ apiUrl: string;
2636
+ apiKey?: string;
2637
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ContextResponse, "forbocApi", unknown>;
2638
+ postVerdict: _reduxjs_toolkit_query.MutationDefinition<{
2639
+ npcId: string;
2640
+ request: VerdictRequest;
2641
+ apiUrl: string;
2642
+ apiKey?: string;
2643
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", VerdictResponse, "forbocApi", unknown>;
2644
+ postMemoryStore: _reduxjs_toolkit_query.MutationDefinition<{
2645
+ npcId: string;
2646
+ request: {
2647
+ observation: string;
2648
+ importance?: number;
2649
+ };
2650
+ apiUrl: string;
2651
+ apiKey?: string;
2652
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
2653
+ getMemoryList: _reduxjs_toolkit_query.QueryDefinition<{
2654
+ npcId: string;
2655
+ apiUrl: string;
2656
+ apiKey?: string;
2657
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any[], "forbocApi", unknown>;
2658
+ postMemoryRecall: _reduxjs_toolkit_query.MutationDefinition<{
2659
+ npcId: string;
2660
+ request: {
2661
+ query: string;
2662
+ similarity?: number;
2663
+ };
2664
+ apiUrl: string;
2665
+ apiKey?: string;
2666
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any[], "forbocApi", unknown>;
2667
+ deleteMemoryClear: _reduxjs_toolkit_query.MutationDefinition<{
2668
+ npcId: string;
2669
+ apiUrl: string;
2670
+ apiKey?: string;
2671
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
2672
+ postGhostRun: _reduxjs_toolkit_query.MutationDefinition<{
2673
+ request: {
2674
+ testSuite: string;
2675
+ duration: number;
2676
+ };
2677
+ apiUrl: string;
2678
+ apiKey?: string;
2679
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", GhostRunResponse, "forbocApi", unknown>;
2680
+ getGhostStatus: _reduxjs_toolkit_query.QueryDefinition<{
2681
+ sessionId: string;
2682
+ apiUrl: string;
2683
+ apiKey?: string;
2684
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
2685
+ getGhostResults: _reduxjs_toolkit_query.QueryDefinition<{
2686
+ sessionId: string;
2687
+ apiUrl: string;
2688
+ apiKey?: string;
2689
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
2690
+ postGhostStop: _reduxjs_toolkit_query.MutationDefinition<{
2691
+ sessionId: string;
2692
+ apiUrl: string;
2693
+ apiKey?: string;
2694
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
2695
+ stopped: boolean;
2696
+ stopStatus?: string;
2697
+ stopSessionId?: string;
2698
+ }, "forbocApi", unknown>;
2699
+ getGhostHistory: _reduxjs_toolkit_query.QueryDefinition<{
2700
+ limit: number;
2701
+ apiUrl: string;
2702
+ apiKey?: string;
2703
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
2704
+ sessions: any[];
2705
+ }, "forbocApi", unknown>;
2706
+ postSoulExport: _reduxjs_toolkit_query.MutationDefinition<{
2707
+ npcId: string;
2708
+ request: any;
2709
+ apiUrl: string;
2710
+ apiKey?: string;
2711
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulExportResponse, "forbocApi", unknown>;
2712
+ getSoulImport: _reduxjs_toolkit_query.QueryDefinition<{
2713
+ txId: string;
2714
+ apiUrl: string;
2715
+ apiKey?: string;
2716
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
2717
+ getSouls: _reduxjs_toolkit_query.QueryDefinition<{
2718
+ limit: number;
2719
+ apiUrl: string;
2720
+ apiKey?: string;
2721
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulListResponse, "forbocApi", unknown>;
2722
+ postBridgeValidate: _reduxjs_toolkit_query.MutationDefinition<{
2723
+ request: {
2724
+ action: NPCAction;
2725
+ context: ValidationContext;
2726
+ };
2727
+ npcId?: string;
2728
+ apiUrl: string;
2729
+ apiKey?: string;
2730
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ValidationResult, "forbocApi", unknown>;
2731
+ getBridgeRules: _reduxjs_toolkit_query.QueryDefinition<{
2732
+ apiUrl: string;
2733
+ apiKey?: string;
2734
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", BridgeRule[], "forbocApi", unknown>;
2735
+ postBridgePreset: _reduxjs_toolkit_query.MutationDefinition<{
2736
+ presetName: string;
2737
+ apiUrl: string;
2738
+ apiKey?: string;
2739
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet, "forbocApi", unknown>;
2740
+ getRulesets: _reduxjs_toolkit_query.QueryDefinition<{
2741
+ apiUrl: string;
2742
+ apiKey?: string;
2743
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet[], "forbocApi", unknown>;
2744
+ getRulePresets: _reduxjs_toolkit_query.QueryDefinition<{
2745
+ apiUrl: string;
2746
+ apiKey?: string;
2747
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", string[], "forbocApi", unknown>;
2748
+ postRuleRegister: _reduxjs_toolkit_query.MutationDefinition<{
2749
+ request: DirectiveRuleSet;
2750
+ apiUrl: string;
2751
+ apiKey?: string;
2752
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet, "forbocApi", unknown>;
2753
+ deleteRule: _reduxjs_toolkit_query.MutationDefinition<{
2754
+ rulesetId: string;
2755
+ apiUrl: string;
2756
+ apiKey?: string;
2757
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
2758
+ deleted: boolean;
2759
+ }, "forbocApi", unknown>;
2760
+ postSoulVerify: _reduxjs_toolkit_query.MutationDefinition<{
2761
+ txId: string;
2762
+ apiUrl: string;
2763
+ apiKey?: string;
2764
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulVerifyResult, "forbocApi", unknown>;
2765
+ postNpcImport: _reduxjs_toolkit_query.MutationDefinition<{
2766
+ request: {
2767
+ txIdRef: string;
2768
+ };
2769
+ apiUrl: string;
2770
+ apiKey?: string;
2771
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ImportedNpc, "forbocApi", unknown>;
2772
+ postCortexComplete: _reduxjs_toolkit_query.MutationDefinition<{
2773
+ cortexId: string;
2774
+ prompt: string;
2775
+ options?: any;
2776
+ apiUrl: string;
2777
+ apiKey?: string;
2778
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
2779
+ text: string;
2780
+ }, "forbocApi", unknown>;
2781
+ getApiStatus: _reduxjs_toolkit_query.QueryDefinition<{
2782
+ apiUrl: string;
2783
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ApiStatusResponse, "forbocApi", unknown>;
2784
+ }, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", "forbocApi">;
2785
+ npc: _reduxjs_toolkit.EntityState<NPCInternalState, string> & {
2786
+ activeNpcId: string;
2787
+ };
2788
+ cortex: CortexInternalState;
2789
+ memory: _reduxjs_toolkit.EntityState<MemoryItem, string> & {
2790
+ storageStatus: "idle" | "storing" | "error";
2791
+ recallStatus: "idle" | "recalling" | "error";
2792
+ error: string | null;
2793
+ lastRecalledIds: string[];
2794
+ };
2795
+ directive: _reduxjs_toolkit.EntityState<DirectiveRun, string> & {
2796
+ activeDirectiveId: string;
2797
+ };
2798
+ ghost: GhostState;
2799
+ soul: SoulState;
2800
+ bridge: BridgeState;
2801
+ }) => DirectiveRun[];
2802
+ /**
2803
+ * User Story: As directive orchestration state, I need a selector for the
2804
+ * currently active directive run so downstream components can bind to it.
2805
+ * The returned id is the canonical pointer for in-flight run views.
2806
+ */
2807
+ declare const selectActiveDirectiveId: (state: SDKState) => string;
2808
+ declare const selectActiveDirective: (state: SDKState) => DirectiveRun;
2809
+
2810
+ /**
2811
+ * Creates the SDK internal Redux store.
2812
+ * Note: If using in a host app, slices should ideally be combined into the host store.
2813
+ */
2814
+ declare const createSDKStore: <S extends ReducersMapObject>(extraReducers?: S) => _reduxjs_toolkit.EnhancedStore<{
2815
+ [x: string]: /*elided*/ any;
2816
+ forbocApi: _reduxjs_toolkit_query.CombinedState<{
2817
+ getCortexModels: _reduxjs_toolkit_query.QueryDefinition<{
2818
+ apiUrl: string;
2819
+ apiKey?: string;
2820
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", CortexModelInfo[], "forbocApi", unknown>;
2821
+ postCortexInit: _reduxjs_toolkit_query.MutationDefinition<{
2822
+ request: {
2823
+ requestedModel: string;
2824
+ authKey?: string;
2825
+ };
2826
+ apiUrl: string;
2827
+ apiKey?: string;
2828
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", CortexInitResponse, "forbocApi", unknown>;
2829
+ postNpcProcess: _reduxjs_toolkit_query.MutationDefinition<{
2830
+ npcId: string;
2831
+ request: NPCProcessRequest;
1597
2832
  apiUrl: string;
1598
2833
  apiKey?: string;
1599
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveResponse, "forbocApi", unknown>;
2834
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", NPCProcessResponse, "forbocApi", unknown>;
2835
+ postDirective: _reduxjs_toolkit_query.MutationDefinition<{
2836
+ npcId: string;
2837
+ request: DirectiveRequest;
2838
+ apiUrl: string;
2839
+ apiKey?: string;
2840
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveResponse, "forbocApi", unknown>;
1600
2841
  postContext: _reduxjs_toolkit_query.MutationDefinition<{
1601
2842
  npcId: string;
1602
2843
  request: ContextRequest;
1603
2844
  apiUrl: string;
1604
2845
  apiKey?: string;
1605
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ContextResponse, "forbocApi", unknown>;
2846
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ContextResponse, "forbocApi", unknown>;
1606
2847
  postVerdict: _reduxjs_toolkit_query.MutationDefinition<{
1607
2848
  npcId: string;
1608
2849
  request: VerdictRequest;
1609
2850
  apiUrl: string;
1610
2851
  apiKey?: string;
1611
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", VerdictResponse, "forbocApi", unknown>;
1612
- postSpeak: _reduxjs_toolkit_query.MutationDefinition<{
2852
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", VerdictResponse, "forbocApi", unknown>;
2853
+ postMemoryStore: _reduxjs_toolkit_query.MutationDefinition<{
2854
+ npcId: string;
2855
+ request: {
2856
+ observation: string;
2857
+ importance?: number;
2858
+ };
2859
+ apiUrl: string;
2860
+ apiKey?: string;
2861
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
2862
+ getMemoryList: _reduxjs_toolkit_query.QueryDefinition<{
2863
+ npcId: string;
2864
+ apiUrl: string;
2865
+ apiKey?: string;
2866
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any[], "forbocApi", unknown>;
2867
+ postMemoryRecall: _reduxjs_toolkit_query.MutationDefinition<{
1613
2868
  npcId: string;
1614
- request: SpeakRequest;
2869
+ request: {
2870
+ query: string;
2871
+ similarity?: number;
2872
+ };
1615
2873
  apiUrl: string;
1616
2874
  apiKey?: string;
1617
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SpeakResponse, "forbocApi", unknown>;
1618
- postDialogue: _reduxjs_toolkit_query.MutationDefinition<{
2875
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any[], "forbocApi", unknown>;
2876
+ deleteMemoryClear: _reduxjs_toolkit_query.MutationDefinition<{
1619
2877
  npcId: string;
1620
- request: DialogueRequest;
1621
2878
  apiUrl: string;
1622
2879
  apiKey?: string;
1623
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DialogueResponse, "forbocApi", unknown>;
2880
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1624
2881
  postGhostRun: _reduxjs_toolkit_query.MutationDefinition<{
1625
2882
  request: {
1626
2883
  testSuite: string;
1627
2884
  duration: number;
1628
2885
  };
1629
2886
  apiUrl: string;
1630
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", GhostRunResponse, "forbocApi", unknown>;
2887
+ apiKey?: string;
2888
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", GhostRunResponse, "forbocApi", unknown>;
1631
2889
  getGhostStatus: _reduxjs_toolkit_query.QueryDefinition<{
1632
2890
  sessionId: string;
1633
2891
  apiUrl: string;
1634
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
2892
+ apiKey?: string;
2893
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1635
2894
  getGhostResults: _reduxjs_toolkit_query.QueryDefinition<{
1636
2895
  sessionId: string;
1637
2896
  apiUrl: string;
1638
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
2897
+ apiKey?: string;
2898
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1639
2899
  postGhostStop: _reduxjs_toolkit_query.MutationDefinition<{
1640
2900
  sessionId: string;
1641
2901
  apiUrl: string;
1642
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
2902
+ apiKey?: string;
2903
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
1643
2904
  stopped: boolean;
2905
+ stopStatus?: string;
2906
+ stopSessionId?: string;
1644
2907
  }, "forbocApi", unknown>;
1645
2908
  getGhostHistory: _reduxjs_toolkit_query.QueryDefinition<{
1646
2909
  limit: number;
1647
2910
  apiUrl: string;
1648
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
2911
+ apiKey?: string;
2912
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
1649
2913
  sessions: any[];
1650
2914
  }, "forbocApi", unknown>;
1651
2915
  postSoulExport: _reduxjs_toolkit_query.MutationDefinition<{
1652
2916
  npcId: string;
1653
2917
  request: any;
1654
2918
  apiUrl: string;
1655
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SoulExportResponse, "forbocApi", unknown>;
2919
+ apiKey?: string;
2920
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulExportResponse, "forbocApi", unknown>;
1656
2921
  getSoulImport: _reduxjs_toolkit_query.QueryDefinition<{
1657
2922
  txId: string;
1658
2923
  apiUrl: string;
1659
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
2924
+ apiKey?: string;
2925
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1660
2926
  getSouls: _reduxjs_toolkit_query.QueryDefinition<{
1661
2927
  limit: number;
1662
2928
  apiUrl: string;
1663
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SoulListResponse, "forbocApi", unknown>;
2929
+ apiKey?: string;
2930
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulListResponse, "forbocApi", unknown>;
1664
2931
  postBridgeValidate: _reduxjs_toolkit_query.MutationDefinition<{
1665
2932
  request: {
1666
2933
  action: NPCAction;
@@ -1668,27 +2935,62 @@ declare const createSDKStore: <S extends ReducersMapObject>(extraReducers?: S) =
1668
2935
  };
1669
2936
  npcId?: string;
1670
2937
  apiUrl: string;
1671
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ValidationResult, "forbocApi", unknown>;
2938
+ apiKey?: string;
2939
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ValidationResult, "forbocApi", unknown>;
1672
2940
  getBridgeRules: _reduxjs_toolkit_query.QueryDefinition<{
1673
2941
  apiUrl: string;
1674
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveRuleSet[], "forbocApi", unknown>;
2942
+ apiKey?: string;
2943
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", BridgeRule[], "forbocApi", unknown>;
1675
2944
  postBridgePreset: _reduxjs_toolkit_query.MutationDefinition<{
1676
2945
  presetName: string;
1677
2946
  apiUrl: string;
1678
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveRuleSet, "forbocApi", unknown>;
2947
+ apiKey?: string;
2948
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet, "forbocApi", unknown>;
2949
+ getRulesets: _reduxjs_toolkit_query.QueryDefinition<{
2950
+ apiUrl: string;
2951
+ apiKey?: string;
2952
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet[], "forbocApi", unknown>;
2953
+ getRulePresets: _reduxjs_toolkit_query.QueryDefinition<{
2954
+ apiUrl: string;
2955
+ apiKey?: string;
2956
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", string[], "forbocApi", unknown>;
2957
+ postRuleRegister: _reduxjs_toolkit_query.MutationDefinition<{
2958
+ request: DirectiveRuleSet;
2959
+ apiUrl: string;
2960
+ apiKey?: string;
2961
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet, "forbocApi", unknown>;
2962
+ deleteRule: _reduxjs_toolkit_query.MutationDefinition<{
2963
+ rulesetId: string;
2964
+ apiUrl: string;
2965
+ apiKey?: string;
2966
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
2967
+ deleted: boolean;
2968
+ }, "forbocApi", unknown>;
2969
+ postSoulVerify: _reduxjs_toolkit_query.MutationDefinition<{
2970
+ txId: string;
2971
+ apiUrl: string;
2972
+ apiKey?: string;
2973
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulVerifyResult, "forbocApi", unknown>;
2974
+ postNpcImport: _reduxjs_toolkit_query.MutationDefinition<{
2975
+ request: {
2976
+ txIdRef: string;
2977
+ };
2978
+ apiUrl: string;
2979
+ apiKey?: string;
2980
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ImportedNpc, "forbocApi", unknown>;
1679
2981
  postCortexComplete: _reduxjs_toolkit_query.MutationDefinition<{
1680
2982
  cortexId: string;
1681
2983
  prompt: string;
1682
2984
  options?: any;
1683
2985
  apiUrl: string;
1684
2986
  apiKey?: string;
1685
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
2987
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
1686
2988
  text: string;
1687
2989
  }, "forbocApi", unknown>;
1688
2990
  getApiStatus: _reduxjs_toolkit_query.QueryDefinition<{
1689
2991
  apiUrl: string;
1690
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ApiStatusResponse, "forbocApi", unknown>;
1691
- }, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", "forbocApi">;
2992
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ApiStatusResponse, "forbocApi", unknown>;
2993
+ }, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", "forbocApi">;
1692
2994
  npc: _reduxjs_toolkit.EntityState<NPCInternalState, string> & {
1693
2995
  activeNpcId: string;
1694
2996
  };
@@ -1699,6 +3001,9 @@ declare const createSDKStore: <S extends ReducersMapObject>(extraReducers?: S) =
1699
3001
  error: string | null;
1700
3002
  lastRecalledIds: string[];
1701
3003
  };
3004
+ directive: _reduxjs_toolkit.EntityState<DirectiveRun, string> & {
3005
+ activeDirectiveId: string;
3006
+ };
1702
3007
  ghost: GhostState;
1703
3008
  soul: SoulState;
1704
3009
  bridge: BridgeState;
@@ -1706,76 +3011,120 @@ declare const createSDKStore: <S extends ReducersMapObject>(extraReducers?: S) =
1706
3011
  dispatch: ((action: redux.Action<"listenerMiddleware/add">) => _reduxjs_toolkit.UnsubscribeListener) & redux_thunk.ThunkDispatch<{
1707
3012
  [x: string]: /*elided*/ any;
1708
3013
  forbocApi: _reduxjs_toolkit_query.CombinedState<{
3014
+ getCortexModels: _reduxjs_toolkit_query.QueryDefinition<{
3015
+ apiUrl: string;
3016
+ apiKey?: string;
3017
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", CortexModelInfo[], "forbocApi", unknown>;
3018
+ postCortexInit: _reduxjs_toolkit_query.MutationDefinition<{
3019
+ request: {
3020
+ requestedModel: string;
3021
+ authKey?: string;
3022
+ };
3023
+ apiUrl: string;
3024
+ apiKey?: string;
3025
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", CortexInitResponse, "forbocApi", unknown>;
3026
+ postNpcProcess: _reduxjs_toolkit_query.MutationDefinition<{
3027
+ npcId: string;
3028
+ request: NPCProcessRequest;
3029
+ apiUrl: string;
3030
+ apiKey?: string;
3031
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", NPCProcessResponse, "forbocApi", unknown>;
1709
3032
  postDirective: _reduxjs_toolkit_query.MutationDefinition<{
1710
3033
  npcId: string;
1711
3034
  request: DirectiveRequest;
1712
3035
  apiUrl: string;
1713
3036
  apiKey?: string;
1714
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveResponse, "forbocApi", unknown>;
3037
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveResponse, "forbocApi", unknown>;
1715
3038
  postContext: _reduxjs_toolkit_query.MutationDefinition<{
1716
3039
  npcId: string;
1717
3040
  request: ContextRequest;
1718
3041
  apiUrl: string;
1719
3042
  apiKey?: string;
1720
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ContextResponse, "forbocApi", unknown>;
3043
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ContextResponse, "forbocApi", unknown>;
1721
3044
  postVerdict: _reduxjs_toolkit_query.MutationDefinition<{
1722
3045
  npcId: string;
1723
3046
  request: VerdictRequest;
1724
3047
  apiUrl: string;
1725
3048
  apiKey?: string;
1726
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", VerdictResponse, "forbocApi", unknown>;
1727
- postSpeak: _reduxjs_toolkit_query.MutationDefinition<{
3049
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", VerdictResponse, "forbocApi", unknown>;
3050
+ postMemoryStore: _reduxjs_toolkit_query.MutationDefinition<{
3051
+ npcId: string;
3052
+ request: {
3053
+ observation: string;
3054
+ importance?: number;
3055
+ };
3056
+ apiUrl: string;
3057
+ apiKey?: string;
3058
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
3059
+ getMemoryList: _reduxjs_toolkit_query.QueryDefinition<{
3060
+ npcId: string;
3061
+ apiUrl: string;
3062
+ apiKey?: string;
3063
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any[], "forbocApi", unknown>;
3064
+ postMemoryRecall: _reduxjs_toolkit_query.MutationDefinition<{
1728
3065
  npcId: string;
1729
- request: SpeakRequest;
3066
+ request: {
3067
+ query: string;
3068
+ similarity?: number;
3069
+ };
1730
3070
  apiUrl: string;
1731
3071
  apiKey?: string;
1732
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SpeakResponse, "forbocApi", unknown>;
1733
- postDialogue: _reduxjs_toolkit_query.MutationDefinition<{
3072
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any[], "forbocApi", unknown>;
3073
+ deleteMemoryClear: _reduxjs_toolkit_query.MutationDefinition<{
1734
3074
  npcId: string;
1735
- request: DialogueRequest;
1736
3075
  apiUrl: string;
1737
3076
  apiKey?: string;
1738
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DialogueResponse, "forbocApi", unknown>;
3077
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1739
3078
  postGhostRun: _reduxjs_toolkit_query.MutationDefinition<{
1740
3079
  request: {
1741
3080
  testSuite: string;
1742
3081
  duration: number;
1743
3082
  };
1744
3083
  apiUrl: string;
1745
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", GhostRunResponse, "forbocApi", unknown>;
3084
+ apiKey?: string;
3085
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", GhostRunResponse, "forbocApi", unknown>;
1746
3086
  getGhostStatus: _reduxjs_toolkit_query.QueryDefinition<{
1747
3087
  sessionId: string;
1748
3088
  apiUrl: string;
1749
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
3089
+ apiKey?: string;
3090
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1750
3091
  getGhostResults: _reduxjs_toolkit_query.QueryDefinition<{
1751
3092
  sessionId: string;
1752
3093
  apiUrl: string;
1753
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
3094
+ apiKey?: string;
3095
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1754
3096
  postGhostStop: _reduxjs_toolkit_query.MutationDefinition<{
1755
3097
  sessionId: string;
1756
3098
  apiUrl: string;
1757
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
3099
+ apiKey?: string;
3100
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
1758
3101
  stopped: boolean;
3102
+ stopStatus?: string;
3103
+ stopSessionId?: string;
1759
3104
  }, "forbocApi", unknown>;
1760
3105
  getGhostHistory: _reduxjs_toolkit_query.QueryDefinition<{
1761
3106
  limit: number;
1762
3107
  apiUrl: string;
1763
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
3108
+ apiKey?: string;
3109
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
1764
3110
  sessions: any[];
1765
3111
  }, "forbocApi", unknown>;
1766
3112
  postSoulExport: _reduxjs_toolkit_query.MutationDefinition<{
1767
3113
  npcId: string;
1768
3114
  request: any;
1769
3115
  apiUrl: string;
1770
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SoulExportResponse, "forbocApi", unknown>;
3116
+ apiKey?: string;
3117
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulExportResponse, "forbocApi", unknown>;
1771
3118
  getSoulImport: _reduxjs_toolkit_query.QueryDefinition<{
1772
3119
  txId: string;
1773
3120
  apiUrl: string;
1774
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
3121
+ apiKey?: string;
3122
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1775
3123
  getSouls: _reduxjs_toolkit_query.QueryDefinition<{
1776
3124
  limit: number;
1777
3125
  apiUrl: string;
1778
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SoulListResponse, "forbocApi", unknown>;
3126
+ apiKey?: string;
3127
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulListResponse, "forbocApi", unknown>;
1779
3128
  postBridgeValidate: _reduxjs_toolkit_query.MutationDefinition<{
1780
3129
  request: {
1781
3130
  action: NPCAction;
@@ -1783,27 +3132,62 @@ declare const createSDKStore: <S extends ReducersMapObject>(extraReducers?: S) =
1783
3132
  };
1784
3133
  npcId?: string;
1785
3134
  apiUrl: string;
1786
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ValidationResult, "forbocApi", unknown>;
3135
+ apiKey?: string;
3136
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ValidationResult, "forbocApi", unknown>;
1787
3137
  getBridgeRules: _reduxjs_toolkit_query.QueryDefinition<{
1788
3138
  apiUrl: string;
1789
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveRuleSet[], "forbocApi", unknown>;
3139
+ apiKey?: string;
3140
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", BridgeRule[], "forbocApi", unknown>;
1790
3141
  postBridgePreset: _reduxjs_toolkit_query.MutationDefinition<{
1791
3142
  presetName: string;
1792
3143
  apiUrl: string;
1793
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveRuleSet, "forbocApi", unknown>;
3144
+ apiKey?: string;
3145
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet, "forbocApi", unknown>;
3146
+ getRulesets: _reduxjs_toolkit_query.QueryDefinition<{
3147
+ apiUrl: string;
3148
+ apiKey?: string;
3149
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet[], "forbocApi", unknown>;
3150
+ getRulePresets: _reduxjs_toolkit_query.QueryDefinition<{
3151
+ apiUrl: string;
3152
+ apiKey?: string;
3153
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", string[], "forbocApi", unknown>;
3154
+ postRuleRegister: _reduxjs_toolkit_query.MutationDefinition<{
3155
+ request: DirectiveRuleSet;
3156
+ apiUrl: string;
3157
+ apiKey?: string;
3158
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet, "forbocApi", unknown>;
3159
+ deleteRule: _reduxjs_toolkit_query.MutationDefinition<{
3160
+ rulesetId: string;
3161
+ apiUrl: string;
3162
+ apiKey?: string;
3163
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
3164
+ deleted: boolean;
3165
+ }, "forbocApi", unknown>;
3166
+ postSoulVerify: _reduxjs_toolkit_query.MutationDefinition<{
3167
+ txId: string;
3168
+ apiUrl: string;
3169
+ apiKey?: string;
3170
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulVerifyResult, "forbocApi", unknown>;
3171
+ postNpcImport: _reduxjs_toolkit_query.MutationDefinition<{
3172
+ request: {
3173
+ txIdRef: string;
3174
+ };
3175
+ apiUrl: string;
3176
+ apiKey?: string;
3177
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ImportedNpc, "forbocApi", unknown>;
1794
3178
  postCortexComplete: _reduxjs_toolkit_query.MutationDefinition<{
1795
3179
  cortexId: string;
1796
3180
  prompt: string;
1797
3181
  options?: any;
1798
3182
  apiUrl: string;
1799
3183
  apiKey?: string;
1800
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
3184
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
1801
3185
  text: string;
1802
3186
  }, "forbocApi", unknown>;
1803
3187
  getApiStatus: _reduxjs_toolkit_query.QueryDefinition<{
1804
3188
  apiUrl: string;
1805
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ApiStatusResponse, "forbocApi", unknown>;
1806
- }, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", "forbocApi">;
3189
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ApiStatusResponse, "forbocApi", unknown>;
3190
+ }, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", "forbocApi">;
1807
3191
  npc: _reduxjs_toolkit.EntityState<NPCInternalState, string> & {
1808
3192
  activeNpcId: string;
1809
3193
  };
@@ -1814,6 +3198,9 @@ declare const createSDKStore: <S extends ReducersMapObject>(extraReducers?: S) =
1814
3198
  error: string | null;
1815
3199
  lastRecalledIds: string[];
1816
3200
  };
3201
+ directive: _reduxjs_toolkit.EntityState<DirectiveRun, string> & {
3202
+ activeDirectiveId: string;
3203
+ };
1817
3204
  ghost: GhostState;
1818
3205
  soul: SoulState;
1819
3206
  bridge: BridgeState;
@@ -1822,76 +3209,120 @@ declare const createSDKStore: <S extends ReducersMapObject>(extraReducers?: S) =
1822
3209
  declare const store: _reduxjs_toolkit.EnhancedStore<{
1823
3210
  [x: string]: /*elided*/ any;
1824
3211
  forbocApi: _reduxjs_toolkit_query.CombinedState<{
3212
+ getCortexModels: _reduxjs_toolkit_query.QueryDefinition<{
3213
+ apiUrl: string;
3214
+ apiKey?: string;
3215
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", CortexModelInfo[], "forbocApi", unknown>;
3216
+ postCortexInit: _reduxjs_toolkit_query.MutationDefinition<{
3217
+ request: {
3218
+ requestedModel: string;
3219
+ authKey?: string;
3220
+ };
3221
+ apiUrl: string;
3222
+ apiKey?: string;
3223
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", CortexInitResponse, "forbocApi", unknown>;
3224
+ postNpcProcess: _reduxjs_toolkit_query.MutationDefinition<{
3225
+ npcId: string;
3226
+ request: NPCProcessRequest;
3227
+ apiUrl: string;
3228
+ apiKey?: string;
3229
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", NPCProcessResponse, "forbocApi", unknown>;
1825
3230
  postDirective: _reduxjs_toolkit_query.MutationDefinition<{
1826
3231
  npcId: string;
1827
3232
  request: DirectiveRequest;
1828
3233
  apiUrl: string;
1829
3234
  apiKey?: string;
1830
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveResponse, "forbocApi", unknown>;
3235
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveResponse, "forbocApi", unknown>;
1831
3236
  postContext: _reduxjs_toolkit_query.MutationDefinition<{
1832
3237
  npcId: string;
1833
3238
  request: ContextRequest;
1834
3239
  apiUrl: string;
1835
3240
  apiKey?: string;
1836
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ContextResponse, "forbocApi", unknown>;
3241
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ContextResponse, "forbocApi", unknown>;
1837
3242
  postVerdict: _reduxjs_toolkit_query.MutationDefinition<{
1838
3243
  npcId: string;
1839
3244
  request: VerdictRequest;
1840
3245
  apiUrl: string;
1841
3246
  apiKey?: string;
1842
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", VerdictResponse, "forbocApi", unknown>;
1843
- postSpeak: _reduxjs_toolkit_query.MutationDefinition<{
3247
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", VerdictResponse, "forbocApi", unknown>;
3248
+ postMemoryStore: _reduxjs_toolkit_query.MutationDefinition<{
3249
+ npcId: string;
3250
+ request: {
3251
+ observation: string;
3252
+ importance?: number;
3253
+ };
3254
+ apiUrl: string;
3255
+ apiKey?: string;
3256
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
3257
+ getMemoryList: _reduxjs_toolkit_query.QueryDefinition<{
3258
+ npcId: string;
3259
+ apiUrl: string;
3260
+ apiKey?: string;
3261
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any[], "forbocApi", unknown>;
3262
+ postMemoryRecall: _reduxjs_toolkit_query.MutationDefinition<{
1844
3263
  npcId: string;
1845
- request: SpeakRequest;
3264
+ request: {
3265
+ query: string;
3266
+ similarity?: number;
3267
+ };
1846
3268
  apiUrl: string;
1847
3269
  apiKey?: string;
1848
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SpeakResponse, "forbocApi", unknown>;
1849
- postDialogue: _reduxjs_toolkit_query.MutationDefinition<{
3270
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any[], "forbocApi", unknown>;
3271
+ deleteMemoryClear: _reduxjs_toolkit_query.MutationDefinition<{
1850
3272
  npcId: string;
1851
- request: DialogueRequest;
1852
3273
  apiUrl: string;
1853
3274
  apiKey?: string;
1854
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DialogueResponse, "forbocApi", unknown>;
3275
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1855
3276
  postGhostRun: _reduxjs_toolkit_query.MutationDefinition<{
1856
3277
  request: {
1857
3278
  testSuite: string;
1858
3279
  duration: number;
1859
3280
  };
1860
3281
  apiUrl: string;
1861
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", GhostRunResponse, "forbocApi", unknown>;
3282
+ apiKey?: string;
3283
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", GhostRunResponse, "forbocApi", unknown>;
1862
3284
  getGhostStatus: _reduxjs_toolkit_query.QueryDefinition<{
1863
3285
  sessionId: string;
1864
3286
  apiUrl: string;
1865
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
3287
+ apiKey?: string;
3288
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1866
3289
  getGhostResults: _reduxjs_toolkit_query.QueryDefinition<{
1867
3290
  sessionId: string;
1868
3291
  apiUrl: string;
1869
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
3292
+ apiKey?: string;
3293
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1870
3294
  postGhostStop: _reduxjs_toolkit_query.MutationDefinition<{
1871
3295
  sessionId: string;
1872
3296
  apiUrl: string;
1873
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
3297
+ apiKey?: string;
3298
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
1874
3299
  stopped: boolean;
3300
+ stopStatus?: string;
3301
+ stopSessionId?: string;
1875
3302
  }, "forbocApi", unknown>;
1876
3303
  getGhostHistory: _reduxjs_toolkit_query.QueryDefinition<{
1877
3304
  limit: number;
1878
3305
  apiUrl: string;
1879
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
3306
+ apiKey?: string;
3307
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
1880
3308
  sessions: any[];
1881
3309
  }, "forbocApi", unknown>;
1882
3310
  postSoulExport: _reduxjs_toolkit_query.MutationDefinition<{
1883
3311
  npcId: string;
1884
3312
  request: any;
1885
3313
  apiUrl: string;
1886
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SoulExportResponse, "forbocApi", unknown>;
3314
+ apiKey?: string;
3315
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulExportResponse, "forbocApi", unknown>;
1887
3316
  getSoulImport: _reduxjs_toolkit_query.QueryDefinition<{
1888
3317
  txId: string;
1889
3318
  apiUrl: string;
1890
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
3319
+ apiKey?: string;
3320
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1891
3321
  getSouls: _reduxjs_toolkit_query.QueryDefinition<{
1892
3322
  limit: number;
1893
3323
  apiUrl: string;
1894
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SoulListResponse, "forbocApi", unknown>;
3324
+ apiKey?: string;
3325
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulListResponse, "forbocApi", unknown>;
1895
3326
  postBridgeValidate: _reduxjs_toolkit_query.MutationDefinition<{
1896
3327
  request: {
1897
3328
  action: NPCAction;
@@ -1899,27 +3330,62 @@ declare const store: _reduxjs_toolkit.EnhancedStore<{
1899
3330
  };
1900
3331
  npcId?: string;
1901
3332
  apiUrl: string;
1902
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ValidationResult, "forbocApi", unknown>;
3333
+ apiKey?: string;
3334
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ValidationResult, "forbocApi", unknown>;
1903
3335
  getBridgeRules: _reduxjs_toolkit_query.QueryDefinition<{
1904
3336
  apiUrl: string;
1905
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveRuleSet[], "forbocApi", unknown>;
3337
+ apiKey?: string;
3338
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", BridgeRule[], "forbocApi", unknown>;
1906
3339
  postBridgePreset: _reduxjs_toolkit_query.MutationDefinition<{
1907
3340
  presetName: string;
1908
3341
  apiUrl: string;
1909
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveRuleSet, "forbocApi", unknown>;
3342
+ apiKey?: string;
3343
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet, "forbocApi", unknown>;
3344
+ getRulesets: _reduxjs_toolkit_query.QueryDefinition<{
3345
+ apiUrl: string;
3346
+ apiKey?: string;
3347
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet[], "forbocApi", unknown>;
3348
+ getRulePresets: _reduxjs_toolkit_query.QueryDefinition<{
3349
+ apiUrl: string;
3350
+ apiKey?: string;
3351
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", string[], "forbocApi", unknown>;
3352
+ postRuleRegister: _reduxjs_toolkit_query.MutationDefinition<{
3353
+ request: DirectiveRuleSet;
3354
+ apiUrl: string;
3355
+ apiKey?: string;
3356
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet, "forbocApi", unknown>;
3357
+ deleteRule: _reduxjs_toolkit_query.MutationDefinition<{
3358
+ rulesetId: string;
3359
+ apiUrl: string;
3360
+ apiKey?: string;
3361
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
3362
+ deleted: boolean;
3363
+ }, "forbocApi", unknown>;
3364
+ postSoulVerify: _reduxjs_toolkit_query.MutationDefinition<{
3365
+ txId: string;
3366
+ apiUrl: string;
3367
+ apiKey?: string;
3368
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulVerifyResult, "forbocApi", unknown>;
3369
+ postNpcImport: _reduxjs_toolkit_query.MutationDefinition<{
3370
+ request: {
3371
+ txIdRef: string;
3372
+ };
3373
+ apiUrl: string;
3374
+ apiKey?: string;
3375
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ImportedNpc, "forbocApi", unknown>;
1910
3376
  postCortexComplete: _reduxjs_toolkit_query.MutationDefinition<{
1911
3377
  cortexId: string;
1912
3378
  prompt: string;
1913
3379
  options?: any;
1914
3380
  apiUrl: string;
1915
3381
  apiKey?: string;
1916
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
3382
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
1917
3383
  text: string;
1918
3384
  }, "forbocApi", unknown>;
1919
3385
  getApiStatus: _reduxjs_toolkit_query.QueryDefinition<{
1920
3386
  apiUrl: string;
1921
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ApiStatusResponse, "forbocApi", unknown>;
1922
- }, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", "forbocApi">;
3387
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ApiStatusResponse, "forbocApi", unknown>;
3388
+ }, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", "forbocApi">;
1923
3389
  npc: _reduxjs_toolkit.EntityState<NPCInternalState, string> & {
1924
3390
  activeNpcId: string;
1925
3391
  };
@@ -1930,6 +3396,9 @@ declare const store: _reduxjs_toolkit.EnhancedStore<{
1930
3396
  error: string | null;
1931
3397
  lastRecalledIds: string[];
1932
3398
  };
3399
+ directive: _reduxjs_toolkit.EntityState<DirectiveRun, string> & {
3400
+ activeDirectiveId: string;
3401
+ };
1933
3402
  ghost: GhostState;
1934
3403
  soul: SoulState;
1935
3404
  bridge: BridgeState;
@@ -1937,76 +3406,120 @@ declare const store: _reduxjs_toolkit.EnhancedStore<{
1937
3406
  dispatch: ((action: redux.Action<"listenerMiddleware/add">) => _reduxjs_toolkit.UnsubscribeListener) & redux_thunk.ThunkDispatch<{
1938
3407
  [x: string]: /*elided*/ any;
1939
3408
  forbocApi: _reduxjs_toolkit_query.CombinedState<{
3409
+ getCortexModels: _reduxjs_toolkit_query.QueryDefinition<{
3410
+ apiUrl: string;
3411
+ apiKey?: string;
3412
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", CortexModelInfo[], "forbocApi", unknown>;
3413
+ postCortexInit: _reduxjs_toolkit_query.MutationDefinition<{
3414
+ request: {
3415
+ requestedModel: string;
3416
+ authKey?: string;
3417
+ };
3418
+ apiUrl: string;
3419
+ apiKey?: string;
3420
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", CortexInitResponse, "forbocApi", unknown>;
3421
+ postNpcProcess: _reduxjs_toolkit_query.MutationDefinition<{
3422
+ npcId: string;
3423
+ request: NPCProcessRequest;
3424
+ apiUrl: string;
3425
+ apiKey?: string;
3426
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", NPCProcessResponse, "forbocApi", unknown>;
1940
3427
  postDirective: _reduxjs_toolkit_query.MutationDefinition<{
1941
3428
  npcId: string;
1942
3429
  request: DirectiveRequest;
1943
3430
  apiUrl: string;
1944
3431
  apiKey?: string;
1945
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveResponse, "forbocApi", unknown>;
3432
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveResponse, "forbocApi", unknown>;
1946
3433
  postContext: _reduxjs_toolkit_query.MutationDefinition<{
1947
3434
  npcId: string;
1948
3435
  request: ContextRequest;
1949
3436
  apiUrl: string;
1950
3437
  apiKey?: string;
1951
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ContextResponse, "forbocApi", unknown>;
3438
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ContextResponse, "forbocApi", unknown>;
1952
3439
  postVerdict: _reduxjs_toolkit_query.MutationDefinition<{
1953
3440
  npcId: string;
1954
3441
  request: VerdictRequest;
1955
3442
  apiUrl: string;
1956
3443
  apiKey?: string;
1957
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", VerdictResponse, "forbocApi", unknown>;
1958
- postSpeak: _reduxjs_toolkit_query.MutationDefinition<{
3444
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", VerdictResponse, "forbocApi", unknown>;
3445
+ postMemoryStore: _reduxjs_toolkit_query.MutationDefinition<{
3446
+ npcId: string;
3447
+ request: {
3448
+ observation: string;
3449
+ importance?: number;
3450
+ };
3451
+ apiUrl: string;
3452
+ apiKey?: string;
3453
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
3454
+ getMemoryList: _reduxjs_toolkit_query.QueryDefinition<{
3455
+ npcId: string;
3456
+ apiUrl: string;
3457
+ apiKey?: string;
3458
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any[], "forbocApi", unknown>;
3459
+ postMemoryRecall: _reduxjs_toolkit_query.MutationDefinition<{
1959
3460
  npcId: string;
1960
- request: SpeakRequest;
3461
+ request: {
3462
+ query: string;
3463
+ similarity?: number;
3464
+ };
1961
3465
  apiUrl: string;
1962
3466
  apiKey?: string;
1963
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SpeakResponse, "forbocApi", unknown>;
1964
- postDialogue: _reduxjs_toolkit_query.MutationDefinition<{
3467
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any[], "forbocApi", unknown>;
3468
+ deleteMemoryClear: _reduxjs_toolkit_query.MutationDefinition<{
1965
3469
  npcId: string;
1966
- request: DialogueRequest;
1967
3470
  apiUrl: string;
1968
3471
  apiKey?: string;
1969
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DialogueResponse, "forbocApi", unknown>;
3472
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1970
3473
  postGhostRun: _reduxjs_toolkit_query.MutationDefinition<{
1971
3474
  request: {
1972
3475
  testSuite: string;
1973
3476
  duration: number;
1974
3477
  };
1975
3478
  apiUrl: string;
1976
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", GhostRunResponse, "forbocApi", unknown>;
3479
+ apiKey?: string;
3480
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", GhostRunResponse, "forbocApi", unknown>;
1977
3481
  getGhostStatus: _reduxjs_toolkit_query.QueryDefinition<{
1978
3482
  sessionId: string;
1979
3483
  apiUrl: string;
1980
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
3484
+ apiKey?: string;
3485
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1981
3486
  getGhostResults: _reduxjs_toolkit_query.QueryDefinition<{
1982
3487
  sessionId: string;
1983
3488
  apiUrl: string;
1984
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
3489
+ apiKey?: string;
3490
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
1985
3491
  postGhostStop: _reduxjs_toolkit_query.MutationDefinition<{
1986
3492
  sessionId: string;
1987
3493
  apiUrl: string;
1988
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
3494
+ apiKey?: string;
3495
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
1989
3496
  stopped: boolean;
3497
+ stopStatus?: string;
3498
+ stopSessionId?: string;
1990
3499
  }, "forbocApi", unknown>;
1991
3500
  getGhostHistory: _reduxjs_toolkit_query.QueryDefinition<{
1992
3501
  limit: number;
1993
3502
  apiUrl: string;
1994
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
3503
+ apiKey?: string;
3504
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
1995
3505
  sessions: any[];
1996
3506
  }, "forbocApi", unknown>;
1997
3507
  postSoulExport: _reduxjs_toolkit_query.MutationDefinition<{
1998
3508
  npcId: string;
1999
3509
  request: any;
2000
3510
  apiUrl: string;
2001
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SoulExportResponse, "forbocApi", unknown>;
3511
+ apiKey?: string;
3512
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulExportResponse, "forbocApi", unknown>;
2002
3513
  getSoulImport: _reduxjs_toolkit_query.QueryDefinition<{
2003
3514
  txId: string;
2004
3515
  apiUrl: string;
2005
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
3516
+ apiKey?: string;
3517
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
2006
3518
  getSouls: _reduxjs_toolkit_query.QueryDefinition<{
2007
3519
  limit: number;
2008
3520
  apiUrl: string;
2009
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SoulListResponse, "forbocApi", unknown>;
3521
+ apiKey?: string;
3522
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulListResponse, "forbocApi", unknown>;
2010
3523
  postBridgeValidate: _reduxjs_toolkit_query.MutationDefinition<{
2011
3524
  request: {
2012
3525
  action: NPCAction;
@@ -2014,27 +3527,62 @@ declare const store: _reduxjs_toolkit.EnhancedStore<{
2014
3527
  };
2015
3528
  npcId?: string;
2016
3529
  apiUrl: string;
2017
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ValidationResult, "forbocApi", unknown>;
3530
+ apiKey?: string;
3531
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ValidationResult, "forbocApi", unknown>;
2018
3532
  getBridgeRules: _reduxjs_toolkit_query.QueryDefinition<{
2019
3533
  apiUrl: string;
2020
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveRuleSet[], "forbocApi", unknown>;
3534
+ apiKey?: string;
3535
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", BridgeRule[], "forbocApi", unknown>;
2021
3536
  postBridgePreset: _reduxjs_toolkit_query.MutationDefinition<{
2022
3537
  presetName: string;
2023
3538
  apiUrl: string;
2024
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveRuleSet, "forbocApi", unknown>;
3539
+ apiKey?: string;
3540
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet, "forbocApi", unknown>;
3541
+ getRulesets: _reduxjs_toolkit_query.QueryDefinition<{
3542
+ apiUrl: string;
3543
+ apiKey?: string;
3544
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet[], "forbocApi", unknown>;
3545
+ getRulePresets: _reduxjs_toolkit_query.QueryDefinition<{
3546
+ apiUrl: string;
3547
+ apiKey?: string;
3548
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", string[], "forbocApi", unknown>;
3549
+ postRuleRegister: _reduxjs_toolkit_query.MutationDefinition<{
3550
+ request: DirectiveRuleSet;
3551
+ apiUrl: string;
3552
+ apiKey?: string;
3553
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet, "forbocApi", unknown>;
3554
+ deleteRule: _reduxjs_toolkit_query.MutationDefinition<{
3555
+ rulesetId: string;
3556
+ apiUrl: string;
3557
+ apiKey?: string;
3558
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
3559
+ deleted: boolean;
3560
+ }, "forbocApi", unknown>;
3561
+ postSoulVerify: _reduxjs_toolkit_query.MutationDefinition<{
3562
+ txId: string;
3563
+ apiUrl: string;
3564
+ apiKey?: string;
3565
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulVerifyResult, "forbocApi", unknown>;
3566
+ postNpcImport: _reduxjs_toolkit_query.MutationDefinition<{
3567
+ request: {
3568
+ txIdRef: string;
3569
+ };
3570
+ apiUrl: string;
3571
+ apiKey?: string;
3572
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ImportedNpc, "forbocApi", unknown>;
2025
3573
  postCortexComplete: _reduxjs_toolkit_query.MutationDefinition<{
2026
3574
  cortexId: string;
2027
3575
  prompt: string;
2028
3576
  options?: any;
2029
3577
  apiUrl: string;
2030
3578
  apiKey?: string;
2031
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
3579
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
2032
3580
  text: string;
2033
3581
  }, "forbocApi", unknown>;
2034
3582
  getApiStatus: _reduxjs_toolkit_query.QueryDefinition<{
2035
3583
  apiUrl: string;
2036
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ApiStatusResponse, "forbocApi", unknown>;
2037
- }, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", "forbocApi">;
3584
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ApiStatusResponse, "forbocApi", unknown>;
3585
+ }, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", "forbocApi">;
2038
3586
  npc: _reduxjs_toolkit.EntityState<NPCInternalState, string> & {
2039
3587
  activeNpcId: string;
2040
3588
  };
@@ -2045,6 +3593,9 @@ declare const store: _reduxjs_toolkit.EnhancedStore<{
2045
3593
  error: string | null;
2046
3594
  lastRecalledIds: string[];
2047
3595
  };
3596
+ directive: _reduxjs_toolkit.EntityState<DirectiveRun, string> & {
3597
+ activeDirectiveId: string;
3598
+ };
2048
3599
  ghost: GhostState;
2049
3600
  soul: SoulState;
2050
3601
  bridge: BridgeState;
@@ -2053,104 +3604,183 @@ declare const store: _reduxjs_toolkit.EnhancedStore<{
2053
3604
  declare const dispatch: ((action: redux.Action<"listenerMiddleware/add">) => _reduxjs_toolkit.UnsubscribeListener) & redux_thunk.ThunkDispatch<{
2054
3605
  [x: string]: /*elided*/ any;
2055
3606
  forbocApi: _reduxjs_toolkit_query.CombinedState<{
3607
+ getCortexModels: _reduxjs_toolkit_query.QueryDefinition<{
3608
+ apiUrl: string;
3609
+ apiKey?: string;
3610
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", CortexModelInfo[], "forbocApi", unknown>;
3611
+ postCortexInit: _reduxjs_toolkit_query.MutationDefinition<{
3612
+ request: {
3613
+ requestedModel: string;
3614
+ authKey?: string;
3615
+ };
3616
+ apiUrl: string;
3617
+ apiKey?: string;
3618
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", CortexInitResponse, "forbocApi", unknown>;
3619
+ postNpcProcess: _reduxjs_toolkit_query.MutationDefinition<{
3620
+ npcId: string;
3621
+ request: NPCProcessRequest;
3622
+ apiUrl: string;
3623
+ apiKey?: string;
3624
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", NPCProcessResponse, "forbocApi", unknown>;
2056
3625
  postDirective: _reduxjs_toolkit_query.MutationDefinition<{
2057
3626
  npcId: string;
2058
3627
  request: DirectiveRequest;
2059
3628
  apiUrl: string;
2060
3629
  apiKey?: string;
2061
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveResponse, "forbocApi", unknown>;
3630
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveResponse, "forbocApi", unknown>;
2062
3631
  postContext: _reduxjs_toolkit_query.MutationDefinition<{
2063
3632
  npcId: string;
2064
3633
  request: ContextRequest;
2065
3634
  apiUrl: string;
2066
3635
  apiKey?: string;
2067
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ContextResponse, "forbocApi", unknown>;
3636
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ContextResponse, "forbocApi", unknown>;
2068
3637
  postVerdict: _reduxjs_toolkit_query.MutationDefinition<{
2069
3638
  npcId: string;
2070
3639
  request: VerdictRequest;
2071
3640
  apiUrl: string;
2072
3641
  apiKey?: string;
2073
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", VerdictResponse, "forbocApi", unknown>;
2074
- postSpeak: _reduxjs_toolkit_query.MutationDefinition<{
3642
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", VerdictResponse, "forbocApi", unknown>;
3643
+ postMemoryStore: _reduxjs_toolkit_query.MutationDefinition<{
3644
+ npcId: string;
3645
+ request: {
3646
+ observation: string;
3647
+ importance?: number;
3648
+ };
3649
+ apiUrl: string;
3650
+ apiKey?: string;
3651
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
3652
+ getMemoryList: _reduxjs_toolkit_query.QueryDefinition<{
2075
3653
  npcId: string;
2076
- request: SpeakRequest;
2077
3654
  apiUrl: string;
2078
3655
  apiKey?: string;
2079
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SpeakResponse, "forbocApi", unknown>;
2080
- postDialogue: _reduxjs_toolkit_query.MutationDefinition<{
3656
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any[], "forbocApi", unknown>;
3657
+ postMemoryRecall: _reduxjs_toolkit_query.MutationDefinition<{
3658
+ npcId: string;
3659
+ request: {
3660
+ query: string;
3661
+ similarity?: number;
3662
+ };
3663
+ apiUrl: string;
3664
+ apiKey?: string;
3665
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any[], "forbocApi", unknown>;
3666
+ deleteMemoryClear: _reduxjs_toolkit_query.MutationDefinition<{
2081
3667
  npcId: string;
2082
- request: DialogueRequest;
2083
3668
  apiUrl: string;
2084
3669
  apiKey?: string;
2085
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DialogueResponse, "forbocApi", unknown>;
3670
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
2086
3671
  postGhostRun: _reduxjs_toolkit_query.MutationDefinition<{
2087
3672
  request: {
2088
3673
  testSuite: string;
2089
3674
  duration: number;
2090
3675
  };
2091
3676
  apiUrl: string;
2092
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", GhostRunResponse, "forbocApi", unknown>;
3677
+ apiKey?: string;
3678
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", GhostRunResponse, "forbocApi", unknown>;
2093
3679
  getGhostStatus: _reduxjs_toolkit_query.QueryDefinition<{
2094
3680
  sessionId: string;
2095
3681
  apiUrl: string;
2096
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
3682
+ apiKey?: string;
3683
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
2097
3684
  getGhostResults: _reduxjs_toolkit_query.QueryDefinition<{
2098
3685
  sessionId: string;
2099
3686
  apiUrl: string;
2100
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
3687
+ apiKey?: string;
3688
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
2101
3689
  postGhostStop: _reduxjs_toolkit_query.MutationDefinition<{
2102
3690
  sessionId: string;
2103
3691
  apiUrl: string;
2104
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
3692
+ apiKey?: string;
3693
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
2105
3694
  stopped: boolean;
3695
+ stopStatus?: string;
3696
+ stopSessionId?: string;
2106
3697
  }, "forbocApi", unknown>;
2107
3698
  getGhostHistory: _reduxjs_toolkit_query.QueryDefinition<{
2108
3699
  limit: number;
2109
3700
  apiUrl: string;
2110
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
3701
+ apiKey?: string;
3702
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
2111
3703
  sessions: any[];
2112
3704
  }, "forbocApi", unknown>;
2113
3705
  postSoulExport: _reduxjs_toolkit_query.MutationDefinition<{
2114
3706
  npcId: string;
2115
3707
  request: any;
2116
3708
  apiUrl: string;
2117
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SoulExportResponse, "forbocApi", unknown>;
3709
+ apiKey?: string;
3710
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulExportResponse, "forbocApi", unknown>;
2118
3711
  getSoulImport: _reduxjs_toolkit_query.QueryDefinition<{
2119
3712
  txId: string;
2120
3713
  apiUrl: string;
2121
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
3714
+ apiKey?: string;
3715
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
2122
3716
  getSouls: _reduxjs_toolkit_query.QueryDefinition<{
2123
3717
  limit: number;
2124
3718
  apiUrl: string;
2125
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SoulListResponse, "forbocApi", unknown>;
3719
+ apiKey?: string;
3720
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulListResponse, "forbocApi", unknown>;
2126
3721
  postBridgeValidate: _reduxjs_toolkit_query.MutationDefinition<{
2127
3722
  request: {
2128
- action: NPCAction;
2129
- context: ValidationContext;
3723
+ action: NPCAction;
3724
+ context: ValidationContext;
3725
+ };
3726
+ npcId?: string;
3727
+ apiUrl: string;
3728
+ apiKey?: string;
3729
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ValidationResult, "forbocApi", unknown>;
3730
+ getBridgeRules: _reduxjs_toolkit_query.QueryDefinition<{
3731
+ apiUrl: string;
3732
+ apiKey?: string;
3733
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", BridgeRule[], "forbocApi", unknown>;
3734
+ postBridgePreset: _reduxjs_toolkit_query.MutationDefinition<{
3735
+ presetName: string;
3736
+ apiUrl: string;
3737
+ apiKey?: string;
3738
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet, "forbocApi", unknown>;
3739
+ getRulesets: _reduxjs_toolkit_query.QueryDefinition<{
3740
+ apiUrl: string;
3741
+ apiKey?: string;
3742
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet[], "forbocApi", unknown>;
3743
+ getRulePresets: _reduxjs_toolkit_query.QueryDefinition<{
3744
+ apiUrl: string;
3745
+ apiKey?: string;
3746
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", string[], "forbocApi", unknown>;
3747
+ postRuleRegister: _reduxjs_toolkit_query.MutationDefinition<{
3748
+ request: DirectiveRuleSet;
3749
+ apiUrl: string;
3750
+ apiKey?: string;
3751
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet, "forbocApi", unknown>;
3752
+ deleteRule: _reduxjs_toolkit_query.MutationDefinition<{
3753
+ rulesetId: string;
3754
+ apiUrl: string;
3755
+ apiKey?: string;
3756
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
3757
+ deleted: boolean;
3758
+ }, "forbocApi", unknown>;
3759
+ postSoulVerify: _reduxjs_toolkit_query.MutationDefinition<{
3760
+ txId: string;
3761
+ apiUrl: string;
3762
+ apiKey?: string;
3763
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulVerifyResult, "forbocApi", unknown>;
3764
+ postNpcImport: _reduxjs_toolkit_query.MutationDefinition<{
3765
+ request: {
3766
+ txIdRef: string;
2130
3767
  };
2131
- npcId?: string;
2132
- apiUrl: string;
2133
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ValidationResult, "forbocApi", unknown>;
2134
- getBridgeRules: _reduxjs_toolkit_query.QueryDefinition<{
2135
- apiUrl: string;
2136
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveRuleSet[], "forbocApi", unknown>;
2137
- postBridgePreset: _reduxjs_toolkit_query.MutationDefinition<{
2138
- presetName: string;
2139
3768
  apiUrl: string;
2140
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveRuleSet, "forbocApi", unknown>;
3769
+ apiKey?: string;
3770
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ImportedNpc, "forbocApi", unknown>;
2141
3771
  postCortexComplete: _reduxjs_toolkit_query.MutationDefinition<{
2142
3772
  cortexId: string;
2143
3773
  prompt: string;
2144
3774
  options?: any;
2145
3775
  apiUrl: string;
2146
3776
  apiKey?: string;
2147
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
3777
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
2148
3778
  text: string;
2149
3779
  }, "forbocApi", unknown>;
2150
3780
  getApiStatus: _reduxjs_toolkit_query.QueryDefinition<{
2151
3781
  apiUrl: string;
2152
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ApiStatusResponse, "forbocApi", unknown>;
2153
- }, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", "forbocApi">;
3782
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ApiStatusResponse, "forbocApi", unknown>;
3783
+ }, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", "forbocApi">;
2154
3784
  npc: _reduxjs_toolkit.EntityState<NPCInternalState, string> & {
2155
3785
  activeNpcId: string;
2156
3786
  };
@@ -2161,6 +3791,9 @@ declare const dispatch: ((action: redux.Action<"listenerMiddleware/add">) => _re
2161
3791
  error: string | null;
2162
3792
  lastRecalledIds: string[];
2163
3793
  };
3794
+ directive: _reduxjs_toolkit.EntityState<DirectiveRun, string> & {
3795
+ activeDirectiveId: string;
3796
+ };
2164
3797
  ghost: GhostState;
2165
3798
  soul: SoulState;
2166
3799
  bridge: BridgeState;
@@ -2180,6 +3813,7 @@ interface SoulState {
2180
3813
  declare const remoteExportSoulThunk: _reduxjs_toolkit.AsyncThunk<SoulExportResult, {
2181
3814
  npcId?: string;
2182
3815
  apiUrl?: string;
3816
+ apiKey?: string;
2183
3817
  memories?: any[];
2184
3818
  }, {
2185
3819
  state: SDKState;
@@ -2194,6 +3828,7 @@ declare const remoteExportSoulThunk: _reduxjs_toolkit.AsyncThunk<SoulExportResul
2194
3828
  declare const importSoulFromArweaveThunk: _reduxjs_toolkit.AsyncThunk<Soul, {
2195
3829
  txId: string;
2196
3830
  apiUrl?: string;
3831
+ apiKey?: string;
2197
3832
  }, {
2198
3833
  rejectValue: string;
2199
3834
  extra?: unknown;
@@ -2207,6 +3842,35 @@ declare const importSoulFromArweaveThunk: _reduxjs_toolkit.AsyncThunk<Soul, {
2207
3842
  declare const getSoulListThunk: _reduxjs_toolkit.AsyncThunk<any[], {
2208
3843
  limit?: number;
2209
3844
  apiUrl?: string;
3845
+ apiKey?: string;
3846
+ }, {
3847
+ rejectValue: string;
3848
+ extra?: unknown;
3849
+ state?: unknown;
3850
+ dispatch?: redux_thunk.ThunkDispatch<unknown, unknown, redux.UnknownAction> | undefined;
3851
+ serializedErrorType?: unknown;
3852
+ pendingMeta?: unknown;
3853
+ fulfilledMeta?: unknown;
3854
+ rejectedMeta?: unknown;
3855
+ }>;
3856
+ declare const verifySoulThunk: _reduxjs_toolkit.AsyncThunk<SoulVerifyResult, {
3857
+ txId: string;
3858
+ apiUrl?: string;
3859
+ apiKey?: string;
3860
+ }, {
3861
+ rejectValue: string;
3862
+ extra?: unknown;
3863
+ state?: unknown;
3864
+ dispatch?: redux_thunk.ThunkDispatch<unknown, unknown, redux.UnknownAction> | undefined;
3865
+ serializedErrorType?: unknown;
3866
+ pendingMeta?: unknown;
3867
+ fulfilledMeta?: unknown;
3868
+ rejectedMeta?: unknown;
3869
+ }>;
3870
+ declare const importNpcFromSoulThunk: _reduxjs_toolkit.AsyncThunk<ImportedNpc, {
3871
+ txId: string;
3872
+ apiUrl?: string;
3873
+ apiKey?: string;
2210
3874
  }, {
2211
3875
  rejectValue: string;
2212
3876
  extra?: unknown;
@@ -2236,6 +3900,7 @@ declare const soulSlice: _reduxjs_toolkit.Slice<SoulState, {
2236
3900
  timestamp: number;
2237
3901
  type: string;
2238
3902
  importance: number;
3903
+ similarity?: number | undefined;
2239
3904
  }[];
2240
3905
  state: {
2241
3906
  [x: string]: unknown;
@@ -2255,6 +3920,7 @@ declare const soulSlice: _reduxjs_toolkit.Slice<SoulState, {
2255
3920
  timestamp: number;
2256
3921
  type: string;
2257
3922
  importance: number;
3923
+ similarity?: number | undefined;
2258
3924
  }[];
2259
3925
  state: {
2260
3926
  [x: string]: unknown;
@@ -2270,15 +3936,24 @@ declare const clearSoulState: _reduxjs_toolkit.ActionCreatorWithoutPayload<"soul
2270
3936
  /**
2271
3937
  * Consume an async token stream, calling `onChunk` for each token.
2272
3938
  * Useful for rendering typewriter effects in UI.
3939
+ * User Story: As presentation code, I need a helper that forwards each token to
3940
+ * a callback while hiding generator traversal details.
3941
+ * The stream is consumed fully before resolve.
2273
3942
  */
2274
3943
  declare const streamToCallback: (stream: AsyncGenerator<string, void, unknown>, onChunk: (chunk: string) => void) => Promise<void>;
2275
3944
  /**
2276
3945
  * Consume an async token stream and return the full accumulated string.
3946
+ * User Story: As non-streaming consumers, I need full-string reconstruction
3947
+ * from token generators for logs, assertions, and transcript storage.
3948
+ * Callback is intentionally a no-op in this path.
2277
3949
  */
2278
3950
  declare const streamToString: (stream: AsyncGenerator<string, void, unknown>) => Promise<string>;
2279
3951
  /**
2280
3952
  * Stream tokens from a cortex directly to a callback.
2281
3953
  * Convenience wrapper combining cortex.completeStream + streamToCallback.
3954
+ * User Story: As SDK integrations, I need one-call cortex streaming that wires
3955
+ * prompt/options into chunk callbacks and returns final text.
3956
+ * Keeps caller code focused on UI behavior.
2282
3957
  */
2283
3958
  declare const streamFromCortex: (cortex: ICortex, prompt: string, onChunk: (chunk: string) => void, options?: {
2284
3959
  temperature?: number;
@@ -2289,6 +3964,9 @@ declare const streamFromCortex: (cortex: ICortex, prompt: string, onChunk: (chun
2289
3964
  * Stream tokens from a cortex with a delay between tokens (for typewriter pacing).
2290
3965
  *
2291
3966
  * @param delayMs - Milliseconds to wait between tokens (default: 30ms)
3967
+ * User Story: As UX pacing logic, I need controlled inter-token delay during
3968
+ * streaming so typewriter-style output remains readable.
3969
+ * Completion options are passed through unchanged apart from delay extraction.
2292
3970
  */
2293
3971
  declare const streamFromCortexWithDelay: (cortex: ICortex, prompt: string, onChunk: (chunk: string) => void, options?: {
2294
3972
  temperature?: number;
@@ -2297,102 +3975,148 @@ declare const streamFromCortexWithDelay: (cortex: ICortex, prompt: string, onChu
2297
3975
  delayMs?: number;
2298
3976
  }) => Promise<string>;
2299
3977
 
3978
+ declare const SDK_VERSION = "0.6.1";
3979
+
2300
3980
  /**
2301
- * Pure Functional Utilities for ForbocAI SDK
2302
- */
2303
- declare const SDK_VERSION = "0.5.9";
2304
- /**
2305
- * Generate a unique ID for a new NPC.
3981
+ * User Story: As NPC creation flows, I need lightweight id generation that
3982
+ * produces prefixed identifiers suitable for local/session usage.
3983
+ * Timestamp-base keeps generation dependency-free.
2306
3984
  */
2307
3985
  declare const generateNPCId: () => string;
3986
+
2308
3987
  /**
2309
- * Delay execution for a specified number of milliseconds.
3988
+ * User Story: As async control flow, I need a tiny promise-based delay helper
3989
+ * to pace retries, streams, and deterministic test timing.
3990
+ * Wrapper keeps timeout intent explicit at call sites.
2310
3991
  */
2311
3992
  declare const delay: (ms: number) => Promise<void>;
2312
- /**
2313
- * Functional pipe for chaining functions.
2314
- */
3993
+
2315
3994
  declare const pipe: <T>(...fns: Array<(arg: T) => T>) => (initialValue: T) => T;
2316
- /**
2317
- * Closure-based memoization for async functions (single value cache).
2318
- */
3995
+
2319
3996
  declare const memoiseAsync: <T>(fn: () => Promise<T>) => () => Promise<T>;
2320
- /**
2321
- * Closure-based memoization for sync functions (single value cache).
2322
- */
3997
+
2323
3998
  declare const memoise: <T>(fn: () => T) => () => T;
2324
3999
 
2325
4000
  declare const sdkApi: _reduxjs_toolkit_query.Api<_reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, {
4001
+ getCortexModels: _reduxjs_toolkit_query.QueryDefinition<{
4002
+ apiUrl: string;
4003
+ apiKey?: string;
4004
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", CortexModelInfo[], "forbocApi", unknown>;
4005
+ postCortexInit: _reduxjs_toolkit_query.MutationDefinition<{
4006
+ request: {
4007
+ requestedModel: string;
4008
+ authKey?: string;
4009
+ };
4010
+ apiUrl: string;
4011
+ apiKey?: string;
4012
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", CortexInitResponse, "forbocApi", unknown>;
4013
+ /**
4014
+ * User Story: As the SDK protocol loop, I need a single process endpoint
4015
+ * that returns one atomic instruction per turn while echoing full tape state.
4016
+ * ᚹ one hop in, one hop out, like passing a lit shard through vacuum.
4017
+ */
4018
+ postNpcProcess: _reduxjs_toolkit_query.MutationDefinition<{
4019
+ npcId: string;
4020
+ request: NPCProcessRequest;
4021
+ apiUrl: string;
4022
+ apiKey?: string;
4023
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", NPCProcessResponse, "forbocApi", unknown>;
2326
4024
  postDirective: _reduxjs_toolkit_query.MutationDefinition<{
2327
4025
  npcId: string;
2328
4026
  request: DirectiveRequest;
2329
4027
  apiUrl: string;
2330
4028
  apiKey?: string;
2331
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveResponse, "forbocApi", unknown>;
4029
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveResponse, "forbocApi", unknown>;
2332
4030
  postContext: _reduxjs_toolkit_query.MutationDefinition<{
2333
4031
  npcId: string;
2334
4032
  request: ContextRequest;
2335
4033
  apiUrl: string;
2336
4034
  apiKey?: string;
2337
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ContextResponse, "forbocApi", unknown>;
4035
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ContextResponse, "forbocApi", unknown>;
2338
4036
  postVerdict: _reduxjs_toolkit_query.MutationDefinition<{
2339
4037
  npcId: string;
2340
4038
  request: VerdictRequest;
2341
4039
  apiUrl: string;
2342
4040
  apiKey?: string;
2343
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", VerdictResponse, "forbocApi", unknown>;
2344
- postSpeak: _reduxjs_toolkit_query.MutationDefinition<{
4041
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", VerdictResponse, "forbocApi", unknown>;
4042
+ postMemoryStore: _reduxjs_toolkit_query.MutationDefinition<{
4043
+ npcId: string;
4044
+ request: {
4045
+ observation: string;
4046
+ importance?: number;
4047
+ };
4048
+ apiUrl: string;
4049
+ apiKey?: string;
4050
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
4051
+ getMemoryList: _reduxjs_toolkit_query.QueryDefinition<{
4052
+ npcId: string;
4053
+ apiUrl: string;
4054
+ apiKey?: string;
4055
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any[], "forbocApi", unknown>;
4056
+ postMemoryRecall: _reduxjs_toolkit_query.MutationDefinition<{
2345
4057
  npcId: string;
2346
- request: SpeakRequest;
4058
+ request: {
4059
+ query: string;
4060
+ similarity?: number;
4061
+ };
2347
4062
  apiUrl: string;
2348
4063
  apiKey?: string;
2349
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SpeakResponse, "forbocApi", unknown>;
2350
- postDialogue: _reduxjs_toolkit_query.MutationDefinition<{
4064
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any[], "forbocApi", unknown>;
4065
+ deleteMemoryClear: _reduxjs_toolkit_query.MutationDefinition<{
2351
4066
  npcId: string;
2352
- request: DialogueRequest;
2353
4067
  apiUrl: string;
2354
4068
  apiKey?: string;
2355
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DialogueResponse, "forbocApi", unknown>;
4069
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
2356
4070
  postGhostRun: _reduxjs_toolkit_query.MutationDefinition<{
2357
4071
  request: {
2358
4072
  testSuite: string;
2359
4073
  duration: number;
2360
4074
  };
2361
4075
  apiUrl: string;
2362
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", GhostRunResponse, "forbocApi", unknown>;
4076
+ apiKey?: string;
4077
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", GhostRunResponse, "forbocApi", unknown>;
2363
4078
  getGhostStatus: _reduxjs_toolkit_query.QueryDefinition<{
2364
4079
  sessionId: string;
2365
4080
  apiUrl: string;
2366
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
4081
+ apiKey?: string;
4082
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
2367
4083
  getGhostResults: _reduxjs_toolkit_query.QueryDefinition<{
2368
4084
  sessionId: string;
2369
4085
  apiUrl: string;
2370
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
4086
+ apiKey?: string;
4087
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
2371
4088
  postGhostStop: _reduxjs_toolkit_query.MutationDefinition<{
2372
4089
  sessionId: string;
2373
4090
  apiUrl: string;
2374
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
4091
+ apiKey?: string;
4092
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
2375
4093
  stopped: boolean;
4094
+ stopStatus?: string;
4095
+ stopSessionId?: string;
2376
4096
  }, "forbocApi", unknown>;
2377
4097
  getGhostHistory: _reduxjs_toolkit_query.QueryDefinition<{
2378
4098
  limit: number;
2379
4099
  apiUrl: string;
2380
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
4100
+ apiKey?: string;
4101
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
2381
4102
  sessions: any[];
2382
4103
  }, "forbocApi", unknown>;
2383
4104
  postSoulExport: _reduxjs_toolkit_query.MutationDefinition<{
2384
4105
  npcId: string;
2385
4106
  request: any;
2386
4107
  apiUrl: string;
2387
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SoulExportResponse, "forbocApi", unknown>;
4108
+ apiKey?: string;
4109
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulExportResponse, "forbocApi", unknown>;
2388
4110
  getSoulImport: _reduxjs_toolkit_query.QueryDefinition<{
2389
4111
  txId: string;
2390
4112
  apiUrl: string;
2391
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
4113
+ apiKey?: string;
4114
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
2392
4115
  getSouls: _reduxjs_toolkit_query.QueryDefinition<{
2393
4116
  limit: number;
2394
4117
  apiUrl: string;
2395
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SoulListResponse, "forbocApi", unknown>;
4118
+ apiKey?: string;
4119
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulListResponse, "forbocApi", unknown>;
2396
4120
  postBridgeValidate: _reduxjs_toolkit_query.MutationDefinition<{
2397
4121
  request: {
2398
4122
  action: NPCAction;
@@ -2400,27 +4124,62 @@ declare const sdkApi: _reduxjs_toolkit_query.Api<_reduxjs_toolkit_query.BaseQuer
2400
4124
  };
2401
4125
  npcId?: string;
2402
4126
  apiUrl: string;
2403
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ValidationResult, "forbocApi", unknown>;
4127
+ apiKey?: string;
4128
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ValidationResult, "forbocApi", unknown>;
2404
4129
  getBridgeRules: _reduxjs_toolkit_query.QueryDefinition<{
2405
4130
  apiUrl: string;
2406
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveRuleSet[], "forbocApi", unknown>;
4131
+ apiKey?: string;
4132
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", BridgeRule[], "forbocApi", unknown>;
2407
4133
  postBridgePreset: _reduxjs_toolkit_query.MutationDefinition<{
2408
4134
  presetName: string;
2409
4135
  apiUrl: string;
2410
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveRuleSet, "forbocApi", unknown>;
4136
+ apiKey?: string;
4137
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet, "forbocApi", unknown>;
4138
+ getRulesets: _reduxjs_toolkit_query.QueryDefinition<{
4139
+ apiUrl: string;
4140
+ apiKey?: string;
4141
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet[], "forbocApi", unknown>;
4142
+ getRulePresets: _reduxjs_toolkit_query.QueryDefinition<{
4143
+ apiUrl: string;
4144
+ apiKey?: string;
4145
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", string[], "forbocApi", unknown>;
4146
+ postRuleRegister: _reduxjs_toolkit_query.MutationDefinition<{
4147
+ request: DirectiveRuleSet;
4148
+ apiUrl: string;
4149
+ apiKey?: string;
4150
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet, "forbocApi", unknown>;
4151
+ deleteRule: _reduxjs_toolkit_query.MutationDefinition<{
4152
+ rulesetId: string;
4153
+ apiUrl: string;
4154
+ apiKey?: string;
4155
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
4156
+ deleted: boolean;
4157
+ }, "forbocApi", unknown>;
4158
+ postSoulVerify: _reduxjs_toolkit_query.MutationDefinition<{
4159
+ txId: string;
4160
+ apiUrl: string;
4161
+ apiKey?: string;
4162
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulVerifyResult, "forbocApi", unknown>;
4163
+ postNpcImport: _reduxjs_toolkit_query.MutationDefinition<{
4164
+ request: {
4165
+ txIdRef: string;
4166
+ };
4167
+ apiUrl: string;
4168
+ apiKey?: string;
4169
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ImportedNpc, "forbocApi", unknown>;
2411
4170
  postCortexComplete: _reduxjs_toolkit_query.MutationDefinition<{
2412
4171
  cortexId: string;
2413
4172
  prompt: string;
2414
4173
  options?: any;
2415
4174
  apiUrl: string;
2416
4175
  apiKey?: string;
2417
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
4176
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
2418
4177
  text: string;
2419
4178
  }, "forbocApi", unknown>;
2420
4179
  getApiStatus: _reduxjs_toolkit_query.QueryDefinition<{
2421
4180
  apiUrl: string;
2422
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ApiStatusResponse, "forbocApi", unknown>;
2423
- }, "forbocApi", "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", typeof _reduxjs_toolkit_query.coreModuleName>;
4181
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ApiStatusResponse, "forbocApi", unknown>;
4182
+ }, "forbocApi", "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", typeof _reduxjs_toolkit_query.coreModuleName>;
2424
4183
 
2425
4184
  declare const memorySlice: _reduxjs_toolkit.Slice<_reduxjs_toolkit.EntityState<MemoryItem, string> & {
2426
4185
  storageStatus: "idle" | "storing" | "error";
@@ -2438,6 +4197,7 @@ declare const memorySlice: _reduxjs_toolkit.Slice<_reduxjs_toolkit.EntityState<M
2438
4197
  timestamp: number;
2439
4198
  type: string;
2440
4199
  importance: number;
4200
+ similarity?: number | undefined;
2441
4201
  };
2442
4202
  };
2443
4203
  storageStatus: "idle" | "storing" | "error";
@@ -2455,6 +4215,7 @@ declare const memorySlice: _reduxjs_toolkit.Slice<_reduxjs_toolkit.EntityState<M
2455
4215
  timestamp: number;
2456
4216
  type: string;
2457
4217
  importance: number;
4218
+ similarity?: number | undefined;
2458
4219
  };
2459
4220
  };
2460
4221
  storageStatus: "idle" | "storing" | "error";
@@ -2472,6 +4233,7 @@ declare const memorySlice: _reduxjs_toolkit.Slice<_reduxjs_toolkit.EntityState<M
2472
4233
  timestamp: number;
2473
4234
  type: string;
2474
4235
  importance: number;
4236
+ similarity?: number | undefined;
2475
4237
  };
2476
4238
  };
2477
4239
  storageStatus: "idle" | "storing" | "error";
@@ -2489,6 +4251,7 @@ declare const memorySlice: _reduxjs_toolkit.Slice<_reduxjs_toolkit.EntityState<M
2489
4251
  timestamp: number;
2490
4252
  type: string;
2491
4253
  importance: number;
4254
+ similarity?: number | undefined;
2492
4255
  };
2493
4256
  };
2494
4257
  storageStatus: "idle" | "storing" | "error";
@@ -2506,6 +4269,7 @@ declare const memorySlice: _reduxjs_toolkit.Slice<_reduxjs_toolkit.EntityState<M
2506
4269
  timestamp: number;
2507
4270
  type: string;
2508
4271
  importance: number;
4272
+ similarity?: number | undefined;
2509
4273
  };
2510
4274
  };
2511
4275
  storageStatus: "idle" | "storing" | "error";
@@ -2523,6 +4287,7 @@ declare const memorySlice: _reduxjs_toolkit.Slice<_reduxjs_toolkit.EntityState<M
2523
4287
  timestamp: number;
2524
4288
  type: string;
2525
4289
  importance: number;
4290
+ similarity?: number | undefined;
2526
4291
  };
2527
4292
  };
2528
4293
  storageStatus: "idle" | "storing" | "error";
@@ -2540,6 +4305,7 @@ declare const memorySlice: _reduxjs_toolkit.Slice<_reduxjs_toolkit.EntityState<M
2540
4305
  timestamp: number;
2541
4306
  type: string;
2542
4307
  importance: number;
4308
+ similarity?: number | undefined;
2543
4309
  };
2544
4310
  };
2545
4311
  storageStatus: "idle" | "storing" | "error";
@@ -2563,76 +4329,120 @@ declare const memoryClear: _reduxjs_toolkit.ActionCreatorWithoutPayload<"memory/
2563
4329
  declare const selectMemoryById: (state: {
2564
4330
  [x: string]: /*elided*/ any;
2565
4331
  forbocApi: _reduxjs_toolkit_query.CombinedState<{
4332
+ getCortexModels: _reduxjs_toolkit_query.QueryDefinition<{
4333
+ apiUrl: string;
4334
+ apiKey?: string;
4335
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", CortexModelInfo[], "forbocApi", unknown>;
4336
+ postCortexInit: _reduxjs_toolkit_query.MutationDefinition<{
4337
+ request: {
4338
+ requestedModel: string;
4339
+ authKey?: string;
4340
+ };
4341
+ apiUrl: string;
4342
+ apiKey?: string;
4343
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", CortexInitResponse, "forbocApi", unknown>;
4344
+ postNpcProcess: _reduxjs_toolkit_query.MutationDefinition<{
4345
+ npcId: string;
4346
+ request: NPCProcessRequest;
4347
+ apiUrl: string;
4348
+ apiKey?: string;
4349
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", NPCProcessResponse, "forbocApi", unknown>;
2566
4350
  postDirective: _reduxjs_toolkit_query.MutationDefinition<{
2567
4351
  npcId: string;
2568
4352
  request: DirectiveRequest;
2569
4353
  apiUrl: string;
2570
4354
  apiKey?: string;
2571
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveResponse, "forbocApi", unknown>;
4355
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveResponse, "forbocApi", unknown>;
2572
4356
  postContext: _reduxjs_toolkit_query.MutationDefinition<{
2573
4357
  npcId: string;
2574
4358
  request: ContextRequest;
2575
4359
  apiUrl: string;
2576
4360
  apiKey?: string;
2577
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ContextResponse, "forbocApi", unknown>;
4361
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ContextResponse, "forbocApi", unknown>;
2578
4362
  postVerdict: _reduxjs_toolkit_query.MutationDefinition<{
2579
4363
  npcId: string;
2580
4364
  request: VerdictRequest;
2581
4365
  apiUrl: string;
2582
4366
  apiKey?: string;
2583
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", VerdictResponse, "forbocApi", unknown>;
2584
- postSpeak: _reduxjs_toolkit_query.MutationDefinition<{
4367
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", VerdictResponse, "forbocApi", unknown>;
4368
+ postMemoryStore: _reduxjs_toolkit_query.MutationDefinition<{
4369
+ npcId: string;
4370
+ request: {
4371
+ observation: string;
4372
+ importance?: number;
4373
+ };
4374
+ apiUrl: string;
4375
+ apiKey?: string;
4376
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
4377
+ getMemoryList: _reduxjs_toolkit_query.QueryDefinition<{
2585
4378
  npcId: string;
2586
- request: SpeakRequest;
2587
4379
  apiUrl: string;
2588
4380
  apiKey?: string;
2589
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SpeakResponse, "forbocApi", unknown>;
2590
- postDialogue: _reduxjs_toolkit_query.MutationDefinition<{
4381
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any[], "forbocApi", unknown>;
4382
+ postMemoryRecall: _reduxjs_toolkit_query.MutationDefinition<{
4383
+ npcId: string;
4384
+ request: {
4385
+ query: string;
4386
+ similarity?: number;
4387
+ };
4388
+ apiUrl: string;
4389
+ apiKey?: string;
4390
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any[], "forbocApi", unknown>;
4391
+ deleteMemoryClear: _reduxjs_toolkit_query.MutationDefinition<{
2591
4392
  npcId: string;
2592
- request: DialogueRequest;
2593
4393
  apiUrl: string;
2594
4394
  apiKey?: string;
2595
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DialogueResponse, "forbocApi", unknown>;
4395
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
2596
4396
  postGhostRun: _reduxjs_toolkit_query.MutationDefinition<{
2597
4397
  request: {
2598
4398
  testSuite: string;
2599
4399
  duration: number;
2600
4400
  };
2601
4401
  apiUrl: string;
2602
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", GhostRunResponse, "forbocApi", unknown>;
4402
+ apiKey?: string;
4403
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", GhostRunResponse, "forbocApi", unknown>;
2603
4404
  getGhostStatus: _reduxjs_toolkit_query.QueryDefinition<{
2604
4405
  sessionId: string;
2605
4406
  apiUrl: string;
2606
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
4407
+ apiKey?: string;
4408
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
2607
4409
  getGhostResults: _reduxjs_toolkit_query.QueryDefinition<{
2608
4410
  sessionId: string;
2609
4411
  apiUrl: string;
2610
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
4412
+ apiKey?: string;
4413
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
2611
4414
  postGhostStop: _reduxjs_toolkit_query.MutationDefinition<{
2612
4415
  sessionId: string;
2613
4416
  apiUrl: string;
2614
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
4417
+ apiKey?: string;
4418
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
2615
4419
  stopped: boolean;
4420
+ stopStatus?: string;
4421
+ stopSessionId?: string;
2616
4422
  }, "forbocApi", unknown>;
2617
4423
  getGhostHistory: _reduxjs_toolkit_query.QueryDefinition<{
2618
4424
  limit: number;
2619
4425
  apiUrl: string;
2620
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
4426
+ apiKey?: string;
4427
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
2621
4428
  sessions: any[];
2622
4429
  }, "forbocApi", unknown>;
2623
4430
  postSoulExport: _reduxjs_toolkit_query.MutationDefinition<{
2624
4431
  npcId: string;
2625
4432
  request: any;
2626
4433
  apiUrl: string;
2627
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SoulExportResponse, "forbocApi", unknown>;
4434
+ apiKey?: string;
4435
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulExportResponse, "forbocApi", unknown>;
2628
4436
  getSoulImport: _reduxjs_toolkit_query.QueryDefinition<{
2629
4437
  txId: string;
2630
4438
  apiUrl: string;
2631
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
4439
+ apiKey?: string;
4440
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
2632
4441
  getSouls: _reduxjs_toolkit_query.QueryDefinition<{
2633
4442
  limit: number;
2634
4443
  apiUrl: string;
2635
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SoulListResponse, "forbocApi", unknown>;
4444
+ apiKey?: string;
4445
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulListResponse, "forbocApi", unknown>;
2636
4446
  postBridgeValidate: _reduxjs_toolkit_query.MutationDefinition<{
2637
4447
  request: {
2638
4448
  action: NPCAction;
@@ -2640,27 +4450,62 @@ declare const selectMemoryById: (state: {
2640
4450
  };
2641
4451
  npcId?: string;
2642
4452
  apiUrl: string;
2643
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ValidationResult, "forbocApi", unknown>;
4453
+ apiKey?: string;
4454
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ValidationResult, "forbocApi", unknown>;
2644
4455
  getBridgeRules: _reduxjs_toolkit_query.QueryDefinition<{
2645
4456
  apiUrl: string;
2646
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveRuleSet[], "forbocApi", unknown>;
4457
+ apiKey?: string;
4458
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", BridgeRule[], "forbocApi", unknown>;
2647
4459
  postBridgePreset: _reduxjs_toolkit_query.MutationDefinition<{
2648
4460
  presetName: string;
2649
4461
  apiUrl: string;
2650
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveRuleSet, "forbocApi", unknown>;
4462
+ apiKey?: string;
4463
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet, "forbocApi", unknown>;
4464
+ getRulesets: _reduxjs_toolkit_query.QueryDefinition<{
4465
+ apiUrl: string;
4466
+ apiKey?: string;
4467
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet[], "forbocApi", unknown>;
4468
+ getRulePresets: _reduxjs_toolkit_query.QueryDefinition<{
4469
+ apiUrl: string;
4470
+ apiKey?: string;
4471
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", string[], "forbocApi", unknown>;
4472
+ postRuleRegister: _reduxjs_toolkit_query.MutationDefinition<{
4473
+ request: DirectiveRuleSet;
4474
+ apiUrl: string;
4475
+ apiKey?: string;
4476
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet, "forbocApi", unknown>;
4477
+ deleteRule: _reduxjs_toolkit_query.MutationDefinition<{
4478
+ rulesetId: string;
4479
+ apiUrl: string;
4480
+ apiKey?: string;
4481
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
4482
+ deleted: boolean;
4483
+ }, "forbocApi", unknown>;
4484
+ postSoulVerify: _reduxjs_toolkit_query.MutationDefinition<{
4485
+ txId: string;
4486
+ apiUrl: string;
4487
+ apiKey?: string;
4488
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulVerifyResult, "forbocApi", unknown>;
4489
+ postNpcImport: _reduxjs_toolkit_query.MutationDefinition<{
4490
+ request: {
4491
+ txIdRef: string;
4492
+ };
4493
+ apiUrl: string;
4494
+ apiKey?: string;
4495
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ImportedNpc, "forbocApi", unknown>;
2651
4496
  postCortexComplete: _reduxjs_toolkit_query.MutationDefinition<{
2652
4497
  cortexId: string;
2653
4498
  prompt: string;
2654
4499
  options?: any;
2655
4500
  apiUrl: string;
2656
4501
  apiKey?: string;
2657
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
4502
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
2658
4503
  text: string;
2659
4504
  }, "forbocApi", unknown>;
2660
4505
  getApiStatus: _reduxjs_toolkit_query.QueryDefinition<{
2661
4506
  apiUrl: string;
2662
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ApiStatusResponse, "forbocApi", unknown>;
2663
- }, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", "forbocApi">;
4507
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ApiStatusResponse, "forbocApi", unknown>;
4508
+ }, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", "forbocApi">;
2664
4509
  npc: _reduxjs_toolkit.EntityState<NPCInternalState, string> & {
2665
4510
  activeNpcId: string;
2666
4511
  };
@@ -2671,6 +4516,9 @@ declare const selectMemoryById: (state: {
2671
4516
  error: string | null;
2672
4517
  lastRecalledIds: string[];
2673
4518
  };
4519
+ directive: _reduxjs_toolkit.EntityState<DirectiveRun, string> & {
4520
+ activeDirectiveId: string;
4521
+ };
2674
4522
  ghost: GhostState;
2675
4523
  soul: SoulState;
2676
4524
  bridge: BridgeState;
@@ -2681,80 +4529,125 @@ declare const selectMemoryById: (state: {
2681
4529
  timestamp: number;
2682
4530
  type: string;
2683
4531
  importance: number;
4532
+ similarity?: number | undefined;
2684
4533
  };
2685
4534
  declare const selectAllMemories: (state: {
2686
4535
  [x: string]: /*elided*/ any;
2687
4536
  forbocApi: _reduxjs_toolkit_query.CombinedState<{
4537
+ getCortexModels: _reduxjs_toolkit_query.QueryDefinition<{
4538
+ apiUrl: string;
4539
+ apiKey?: string;
4540
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", CortexModelInfo[], "forbocApi", unknown>;
4541
+ postCortexInit: _reduxjs_toolkit_query.MutationDefinition<{
4542
+ request: {
4543
+ requestedModel: string;
4544
+ authKey?: string;
4545
+ };
4546
+ apiUrl: string;
4547
+ apiKey?: string;
4548
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", CortexInitResponse, "forbocApi", unknown>;
4549
+ postNpcProcess: _reduxjs_toolkit_query.MutationDefinition<{
4550
+ npcId: string;
4551
+ request: NPCProcessRequest;
4552
+ apiUrl: string;
4553
+ apiKey?: string;
4554
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", NPCProcessResponse, "forbocApi", unknown>;
2688
4555
  postDirective: _reduxjs_toolkit_query.MutationDefinition<{
2689
4556
  npcId: string;
2690
4557
  request: DirectiveRequest;
2691
4558
  apiUrl: string;
2692
4559
  apiKey?: string;
2693
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveResponse, "forbocApi", unknown>;
4560
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveResponse, "forbocApi", unknown>;
2694
4561
  postContext: _reduxjs_toolkit_query.MutationDefinition<{
2695
4562
  npcId: string;
2696
4563
  request: ContextRequest;
2697
4564
  apiUrl: string;
2698
4565
  apiKey?: string;
2699
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ContextResponse, "forbocApi", unknown>;
4566
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ContextResponse, "forbocApi", unknown>;
2700
4567
  postVerdict: _reduxjs_toolkit_query.MutationDefinition<{
2701
4568
  npcId: string;
2702
4569
  request: VerdictRequest;
2703
4570
  apiUrl: string;
2704
4571
  apiKey?: string;
2705
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", VerdictResponse, "forbocApi", unknown>;
2706
- postSpeak: _reduxjs_toolkit_query.MutationDefinition<{
4572
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", VerdictResponse, "forbocApi", unknown>;
4573
+ postMemoryStore: _reduxjs_toolkit_query.MutationDefinition<{
4574
+ npcId: string;
4575
+ request: {
4576
+ observation: string;
4577
+ importance?: number;
4578
+ };
4579
+ apiUrl: string;
4580
+ apiKey?: string;
4581
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
4582
+ getMemoryList: _reduxjs_toolkit_query.QueryDefinition<{
2707
4583
  npcId: string;
2708
- request: SpeakRequest;
2709
4584
  apiUrl: string;
2710
4585
  apiKey?: string;
2711
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SpeakResponse, "forbocApi", unknown>;
2712
- postDialogue: _reduxjs_toolkit_query.MutationDefinition<{
4586
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any[], "forbocApi", unknown>;
4587
+ postMemoryRecall: _reduxjs_toolkit_query.MutationDefinition<{
4588
+ npcId: string;
4589
+ request: {
4590
+ query: string;
4591
+ similarity?: number;
4592
+ };
4593
+ apiUrl: string;
4594
+ apiKey?: string;
4595
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any[], "forbocApi", unknown>;
4596
+ deleteMemoryClear: _reduxjs_toolkit_query.MutationDefinition<{
2713
4597
  npcId: string;
2714
- request: DialogueRequest;
2715
4598
  apiUrl: string;
2716
4599
  apiKey?: string;
2717
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DialogueResponse, "forbocApi", unknown>;
4600
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
2718
4601
  postGhostRun: _reduxjs_toolkit_query.MutationDefinition<{
2719
4602
  request: {
2720
4603
  testSuite: string;
2721
4604
  duration: number;
2722
4605
  };
2723
4606
  apiUrl: string;
2724
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", GhostRunResponse, "forbocApi", unknown>;
4607
+ apiKey?: string;
4608
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", GhostRunResponse, "forbocApi", unknown>;
2725
4609
  getGhostStatus: _reduxjs_toolkit_query.QueryDefinition<{
2726
4610
  sessionId: string;
2727
4611
  apiUrl: string;
2728
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
4612
+ apiKey?: string;
4613
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
2729
4614
  getGhostResults: _reduxjs_toolkit_query.QueryDefinition<{
2730
4615
  sessionId: string;
2731
4616
  apiUrl: string;
2732
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
4617
+ apiKey?: string;
4618
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
2733
4619
  postGhostStop: _reduxjs_toolkit_query.MutationDefinition<{
2734
4620
  sessionId: string;
2735
4621
  apiUrl: string;
2736
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
4622
+ apiKey?: string;
4623
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
2737
4624
  stopped: boolean;
4625
+ stopStatus?: string;
4626
+ stopSessionId?: string;
2738
4627
  }, "forbocApi", unknown>;
2739
4628
  getGhostHistory: _reduxjs_toolkit_query.QueryDefinition<{
2740
4629
  limit: number;
2741
4630
  apiUrl: string;
2742
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
4631
+ apiKey?: string;
4632
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
2743
4633
  sessions: any[];
2744
4634
  }, "forbocApi", unknown>;
2745
4635
  postSoulExport: _reduxjs_toolkit_query.MutationDefinition<{
2746
4636
  npcId: string;
2747
4637
  request: any;
2748
4638
  apiUrl: string;
2749
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SoulExportResponse, "forbocApi", unknown>;
4639
+ apiKey?: string;
4640
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulExportResponse, "forbocApi", unknown>;
2750
4641
  getSoulImport: _reduxjs_toolkit_query.QueryDefinition<{
2751
4642
  txId: string;
2752
4643
  apiUrl: string;
2753
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", any, "forbocApi", unknown>;
4644
+ apiKey?: string;
4645
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", any, "forbocApi", unknown>;
2754
4646
  getSouls: _reduxjs_toolkit_query.QueryDefinition<{
2755
4647
  limit: number;
2756
4648
  apiUrl: string;
2757
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", SoulListResponse, "forbocApi", unknown>;
4649
+ apiKey?: string;
4650
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulListResponse, "forbocApi", unknown>;
2758
4651
  postBridgeValidate: _reduxjs_toolkit_query.MutationDefinition<{
2759
4652
  request: {
2760
4653
  action: NPCAction;
@@ -2762,27 +4655,62 @@ declare const selectAllMemories: (state: {
2762
4655
  };
2763
4656
  npcId?: string;
2764
4657
  apiUrl: string;
2765
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ValidationResult, "forbocApi", unknown>;
4658
+ apiKey?: string;
4659
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ValidationResult, "forbocApi", unknown>;
2766
4660
  getBridgeRules: _reduxjs_toolkit_query.QueryDefinition<{
2767
4661
  apiUrl: string;
2768
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveRuleSet[], "forbocApi", unknown>;
4662
+ apiKey?: string;
4663
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", BridgeRule[], "forbocApi", unknown>;
2769
4664
  postBridgePreset: _reduxjs_toolkit_query.MutationDefinition<{
2770
4665
  presetName: string;
2771
4666
  apiUrl: string;
2772
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", DirectiveRuleSet, "forbocApi", unknown>;
4667
+ apiKey?: string;
4668
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet, "forbocApi", unknown>;
4669
+ getRulesets: _reduxjs_toolkit_query.QueryDefinition<{
4670
+ apiUrl: string;
4671
+ apiKey?: string;
4672
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet[], "forbocApi", unknown>;
4673
+ getRulePresets: _reduxjs_toolkit_query.QueryDefinition<{
4674
+ apiUrl: string;
4675
+ apiKey?: string;
4676
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", string[], "forbocApi", unknown>;
4677
+ postRuleRegister: _reduxjs_toolkit_query.MutationDefinition<{
4678
+ request: DirectiveRuleSet;
4679
+ apiUrl: string;
4680
+ apiKey?: string;
4681
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", DirectiveRuleSet, "forbocApi", unknown>;
4682
+ deleteRule: _reduxjs_toolkit_query.MutationDefinition<{
4683
+ rulesetId: string;
4684
+ apiUrl: string;
4685
+ apiKey?: string;
4686
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
4687
+ deleted: boolean;
4688
+ }, "forbocApi", unknown>;
4689
+ postSoulVerify: _reduxjs_toolkit_query.MutationDefinition<{
4690
+ txId: string;
4691
+ apiUrl: string;
4692
+ apiKey?: string;
4693
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", SoulVerifyResult, "forbocApi", unknown>;
4694
+ postNpcImport: _reduxjs_toolkit_query.MutationDefinition<{
4695
+ request: {
4696
+ txIdRef: string;
4697
+ };
4698
+ apiUrl: string;
4699
+ apiKey?: string;
4700
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ImportedNpc, "forbocApi", unknown>;
2773
4701
  postCortexComplete: _reduxjs_toolkit_query.MutationDefinition<{
2774
4702
  cortexId: string;
2775
4703
  prompt: string;
2776
4704
  options?: any;
2777
4705
  apiUrl: string;
2778
4706
  apiKey?: string;
2779
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", {
4707
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", {
2780
4708
  text: string;
2781
4709
  }, "forbocApi", unknown>;
2782
4710
  getApiStatus: _reduxjs_toolkit_query.QueryDefinition<{
2783
4711
  apiUrl: string;
2784
- }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", ApiStatusResponse, "forbocApi", unknown>;
2785
- }, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge", "forbocApi">;
4712
+ }, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", ApiStatusResponse, "forbocApi", unknown>;
4713
+ }, "NPC" | "Memory" | "Cortex" | "Ghost" | "Soul" | "Bridge" | "Rule", "forbocApi">;
2786
4714
  npc: _reduxjs_toolkit.EntityState<NPCInternalState, string> & {
2787
4715
  activeNpcId: string;
2788
4716
  };
@@ -2793,10 +4721,18 @@ declare const selectAllMemories: (state: {
2793
4721
  error: string | null;
2794
4722
  lastRecalledIds: string[];
2795
4723
  };
4724
+ directive: _reduxjs_toolkit.EntityState<DirectiveRun, string> & {
4725
+ activeDirectiveId: string;
4726
+ };
2796
4727
  ghost: GhostState;
2797
4728
  soul: SoulState;
2798
4729
  bridge: BridgeState;
2799
4730
  }) => MemoryItem[];
4731
+ /**
4732
+ * User Story: As recall-result consumers, I need a selector that resolves the
4733
+ * last recalled memory ids into entities for immediate post-recall rendering.
4734
+ * Missing entities are filtered out to keep callers null-safe.
4735
+ */
2800
4736
  declare const selectLastRecalledMemories: (state: SDKState) => MemoryItem[];
2801
4737
 
2802
4738
  interface ProcessArgs {
@@ -2810,6 +4746,19 @@ interface ProcessArgs {
2810
4746
  persona?: string;
2811
4747
  }
2812
4748
  declare const processNPC: _reduxjs_toolkit.AsyncThunk<AgentResponse, ProcessArgs, {
4749
+ state: SDKState;
4750
+ dispatch: SDKDispatch;
4751
+ rejectValue: string;
4752
+ extra?: unknown;
4753
+ serializedErrorType?: unknown;
4754
+ pendingMeta?: unknown;
4755
+ fulfilledMeta?: unknown;
4756
+ rejectedMeta?: unknown;
4757
+ }>;
4758
+ declare const localExportSoulThunk: _reduxjs_toolkit.AsyncThunk<Soul, {
4759
+ id?: string;
4760
+ memory?: IMemory | null;
4761
+ }, {
2813
4762
  state: SDKState;
2814
4763
  dispatch: SDKDispatch;
2815
4764
  extra?: unknown;
@@ -2819,50 +4768,76 @@ declare const processNPC: _reduxjs_toolkit.AsyncThunk<AgentResponse, ProcessArgs
2819
4768
  fulfilledMeta?: unknown;
2820
4769
  rejectedMeta?: unknown;
2821
4770
  }>;
2822
- declare const speakNPC: _reduxjs_toolkit.AsyncThunk<string, {
2823
- npcId?: string;
2824
- text: string;
2825
- context?: Record<string, unknown>;
4771
+ declare const checkApiStatusThunk: _reduxjs_toolkit.AsyncThunk<ApiStatusResponse, {
4772
+ apiUrl: string;
4773
+ }, {
4774
+ dispatch: SDKDispatch;
4775
+ rejectValue: string;
4776
+ extra?: unknown;
4777
+ state?: unknown;
4778
+ serializedErrorType?: unknown;
4779
+ pendingMeta?: unknown;
4780
+ fulfilledMeta?: unknown;
4781
+ rejectedMeta?: unknown;
4782
+ }>;
4783
+ declare const listMemoryRemoteThunk: _reduxjs_toolkit.AsyncThunk<any[], {
4784
+ npcId: string;
2826
4785
  apiUrl: string;
2827
4786
  apiKey?: string;
2828
4787
  }, {
2829
- state: SDKState;
2830
4788
  dispatch: SDKDispatch;
4789
+ rejectValue: string;
2831
4790
  extra?: unknown;
2832
- rejectValue?: unknown;
4791
+ state?: unknown;
2833
4792
  serializedErrorType?: unknown;
2834
4793
  pendingMeta?: unknown;
2835
4794
  fulfilledMeta?: unknown;
2836
4795
  rejectedMeta?: unknown;
2837
4796
  }>;
2838
- declare const dialogueNPC: _reduxjs_toolkit.AsyncThunk<string, {
2839
- npcId?: string;
2840
- text: string;
2841
- context?: Array<[string, string]>;
4797
+ declare const recallMemoryRemoteThunk: _reduxjs_toolkit.AsyncThunk<any[], {
4798
+ npcId: string;
4799
+ query: string;
2842
4800
  apiUrl: string;
2843
4801
  apiKey?: string;
2844
4802
  }, {
2845
- state: SDKState;
2846
4803
  dispatch: SDKDispatch;
4804
+ rejectValue: string;
2847
4805
  extra?: unknown;
2848
- rejectValue?: unknown;
4806
+ state?: unknown;
2849
4807
  serializedErrorType?: unknown;
2850
4808
  pendingMeta?: unknown;
2851
4809
  fulfilledMeta?: unknown;
2852
4810
  rejectedMeta?: unknown;
2853
4811
  }>;
2854
- declare const localExportSoulThunk: _reduxjs_toolkit.AsyncThunk<Soul, {
2855
- id?: string;
2856
- memory?: IMemory | null;
4812
+ declare const storeMemoryRemoteThunk: _reduxjs_toolkit.AsyncThunk<any, {
4813
+ npcId: string;
4814
+ observation: string;
4815
+ importance?: number;
4816
+ apiUrl: string;
4817
+ apiKey?: string;
2857
4818
  }, {
2858
- state: SDKState;
2859
4819
  dispatch: SDKDispatch;
4820
+ rejectValue: string;
2860
4821
  extra?: unknown;
2861
- rejectValue?: unknown;
4822
+ state?: unknown;
4823
+ serializedErrorType?: unknown;
4824
+ pendingMeta?: unknown;
4825
+ fulfilledMeta?: unknown;
4826
+ rejectedMeta?: unknown;
4827
+ }>;
4828
+ declare const clearMemoryRemoteThunk: _reduxjs_toolkit.AsyncThunk<any, {
4829
+ npcId: string;
4830
+ apiUrl: string;
4831
+ apiKey?: string;
4832
+ }, {
4833
+ dispatch: SDKDispatch;
4834
+ rejectValue: string;
4835
+ extra?: unknown;
4836
+ state?: unknown;
2862
4837
  serializedErrorType?: unknown;
2863
4838
  pendingMeta?: unknown;
2864
4839
  fulfilledMeta?: unknown;
2865
4840
  rejectedMeta?: unknown;
2866
4841
  }>;
2867
4842
 
2868
- export { type AgentConfig, type AgentResponse, type ApiStatusResponse, type BridgeRule, type BridgeState, type CompletionOptions, type ContextRequest, type ContextResponse, type CortexConfig, type CortexInternalState, type CortexStatus, type DialogueRequest, type DialogueResponse, type DirectiveRequest, type DirectiveResponse, type DirectiveRuleSet, type GhostConfig, type GhostHistoryEntry, type GhostResults, type GhostRunResponse, type GhostState, type GhostStatus, type ICortex, type IMemory, type INPC, type MemoryItem, type MemoryRecallInstruction, type MemoryStoreInstruction, type NPCAction, type NPCInternalState, type NPCState, type PromptConstraints, type RecalledMemory, type SDKDispatch, type SDKState, type SDKStore, SDK_VERSION, type Soul, type SoulConfig, type SoulExportResponse, type SoulExportResult, type SoulListResponse, type SoulState, type SpeakRequest, type SpeakResponse, type ValidationContext, type ValidationResult, type ValidationRule, type VerdictRequest, type VerdictResponse, addToHistory, blockAction, bridgeSlice, clearBlock, clearBridgeValidation, clearGhostSession, clearSoulState, completeRemoteThunk, cortexInitFailed, cortexInitStart, cortexInitSuccess, cortexSlice, createInitialState, createSDKStore, delay, dialogueNPC, dispatch, exportToSoul, generateNPCId, getBridgeRulesThunk, getGhostHistoryThunk, getGhostResultsThunk, getGhostStatusThunk, getSoulListThunk, ghostSlice, importSoulFromArweaveThunk, initRemoteCortexThunk, loadBridgePresetThunk, localExportSoulThunk, memoise, memoiseAsync, memoryClear, memoryRecallFailed, memoryRecallStart, memoryRecallSuccess, memorySlice, memoryStoreFailed, memoryStoreStart, memoryStoreSuccess, npcSlice, pipe, processNPC, remoteExportSoulThunk, removeNPC, sdkApi, selectActiveNPC, selectActiveNpcId, selectAllMemories, selectAllNPCs, selectLastRecalledMemories, selectMemoryById, selectNPCById, selectNPCEntities, selectNPCIds, selectTotalNPCs, setActiveNPC, setCortexStatus, setHistory, setLastAction, setNPCInfo, setNPCState, soulSlice, speakNPC, startGhostThunk, stopGhostThunk, store, streamFromCortex, streamFromCortexWithDelay, streamToCallback, streamToString, updateNPCState, updateNPCStateLocally, validateBridgeThunk };
4843
+ export { type AgentConfig, type AgentResponse, type ApiStatusResponse, type BridgeRule, type BridgeState, type CompletionOptions, type ContextRequest, type ContextResponse, type CortexConfig, type CortexInitResponse, type CortexInternalState, type CortexModelInfo, type CortexStatus, type DirectiveRequest, type DirectiveResponse, type DirectiveRuleSet, type DirectiveRun, type ExecuteInferenceInstruction, type FinalizeInstruction, type GhostConfig, type GhostHistoryEntry, type GhostResults, type GhostRunResponse, type GhostState, type GhostStatus, type ICortex, type IMemory, type INPC, type IdentifyActorInstruction, type ImportedNpc, type MemoryItem, type MemoryRecallInstruction, type MemoryStoreInstruction, type NPCAction, type NPCInstruction, type NPCInternalState, type NPCProcessRequest, type NPCProcessResponse, type NPCState, type ProcessTape, type PromptConstraints, type QueryVectorInstruction, type RecalledMemory, type SDKDispatch, type SDKState, type SDKStore, SDK_VERSION, type Soul, type SoulConfig, type SoulExportResponse, type SoulExportResult, type SoulListResponse, type SoulState, type SoulVerifyResult, type ValidationContext, type ValidationResult, type ValidationRule, type VerdictRequest, type VerdictResponse, addToHistory, blockAction, bridgeSlice, checkApiStatusThunk, clearBlock, clearBridgeValidation, clearDirectivesForNpc, clearGhostSession, clearMemoryRemoteThunk, clearSoulState, completeRemoteThunk, contextComposed, cortexInitFailed, cortexInitStart, cortexInitSuccess, cortexSlice, createInitialState, createSDKStore, delay, deleteRulesetThunk, directiveReceived, directiveRunFailed, directiveRunStarted, directiveSlice, dispatch, exportToSoul, generateNPCId, getBridgeRulesThunk, getGhostHistoryThunk, getGhostResultsThunk, getGhostStatusThunk, getSoulListThunk, ghostSlice, importNpcFromSoulThunk, importSoulFromArweaveThunk, initRemoteCortexThunk, listCortexModelsThunk, listMemoryRemoteThunk, listRulePresetsThunk, listRulesetsThunk, loadBridgePresetThunk, localExportSoulThunk, memoise, memoiseAsync, memoryClear, memoryRecallFailed, memoryRecallStart, memoryRecallSuccess, memorySlice, memoryStoreFailed, memoryStoreStart, memoryStoreSuccess, npcSlice, pipe, processNPC, recallMemoryRemoteThunk, registerRulesetThunk, remoteExportSoulThunk, removeNPC, sdkApi, selectActiveDirective, selectActiveDirectiveId, selectActiveNPC, selectActiveNpcId, selectAllDirectives, selectAllMemories, selectAllNPCs, selectDirectiveById, selectLastRecalledMemories, selectMemoryById, selectNPCById, selectNPCEntities, selectNPCIds, selectTotalNPCs, setActiveNPC, setCortexStatus, setHistory, setLastAction, setNPCInfo, setNPCState, soulSlice, startGhostThunk, stopGhostThunk, store, storeMemoryRemoteThunk, streamFromCortex, streamFromCortexWithDelay, streamToCallback, streamToString, updateNPCState, updateNPCStateLocally, validateBridgeThunk, verdictValidated, verifySoulThunk };