@sentry/junior 0.106.0 → 0.107.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/dist/{agent-hooks-KR5BCWOK.js → agent-hooks-ICPIJAFY.js} +9 -7
- package/dist/api/conversations/detail.d.ts +1 -1
- package/dist/api/conversations/events.d.ts +14 -0
- package/dist/api/conversations/schema.d.ts +196 -463
- package/dist/api/schema.d.ts +2 -7
- package/dist/api/schema.js +10 -8
- package/dist/api.js +377 -810
- package/dist/app.js +3586 -3614
- package/dist/{catalog-runtime-5CVM2DOF.js → catalog-runtime-FOFNPR3P.js} +3 -2
- package/dist/chat/agent/prompt.d.ts +1 -1
- package/dist/chat/agent/request.d.ts +28 -29
- package/dist/chat/agent/resume.d.ts +7 -7
- package/dist/chat/agent/session.d.ts +5 -6
- package/dist/chat/agent/tools.d.ts +3 -3
- package/dist/chat/agent-dispatch/runner.d.ts +2 -0
- package/dist/chat/config.d.ts +2 -2
- package/dist/chat/conversations/history.d.ts +582 -167
- package/dist/chat/conversations/message-projection.d.ts +6 -0
- package/dist/chat/conversations/message-summaries.d.ts +9 -0
- package/dist/chat/conversations/messages.d.ts +13 -27
- package/dist/chat/conversations/projection.d.ts +30 -53
- package/dist/chat/conversations/provenance.d.ts +42 -0
- package/dist/chat/conversations/search.d.ts +2 -2
- package/dist/chat/conversations/sql/conversation-row.d.ts +1 -1
- package/dist/chat/conversations/sql/event-lock.d.ts +3 -0
- package/dist/chat/conversations/sql/history.d.ts +3 -3
- package/dist/chat/conversations/sql/privacy.d.ts +27 -0
- package/dist/chat/conversations/sql/purge.d.ts +2 -10
- package/dist/chat/conversations/sql/store.d.ts +0 -5
- package/dist/chat/conversations/store.d.ts +8 -13
- package/dist/chat/conversations/turn-lifecycle.d.ts +41 -0
- package/dist/chat/db.d.ts +4 -10
- package/dist/chat/model-profile.d.ts +10 -0
- package/dist/chat/oauth-flow.d.ts +0 -5
- package/dist/chat/pi/conversation-events.d.ts +33 -0
- package/dist/chat/pi/sql-model-usage.d.ts +10 -0
- package/dist/chat/plugins/agent-hooks.d.ts +4 -2
- package/dist/chat/resource-events/ingest.d.ts +0 -13
- package/dist/chat/runtime/delivered-turn-state.d.ts +1 -1
- package/dist/chat/runtime/generated-artifacts.d.ts +1 -1
- package/dist/chat/runtime/reply-executor.d.ts +2 -0
- package/dist/chat/runtime/slack-resume.d.ts +23 -28
- package/dist/chat/runtime/slack-runtime.d.ts +2 -0
- package/dist/chat/runtime/turn.d.ts +14 -1
- package/dist/chat/services/context-compaction-marker.d.ts +0 -1
- package/dist/chat/services/context-compaction.d.ts +1 -0
- package/dist/chat/services/conversation-memory.d.ts +9 -0
- package/dist/chat/services/plugin-auth-orchestration.d.ts +1 -4
- package/dist/chat/services/subscribed-decision.d.ts +1 -1
- package/dist/chat/services/turn-failure-response.d.ts +10 -3
- package/dist/chat/services/turn-result.d.ts +7 -12
- package/dist/chat/services/{turn-reasoning-level.d.ts → turn-router.d.ts} +12 -8
- package/dist/chat/services/turn-session-record.d.ts +15 -16
- package/dist/chat/slack/adapter.d.ts +2 -2
- package/dist/chat/slack/errors.d.ts +2 -0
- package/dist/chat/slack/outbound.d.ts +0 -1
- package/dist/chat/slack/reply.d.ts +2 -8
- package/dist/chat/slack/tools/channel-capabilities.d.ts +2 -2
- package/dist/chat/slack/tools/{send-message.d.ts → send-files.d.ts} +27 -19
- package/dist/chat/state/conversation.d.ts +4 -4
- package/dist/chat/state/turn-id.d.ts +2 -0
- package/dist/chat/state/turn-session-keys.d.ts +6 -0
- package/dist/chat/state/turn-session.d.ts +11 -9
- package/dist/chat/task-execution/state.d.ts +6 -1
- package/dist/chat/task-execution/store.d.ts +1 -1
- package/dist/chat/tool-support/pi-tool-adapter.d.ts +1 -1
- package/dist/chat/tool-support/tool-execution-report.d.ts +1 -0
- package/dist/chat/tools/handoff/tool.d.ts +2 -2
- package/dist/chat/tools/sandbox/file-uploads.d.ts +28 -6
- package/dist/chat/tools/types.d.ts +6 -9
- package/dist/chat/tools/web/image-generate.d.ts +4 -6
- package/dist/{chunk-DDRQ4U7I.js → chunk-4YF7Z6IA.js} +390 -270
- package/dist/{chunk-AZ5OMSN5.js → chunk-AUUOHQAT.js} +2 -2
- package/dist/chunk-B2Z2H66D.js +250 -0
- package/dist/{chunk-4W4O4DCV.js → chunk-CQ7KSO2B.js} +75 -45
- package/dist/{chunk-MJSJAHBW.js → chunk-DY7TRYB5.js} +1 -1
- package/dist/{chunk-GPPUTY5M.js → chunk-EDLNHZH3.js} +861 -891
- package/dist/{chunk-R5BFYK2O.js → chunk-IGHMVDWI.js} +134 -18
- package/dist/chunk-MU6HHZEN.js +99 -0
- package/dist/{chunk-XTKJPSMF.js → chunk-NVOTGWYX.js} +458 -684
- package/dist/{chunk-AEWZ7F65.js → chunk-O24R4DCK.js} +2 -179
- package/dist/{chunk-CCFROYAV.js → chunk-PUAMO4PI.js} +115 -125
- package/dist/{chunk-ZMRLBBD5.js → chunk-RMVOAJRL.js} +30 -13
- package/dist/{chunk-3NYUCBLE.js → chunk-SPUAJVVH.js} +6 -4
- package/dist/{chunk-4UYIRWDW.js → chunk-SS67LUOK.js} +41 -290
- package/dist/{chunk-FXFQNHRU.js → chunk-VFUK3X5B.js} +4 -2
- package/dist/{chunk-3MPPVPGZ.js → chunk-VH6KWKG2.js} +2 -2
- package/dist/chunk-VIXFG2VC.js +182 -0
- package/dist/{chunk-BKM4UXUD.js → chunk-YFQ7CQDE.js} +669 -18
- package/dist/{chunk-77LHNQK4.js → chunk-YIPD3L6L.js} +4 -2
- package/dist/{chunk-3OUSJPR7.js → chunk-YNP2ATQX.js} +6 -4
- package/dist/{chunk-WR7H7VLJ.js → chunk-YT72TOEK.js} +2 -2
- package/dist/cli/chat.js +21 -20
- package/dist/cli/check.js +4 -3
- package/dist/cli/plugins.js +11 -9
- package/dist/cli/snapshot-warmup.js +7 -5
- package/dist/cli/upgrade.js +2041 -105
- package/dist/db/schema/{agent-steps.d.ts → conversation-events.d.ts} +37 -21
- package/dist/db/schema.d.ts +28 -159
- package/dist/{db-S33LFWG2.js → db-DIGO4TGW.js} +6 -8
- package/dist/{runner-HA5XAL6K.js → runner-ACR2HAIC.js} +209 -101
- package/dist/{skills-722AXRV5.js → skills-ITNHBARB.js} +4 -3
- package/dist/{validation-EUI2UFRM.js → validation-AGQ46ZGV.js} +4 -3
- package/migrations/0005_conversation_events.sql +122 -0
- package/migrations/README.md +23 -10
- package/migrations/meta/0005_snapshot.json +948 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +5 -5
- package/dist/api/conversations/activity.d.ts +0 -40
- package/dist/api/conversations/detail-projection.d.ts +0 -11
- package/dist/api/conversations/detail.query.d.ts +0 -3
- package/dist/api/conversations/subagent.d.ts +0 -10
- package/dist/api/conversations/transcript.d.ts +0 -28
- package/dist/chat/conversations/legacy-advisor-session.d.ts +0 -7
- package/dist/chat/conversations/legacy-import.d.ts +0 -38
- package/dist/chat/conversations/sql/legacy-history-import.d.ts +0 -55
- package/dist/chat/conversations/sql/messages.d.ts +0 -4
- package/dist/chat/conversations/visible-compactions.d.ts +0 -11
- package/dist/chat/conversations/visible-messages.d.ts +0 -47
- package/dist/chat/services/reply-delivery-plan.d.ts +0 -5
- package/dist/chat/state/session-log.d.ts +0 -384
- package/dist/chunk-P4P7O5WG.js +0 -1072
- package/dist/chunk-XIMUQ4IU.js +0 -147
- package/dist/db/schema/conversation-messages.d.ts +0 -153
- package/dist/handlers/github-webhook/check-suite.d.ts +0 -3
- package/dist/handlers/github-webhook/issue-comment.d.ts +0 -3
- package/dist/handlers/github-webhook/pull-request-review-comment.d.ts +0 -3
- package/dist/handlers/github-webhook/pull-request-review.d.ts +0 -3
- package/dist/handlers/github-webhook/pull-request.d.ts +0 -3
- package/dist/handlers/github-webhook/resource.d.ts +0 -10
- package/dist/handlers/github-webhook.d.ts +0 -15
- package/dist/legacy-import-TMJISRKO.js +0 -18
package/dist/chunk-XIMUQ4IU.js
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
isRecord,
|
|
3
|
-
toOptionalNumber,
|
|
4
|
-
toOptionalString
|
|
5
|
-
} from "./chunk-OB42YVAE.js";
|
|
6
|
-
|
|
7
|
-
// src/chat/state/conversation.ts
|
|
8
|
-
function defaultConversationState() {
|
|
9
|
-
const nowMs = Date.now();
|
|
10
|
-
return {
|
|
11
|
-
schemaVersion: 1,
|
|
12
|
-
messages: [],
|
|
13
|
-
compactions: [],
|
|
14
|
-
backfill: {},
|
|
15
|
-
processing: {},
|
|
16
|
-
stats: {
|
|
17
|
-
estimatedContextTokens: 0,
|
|
18
|
-
totalMessageCount: 0,
|
|
19
|
-
compactedMessageCount: 0,
|
|
20
|
-
updatedAtMs: nowMs
|
|
21
|
-
},
|
|
22
|
-
vision: {
|
|
23
|
-
byFileId: {}
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
function coercePendingAuthState(value) {
|
|
28
|
-
if (!isRecord(value)) {
|
|
29
|
-
return void 0;
|
|
30
|
-
}
|
|
31
|
-
const kind = value.kind;
|
|
32
|
-
const provider = toOptionalString(value.provider);
|
|
33
|
-
const actorId = toOptionalString(value.actorId);
|
|
34
|
-
const authSessionId = toOptionalString(value.authSessionId);
|
|
35
|
-
const scope = toOptionalString(value.scope);
|
|
36
|
-
const sessionId = toOptionalString(value.sessionId);
|
|
37
|
-
const linkSentAtMs = toOptionalNumber(value.linkSentAtMs);
|
|
38
|
-
if (kind !== "mcp" && kind !== "plugin" || !provider || !actorId || kind === "mcp" && !authSessionId || !sessionId || typeof linkSentAtMs !== "number") {
|
|
39
|
-
return void 0;
|
|
40
|
-
}
|
|
41
|
-
const base = {
|
|
42
|
-
provider,
|
|
43
|
-
actorId,
|
|
44
|
-
...scope ? { scope } : {},
|
|
45
|
-
sessionId,
|
|
46
|
-
linkSentAtMs
|
|
47
|
-
};
|
|
48
|
-
return kind === "mcp" ? { ...base, authSessionId, kind } : { ...base, kind };
|
|
49
|
-
}
|
|
50
|
-
function coerceThreadConversationState(value) {
|
|
51
|
-
if (!isRecord(value)) {
|
|
52
|
-
return defaultConversationState();
|
|
53
|
-
}
|
|
54
|
-
const root = value;
|
|
55
|
-
const rawConversation = isRecord(root.conversation) ? root.conversation : {};
|
|
56
|
-
const base = defaultConversationState();
|
|
57
|
-
const messages = [];
|
|
58
|
-
const rawCompactions = Array.isArray(rawConversation.compactions) ? rawConversation.compactions : [];
|
|
59
|
-
const compactions = [];
|
|
60
|
-
for (const item of rawCompactions) {
|
|
61
|
-
if (!isRecord(item)) continue;
|
|
62
|
-
const id = toOptionalString(item.id);
|
|
63
|
-
const summary = toOptionalString(item.summary);
|
|
64
|
-
const createdAtMs = toOptionalNumber(item.createdAtMs);
|
|
65
|
-
if (!id || !summary || !createdAtMs) continue;
|
|
66
|
-
const coveredMessageIds = Array.isArray(item.coveredMessageIds) ? item.coveredMessageIds.filter(
|
|
67
|
-
(entry) => typeof entry === "string" && entry.length > 0
|
|
68
|
-
) : [];
|
|
69
|
-
compactions.push({
|
|
70
|
-
id,
|
|
71
|
-
summary,
|
|
72
|
-
createdAtMs,
|
|
73
|
-
coveredMessageIds
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
const rawBackfill = isRecord(rawConversation.backfill) ? rawConversation.backfill : {};
|
|
77
|
-
const backfill = {
|
|
78
|
-
completedAtMs: toOptionalNumber(rawBackfill.completedAtMs),
|
|
79
|
-
source: rawBackfill.source === "recent_messages" || rawBackfill.source === "thread_fetch" ? rawBackfill.source : void 0
|
|
80
|
-
};
|
|
81
|
-
const rawProcessing = isRecord(rawConversation.processing) ? rawConversation.processing : {};
|
|
82
|
-
const processing = {
|
|
83
|
-
activeTurnId: toOptionalString(rawProcessing.activeTurnId),
|
|
84
|
-
lastCompletedAtMs: toOptionalNumber(rawProcessing.lastCompletedAtMs),
|
|
85
|
-
pendingAuth: coercePendingAuthState(rawProcessing.pendingAuth)
|
|
86
|
-
};
|
|
87
|
-
const rawStats = isRecord(rawConversation.stats) ? rawConversation.stats : {};
|
|
88
|
-
const stats = {
|
|
89
|
-
estimatedContextTokens: toOptionalNumber(rawStats.estimatedContextTokens) ?? base.stats.estimatedContextTokens,
|
|
90
|
-
totalMessageCount: toOptionalNumber(rawStats.totalMessageCount) ?? messages.length,
|
|
91
|
-
compactedMessageCount: toOptionalNumber(rawStats.compactedMessageCount) ?? 0,
|
|
92
|
-
updatedAtMs: toOptionalNumber(rawStats.updatedAtMs) ?? base.stats.updatedAtMs
|
|
93
|
-
};
|
|
94
|
-
const rawVision = isRecord(rawConversation.vision) ? rawConversation.vision : {};
|
|
95
|
-
const rawVisionByFileId = isRecord(rawVision.byFileId) ? rawVision.byFileId : {};
|
|
96
|
-
const byFileId = {};
|
|
97
|
-
for (const [fileId, value2] of Object.entries(rawVisionByFileId)) {
|
|
98
|
-
if (typeof fileId !== "string" || fileId.trim().length === 0) continue;
|
|
99
|
-
if (!isRecord(value2)) continue;
|
|
100
|
-
const summary = toOptionalString(value2.summary);
|
|
101
|
-
const analyzedAtMs = toOptionalNumber(value2.analyzedAtMs);
|
|
102
|
-
if (!summary || !analyzedAtMs) continue;
|
|
103
|
-
byFileId[fileId] = {
|
|
104
|
-
summary,
|
|
105
|
-
analyzedAtMs
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
return {
|
|
109
|
-
schemaVersion: 1,
|
|
110
|
-
messages,
|
|
111
|
-
compactions,
|
|
112
|
-
backfill,
|
|
113
|
-
processing,
|
|
114
|
-
stats,
|
|
115
|
-
vision: {
|
|
116
|
-
backfillCompletedAtMs: toOptionalNumber(rawVision.backfillCompletedAtMs),
|
|
117
|
-
byFileId
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
function buildConversationStatePatch(conversation) {
|
|
122
|
-
const {
|
|
123
|
-
compactions: _compactions,
|
|
124
|
-
messages: _messages,
|
|
125
|
-
...scratch
|
|
126
|
-
} = conversation;
|
|
127
|
-
return {
|
|
128
|
-
conversation: {
|
|
129
|
-
...scratch,
|
|
130
|
-
schemaVersion: 1,
|
|
131
|
-
stats: {
|
|
132
|
-
...conversation.stats,
|
|
133
|
-
totalMessageCount: conversation.messages.length,
|
|
134
|
-
updatedAtMs: Date.now()
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
// src/chat/state/ttl.ts
|
|
141
|
-
var JUNIOR_THREAD_STATE_TTL_MS = 7 * 24 * 60 * 60 * 1e3;
|
|
142
|
-
|
|
143
|
-
export {
|
|
144
|
-
JUNIOR_THREAD_STATE_TTL_MS,
|
|
145
|
-
coerceThreadConversationState,
|
|
146
|
-
buildConversationStatePatch
|
|
147
|
-
};
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import type { ConversationMessageRole } from "@/chat/conversations/messages";
|
|
2
|
-
/**
|
|
3
|
-
* Visible conversation transcript: one immutable row per source message keyed by
|
|
4
|
-
* `(conversation_id, message_id)`. `role`/`text`/`author_identity_id`/`created_at`
|
|
5
|
-
* never change after insert; `replied_at` is the only mutable delivery mark.
|
|
6
|
-
*/
|
|
7
|
-
export declare const juniorConversationMessages: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
8
|
-
name: "junior_conversation_messages";
|
|
9
|
-
schema: undefined;
|
|
10
|
-
columns: {
|
|
11
|
-
conversationId: import("drizzle-orm/pg-core").PgColumn<{
|
|
12
|
-
name: "conversation_id";
|
|
13
|
-
tableName: "junior_conversation_messages";
|
|
14
|
-
dataType: "string";
|
|
15
|
-
columnType: "PgText";
|
|
16
|
-
data: string;
|
|
17
|
-
driverParam: string;
|
|
18
|
-
notNull: true;
|
|
19
|
-
hasDefault: false;
|
|
20
|
-
isPrimaryKey: false;
|
|
21
|
-
isAutoincrement: false;
|
|
22
|
-
hasRuntimeDefault: false;
|
|
23
|
-
enumValues: [string, ...string[]];
|
|
24
|
-
baseColumn: never;
|
|
25
|
-
identity: undefined;
|
|
26
|
-
generated: undefined;
|
|
27
|
-
}, {}, {}>;
|
|
28
|
-
messageId: import("drizzle-orm/pg-core").PgColumn<{
|
|
29
|
-
name: "message_id";
|
|
30
|
-
tableName: "junior_conversation_messages";
|
|
31
|
-
dataType: "string";
|
|
32
|
-
columnType: "PgText";
|
|
33
|
-
data: string;
|
|
34
|
-
driverParam: string;
|
|
35
|
-
notNull: true;
|
|
36
|
-
hasDefault: false;
|
|
37
|
-
isPrimaryKey: false;
|
|
38
|
-
isAutoincrement: false;
|
|
39
|
-
hasRuntimeDefault: false;
|
|
40
|
-
enumValues: [string, ...string[]];
|
|
41
|
-
baseColumn: never;
|
|
42
|
-
identity: undefined;
|
|
43
|
-
generated: undefined;
|
|
44
|
-
}, {}, {}>;
|
|
45
|
-
role: import("drizzle-orm/pg-core").PgColumn<{
|
|
46
|
-
name: "role";
|
|
47
|
-
tableName: "junior_conversation_messages";
|
|
48
|
-
dataType: "string";
|
|
49
|
-
columnType: "PgText";
|
|
50
|
-
data: ConversationMessageRole;
|
|
51
|
-
driverParam: string;
|
|
52
|
-
notNull: true;
|
|
53
|
-
hasDefault: false;
|
|
54
|
-
isPrimaryKey: false;
|
|
55
|
-
isAutoincrement: false;
|
|
56
|
-
hasRuntimeDefault: false;
|
|
57
|
-
enumValues: [string, ...string[]];
|
|
58
|
-
baseColumn: never;
|
|
59
|
-
identity: undefined;
|
|
60
|
-
generated: undefined;
|
|
61
|
-
}, {}, {
|
|
62
|
-
$type: ConversationMessageRole;
|
|
63
|
-
}>;
|
|
64
|
-
authorIdentityId: import("drizzle-orm/pg-core").PgColumn<{
|
|
65
|
-
name: "author_identity_id";
|
|
66
|
-
tableName: "junior_conversation_messages";
|
|
67
|
-
dataType: "string";
|
|
68
|
-
columnType: "PgText";
|
|
69
|
-
data: string;
|
|
70
|
-
driverParam: string;
|
|
71
|
-
notNull: false;
|
|
72
|
-
hasDefault: false;
|
|
73
|
-
isPrimaryKey: false;
|
|
74
|
-
isAutoincrement: false;
|
|
75
|
-
hasRuntimeDefault: false;
|
|
76
|
-
enumValues: [string, ...string[]];
|
|
77
|
-
baseColumn: never;
|
|
78
|
-
identity: undefined;
|
|
79
|
-
generated: undefined;
|
|
80
|
-
}, {}, {}>;
|
|
81
|
-
text: import("drizzle-orm/pg-core").PgColumn<{
|
|
82
|
-
name: "text";
|
|
83
|
-
tableName: "junior_conversation_messages";
|
|
84
|
-
dataType: "string";
|
|
85
|
-
columnType: "PgText";
|
|
86
|
-
data: string;
|
|
87
|
-
driverParam: string;
|
|
88
|
-
notNull: true;
|
|
89
|
-
hasDefault: false;
|
|
90
|
-
isPrimaryKey: false;
|
|
91
|
-
isAutoincrement: false;
|
|
92
|
-
hasRuntimeDefault: false;
|
|
93
|
-
enumValues: [string, ...string[]];
|
|
94
|
-
baseColumn: never;
|
|
95
|
-
identity: undefined;
|
|
96
|
-
generated: undefined;
|
|
97
|
-
}, {}, {}>;
|
|
98
|
-
meta: import("drizzle-orm/pg-core").PgColumn<{
|
|
99
|
-
name: "meta";
|
|
100
|
-
tableName: "junior_conversation_messages";
|
|
101
|
-
dataType: "json";
|
|
102
|
-
columnType: "PgJsonb";
|
|
103
|
-
data: Record<string, unknown>;
|
|
104
|
-
driverParam: unknown;
|
|
105
|
-
notNull: false;
|
|
106
|
-
hasDefault: false;
|
|
107
|
-
isPrimaryKey: false;
|
|
108
|
-
isAutoincrement: false;
|
|
109
|
-
hasRuntimeDefault: false;
|
|
110
|
-
enumValues: undefined;
|
|
111
|
-
baseColumn: never;
|
|
112
|
-
identity: undefined;
|
|
113
|
-
generated: undefined;
|
|
114
|
-
}, {}, {
|
|
115
|
-
$type: Record<string, unknown>;
|
|
116
|
-
}>;
|
|
117
|
-
repliedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
118
|
-
name: string;
|
|
119
|
-
tableName: "junior_conversation_messages";
|
|
120
|
-
dataType: "date";
|
|
121
|
-
columnType: "PgTimestamp";
|
|
122
|
-
data: Date;
|
|
123
|
-
driverParam: string;
|
|
124
|
-
notNull: false;
|
|
125
|
-
hasDefault: false;
|
|
126
|
-
isPrimaryKey: false;
|
|
127
|
-
isAutoincrement: false;
|
|
128
|
-
hasRuntimeDefault: false;
|
|
129
|
-
enumValues: undefined;
|
|
130
|
-
baseColumn: never;
|
|
131
|
-
identity: undefined;
|
|
132
|
-
generated: undefined;
|
|
133
|
-
}, {}, {}>;
|
|
134
|
-
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
135
|
-
name: string;
|
|
136
|
-
tableName: "junior_conversation_messages";
|
|
137
|
-
dataType: "date";
|
|
138
|
-
columnType: "PgTimestamp";
|
|
139
|
-
data: Date;
|
|
140
|
-
driverParam: string;
|
|
141
|
-
notNull: true;
|
|
142
|
-
hasDefault: false;
|
|
143
|
-
isPrimaryKey: false;
|
|
144
|
-
isAutoincrement: false;
|
|
145
|
-
hasRuntimeDefault: false;
|
|
146
|
-
enumValues: undefined;
|
|
147
|
-
baseColumn: never;
|
|
148
|
-
identity: undefined;
|
|
149
|
-
generated: undefined;
|
|
150
|
-
}, {}, {}>;
|
|
151
|
-
};
|
|
152
|
-
dialect: "pg";
|
|
153
|
-
}>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { IngestResourceEventInput } from "@/chat/resource-events/ingest";
|
|
2
|
-
/** Normalize GitHub `check_suite` webhooks for subscribed PR check outcomes. */
|
|
3
|
-
export declare function normalizeGitHubCheckSuiteEvents(deliveryId: string, body: unknown): IngestResourceEventInput[];
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { IngestResourceEventInput } from "@/chat/resource-events/ingest";
|
|
2
|
-
/** Normalize GitHub `issue_comment` webhooks for PR-level comments. */
|
|
3
|
-
export declare function normalizeGitHubIssueCommentEvent(deliveryId: string, body: unknown): IngestResourceEventInput | undefined;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { IngestResourceEventInput } from "@/chat/resource-events/ingest";
|
|
2
|
-
/** Normalize GitHub `pull_request_review_comment` webhooks for inline PR comments. */
|
|
3
|
-
export declare function normalizeGitHubPullRequestReviewCommentEvent(deliveryId: string, body: unknown): IngestResourceEventInput | undefined;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { IngestResourceEventInput } from "@/chat/resource-events/ingest";
|
|
2
|
-
/** Normalize GitHub `pull_request_review` webhooks for subscribed review outcomes. */
|
|
3
|
-
export declare function normalizeGitHubPullRequestReviewEvent(deliveryId: string, body: unknown): IngestResourceEventInput | undefined;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { IngestResourceEventInput } from "@/chat/resource-events/ingest";
|
|
2
|
-
/** Normalize GitHub `pull_request` webhooks for subscribed PR state changes. */
|
|
3
|
-
export declare function normalizeGitHubPullRequestEvent(deliveryId: string, body: unknown): IngestResourceEventInput | undefined;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/** Build the normalized resource identity for a GitHub pull request. */
|
|
2
|
-
export declare function gitHubPullRequestResource(input: {
|
|
3
|
-
pullRequestNumber: number;
|
|
4
|
-
repositoryFullName: string;
|
|
5
|
-
}): {
|
|
6
|
-
label: string;
|
|
7
|
-
resourceRef: string;
|
|
8
|
-
};
|
|
9
|
-
/** Build a stable provider retry key for one normalized GitHub event. */
|
|
10
|
-
export declare function gitHubEventKey(deliveryId: string, eventType: string): string;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { StateAdapter } from "chat";
|
|
2
|
-
import { type IngestResourceEventInput } from "@/chat/resource-events/ingest";
|
|
3
|
-
import type { ConversationWorkQueue } from "@/chat/task-execution/queue";
|
|
4
|
-
export interface GitHubWebhookHandlerOptions {
|
|
5
|
-
queue: ConversationWorkQueue | (() => ConversationWorkQueue);
|
|
6
|
-
state?: StateAdapter | (() => StateAdapter | undefined);
|
|
7
|
-
}
|
|
8
|
-
/** Normalize a verified GitHub webhook delivery into resource events. */
|
|
9
|
-
export declare function normalizeGitHubResourceEvents(args: {
|
|
10
|
-
body: unknown;
|
|
11
|
-
deliveryId: string;
|
|
12
|
-
eventName: string;
|
|
13
|
-
}): IngestResourceEventInput[];
|
|
14
|
-
/** Handle signed GitHub webhooks for resource event subscriptions. */
|
|
15
|
-
export declare function POST(request: Request, options: GitHubWebhookHandlerOptions): Promise<Response>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ensureLegacyConversationImport,
|
|
3
|
-
importConversationFromLegacy
|
|
4
|
-
} from "./chunk-P4P7O5WG.js";
|
|
5
|
-
import "./chunk-XTKJPSMF.js";
|
|
6
|
-
import "./chunk-4UYIRWDW.js";
|
|
7
|
-
import "./chunk-FXFQNHRU.js";
|
|
8
|
-
import "./chunk-RT5BUHR5.js";
|
|
9
|
-
import "./chunk-B7PUBQQM.js";
|
|
10
|
-
import "./chunk-AEWZ7F65.js";
|
|
11
|
-
import "./chunk-OB42YVAE.js";
|
|
12
|
-
import "./chunk-6GWA276C.js";
|
|
13
|
-
import "./chunk-7FBGKXPE.js";
|
|
14
|
-
import "./chunk-MLKGABMK.js";
|
|
15
|
-
export {
|
|
16
|
-
ensureLegacyConversationImport,
|
|
17
|
-
importConversationFromLegacy
|
|
18
|
-
};
|