@relayfx/sdk 0.3.6 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai.js +1 -1
- package/dist/http-server.js +1 -1
- package/dist/{index-mtvz1bjn.js → index-3w6txjtg.js} +63 -426
- package/dist/{index-2vsf6dks.js → index-cs3be24t.js} +1 -1
- package/dist/{index-e02krw55.js → index-p43mg4kt.js} +5882 -5127
- package/dist/{index-8fpd6kvj.js → index-x32kbvxv.js} +1004 -970
- package/dist/index.js +487 -22
- package/dist/migrations/20260719120000_rename_entity_to_resident/migration.sql +9 -0
- package/dist/migrations/mysql/0012_rename_entity_to_resident.sql +5 -0
- package/dist/migrations/pg/20260719120000_rename_entity_to_resident/migration.sql +9 -0
- package/dist/migrations/sqlite/0012_rename_entity_to_resident.sql +7 -0
- package/dist/mysql.js +18 -5
- package/dist/postgres.js +569 -550
- package/dist/sqlite.js +16 -5
- package/dist/types/relay/client-baton-agent.d.ts +30 -0
- package/dist/types/relay/client-child-runs.d.ts +35 -0
- package/dist/types/relay/client-error-mapping.d.ts +5 -0
- package/dist/types/relay/client-event-sequence.d.ts +3 -0
- package/dist/types/relay/client-execution-payloads.d.ts +12 -0
- package/dist/types/relay/client-public-agents.d.ts +15 -0
- package/dist/types/relay/client-public-child-runs.d.ts +9 -0
- package/dist/types/relay/client-public-envelope-ready.d.ts +6 -0
- package/dist/types/relay/client-public-executions.d.ts +247 -0
- package/dist/types/relay/client-public-messaging.d.ts +18 -0
- package/dist/types/relay/client-public-residents.d.ts +14 -0
- package/dist/types/relay/client-public-schedules.d.ts +6 -0
- package/dist/types/relay/client-public-tools.d.ts +12 -0
- package/dist/types/relay/client-public-workflows.d.ts +10 -0
- package/dist/types/relay/client-public.d.ts +133 -313
- package/dist/types/relay/client-runtime-wake.d.ts +10 -0
- package/dist/types/relay/client-tool-outcome.d.ts +16 -0
- package/dist/types/relay/client-view-mappers.d.ts +16 -0
- package/dist/types/relay/client-wait-signal.d.ts +5 -0
- package/dist/types/relay/client.d.ts +118 -1
- package/dist/types/relay/command.d.ts +6 -6
- package/dist/types/relay/http-server.d.ts +55 -37
- package/dist/types/relay/index.d.ts +3 -4
- package/dist/types/relay/internal-client.d.ts +5 -5
- package/dist/types/relay/mysql-migrations.d.ts +1 -1
- package/dist/types/relay/operation.d.ts +44 -41
- package/dist/types/relay/sqlite-migrations.d.ts +6 -1
- package/dist/types/runtime/address/address-resolution-service.d.ts +3 -0
- package/dist/types/runtime/agent/agent-loop-events.d.ts +24 -0
- package/dist/types/runtime/agent/relay-tool-executor.d.ts +2 -2
- package/dist/types/runtime/agent/sequence-allocator.d.ts +1 -0
- package/dist/types/runtime/execution/event-log-memory.d.ts +7 -0
- package/dist/types/runtime/execution/event-log-repository.d.ts +8 -0
- package/dist/types/runtime/execution/event-log-service.d.ts +3 -1
- package/dist/types/runtime/index.d.ts +2 -2
- package/dist/types/runtime/resident/resident-instance-service.d.ts +76 -0
- package/dist/types/runtime/resident/resident-registry-service.d.ts +35 -0
- package/dist/types/runtime/runner/runner-runtime-service.d.ts +14 -14
- package/dist/types/runtime/tool/tool-runtime-contract.d.ts +4 -1
- package/dist/types/runtime/workflow/execution-workflow-state.d.ts +43 -0
- package/dist/types/runtime/workflow/execution-workflow.d.ts +6 -0
- package/dist/types/schema/agent-schema.d.ts +24 -0
- package/dist/types/schema/execution-schema.d.ts +5 -2
- package/dist/types/schema/ids-schema.d.ts +6 -6
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/{entity-schema.d.ts → resident-schema.d.ts} +6 -6
- package/dist/types/store-sql/envelope/envelope-ready-records.d.ts +51 -0
- package/dist/types/store-sql/envelope/envelope-records.d.ts +43 -0
- package/dist/types/store-sql/envelope/envelope-repository.d.ts +1 -2
- package/dist/types/store-sql/envelope/wait-records.d.ts +64 -0
- package/dist/types/store-sql/execution/execution-event-repository-memory.d.ts +8 -0
- package/dist/types/store-sql/execution/execution-event-repository-sql.d.ts +13 -0
- package/dist/types/store-sql/execution/execution-event-repository.d.ts +13 -5
- package/dist/types/store-sql/index.d.ts +1 -1
- package/dist/types/store-sql/portable.d.ts +1 -1
- package/dist/types/store-sql/resident/resident-repository.d.ts +36 -0
- package/dist/types/store-sql/schema/address-book-schema.d.ts +131 -0
- package/dist/types/store-sql/schema/agent-schema.d.ts +954 -0
- package/dist/types/store-sql/schema/communication-schema.d.ts +743 -0
- package/dist/types/store-sql/schema/envelope-schema.d.ts +701 -0
- package/dist/types/store-sql/schema/execution-schema.d.ts +1119 -0
- package/dist/types/store-sql/schema/idempotency-schema.d.ts +161 -0
- package/dist/types/store-sql/schema/presence-schema.d.ts +116 -0
- package/dist/types/store-sql/schema/relay-schema.d.ts +13 -6684
- package/dist/types/store-sql/schema/resident-schema.d.ts +294 -0
- package/dist/types/store-sql/schema/schedule-schema.d.ts +282 -0
- package/dist/types/store-sql/schema/schema-columns.d.ts +1 -0
- package/dist/types/store-sql/schema/session-schema.d.ts +228 -0
- package/dist/types/store-sql/schema/tool-schema.d.ts +627 -0
- package/dist/types/store-sql/schema/workflow-schema.d.ts +996 -0
- package/dist/types/store-sql/schema/workspace-schema.d.ts +338 -0
- package/dist/types/store-sql/session/session-entry-records.d.ts +52 -0
- package/dist/types/store-sql/session/session-records.d.ts +51 -0
- package/dist/types/store-sql/session/session-repository.d.ts +2 -3
- package/dist/types/store-sql/tool/tool-attempt-records.d.ts +52 -0
- package/dist/types/store-sql/tool/tool-call-records.d.ts +121 -0
- package/dist/types/store-sql/tool/tool-call-repository.d.ts +1 -2
- package/dist/types/store-sql/tool/tool-work-operations.d.ts +11 -0
- package/package.json +3 -3
- package/dist/types/runtime/entity/entity-instance-service.d.ts +0 -76
- package/dist/types/runtime/entity/entity-registry-service.d.ts +0 -35
- package/dist/types/store-sql/entity/entity-repository.d.ts +0 -36
package/dist/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
exports_artifact_store_service,
|
|
5
5
|
exports_blob_store_service,
|
|
6
6
|
exports_child_fan_out_host,
|
|
7
|
+
exports_command,
|
|
7
8
|
exports_embedding_model_service,
|
|
8
9
|
exports_language_model_service,
|
|
9
10
|
exports_model_hub,
|
|
@@ -13,19 +14,22 @@ import {
|
|
|
13
14
|
exports_tool_runtime,
|
|
14
15
|
exports_workflow_definition_host,
|
|
15
16
|
makeDatabaseIdentity
|
|
16
|
-
} from "./index-
|
|
17
|
+
} from "./index-p43mg4kt.js";
|
|
17
18
|
import {
|
|
18
19
|
exports_model_registry
|
|
19
|
-
} from "./index-
|
|
20
|
+
} from "./index-x32kbvxv.js";
|
|
20
21
|
import {
|
|
22
|
+
ClientError,
|
|
23
|
+
EventLogCursorNotFound,
|
|
24
|
+
ExecutionNotFound,
|
|
25
|
+
ResidentNamespaceReserved,
|
|
21
26
|
Service,
|
|
27
|
+
StateVersionConflict,
|
|
28
|
+
WaitKindMismatch,
|
|
22
29
|
exports_address_schema,
|
|
23
30
|
exports_agent_schema,
|
|
24
31
|
exports_child_orchestration_schema,
|
|
25
|
-
exports_client_public,
|
|
26
|
-
exports_command,
|
|
27
32
|
exports_content_schema,
|
|
28
|
-
exports_entity_schema,
|
|
29
33
|
exports_envelope_schema,
|
|
30
34
|
exports_execution_schema,
|
|
31
35
|
exports_ids_schema,
|
|
@@ -33,14 +37,16 @@ import {
|
|
|
33
37
|
exports_operation,
|
|
34
38
|
exports_pagination_schema,
|
|
35
39
|
exports_presence_schema,
|
|
40
|
+
exports_resident_schema,
|
|
36
41
|
exports_schedule_schema,
|
|
37
42
|
exports_shared_schema,
|
|
38
43
|
exports_skill_schema,
|
|
39
44
|
exports_state_schema,
|
|
40
45
|
exports_tool_schema,
|
|
41
46
|
exports_wait_schema,
|
|
42
|
-
exports_workflow_schema
|
|
43
|
-
|
|
47
|
+
exports_workflow_schema,
|
|
48
|
+
followExecutionFrom
|
|
49
|
+
} from "./index-3w6txjtg.js";
|
|
44
50
|
import {
|
|
45
51
|
__export
|
|
46
52
|
} from "./index-nb39b5ae.js";
|
|
@@ -63,16 +69,16 @@ var layer = Layer.effect(Service2, Effect.gen(function* () {
|
|
|
63
69
|
const client = yield* Service;
|
|
64
70
|
return Service2.of({
|
|
65
71
|
claim: Effect.fn("AdapterOutbox.claim")(function* (input) {
|
|
66
|
-
return yield* client.
|
|
72
|
+
return yield* client.envelopes.claimReady(input);
|
|
67
73
|
}),
|
|
68
74
|
ack: Effect.fn("AdapterOutbox.ack")(function* (input) {
|
|
69
|
-
return yield* client.
|
|
75
|
+
return yield* client.envelopes.ackReady(input);
|
|
70
76
|
}),
|
|
71
77
|
release: Effect.fn("AdapterOutbox.release")(function* (input) {
|
|
72
|
-
return yield* client.
|
|
78
|
+
return yield* client.envelopes.releaseReady(input);
|
|
73
79
|
}),
|
|
74
80
|
submitInbound: Effect.fn("AdapterOutbox.submitInbound")(function* (input) {
|
|
75
|
-
return yield* client.
|
|
81
|
+
return yield* client.envelopes.submitInbound(input);
|
|
76
82
|
})
|
|
77
83
|
});
|
|
78
84
|
}));
|
|
@@ -116,7 +122,7 @@ var runOnce = Effect2.fn("ToolWorker.runOnce")(function* (options) {
|
|
|
116
122
|
const client = yield* Service;
|
|
117
123
|
const now = yield* Clock.currentTimeMillis;
|
|
118
124
|
const leaseMillis = Duration.toMillis(Duration.fromInputUnsafe(options.leaseDuration));
|
|
119
|
-
const lease = yield* client.
|
|
125
|
+
const lease = yield* client.tools.claimWork({
|
|
120
126
|
queue: options.queue,
|
|
121
127
|
worker_id: options.workerId,
|
|
122
128
|
now,
|
|
@@ -126,7 +132,7 @@ var runOnce = Effect2.fn("ToolWorker.runOnce")(function* (options) {
|
|
|
126
132
|
return false;
|
|
127
133
|
const outcome = yield* handlerOutcome(options, lease);
|
|
128
134
|
const completedAt = yield* Clock.currentTimeMillis;
|
|
129
|
-
yield* client.
|
|
135
|
+
yield* client.tools.completeWork({
|
|
130
136
|
execution_id: lease.execution_id,
|
|
131
137
|
tool_call_id: lease.call.id,
|
|
132
138
|
attempt_id: lease.attempt.attempt_id,
|
|
@@ -170,13 +176,13 @@ __export(exports_language_model_registration, {
|
|
|
170
176
|
OpenAiAccountCredentialError: () => OpenAiAccountCredentialError
|
|
171
177
|
});
|
|
172
178
|
|
|
173
|
-
// ../../node_modules/.bun/@batonfx+providers@0.
|
|
179
|
+
// ../../node_modules/.bun/@batonfx+providers@0.7.0/node_modules/@batonfx/providers/dist/deterministic.js
|
|
174
180
|
import { OpenAiClient as OpenAiClient2 } from "@effect/ai-openai";
|
|
175
181
|
import { Config as Config2, Effect as Effect4, Layer as Layer3, Option, Stream as Stream2 } from "effect";
|
|
176
182
|
import { LanguageModel, Response } from "effect/unstable/ai";
|
|
177
183
|
import { FetchHttpClient as FetchHttpClient2 } from "effect/unstable/http";
|
|
178
184
|
|
|
179
|
-
// ../../node_modules/.bun/@batonfx+providers@0.
|
|
185
|
+
// ../../node_modules/.bun/@batonfx+providers@0.7.0/node_modules/@batonfx/providers/dist/openai.js
|
|
180
186
|
import { OpenAiClient, OpenAiLanguageModel } from "@effect/ai-openai";
|
|
181
187
|
import { Config, Effect as Effect3, Layer as Layer2, Redacted, Schema, Stream } from "effect";
|
|
182
188
|
import { AiError } from "effect/unstable/ai";
|
|
@@ -264,7 +270,7 @@ var openAiAccount = (input) => exports_model_registry.registrationFromLayer({
|
|
|
264
270
|
var withOpenAiAccount = (input) => exports_model_registry.layerFromRegistrationEffects([openAiAccount(input)]);
|
|
265
271
|
var withOpenAiAccountFetch = (input) => withOpenAiAccount(input).pipe(Layer2.provide(FetchHttpClient.layer));
|
|
266
272
|
|
|
267
|
-
// ../../node_modules/.bun/@batonfx+providers@0.
|
|
273
|
+
// ../../node_modules/.bun/@batonfx+providers@0.7.0/node_modules/@batonfx/providers/dist/deterministic.js
|
|
268
274
|
var deterministicModelLayer = Layer3.effect(LanguageModel.LanguageModel, LanguageModel.make({
|
|
269
275
|
generateText: () => Effect4.succeed([{ type: "text", text: "deterministic response" }]),
|
|
270
276
|
streamText: () => Stream2.make(Response.makePart("text-delta", { id: "text", delta: "deterministic response" }))
|
|
@@ -297,7 +303,7 @@ var withOpenAiOrDeterministic = (options) => Layer3.unwrap(Effect4.gen(function*
|
|
|
297
303
|
}));
|
|
298
304
|
var withOpenAiOrDeterministicFetch = (options) => withOpenAiOrDeterministic(options).pipe(Layer3.provide(FetchHttpClient2.layer));
|
|
299
305
|
|
|
300
|
-
// ../../node_modules/.bun/@batonfx+providers@0.
|
|
306
|
+
// ../../node_modules/.bun/@batonfx+providers@0.7.0/node_modules/@batonfx/providers/dist/anthropic.js
|
|
301
307
|
import { AnthropicClient, AnthropicLanguageModel } from "@effect/ai-anthropic";
|
|
302
308
|
import { Config as Config3, Layer as Layer4, Redacted as Redacted2 } from "effect";
|
|
303
309
|
import { AiError as AiError2 } from "effect/unstable/ai";
|
|
@@ -322,7 +328,7 @@ var anthropic = (input) => exports_model_registry.registrationFromLayer({
|
|
|
322
328
|
var anthropicClientLayerConfig = AnthropicClient.layerConfig;
|
|
323
329
|
var withAnthropic = (options) => exports_model_registry.layerFromRegistrationEffects([anthropic(options)]).pipe(Layer4.provide(AnthropicClient.layerConfig({ ...options.clientConfig, apiKey: options.apiKey })));
|
|
324
330
|
var withAnthropicFetch = (options) => withAnthropic(options).pipe(Layer4.provide(FetchHttpClient3.layer));
|
|
325
|
-
// ../../node_modules/.bun/@batonfx+providers@0.
|
|
331
|
+
// ../../node_modules/.bun/@batonfx+providers@0.7.0/node_modules/@batonfx/providers/dist/openai-compat.js
|
|
326
332
|
import { OpenAiClient as OpenAiClient3, OpenAiLanguageModel as OpenAiLanguageModel2 } from "@effect/ai-openai-compat";
|
|
327
333
|
import { Config as Config4, Layer as Layer5, Redacted as Redacted3 } from "effect";
|
|
328
334
|
import { FetchHttpClient as FetchHttpClient4 } from "effect/unstable/http";
|
|
@@ -345,7 +351,7 @@ var clientLayerConfig = (options) => OpenAiClient3.layerConfig({
|
|
|
345
351
|
});
|
|
346
352
|
var withOpenAiCompatible = (options) => exports_model_registry.layerFromRegistrationEffects([openAiCompatible(options)]).pipe(Layer5.provide(clientLayerConfig(options)));
|
|
347
353
|
var withOpenAiCompatibleFetch = (options) => withOpenAiCompatible(options).pipe(Layer5.provide(FetchHttpClient4.layer));
|
|
348
|
-
// ../../node_modules/.bun/@batonfx+providers@0.
|
|
354
|
+
// ../../node_modules/.bun/@batonfx+providers@0.7.0/node_modules/@batonfx/providers/dist/openrouter.js
|
|
349
355
|
import { OpenRouterClient, OpenRouterLanguageModel } from "@effect/ai-openrouter";
|
|
350
356
|
import { Config as Config5, Layer as Layer6, Redacted as Redacted4 } from "effect";
|
|
351
357
|
import { AiError as AiError3 } from "effect/unstable/ai";
|
|
@@ -383,9 +389,468 @@ var withOpenRouterFetch = (options) => withOpenRouter(options).pipe(Layer6.provi
|
|
|
383
389
|
// src/language-model-registration.ts
|
|
384
390
|
var deterministicModel2 = (input) => deterministicModel(input);
|
|
385
391
|
|
|
392
|
+
// src/client.ts
|
|
393
|
+
var exports_client = {};
|
|
394
|
+
__export(exports_client, {
|
|
395
|
+
workflows: () => workflows,
|
|
396
|
+
waits: () => waits,
|
|
397
|
+
topics: () => topics,
|
|
398
|
+
tools: () => tools,
|
|
399
|
+
skills: () => skills,
|
|
400
|
+
sessions: () => sessions,
|
|
401
|
+
schedules: () => schedules,
|
|
402
|
+
runners: () => runners,
|
|
403
|
+
residents: () => residents,
|
|
404
|
+
presence: () => presence,
|
|
405
|
+
followExecutionFrom: () => followExecutionFrom,
|
|
406
|
+
executions: () => executions,
|
|
407
|
+
envelopes: () => envelopes,
|
|
408
|
+
childRuns: () => childRuns,
|
|
409
|
+
agents: () => agents,
|
|
410
|
+
addressBook: () => addressBook,
|
|
411
|
+
WaitKindMismatch: () => WaitKindMismatch,
|
|
412
|
+
StateVersionConflict: () => StateVersionConflict,
|
|
413
|
+
Service: () => Service,
|
|
414
|
+
ResidentNamespaceReserved: () => ResidentNamespaceReserved,
|
|
415
|
+
ExecutionNotFound: () => ExecutionNotFound,
|
|
416
|
+
EventLogCursorNotFound: () => EventLogCursorNotFound,
|
|
417
|
+
ClientError: () => ClientError
|
|
418
|
+
});
|
|
419
|
+
|
|
420
|
+
// src/client-public-agents.ts
|
|
421
|
+
import { Effect as Effect5 } from "effect";
|
|
422
|
+
var registerAgentDefinition = Effect5.fn("Client.registerAgentDefinition.call")(function* (input) {
|
|
423
|
+
const service = yield* Service;
|
|
424
|
+
return yield* service.agents.registerDefinition(input);
|
|
425
|
+
});
|
|
426
|
+
function registerAgent(input) {
|
|
427
|
+
return Effect5.gen(function* () {
|
|
428
|
+
const service = yield* Service;
|
|
429
|
+
if (isRegisterBatonAgentInput(input))
|
|
430
|
+
return yield* service.agents.register(input);
|
|
431
|
+
return yield* service.agents.register(input);
|
|
432
|
+
}).pipe(Effect5.withSpan("Client.registerAgent.call"));
|
|
433
|
+
}
|
|
434
|
+
var isRegisterBatonAgentInput = (input) => ("agent" in input);
|
|
435
|
+
var getAgentDefinition = Effect5.fn("Client.getAgentDefinition.call")(function* (id) {
|
|
436
|
+
const service = yield* Service;
|
|
437
|
+
return yield* service.agents.getDefinition(id);
|
|
438
|
+
});
|
|
439
|
+
var listAgentDefinitions = Effect5.fn("Client.listAgentDefinitions.call")(function* () {
|
|
440
|
+
const service = yield* Service;
|
|
441
|
+
return yield* service.agents.listDefinitions();
|
|
442
|
+
});
|
|
443
|
+
var listAgentDefinitionRevisions = Effect5.fn("Client.listAgentDefinitionRevisions.call")(function* (id) {
|
|
444
|
+
const service = yield* Service;
|
|
445
|
+
return yield* service.agents.listDefinitionRevisions(id);
|
|
446
|
+
});
|
|
447
|
+
var getSkillDefinition = Effect5.fn("Client.getSkillDefinition.call")(function* (id) {
|
|
448
|
+
const service = yield* Service;
|
|
449
|
+
return yield* service.skills.getDefinition(id);
|
|
450
|
+
});
|
|
451
|
+
var listSkillDefinitions = Effect5.fn("Client.listSkillDefinitions.call")(function* () {
|
|
452
|
+
const service = yield* Service;
|
|
453
|
+
return yield* service.skills.listDefinitions();
|
|
454
|
+
});
|
|
455
|
+
var listSkillDefinitionRevisions = Effect5.fn("Client.listSkillDefinitionRevisions.call")(function* (id) {
|
|
456
|
+
const service = yield* Service;
|
|
457
|
+
return yield* service.skills.listDefinitionRevisions(id);
|
|
458
|
+
});
|
|
459
|
+
|
|
460
|
+
// src/client-public-child-runs.ts
|
|
461
|
+
import { Effect as Effect6 } from "effect";
|
|
462
|
+
var spawnChildRun = Effect6.fn("Client.spawnChildRun.call")(function* (input) {
|
|
463
|
+
const service = yield* Service;
|
|
464
|
+
return yield* service.childRuns.spawn(input);
|
|
465
|
+
});
|
|
466
|
+
var createChildFanOut = Effect6.fn("Client.createChildFanOut.call")(function* (input) {
|
|
467
|
+
const service = yield* Service;
|
|
468
|
+
return yield* service.childRuns.createFanOut(input);
|
|
469
|
+
});
|
|
470
|
+
var cancelChildFanOut = Effect6.fn("Client.cancelChildFanOut.call")(function* (input) {
|
|
471
|
+
const service = yield* Service;
|
|
472
|
+
return yield* service.childRuns.cancelFanOut(input);
|
|
473
|
+
});
|
|
474
|
+
var inspectChildFanOut = Effect6.fn("Client.inspectChildFanOut.call")(function* (input) {
|
|
475
|
+
const service = yield* Service;
|
|
476
|
+
return yield* service.childRuns.inspectFanOut(input);
|
|
477
|
+
});
|
|
478
|
+
|
|
479
|
+
// src/client-public-envelope-ready.ts
|
|
480
|
+
import { Effect as Effect7 } from "effect";
|
|
481
|
+
var claimEnvelopeReady = Effect7.fn("Client.claimEnvelopeReady.call")(function* (input) {
|
|
482
|
+
const service = yield* Service;
|
|
483
|
+
return yield* service.envelopes.claimReady(input);
|
|
484
|
+
});
|
|
485
|
+
var ackEnvelopeReady = Effect7.fn("Client.ackEnvelopeReady.call")(function* (input) {
|
|
486
|
+
const service = yield* Service;
|
|
487
|
+
return yield* service.envelopes.ackReady(input);
|
|
488
|
+
});
|
|
489
|
+
var releaseEnvelopeReady = Effect7.fn("Client.releaseEnvelopeReady.call")(function* (input) {
|
|
490
|
+
const service = yield* Service;
|
|
491
|
+
return yield* service.envelopes.releaseReady(input);
|
|
492
|
+
});
|
|
493
|
+
|
|
494
|
+
// src/client-public-executions.ts
|
|
495
|
+
import { Effect as Effect8, Stream as Stream3 } from "effect";
|
|
496
|
+
var startExecution = Effect8.fn("Client.startExecution.call")(function* (input) {
|
|
497
|
+
const service = yield* Service;
|
|
498
|
+
return yield* service.executions.start(input);
|
|
499
|
+
});
|
|
500
|
+
var startExecutionByAddress = Effect8.fn("Client.startExecutionByAddress.call")(function* (input) {
|
|
501
|
+
const service = yield* Service;
|
|
502
|
+
return yield* service.executions.startByAddress(input);
|
|
503
|
+
});
|
|
504
|
+
var startExecutionByAgentDefinition = Effect8.fn("Client.startExecutionByAgentDefinition.call")(function* (input) {
|
|
505
|
+
const service = yield* Service;
|
|
506
|
+
return yield* service.executions.startByAgentDefinition(input);
|
|
507
|
+
});
|
|
508
|
+
var cancelExecution = Effect8.fn("Client.cancelExecution.call")(function* (input) {
|
|
509
|
+
const service = yield* Service;
|
|
510
|
+
return yield* service.executions.cancel(input);
|
|
511
|
+
});
|
|
512
|
+
var steer = Effect8.fn("Client.steer.call")(function* (input) {
|
|
513
|
+
const service = yield* Service;
|
|
514
|
+
return yield* service.executions.steer(input);
|
|
515
|
+
});
|
|
516
|
+
var getExecution = Effect8.fn("Client.getExecution.call")(function* (id) {
|
|
517
|
+
const service = yield* Service;
|
|
518
|
+
return yield* service.executions.get(id);
|
|
519
|
+
});
|
|
520
|
+
var listExecutions = Effect8.fn("Client.listExecutions.call")(function* (input) {
|
|
521
|
+
const service = yield* Service;
|
|
522
|
+
return yield* service.executions.list(input);
|
|
523
|
+
});
|
|
524
|
+
var listSessions = Effect8.fn("Client.listSessions.call")(function* (input) {
|
|
525
|
+
const service = yield* Service;
|
|
526
|
+
return yield* service.sessions.list(input);
|
|
527
|
+
});
|
|
528
|
+
var getSession = Effect8.fn("Client.getSession.call")(function* (input) {
|
|
529
|
+
const service = yield* Service;
|
|
530
|
+
return yield* service.sessions.get(input);
|
|
531
|
+
});
|
|
532
|
+
var listWaits = Effect8.fn("Client.listWaits.call")(function* (input) {
|
|
533
|
+
const service = yield* Service;
|
|
534
|
+
return yield* service.waits.list(input);
|
|
535
|
+
});
|
|
536
|
+
var replayExecution = Effect8.fn("Client.replayExecution.call")(function* (input) {
|
|
537
|
+
const service = yield* Service;
|
|
538
|
+
return yield* service.executions.replay(input);
|
|
539
|
+
});
|
|
540
|
+
var pageExecutionEvents = Effect8.fn("Client.pageExecutionEvents.call")(function* (input) {
|
|
541
|
+
const service = yield* Service;
|
|
542
|
+
return yield* service.executions.pageEvents(input);
|
|
543
|
+
});
|
|
544
|
+
var listRunners = Effect8.fn("Client.listRunners.call")(function* () {
|
|
545
|
+
const service = yield* Service;
|
|
546
|
+
return yield* service.runners.list();
|
|
547
|
+
});
|
|
548
|
+
var routeExecution = Effect8.fn("Client.routeExecution.call")(function* (executionId) {
|
|
549
|
+
const service = yield* Service;
|
|
550
|
+
return yield* service.executions.route(executionId);
|
|
551
|
+
});
|
|
552
|
+
var inspectExecution = Effect8.fn("Client.inspectExecution.call")(function* (executionId) {
|
|
553
|
+
const service = yield* Service;
|
|
554
|
+
return yield* service.executions.inspect(executionId);
|
|
555
|
+
});
|
|
556
|
+
var streamExecution = (input) => Stream3.unwrap(Service.pipe(Effect8.map((service) => service.executions.stream(input))));
|
|
557
|
+
var followExecution = (input) => Stream3.unwrap(Service.pipe(Effect8.map((service) => service.executions.follow(input))));
|
|
558
|
+
var streamSession = (input) => Stream3.unwrap(Service.pipe(Effect8.map((service) => service.sessions.stream(input))));
|
|
559
|
+
var watchExecutions = (input) => Stream3.unwrap(Service.pipe(Effect8.map((service) => service.executions.watch(input))));
|
|
560
|
+
|
|
561
|
+
// src/client-public-messaging.ts
|
|
562
|
+
import { Effect as Effect9, Stream as Stream4 } from "effect";
|
|
563
|
+
var registerAddressBookRoute = Effect9.fn("Client.registerAddressBookRoute.call")(function* (input) {
|
|
564
|
+
const service = yield* Service;
|
|
565
|
+
return yield* service.addressBook.register(input);
|
|
566
|
+
});
|
|
567
|
+
var getAddressBookRoute = Effect9.fn("Client.getAddressBookRoute.call")(function* (id) {
|
|
568
|
+
const service = yield* Service;
|
|
569
|
+
return yield* service.addressBook.get(id);
|
|
570
|
+
});
|
|
571
|
+
var listAddressBookRoutes = Effect9.fn("Client.listAddressBookRoutes.call")(function* () {
|
|
572
|
+
const service = yield* Service;
|
|
573
|
+
return yield* service.addressBook.list();
|
|
574
|
+
});
|
|
575
|
+
var subscribeTopic = Effect9.fn("Client.subscribeTopic.call")(function* (input) {
|
|
576
|
+
const service = yield* Service;
|
|
577
|
+
return yield* service.topics.subscribe(input);
|
|
578
|
+
});
|
|
579
|
+
var unsubscribeTopic = Effect9.fn("Client.unsubscribeTopic.call")(function* (input) {
|
|
580
|
+
const service = yield* Service;
|
|
581
|
+
return yield* service.topics.unsubscribe(input);
|
|
582
|
+
});
|
|
583
|
+
var publishTopic = Effect9.fn("Client.publishTopic.call")(function* (input) {
|
|
584
|
+
const service = yield* Service;
|
|
585
|
+
return yield* service.topics.publish(input);
|
|
586
|
+
});
|
|
587
|
+
var listTopicSubscriptions = Effect9.fn("Client.listTopicSubscriptions.call")(function* (input) {
|
|
588
|
+
const service = yield* Service;
|
|
589
|
+
return yield* service.topics.listSubscriptions(input);
|
|
590
|
+
});
|
|
591
|
+
var listInboxMessages = Effect9.fn("Client.listInboxMessages.call")(function* (input) {
|
|
592
|
+
const service = yield* Service;
|
|
593
|
+
return yield* service.envelopes.listInbox(input);
|
|
594
|
+
});
|
|
595
|
+
var send = Effect9.fn("Client.send.call")(function* (input) {
|
|
596
|
+
const service = yield* Service;
|
|
597
|
+
return yield* service.envelopes.send(input);
|
|
598
|
+
});
|
|
599
|
+
var getPresence = Effect9.fn("Client.getPresence.call")(function* (scope) {
|
|
600
|
+
const service = yield* Service;
|
|
601
|
+
return yield* service.presence.get(scope);
|
|
602
|
+
});
|
|
603
|
+
var watchPresence = (scope) => Stream4.unwrap(Service.pipe(Effect9.map((service) => service.presence.watch(scope))));
|
|
604
|
+
var wake = Effect9.fn("Client.wake.call")(function* (input) {
|
|
605
|
+
const service = yield* Service;
|
|
606
|
+
return yield* service.waits.wake(input);
|
|
607
|
+
});
|
|
608
|
+
var submitInboundEnvelope = Effect9.fn("Client.submitInboundEnvelope.call")(function* (input) {
|
|
609
|
+
const service = yield* Service;
|
|
610
|
+
return yield* service.envelopes.submitInbound(input);
|
|
611
|
+
});
|
|
612
|
+
var awaitWait = Effect9.fn("Client.awaitWait.call")(function* (input) {
|
|
613
|
+
const service = yield* Service;
|
|
614
|
+
return yield* service.waits.await(input);
|
|
615
|
+
});
|
|
616
|
+
|
|
617
|
+
// src/client-public-residents.ts
|
|
618
|
+
import { Effect as Effect10 } from "effect";
|
|
619
|
+
var registerResidentKind = Effect10.fn("Client.registerResidentKind.call")(function* (input) {
|
|
620
|
+
const service = yield* Service;
|
|
621
|
+
return yield* service.residents.registerKind(input);
|
|
622
|
+
});
|
|
623
|
+
var spawnResident = Effect10.fn("Client.spawnResident.call")(function* (input) {
|
|
624
|
+
const service = yield* Service;
|
|
625
|
+
return yield* service.residents.spawn(input);
|
|
626
|
+
});
|
|
627
|
+
var getResident = Effect10.fn("Client.getResident.call")(function* (input) {
|
|
628
|
+
const service = yield* Service;
|
|
629
|
+
return yield* service.residents.get(input);
|
|
630
|
+
});
|
|
631
|
+
var destroyResident = Effect10.fn("Client.destroyResident.call")(function* (input) {
|
|
632
|
+
const service = yield* Service;
|
|
633
|
+
return yield* service.residents.destroy(input);
|
|
634
|
+
});
|
|
635
|
+
var listResidents = Effect10.fn("Client.listResidents.call")(function* (input) {
|
|
636
|
+
const service = yield* Service;
|
|
637
|
+
return yield* service.residents.list(input);
|
|
638
|
+
});
|
|
639
|
+
var askResident = Effect10.fn("Client.askResident.call")(function* (input) {
|
|
640
|
+
const service = yield* Service;
|
|
641
|
+
return yield* service.residents.ask(input);
|
|
642
|
+
});
|
|
643
|
+
var getResidentState = Effect10.fn("Client.getResidentState.call")(function* (input) {
|
|
644
|
+
const service = yield* Service;
|
|
645
|
+
return yield* service.residents.getState(input);
|
|
646
|
+
});
|
|
647
|
+
var putResidentState = Effect10.fn("Client.putResidentState.call")(function* (input) {
|
|
648
|
+
const service = yield* Service;
|
|
649
|
+
return yield* service.residents.putState(input);
|
|
650
|
+
});
|
|
651
|
+
var deleteResidentState = Effect10.fn("Client.deleteResidentState.call")(function* (input) {
|
|
652
|
+
const service = yield* Service;
|
|
653
|
+
return yield* service.residents.deleteState(input);
|
|
654
|
+
});
|
|
655
|
+
var listResidentState = Effect10.fn("Client.listResidentState.call")(function* (input) {
|
|
656
|
+
const service = yield* Service;
|
|
657
|
+
return yield* service.residents.listState(input);
|
|
658
|
+
});
|
|
659
|
+
|
|
660
|
+
// src/client-public-schedules.ts
|
|
661
|
+
import { Effect as Effect11 } from "effect";
|
|
662
|
+
var createSchedule = Effect11.fn("Client.createSchedule.call")(function* (input) {
|
|
663
|
+
const service = yield* Service;
|
|
664
|
+
return yield* service.schedules.create(input);
|
|
665
|
+
});
|
|
666
|
+
var cancelSchedule = Effect11.fn("Client.cancelSchedule.call")(function* (input) {
|
|
667
|
+
const service = yield* Service;
|
|
668
|
+
return yield* service.schedules.cancel(input);
|
|
669
|
+
});
|
|
670
|
+
var listSchedules = Effect11.fn("Client.listSchedules.call")(function* (input) {
|
|
671
|
+
const service = yield* Service;
|
|
672
|
+
return yield* service.schedules.list(input);
|
|
673
|
+
});
|
|
674
|
+
|
|
675
|
+
// src/client-public-tools.ts
|
|
676
|
+
import { Effect as Effect12 } from "effect";
|
|
677
|
+
var listPendingApprovals = Effect12.fn("Client.listPendingApprovals.call")(function* (input) {
|
|
678
|
+
const service = yield* Service;
|
|
679
|
+
return yield* service.tools.listPendingApprovals(input);
|
|
680
|
+
});
|
|
681
|
+
var resolveToolApproval = Effect12.fn("Client.resolveToolApproval.call")(function* (input) {
|
|
682
|
+
const service = yield* Service;
|
|
683
|
+
return yield* service.tools.resolveApproval(input);
|
|
684
|
+
});
|
|
685
|
+
var resolvePermission = Effect12.fn("Client.resolvePermission.call")(function* (input) {
|
|
686
|
+
const service = yield* Service;
|
|
687
|
+
return yield* service.tools.resolvePermission(input);
|
|
688
|
+
});
|
|
689
|
+
var listPendingToolCalls = Effect12.fn("Client.listPendingToolCalls.call")(function* (input) {
|
|
690
|
+
const service = yield* Service;
|
|
691
|
+
return yield* service.tools.listPending(input);
|
|
692
|
+
});
|
|
693
|
+
var fulfillToolCall = Effect12.fn("Client.fulfillToolCall.call")(function* (input) {
|
|
694
|
+
const service = yield* Service;
|
|
695
|
+
return yield* service.tools.fulfill(input);
|
|
696
|
+
});
|
|
697
|
+
var claimToolWork = Effect12.fn("Client.claimToolWork.call")(function* (input) {
|
|
698
|
+
const service = yield* Service;
|
|
699
|
+
return yield* service.tools.claimWork(input);
|
|
700
|
+
});
|
|
701
|
+
var completeToolWork = Effect12.fn("Client.completeToolWork.call")(function* (input) {
|
|
702
|
+
const service = yield* Service;
|
|
703
|
+
return yield* service.tools.completeWork(input);
|
|
704
|
+
});
|
|
705
|
+
var releaseToolWork = Effect12.fn("Client.releaseToolWork.call")(function* (input) {
|
|
706
|
+
const service = yield* Service;
|
|
707
|
+
return yield* service.tools.releaseWork(input);
|
|
708
|
+
});
|
|
709
|
+
var listToolAttempts = Effect12.fn("Client.listToolAttempts.call")(function* (input) {
|
|
710
|
+
const service = yield* Service;
|
|
711
|
+
return yield* service.tools.listAttempts(input);
|
|
712
|
+
});
|
|
713
|
+
|
|
714
|
+
// src/client-public-workflows.ts
|
|
715
|
+
import { Effect as Effect13 } from "effect";
|
|
716
|
+
var registerWorkflowDefinition = Effect13.fn("Client.registerWorkflowDefinition.call")(function* (input) {
|
|
717
|
+
const service = yield* Service;
|
|
718
|
+
return yield* service.workflows.registerDefinition(input);
|
|
719
|
+
});
|
|
720
|
+
var getWorkflowDefinitionRevision = Effect13.fn("Client.getWorkflowDefinitionRevision.call")(function* (id, revision) {
|
|
721
|
+
const service = yield* Service;
|
|
722
|
+
return yield* service.workflows.getDefinitionRevision(id, revision);
|
|
723
|
+
});
|
|
724
|
+
var listWorkflowDefinitionRevisions = Effect13.fn("Client.listWorkflowDefinitionRevisions.call")(function* (id) {
|
|
725
|
+
const service = yield* Service;
|
|
726
|
+
return yield* service.workflows.listDefinitionRevisions(id);
|
|
727
|
+
});
|
|
728
|
+
var startWorkflowRun = Effect13.fn("Client.startWorkflowRun.call")(function* (input) {
|
|
729
|
+
const service = yield* Service;
|
|
730
|
+
return yield* service.workflows.startRun(input);
|
|
731
|
+
});
|
|
732
|
+
var cancelWorkflowRun = Effect13.fn("Client.cancelWorkflowRun.call")(function* (id) {
|
|
733
|
+
const service = yield* Service;
|
|
734
|
+
return yield* service.workflows.cancelRun(id);
|
|
735
|
+
});
|
|
736
|
+
var replayWorkflowRun = Effect13.fn("Client.replayWorkflowRun.call")(function* (id) {
|
|
737
|
+
const service = yield* Service;
|
|
738
|
+
return yield* service.workflows.replayRun(id);
|
|
739
|
+
});
|
|
740
|
+
var inspectWorkflowRun = Effect13.fn("Client.inspectWorkflowRun.call")(function* (id) {
|
|
741
|
+
const service = yield* Service;
|
|
742
|
+
return yield* service.workflows.inspectRun(id);
|
|
743
|
+
});
|
|
744
|
+
|
|
745
|
+
// src/client.ts
|
|
746
|
+
var executions = {
|
|
747
|
+
start: startExecution,
|
|
748
|
+
startByAddress: startExecutionByAddress,
|
|
749
|
+
startByAgentDefinition: startExecutionByAgentDefinition,
|
|
750
|
+
cancel: cancelExecution,
|
|
751
|
+
get: getExecution,
|
|
752
|
+
list: listExecutions,
|
|
753
|
+
replay: replayExecution,
|
|
754
|
+
pageEvents: pageExecutionEvents,
|
|
755
|
+
inspect: inspectExecution,
|
|
756
|
+
route: routeExecution,
|
|
757
|
+
steer,
|
|
758
|
+
stream: streamExecution,
|
|
759
|
+
follow: followExecution,
|
|
760
|
+
watch: watchExecutions
|
|
761
|
+
};
|
|
762
|
+
var residents = {
|
|
763
|
+
spawn: spawnResident,
|
|
764
|
+
get: getResident,
|
|
765
|
+
destroy: destroyResident,
|
|
766
|
+
list: listResidents,
|
|
767
|
+
ask: askResident,
|
|
768
|
+
registerKind: registerResidentKind,
|
|
769
|
+
getState: getResidentState,
|
|
770
|
+
putState: putResidentState,
|
|
771
|
+
deleteState: deleteResidentState,
|
|
772
|
+
listState: listResidentState
|
|
773
|
+
};
|
|
774
|
+
var agents = {
|
|
775
|
+
register: registerAgent,
|
|
776
|
+
registerDefinition: registerAgentDefinition,
|
|
777
|
+
getDefinition: getAgentDefinition,
|
|
778
|
+
listDefinitions: listAgentDefinitions,
|
|
779
|
+
listDefinitionRevisions: listAgentDefinitionRevisions
|
|
780
|
+
};
|
|
781
|
+
var skills = {
|
|
782
|
+
getDefinition: getSkillDefinition,
|
|
783
|
+
listDefinitions: listSkillDefinitions,
|
|
784
|
+
listDefinitionRevisions: listSkillDefinitionRevisions
|
|
785
|
+
};
|
|
786
|
+
var sessions = {
|
|
787
|
+
get: getSession,
|
|
788
|
+
list: listSessions,
|
|
789
|
+
stream: streamSession
|
|
790
|
+
};
|
|
791
|
+
var waits = {
|
|
792
|
+
list: listWaits,
|
|
793
|
+
await: awaitWait,
|
|
794
|
+
wake
|
|
795
|
+
};
|
|
796
|
+
var envelopes = {
|
|
797
|
+
send,
|
|
798
|
+
submitInbound: submitInboundEnvelope,
|
|
799
|
+
listInbox: listInboxMessages,
|
|
800
|
+
claimReady: claimEnvelopeReady,
|
|
801
|
+
ackReady: ackEnvelopeReady,
|
|
802
|
+
releaseReady: releaseEnvelopeReady
|
|
803
|
+
};
|
|
804
|
+
var tools = {
|
|
805
|
+
listPending: listPendingToolCalls,
|
|
806
|
+
fulfill: fulfillToolCall,
|
|
807
|
+
claimWork: claimToolWork,
|
|
808
|
+
completeWork: completeToolWork,
|
|
809
|
+
releaseWork: releaseToolWork,
|
|
810
|
+
listAttempts: listToolAttempts,
|
|
811
|
+
listPendingApprovals,
|
|
812
|
+
resolveApproval: resolveToolApproval,
|
|
813
|
+
resolvePermission
|
|
814
|
+
};
|
|
815
|
+
var topics = {
|
|
816
|
+
subscribe: subscribeTopic,
|
|
817
|
+
unsubscribe: unsubscribeTopic,
|
|
818
|
+
publish: publishTopic,
|
|
819
|
+
listSubscriptions: listTopicSubscriptions
|
|
820
|
+
};
|
|
821
|
+
var childRuns = {
|
|
822
|
+
spawn: spawnChildRun,
|
|
823
|
+
createFanOut: createChildFanOut,
|
|
824
|
+
cancelFanOut: cancelChildFanOut,
|
|
825
|
+
inspectFanOut: inspectChildFanOut
|
|
826
|
+
};
|
|
827
|
+
var schedules = {
|
|
828
|
+
create: createSchedule,
|
|
829
|
+
cancel: cancelSchedule,
|
|
830
|
+
list: listSchedules
|
|
831
|
+
};
|
|
832
|
+
var workflows = {
|
|
833
|
+
registerDefinition: registerWorkflowDefinition,
|
|
834
|
+
getDefinitionRevision: getWorkflowDefinitionRevision,
|
|
835
|
+
listDefinitionRevisions: listWorkflowDefinitionRevisions,
|
|
836
|
+
startRun: startWorkflowRun,
|
|
837
|
+
cancelRun: cancelWorkflowRun,
|
|
838
|
+
replayRun: replayWorkflowRun,
|
|
839
|
+
inspectRun: inspectWorkflowRun
|
|
840
|
+
};
|
|
841
|
+
var addressBook = {
|
|
842
|
+
register: registerAddressBookRoute,
|
|
843
|
+
get: getAddressBookRoute,
|
|
844
|
+
list: listAddressBookRoutes
|
|
845
|
+
};
|
|
846
|
+
var presence = {
|
|
847
|
+
get: getPresence,
|
|
848
|
+
watch: watchPresence
|
|
849
|
+
};
|
|
850
|
+
var runners = { list: listRunners };
|
|
851
|
+
|
|
386
852
|
// src/index.ts
|
|
387
853
|
var AdapterOutbox = exports_adapter_outbox;
|
|
388
|
-
var Client = exports_client_public;
|
|
389
854
|
var ChildFanOutHost = exports_child_fan_out_host;
|
|
390
855
|
var Command = exports_command;
|
|
391
856
|
var Operation = exports_operation;
|
|
@@ -415,6 +880,7 @@ export {
|
|
|
415
880
|
SchemaRegistry,
|
|
416
881
|
exports_schedule_schema as Schedule,
|
|
417
882
|
Runtime,
|
|
883
|
+
exports_resident_schema as Resident,
|
|
418
884
|
PromptAssembler,
|
|
419
885
|
exports_presence_schema as Presence,
|
|
420
886
|
exports_pagination_schema as Pagination,
|
|
@@ -426,12 +892,11 @@ export {
|
|
|
426
892
|
exports_ids_schema as Ids,
|
|
427
893
|
exports_execution_schema as Execution,
|
|
428
894
|
exports_envelope_schema as Envelope,
|
|
429
|
-
exports_entity_schema as Entity,
|
|
430
895
|
EmbeddingModelService,
|
|
431
896
|
DatabaseIdentity,
|
|
432
897
|
exports_content_schema as Content,
|
|
433
898
|
Command,
|
|
434
|
-
Client,
|
|
899
|
+
exports_client as Client,
|
|
435
900
|
exports_child_orchestration_schema as ChildOrchestration,
|
|
436
901
|
ChildFanOutHost,
|
|
437
902
|
BlobStore,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
ALTER TABLE "relay_entity_kinds" RENAME TO "relay_resident_kinds";
|
|
2
|
+
--> statement-breakpoint
|
|
3
|
+
ALTER TABLE "relay_entity_instances" RENAME TO "relay_resident_instances";
|
|
4
|
+
--> statement-breakpoint
|
|
5
|
+
ALTER TABLE "relay_resident_kinds" RENAME CONSTRAINT "relay_entity_kinds_pkey" TO "relay_resident_kinds_pkey";
|
|
6
|
+
--> statement-breakpoint
|
|
7
|
+
ALTER TABLE "relay_resident_instances" RENAME CONSTRAINT "relay_entity_instances_pkey" TO "relay_resident_instances_pkey";
|
|
8
|
+
--> statement-breakpoint
|
|
9
|
+
ALTER INDEX "idx_relay_entity_instances_kind_status" RENAME TO "idx_relay_resident_instances_kind_status";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
RENAME TABLE relay_entity_kinds TO relay_resident_kinds;
|
|
2
|
+
--> statement-breakpoint
|
|
3
|
+
RENAME TABLE relay_entity_instances TO relay_resident_instances;
|
|
4
|
+
--> statement-breakpoint
|
|
5
|
+
ALTER TABLE relay_resident_instances RENAME INDEX idx_relay_entity_instances_kind_status TO idx_relay_resident_instances_kind_status;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
ALTER TABLE "relay_entity_kinds" RENAME TO "relay_resident_kinds";
|
|
2
|
+
--> statement-breakpoint
|
|
3
|
+
ALTER TABLE "relay_entity_instances" RENAME TO "relay_resident_instances";
|
|
4
|
+
--> statement-breakpoint
|
|
5
|
+
ALTER TABLE "relay_resident_kinds" RENAME CONSTRAINT "relay_entity_kinds_pkey" TO "relay_resident_kinds_pkey";
|
|
6
|
+
--> statement-breakpoint
|
|
7
|
+
ALTER TABLE "relay_resident_instances" RENAME CONSTRAINT "relay_entity_instances_pkey" TO "relay_resident_instances_pkey";
|
|
8
|
+
--> statement-breakpoint
|
|
9
|
+
ALTER INDEX "idx_relay_entity_instances_kind_status" RENAME TO "idx_relay_resident_instances_kind_status";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
ALTER TABLE relay_entity_kinds RENAME TO relay_resident_kinds;
|
|
2
|
+
--> statement-breakpoint
|
|
3
|
+
ALTER TABLE relay_entity_instances RENAME TO relay_resident_instances;
|
|
4
|
+
--> statement-breakpoint
|
|
5
|
+
DROP INDEX idx_relay_entity_instances_kind_status;
|
|
6
|
+
--> statement-breakpoint
|
|
7
|
+
CREATE INDEX idx_relay_resident_instances_kind_status ON relay_resident_instances (tenant_id, kind, status);
|