@elevasis/core 0.7.0 → 0.7.1
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/package.json +3 -3
- package/src/_gen/__tests__/__snapshots__/contracts.md.snap +1 -1
- package/src/business/projects/index.ts +1 -0
- package/src/business/projects/sse-events.ts +21 -0
- package/src/execution/engine/tools/registry.ts +4 -3
- package/src/platform/constants/versions.ts +1 -1
- package/src/platform/sse/events.ts +3 -0
- package/src/reference/_generated/contracts.md +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elevasis/core",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Minimal shared constants across Elevasis monorepo",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"rollup-plugin-dts": "^6.3.0",
|
|
34
34
|
"tsup": "^8.0.0",
|
|
35
35
|
"typescript": "5.9.2",
|
|
36
|
-
"@repo/
|
|
37
|
-
"@repo/
|
|
36
|
+
"@repo/eslint-config": "0.0.0",
|
|
37
|
+
"@repo/typescript-config": "0.0.0"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@anthropic-ai/sdk": "^0.62.0",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Auto-generated on 2026-04-
|
|
1
|
+
<!-- Auto-generated on 2026-04-21T07:07:41.380Z by scripts/monorepo/generate-scaffold-contracts.js -->
|
|
2
2
|
---
|
|
3
3
|
title: Reference Contracts
|
|
4
4
|
description: Auto-generated TypeScript contracts for SDK consumers. Do not edit manually.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type DeliveryEntityType = 'project' | 'milestone' | 'task' | 'note' | 'activity'
|
|
2
|
+
|
|
3
|
+
export type DeliveryEntityChangedAction = 'created' | 'updated' | 'deleted'
|
|
4
|
+
|
|
5
|
+
export interface DeliveryConnectedEvent {
|
|
6
|
+
type: 'connected'
|
|
7
|
+
timestamp: number
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface DeliveryEntityChangedEvent {
|
|
11
|
+
type: 'entity_changed'
|
|
12
|
+
timestamp: number
|
|
13
|
+
data: {
|
|
14
|
+
entityType: DeliveryEntityType
|
|
15
|
+
action: DeliveryEntityChangedAction
|
|
16
|
+
projectId: string
|
|
17
|
+
entityId: string
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type DeliverySSEEvent = DeliveryConnectedEvent | DeliveryEntityChangedEvent
|
|
@@ -174,6 +174,7 @@ type TaskUpdate = Database['public']['Tables']['prj_tasks']['Update']
|
|
|
174
174
|
type NoteInsert = Database['public']['Tables']['prj_notes']['Insert']
|
|
175
175
|
type NoteUpdate = Database['public']['Tables']['prj_notes']['Update']
|
|
176
176
|
type TaskResumeContextRow = Pick<TaskRow, 'id' | 'resume_context' | 'updated_at'>
|
|
177
|
+
type DeleteEntityResult = { id: string; project_id: string }
|
|
177
178
|
|
|
178
179
|
export interface IProjectsService {
|
|
179
180
|
listProjects(
|
|
@@ -203,7 +204,7 @@ export interface IProjectsService {
|
|
|
203
204
|
organizationId: string,
|
|
204
205
|
input: Omit<MilestoneUpdate, 'organization_id'>
|
|
205
206
|
): Promise<MilestoneRow | null>
|
|
206
|
-
deleteMilestone(id: string, organizationId: string): Promise<
|
|
207
|
+
deleteMilestone(id: string, organizationId: string): Promise<DeleteEntityResult | null>
|
|
207
208
|
listTasks(
|
|
208
209
|
projectId: string,
|
|
209
210
|
organizationId: string,
|
|
@@ -216,7 +217,7 @@ export interface IProjectsService {
|
|
|
216
217
|
getTask(id: string, organizationId: string): Promise<TaskRow | null>
|
|
217
218
|
createTask(input: Omit<TaskInsert, 'organization_id'> & { organizationId: string }): Promise<TaskRow>
|
|
218
219
|
updateTask(id: string, organizationId: string, input: Omit<TaskUpdate, 'organization_id'>): Promise<TaskRow | null>
|
|
219
|
-
deleteTask(id: string, organizationId: string): Promise<
|
|
220
|
+
deleteTask(id: string, organizationId: string): Promise<DeleteEntityResult | null>
|
|
220
221
|
mergeTaskResumeContext(
|
|
221
222
|
id: string,
|
|
222
223
|
organizationId: string,
|
|
@@ -225,7 +226,7 @@ export interface IProjectsService {
|
|
|
225
226
|
listNotes(projectId: string, organizationId: string): Promise<NoteRow[]>
|
|
226
227
|
createNote(input: Omit<NoteInsert, 'organization_id'> & { organizationId: string }): Promise<NoteRow>
|
|
227
228
|
updateNote(id: string, organizationId: string, input: Omit<NoteUpdate, 'organization_id'>): Promise<NoteRow | null>
|
|
228
|
-
deleteNote(id: string, organizationId: string): Promise<
|
|
229
|
+
deleteNote(id: string, organizationId: string): Promise<DeleteEntityResult | null>
|
|
229
230
|
}
|
|
230
231
|
|
|
231
232
|
// =============================================================================
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
import type { NotificationSSEEvent, NotificationCountUpdatedEvent } from '../../operations/notifications/sse-events'
|
|
8
8
|
import type { ActivitySSEEvent, ActivityCreatedEvent, ActivityConnectedEvent } from '../../operations/activities/sse-events'
|
|
9
9
|
import type { CommandQueueSSEEvent, CommandQueueTaskUpdatedEvent, CommandQueueConnectedEvent } from '../../commands/queue/sse-events'
|
|
10
|
+
import type { DeliverySSEEvent, DeliveryConnectedEvent, DeliveryEntityChangedEvent } from '../../business/projects/sse-events'
|
|
10
11
|
import type {
|
|
11
12
|
ExecutionSSEEvent,
|
|
12
13
|
ExecutionStartedEvent,
|
|
@@ -19,6 +20,7 @@ import type {
|
|
|
19
20
|
export type { NotificationSSEEvent, NotificationCountUpdatedEvent }
|
|
20
21
|
export type { ActivitySSEEvent, ActivityCreatedEvent, ActivityConnectedEvent }
|
|
21
22
|
export type { CommandQueueSSEEvent, CommandQueueTaskUpdatedEvent, CommandQueueConnectedEvent }
|
|
23
|
+
export type { DeliverySSEEvent, DeliveryConnectedEvent, DeliveryEntityChangedEvent }
|
|
22
24
|
export type { ExecutionSSEEvent, ExecutionStartedEvent, ExecutionLogEvent, ExecutionCompleteEvent, ExecutionConnectedEvent }
|
|
23
25
|
|
|
24
26
|
/**
|
|
@@ -31,4 +33,5 @@ export type AppSSEEvent =
|
|
|
31
33
|
| NotificationSSEEvent
|
|
32
34
|
| ActivitySSEEvent
|
|
33
35
|
| CommandQueueSSEEvent
|
|
36
|
+
| DeliverySSEEvent
|
|
34
37
|
| ExecutionSSEEvent
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Auto-generated on 2026-04-
|
|
1
|
+
<!-- Auto-generated on 2026-04-21 by scripts/monorepo/generate-scaffold-contracts.js -->
|
|
2
2
|
---
|
|
3
3
|
title: Reference Contracts
|
|
4
4
|
description: Auto-generated TypeScript contracts for SDK consumers. Do not edit manually.
|
|
@@ -363,6 +363,8 @@ export interface ElevasisFeaturesProviderProps {
|
|
|
363
363
|
timeRange?: TimeRange
|
|
364
364
|
operationsApiUrl?: string
|
|
365
365
|
operationsSSEManager?: SSEConnectionManagerLike
|
|
366
|
+
deliveryApiUrl?: string
|
|
367
|
+
deliverySSEManager?: SSEConnectionManagerLike
|
|
366
368
|
disabledSubsectionPaths?: string[]
|
|
367
369
|
children: ReactNode
|
|
368
370
|
}
|
|
@@ -381,6 +383,8 @@ export interface ElevasisFeaturesContextValue {
|
|
|
381
383
|
timeRange?: TimeRange
|
|
382
384
|
operationsApiUrl?: string
|
|
383
385
|
operationsSSEManager?: SSEConnectionManagerLike
|
|
386
|
+
deliveryApiUrl?: string
|
|
387
|
+
deliverySSEManager?: SSEConnectionManagerLike
|
|
384
388
|
disabledSubsectionPaths: string[]
|
|
385
389
|
isFeatureEnabled: (key: string) => boolean
|
|
386
390
|
getResolvedFeature: (key: string) => ResolvedFeatureModule | undefined
|