@parall/agent-core 1.30.0 → 1.32.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/bridge-workspace.js +12 -12
- package/dist/dispatch-adapter.d.ts +15 -8
- package/dist/dispatch-adapter.d.ts.map +1 -1
- package/dist/event-format.d.ts +1 -1
- package/dist/event-format.d.ts.map +1 -1
- package/dist/event-format.js +68 -25
- package/dist/gateway-base.d.ts +15 -13
- package/dist/gateway-base.d.ts.map +1 -1
- package/dist/gateway-base.js +662 -312
- package/dist/index.d.ts +15 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -11
- package/dist/internal/attachment-input.d.ts +3 -3
- package/dist/internal/attachment-input.d.ts.map +1 -1
- package/dist/internal/attachment-input.js +61 -58
- package/dist/logger.d.ts +1 -1
- package/dist/platform-config.d.ts +28 -2
- package/dist/platform-config.d.ts.map +1 -1
- package/dist/platform-config.js +42 -11
- package/dist/prompt-fragments.d.ts +1 -1
- package/dist/prompt-fragments.d.ts.map +1 -1
- package/dist/prompt-fragments.js +28 -10
- package/dist/provider-config.d.ts +20 -0
- package/dist/provider-config.d.ts.map +1 -0
- package/dist/provider-config.js +41 -0
- package/dist/routing.d.ts +5 -5
- package/dist/routing.js +6 -6
- package/dist/session-state.d.ts +16 -0
- package/dist/session-state.d.ts.map +1 -1
- package/dist/session-state.js +45 -0
- package/dist/skills/index.d.ts +5 -4
- package/dist/skills/index.d.ts.map +1 -1
- package/dist/skills/index.js +28 -21
- package/dist/skills/parall-clips.d.ts +2 -0
- package/dist/skills/parall-clips.d.ts.map +1 -0
- package/dist/skills/parall-clips.js +44 -0
- package/dist/telemetry.d.ts +27 -0
- package/dist/telemetry.d.ts.map +1 -0
- package/dist/telemetry.js +205 -0
- package/dist/types.d.ts +18 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +11 -2
- package/src/bridge-workspace.ts +12 -12
- package/src/dispatch-adapter.ts +31 -8
- package/src/event-format.ts +80 -30
- package/src/gateway-base.ts +998 -442
- package/src/index.ts +23 -12
- package/src/internal/attachment-input.ts +127 -100
- package/src/logger.ts +1 -1
- package/src/platform-config.ts +61 -16
- package/src/prompt-fragments.ts +28 -10
- package/src/provider-config.ts +51 -0
- package/src/routing.ts +11 -11
- package/src/session-state.ts +62 -0
- package/src/skills/index.ts +34 -23
- package/src/skills/parall-clips.ts +44 -0
- package/src/telemetry.ts +252 -0
- package/src/types.ts +18 -2
package/src/types.ts
CHANGED
|
@@ -24,10 +24,17 @@ export type DispatchState = {
|
|
|
24
24
|
|
|
25
25
|
/** Normalized inbound event from Parall. */
|
|
26
26
|
export type ParallEvent = {
|
|
27
|
-
type:
|
|
27
|
+
type: 'message' | 'task' | 'task_comment' | 'wiki_comment' | 'schedule' | 'approval';
|
|
28
28
|
targetId: string;
|
|
29
29
|
targetName?: string;
|
|
30
30
|
targetType?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Full `prll://` target URI to reply on, used for wiki_comment events where
|
|
33
|
+
* the reply goes back to the same wiki page / changeset via
|
|
34
|
+
* `parall comments add --target <uri>`. Carried separately from `targetId`
|
|
35
|
+
* (a bare entity id) because the reply needs the full URI incl. path/anchor.
|
|
36
|
+
*/
|
|
37
|
+
replyTargetUri?: string;
|
|
31
38
|
deliveryReason?: string;
|
|
32
39
|
senderId: string;
|
|
33
40
|
senderName: string;
|
|
@@ -48,6 +55,15 @@ export type ParallEvent = {
|
|
|
48
55
|
/** Original event timestamp (e.g., message.created_at). When present,
|
|
49
56
|
* input steps use this instead of server insertion time for ordering. */
|
|
50
57
|
sentAt?: string;
|
|
51
|
-
ackSourceType?:
|
|
58
|
+
ackSourceType?: 'message' | 'task_activity' | 'comment' | 'schedule_run';
|
|
52
59
|
ackSourceId?: string;
|
|
60
|
+
/** Unread message count in the target chat since agent's last interaction. */
|
|
61
|
+
unreadCount?: number;
|
|
62
|
+
/** Channel cursor: the last message ID the agent read. */
|
|
63
|
+
unreadSince?: string;
|
|
64
|
+
/** For thread replies: total replies and unread replies in the thread. */
|
|
65
|
+
threadReplyCount?: number;
|
|
66
|
+
threadUnreadCount?: number;
|
|
67
|
+
/** Thread cursor: the last reply ID the agent read in this thread. */
|
|
68
|
+
threadUnreadSince?: string;
|
|
53
69
|
};
|