@electric-ax/agents-server-conformance-tests 0.1.6 → 0.1.8
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.cjs +148 -116
- package/dist/index.d.cts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +148 -116
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -49,7 +49,7 @@ declare function runMockAgentCliTests(config: MockAgentCliTestOptions): void; //
|
|
|
49
49
|
* .respondDone()
|
|
50
50
|
* .expectStatus('running')
|
|
51
51
|
* .kill()
|
|
52
|
-
* .expectStatus('
|
|
52
|
+
* .expectStatus('killed')
|
|
53
53
|
* .run()
|
|
54
54
|
*/
|
|
55
55
|
type HistoryEvent = {
|
|
@@ -192,8 +192,6 @@ interface EntityTypeRegistration {
|
|
|
192
192
|
name: string;
|
|
193
193
|
description: string;
|
|
194
194
|
creation_schema?: Record<string, unknown>;
|
|
195
|
-
input_schemas?: Record<string, Record<string, unknown>>;
|
|
196
|
-
output_schemas?: Record<string, Record<string, unknown>>;
|
|
197
195
|
inbox_schemas?: Record<string, Record<string, unknown>>;
|
|
198
196
|
state_schemas?: Record<string, Record<string, unknown>>;
|
|
199
197
|
metadata_schema?: Record<string, unknown>;
|
|
@@ -342,8 +340,8 @@ declare class ElectricAgentsScenario {
|
|
|
342
340
|
deleteType(name: string): this;
|
|
343
341
|
expectTypeNotExists(name: string): this;
|
|
344
342
|
amendSchemas(name: string, schemas: {
|
|
345
|
-
|
|
346
|
-
|
|
343
|
+
inbox_schemas?: Record<string, Record<string, unknown>>;
|
|
344
|
+
state_schemas?: Record<string, Record<string, unknown>>;
|
|
347
345
|
}): this;
|
|
348
346
|
listTypes(): this;
|
|
349
347
|
registerTypeViaServe(registration: EntityTypeRegistration): this;
|
|
@@ -400,8 +398,8 @@ type ElectricAgentsAction = `register_type` | `delete_type` | `spawn` | `send` |
|
|
|
400
398
|
interface EntityTypeModel {
|
|
401
399
|
name: string;
|
|
402
400
|
hasCreationSchema: boolean;
|
|
403
|
-
|
|
404
|
-
|
|
401
|
+
hasInboxSchemas: boolean;
|
|
402
|
+
hasStateSchemas: boolean;
|
|
405
403
|
}
|
|
406
404
|
/**
|
|
407
405
|
* Model of a single entity's state — the "abstract" version
|
|
@@ -410,7 +408,7 @@ interface EntityTypeModel {
|
|
|
410
408
|
interface EntityModel {
|
|
411
409
|
url: string;
|
|
412
410
|
typeName: string;
|
|
413
|
-
status: `running` | `
|
|
411
|
+
status: `running` | `killed`;
|
|
414
412
|
messageCount: number;
|
|
415
413
|
}
|
|
416
414
|
/**
|
|
@@ -438,7 +436,9 @@ declare function enabledElectricAgentsActions(model: ElectricAgentsWorldModel):
|
|
|
438
436
|
* Next relation — pure state transition for the model.
|
|
439
437
|
* The real server execution happens separately in the property test.
|
|
440
438
|
*/
|
|
441
|
-
declare function applyElectricAgentsAction(model: ElectricAgentsWorldModel, action: ElectricAgentsAction, targetIdx?: number
|
|
439
|
+
declare function applyElectricAgentsAction(model: ElectricAgentsWorldModel, action: ElectricAgentsAction, targetIdx?: number, opts?: {
|
|
440
|
+
typeName?: string;
|
|
441
|
+
}): ElectricAgentsWorldModel;
|
|
442
442
|
declare function electricAgents(baseUrl: string): ElectricAgentsScenario;
|
|
443
443
|
declare function checkStateProtocolInvariants(events: Array<Record<string, unknown>>): void; //#endregion
|
|
444
444
|
//#region src/cli-dsl.d.ts
|
package/dist/index.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ declare function runMockAgentCliTests(config: MockAgentCliTestOptions): void; //
|
|
|
49
49
|
* .respondDone()
|
|
50
50
|
* .expectStatus('running')
|
|
51
51
|
* .kill()
|
|
52
|
-
* .expectStatus('
|
|
52
|
+
* .expectStatus('killed')
|
|
53
53
|
* .run()
|
|
54
54
|
*/
|
|
55
55
|
type HistoryEvent = {
|
|
@@ -192,8 +192,6 @@ interface EntityTypeRegistration {
|
|
|
192
192
|
name: string;
|
|
193
193
|
description: string;
|
|
194
194
|
creation_schema?: Record<string, unknown>;
|
|
195
|
-
input_schemas?: Record<string, Record<string, unknown>>;
|
|
196
|
-
output_schemas?: Record<string, Record<string, unknown>>;
|
|
197
195
|
inbox_schemas?: Record<string, Record<string, unknown>>;
|
|
198
196
|
state_schemas?: Record<string, Record<string, unknown>>;
|
|
199
197
|
metadata_schema?: Record<string, unknown>;
|
|
@@ -342,8 +340,8 @@ declare class ElectricAgentsScenario {
|
|
|
342
340
|
deleteType(name: string): this;
|
|
343
341
|
expectTypeNotExists(name: string): this;
|
|
344
342
|
amendSchemas(name: string, schemas: {
|
|
345
|
-
|
|
346
|
-
|
|
343
|
+
inbox_schemas?: Record<string, Record<string, unknown>>;
|
|
344
|
+
state_schemas?: Record<string, Record<string, unknown>>;
|
|
347
345
|
}): this;
|
|
348
346
|
listTypes(): this;
|
|
349
347
|
registerTypeViaServe(registration: EntityTypeRegistration): this;
|
|
@@ -400,8 +398,8 @@ type ElectricAgentsAction = `register_type` | `delete_type` | `spawn` | `send` |
|
|
|
400
398
|
interface EntityTypeModel {
|
|
401
399
|
name: string;
|
|
402
400
|
hasCreationSchema: boolean;
|
|
403
|
-
|
|
404
|
-
|
|
401
|
+
hasInboxSchemas: boolean;
|
|
402
|
+
hasStateSchemas: boolean;
|
|
405
403
|
}
|
|
406
404
|
/**
|
|
407
405
|
* Model of a single entity's state — the "abstract" version
|
|
@@ -410,7 +408,7 @@ interface EntityTypeModel {
|
|
|
410
408
|
interface EntityModel {
|
|
411
409
|
url: string;
|
|
412
410
|
typeName: string;
|
|
413
|
-
status: `running` | `
|
|
411
|
+
status: `running` | `killed`;
|
|
414
412
|
messageCount: number;
|
|
415
413
|
}
|
|
416
414
|
/**
|
|
@@ -438,7 +436,9 @@ declare function enabledElectricAgentsActions(model: ElectricAgentsWorldModel):
|
|
|
438
436
|
* Next relation — pure state transition for the model.
|
|
439
437
|
* The real server execution happens separately in the property test.
|
|
440
438
|
*/
|
|
441
|
-
declare function applyElectricAgentsAction(model: ElectricAgentsWorldModel, action: ElectricAgentsAction, targetIdx?: number
|
|
439
|
+
declare function applyElectricAgentsAction(model: ElectricAgentsWorldModel, action: ElectricAgentsAction, targetIdx?: number, opts?: {
|
|
440
|
+
typeName?: string;
|
|
441
|
+
}): ElectricAgentsWorldModel;
|
|
442
442
|
declare function electricAgents(baseUrl: string): ElectricAgentsScenario;
|
|
443
443
|
declare function checkStateProtocolInvariants(events: Array<Record<string, unknown>>): void; //#endregion
|
|
444
444
|
//#region src/cli-dsl.d.ts
|