aidevops 3.29.1 → 3.29.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/VERSION +1 -1
- package/aidevops.sh +1 -1
- package/package.json +1 -1
- package/packages/gui-shared/src/contracts.ts +110 -0
- package/setup.sh +1 -1
package/README.md
CHANGED
|
@@ -58,7 +58,7 @@ The result: an AI operations platform that manages projects across every busines
|
|
|
58
58
|
[](https://github.com/marcusquinn)
|
|
59
59
|
|
|
60
60
|
<!-- Release & Version Info -->
|
|
61
|
-
[](https://github.com/marcusquinn/aidevops/releases)
|
|
62
62
|
[](https://www.npmjs.com/package/aidevops)
|
|
63
63
|
[](https://github.com/marcusquinn/homebrew-tap)
|
|
64
64
|
[](https://github.com/marcusquinn/aidevops)
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.29.
|
|
1
|
+
3.29.2
|
package/aidevops.sh
CHANGED
package/package.json
CHANGED
|
@@ -185,6 +185,100 @@ export interface GuiOpenCodeSessionRegistrySummary {
|
|
|
185
185
|
sessions: GuiOpenCodeSessionSummary[];
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
+
export type GuiConversationType = "ai_session" | "channel" | "dm" | "group_dm" | "worker_thread";
|
|
189
|
+
|
|
190
|
+
export type GuiConversationParticipantKind = "human" | "ai_assistant" | "worker" | "system_bot";
|
|
191
|
+
|
|
192
|
+
export type GuiConversationMessageSenderKind = GuiConversationParticipantKind | "system";
|
|
193
|
+
|
|
194
|
+
export type GuiConversationMessagePartKind = "text" | "file" | "tool_call" | "source" | "tambo_component" | "approval_prompt" | "event_marker";
|
|
195
|
+
|
|
196
|
+
export interface GuiConversationScope {
|
|
197
|
+
tenant_ref: string;
|
|
198
|
+
workspace_ref: string;
|
|
199
|
+
repo_ref: string | null;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export interface GuiConversation {
|
|
203
|
+
id: string;
|
|
204
|
+
type: GuiConversationType;
|
|
205
|
+
title: string;
|
|
206
|
+
scope: GuiConversationScope;
|
|
207
|
+
source_ref: string;
|
|
208
|
+
status: "active" | "archived" | "read_only";
|
|
209
|
+
created_at: string;
|
|
210
|
+
updated_at: string;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export interface GuiConversationParticipant {
|
|
214
|
+
id: string;
|
|
215
|
+
conversation_id: string;
|
|
216
|
+
kind: GuiConversationParticipantKind;
|
|
217
|
+
display_name: string;
|
|
218
|
+
identity_ref: string | null;
|
|
219
|
+
agent_ref: string | null;
|
|
220
|
+
worker_ref: string | null;
|
|
221
|
+
membership_state: "active" | "invited" | "left" | "removed";
|
|
222
|
+
joined_at: string;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export interface GuiConversationUsageMetadata {
|
|
226
|
+
provider_ref: string | null;
|
|
227
|
+
model_ref: string | null;
|
|
228
|
+
input_tokens: number;
|
|
229
|
+
output_tokens: number;
|
|
230
|
+
total_tokens: number;
|
|
231
|
+
cost_ref: string | null;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export interface GuiConversationMessage {
|
|
235
|
+
id: string;
|
|
236
|
+
conversation_id: string;
|
|
237
|
+
sender_participant_id: string | null;
|
|
238
|
+
sender_kind: GuiConversationMessageSenderKind;
|
|
239
|
+
sequence: number;
|
|
240
|
+
status: "draft" | "sent" | "delivered" | "failed" | "redacted";
|
|
241
|
+
usage: GuiConversationUsageMetadata | null;
|
|
242
|
+
created_at: string;
|
|
243
|
+
edited_at: string | null;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
export interface GuiConversationMessagePart {
|
|
247
|
+
id: string;
|
|
248
|
+
message_id: string;
|
|
249
|
+
kind: GuiConversationMessagePartKind;
|
|
250
|
+
ordinal: number;
|
|
251
|
+
text: string | null;
|
|
252
|
+
payload_json: Record<string, unknown> | null;
|
|
253
|
+
file_ref: string | null;
|
|
254
|
+
source_ref: string | null;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export interface GuiConversationReaction {
|
|
258
|
+
id: string;
|
|
259
|
+
message_id: string;
|
|
260
|
+
participant_id: string;
|
|
261
|
+
reaction: string;
|
|
262
|
+
created_at: string;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export interface GuiConversationReadState {
|
|
266
|
+
conversation_id: string;
|
|
267
|
+
participant_id: string;
|
|
268
|
+
last_read_message_id: string | null;
|
|
269
|
+
last_read_sequence: number;
|
|
270
|
+
updated_at: string;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export interface GuiConversationThread {
|
|
274
|
+
conversation: GuiConversation;
|
|
275
|
+
participants: GuiConversationParticipant[];
|
|
276
|
+
messages: GuiConversationMessage[];
|
|
277
|
+
parts: GuiConversationMessagePart[];
|
|
278
|
+
reactions: GuiConversationReaction[];
|
|
279
|
+
read_states: GuiConversationReadState[];
|
|
280
|
+
}
|
|
281
|
+
|
|
188
282
|
export type GuiAiProviderId = "anthropic" | "openai" | "cursor" | "google";
|
|
189
283
|
|
|
190
284
|
export interface GuiOAuthPoolAccountSummary {
|
|
@@ -499,3 +593,19 @@ export function assertNoSecretSentinels(value: unknown): void {
|
|
|
499
593
|
export function isReadOnlyManifest(manifest: GuiRouteManifest): boolean {
|
|
500
594
|
return manifest.method === "GET" && manifest.classification === "read";
|
|
501
595
|
}
|
|
596
|
+
|
|
597
|
+
export function sortConversationMessages<TMessage extends Pick<GuiConversationMessage, "sequence" | "created_at">>(messages: TMessage[]): TMessage[] {
|
|
598
|
+
return [...messages].sort((left, right) => left.sequence - right.sequence || left.created_at.localeCompare(right.created_at));
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
export function sortConversationMessageParts<TPart extends Pick<GuiConversationMessagePart, "ordinal">>(parts: TPart[]): TPart[] {
|
|
602
|
+
return [...parts].sort((left, right) => left.ordinal - right.ordinal);
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
export function participantCanReadConversation(thread: GuiConversationThread, participantId: string): boolean {
|
|
606
|
+
return thread.participants.some((participant) => participant.id === participantId && participant.membership_state === "active");
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
export function conversationHasScope(thread: GuiConversationThread, scope: GuiConversationScope): boolean {
|
|
610
|
+
return thread.conversation.scope.tenant_ref === scope.tenant_ref && thread.conversation.scope.workspace_ref === scope.workspace_ref && thread.conversation.scope.repo_ref === scope.repo_ref;
|
|
611
|
+
}
|
package/setup.sh
CHANGED
|
@@ -12,7 +12,7 @@ shopt -s inherit_errexit 2>/dev/null || true
|
|
|
12
12
|
# AI Assistant Server Access Framework Setup Script
|
|
13
13
|
# Helps developers set up the framework for their infrastructure
|
|
14
14
|
#
|
|
15
|
-
# Version: 3.29.
|
|
15
|
+
# Version: 3.29.2
|
|
16
16
|
#
|
|
17
17
|
# Quick Install:
|
|
18
18
|
# npm install -g aidevops && aidevops update (recommended)
|