@opengeni/core 0.21.10 → 0.28.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/access/index.d.ts +1 -1
- package/dist/application/new-session-drafts.d.ts +1 -1
- package/dist/application/session-commands.d.ts +2 -2
- package/dist/billing/limits.d.ts +1 -1
- package/dist/canonical-human-identities.d.ts +12 -0
- package/dist/canonical-human-identities.js +23 -0
- package/dist/canonical-human-identities.js.map +1 -0
- package/dist/chunk-6WKPWE5S.js +2380 -0
- package/dist/chunk-6WKPWE5S.js.map +1 -0
- package/dist/chunk-IBOEYG6N.js +34 -0
- package/dist/chunk-IBOEYG6N.js.map +1 -0
- package/dist/chunk-JJU6I5XD.js +2713 -0
- package/dist/chunk-JJU6I5XD.js.map +1 -0
- package/dist/chunk-NYPMQ7NO.js +2270 -0
- package/dist/chunk-NYPMQ7NO.js.map +1 -0
- package/dist/dependencies.d.ts +30 -6
- package/dist/domain/capabilities.d.ts +28 -3
- package/dist/domain/company-profile-durable-learning-adapter.d.ts +39 -0
- package/dist/domain/conversation-integrations.d.ts +225 -0
- package/dist/domain/durable-learning-slack-publication.d.ts +72 -0
- package/dist/domain/editable-artifacts/agent-application.d.ts +192 -0
- package/dist/domain/editable-artifacts/durable-export-postgres.d.ts +4 -0
- package/dist/domain/editable-artifacts/durable-export.d.ts +212 -0
- package/dist/domain/editable-artifacts/errors.d.ts +47 -0
- package/dist/domain/editable-artifacts/hash.d.ts +11 -0
- package/dist/domain/editable-artifacts/in-memory.d.ts +99 -0
- package/dist/domain/editable-artifacts/index.d.ts +14 -0
- package/dist/domain/editable-artifacts/ports.d.ts +341 -0
- package/dist/domain/editable-artifacts/postgres-adapters.d.ts +13 -0
- package/dist/domain/editable-artifacts/service.d.ts +105 -0
- package/dist/domain/editable-artifacts/snapshot-compaction.d.ts +44 -0
- package/dist/domain/editable-artifacts/snapshot-verifier-genesis.d.ts +50 -0
- package/dist/domain/editable-artifacts/snapshot-verifier-materialization.d.ts +21 -0
- package/dist/domain/editable-artifacts/snapshot-verifier.d.ts +118 -0
- package/dist/domain/editable-artifacts/types.d.ts +410 -0
- package/dist/domain/fiken.d.ts +35 -0
- package/dist/domain/memory-slack-delivery.d.ts +19 -0
- package/dist/domain/packs.d.ts +29 -1
- package/dist/domain/personal-connection-delegations.d.ts +9 -1
- package/dist/domain/scheduled-tasks.d.ts +2 -2
- package/dist/domain/session-tool-policy.d.ts +2 -2
- package/dist/domain/sessions.d.ts +24 -8
- package/dist/domain/skill-imports.d.ts +32 -0
- package/dist/domain/slack-publication-secret-safety.d.ts +8 -0
- package/dist/domain/timeline-annotations.d.ts +5 -0
- package/dist/domain/video-generation-capabilities.d.ts +10 -0
- package/dist/domain/video-generation.d.ts +47 -0
- package/dist/editable-artifact-live/application.d.ts +69 -0
- package/dist/editable-artifact-live/errors.d.ts +1 -0
- package/dist/editable-artifact-live/index.d.ts +8 -0
- package/dist/editable-artifact-live/outbox-dispatcher.d.ts +162 -0
- package/dist/editable-artifact-live/ports.d.ts +100 -0
- package/dist/editable-artifact-live/server.d.ts +71 -0
- package/dist/editable-artifact-live/ticket.d.ts +40 -0
- package/dist/editable-artifact-live/types.d.ts +213 -0
- package/dist/editable-artifact-live/wire.d.ts +34 -0
- package/dist/editable-artifact-live.d.ts +2 -0
- package/dist/editable-artifact-live.js +58 -0
- package/dist/editable-artifact-live.js.map +1 -0
- package/dist/editable-artifacts.d.ts +2 -0
- package/dist/editable-artifacts.js +179 -0
- package/dist/editable-artifacts.js.map +1 -0
- package/dist/index.d.ts +37 -26
- package/dist/index.js +4145 -959
- package/dist/index.js.map +1 -1
- package/dist/managed-session.d.ts +6 -2
- package/dist/rigs/index.d.ts +1 -1
- package/dist/rigs/provider-images.d.ts +31 -0
- package/dist/sandbox/fleet.d.ts +8 -5
- package/dist/sandbox/routing.d.ts +1 -0
- package/dist/session-authorization.d.ts +4 -2
- package/dist/transcription.d.ts +5 -0
- package/dist/workflow-wake-contract.d.ts +7 -0
- package/package.json +22 -10
- package/src/access/index.ts +14 -2
- package/src/application/new-session-drafts.ts +2 -0
- package/src/application/session-commands.ts +188 -107
- package/src/canonical-human-identities.ts +27 -0
- package/src/dependencies.ts +34 -2
- package/src/domain/capabilities.ts +729 -408
- package/src/domain/company-profile-durable-learning-adapter.ts +221 -0
- package/src/domain/conversation-integrations.ts +1238 -0
- package/src/domain/durable-learning-slack-publication.ts +202 -0
- package/src/domain/editable-artifacts/agent-application.ts +687 -0
- package/src/domain/editable-artifacts/durable-export-postgres.ts +139 -0
- package/src/domain/editable-artifacts/durable-export.ts +734 -0
- package/src/domain/editable-artifacts/errors.ts +115 -0
- package/src/domain/editable-artifacts/hash.ts +131 -0
- package/src/domain/editable-artifacts/in-memory.ts +1662 -0
- package/src/domain/editable-artifacts/index.ts +14 -0
- package/src/domain/editable-artifacts/ports.ts +462 -0
- package/src/domain/editable-artifacts/postgres-adapters.ts +49 -0
- package/src/domain/editable-artifacts/service.ts +2402 -0
- package/src/domain/editable-artifacts/snapshot-compaction.ts +246 -0
- package/src/domain/editable-artifacts/snapshot-verifier-genesis.ts +235 -0
- package/src/domain/editable-artifacts/snapshot-verifier-materialization.ts +74 -0
- package/src/domain/editable-artifacts/snapshot-verifier.ts +687 -0
- package/src/domain/editable-artifacts/types.ts +835 -0
- package/src/domain/fiken.ts +88 -0
- package/src/domain/insights.ts +163 -50
- package/src/domain/memory-slack-delivery.ts +204 -0
- package/src/domain/memory-slack-publication.ts +5 -2
- package/src/domain/packs.ts +266 -5
- package/src/domain/personal-connection-delegations.ts +97 -6
- package/src/domain/scheduled-tasks.ts +171 -29
- package/src/domain/session-tool-policy.ts +8 -2
- package/src/domain/sessions.ts +395 -148
- package/src/domain/skill-imports.ts +350 -0
- package/src/domain/slack-publication-secret-safety.ts +42 -0
- package/src/domain/timeline-annotations.ts +204 -0
- package/src/domain/video-generation-capabilities.ts +104 -0
- package/src/domain/video-generation.ts +249 -0
- package/src/editable-artifact-live/application.ts +182 -0
- package/src/editable-artifact-live/errors.ts +4 -0
- package/src/editable-artifact-live/index.ts +8 -0
- package/src/editable-artifact-live/outbox-dispatcher.ts +916 -0
- package/src/editable-artifact-live/ports.ts +139 -0
- package/src/editable-artifact-live/server.ts +1707 -0
- package/src/editable-artifact-live/ticket.ts +217 -0
- package/src/editable-artifact-live/types.ts +286 -0
- package/src/editable-artifact-live/wire.ts +95 -0
- package/src/editable-artifact-live.ts +2 -0
- package/src/editable-artifacts.ts +2 -0
- package/src/index.ts +15 -0
- package/src/managed-session.ts +19 -2
- package/src/rigs/index.ts +26 -19
- package/src/rigs/provider-images.ts +110 -0
- package/src/sandbox/fleet.ts +72 -66
- package/src/sandbox/routing.ts +6 -3
- package/src/session-authorization.ts +187 -52
- package/src/transcription.ts +5 -0
- package/src/workflow-wake-contract.ts +8 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { EditableArtifactAuthorizationPort } from "../domain/editable-artifacts/ports.js";
|
|
2
|
+
import { type EditableArtifactActor, type EditableArtifactId, type EditableArtifactModality, type EditableArtifactScope } from "../domain/editable-artifacts/types.js";
|
|
3
|
+
import type { EditableArtifactLiveClockPort, EditableArtifactLiveTicketStorePort, EditableArtifactLiveTokenPort } from "./ports.js";
|
|
4
|
+
import { type EditableArtifactLiveTicket, type EditableArtifactLiveTicketRecord } from "./types.js";
|
|
5
|
+
export type EditableArtifactLiveTicketAuthorityDependencies = Readonly<{
|
|
6
|
+
authorization: EditableArtifactAuthorizationPort;
|
|
7
|
+
tickets: EditableArtifactLiveTicketStorePort;
|
|
8
|
+
tokens: EditableArtifactLiveTokenPort;
|
|
9
|
+
clock: EditableArtifactLiveClockPort;
|
|
10
|
+
ttlMs?: number;
|
|
11
|
+
protocolVersion?: number;
|
|
12
|
+
}>;
|
|
13
|
+
export declare class EditableArtifactLiveTicketAuthority {
|
|
14
|
+
private readonly dependencies;
|
|
15
|
+
private readonly ttlMs;
|
|
16
|
+
private readonly protocolVersion;
|
|
17
|
+
constructor(dependencies: EditableArtifactLiveTicketAuthorityDependencies);
|
|
18
|
+
mint(input: Readonly<{
|
|
19
|
+
scope: EditableArtifactScope;
|
|
20
|
+
artifactId: EditableArtifactId;
|
|
21
|
+
modality: EditableArtifactModality;
|
|
22
|
+
actor: EditableArtifactActor;
|
|
23
|
+
allowEdit: boolean;
|
|
24
|
+
}>): Promise<EditableArtifactLiveTicket>;
|
|
25
|
+
consume(input: Readonly<{
|
|
26
|
+
token: string;
|
|
27
|
+
artifactId: EditableArtifactId;
|
|
28
|
+
protocolVersion: number;
|
|
29
|
+
}>): Promise<EditableArtifactLiveTicketRecord>;
|
|
30
|
+
}
|
|
31
|
+
/** Single-process test/dev store. Production must inject a shared atomic CAS store. */
|
|
32
|
+
export declare class InMemoryEditableArtifactLiveTicketStore implements EditableArtifactLiveTicketStorePort {
|
|
33
|
+
private readonly records;
|
|
34
|
+
put(record: EditableArtifactLiveTicketRecord): Promise<void>;
|
|
35
|
+
consume(tokenDigest: string): Promise<EditableArtifactLiveTicketRecord | null>;
|
|
36
|
+
}
|
|
37
|
+
export declare class WebCryptoEditableArtifactLiveTokens implements EditableArtifactLiveTokenPort {
|
|
38
|
+
randomOpaqueToken(): string;
|
|
39
|
+
digestOpaqueToken(token: string): Promise<string>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import type { EditableArtifactActor, EditableArtifactCausalFrontier, EditableArtifactClientTransactionId, EditableArtifactContentHash, EditableArtifactId, EditableArtifactModality, EditableArtifactRequestHash, EditableArtifactScope, EditableArtifactStateHash, EditableArtifactTransactionId } from "../domain/editable-artifacts/types.js";
|
|
2
|
+
export declare const EDITABLE_ARTIFACT_LIVE_PROTOCOL_VERSION = 1;
|
|
3
|
+
export type EditableArtifactLiveTicket = Readonly<{
|
|
4
|
+
artifactId: EditableArtifactId;
|
|
5
|
+
modality: EditableArtifactModality;
|
|
6
|
+
replicaId: string;
|
|
7
|
+
token: string;
|
|
8
|
+
expiresAt: string;
|
|
9
|
+
protocolVersion: number;
|
|
10
|
+
}>;
|
|
11
|
+
/** Stored under a digest of the opaque token and atomically consumed once. */
|
|
12
|
+
export type EditableArtifactLiveTicketRecord = Readonly<{
|
|
13
|
+
tokenDigest: string;
|
|
14
|
+
scope: EditableArtifactScope;
|
|
15
|
+
artifactId: EditableArtifactId;
|
|
16
|
+
modality: EditableArtifactModality;
|
|
17
|
+
actor: EditableArtifactActor;
|
|
18
|
+
/** Delegated ceiling captured by the authenticated ticket-minting request. */
|
|
19
|
+
allowEdit: boolean;
|
|
20
|
+
protocolVersion: number;
|
|
21
|
+
issuedAt: string;
|
|
22
|
+
expiresAt: string;
|
|
23
|
+
}>;
|
|
24
|
+
type EditableArtifactLiveSnapshotCommon = Readonly<{
|
|
25
|
+
artifactId: EditableArtifactId;
|
|
26
|
+
sequence: number;
|
|
27
|
+
stateHash: EditableArtifactStateHash;
|
|
28
|
+
digest: EditableArtifactContentHash;
|
|
29
|
+
kernelVersion: string;
|
|
30
|
+
modelSchemaVersion: number;
|
|
31
|
+
bytes: Uint8Array;
|
|
32
|
+
}>;
|
|
33
|
+
export type EditableArtifactLiveSnapshot = (EditableArtifactLiveSnapshotCommon & Readonly<{
|
|
34
|
+
modality: "spreadsheet";
|
|
35
|
+
causalFrontier: EditableArtifactCausalFrontier;
|
|
36
|
+
operationProtocolVersion: number;
|
|
37
|
+
}>) | (EditableArtifactLiveSnapshotCommon & Readonly<{
|
|
38
|
+
modality: "document" | "presentation";
|
|
39
|
+
nativeRevision: number;
|
|
40
|
+
}>);
|
|
41
|
+
type EditableArtifactLiveCommittedTransactionCommon = Readonly<{
|
|
42
|
+
artifactId: EditableArtifactId;
|
|
43
|
+
transactionId: EditableArtifactTransactionId;
|
|
44
|
+
requestHash: EditableArtifactRequestHash;
|
|
45
|
+
startSequence: number;
|
|
46
|
+
endSequence: number;
|
|
47
|
+
priorStateHash: EditableArtifactStateHash;
|
|
48
|
+
stateHash: EditableArtifactStateHash;
|
|
49
|
+
committedTransactionBytes: Uint8Array;
|
|
50
|
+
}>;
|
|
51
|
+
export type EditableArtifactLiveCommittedTransaction = (EditableArtifactLiveCommittedTransactionCommon & Readonly<{
|
|
52
|
+
modality: "spreadsheet";
|
|
53
|
+
causalFrontier: EditableArtifactCausalFrontier;
|
|
54
|
+
operationProtocolVersion: number;
|
|
55
|
+
}>) | (EditableArtifactLiveCommittedTransactionCommon & Readonly<{
|
|
56
|
+
modality: "document" | "presentation";
|
|
57
|
+
priorNativeRevision: number;
|
|
58
|
+
nativeRevision: number;
|
|
59
|
+
commitProtocolVersion: number;
|
|
60
|
+
}>);
|
|
61
|
+
type EditableArtifactLiveHeadCommon = Readonly<{
|
|
62
|
+
headSequence: number;
|
|
63
|
+
stateHash: EditableArtifactStateHash;
|
|
64
|
+
minimumReplaySequence: number;
|
|
65
|
+
}>;
|
|
66
|
+
export type EditableArtifactLiveHead = (EditableArtifactLiveHeadCommon & Readonly<{
|
|
67
|
+
modality: "spreadsheet";
|
|
68
|
+
causalFrontier: EditableArtifactCausalFrontier;
|
|
69
|
+
}>) | (EditableArtifactLiveHeadCommon & Readonly<{
|
|
70
|
+
modality: "document" | "presentation";
|
|
71
|
+
nativeRevision: number;
|
|
72
|
+
}>);
|
|
73
|
+
export type EditableArtifactLiveBootstrap = EditableArtifactLiveHead & Readonly<{
|
|
74
|
+
resumeAccepted: boolean;
|
|
75
|
+
resumeSequence: number;
|
|
76
|
+
resumeStateHash: EditableArtifactStateHash;
|
|
77
|
+
snapshot: EditableArtifactLiveSnapshot | null;
|
|
78
|
+
}>;
|
|
79
|
+
type EditableArtifactLiveResumeCommon = Readonly<{
|
|
80
|
+
localCursor: number | null;
|
|
81
|
+
localStateHash: EditableArtifactStateHash | null;
|
|
82
|
+
requireSnapshot: boolean;
|
|
83
|
+
}>;
|
|
84
|
+
export type EditableArtifactLiveResume = (EditableArtifactLiveResumeCommon & Readonly<{
|
|
85
|
+
modality?: "spreadsheet";
|
|
86
|
+
localCausalFrontier: EditableArtifactCausalFrontier;
|
|
87
|
+
}>) | (EditableArtifactLiveResumeCommon & Readonly<{
|
|
88
|
+
modality: "document" | "presentation";
|
|
89
|
+
localNativeRevision: number | null;
|
|
90
|
+
}>);
|
|
91
|
+
export type EditableArtifactLiveServerFrame = Readonly<{
|
|
92
|
+
type: "open";
|
|
93
|
+
protocolVersion: number;
|
|
94
|
+
artifactId: EditableArtifactId;
|
|
95
|
+
streamEpoch: string;
|
|
96
|
+
modality: EditableArtifactModality;
|
|
97
|
+
writable: boolean;
|
|
98
|
+
headSequence: number;
|
|
99
|
+
minimumReplaySequence: number;
|
|
100
|
+
maxClientFrameBytes: number;
|
|
101
|
+
maxCommandBytes: number;
|
|
102
|
+
maxIntentBytes: number;
|
|
103
|
+
maxCommittedTransactionBytes: number;
|
|
104
|
+
maxSnapshotBytes: number;
|
|
105
|
+
maxInFlightTransactions: number;
|
|
106
|
+
maxInFlightBytes: number;
|
|
107
|
+
}> | (Readonly<{
|
|
108
|
+
type: "snapshot";
|
|
109
|
+
protocolVersion: number;
|
|
110
|
+
artifactId: EditableArtifactId;
|
|
111
|
+
streamEpoch: string;
|
|
112
|
+
sequence: number;
|
|
113
|
+
stateHash: EditableArtifactStateHash;
|
|
114
|
+
digest: EditableArtifactContentHash;
|
|
115
|
+
kernelVersion: string;
|
|
116
|
+
modelSchemaVersion: number;
|
|
117
|
+
offset: number;
|
|
118
|
+
totalBytes: number;
|
|
119
|
+
final: boolean;
|
|
120
|
+
bytes: Uint8Array;
|
|
121
|
+
}> & (Readonly<{
|
|
122
|
+
modality: "spreadsheet";
|
|
123
|
+
causalFrontier: EditableArtifactCausalFrontier;
|
|
124
|
+
}> | Readonly<{
|
|
125
|
+
modality: "document" | "presentation";
|
|
126
|
+
nativeRevision: number;
|
|
127
|
+
}>)) | Readonly<{
|
|
128
|
+
type: "transaction";
|
|
129
|
+
protocolVersion: number;
|
|
130
|
+
artifactId: EditableArtifactId;
|
|
131
|
+
streamEpoch: string;
|
|
132
|
+
transaction: EditableArtifactLiveCommittedTransaction;
|
|
133
|
+
}> | Readonly<{
|
|
134
|
+
type: "barrier";
|
|
135
|
+
protocolVersion: number;
|
|
136
|
+
artifactId: EditableArtifactId;
|
|
137
|
+
streamEpoch: string;
|
|
138
|
+
sequence: number;
|
|
139
|
+
stateHash: EditableArtifactStateHash;
|
|
140
|
+
}> | Readonly<{
|
|
141
|
+
type: "watermark";
|
|
142
|
+
protocolVersion: number;
|
|
143
|
+
artifactId: EditableArtifactId;
|
|
144
|
+
streamEpoch: string;
|
|
145
|
+
headSequence: number;
|
|
146
|
+
}> | Readonly<{
|
|
147
|
+
type: "resyncRequired";
|
|
148
|
+
protocolVersion: number;
|
|
149
|
+
artifactId: EditableArtifactId;
|
|
150
|
+
streamEpoch: string;
|
|
151
|
+
reason: "retention_gap" | "durable_gap" | "invalid_ack" | "slow_client" | "oversized_frame";
|
|
152
|
+
headSequence: number;
|
|
153
|
+
}> | Readonly<{
|
|
154
|
+
type: "applied";
|
|
155
|
+
protocolVersion: number;
|
|
156
|
+
artifactId: EditableArtifactId;
|
|
157
|
+
streamEpoch: string;
|
|
158
|
+
sequence: number;
|
|
159
|
+
stateHash: EditableArtifactStateHash;
|
|
160
|
+
}> | Readonly<{
|
|
161
|
+
type: "authorizationChanged";
|
|
162
|
+
protocolVersion: number;
|
|
163
|
+
artifactId: EditableArtifactId;
|
|
164
|
+
streamEpoch: string;
|
|
165
|
+
writable: boolean;
|
|
166
|
+
}> | Readonly<{
|
|
167
|
+
type: "mutationAccepted";
|
|
168
|
+
protocolVersion: number;
|
|
169
|
+
artifactId: EditableArtifactId;
|
|
170
|
+
streamEpoch: string;
|
|
171
|
+
requestHash: EditableArtifactRequestHash;
|
|
172
|
+
clientTransactionId: EditableArtifactClientTransactionId;
|
|
173
|
+
transactionId: EditableArtifactTransactionId;
|
|
174
|
+
startSequence: number;
|
|
175
|
+
endSequence: number;
|
|
176
|
+
stateHash: EditableArtifactStateHash;
|
|
177
|
+
}> | Readonly<{
|
|
178
|
+
type: "mutationRejected";
|
|
179
|
+
protocolVersion: number;
|
|
180
|
+
artifactId: EditableArtifactId;
|
|
181
|
+
streamEpoch: string;
|
|
182
|
+
requestHash: EditableArtifactRequestHash;
|
|
183
|
+
code: "invalid_request" | "forbidden" | "conflict" | "unsupported" | "unavailable";
|
|
184
|
+
retryable: boolean;
|
|
185
|
+
}>;
|
|
186
|
+
export type EditableArtifactLiveAppliedClientFrame = Readonly<{
|
|
187
|
+
type: "applied";
|
|
188
|
+
protocolVersion: number;
|
|
189
|
+
artifactId: EditableArtifactId;
|
|
190
|
+
streamEpoch: string;
|
|
191
|
+
sequence: number;
|
|
192
|
+
stateHash: EditableArtifactStateHash;
|
|
193
|
+
}>;
|
|
194
|
+
export type EditableArtifactLiveMutationClientFrame = Readonly<{
|
|
195
|
+
protocolVersion: number;
|
|
196
|
+
artifactId: EditableArtifactId;
|
|
197
|
+
streamEpoch: string;
|
|
198
|
+
requestHash: EditableArtifactRequestHash;
|
|
199
|
+
intentBytes: Uint8Array;
|
|
200
|
+
}>;
|
|
201
|
+
export type EditableArtifactLiveClientFrame = EditableArtifactLiveAppliedClientFrame;
|
|
202
|
+
export type EditableArtifactLiveCloseReason = "closed" | "ticket_expired" | "ticket_replayed" | "protocol_mismatch" | "permission_changed" | "invalid_frame" | "oversized_frame" | "stale_epoch" | "invalid_ack" | "retention_gap" | "durable_gap" | "slow_client" | "transport_error";
|
|
203
|
+
export type EditableArtifactLiveClose = Readonly<{
|
|
204
|
+
reason: EditableArtifactLiveCloseReason;
|
|
205
|
+
retryable: boolean;
|
|
206
|
+
requiresSnapshot: boolean;
|
|
207
|
+
}>;
|
|
208
|
+
export type EditableArtifactLiveMutationReceipt = Readonly<{
|
|
209
|
+
clientTransactionId: EditableArtifactClientTransactionId;
|
|
210
|
+
requestHash: EditableArtifactRequestHash;
|
|
211
|
+
transaction: EditableArtifactLiveCommittedTransaction;
|
|
212
|
+
}>;
|
|
213
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { EDITABLE_ARTIFACT_LIVE_WIRE_VERSION, decodeEditableArtifactLiveServerWireFrame, inspectEditableArtifactLiveWireEnvelope } from "@opengeni/contracts/editable-artifact-live";
|
|
2
|
+
import type { EditableArtifactId, EditableArtifactRequestHash, EditableArtifactStateHash } from "../domain/editable-artifacts/types.js";
|
|
3
|
+
import type { EditableArtifactLiveResume, EditableArtifactLiveServerFrame } from "./types.js";
|
|
4
|
+
export { EDITABLE_ARTIFACT_LIVE_WIRE_VERSION, decodeEditableArtifactLiveServerWireFrame, inspectEditableArtifactLiveWireEnvelope, };
|
|
5
|
+
/** Branded core view over the contracts-owned wire type. Runtime validation is contracts-only. */
|
|
6
|
+
export type EditableArtifactLiveOpenWireFrame = Readonly<{
|
|
7
|
+
type: "open";
|
|
8
|
+
protocolVersion: number;
|
|
9
|
+
artifactId: EditableArtifactId;
|
|
10
|
+
token: string;
|
|
11
|
+
resume: EditableArtifactLiveResume;
|
|
12
|
+
}>;
|
|
13
|
+
export type EditableArtifactLiveAppliedWireFrame = Readonly<{
|
|
14
|
+
type: "applied";
|
|
15
|
+
protocolVersion: number;
|
|
16
|
+
artifactId: EditableArtifactId;
|
|
17
|
+
streamEpoch: string;
|
|
18
|
+
sequence: number;
|
|
19
|
+
stateHash: EditableArtifactStateHash;
|
|
20
|
+
}>;
|
|
21
|
+
export type EditableArtifactLiveMutationWireFrame = Readonly<{
|
|
22
|
+
type: "mutation";
|
|
23
|
+
protocolVersion: number;
|
|
24
|
+
artifactId: EditableArtifactId;
|
|
25
|
+
streamEpoch: string;
|
|
26
|
+
requestHash: EditableArtifactRequestHash;
|
|
27
|
+
intentBytes: Uint8Array;
|
|
28
|
+
}>;
|
|
29
|
+
export type EditableArtifactLiveClientWireFrame = EditableArtifactLiveOpenWireFrame | EditableArtifactLiveAppliedWireFrame | EditableArtifactLiveMutationWireFrame;
|
|
30
|
+
export declare function decodeEditableArtifactLiveClientWireFrame(bytes: Uint8Array): EditableArtifactLiveClientWireFrame;
|
|
31
|
+
export declare function encodeEditableArtifactLiveOpenWireFrame(frame: EditableArtifactLiveOpenWireFrame): Uint8Array;
|
|
32
|
+
export declare function encodeEditableArtifactLiveAppliedWireFrame(frame: EditableArtifactLiveAppliedWireFrame): Uint8Array;
|
|
33
|
+
export declare function encodeEditableArtifactLiveMutationWireFrame(frame: EditableArtifactLiveMutationWireFrame): Uint8Array;
|
|
34
|
+
export declare function encodeEditableArtifactLiveServerWireFrame(frame: EditableArtifactLiveServerFrame): Uint8Array;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import {
|
|
2
|
+
EDITABLE_ARTIFACT_HINT_MAX_BYTES,
|
|
3
|
+
EDITABLE_ARTIFACT_HINT_SUBJECT_PREFIX,
|
|
4
|
+
EDITABLE_ARTIFACT_LIVE_PROTOCOL_VERSION,
|
|
5
|
+
EDITABLE_ARTIFACT_LIVE_WIRE_VERSION,
|
|
6
|
+
EditableArtifactApplication,
|
|
7
|
+
EditableArtifactCompatibilityError,
|
|
8
|
+
EditableArtifactHintEncodingError,
|
|
9
|
+
EditableArtifactLiveError,
|
|
10
|
+
EditableArtifactLiveOutboxDispatcher,
|
|
11
|
+
EditableArtifactLiveServer,
|
|
12
|
+
EditableArtifactLiveTicketAuthority,
|
|
13
|
+
InMemoryEditableArtifactLiveTicketStore,
|
|
14
|
+
MathEditableArtifactOutboxRandom,
|
|
15
|
+
SystemEditableArtifactLiveClock,
|
|
16
|
+
SystemEditableArtifactLiveScheduler,
|
|
17
|
+
WebCryptoEditableArtifactLiveTokens,
|
|
18
|
+
decodeEditableArtifactBrokerHint,
|
|
19
|
+
decodeEditableArtifactLiveClientWireFrame,
|
|
20
|
+
decodeEditableArtifactLiveServerWireFrame,
|
|
21
|
+
editableArtifactLiveHintSubject,
|
|
22
|
+
encodeEditableArtifactBrokerHint,
|
|
23
|
+
encodeEditableArtifactLiveAppliedWireFrame,
|
|
24
|
+
encodeEditableArtifactLiveMutationWireFrame,
|
|
25
|
+
encodeEditableArtifactLiveOpenWireFrame,
|
|
26
|
+
encodeEditableArtifactLiveServerWireFrame,
|
|
27
|
+
inspectEditableArtifactLiveWireEnvelope
|
|
28
|
+
} from "./chunk-NYPMQ7NO.js";
|
|
29
|
+
import "./chunk-JJU6I5XD.js";
|
|
30
|
+
export {
|
|
31
|
+
EDITABLE_ARTIFACT_HINT_MAX_BYTES,
|
|
32
|
+
EDITABLE_ARTIFACT_HINT_SUBJECT_PREFIX,
|
|
33
|
+
EDITABLE_ARTIFACT_LIVE_PROTOCOL_VERSION,
|
|
34
|
+
EDITABLE_ARTIFACT_LIVE_WIRE_VERSION,
|
|
35
|
+
EditableArtifactApplication,
|
|
36
|
+
EditableArtifactCompatibilityError,
|
|
37
|
+
EditableArtifactHintEncodingError,
|
|
38
|
+
EditableArtifactLiveError,
|
|
39
|
+
EditableArtifactLiveOutboxDispatcher,
|
|
40
|
+
EditableArtifactLiveServer,
|
|
41
|
+
EditableArtifactLiveTicketAuthority,
|
|
42
|
+
InMemoryEditableArtifactLiveTicketStore,
|
|
43
|
+
MathEditableArtifactOutboxRandom,
|
|
44
|
+
SystemEditableArtifactLiveClock,
|
|
45
|
+
SystemEditableArtifactLiveScheduler,
|
|
46
|
+
WebCryptoEditableArtifactLiveTokens,
|
|
47
|
+
decodeEditableArtifactBrokerHint,
|
|
48
|
+
decodeEditableArtifactLiveClientWireFrame,
|
|
49
|
+
decodeEditableArtifactLiveServerWireFrame,
|
|
50
|
+
editableArtifactLiveHintSubject,
|
|
51
|
+
encodeEditableArtifactBrokerHint,
|
|
52
|
+
encodeEditableArtifactLiveAppliedWireFrame,
|
|
53
|
+
encodeEditableArtifactLiveMutationWireFrame,
|
|
54
|
+
encodeEditableArtifactLiveOpenWireFrame,
|
|
55
|
+
encodeEditableArtifactLiveServerWireFrame,
|
|
56
|
+
inspectEditableArtifactLiveWireEnvelope
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=editable-artifact-live.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import {
|
|
2
|
+
EDITABLE_ARTIFACT_EXPORT_MAX_DOWNLOAD_BYTES,
|
|
3
|
+
EDITABLE_ARTIFACT_EXPORT_MAX_OPTIONS_BYTES,
|
|
4
|
+
EditableArtifactAgentApplication,
|
|
5
|
+
EditableArtifactCompactionPipeline,
|
|
6
|
+
EditableArtifactDurableExportError,
|
|
7
|
+
EditableArtifactDurableExportService,
|
|
8
|
+
EditableArtifactGenesisPipeline,
|
|
9
|
+
EditableArtifactOfficeImportError,
|
|
10
|
+
InMemoryEditableArtifactStableIdFactory,
|
|
11
|
+
InMemoryEditableArtifactStore,
|
|
12
|
+
SystemEditableArtifactClock,
|
|
13
|
+
editableArtifactAuthorizationRevisionPortFromPostgres,
|
|
14
|
+
editableArtifactDurableExportStorePortFromPostgres,
|
|
15
|
+
editableArtifactFormatMatchesModality,
|
|
16
|
+
editableArtifactLiveReadPortFromPostgres,
|
|
17
|
+
editableArtifactLiveTicketStorePortFromPostgres,
|
|
18
|
+
editableArtifactMaterializationKey,
|
|
19
|
+
editableArtifactMaterializationMimeType,
|
|
20
|
+
editableArtifactScopeAuthorizationRevisionPortFromPostgres,
|
|
21
|
+
editableArtifactStorePortFromPostgres,
|
|
22
|
+
validateEditableArtifactMaterializationJob,
|
|
23
|
+
validateEditableArtifactPinnedVersion
|
|
24
|
+
} from "./chunk-6WKPWE5S.js";
|
|
25
|
+
import {
|
|
26
|
+
EDITABLE_ARTIFACT_COMPACTION_BYTE_THRESHOLD,
|
|
27
|
+
EDITABLE_ARTIFACT_COMPACTION_TRANSACTION_THRESHOLD,
|
|
28
|
+
EDITABLE_ARTIFACT_INTENT_PROTOCOL_VERSION,
|
|
29
|
+
EDITABLE_ARTIFACT_MAX_COMMAND_BYTES_PER_TRANSACTION,
|
|
30
|
+
EDITABLE_ARTIFACT_MAX_COMMITTED_TRANSACTION_BYTES,
|
|
31
|
+
EDITABLE_ARTIFACT_MAX_COMMIT_ATTEMPTS,
|
|
32
|
+
EDITABLE_ARTIFACT_MAX_INTENT_BYTES_PER_TRANSACTION,
|
|
33
|
+
EDITABLE_ARTIFACT_MAX_OPERATIONS_PER_TRANSACTION,
|
|
34
|
+
EDITABLE_ARTIFACT_MAX_OPERATION_BYTES_PER_TRANSACTION,
|
|
35
|
+
EDITABLE_ARTIFACT_MAX_UNDO_TARGETS_PER_TRANSACTION,
|
|
36
|
+
EDITABLE_ARTIFACT_OPERATION_PROTOCOL_VERSION,
|
|
37
|
+
EDITABLE_ARTIFACT_ORIGINAL_IMPORT_MAX_BYTES,
|
|
38
|
+
EditableArtifactCausalChainError,
|
|
39
|
+
EditableArtifactCausalFutureError,
|
|
40
|
+
EditableArtifactDomainError,
|
|
41
|
+
EditableArtifactForbiddenError,
|
|
42
|
+
EditableArtifactIdempotencyConflictError,
|
|
43
|
+
EditableArtifactInvalidRequestError,
|
|
44
|
+
EditableArtifactKernelContractError,
|
|
45
|
+
EditableArtifactNotEditableError,
|
|
46
|
+
EditableArtifactNotFoundError,
|
|
47
|
+
EditableArtifactOutboxLeaseConflictError,
|
|
48
|
+
EditableArtifactRequestHashMismatchError,
|
|
49
|
+
EditableArtifactRetryableConflictError,
|
|
50
|
+
EditableArtifactService,
|
|
51
|
+
EditableArtifactSnapshotConflictError,
|
|
52
|
+
EditableArtifactSnapshotVerificationError,
|
|
53
|
+
EditableArtifactStaleBaseError,
|
|
54
|
+
EditableArtifactUndoTargetError,
|
|
55
|
+
MAX_EDITABLE_ARTIFACT_SNAPSHOT_BYTES,
|
|
56
|
+
MAX_EDITABLE_ARTIFACT_SNAPSHOT_TAIL_BYTES,
|
|
57
|
+
MAX_EDITABLE_ARTIFACT_SNAPSHOT_TAIL_SEGMENTS,
|
|
58
|
+
MAX_EDITABLE_ARTIFACT_SNAPSHOT_TAIL_SEGMENT_BYTES,
|
|
59
|
+
OgatxEditableArtifactMutationIntentCodec,
|
|
60
|
+
ProductionEditableArtifactSnapshotVerifier,
|
|
61
|
+
assertBoundedArtifactTitle,
|
|
62
|
+
assertBoundedKernelVersion,
|
|
63
|
+
assertBoundedOpaqueReference,
|
|
64
|
+
assertIsoTimestamp,
|
|
65
|
+
assertNonnegativeSafeInteger,
|
|
66
|
+
assertPositiveSafeInteger,
|
|
67
|
+
causalCounter,
|
|
68
|
+
causalFrontierDominates,
|
|
69
|
+
causalFrontiersEqual,
|
|
70
|
+
compareCodeUnits,
|
|
71
|
+
editableArtifactActorKey,
|
|
72
|
+
editableArtifactCausalFrontier,
|
|
73
|
+
editableArtifactClientTransactionId,
|
|
74
|
+
editableArtifactContentHash,
|
|
75
|
+
editableArtifactId,
|
|
76
|
+
editableArtifactOperationId,
|
|
77
|
+
editableArtifactOutboxId,
|
|
78
|
+
editableArtifactReceiptId,
|
|
79
|
+
editableArtifactReplicaId,
|
|
80
|
+
editableArtifactRequestHash,
|
|
81
|
+
editableArtifactScope,
|
|
82
|
+
editableArtifactSnapshotId,
|
|
83
|
+
editableArtifactStateHash,
|
|
84
|
+
editableArtifactTransactionId,
|
|
85
|
+
hashEditableArtifactCreateRequest,
|
|
86
|
+
hashEditableArtifactImportRequest,
|
|
87
|
+
mergeCausalFrontiers,
|
|
88
|
+
ogatxEditableArtifactMutationIntentCodec,
|
|
89
|
+
validateEditableArtifactActor
|
|
90
|
+
} from "./chunk-JJU6I5XD.js";
|
|
91
|
+
export {
|
|
92
|
+
EDITABLE_ARTIFACT_COMPACTION_BYTE_THRESHOLD,
|
|
93
|
+
EDITABLE_ARTIFACT_COMPACTION_TRANSACTION_THRESHOLD,
|
|
94
|
+
EDITABLE_ARTIFACT_EXPORT_MAX_DOWNLOAD_BYTES,
|
|
95
|
+
EDITABLE_ARTIFACT_EXPORT_MAX_OPTIONS_BYTES,
|
|
96
|
+
EDITABLE_ARTIFACT_INTENT_PROTOCOL_VERSION,
|
|
97
|
+
EDITABLE_ARTIFACT_MAX_COMMAND_BYTES_PER_TRANSACTION,
|
|
98
|
+
EDITABLE_ARTIFACT_MAX_COMMITTED_TRANSACTION_BYTES,
|
|
99
|
+
EDITABLE_ARTIFACT_MAX_COMMIT_ATTEMPTS,
|
|
100
|
+
EDITABLE_ARTIFACT_MAX_INTENT_BYTES_PER_TRANSACTION,
|
|
101
|
+
EDITABLE_ARTIFACT_MAX_OPERATIONS_PER_TRANSACTION,
|
|
102
|
+
EDITABLE_ARTIFACT_MAX_OPERATION_BYTES_PER_TRANSACTION,
|
|
103
|
+
EDITABLE_ARTIFACT_MAX_UNDO_TARGETS_PER_TRANSACTION,
|
|
104
|
+
EDITABLE_ARTIFACT_OPERATION_PROTOCOL_VERSION,
|
|
105
|
+
EDITABLE_ARTIFACT_ORIGINAL_IMPORT_MAX_BYTES,
|
|
106
|
+
EditableArtifactAgentApplication,
|
|
107
|
+
EditableArtifactCausalChainError,
|
|
108
|
+
EditableArtifactCausalFutureError,
|
|
109
|
+
EditableArtifactCompactionPipeline,
|
|
110
|
+
EditableArtifactDomainError,
|
|
111
|
+
EditableArtifactDurableExportError,
|
|
112
|
+
EditableArtifactDurableExportService,
|
|
113
|
+
EditableArtifactForbiddenError,
|
|
114
|
+
EditableArtifactGenesisPipeline,
|
|
115
|
+
EditableArtifactIdempotencyConflictError,
|
|
116
|
+
EditableArtifactInvalidRequestError,
|
|
117
|
+
EditableArtifactKernelContractError,
|
|
118
|
+
EditableArtifactNotEditableError,
|
|
119
|
+
EditableArtifactNotFoundError,
|
|
120
|
+
EditableArtifactOfficeImportError,
|
|
121
|
+
EditableArtifactOutboxLeaseConflictError,
|
|
122
|
+
EditableArtifactRequestHashMismatchError,
|
|
123
|
+
EditableArtifactRetryableConflictError,
|
|
124
|
+
EditableArtifactService,
|
|
125
|
+
EditableArtifactSnapshotConflictError,
|
|
126
|
+
EditableArtifactSnapshotVerificationError,
|
|
127
|
+
EditableArtifactStaleBaseError,
|
|
128
|
+
EditableArtifactUndoTargetError,
|
|
129
|
+
InMemoryEditableArtifactStableIdFactory,
|
|
130
|
+
InMemoryEditableArtifactStore,
|
|
131
|
+
MAX_EDITABLE_ARTIFACT_SNAPSHOT_BYTES,
|
|
132
|
+
MAX_EDITABLE_ARTIFACT_SNAPSHOT_TAIL_BYTES,
|
|
133
|
+
MAX_EDITABLE_ARTIFACT_SNAPSHOT_TAIL_SEGMENTS,
|
|
134
|
+
MAX_EDITABLE_ARTIFACT_SNAPSHOT_TAIL_SEGMENT_BYTES,
|
|
135
|
+
OgatxEditableArtifactMutationIntentCodec,
|
|
136
|
+
ProductionEditableArtifactSnapshotVerifier,
|
|
137
|
+
SystemEditableArtifactClock,
|
|
138
|
+
assertBoundedArtifactTitle,
|
|
139
|
+
assertBoundedKernelVersion,
|
|
140
|
+
assertBoundedOpaqueReference,
|
|
141
|
+
assertIsoTimestamp,
|
|
142
|
+
assertNonnegativeSafeInteger,
|
|
143
|
+
assertPositiveSafeInteger,
|
|
144
|
+
causalCounter,
|
|
145
|
+
causalFrontierDominates,
|
|
146
|
+
causalFrontiersEqual,
|
|
147
|
+
compareCodeUnits,
|
|
148
|
+
editableArtifactActorKey,
|
|
149
|
+
editableArtifactAuthorizationRevisionPortFromPostgres,
|
|
150
|
+
editableArtifactCausalFrontier,
|
|
151
|
+
editableArtifactClientTransactionId,
|
|
152
|
+
editableArtifactContentHash,
|
|
153
|
+
editableArtifactDurableExportStorePortFromPostgres,
|
|
154
|
+
editableArtifactFormatMatchesModality,
|
|
155
|
+
editableArtifactId,
|
|
156
|
+
editableArtifactLiveReadPortFromPostgres,
|
|
157
|
+
editableArtifactLiveTicketStorePortFromPostgres,
|
|
158
|
+
editableArtifactMaterializationKey,
|
|
159
|
+
editableArtifactMaterializationMimeType,
|
|
160
|
+
editableArtifactOperationId,
|
|
161
|
+
editableArtifactOutboxId,
|
|
162
|
+
editableArtifactReceiptId,
|
|
163
|
+
editableArtifactReplicaId,
|
|
164
|
+
editableArtifactRequestHash,
|
|
165
|
+
editableArtifactScope,
|
|
166
|
+
editableArtifactScopeAuthorizationRevisionPortFromPostgres,
|
|
167
|
+
editableArtifactSnapshotId,
|
|
168
|
+
editableArtifactStateHash,
|
|
169
|
+
editableArtifactStorePortFromPostgres,
|
|
170
|
+
editableArtifactTransactionId,
|
|
171
|
+
hashEditableArtifactCreateRequest,
|
|
172
|
+
hashEditableArtifactImportRequest,
|
|
173
|
+
mergeCausalFrontiers,
|
|
174
|
+
ogatxEditableArtifactMutationIntentCodec,
|
|
175
|
+
validateEditableArtifactActor,
|
|
176
|
+
validateEditableArtifactMaterializationJob,
|
|
177
|
+
validateEditableArtifactPinnedVersion
|
|
178
|
+
};
|
|
179
|
+
//# sourceMappingURL=editable-artifacts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,26 +1,37 @@
|
|
|
1
|
-
export * from "./dependencies";
|
|
2
|
-
export * from "./workflow-wake-contract";
|
|
3
|
-
export * from "./sandbox-types";
|
|
4
|
-
export * from "./managed-auth-type";
|
|
5
|
-
export * from "./managed-session";
|
|
6
|
-
export * from "./transcription";
|
|
7
|
-
export * from "./sandbox/fleet";
|
|
8
|
-
export * from "./sandbox/routing";
|
|
9
|
-
export * from "./access";
|
|
10
|
-
export * from "./session-authorization";
|
|
11
|
-
export * from "./billing/limits";
|
|
12
|
-
export * from "./domain/capabilities";
|
|
13
|
-
export * from "./domain/
|
|
14
|
-
export * from "./
|
|
15
|
-
export * from "./
|
|
16
|
-
export * from "./domain/
|
|
17
|
-
export * from "./domain/
|
|
18
|
-
export * from "./domain/
|
|
19
|
-
export * from "./domain/
|
|
20
|
-
export * from "./domain/
|
|
21
|
-
export * from "./domain/
|
|
22
|
-
export * from "./domain/
|
|
23
|
-
export * from "./domain/slack-
|
|
24
|
-
export * from "./domain/
|
|
25
|
-
export * from "./
|
|
26
|
-
export * from "./
|
|
1
|
+
export * from "./dependencies.js";
|
|
2
|
+
export * from "./workflow-wake-contract.js";
|
|
3
|
+
export * from "./sandbox-types.js";
|
|
4
|
+
export * from "./managed-auth-type.js";
|
|
5
|
+
export * from "./managed-session.js";
|
|
6
|
+
export * from "./transcription.js";
|
|
7
|
+
export * from "./sandbox/fleet.js";
|
|
8
|
+
export * from "./sandbox/routing.js";
|
|
9
|
+
export * from "./access/index.js";
|
|
10
|
+
export * from "./session-authorization.js";
|
|
11
|
+
export * from "./billing/limits.js";
|
|
12
|
+
export * from "./domain/capabilities.js";
|
|
13
|
+
export * from "./domain/skill-imports.js";
|
|
14
|
+
export * from "./domain/environments.js";
|
|
15
|
+
export * from "./rigs/index.js";
|
|
16
|
+
export * from "./domain/packs.js";
|
|
17
|
+
export * from "./domain/personal-connection-delegations.js";
|
|
18
|
+
export * from "./domain/resources.js";
|
|
19
|
+
export * from "./domain/session-tool-policy.js";
|
|
20
|
+
export * from "./domain/scheduled-tasks.js";
|
|
21
|
+
export * from "./domain/sessions.js";
|
|
22
|
+
export * from "./domain/insights.js";
|
|
23
|
+
export * from "./domain/memory-slack-publication.js";
|
|
24
|
+
export * from "./domain/memory-slack-delivery.js";
|
|
25
|
+
export * from "./domain/durable-learning-slack-publication.js";
|
|
26
|
+
export * from "./domain/slack-publication-secret-safety.js";
|
|
27
|
+
export * from "./domain/company-profile-durable-learning-adapter.js";
|
|
28
|
+
export * from "./domain/slack-bot.js";
|
|
29
|
+
export * from "./domain/conversation-integrations.js";
|
|
30
|
+
export * from "./domain/fiken.js";
|
|
31
|
+
export * from "./domain/workspace-members.js";
|
|
32
|
+
export * from "./domain/video-generation.js";
|
|
33
|
+
export * from "./domain/video-generation-capabilities.js";
|
|
34
|
+
export * from "./application/new-session-drafts.js";
|
|
35
|
+
export * from "./application/session-commands.js";
|
|
36
|
+
export * from "./editable-artifact-live.js";
|
|
37
|
+
export * from "./editable-artifacts.js";
|