@neta-art/cohub 8.21.1 → 8.23.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/board/core/connections.d.ts +18 -1
- package/dist/board/core/connections.js +43 -2
- package/dist/board/export/scene.js +2 -1
- package/dist/board/geometry.d.ts +3 -1
- package/dist/board/geometry.js +16 -1
- package/dist/board/index.d.ts +3 -3
- package/dist/board/index.js +3 -3
- package/dist/board/render/connection-layer.d.ts +6 -1
- package/dist/board/render/connection-layer.js +274 -122
- package/dist/board/task.d.ts +2 -3
- package/dist/board/task.js +25 -95
- package/dist/chunks/environment.d.ts +174 -60
- package/dist/chunks/http.d.ts +78 -8
- package/dist/chunks/http.js +12 -0
- package/dist/chunks/websocket.d.ts +1 -1
- package/dist/generation-blocks.js +125 -0
- package/dist/http.d.ts +3 -3
- package/dist/index.d.ts +123 -3
- package/dist/index.js +721 -42
- package/dist/media.d.ts +81 -0
- package/dist/media.js +177 -0
- package/package.json +5 -1
|
@@ -5558,7 +5558,6 @@ type AppVersionPublishedEvent = {
|
|
|
5558
5558
|
payload: {
|
|
5559
5559
|
app: RealtimeAppRecord;
|
|
5560
5560
|
version: RealtimeAppVersionRecord;
|
|
5561
|
-
standaloneUrl?: string | null;
|
|
5562
5561
|
previousVersionId: string | null;
|
|
5563
5562
|
actor: {
|
|
5564
5563
|
userId: string;
|
|
@@ -5852,30 +5851,6 @@ declare function assertGenerationRequestAllowedByPolicy(input: {
|
|
|
5852
5851
|
declare function filterGenerationDeclarationsByPolicy<T extends PublicDeclaration>(declarations: T[], policy: GenerationPolicy | null): T[];
|
|
5853
5852
|
//#endregion
|
|
5854
5853
|
//#region ../protocol/dist/runtime/native.d.ts
|
|
5855
|
-
/** One native execution maps to one Cohub Turn. No message-level fork anchors. */
|
|
5856
|
-
declare const nativeTurnStartSchema: z.ZodObject<{
|
|
5857
|
-
turnId: z.ZodUUID;
|
|
5858
|
-
sessionId: z.ZodNullable<z.ZodUUID>;
|
|
5859
|
-
parentTurnId: z.ZodNullable<z.ZodUUID>;
|
|
5860
|
-
branchSessionId: z.ZodUUID;
|
|
5861
|
-
harness: z.ZodEnum<{
|
|
5862
|
-
codex: "codex";
|
|
5863
|
-
pi: "pi";
|
|
5864
|
-
}>;
|
|
5865
|
-
nativeSessionId: z.ZodString;
|
|
5866
|
-
userContent: z.ZodArray<z.ZodType<ContentBlock, unknown, z.core.$ZodTypeInternals<ContentBlock, unknown>>>;
|
|
5867
|
-
startedAt: z.ZodISODateTime;
|
|
5868
|
-
sessionStartedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
5869
|
-
origin: z.ZodOptional<z.ZodEnum<{
|
|
5870
|
-
local_import: "local_import";
|
|
5871
|
-
}>>;
|
|
5872
|
-
}, z.core.$strict>;
|
|
5873
|
-
type NativeTurnStart = z.infer<typeof nativeTurnStartSchema>;
|
|
5874
|
-
type NativeTurnBinding = {
|
|
5875
|
-
sessionId: string;
|
|
5876
|
-
turnId: string;
|
|
5877
|
-
forked: boolean;
|
|
5878
|
-
};
|
|
5879
5854
|
declare const nativeTurnMessageSchema: z.ZodObject<{
|
|
5880
5855
|
content: z.ZodArray<z.ZodType<ContentBlock, unknown, z.core.$ZodTypeInternals<ContentBlock, unknown>>>;
|
|
5881
5856
|
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -5898,9 +5873,10 @@ declare const nativeTurnMessageSchema: z.ZodObject<{
|
|
|
5898
5873
|
errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5899
5874
|
}, z.core.$strict>;
|
|
5900
5875
|
type NativeTurnMessage = z.infer<typeof nativeTurnMessageSchema>;
|
|
5901
|
-
/** Ephemeral display
|
|
5876
|
+
/** Ephemeral display state within a Turn; never a fork or persistence boundary. */
|
|
5902
5877
|
declare const nativeTurnProgressSchema: z.ZodObject<{
|
|
5903
5878
|
revision: z.ZodNumber;
|
|
5879
|
+
from: z.ZodOptional<z.ZodNumber>;
|
|
5904
5880
|
messages: z.ZodArray<z.ZodObject<{
|
|
5905
5881
|
content: z.ZodArray<z.ZodType<ContentBlock, unknown, z.core.$ZodTypeInternals<ContentBlock, unknown>>>;
|
|
5906
5882
|
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -5955,31 +5931,16 @@ declare const nativeTurnCompleteSchema: z.ZodObject<{
|
|
|
5955
5931
|
completedAt: z.ZodISODateTime;
|
|
5956
5932
|
}, z.core.$strict>;
|
|
5957
5933
|
type NativeTurnComplete = z.infer<typeof nativeTurnCompleteSchema>;
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
input: z.ZodObject<{
|
|
5961
|
-
turnId: z.ZodUUID;
|
|
5962
|
-
sessionId: z.ZodNullable<z.ZodUUID>;
|
|
5963
|
-
parentTurnId: z.ZodNullable<z.ZodUUID>;
|
|
5964
|
-
branchSessionId: z.ZodUUID;
|
|
5965
|
-
harness: z.ZodEnum<{
|
|
5966
|
-
codex: "codex";
|
|
5967
|
-
pi: "pi";
|
|
5968
|
-
}>;
|
|
5969
|
-
nativeSessionId: z.ZodString;
|
|
5970
|
-
userContent: z.ZodArray<z.ZodType<ContentBlock, unknown, z.core.$ZodTypeInternals<ContentBlock, unknown>>>;
|
|
5971
|
-
startedAt: z.ZodISODateTime;
|
|
5972
|
-
sessionStartedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
5973
|
-
origin: z.ZodOptional<z.ZodEnum<{
|
|
5974
|
-
local_import: "local_import";
|
|
5975
|
-
}>>;
|
|
5976
|
-
}, z.core.$strict>;
|
|
5977
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
5978
|
-
type: z.ZodLiteral<"progress">;
|
|
5979
|
-
sessionId: z.ZodUUID;
|
|
5934
|
+
/** Durable ingest of one transcript's Turns. */
|
|
5935
|
+
declare const nativeIngestTurnSchema: z.ZodObject<{
|
|
5980
5936
|
turnId: z.ZodUUID;
|
|
5981
|
-
|
|
5982
|
-
|
|
5937
|
+
parentTurnId: z.ZodNullable<z.ZodUUID>;
|
|
5938
|
+
userContent: z.ZodArray<z.ZodType<ContentBlock, unknown, z.core.$ZodTypeInternals<ContentBlock, unknown>>>;
|
|
5939
|
+
startedAt: z.ZodISODateTime;
|
|
5940
|
+
origin: z.ZodOptional<z.ZodEnum<{
|
|
5941
|
+
local_import: "local_import";
|
|
5942
|
+
}>>;
|
|
5943
|
+
result: z.ZodNullable<z.ZodObject<{
|
|
5983
5944
|
messages: z.ZodArray<z.ZodObject<{
|
|
5984
5945
|
content: z.ZodArray<z.ZodType<ContentBlock, unknown, z.core.$ZodTypeInternals<ContentBlock, unknown>>>;
|
|
5985
5946
|
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -6001,12 +5962,126 @@ declare const nativeRuntimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6001
5962
|
stopReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6002
5963
|
errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6003
5964
|
}, z.core.$strict>>;
|
|
5965
|
+
status: z.ZodEnum<{
|
|
5966
|
+
completed: "completed";
|
|
5967
|
+
failed: "failed";
|
|
5968
|
+
interrupted: "interrupted";
|
|
5969
|
+
}>;
|
|
5970
|
+
completedAt: z.ZodISODateTime;
|
|
5971
|
+
}, z.core.$strict>>;
|
|
5972
|
+
controllable: z.ZodOptional<z.ZodBoolean>;
|
|
5973
|
+
}, z.core.$strict>;
|
|
5974
|
+
type NativeIngestTurn = z.infer<typeof nativeIngestTurnSchema>;
|
|
5975
|
+
/** Turn states that end a Turn; a native Turn in one of them is settled on both sides. */
|
|
5976
|
+
declare const SETTLED_TURN_STATUSES: readonly ["completed", "failed", "interrupted", "cancelled", "merged"];
|
|
5977
|
+
/** How many Turns one ingest may carry; a larger backlog is sent as consecutive batches. */
|
|
5978
|
+
declare const NATIVE_INGEST_MAX_TURNS = 500;
|
|
5979
|
+
declare const nativeIngestSchema: z.ZodObject<{
|
|
5980
|
+
harness: z.ZodEnum<{
|
|
5981
|
+
codex: "codex";
|
|
5982
|
+
pi: "pi";
|
|
5983
|
+
}>;
|
|
5984
|
+
nativeSessionId: z.ZodString;
|
|
5985
|
+
turns: z.ZodArray<z.ZodObject<{
|
|
5986
|
+
turnId: z.ZodUUID;
|
|
5987
|
+
parentTurnId: z.ZodNullable<z.ZodUUID>;
|
|
5988
|
+
userContent: z.ZodArray<z.ZodType<ContentBlock, unknown, z.core.$ZodTypeInternals<ContentBlock, unknown>>>;
|
|
5989
|
+
startedAt: z.ZodISODateTime;
|
|
5990
|
+
origin: z.ZodOptional<z.ZodEnum<{
|
|
5991
|
+
local_import: "local_import";
|
|
5992
|
+
}>>;
|
|
5993
|
+
result: z.ZodNullable<z.ZodObject<{
|
|
5994
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
5995
|
+
content: z.ZodArray<z.ZodType<ContentBlock, unknown, z.core.$ZodTypeInternals<ContentBlock, unknown>>>;
|
|
5996
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5997
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5998
|
+
usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
5999
|
+
input: z.ZodOptional<z.ZodNumber>;
|
|
6000
|
+
output: z.ZodOptional<z.ZodNumber>;
|
|
6001
|
+
cacheRead: z.ZodOptional<z.ZodNumber>;
|
|
6002
|
+
cacheWrite: z.ZodOptional<z.ZodNumber>;
|
|
6003
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
6004
|
+
cost: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
6005
|
+
input: z.ZodOptional<z.ZodNumber>;
|
|
6006
|
+
output: z.ZodOptional<z.ZodNumber>;
|
|
6007
|
+
cacheRead: z.ZodOptional<z.ZodNumber>;
|
|
6008
|
+
cacheWrite: z.ZodOptional<z.ZodNumber>;
|
|
6009
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
6010
|
+
}, z.core.$strip>>>;
|
|
6011
|
+
}, z.core.$strip>>>;
|
|
6012
|
+
stopReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6013
|
+
errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6014
|
+
}, z.core.$strict>>;
|
|
6015
|
+
status: z.ZodEnum<{
|
|
6016
|
+
completed: "completed";
|
|
6017
|
+
failed: "failed";
|
|
6018
|
+
interrupted: "interrupted";
|
|
6019
|
+
}>;
|
|
6020
|
+
completedAt: z.ZodISODateTime;
|
|
6021
|
+
}, z.core.$strict>>;
|
|
6022
|
+
controllable: z.ZodOptional<z.ZodBoolean>;
|
|
6023
|
+
}, z.core.$strict>>;
|
|
6024
|
+
}, z.core.$strict>;
|
|
6025
|
+
declare const nativeRuntimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6026
|
+
type: z.ZodLiteral<"ingest">;
|
|
6027
|
+
input: z.ZodObject<{
|
|
6028
|
+
harness: z.ZodEnum<{
|
|
6029
|
+
codex: "codex";
|
|
6030
|
+
pi: "pi";
|
|
6031
|
+
}>;
|
|
6032
|
+
nativeSessionId: z.ZodString;
|
|
6033
|
+
turns: z.ZodArray<z.ZodObject<{
|
|
6034
|
+
turnId: z.ZodUUID;
|
|
6035
|
+
parentTurnId: z.ZodNullable<z.ZodUUID>;
|
|
6036
|
+
userContent: z.ZodArray<z.ZodType<ContentBlock, unknown, z.core.$ZodTypeInternals<ContentBlock, unknown>>>;
|
|
6037
|
+
startedAt: z.ZodISODateTime;
|
|
6038
|
+
origin: z.ZodOptional<z.ZodEnum<{
|
|
6039
|
+
local_import: "local_import";
|
|
6040
|
+
}>>;
|
|
6041
|
+
result: z.ZodNullable<z.ZodObject<{
|
|
6042
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
6043
|
+
content: z.ZodArray<z.ZodType<ContentBlock, unknown, z.core.$ZodTypeInternals<ContentBlock, unknown>>>;
|
|
6044
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6045
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6046
|
+
usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
6047
|
+
input: z.ZodOptional<z.ZodNumber>;
|
|
6048
|
+
output: z.ZodOptional<z.ZodNumber>;
|
|
6049
|
+
cacheRead: z.ZodOptional<z.ZodNumber>;
|
|
6050
|
+
cacheWrite: z.ZodOptional<z.ZodNumber>;
|
|
6051
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
6052
|
+
cost: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
6053
|
+
input: z.ZodOptional<z.ZodNumber>;
|
|
6054
|
+
output: z.ZodOptional<z.ZodNumber>;
|
|
6055
|
+
cacheRead: z.ZodOptional<z.ZodNumber>;
|
|
6056
|
+
cacheWrite: z.ZodOptional<z.ZodNumber>;
|
|
6057
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
6058
|
+
}, z.core.$strip>>>;
|
|
6059
|
+
}, z.core.$strip>>>;
|
|
6060
|
+
stopReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6061
|
+
errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6062
|
+
}, z.core.$strict>>;
|
|
6063
|
+
status: z.ZodEnum<{
|
|
6064
|
+
completed: "completed";
|
|
6065
|
+
failed: "failed";
|
|
6066
|
+
interrupted: "interrupted";
|
|
6067
|
+
}>;
|
|
6068
|
+
completedAt: z.ZodISODateTime;
|
|
6069
|
+
}, z.core.$strict>>;
|
|
6070
|
+
controllable: z.ZodOptional<z.ZodBoolean>;
|
|
6071
|
+
}, z.core.$strict>>;
|
|
6072
|
+
}, z.core.$strict>;
|
|
6073
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6074
|
+
type: z.ZodLiteral<"known">;
|
|
6075
|
+
input: z.ZodObject<{
|
|
6076
|
+
turnIds: z.ZodArray<z.ZodUUID>;
|
|
6004
6077
|
}, z.core.$strict>;
|
|
6005
6078
|
}, z.core.$strict>, z.ZodObject<{
|
|
6006
|
-
type: z.ZodLiteral<"
|
|
6079
|
+
type: z.ZodLiteral<"progress">;
|
|
6007
6080
|
sessionId: z.ZodUUID;
|
|
6008
6081
|
turnId: z.ZodUUID;
|
|
6009
|
-
|
|
6082
|
+
progress: z.ZodObject<{
|
|
6083
|
+
revision: z.ZodNumber;
|
|
6084
|
+
from: z.ZodOptional<z.ZodNumber>;
|
|
6010
6085
|
messages: z.ZodArray<z.ZodObject<{
|
|
6011
6086
|
content: z.ZodArray<z.ZodType<ContentBlock, unknown, z.core.$ZodTypeInternals<ContentBlock, unknown>>>;
|
|
6012
6087
|
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -6028,19 +6103,41 @@ declare const nativeRuntimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6028
6103
|
stopReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6029
6104
|
errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6030
6105
|
}, z.core.$strict>>;
|
|
6031
|
-
status: z.ZodEnum<{
|
|
6032
|
-
completed: "completed";
|
|
6033
|
-
failed: "failed";
|
|
6034
|
-
interrupted: "interrupted";
|
|
6035
|
-
}>;
|
|
6036
|
-
completedAt: z.ZodISODateTime;
|
|
6037
6106
|
}, z.core.$strict>;
|
|
6038
6107
|
}, z.core.$strict>, z.ZodObject<{
|
|
6039
|
-
type: z.ZodLiteral<"
|
|
6108
|
+
type: z.ZodLiteral<"status">;
|
|
6040
6109
|
sessionId: z.ZodUUID;
|
|
6041
6110
|
turnId: z.ZodUUID;
|
|
6111
|
+
controllable: z.ZodOptional<z.ZodBoolean>;
|
|
6042
6112
|
}, z.core.$strict>], "type">;
|
|
6043
6113
|
type NativeRuntimeEvent = z.infer<typeof nativeRuntimeEventSchema>;
|
|
6114
|
+
type NativeIngest = z.infer<typeof nativeIngestSchema>;
|
|
6115
|
+
/** Per-Turn outcome of an ingest batch. Unknown Turn ids are absent, never guessed. */
|
|
6116
|
+
type NativeIngestResult = {
|
|
6117
|
+
turns: Array<{
|
|
6118
|
+
turnId: string;
|
|
6119
|
+
sessionId: string;
|
|
6120
|
+
forked: boolean;
|
|
6121
|
+
settled: boolean;
|
|
6122
|
+
created: boolean;
|
|
6123
|
+
changed: boolean;
|
|
6124
|
+
}>;
|
|
6125
|
+
};
|
|
6126
|
+
type NativeKnownResult = {
|
|
6127
|
+
turns: Array<{
|
|
6128
|
+
turnId: string;
|
|
6129
|
+
sessionId: string;
|
|
6130
|
+
settled: boolean;
|
|
6131
|
+
}>;
|
|
6132
|
+
};
|
|
6133
|
+
/** Pushed to the Runtime: stop a running native Turn, as the web's stop button asks. */
|
|
6134
|
+
declare const runtimeNativeStopSchema: z.ZodObject<{
|
|
6135
|
+
type: z.ZodLiteral<"runtime.native.stop">;
|
|
6136
|
+
spaceId: z.ZodUUID;
|
|
6137
|
+
sessionId: z.ZodUUID;
|
|
6138
|
+
turnId: z.ZodUUID;
|
|
6139
|
+
}, z.core.$strict>;
|
|
6140
|
+
type RuntimeNativeStop = z.infer<typeof runtimeNativeStopSchema>;
|
|
6044
6141
|
declare const NATIVE_SYNC_SOURCE: "native_client";
|
|
6045
6142
|
declare const isNativeClientTurn: (meta: unknown) => boolean;
|
|
6046
6143
|
//#endregion
|
|
@@ -6756,6 +6853,23 @@ type MessageRecord = {
|
|
|
6756
6853
|
durationMs: number | null;
|
|
6757
6854
|
createdAt: string;
|
|
6758
6855
|
};
|
|
6856
|
+
type SessionFileChangeKind = "write" | "edit";
|
|
6857
|
+
/** A Space file changed by a session's agent tools. */
|
|
6858
|
+
type SessionFileRecord = {
|
|
6859
|
+
/** Space workspace path, relative and without a leading slash. */
|
|
6860
|
+
path: string;
|
|
6861
|
+
lastKind: SessionFileChangeKind;
|
|
6862
|
+
kinds: SessionFileChangeKind[];
|
|
6863
|
+
changeCount: number;
|
|
6864
|
+
firstChangedAt: string;
|
|
6865
|
+
lastChangedAt: string;
|
|
6866
|
+
lastTurnId: string;
|
|
6867
|
+
lastTurnSequence: number;
|
|
6868
|
+
};
|
|
6869
|
+
type SessionFilesResponse = {
|
|
6870
|
+
sessionId: string;
|
|
6871
|
+
files: SessionFileRecord[];
|
|
6872
|
+
};
|
|
6759
6873
|
//#endregion
|
|
6760
6874
|
//#region ../protocol/dist/gateway/types.d.ts
|
|
6761
6875
|
type ChannelModelConfig = {
|
|
@@ -8436,4 +8550,4 @@ declare const resolveVoiceInputWebsocketUrl: (options?: {
|
|
|
8436
8550
|
env?: CohubEnvironment;
|
|
8437
8551
|
}) => string;
|
|
8438
8552
|
//#endregion
|
|
8439
|
-
export { CheckpointDiffDelivery as $, DESKTOP_COMMAND_DEFAULT_TIMEOUT_MS as $a, runtimeCommandSchema as $i, SpaceCommerceProductBenefitBinding as $n, BoardTransactionsReadInput as $o, SpaceUsageHourlyStat as $r, SpaceCompletionResult as $s, PromptTemplateCatalogResponse as $t, BillingCreditExpiryGroup as A, AppVersionPublishedEvent as Aa, StoredIntermediateMessage as Ai, SessionTurnStreamSnapshotResponse as An, BoardColorId as Ao, SpaceFsUploadResponse as Ar, BoardCapability as As, JsonValue as At, BillingProductBillingInterval as B, RealtimeRoomDescriptor as Ba, RuntimeContext as Bi, SpaceActivityResponse as Bn, BoardCreateInput as Bo, SpacePendingDiffSummary as Br, RUNTIME_ARCHIVE_SEGMENT_BYTES as Bs, LabelSource as Bt, BillingBalanceActivityStatus as C, findGenerationModelPolicy as Ca, MessageRecord as Ci, SessionMessageResponse as Cn, SpacePublicEndpoints as Co, SpaceFsTreeResponse as Cr, BoardEasing as Cs, GlobalSearchResponse as Ct, BillingCheckoutConfirmation as D, GenerationContentBlock as Da, SessionTurnIndexItem as Di, SessionTurnIndexResponse as Dn, BoardAwarenessUpdate as Do, SpaceFsUploadPlanEntry as Dr, BoardTrack as Ds, InvitationDetail as Dt, BillingCheckoutActionState as E, parseGenerationPolicyFromEnv as Ea, MessageToolCallsFile as Ei, SessionRecord as En, BoardAwarenessStateUpdate as Eo, SpaceFsUploadError as Er, BoardTimelineMarker as Es, GlobalSearchViewerRelation as Et, BillingDiscountOfferRef as F, LabelAssignmentsUpdatedEvent as Fa, RUNTIME_MAX_FRAME_BYTES as Fi, SkillCatalogSource as Fn, BoardDealParamsSchema as Fo, SpaceListItem as Fr, AppAuthorizationRequest as Fs, LabelItemsSessionFork as Ft, BillingProductPromotion as G, AppArtifactDescriptor as Ga, RuntimeSessionRecoveryStatus as Gi, SpaceChannelBindingInput as Gn, BoardPlaybackPolicy as Go, SpaceRole as Gr, validateArchiveBoundary as Gs, PaletteOverviewSession as Gt, BillingProductDisplay as H, RealtimeRoomMember as Ha, RuntimeExecutionEvent as Hi, SpaceBootstrapSource as Hn, BoardManifest as Ho, SpacePresenceUser as Hr, RuntimeArchiveSegment as Hs, ModelCatalogEntry as Ht, BillingDiscountPricing as I, RealtimeAppRecord as Ia, RUNTIME_PROTOCOL_VERSION as Ii, SpaceAccess as In, BoardCameraFocus as Io, SpaceMember as Ir, AppAuthorizationResult as Is, LabelListItem as It, BillingResponsePayload as J, AppArtifactManifestFile as Ja, RuntimeTraceContext as Ji, SpaceCommerceBuyerProfile as Jn, BoardRecord as Jo, SpaceSandboxProvider as Jr, CompletionMessageRole as Js, PatchResourceLabelsInput as Jt, BillingPromotionCodePreview as K, AppArtifactDownloadDescriptor as Ka, RuntimeStatus as Ki, SpaceCheckpointDetailResponse as Kn, BoardPlaybackPolicySchema as Ko, SpaceSandboxAutoDestroyPolicy as Kr, CompletionAssistantMessage as Ks, PaletteOverviewSpace as Kt, BillingHistoryPagination as L, RealtimeAppVersionRecord as La, RUNTIME_RECOVERY_BATCH_SIZE as Li, SpaceAccessPolicy as Ln, BoardCameraFocusParams as Lo, SpaceMeta as Lr, AppAuthorizationTarget as Ls, LabelRecord as Lt, BillingCreditStatus as M, BoardChangedEvent as Ma, TurnIntermediateMessagesFile as Mi, SessionTurnsPaginatedResponse as Mn, BoardAnimationSpec as Mo, SpaceInvitation as Mr, BoardRenderCost as Ms, LabelAssignmentPageInfo as Mt, BillingCreditUnit as N, BoardPlaybackChangedEvent as Na, HarnessKind as Ni, SkillCatalogEntry as Nn, BoardAnimationSpecSchema as No, SpaceInvitationListResponse as Nr, BillingPayload as Ns, LabelAssignmentRecord as Nt, BillingCheckoutResult as O, GenerationModelDeclaration as Oa, SessionTurnRecord as Oi, SessionTurnResponse as On, BOARD_COLOR_IDS as Oo, SpaceFsUploadPlanEntryInput as Or, BoardTrackInterpolation as Os, JsonObject as Ot, BillingDiscountOffer as P, ChannelEnvelope as Pa, LocalHarness as Pi, SkillCatalogResponse as Pn, BoardDealParams as Po, SpaceInvitationLocation as Pr, AppAuthorizationGrant as Ps, LabelItemsResponse as Pt, Channel as Q, AppVersionSource as Qa, resolveHarness as Qi, SpaceCommerceProduct as Qn, BoardTransactionsPage as Qo, SpaceTurnsResponse as Qr, ModelThinkingLevel as Qs, PromptTemplateCatalogEntry as Qt, BillingPaymentStatus as R, RealtimePatchOperation as Ra, RuntimeCapabilities as Ri, SpaceActivityAppRanking as Rn, BoardCameraState as Ro, SpaceModListItem as Rr, HarnessArchive as Rs, LabelResourceType as Rt, BillingBalanceActivityList as S, filterGenerationDeclarationsByPolicy as Sa, FeishuChannelConfig as Si, SessionBindingRecord as Sn, NavigationLaunch as So, SpaceFsReadFilesResponse as Sr, BoardCompositionSchema as Ss, GenerationUsageSummary as St, BillingCatalogProduct as T, normalizeGenerationPolicy as Ta, SessionTurnSegmentRecord as Ti, SessionMessagesResponse as Tn, BoardAwarenessNodePreview as To, SpaceFsUploadEntry as Tr, BoardTimeline as Ts, GlobalSearchType as Tt, BillingProductKind as U, RealtimeServerEvent as Ua, RuntimeMessage as Ui, SpaceBootstrapStage as Un, BoardMutationReceipt as Uo, SpacePublicProfile as Ur, RuntimeArchiveUpload as Us, PERMISSIONS as Ut, BillingProductCreditBenefit as V, RealtimeRoomEvent as Va, RuntimeContextMessage as Vi, SpaceBootstrapMeta as Vn, BoardDiagnostic as Vo, SpacePresenceSnapshot as Vr, RuntimeArchivePage as Vs, MeResponse as Vt, BillingProductPricing as W, SessionTurnPatchEvent as Wa, RuntimePendingExecution as Wi, SpaceBootstrapStatus as Wn, BoardPlaybackCommand as Wo, SpaceRecord as Wr, harnessArchiveIndexSchema as Ws, PaletteOverviewResponse as Wt, BillingSubscriptionHistoryStatus as X, AppBoardAsset as Xa, RuntimeTurnUserMessage as Xi, SpaceCommerceFeatureBenefit as Xn, BoardTransactionOperation as Xo, SpaceTurnAuthorFilter as Xr, CompletionUsage as Xs, Permission as Xt, BillingSubscriptionHistoryList as Y, AppBoardArtifactManifest as Ya, RuntimeTurnInput as Yi, SpaceCommerceCreditsBenefit as Yn, BoardSummary as Yo, SpaceSessionsResponse as Yr, CompletionThinkingLevel as Ys, PatchResourceLabelsResponse as Yt, BillingSubscriptionSummary as Z, AppContentKind as Za, isLocalHarness as Zi, SpaceCommerceOrder as Zn, BoardTransactionRecord as Zo, SpaceTurnListItem as Zr, CreateSpaceCompletionInput as Zs, PromptAccessMode as Zt, AcceptInvitationResponse as _, GenerationPolicy as _a, resolveRequestSourceChannel as _c, ChannelConfig as _i, ReferralReward as _n, isDesktopCallMethod as _o, SpaceFsFileResponse as _r, BOARD_ANIMATION_CHANNEL_CAPABILITIES as _s, CronJobRecord as _t, CohubRuntimeKind as a, NativeRuntimeEvent as aa, REQUEST_SOURCE_VIA_MAX_LENGTH as ac, UserActivityQuery as ai, PublicUserWorkItem as an, DESKTOP_COMMAND_VERSION as ao, SpaceCreateResponse as ar, BoardAuthoringSnapshot as as, CheckpointDiffStatus as at, BillingBalanceActivity as b, decodeGenerationPolicy as ba, ChannelRuntimeState as bi, SandboxSpecId as bn, resolveOpenSurface as bo, SpaceFsReadFilesError as br, BoardCompositionInputSchema as bs, GenerationUsageBlock as bt, normalizeVoiceInputWebsocketUrl as c, NativeTurnMessage as ca, hasRequestSourceIdentity as cc, UserActivityResponse as ci, ReferenceAggregateResponse as cn, DesktopCommand as co, SpaceFsCompleteUploadInput as cr, BoardSemanticCommand as cs, ClaimReferralResponse as ct, resolveCohubEnvironment as d, isNativeClientTurn as da, isRequestSourceUuid as dc, UserSessionListItem as di, ReferenceQueryResponse as dn, DesktopCommandRecord as do, SpaceFsCreateUploadInput as dr, BoardAssetRef as ds, CreateSpaceInput as dt, runtimeEventSchema as ea, SpaceCompletionStreamEvent as ec, SpaceUsageResponse as ei, PublicReferral as en, DESKTOP_COMMAND_MAX_TIMEOUT_MS as eo, SpaceCommerceProductCreditBenefit as er, BoardValidationResult as es, CheckpointDiffFile as et, resolveExecutionAppId as f, nativeTurnCompleteSchema as fa, mergeRequestSourceIntoMeta as fc, UserSessionSourceKey as fi, ReferenceQueryableType as fn, DesktopCommandStatus as fo, SpaceFsCreateUploadResponse as fr, BoardEffect as fs, CreateSpaceModInput as ft, resolveWebsocketUrl as g, GenerationParameterConstraint as ga, requestSourceToHeaders as gc, scopeListHasPermission as gi, ReferralListItem as gn, DesktopTarget as go, SpaceFsFileKind as gr, parseBoardEffectInput as gs, CronJobPayload as gt, resolveWebBaseUrl as h, GenerationModelPolicy as ha, readRequestSourceFromEnv as hc, isUserLevelPermission as hi, ReferralDashboard as hn, DesktopSurface as ho, SpaceFsEntry as hr, BoardEffectSchema as hs, CreateSpaceSessionInput as ht, CohubExecutionContext as i, NATIVE_SYNC_SOURCE as ia, COHUB_SOURCE_HEADER_NAMES as ic, USER_LEVEL_PERMISSIONS as ii, PublicUserSpaceItem as in, DESKTOP_COMMAND_TERMINAL_TTL_SECONDS as io, SpaceConfigUpdateResponse as ir, BoardAuthoringReadInput as is, CheckpointDiffStats as it, BillingCreditGrantStatus as j, BoardAwarenessUpdatedEvent as ja, StoredToolCall as ji, SessionTurnWindowResponse as jn, BoardGeoKind as jo, SpaceFsWriteFileInput as jr, BoardCoordinateSpace as js, LabelAssignmentListItem as jt, BillingConversionIntent as k, GenerationResult as ka, SpaceTurnsResponse$1 as ki, SessionTurnSignedUrlsResponse as kn, BOARD_GEO_KINDS as ko, SpaceFsUploadProgress as kr, parseBoardCompositionInput as ks, JsonPrimitive as kt, normalizeWebsocketUrl as l, NativeTurnProgress as la, isRequestSourceClientId as lc, UserProfile as li, ReferenceDirection as ln, DesktopCommandDispatchedPayload as lo, SpaceFsCompleteUploadResponse as lr, BoardSemanticCommandSchema as ls, CreateInvitationInput as lt, resolveVoiceInputWebsocketUrl as m, nativeTurnStartSchema as ma, parseRequestSourceFromHeaders as mc, UserSessionsResponse as mi, ReferenceResourceType as mn, DesktopOpenCommand as mo, SpaceFsEncoding as mr, BoardEffectInputSchema as ms, CreateSpacePromptResponse as mt, CohubContext as n, contextToPiMessages as na, ContentBlock as nc, TaskRunDetailResponse as ni, PublicUserPageResponse as nn, DESKTOP_COMMAND_PENDING_TTL_SECONDS as no, SpaceConfigInput as nr, BoardAuthoringItem as ns, CheckpointDiffPatchKind as nt, getCohubContext as o, NativeTurnBinding as oa, RequestSource as oc, UserActivityRange as oi, ReferenceAggregateGroup as on, DesktopAppTarget as oo, SpaceDefaultResponse as or, BoardItemPatch as os, CheckpointDiffSummary as ot, resolveExecutionToken as p, nativeTurnProgressSchema as pa, normalizeRequestSource as pc, UserSessionSpaceSummary as pi, ReferenceRecord as pn, DesktopFileTarget as po, SpaceFsDeleteNodeInput as pr, BoardEffectInput as ps, CreateSpacePromptInput as pt, BillingRedemptionResult as q, AppArtifactManifest as qa, RuntimeStopConfirmation as qi, SpaceCommerceBenefit as qn, BoardPlaybackSnapshot as qo, SpaceSandboxConfig as qr, CompletionMessage as qs, PaletteOverviewSpaceRelation as qt, CohubEnvironment as r, selectRuntimeContextMessages as ra, COHUB_SOURCE_HEADER as rc, TaskRunRecord as ri, PublicUserProfile as rn, DESKTOP_COMMAND_SETTLEMENT_GRACE_SECONDS as ro, SpaceConfigResponse as rr, BoardAuthoringItemSchema as rs, CheckpointDiffPatchLine as rt, normalizeBaseUrl as s, NativeTurnComplete as sa, RequestSourceVia as sc, UserActivityRankings as si, ReferenceAggregateGroupBy as sn, DesktopCall as so, SpaceEnvInput as sr, BoardItemPatchSchema as ss, CheckpointRecord as st, COHUB_ENVIRONMENTS as t, runtimeReadySchema as ta, Usage as tc, SpaceUsageSummary as ti, PublicUserAppItem as tn, DESKTOP_COMMAND_PAYLOAD_MAX_BYTES as to, SpaceConfig as tr, parseBoardPlaybackPolicy as ts, CheckpointDiffFileResponse as tt, resolveApiBaseUrl as u, NativeTurnStart as ua, isRequestSourceEmpty as uc, UserRulesResponse as ui, ReferenceKind as un, DesktopCommandError as uo, SpaceFsCreateDirectoryInput as ur, BoardSemanticMutation as us, CreateInvitationResponse as ut, ApiError as v, GenerationPolicyError as va, ChannelHealth as vi, ReferralStatus as vn, isTerminalDesktopCommandStatus as vo, SpaceFsMoveInput as vr, BoardAnimationTarget as vs, CronJobUpdatePatch as vt, BillingCatalog as w, getAllowedGenerationModelIds as wa, SessionForkRecord as wi, SessionMessagesPaginatedResponse as wn, BoardAwarenessGesture as wo, SpaceFsUploadDestination as wr, BoardProceduralClip as ws, GlobalSearchResult as wt, BillingBalanceActivityKind as x, encodeGenerationPolicy as xa, DiscordChannelConfig as xi, SendMessageCronJobPayload as xn, NavigationCall as xo, SpaceFsReadFilesInput as xr, BoardCompositionPlayback as xs, GenerationUsageHourlyStat as xt, BatchUserProfilesResponse as y, assertGenerationRequestAllowedByPolicy as ya, ChannelHealthReasonCode as yi, ResourceLabelsResponse as yn, parseDesktopCommand as yo, SpaceFsPreparingFile as yr, BoardComposition as ys, CursorPageInfo as yt, BillingPluginStatus as z, RealtimeRoom as za, RuntimeCommand as zi, SpaceActivityContributor as zn, BoardCapabilities as zo, SpacePendingDiffFileResponse as zr, HarnessArchiveIndex as zs, LabelScopeType as zt };
|
|
8553
|
+
export { CheckpointDiffDelivery as $, RealtimeServerEvent as $a, RuntimeTurnUserMessage as $i, SpaceCommerceProductBenefitBinding as $n, BoardMutationReceipt as $o, SpaceUsageHourlyStat as $r, RuntimeArchiveUpload as $s, PromptTemplateCatalogResponse as $t, BillingCreditExpiryGroup as A, decodeGenerationPolicy as Aa, SessionTurnIndexItem as Ai, SessionTurnStreamSnapshotResponse as An, resolveOpenSurface as Ao, SpaceFsUploadResponse as Ar, BoardCompositionInputSchema as As, JsonValue as At, BillingProductBillingInterval as B, AppVersionPublishedEvent as Ba, RUNTIME_RECOVERY_BATCH_SIZE as Bi, SpaceActivityResponse as Bn, BoardColorId as Bo, SpacePendingDiffSummary as Br, BoardCapability as Bs, LabelSource as Bt, BillingBalanceActivityStatus as C, nativeTurnProgressSchema as Ca, normalizeRequestSource as Cc, MessageRecord as Ci, SessionMessageResponse as Cn, DesktopFileTarget as Co, SpaceFsTreeResponse as Cr, BoardEffectInput as Cs, GlobalSearchResponse as Ct, BillingCheckoutConfirmation as D, GenerationPolicy as Da, resolveRequestSourceChannel as Dc, SessionForkRecord as Di, SessionTurnIndexResponse as Dn, isDesktopCallMethod as Do, SpaceFsUploadPlanEntry as Dr, BOARD_ANIMATION_CHANNEL_CAPABILITIES as Ds, InvitationDetail as Dt, BillingCheckoutActionState as E, GenerationParameterConstraint as Ea, requestSourceToHeaders as Ec, SessionFilesResponse as Ei, SessionRecord as En, DesktopTarget as Eo, SpaceFsUploadError as Er, parseBoardEffectInput as Es, GlobalSearchViewerRelation as Et, BillingDiscountOfferRef as F, normalizeGenerationPolicy as Fa, TurnIntermediateMessagesFile as Fi, SkillCatalogSource as Fn, BoardAwarenessNodePreview as Fo, SpaceListItem as Fr, BoardTimeline as Fs, LabelItemsSessionFork as Ft, BillingProductPromotion as G, LabelAssignmentsUpdatedEvent as Ga, RuntimeExecutionEvent as Gi, SpaceChannelBindingInput as Gn, BoardDealParamsSchema as Go, SpaceRole as Gr, AppAuthorizationRequest as Gs, PaletteOverviewSession as Gt, BillingProductDisplay as H, BoardChangedEvent as Ha, RuntimeCommand as Hi, SpaceBootstrapSource as Hn, BoardAnimationSpec as Ho, SpacePresenceUser as Hr, BoardRenderCost as Hs, ModelCatalogEntry as Ht, BillingDiscountPricing as I, parseGenerationPolicyFromEnv as Ia, HarnessKind as Ii, SpaceAccess as In, BoardAwarenessStateUpdate as Io, SpaceMember as Ir, BoardTimelineMarker as Is, LabelListItem as It, BillingResponsePayload as J, RealtimePatchOperation as Ja, RuntimeSessionRecoveryStatus as Ji, SpaceCommerceBuyerProfile as Jn, BoardCameraState as Jo, SpaceSandboxProvider as Jr, HarnessArchive as Js, PatchResourceLabelsInput as Jt, BillingPromotionCodePreview as K, RealtimeAppRecord as Ka, RuntimeMessage as Ki, SpaceCheckpointDetailResponse as Kn, BoardCameraFocus as Ko, SpaceSandboxAutoDestroyPolicy as Kr, AppAuthorizationResult as Ks, PaletteOverviewSpace as Kt, BillingHistoryPagination as L, GenerationContentBlock as La, LocalHarness as Li, SpaceAccessPolicy as Ln, BoardAwarenessUpdate as Lo, SpaceMeta as Lr, BoardTrack as Ls, LabelRecord as Lt, BillingCreditStatus as M, filterGenerationDeclarationsByPolicy as Ma, SpaceTurnsResponse$1 as Mi, SessionTurnsPaginatedResponse as Mn, NavigationLaunch as Mo, SpaceInvitation as Mr, BoardCompositionSchema as Ms, LabelAssignmentPageInfo as Mt, BillingCreditUnit as N, findGenerationModelPolicy as Na, StoredIntermediateMessage as Ni, SkillCatalogEntry as Nn, SpacePublicEndpoints as No, SpaceInvitationListResponse as Nr, BoardEasing as Ns, LabelAssignmentRecord as Nt, BillingCheckoutResult as O, GenerationPolicyError as Oa, SessionTurnSegmentRecord as Oi, SessionTurnResponse as On, isTerminalDesktopCommandStatus as Oo, SpaceFsUploadPlanEntryInput as Or, BoardAnimationTarget as Os, JsonObject as Ot, BillingDiscountOffer as P, getAllowedGenerationModelIds as Pa, StoredToolCall as Pi, SkillCatalogResponse as Pn, BoardAwarenessGesture as Po, SpaceInvitationLocation as Pr, BoardProceduralClip as Ps, LabelItemsResponse as Pt, Channel as Q, RealtimeRoomMember as Qa, RuntimeTurnInput as Qi, SpaceCommerceProduct as Qn, BoardManifest as Qo, SpaceTurnsResponse as Qr, RuntimeArchiveSegment as Qs, PromptTemplateCatalogEntry as Qt, BillingPaymentStatus as R, GenerationModelDeclaration as Ra, RUNTIME_MAX_FRAME_BYTES as Ri, SpaceActivityAppRanking as Rn, BOARD_COLOR_IDS as Ro, SpaceModListItem as Rr, BoardTrackInterpolation as Rs, LabelResourceType as Rt, BillingBalanceActivityList as S, nativeTurnCompleteSchema as Sa, mergeRequestSourceIntoMeta as Sc, FeishuChannelConfig as Si, SessionBindingRecord as Sn, DesktopCommandStatus as So, SpaceFsReadFilesResponse as Sr, BoardEffect as Ss, GenerationUsageSummary as St, BillingCatalogProduct as T, GenerationModelPolicy as Ta, readRequestSourceFromEnv as Tc, SessionFileRecord as Ti, SessionMessagesResponse as Tn, DesktopSurface as To, SpaceFsUploadEntry as Tr, BoardEffectSchema as Ts, GlobalSearchType as Tt, BillingProductKind as U, BoardPlaybackChangedEvent as Ua, RuntimeContext as Ui, SpaceBootstrapStage as Un, BoardAnimationSpecSchema as Uo, SpacePublicProfile as Ur, BillingPayload as Us, PERMISSIONS as Ut, BillingProductCreditBenefit as V, BoardAwarenessUpdatedEvent as Va, RuntimeCapabilities as Vi, SpaceBootstrapMeta as Vn, BoardGeoKind as Vo, SpacePresenceSnapshot as Vr, BoardCoordinateSpace as Vs, MeResponse as Vt, BillingProductPricing as W, ChannelEnvelope as Wa, RuntimeContextMessage as Wi, SpaceBootstrapStatus as Wn, BoardDealParams as Wo, SpaceRecord as Wr, AppAuthorizationGrant as Ws, PaletteOverviewResponse as Wt, BillingSubscriptionHistoryStatus as X, RealtimeRoomDescriptor as Xa, RuntimeStopConfirmation as Xi, SpaceCommerceFeatureBenefit as Xn, BoardCreateInput as Xo, SpaceTurnAuthorFilter as Xr, RUNTIME_ARCHIVE_SEGMENT_BYTES as Xs, Permission as Xt, BillingSubscriptionHistoryList as Y, RealtimeRoom as Ya, RuntimeStatus as Yi, SpaceCommerceCreditsBenefit as Yn, BoardCapabilities as Yo, SpaceSessionsResponse as Yr, HarnessArchiveIndex as Ys, PatchResourceLabelsResponse as Yt, BillingSubscriptionSummary as Z, RealtimeRoomEvent as Za, RuntimeTraceContext as Zi, SpaceCommerceOrder as Zn, BoardDiagnostic as Zo, SpaceTurnListItem as Zr, RuntimeArchivePage as Zs, PromptAccessMode as Zt, AcceptInvitationResponse as _, RuntimeNativeStop as _a, RequestSourceVia as _c, ChannelConfig as _i, ReferralReward as _n, DesktopCall as _o, SpaceFsFileResponse as _r, BoardItemPatchSchema as _s, CronJobRecord as _t, CohubRuntimeKind as a, contextToPiMessages as aa, CompletionThinkingLevel as ac, UserActivityQuery as ai, PublicUserWorkItem as an, AppBoardArtifactManifest as ao, SpaceCreateResponse as ar, BoardSummary as as, CheckpointDiffStatus as at, BillingBalanceActivity as b, nativeIngestTurnSchema as ba, isRequestSourceEmpty as bc, ChannelRuntimeState as bi, SandboxSpecId as bn, DesktopCommandError as bo, SpaceFsReadFilesError as br, BoardSemanticMutation as bs, GenerationUsageBlock as bt, normalizeVoiceInputWebsocketUrl as c, NATIVE_SYNC_SOURCE as ca, ModelThinkingLevel as cc, UserActivityResponse as ci, ReferenceAggregateResponse as cn, AppVersionSource as co, SpaceFsCompleteUploadInput as cr, BoardTransactionsPage as cs, ClaimReferralResponse as ct, resolveCohubEnvironment as d, NativeIngestTurn as da, Usage as dc, UserSessionListItem as di, ReferenceQueryResponse as dn, DESKTOP_COMMAND_PAYLOAD_MAX_BYTES as do, SpaceFsCreateUploadInput as dr, parseBoardPlaybackPolicy as ds, CreateSpaceInput as dt, isLocalHarness as ea, harnessArchiveIndexSchema as ec, SpaceUsageResponse as ei, PublicReferral as en, SessionTurnPatchEvent as eo, SpaceCommerceProductCreditBenefit as er, BoardPlaybackCommand as es, CheckpointDiffFile as et, resolveExecutionAppId as f, NativeKnownResult as fa, ContentBlock as fc, UserSessionSourceKey as fi, ReferenceQueryableType as fn, DESKTOP_COMMAND_PENDING_TTL_SECONDS as fo, SpaceFsCreateUploadResponse as fr, BoardAuthoringItem as fs, CreateSpaceModInput as ft, resolveWebsocketUrl as g, NativeTurnProgress as ga, RequestSource as gc, scopeListHasPermission as gi, ReferralListItem as gn, DesktopAppTarget as go, SpaceFsFileKind as gr, BoardItemPatch as gs, CronJobPayload as gt, resolveWebBaseUrl as h, NativeTurnMessage as ha, REQUEST_SOURCE_VIA_MAX_LENGTH as hc, isUserLevelPermission as hi, ReferralDashboard as hn, DESKTOP_COMMAND_VERSION as ho, SpaceFsEntry as hr, BoardAuthoringSnapshot as hs, CreateSpaceSessionInput as ht, CohubExecutionContext as i, runtimeReadySchema as ia, CompletionMessageRole as ic, USER_LEVEL_PERMISSIONS as ii, PublicUserSpaceItem as in, AppArtifactManifestFile as io, SpaceConfigUpdateResponse as ir, BoardRecord as is, CheckpointDiffStats as it, BillingCreditGrantStatus as j, encodeGenerationPolicy as ja, SessionTurnRecord as ji, SessionTurnWindowResponse as jn, NavigationCall as jo, SpaceFsWriteFileInput as jr, BoardCompositionPlayback as js, LabelAssignmentListItem as jt, BillingConversionIntent as k, assertGenerationRequestAllowedByPolicy as ka, MessageToolCallsFile as ki, SessionTurnSignedUrlsResponse as kn, parseDesktopCommand as ko, SpaceFsUploadProgress as kr, BoardComposition as ks, JsonPrimitive as kt, normalizeWebsocketUrl as l, NativeIngest as la, SpaceCompletionResult as lc, UserProfile as li, ReferenceDirection as ln, DESKTOP_COMMAND_DEFAULT_TIMEOUT_MS as lo, SpaceFsCompleteUploadResponse as lr, BoardTransactionsReadInput as ls, CreateInvitationInput as lt, resolveVoiceInputWebsocketUrl as m, NativeTurnComplete as ma, COHUB_SOURCE_HEADER_NAMES as mc, UserSessionsResponse as mi, ReferenceResourceType as mn, DESKTOP_COMMAND_TERMINAL_TTL_SECONDS as mo, SpaceFsEncoding as mr, BoardAuthoringReadInput as ms, CreateSpacePromptResponse as mt, CohubContext as n, runtimeCommandSchema as na, CompletionAssistantMessage as nc, TaskRunDetailResponse as ni, PublicUserPageResponse as nn, AppArtifactDownloadDescriptor as no, SpaceConfigInput as nr, BoardPlaybackPolicySchema as ns, CheckpointDiffPatchKind as nt, getCohubContext as o, selectRuntimeContextMessages as oa, CompletionUsage as oc, UserActivityRange as oi, ReferenceAggregateGroup as on, AppBoardAsset as oo, SpaceDefaultResponse as or, BoardTransactionOperation as os, CheckpointDiffSummary as ot, resolveExecutionToken as p, NativeRuntimeEvent as pa, COHUB_SOURCE_HEADER as pc, UserSessionSpaceSummary as pi, ReferenceRecord as pn, DESKTOP_COMMAND_SETTLEMENT_GRACE_SECONDS as po, SpaceFsDeleteNodeInput as pr, BoardAuthoringItemSchema as ps, CreateSpacePromptInput as pt, BillingRedemptionResult as q, RealtimeAppVersionRecord as qa, RuntimePendingExecution as qi, SpaceCommerceBenefit as qn, BoardCameraFocusParams as qo, SpaceSandboxConfig as qr, AppAuthorizationTarget as qs, PaletteOverviewSpaceRelation as qt, CohubEnvironment as r, runtimeEventSchema as ra, CompletionMessage as rc, TaskRunRecord as ri, PublicUserProfile as rn, AppArtifactManifest as ro, SpaceConfigResponse as rr, BoardPlaybackSnapshot as rs, CheckpointDiffPatchLine as rt, normalizeBaseUrl as s, NATIVE_INGEST_MAX_TURNS as sa, CreateSpaceCompletionInput as sc, UserActivityRankings as si, ReferenceAggregateGroupBy as sn, AppContentKind as so, SpaceEnvInput as sr, BoardTransactionRecord as ss, CheckpointRecord as st, COHUB_ENVIRONMENTS as t, resolveHarness as ta, validateArchiveBoundary as tc, SpaceUsageSummary as ti, PublicUserAppItem as tn, AppArtifactDescriptor as to, SpaceConfig as tr, BoardPlaybackPolicy as ts, CheckpointDiffFileResponse as tt, resolveApiBaseUrl as u, NativeIngestResult as ua, SpaceCompletionStreamEvent as uc, UserRulesResponse as ui, ReferenceKind as un, DESKTOP_COMMAND_MAX_TIMEOUT_MS as uo, SpaceFsCreateDirectoryInput as ur, BoardValidationResult as us, CreateInvitationResponse as ut, ApiError as v, SETTLED_TURN_STATUSES as va, hasRequestSourceIdentity as vc, ChannelHealth as vi, ReferralStatus as vn, DesktopCommand as vo, SpaceFsMoveInput as vr, BoardSemanticCommand as vs, CronJobUpdatePatch as vt, BillingCatalog as w, runtimeNativeStopSchema as wa, parseRequestSourceFromHeaders as wc, SessionFileChangeKind as wi, SessionMessagesPaginatedResponse as wn, DesktopOpenCommand as wo, SpaceFsUploadDestination as wr, BoardEffectInputSchema as ws, GlobalSearchResult as wt, BillingBalanceActivityKind as x, nativeRuntimeEventSchema as xa, isRequestSourceUuid as xc, DiscordChannelConfig as xi, SendMessageCronJobPayload as xn, DesktopCommandRecord as xo, SpaceFsReadFilesInput as xr, BoardAssetRef as xs, GenerationUsageHourlyStat as xt, BatchUserProfilesResponse as y, isNativeClientTurn as ya, isRequestSourceClientId as yc, ChannelHealthReasonCode as yi, ResourceLabelsResponse as yn, DesktopCommandDispatchedPayload as yo, SpaceFsPreparingFile as yr, BoardSemanticCommandSchema as ys, CursorPageInfo as yt, BillingPluginStatus as z, GenerationResult as za, RUNTIME_PROTOCOL_VERSION as zi, SpaceActivityContributor as zn, BOARD_GEO_KINDS as zo, SpacePendingDiffFileResponse as zr, parseBoardCompositionInput as zs, LabelScopeType as zt };
|
package/dist/chunks/http.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $n as SpaceCommerceProductBenefitBinding, $o as
|
|
1
|
+
import { $n as SpaceCommerceProductBenefitBinding, $o as BoardMutationReceipt, $s as RuntimeArchiveUpload, $t as PromptTemplateCatalogResponse, An as SessionTurnStreamSnapshotResponse, Ar as SpaceFsUploadResponse, Bn as SpaceActivityResponse, Br as SpacePendingDiffSummary, Ci as MessageRecord, Cn as SessionMessageResponse, Cr as SpaceFsTreeResponse, Ct as GlobalSearchResponse, Di as SessionForkRecord, Dn as SessionTurnIndexResponse, Dt as InvitationDetail, Ei as SessionFilesResponse, En as SessionRecord, Fi as TurnIntermediateMessagesFile, Gr as SpaceRole, Gs as AppAuthorizationRequest$1, Ha as BoardChangedEvent$1, Ht as ModelCatalogEntry, Ir as SpaceMember, It as LabelListItem, Ja as RealtimePatchOperation, Ji as RuntimeSessionRecoveryStatus, Jn as SpaceCommerceBuyerProfile, Jt as PatchResourceLabelsInput, Kn as SpaceCheckpointDetailResponse, Ks as AppAuthorizationResult, La as GenerationContentBlock, Ln as SpaceAccessPolicy, Lo as BoardAwarenessUpdate, Mi as SpaceTurnsResponse, Mn as SessionTurnsPaginatedResponse, Mo as NavigationLaunch, Ni as StoredIntermediateMessage, No as SpacePublicEndpoints, Nr as SpaceInvitationListResponse, Nt as LabelAssignmentRecord, On as SessionTurnResponse, Pn as SkillCatalogResponse, Pt as LabelItemsResponse, Q as Channel, Qn as SpaceCommerceProduct, Ra as GenerationModelDeclaration, Rr as SpaceModListItem, Rt as LabelResourceType, So as DesktopCommandStatus, Sr as SpaceFsReadFilesResponse, Tn as SessionMessagesResponse, Tt as GlobalSearchType, Ua as BoardPlaybackChangedEvent$1, Ur as SpacePublicProfile, Us as BillingPayload, Va as BoardAwarenessUpdatedEvent$1, Vr as SpacePresenceSnapshot, Vt as MeResponse, Wr as SpaceRecord, Wt as PaletteOverviewResponse, Xi as RuntimeStopConfirmation, Xo as BoardCreateInput, Xr as SpaceTurnAuthorFilter, Xt as Permission, Yi as RuntimeStatus, Yo as BoardCapabilities, Yr as SpaceSessionsResponse, Ys as HarnessArchiveIndex, Yt as PatchResourceLabelsResponse, Zn as SpaceCommerceOrder, Zs as RuntimeArchivePage, _ as AcceptInvitationResponse, _i as ChannelConfig, _r as SpaceFsFileResponse, _t as CronJobRecord, ai as UserActivityQuery, ar as SpaceCreateResponse, as as BoardSummary, bo as DesktopCommandError, bs as BoardSemanticMutation, ci as UserActivityResponse, cn as ReferenceAggregateResponse, co as AppVersionSource, cr as SpaceFsCompleteUploadInput, cs as BoardTransactionsPage, ct as ClaimReferralResponse, dc as Usage, dn as ReferenceQueryResponse, dr as SpaceFsCreateUploadInput, dt as CreateSpaceInput, ei as SpaceUsageResponse, en as PublicReferral, eo as SessionTurnPatchEvent, es as BoardPlaybackCommand, fc as ContentBlock, fi as UserSessionSourceKey, fn as ReferenceQueryableType, fr as SpaceFsCreateUploadResponse, gc as RequestSource, hn as ReferralDashboard, hs as BoardAuthoringSnapshot, ht as CreateSpaceSessionInput, ir as SpaceConfigUpdateResponse, ji as SessionTurnRecord, jn as SessionTurnWindowResponse, jo as NavigationCall, jr as SpaceFsWriteFileInput, ki as MessageToolCallsFile, kn as SessionTurnSignedUrlsResponse, lc as SpaceCompletionResult, li as UserProfile, ln as ReferenceDirection, lr as SpaceFsCompleteUploadResponse, ls as BoardTransactionsReadInput, lt as CreateInvitationInput, mi as UserSessionsResponse, ms as BoardAuthoringReadInput, mt as CreateSpacePromptResponse, ni as TaskRunDetailResponse, nn as PublicUserPageResponse, nr as SpaceConfigInput, or as SpaceDefaultResponse, ot as CheckpointDiffSummary, pt as CreateSpacePromptInput, qn as SpaceCommerceBenefit, r as CohubEnvironment, ri as TaskRunRecord, rn as PublicUserProfile, rr as SpaceConfigResponse, rs as BoardPlaybackSnapshot, sc as CreateSpaceCompletionInput, sn as ReferenceAggregateGroupBy, so as AppContentKind, sr as SpaceEnvInput, st as CheckpointRecord, to as AppArtifactDescriptor, tt as CheckpointDiffFileResponse, uc as SpaceCompletionStreamEvent, ui as UserRulesResponse, un as ReferenceKind, ut as CreateInvitationResponse, vi as ChannelHealth, vo as DesktopCommand, vr as SpaceFsMoveInput, vt as CronJobUpdatePatch, wn as SessionMessagesPaginatedResponse, xo as DesktopCommandRecord, y as BatchUserProfilesResponse, yr as SpaceFsPreparingFile, yt as CursorPageInfo, zr as SpacePendingDiffFileResponse } from "./environment.js";
|
|
2
2
|
import { a as WebsocketClientOptions, r as WebsocketClient, s as WebsocketEventPayload } from "./websocket.js";
|
|
3
3
|
import { a as VoiceInputCreateOptions } from "./voice-input.js";
|
|
4
4
|
//#region ../protocol/dist/model/status.d.ts
|
|
@@ -254,6 +254,43 @@ type AppRuntimeConfigureRequest = RuntimeEnvelope & {
|
|
|
254
254
|
};
|
|
255
255
|
inputRegion?: "all" | "none" | AppRuntimeRect[];
|
|
256
256
|
};
|
|
257
|
+
type AppWindowStatus = "idle" | "saving" | "error";
|
|
258
|
+
/** Tab title and status; `dirty` makes the host flush before closing. */
|
|
259
|
+
type AppWindowState = {
|
|
260
|
+
title: string | null;
|
|
261
|
+
status: AppWindowStatus;
|
|
262
|
+
dirty: boolean;
|
|
263
|
+
};
|
|
264
|
+
/** Resource kinds the Cohub host can drop into an App. */
|
|
265
|
+
declare const APP_DROP_RESOURCE_TYPES: readonly ["file", "task", "app", "session", "checkpoint"];
|
|
266
|
+
type AppDropResourceType = (typeof APP_DROP_RESOURCE_TYPES)[number];
|
|
267
|
+
/** A dropped Cohub resource; `ref` identifies it (the path, for files). */
|
|
268
|
+
type AppDropResource = {
|
|
269
|
+
type: AppDropResourceType;
|
|
270
|
+
ref: string;
|
|
271
|
+
title?: string;
|
|
272
|
+
path?: string;
|
|
273
|
+
mimeType?: string;
|
|
274
|
+
size?: number;
|
|
275
|
+
mtimeMs?: number;
|
|
276
|
+
appId?: string;
|
|
277
|
+
href?: string;
|
|
278
|
+
taskRunId?: string;
|
|
279
|
+
/** Resource-specific snapshot, e.g. a Task Run summary. */
|
|
280
|
+
snapshot?: Record<string, unknown>;
|
|
281
|
+
};
|
|
282
|
+
/** Public design tokens, sent as resolved CSS values. */
|
|
283
|
+
declare const APP_APPEARANCE_TOKENS: readonly ["bg-primary", "bg-content", "bg-surface", "bg-elevated", "bg-input", "bg-hover", "bg-active", "text-primary", "text-secondary", "text-tertiary", "text-placeholder", "text-disabled", "border-primary", "border-subtle", "brand", "brand-hover", "brand-soft", "brand-muted", "brand-border", "brand-ring", "brand-contrast-fg", "error-fg", "selection-bg", "overlay-scrim", "shadow-subtle", "shadow-medium", "shadow-strong", "font-sans", "font-mono"];
|
|
284
|
+
type AppAppearanceToken = (typeof APP_APPEARANCE_TOKENS)[number];
|
|
285
|
+
type AppAppearance = {
|
|
286
|
+
colorScheme: "light" | "dark";
|
|
287
|
+
/** The host theme id, as a hint; not a stable enumeration. */
|
|
288
|
+
theme: string;
|
|
289
|
+
tokens: Partial<Record<AppAppearanceToken, string>>;
|
|
290
|
+
reducedMotion: boolean;
|
|
291
|
+
};
|
|
292
|
+
/** CSS custom property an App reads a shared token from, e.g. `--cohub-bg-primary`. */
|
|
293
|
+
declare const appAppearanceVar: (token: AppAppearanceToken) => string;
|
|
257
294
|
//#endregion
|
|
258
295
|
//#region ../protocol/dist/app-navigation.d.ts
|
|
259
296
|
declare const APP_NAVIGATION_PROTOCOL = "cohub.app.navigation";
|
|
@@ -345,6 +382,12 @@ type AppRuntimeInvocationContext = {
|
|
|
345
382
|
appId: string;
|
|
346
383
|
slug: string;
|
|
347
384
|
};
|
|
385
|
+
/** The file this open hands to the App, when the App opens files. */
|
|
386
|
+
file?: {
|
|
387
|
+
path: string;
|
|
388
|
+
};
|
|
389
|
+
/** Unique per open: a new id means the host opened the App again. */
|
|
390
|
+
id?: string;
|
|
348
391
|
};
|
|
349
392
|
/** Current navigation context supplied by the embedding Cohub shell. */
|
|
350
393
|
type AppRuntimeShellContext = {
|
|
@@ -392,6 +435,14 @@ type AppRuntimeContext = {
|
|
|
392
435
|
} | null;
|
|
393
436
|
invocation?: AppRuntimeInvocationContext;
|
|
394
437
|
shell?: AppRuntimeShellContext;
|
|
438
|
+
/** BCP 47 locale the viewer reads the host in, e.g. `zh-CN`. */
|
|
439
|
+
locale?: string;
|
|
440
|
+
/** Theme and design tokens the viewer currently sees. */
|
|
441
|
+
appearance?: AppAppearance;
|
|
442
|
+
/** Whether the host is showing this App's surface right now. */
|
|
443
|
+
window?: {
|
|
444
|
+
visible: boolean;
|
|
445
|
+
};
|
|
395
446
|
permissions?: {
|
|
396
447
|
scopes: Permission[];
|
|
397
448
|
appScopes: Permission[];
|
|
@@ -441,6 +492,10 @@ interface AppRuntimeTransport {
|
|
|
441
492
|
supportsNavigation?: boolean;
|
|
442
493
|
/** Posts a one-way message to the host; no reply is expected. */
|
|
443
494
|
notify?: (message: Record<string, unknown>) => void;
|
|
495
|
+
/** Subscribes to unsolicited runtime messages from the host (drags, close requests). */
|
|
496
|
+
subscribeHostMessages?: (listener: (data: unknown) => void) => () => void;
|
|
497
|
+
/** Whether a Cohub host has answered this runtime, proving it speaks the protocol. */
|
|
498
|
+
isHostConnected?: () => boolean;
|
|
444
499
|
}
|
|
445
500
|
/**
|
|
446
501
|
* Bridge-mode transport: posts messages to `window.parent` (the Cohub host
|
|
@@ -455,6 +510,12 @@ declare class ParentBridgeTransport implements AppRuntimeTransport {
|
|
|
455
510
|
private contextListener;
|
|
456
511
|
private diagnosticListeners;
|
|
457
512
|
private diagnosticListener;
|
|
513
|
+
private hostListeners;
|
|
514
|
+
private hostListener;
|
|
515
|
+
private announceListener;
|
|
516
|
+
isHostConnected(): boolean;
|
|
517
|
+
private isFromParent;
|
|
518
|
+
subscribeHostMessages(listener: (data: unknown) => void): () => void;
|
|
458
519
|
/**
|
|
459
520
|
* Tells the host the runtime is ready once, before any subscription. Hosts
|
|
460
521
|
* gate unsolicited messages (context pushes, diagnostics) on this handshake,
|
|
@@ -462,6 +523,8 @@ declare class ParentBridgeTransport implements AppRuntimeTransport {
|
|
|
462
523
|
* subscribes to context still needs diagnostics to arrive.
|
|
463
524
|
*/
|
|
464
525
|
private announceReady;
|
|
526
|
+
/** Says ready again when a reloaded host asks. */
|
|
527
|
+
private answerAnnounceRequests;
|
|
465
528
|
subscribeDiagnostics(listener: AppDiagnosticListener): () => void;
|
|
466
529
|
subscribeContextChanged(listener: AppContextChangedListener): () => void;
|
|
467
530
|
notify(message: Record<string, unknown>): void;
|
|
@@ -938,7 +1001,7 @@ declare class SkillsApi {
|
|
|
938
1001
|
}
|
|
939
1002
|
//#endregion
|
|
940
1003
|
//#region src/apis/public-assets.d.ts
|
|
941
|
-
type PublicAssetPurpose = "user_avatar" | "space_avatar" | "chat_attachment" | "app_source";
|
|
1004
|
+
type PublicAssetPurpose = "user_avatar" | "space_avatar" | "chat_attachment" | "app_source" | "generation_input";
|
|
942
1005
|
type PublicAssetUploadProtocol = "presigned_put_v1";
|
|
943
1006
|
/** Preprocessed chat images. General chat files and avatars may use any mime string. */
|
|
944
1007
|
type PublicAssetMimeType = "image/webp" | "image/jpeg";
|
|
@@ -992,6 +1055,8 @@ type UploadChatAttachmentInput = {
|
|
|
992
1055
|
onProgress?: (progress: PublicAssetUploadProgress) => void;
|
|
993
1056
|
signal?: AbortSignal;
|
|
994
1057
|
};
|
|
1058
|
+
/** A local generation input (image, video, or audio); same shape as a chat attachment. */
|
|
1059
|
+
type UploadGenerationInputInput = UploadChatAttachmentInput;
|
|
995
1060
|
/** @deprecated Prefer UploadChatAttachmentInput — images are a special case of chat attachments. */
|
|
996
1061
|
type UploadChatImageAttachmentInput = UploadChatAttachmentInput & {
|
|
997
1062
|
mimeType: PublicAssetMimeType;
|
|
@@ -1006,6 +1071,8 @@ declare class PublicAssetsApi {
|
|
|
1006
1071
|
/** Durable public upload for any chat attachment (image or file). No space required. */
|
|
1007
1072
|
uploadAppSource(input: UploadAppSourceInput): Promise<PublicAssetUploadBase>;
|
|
1008
1073
|
uploadChatAttachment(input: UploadChatAttachmentInput): Promise<PublicAssetUploadBase>;
|
|
1074
|
+
/** Durable, unlisted URL for a local generation input (image, video, or audio). */
|
|
1075
|
+
uploadGenerationInput(input: UploadGenerationInputInput): Promise<PublicAssetUploadBase>;
|
|
1009
1076
|
/** Preprocessed chat image (webp/jpeg). Same durable path as uploadChatAttachment. */
|
|
1010
1077
|
uploadChatImageAttachment(input: UploadChatImageAttachmentInput): Promise<PublicAssetUploadBase>;
|
|
1011
1078
|
}
|
|
@@ -1497,6 +1564,11 @@ declare class SessionClient {
|
|
|
1497
1564
|
space: SpaceRecord;
|
|
1498
1565
|
session: SessionRecord;
|
|
1499
1566
|
}>;
|
|
1567
|
+
/** Space files changed by this session's agent write/edit tool calls. */
|
|
1568
|
+
files(options?: {
|
|
1569
|
+
limit?: number;
|
|
1570
|
+
signal?: AbortSignal;
|
|
1571
|
+
}): Promise<SessionFilesResponse>;
|
|
1500
1572
|
rename(title: string | null, customFetch?: Fetch): Promise<{
|
|
1501
1573
|
session: SessionRecord;
|
|
1502
1574
|
}>;
|
|
@@ -2206,6 +2278,7 @@ type AppExtractedPageMeta = {
|
|
|
2206
2278
|
lang?: string | null;
|
|
2207
2279
|
themeColor?: string | null;
|
|
2208
2280
|
surface?: "window" | "overlay" | null;
|
|
2281
|
+
fileHandlers?: string[];
|
|
2209
2282
|
sourcePath?: string | null;
|
|
2210
2283
|
extractedAt?: string | null;
|
|
2211
2284
|
};
|
|
@@ -2226,6 +2299,8 @@ type AppMeta = Record<string, unknown> & {
|
|
|
2226
2299
|
/** CSS color from meta theme-color. */
|
|
2227
2300
|
themeColor?: string;
|
|
2228
2301
|
presentation?: AppPresentationMeta;
|
|
2302
|
+
/** File extensions the App opens (`[".board"]`), from `<meta name="cohub:file-handlers">`. */
|
|
2303
|
+
fileHandlers?: string[];
|
|
2229
2304
|
extracted?: AppExtractedPageMeta;
|
|
2230
2305
|
source?: RequestSource;
|
|
2231
2306
|
};
|
|
@@ -2349,8 +2424,6 @@ type AppDetailResponse = {
|
|
|
2349
2424
|
/** Member who published this App, which may differ from the Space owner. */
|
|
2350
2425
|
publisher: PublicUserProfile;
|
|
2351
2426
|
publicUrl: string | null;
|
|
2352
|
-
/** Direct standalone URL. Unlike publicUrl, this page has no Cohub shell. */
|
|
2353
|
-
standaloneUrl?: string | null;
|
|
2354
2427
|
content: AppContent | null;
|
|
2355
2428
|
/** Version whose content is served; the current version when omitted. */
|
|
2356
2429
|
version?: PublicAppVersionSummary | null;
|
|
@@ -2480,11 +2553,9 @@ declare class AppsApi {
|
|
|
2480
2553
|
}>;
|
|
2481
2554
|
create(input: AppCreateInput): Promise<{
|
|
2482
2555
|
app: AppRecord;
|
|
2483
|
-
standaloneUrl?: string | null;
|
|
2484
2556
|
}>;
|
|
2485
2557
|
update(id: string, input: AppUpdateInput): Promise<{
|
|
2486
2558
|
app: AppRecord;
|
|
2487
|
-
standaloneUrl?: string | null;
|
|
2488
2559
|
}>;
|
|
2489
2560
|
delete(id: string): Promise<{
|
|
2490
2561
|
ok: true;
|
|
@@ -2522,7 +2593,6 @@ declare class AppsApi {
|
|
|
2522
2593
|
meta?: AppMeta | null;
|
|
2523
2594
|
}): Promise<{
|
|
2524
2595
|
app: AppRecord;
|
|
2525
|
-
standaloneUrl?: string | null;
|
|
2526
2596
|
version: AppVersionRecord;
|
|
2527
2597
|
}>;
|
|
2528
2598
|
createSession(appId: string): Promise<AppSessionResponse>;
|
|
@@ -2768,4 +2838,4 @@ declare class CohubHttpClient {
|
|
|
2768
2838
|
}
|
|
2769
2839
|
declare const createHttpClient: (options?: CohubClientOptions) => CohubHttpClient;
|
|
2770
2840
|
//#endregion
|
|
2771
|
-
export { AppTargetType as $,
|
|
2841
|
+
export { AppTargetType as $, HttpTraceContext as $n, PublicFileUrlResponse as $r, SpaceWebhooksApi as $t, WaitForUiCommandOptions as A, ReferencesApi as An, resolveAppTransport as Ar, WorkUpdateInput as At, AppPresentationMeta as B, UploadChatAttachmentInput as Bn, AppDropResourceType as Br, BoardAwarenessUpdatedEvent as Bt, DesktopCommandsApi as C, SessionPatchApplyResult as Cn, AppRuntimeTransport as Cr, WorkPublicOwnerRecord as Ct, UiCommandStatus as D, createSessionPatchReducer as Dn, createAppRuntime as Dr, WorkSessionResponse as Dt, UiCommandRecord as E, SessionPatchStatus as En, PopupBrokerTransport as Er, WorkResolveResponse as Et, AppCreateInput as F, PublicAssetPurpose as Fn, AppNavigationTarget as Fr, ReferralsApi as Ft, AppPromotionRecord as G, PromptsApi as Gn, AppWindowStatus as Gr, BoardSubscriptionHandlers as Gt, AppPromotionEventResponse as H, UploadGenerationInputInput as Hn, AppRuntimeConfigureRequest as Hr, BoardClient as Ht, AppDetailResponse as I, PublicAssetUploadProgress as In, APP_APPEARANCE_TOKENS as Ir, UsersApi as It, AppPublicSpaceRecord as J, CronJobsApi as Jn, PublicFileCreateUploadResponse as Jr, SpaceChannelBindingRecord as Jt, AppPromotionStatsResponse as K, ModelsApi as Kn, appAppearanceVar as Kr, SessionEventName as Kt, AppExtractedPageMeta as L, PublicAssetUploadProtocol as Ln, AppAppearance as Lr, UserApi as Lt, AppAuthorizeResponse as M, CreatePublicAssetUploadInput as Mn, AppNavigationLaunch as Mr, WorkViewSource as Mt, AppContent as N, CreatePublicAssetUploadResponse as Nn, AppNavigationOpenMessage as Nr, WorkViewStatsResponse as Nt, UiCommandsApi as O, SessionAccessApi as On, createOriginAppResolver as Or, WorkStatus as Ot, AppContentDownload as P, PublicAssetMimeType as Pn, AppNavigationOpenResponse as Pr, WorkVisibility as Pt, AppStatus as Q, HttpError as Qn, PublicFileUploadPlanEntry as Qr, SpaceTurnListOptions as Qt, AppGetResponse as R, PublicAssetsApi as Rn, AppAppearanceToken as Rr, TaskWaitOptions as Rt, CreateUiCommandInput as S, SessionPatchApplyInput as Sn, AppRuntimeShellContext as Sr, WorkPromotionStatsResponse as St, UiCommandError as T, SessionPatchState as Tn, ParentBridgeTransport as Tr, WorkRecord as Tt, AppPromotionProvider as U, UploadPublicAssetInput as Un, AppRuntimeRect as Ur, BoardEventName as Ut, AppPromotionCreateInput as V, UploadChatImageAttachmentInput as Vn, AppRuntimeAnchor as Vr, BoardChangedEvent as Vt, AppPromotionProviderStatus as W, SkillsApi as Wn, AppWindowState as Wr, BoardPlaybackChangedEvent as Wt, AppResolveResponse as X, CohubClientOptions as Xn, PublicFileListResponse as Xr, SpaceEventName as Xt, AppRecord as Y, ChannelsApi as Yn, PublicFileListEntry as Yr, SpaceClient as Yt, AppSessionResponse as Z, Fetch as Zn, PublicFileUploadEntryInput as Zr, SpacePublicFilesApi as Zt, WorkCommerceEntitlementsResponse as _, GenerationStreamSubscriptionHandlers as _n, AppRuntimeError as _r, WorkPromotionCreateInput as _t, AppCommerceCreditConsumeResponse as a, GenerationTaskResult as ai, buildSpaceInvitePath as an, sanitizeAccessToken as ar, AppVisibility as at, WorkCommercePurchaseResponse as b, createSessionGenerationStreamClient as bn, AppRuntimeRequestOptions as br, WorkPromotionProviderStatus as bt, AppCommerceEntitlementsResponse as c, PublicGenerationDeclaration as ci, GenerationStreamCommitEvent as cn, AppDiagnostic as cr, WorkAuthorizeResponse as ct, AppCommercePurchaseResponse as d, GenerationStreamFinalizedEvent as dn, AppRuntimeApi as dr, WorkCreateInput as dt, SpaceWebhookListItem as ei, SpacesApi as en, HttpTransport as er, AppUpdateInput as et, WorkCommerceApi as f, GenerationStreamIntermediateMessage as fn, AppRuntimeAppResolver as fr, WorkDetailResponse as ft, WorkCommerceEntitlement as g, GenerationStreamSubscribeOptions as gn, AppRuntimeContext as gr, WorkPresentationMeta as gt, WorkCommerceCreditConsumeStatus as h, GenerationStreamStateEvent as hn, AppRuntimeCheckoutStatus as hr, WorkMeta as ht, AppCommerceCheckoutStatus as i, CreateGenerationTaskResponse as ii, PublicInviteApi as in, matchesUnauthorizedErrorToken as ir, AppViewerGrantRecord as it, AppActionRunResponse as j, SearchApi as jn, AppNavigationCall as jr, WorkVersionRecord as jt, WaitForDesktopCommandOptions as k, ReferenceResourceSelector as kn, createSlugAppIdResolver as kr, WorkTargetType as kt, AppCommerceOrder as l, ModelStatusEntry as li, GenerationStreamErrorEvent as ln, AppDiagnosticListener as lr, WorkContent as lt, WorkCommerceCreditConsumeResponse as m, GenerationStreamOutOfSyncEvent as mn, AppRuntimeCheckoutState as mr, WorkGetResponse as mt, createHttpClient as n, SpaceStartupResponse as ni, BuildSpaceInvitePathInput as nn, UnauthorizedContext as nr, AppViewSource as nt, AppCommerceCreditConsumeStatus as o, GenerationUsageBilling as oi, buildSpacePath as on, AppAuthorizationRequest as or, AppsApi as ot, WorkCommerceCheckoutStatus as p, GenerationStreamLifecycleEvent as pn, AppRuntimeAuthorizationResult as pr, WorkExtractedPageMeta as pt, AppPublicOwnerRecord as q, GenerationsApi as qn, PublicFileCreateUploadInput as qr, SessionSubscriptionHandlers as qt, AppCommerceApi as r, CreateGenerationTaskRequest as ri, BuildSpacePathInput as rn, joinApiUrl as rr, AppViewStatsResponse as rt, AppCommerceEntitlement as s, ListGenerationModelsResponse as si, AssistantMessageCommit as sn, AppContextChangedListener as sr, PublicAppVersionSummary as st, CohubHttpClient as t, SpaceWebhookTriggerResponse as ti, WebSocketConnectionState as tn, RawHttpResponse as tr, AppVersionRecord as tt, AppCommerceProductResolveResponse as u, ModelStatusResponse as ui, GenerationStreamEvent as un, AppIdResolver as ur, WorkContentDownload as ut, WorkCommerceOrder as v, GenerationStreamTurnUpdatedEvent as vn, AppRuntimeInvocationContext as vr, WorkPromotionEventResponse as vt, UiCommand as w, SessionPatchReducer as wn, OriginBrokerTransport as wr, WorkPublicSpaceRecord as wt, CreateDesktopCommandInput as x, parseAssistantMessageCommit as xn, AppRuntimeResolvedApp as xr, WorkPromotionRecord as xt, WorkCommerceProductResolveResponse as y, SessionGenerationStreamClient as yn, AppRuntimeModeConfig as yr, WorkPromotionProvider as yt, AppMeta as z, UploadAppSourceInput as zn, AppDropResource as zr, TasksApi as zt };
|
package/dist/chunks/http.js
CHANGED
|
@@ -1443,6 +1443,13 @@ var PublicAssetsApi = class {
|
|
|
1443
1443
|
signal: input.signal
|
|
1444
1444
|
});
|
|
1445
1445
|
}
|
|
1446
|
+
/** Durable, unlisted URL for a local generation input (image, video, or audio). */
|
|
1447
|
+
uploadGenerationInput(input) {
|
|
1448
|
+
return this.upload({
|
|
1449
|
+
...input,
|
|
1450
|
+
purpose: "generation_input"
|
|
1451
|
+
});
|
|
1452
|
+
}
|
|
1446
1453
|
/** Preprocessed chat image (webp/jpeg). Same durable path as uploadChatAttachment. */
|
|
1447
1454
|
uploadChatImageAttachment(input) {
|
|
1448
1455
|
return this.uploadChatAttachment(input);
|
|
@@ -3104,6 +3111,11 @@ var SessionClient = class {
|
|
|
3104
3111
|
get(customFetch) {
|
|
3105
3112
|
return this.transport.request(`/api/sessions/${this.id}`, { fetch: customFetch });
|
|
3106
3113
|
}
|
|
3114
|
+
/** Space files changed by this session's agent write/edit tool calls. */
|
|
3115
|
+
files(options = {}) {
|
|
3116
|
+
const query = options.limit ? `?limit=${options.limit}` : "";
|
|
3117
|
+
return this.transport.request(`/api/sessions/${this.id}/files${query}`, { signal: options.signal });
|
|
3118
|
+
}
|
|
3107
3119
|
rename(title, customFetch) {
|
|
3108
3120
|
return this.transport.request(`/api/sessions/${this.id}`, {
|
|
3109
3121
|
method: "PATCH",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { J as BillingResponsePayload, Lo as BoardAwarenessUpdate, Wa as ChannelEnvelope, Ya as RealtimeRoom, cc as ModelThinkingLevel, fc as ContentBlock, r as CohubEnvironment } from "./environment.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/websocket.d.ts
|
|
4
4
|
type WebsocketEventPayload = ChannelEnvelope;
|