bopodev-db 0.1.35 → 0.1.36
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/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-typecheck.log +1 -1
- package/dist/repositories/legacy.d.ts +6 -0
- package/dist/schema.d.ts +34 -0
- package/package.json +1 -1
- package/src/migrations/0012_issue_knowledge_paths.sql +1 -0
- package/src/migrations/meta/_journal.json +7 -0
- package/src/repositories/legacy.ts +5 -0
- package/src/schema.ts +2 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -260,6 +260,7 @@ export declare function listIssues(db: BopoDb, companyId: string, projectId?: st
|
|
|
260
260
|
assigneeAgentId: string | null;
|
|
261
261
|
labelsJson: string;
|
|
262
262
|
tagsJson: string;
|
|
263
|
+
knowledgePathsJson: string;
|
|
263
264
|
externalLink: string | null;
|
|
264
265
|
isClaimed: boolean;
|
|
265
266
|
claimedByHeartbeatRunId: string | null;
|
|
@@ -287,6 +288,7 @@ export declare function getIssue(db: BopoDb, companyId: string, issueId: string)
|
|
|
287
288
|
assigneeAgentId: string | null;
|
|
288
289
|
labelsJson: string;
|
|
289
290
|
tagsJson: string;
|
|
291
|
+
knowledgePathsJson: string;
|
|
290
292
|
externalLink: string | null;
|
|
291
293
|
isClaimed: boolean;
|
|
292
294
|
claimedByHeartbeatRunId: string | null;
|
|
@@ -308,6 +310,7 @@ export declare function createIssue(db: BopoDb, input: {
|
|
|
308
310
|
assigneeAgentId?: string | null;
|
|
309
311
|
labels?: string[];
|
|
310
312
|
tags?: string[];
|
|
313
|
+
knowledgePaths?: string[];
|
|
311
314
|
routineId?: string | null;
|
|
312
315
|
routineRunId?: string | null;
|
|
313
316
|
}): Promise<{
|
|
@@ -324,6 +327,7 @@ export declare function createIssue(db: BopoDb, input: {
|
|
|
324
327
|
assigneeAgentId: string | null;
|
|
325
328
|
labelsJson: string;
|
|
326
329
|
tagsJson: string;
|
|
330
|
+
knowledgePathsJson: string;
|
|
327
331
|
externalLink: string | null;
|
|
328
332
|
isClaimed: boolean;
|
|
329
333
|
claimedByHeartbeatRunId: string | null;
|
|
@@ -343,6 +347,7 @@ export declare function updateIssue(db: BopoDb, input: {
|
|
|
343
347
|
assigneeAgentId?: string | null;
|
|
344
348
|
labels?: string[];
|
|
345
349
|
tags?: string[];
|
|
350
|
+
knowledgePaths?: string[];
|
|
346
351
|
}): Promise<{
|
|
347
352
|
id: string;
|
|
348
353
|
companyId: string;
|
|
@@ -355,6 +360,7 @@ export declare function updateIssue(db: BopoDb, input: {
|
|
|
355
360
|
assigneeAgentId: string | null;
|
|
356
361
|
labelsJson: string;
|
|
357
362
|
tagsJson: string;
|
|
363
|
+
knowledgePathsJson: string;
|
|
358
364
|
externalLink: string | null;
|
|
359
365
|
isClaimed: boolean;
|
|
360
366
|
claimedByHeartbeatRunId: string | null;
|
package/dist/schema.d.ts
CHANGED
|
@@ -1397,6 +1397,23 @@ export declare const issues: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
1397
1397
|
identity: undefined;
|
|
1398
1398
|
generated: undefined;
|
|
1399
1399
|
}, {}, {}>;
|
|
1400
|
+
knowledgePathsJson: import("drizzle-orm/pg-core").PgColumn<{
|
|
1401
|
+
name: "knowledge_paths_json";
|
|
1402
|
+
tableName: "issues";
|
|
1403
|
+
dataType: "string";
|
|
1404
|
+
columnType: "PgText";
|
|
1405
|
+
data: string;
|
|
1406
|
+
driverParam: string;
|
|
1407
|
+
notNull: true;
|
|
1408
|
+
hasDefault: true;
|
|
1409
|
+
isPrimaryKey: false;
|
|
1410
|
+
isAutoincrement: false;
|
|
1411
|
+
hasRuntimeDefault: false;
|
|
1412
|
+
enumValues: [string, ...string[]];
|
|
1413
|
+
baseColumn: never;
|
|
1414
|
+
identity: undefined;
|
|
1415
|
+
generated: undefined;
|
|
1416
|
+
}, {}, {}>;
|
|
1400
1417
|
externalLink: import("drizzle-orm/pg-core").PgColumn<{
|
|
1401
1418
|
name: "external_link";
|
|
1402
1419
|
tableName: "issues";
|
|
@@ -7065,6 +7082,23 @@ export declare const schema: {
|
|
|
7065
7082
|
identity: undefined;
|
|
7066
7083
|
generated: undefined;
|
|
7067
7084
|
}, {}, {}>;
|
|
7085
|
+
knowledgePathsJson: import("drizzle-orm/pg-core").PgColumn<{
|
|
7086
|
+
name: "knowledge_paths_json";
|
|
7087
|
+
tableName: "issues";
|
|
7088
|
+
dataType: "string";
|
|
7089
|
+
columnType: "PgText";
|
|
7090
|
+
data: string;
|
|
7091
|
+
driverParam: string;
|
|
7092
|
+
notNull: true;
|
|
7093
|
+
hasDefault: true;
|
|
7094
|
+
isPrimaryKey: false;
|
|
7095
|
+
isAutoincrement: false;
|
|
7096
|
+
hasRuntimeDefault: false;
|
|
7097
|
+
enumValues: [string, ...string[]];
|
|
7098
|
+
baseColumn: never;
|
|
7099
|
+
identity: undefined;
|
|
7100
|
+
generated: undefined;
|
|
7101
|
+
}, {}, {}>;
|
|
7068
7102
|
externalLink: import("drizzle-orm/pg-core").PgColumn<{
|
|
7069
7103
|
name: "external_link";
|
|
7070
7104
|
tableName: "issues";
|
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE "issues" ADD COLUMN IF NOT EXISTS "knowledge_paths_json" text NOT NULL DEFAULT '[]';
|
|
@@ -522,6 +522,7 @@ export async function createIssue(
|
|
|
522
522
|
assigneeAgentId?: string | null;
|
|
523
523
|
labels?: string[];
|
|
524
524
|
tags?: string[];
|
|
525
|
+
knowledgePaths?: string[];
|
|
525
526
|
routineId?: string | null;
|
|
526
527
|
routineRunId?: string | null;
|
|
527
528
|
}
|
|
@@ -550,6 +551,7 @@ export async function createIssue(
|
|
|
550
551
|
assigneeAgentId: input.assigneeAgentId ?? null,
|
|
551
552
|
labelsJson: JSON.stringify(input.labels ?? []),
|
|
552
553
|
tagsJson: JSON.stringify(input.tags ?? []),
|
|
554
|
+
knowledgePathsJson: JSON.stringify(input.knowledgePaths ?? []),
|
|
553
555
|
routineId: input.routineId ?? null,
|
|
554
556
|
routineRunId: input.routineRunId ?? null
|
|
555
557
|
})
|
|
@@ -582,6 +584,7 @@ export async function updateIssue(
|
|
|
582
584
|
assigneeAgentId?: string | null;
|
|
583
585
|
labels?: string[];
|
|
584
586
|
tags?: string[];
|
|
587
|
+
knowledgePaths?: string[];
|
|
585
588
|
}
|
|
586
589
|
) {
|
|
587
590
|
const [existing] = await db
|
|
@@ -616,6 +619,8 @@ export async function updateIssue(
|
|
|
616
619
|
assigneeAgentId: input.assigneeAgentId,
|
|
617
620
|
labelsJson: input.labels ? JSON.stringify(input.labels) : undefined,
|
|
618
621
|
tagsJson: input.tags ? JSON.stringify(input.tags) : undefined,
|
|
622
|
+
knowledgePathsJson:
|
|
623
|
+
input.knowledgePaths !== undefined ? JSON.stringify(input.knowledgePaths) : undefined,
|
|
619
624
|
updatedAt: touchUpdatedAtSql
|
|
620
625
|
})
|
|
621
626
|
)
|
package/src/schema.ts
CHANGED
|
@@ -121,6 +121,8 @@ export const issues = pgTable("issues", {
|
|
|
121
121
|
assigneeAgentId: text("assignee_agent_id"),
|
|
122
122
|
labelsJson: text("labels_json").notNull().default("[]"),
|
|
123
123
|
tagsJson: text("tags_json").notNull().default("[]"),
|
|
124
|
+
/** Relative paths under company workspace `knowledge/` linked from this issue. */
|
|
125
|
+
knowledgePathsJson: text("knowledge_paths_json").notNull().default("[]"),
|
|
124
126
|
/** Optional link to a PR, branch page, or other external tracker (GitHub/GitLab/etc.). */
|
|
125
127
|
externalLink: text("external_link"),
|
|
126
128
|
isClaimed: boolean("is_claimed").notNull().default(false),
|