@sixb/pg 0.1.20 → 0.1.22
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 -0
- package/dist/agents/agent-storage.d.ts +8 -2
- package/dist/agents/agent-storage.d.ts.map +1 -1
- package/dist/agents/approvals.d.ts +48 -0
- package/dist/agents/approvals.d.ts.map +1 -0
- package/dist/agents/checkpoints.d.ts +1 -0
- package/dist/agents/checkpoints.d.ts.map +1 -1
- package/dist/agents/index.d.ts +1 -0
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/memory.d.ts +19 -0
- package/dist/agents/memory.d.ts.map +1 -0
- package/dist/agents/messages.d.ts.map +1 -1
- package/dist/agents/rows.d.ts +15 -1
- package/dist/agents/rows.d.ts.map +1 -1
- package/dist/agents/runs.d.ts +3 -1
- package/dist/agents/runs.d.ts.map +1 -1
- package/dist/agents/settings.d.ts +29 -0
- package/dist/agents/settings.d.ts.map +1 -0
- package/dist/agents/threads.d.ts +10 -1
- package/dist/agents/threads.d.ts.map +1 -1
- package/dist/ai-cost-groups.d.ts.map +1 -1
- package/dist/auth-storage/auth-storage.d.ts +3 -2
- package/dist/auth-storage/auth-storage.d.ts.map +1 -1
- package/dist/auth-storage/sessions.d.ts +2 -1
- package/dist/auth-storage/sessions.d.ts.map +1 -1
- package/dist/auth-storage/users.d.ts +8 -4
- package/dist/auth-storage/users.d.ts.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6001 -2923
- package/dist/index.js.map +45 -37
- package/dist/migrations.d.ts.map +1 -1
- package/dist/objects/conditional-reader.d.ts +17 -0
- package/dist/objects/conditional-reader.d.ts.map +1 -0
- package/dist/objects/query-compiler.d.ts +27 -1
- package/dist/objects/query-compiler.d.ts.map +1 -1
- package/dist/objects/query-indexes.d.ts.map +1 -1
- package/dist/objects/read-scope.d.ts +10 -1
- package/dist/objects/read-scope.d.ts.map +1 -1
- package/dist/objects/reader.d.ts +2 -0
- package/dist/objects/reader.d.ts.map +1 -1
- package/dist/objects/scoped-reader.d.ts +12 -0
- package/dist/objects/scoped-reader.d.ts.map +1 -0
- package/dist/objects/selected-reader.d.ts +1 -0
- package/dist/objects/selected-reader.d.ts.map +1 -1
- package/dist/objects/storage.d.ts +7 -1
- package/dist/objects/storage.d.ts.map +1 -1
- package/dist/ontology-storage/index.d.ts +2 -0
- package/dist/ontology-storage/index.d.ts.map +1 -1
- package/dist/ontology-storage/materialization-session.d.ts +6 -0
- package/dist/ontology-storage/materialization-session.d.ts.map +1 -1
- package/dist/ontology-storage/materialization-writer.d.ts +15 -0
- package/dist/ontology-storage/materialization-writer.d.ts.map +1 -1
- package/dist/ontology-storage/materializations.d.ts.map +1 -1
- package/dist/ontology-storage/replacement-plans.d.ts.map +1 -1
- package/dist/ontology-storage/sources.d.ts +2 -1
- package/dist/ontology-storage/sources.d.ts.map +1 -1
- package/dist/ontology-storage/unique-values.d.ts +60 -0
- package/dist/ontology-storage/unique-values.d.ts.map +1 -0
- package/dist/pg-action-run-storage.d.ts +4 -0
- package/dist/pg-action-run-storage.d.ts.map +1 -1
- package/dist/pg-activity-storage.d.ts +22 -0
- package/dist/pg-activity-storage.d.ts.map +1 -0
- package/dist/pg-ai-cost-storage.d.ts.map +1 -1
- package/dist/pg-ai-usage-storage.d.ts +8 -1
- package/dist/pg-ai-usage-storage.d.ts.map +1 -1
- package/dist/pg-artifact-storage.d.ts +26 -0
- package/dist/pg-artifact-storage.d.ts.map +1 -0
- package/dist/pg-execution-storage.d.ts +3 -1
- package/dist/pg-execution-storage.d.ts.map +1 -1
- package/dist/pg-workflow-run-storage.d.ts +4 -0
- package/dist/pg-workflow-run-storage.d.ts.map +1 -1
- package/dist/share-grant-storage.d.ts +2 -1
- package/dist/share-grant-storage.d.ts.map +1 -1
- package/dist/storage-errors.d.ts +2 -0
- package/dist/storage-errors.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/agents/agent-storage.ts +11 -2
- package/src/agents/approvals.ts +400 -0
- package/src/agents/checkpoints.ts +8 -4
- package/src/agents/index.ts +1 -0
- package/src/agents/memory.ts +175 -0
- package/src/agents/messages.ts +14 -7
- package/src/agents/rows.ts +46 -1
- package/src/agents/runs.ts +154 -22
- package/src/agents/settings.ts +105 -0
- package/src/agents/threads.ts +379 -3
- package/src/ai-cost-groups.ts +11 -1
- package/src/auth-storage/auth-storage.ts +45 -13
- package/src/auth-storage/sessions.ts +20 -0
- package/src/auth-storage/users.ts +105 -43
- package/src/index.ts +10 -0
- package/src/migrations/063-artifacts.sql +67 -0
- package/src/migrations/064-drop-output-diagnostics.sql +14 -0
- package/src/migrations/065-plan-work-payload-statistics.sql +5 -0
- package/src/migrations/066-activity.sql +61 -0
- package/src/migrations/067-activity-timeline.sql +15 -0
- package/src/migrations/068-activity-interactions.sql +20 -0
- package/src/migrations/069-artifact-kinds.sql +4 -0
- package/src/migrations/070-artifact-state.sql +16 -0
- package/src/migrations/071-agent-thread-participants.sql +16 -0
- package/src/migrations/072-forked-context-checkpoints.sql +23 -0
- package/src/migrations/073-unique-values.sql +25 -0
- package/src/migrations/074-generated-media-usage.sql +21 -0
- package/src/migrations/075-model-call-files.sql +11 -0
- package/src/migrations/076-agent-memory.sql +33 -0
- package/src/migrations/077-artifact-threads.sql +21 -0
- package/src/migrations/078-agent-approvals.sql +58 -0
- package/src/migrations/079-agent-approval-resume.sql +20 -0
- package/src/migrations/080-subagent-threads.sql +145 -0
- package/src/migrations/081-subagent-questions.sql +6 -0
- package/src/migrations.ts +52 -0
- package/src/objects/conditional-reader.ts +44 -0
- package/src/objects/prepare-queries.ts +1 -1
- package/src/objects/query-compiler.ts +96 -33
- package/src/objects/query-indexes.ts +29 -10
- package/src/objects/read-scope.ts +140 -25
- package/src/objects/reader.ts +50 -6
- package/src/objects/scoped-reader.ts +101 -0
- package/src/objects/selected-reader.ts +16 -76
- package/src/objects/storage.ts +24 -5
- package/src/objects/text-count-index.ts +1 -0
- package/src/ontology-storage/index.ts +3 -0
- package/src/ontology-storage/materialization-session.ts +8 -0
- package/src/ontology-storage/materialization-writer.ts +76 -1
- package/src/ontology-storage/materializations.ts +20 -1
- package/src/ontology-storage/replacement-plans.ts +25 -7
- package/src/ontology-storage/sources.ts +37 -0
- package/src/ontology-storage/unique-values.ts +274 -0
- package/src/pg-action-run-storage.ts +23 -0
- package/src/pg-activity-storage.ts +486 -0
- package/src/pg-ai-cost-storage.ts +62 -12
- package/src/pg-ai-usage-storage.ts +90 -1
- package/src/pg-artifact-storage.ts +521 -0
- package/src/pg-execution-storage.ts +83 -0
- package/src/pg-workflow-run-storage.ts +23 -0
- package/src/share-grant-storage.ts +21 -0
- package/src/storage-errors.ts +7 -0
- package/src/transactions.ts +1 -1
package/README.md
CHANGED
|
@@ -168,6 +168,7 @@ framework-owned structures have not been manually dropped or changed.
|
|
|
168
168
|
run `bun sixb db migrate` before starting the new release. Ordinary indexes build concurrently. A text
|
|
169
169
|
hint also adds STORED generated columns: the initial call rewrites the objects table under an
|
|
170
170
|
exclusive lock.
|
|
171
|
+
Making a property unique reads every object of its type once, in one serializable transaction.
|
|
171
172
|
Provide all definitions together, allow temporary disk headroom, and measure projection throughput.
|
|
172
173
|
Preparation attempts to install `pg_trgm` in `public`; the database administrator must provide that
|
|
173
174
|
extension when the maintenance role cannot install it.
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import type { AgentStorage, ExecutionStorage } from "@sixb/core/storage";
|
|
2
2
|
import type { PgStoreClient } from "../transactions";
|
|
3
|
+
import { PgAgentApprovalStore } from "./approvals";
|
|
3
4
|
import { PgAgentContextCheckpointStore } from "./checkpoints";
|
|
5
|
+
import { PgAgentMemoryStore } from "./memory";
|
|
4
6
|
import { PgAgentMessageStore } from "./messages";
|
|
5
7
|
import { PgAgentRunStore } from "./runs";
|
|
8
|
+
import { PgAgentApprovalModeStore } from "./settings";
|
|
6
9
|
import { PgAgentThreadStore } from "./threads";
|
|
7
10
|
export interface PgAgentStorageOptions {
|
|
8
11
|
readonly sql: PgStoreClient;
|
|
9
12
|
readonly executions: ExecutionStorage;
|
|
10
13
|
}
|
|
11
14
|
/**
|
|
12
|
-
* PostgreSQL-backed agent persistence: thread, run, message,
|
|
13
|
-
* sharing one connection. Cross-table writes run inside `runPgTransaction` with `SELECT ... FOR
|
|
15
|
+
* PostgreSQL-backed agent persistence: thread, run, message, context-checkpoint, memory, approval
|
|
16
|
+
* and approval-mode sub-stores sharing one connection. Cross-table writes run inside `runPgTransaction` with `SELECT ... FOR
|
|
14
17
|
* UPDATE` row locks for single-flight and checkpoint compare-and-swap safety.
|
|
15
18
|
*/
|
|
16
19
|
export declare class PgAgentStorage implements AgentStorage {
|
|
@@ -18,6 +21,9 @@ export declare class PgAgentStorage implements AgentStorage {
|
|
|
18
21
|
readonly runs: PgAgentRunStore;
|
|
19
22
|
readonly messages: PgAgentMessageStore;
|
|
20
23
|
readonly checkpoints: PgAgentContextCheckpointStore;
|
|
24
|
+
readonly memory: PgAgentMemoryStore;
|
|
25
|
+
readonly approvals: PgAgentApprovalStore;
|
|
26
|
+
readonly approvalModes: PgAgentApprovalModeStore;
|
|
21
27
|
constructor(options: PgAgentStorageOptions);
|
|
22
28
|
}
|
|
23
29
|
//# sourceMappingURL=agent-storage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-storage.d.ts","sourceRoot":"","sources":["../../src/agents/agent-storage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AACpD,OAAO,EAAE,6BAA6B,EAAE,MAAM,eAAe,CAAA;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAA;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAA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tC,QAAQ,CAAC,WAAW,EAAE,6BAA6B,CAAA;IACnD,QAAQ,CAAC,MAAM,EAAE,kBAAkB,CAAA;IACnC,QAAQ,CAAC,SAAS,EAAE,oBAAoB,CAAA;IACxC,QAAQ,CAAC,aAAa,EAAE,wBAAwB,CAAA;gBAEpC,OAAO,EAAE,qBAAqB;CAS3C"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { type AgentApprovalCursor, type AgentApprovalOutcome, type AgentApprovalRecord, type AgentApprovalStore, type DecideAgentApprovalInput, type DecideAgentApprovalResult, type ListAgentApprovalsInput, type ListAgentApprovalsResult, type MarkAgentApprovalsReportedInput, type RequestAgentApprovalInput, type RequestAgentApprovalResult, type SettleAgentApprovalsInput, type StopAgentApprovalsInput, type StopAgentApprovalsResult } from "@sixb/core/storage";
|
|
2
|
+
import { type PgStoreClient } from "../transactions";
|
|
3
|
+
export declare class PgAgentApprovalStore implements AgentApprovalStore {
|
|
4
|
+
private readonly sql;
|
|
5
|
+
constructor(sql: PgStoreClient);
|
|
6
|
+
request(input: RequestAgentApprovalInput): Promise<RequestAgentApprovalResult>;
|
|
7
|
+
decide(input: DecideAgentApprovalInput): Promise<DecideAgentApprovalResult | null>;
|
|
8
|
+
recordOutcome(input: {
|
|
9
|
+
readonly projectId: string;
|
|
10
|
+
readonly id: string;
|
|
11
|
+
readonly outcome: AgentApprovalOutcome;
|
|
12
|
+
}): Promise<AgentApprovalRecord>;
|
|
13
|
+
settle(input: SettleAgentApprovalsInput): Promise<readonly AgentApprovalRecord[]>;
|
|
14
|
+
stop(input: StopAgentApprovalsInput): Promise<StopAgentApprovalsResult>;
|
|
15
|
+
holdsRun(input: {
|
|
16
|
+
readonly projectId: string;
|
|
17
|
+
readonly runId: string;
|
|
18
|
+
}): Promise<boolean>;
|
|
19
|
+
claimExecution(input: {
|
|
20
|
+
readonly projectId: string;
|
|
21
|
+
readonly id: string;
|
|
22
|
+
readonly claimedAt: Date;
|
|
23
|
+
readonly staleBefore: Date;
|
|
24
|
+
}): Promise<AgentApprovalRecord | null>;
|
|
25
|
+
listRepairable(input: {
|
|
26
|
+
readonly projectId: string;
|
|
27
|
+
readonly claimableBefore: Date;
|
|
28
|
+
readonly after?: AgentApprovalCursor;
|
|
29
|
+
readonly limit: number;
|
|
30
|
+
}): Promise<readonly AgentApprovalRecord[]>;
|
|
31
|
+
expireDue(input: {
|
|
32
|
+
readonly projectId: string;
|
|
33
|
+
readonly now: Date;
|
|
34
|
+
readonly limit?: number;
|
|
35
|
+
}): Promise<readonly AgentApprovalRecord[]>;
|
|
36
|
+
markReported(input: MarkAgentApprovalsReportedInput): Promise<readonly string[]>;
|
|
37
|
+
getById(params: {
|
|
38
|
+
readonly projectId: string;
|
|
39
|
+
readonly id: string;
|
|
40
|
+
}): Promise<AgentApprovalRecord | null>;
|
|
41
|
+
list(input: ListAgentApprovalsInput): Promise<ListAgentApprovalsResult>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Whether a run holds a call: an approval of its, or one it made for its turn, pending or decided
|
|
45
|
+
* and not reported yet. `holdsRun` and the paused finish of `runs.finish` both ask this.
|
|
46
|
+
*/
|
|
47
|
+
export declare function pgHoldsRun(sql: PgStoreClient, projectId: string, runId: string): Promise<boolean>;
|
|
48
|
+
//# sourceMappingURL=approvals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approvals.d.ts","sourceRoot":"","sources":["../../src/agents/approvals.ts"],"names":[],"mappings":"AAOA,OAAO,EAEL,KAAK,mBAAmB,EAExB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EAEvB,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,+BAA+B,EACpC,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,wBA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AE,IAAI,CAAA;QAC9B,QAAQ,CAAC,KAAK,CAAC,EAAE,mBAAmB,CAAA;QACpC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;KACvB,GAAG,OAAO,CAAC,SAAS,mBAAmB,EAAE,CAAC;IAoBrC,SAAS,CAAC,KAAK,EAAE;QACrB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;QAC1B,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAA;QAClB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KACxB,GAAG,OAAO,CAAC,SAAS,mBAAmB,EAAE,CAAC;IAmBrC,YAAY,CAAC,KAAK,EAAE,+BAA+B,GAAG,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC;IAehF,OAAO,CAAC,MAAM,EAAE;QACpB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;QAC1B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;KACpB,GAAG,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC;IAOjC,IAAI,CAAC,KAAK,EAAE,uBAAuB,GAAG,OAAO,CAAC,wBAAwB,CAAC;CAqB9E;AAwED;;;GAGG;AACH,wBAAsB,UAAU,CAC9B,GAAG,EAAE,aAAa,EAClB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,OAAO,CAAC,CAQlB"}
|
|
@@ -10,6 +10,7 @@ export declare class PgAgentContextCheckpointStore implements AgentContextCheckp
|
|
|
10
10
|
}): Promise<AgentContextCheckpointRecord | null>;
|
|
11
11
|
getByRunIds(input: {
|
|
12
12
|
readonly projectId: string;
|
|
13
|
+
readonly threadId: string;
|
|
13
14
|
readonly runIds: readonly string[];
|
|
14
15
|
}): Promise<readonly AgentContextCheckpointRecord[]>;
|
|
15
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkpoints.d.ts","sourceRoot":"","sources":["../../src/agents/checkpoints.ts"],"names":[],"mappings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orageOptions } from "./agent-storage";
|
|
2
2
|
export { PgAgentStorage } from "./agent-storage";
|
|
3
3
|
export { PgAgentContextCheckpointStore } from "./checkpoints";
|
|
4
|
+
export { PgAgentMemoryStore } from "./memory";
|
|
4
5
|
export { PgAgentMessageStore } from "./messages";
|
|
5
6
|
export { PgAgentRunStore } from "./runs";
|
|
6
7
|
export { PgAgentThreadStore } from "./threads";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/agents/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,EAAE,6BAA6B,EAAE,MAAM,eAAe,CAAA;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAA;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/agents/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,EAAE,6BAA6B,EAAE,MAAM,eAAe,CAAA;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAA;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { AgentMemoryRepoRecord, AgentMemoryStore, ListAgentMemoryRevisionsInput, ListAgentMemoryRevisionsResult, SaveAgentMemoryInput, SaveAgentMemoryResult } from "@sixb/core/storage";
|
|
2
|
+
import { type PgStoreClient } from "../transactions";
|
|
3
|
+
export declare class PgAgentMemoryStore implements AgentMemoryStore {
|
|
4
|
+
private readonly sql;
|
|
5
|
+
constructor(sql: PgStoreClient);
|
|
6
|
+
get(input: {
|
|
7
|
+
projectId: string;
|
|
8
|
+
repoId: string;
|
|
9
|
+
asOf?: Date;
|
|
10
|
+
revision?: number;
|
|
11
|
+
}): Promise<AgentMemoryRepoRecord>;
|
|
12
|
+
save(input: SaveAgentMemoryInput): Promise<SaveAgentMemoryResult>;
|
|
13
|
+
listRevisions(input: ListAgentMemoryRevisionsInput): Promise<ListAgentMemoryRevisionsResult>;
|
|
14
|
+
delete(input: {
|
|
15
|
+
projectId: string;
|
|
16
|
+
repoId: string;
|
|
17
|
+
}): Promise<void>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=memory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../src/agents/memory.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,qBAAqB,EAErB,gBAAgB,EAChB,6BAA6B,EAC7B,8BAA8B,EAC9B,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAoB,KAAK,aAAa,EAAoB,MAAM,iBAAiB,CAAA;AAWxF,qBAAa,kBAAmB,YAAW,gBAAgB;IAC7C,OAAO,CAAC,QAAQ,CAAC,GAAG;gBAAH,GAAG,EAAE,aAAa;IAEzC,GAAG,CAAC,KAAK,EAAE;QACf,SAAS,EAAE,MAAM,CAAA;QACjB,MAAM,EAAE,MAAM,CAAA;QACd,IAAI,CAAC,EAAE,IAAI,CAAA;QACX,QAAQ,CAAC,EAAE,MAAM,CAAA;KAClB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IA6B5B,IAAI,CAAC,KAAK,EAAE,oBAAoB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IA0DjE,aAAa,CACjB,KAAK,EAAE,6BAA6B,GACnC,OAAO,CAAC,8BAA8B,CAAC;IA4CpC,MAAM,CAAC,KAAK,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAO1E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/agents/messages.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/agents/messages.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EAEtB,KAAK,uBAAuB,EAC5B,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC7B,MAAM,oBAAoB,CAAA;AAG3B,OAAO,EAAE,KAAK,aAAa,EAAoB,MAAM,iBAAiB,CAAA;AAGtE,qBAAa,mBAAoB,YAAW,iBAAiB;IAC/C,OAAO,CAAC,QAAQ,CAAC,GAAG;gBAAH,GAAG,EAAE,aAAa;IAEzC,MAAM,CAAC,KAAK,EAAE,uBAAuB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAgGnE,aAAa,CAAC,KAAK,EAAE,6BAA6B,GAAG,OAAO,CAAC,MAAM,CAAC;IAmDpE,OAAO,CAAC,MAAM,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC;IAQtF,IAAI,CAAC,KAAK,EAAE,sBAAsB,GAAG,OAAO,CAAC,uBAAuB,CAAC;CAkC5E"}
|
package/dist/agents/rows.d.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import type { AgentMessagePart, JsonValue, Principal } from "@sixb/core";
|
|
2
|
-
import { type AgentContextCheckpointRecord, type AgentMessageRecord, type AgentRunDiagnostic, type AgentRunRecord, type AgentThreadRecord, type AgentThreadSandboxState, type ConversationAgentRunSpec, type SubagentRunResult, type SubagentRunSpec } from "@sixb/core/storage";
|
|
2
|
+
import { type AgentContextCheckpointRecord, type AgentMessageRecord, type AgentRunDiagnostic, type AgentRunRecord, type AgentThreadParticipantRecord, type AgentThreadRecord, type AgentThreadSandboxState, type ConversationAgentRunSpec, type SubagentRunResult, type SubagentRunSpec } from "@sixb/core/storage";
|
|
3
3
|
import type { SQLClient, SqlParameter } from "../pg-client";
|
|
4
4
|
export interface AgentThreadRow {
|
|
5
5
|
project_id: string;
|
|
6
6
|
id: string;
|
|
7
|
+
kind: AgentThreadRecord["kind"];
|
|
8
|
+
parent_thread_id: string | null;
|
|
9
|
+
parent_run_id: string | null;
|
|
10
|
+
spawn_key: string | null;
|
|
7
11
|
owner_principal_type: Principal["type"];
|
|
8
12
|
owner_principal_id: string;
|
|
9
13
|
title: string | null;
|
|
@@ -16,6 +20,15 @@ export interface AgentThreadRow {
|
|
|
16
20
|
created_at: Date | string;
|
|
17
21
|
updated_at: Date | string;
|
|
18
22
|
}
|
|
23
|
+
export interface AgentThreadParticipantRow {
|
|
24
|
+
project_id: string;
|
|
25
|
+
thread_id: string;
|
|
26
|
+
principal_type: "user";
|
|
27
|
+
principal_id: string;
|
|
28
|
+
added_at: Date | string;
|
|
29
|
+
added_by_type: Principal["type"];
|
|
30
|
+
added_by_id: string;
|
|
31
|
+
}
|
|
19
32
|
export interface AgentRunRow {
|
|
20
33
|
project_id: string;
|
|
21
34
|
id: string;
|
|
@@ -74,6 +87,7 @@ export declare function rowToThreadRecord(row: AgentThreadRow): AgentThreadRecor
|
|
|
74
87
|
export declare function rowToRunRecord(row: AgentRunRow): AgentRunRecord;
|
|
75
88
|
export declare function rowToMessageRecord(row: AgentMessageRow): AgentMessageRecord;
|
|
76
89
|
export declare function rowToContextCheckpointRecord(row: AgentContextCheckpointRow): AgentContextCheckpointRecord;
|
|
90
|
+
export declare function rowToParticipantRecord(row: AgentThreadParticipantRow): AgentThreadParticipantRecord;
|
|
77
91
|
export declare function queryAgentList<TRow>(input: {
|
|
78
92
|
readonly sql: SQLClient;
|
|
79
93
|
readonly table: "agent_threads" | "agent_messages";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rows.d.ts","sourceRoot":"","sources":["../../src/agents/rows.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAGxE,OAAO,EAEL,KAAK,4BAA4B,EACjC,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAE7B,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACrB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAK3D,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,MAAM,CAAA;IAClB,EAAE,EAAE,MAAM,CAAA;IACV,oBAAoB,EAAE,SAAS,CAAC,MAAM,CAAC,CAAA;IACvC,kBAAkB,EAAE,MAAM,CAAA;IAC1B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,cAAc,EAAE,SAAS,GAAG,MAAM,GAAG,IAAI,CAAA;IACzC,aAAa,EAAE,uBAAuB,GAAG,MAAM,GAAG,IAAI,CAAA;IACtD,MAAM,EAAE,iBAAiB,CAAC,QAAQ,CAAC,CAAA;IACnC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,eAAe,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAAA;IACrC,aAAa,EAAE,MAAM,GAAG,MAAM,CAAA;IAC9B,UAAU,EAAE,IAAI,GAAG,MAAM,CAAA;IACzB,UAAU,EAAE,IAAI,GAAG,MAAM,CAAA;CAC1B;AAED,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GAC7B,4BAA4B,CAuB9B;AAED,wBAAgB,sBAAsB,CACpC,GAAG,EAAE,yBAAyB,GAC7B,4BAA4B,CAQ9B;AAgCD,wBAAsB,cAAc,CAAC,IAAI,EAAE,KAAK,EAAE;IAChD,QAAQ,CAAC,GAAG,EAAE,SAAS,CAAA;IACvB,QAAQ,CAAC,KAAK,EAAE,eAAe,GAAG,gBAAgB,CAAA;IAClD,QAAQ,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,CAAA;IACxC,QAAQ,CAAC,MAAM,EAAE,SAAS,YAAY,EAAE,CAAA;IACxC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CACzB,GAAG,OAAO,CAAC;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,IAAI,EAAE,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAwBjG"}
|
package/dist/agents/runs.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AgentRunRecord, type AgentRunStore, type ConfirmAgentRunExecutionOwnershipInput, type ConversationAgentRunRecord, type CreateAgentRunInput, type CreateSubagentRunInput, type ExecutionStorage, type FinishAgentRunInput, type FinishQueuedAgentRunInput, type ListAgentRunsInput, type ListAgentRunsResult, type ReclaimAgentRunInput, type StartAgentRunInput, type SubagentRunRecord } from "@sixb/core/storage";
|
|
1
|
+
import { type AgentRunRecord, type AgentRunStore, type ConfirmAgentRunExecutionOwnershipInput, type ConversationAgentRunRecord, type CreateAgentRunInput, type CreateSubagentRunInput, type ExecutionStorage, type FinishAgentRunInput, type FinishQueuedAgentRunInput, type ListAgentRunsInput, type ListAgentRunsResult, type ListThreadSubagentsInput, type ReclaimAgentRunInput, type StartAgentRunInput, type SubagentRunRecord } from "@sixb/core/storage";
|
|
2
2
|
import { type PgStoreClient } from "../transactions";
|
|
3
3
|
export declare class PgAgentRunStore implements AgentRunStore {
|
|
4
4
|
private readonly sql;
|
|
@@ -19,9 +19,11 @@ export declare class PgAgentRunStore implements AgentRunStore {
|
|
|
19
19
|
projectId: string;
|
|
20
20
|
ids: readonly string[];
|
|
21
21
|
}): Promise<readonly AgentRunRecord[]>;
|
|
22
|
+
listThreadSubagents(input: ListThreadSubagentsInput): Promise<readonly SubagentRunRecord[]>;
|
|
22
23
|
list(input: ListAgentRunsInput): Promise<ListAgentRunsResult>;
|
|
23
24
|
private lockRunning;
|
|
24
25
|
private lockStatus;
|
|
26
|
+
/** A turn releases its conversation, a child run its own thread. */
|
|
25
27
|
private releaseThread;
|
|
26
28
|
}
|
|
27
29
|
//# sourceMappingURL=runs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runs.d.ts","sourceRoot":"","sources":["../../src/agents/runs.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"runs.d.ts","sourceRoot":"","sources":["../../src/agents/runs.ts"],"names":[],"mappings":"AAcA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,aAAa,EAElB,KAAK,sCAAsC,EAC3C,KAAK,0BAA0B,EAC/B,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACvB,MAAM,oBAAoB,CAAA;AAI3B,OAAO,EAAE,KAAK,aAAa,EAAoB,MAAM,iBAAiB,CAAA;AAMtE,qBAAa,eAAgB,YAAW,aAAa;IAEjD,OAAO,CAAC,QAAQ,CAAC,GAAG;I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PgStoreClient } from "../transactions";
|
|
3
|
+
export declare class PgAgentApprovalModeStore implements AgentApprovalModeStore {
|
|
4
|
+
private readonly sql;
|
|
5
|
+
constructor(sql: PgStoreClient);
|
|
6
|
+
getDefault(input: {
|
|
7
|
+
readonly projectId: string;
|
|
8
|
+
readonly principal: Principal;
|
|
9
|
+
}): Promise<AgentApprovalMode | null>;
|
|
10
|
+
setDefault(input: {
|
|
11
|
+
readonly projectId: string;
|
|
12
|
+
readonly principal: Principal;
|
|
13
|
+
readonly mode: AgentApprovalMode;
|
|
14
|
+
readonly updatedAt?: Date;
|
|
15
|
+
}): Promise<void>;
|
|
16
|
+
getForThread(input: {
|
|
17
|
+
readonly projectId: string;
|
|
18
|
+
readonly threadId: string;
|
|
19
|
+
readonly principal: Principal;
|
|
20
|
+
}): Promise<AgentApprovalMode | null>;
|
|
21
|
+
setForThread(input: {
|
|
22
|
+
readonly projectId: string;
|
|
23
|
+
readonly threadId: string;
|
|
24
|
+
readonly principal: Principal;
|
|
25
|
+
readonly mode: AgentApprovalMode | null;
|
|
26
|
+
readonly updatedAt?: Date;
|
|
27
|
+
}): Promise<void>;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../src/agents/settings.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAE3B,KAAK,SAAS,EACf,MAAM,oBAAoB,CAAA;AAE3B,OAAO,EAAE,KAAK,aAAa,EAAoB,MAAM,iBAAiB,CAAA;AAEtE,qBAAa,wBAAyB,YAAW,sBAAsB;IACzD,OAAO,CAAC,QAAQ,CAAC,GAAG;gBAAH,GAAG,EAAE,aAAa;IAEzC,UAAU,CAAC,KAAK,EAAE;QACtB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;QAC1B,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAA;KAC9B,GAAG,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC;IAS/B,UAAU,CAAC,KAAK,EAAE;QACtB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;QAC1B,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAA;QAC7B,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAA;QAChC,QAAQ,CAAC,SAAS,CAAC,EAAE,IAAI,CAAA;KAC1B,GAAG,OAAO,CAAC,IAAI,CAAC;IAcX,YAAY,CAAC,KAAK,EAAE;QACxB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;QAC1B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;QACzB,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAA;KAC9B,GAAG,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC;IAS/B,YAAY,CAAC,KAAK,EAAE;QACxB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;QAC1B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;QACzB,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAA;QAC7B,QAAQ,CAAC,IAAI,EAAE,iBAAiB,GAAG,IAAI,CAAA;QACvC,QAAQ,CAAC,SAAS,CAAC,EAAE,IAAI,CAAA;KAC1B,GAAG,OAAO,CAAC,IAAI,CAAC;CAkClB"}
|
package/dist/agents/threads.d.ts
CHANGED
|
@@ -1,14 +1,23 @@
|
|
|
1
|
-
import { type AgentThreadRecord, type AgentThreadSandboxState, type AgentThreadStore, type CreateAgentThreadInput, type ListAgentThreadsInput, type ListAgentThreadsResult, type TransitionAgentThreadSandboxInput } from "@sixb/core/storage";
|
|
1
|
+
import { type AddAgentThreadParticipantsInput, type AgentThreadParticipantRecord, type AgentThreadRecord, type AgentThreadSandboxState, type AgentThreadStore, type CreateAgentThreadInput, type ForkAgentThreadInput, type ListAgentThreadChildrenInput, type ListAgentThreadParticipantsInput, type ListAgentThreadsInput, type ListAgentThreadsResult, type RemoveAgentThreadParticipantInput, type TransitionAgentThreadSandboxInput } from "@sixb/core/storage";
|
|
2
2
|
import { type PgStoreClient } from "../transactions";
|
|
3
3
|
export declare class PgAgentThreadStore implements AgentThreadStore {
|
|
4
4
|
private readonly sql;
|
|
5
5
|
constructor(sql: PgStoreClient);
|
|
6
6
|
transitionSandbox(input: TransitionAgentThreadSandboxInput): Promise<AgentThreadSandboxState>;
|
|
7
7
|
create(input: CreateAgentThreadInput): Promise<AgentThreadRecord>;
|
|
8
|
+
fork(input: ForkAgentThreadInput): Promise<AgentThreadRecord>;
|
|
8
9
|
getById(params: {
|
|
9
10
|
projectId: string;
|
|
10
11
|
id: string;
|
|
11
12
|
}): Promise<AgentThreadRecord | null>;
|
|
13
|
+
getByIds(params: {
|
|
14
|
+
readonly projectId: string;
|
|
15
|
+
readonly ids: readonly string[];
|
|
16
|
+
}): Promise<readonly AgentThreadRecord[]>;
|
|
17
|
+
listChildren(input: ListAgentThreadChildrenInput): Promise<readonly AgentThreadRecord[]>;
|
|
12
18
|
list(input: ListAgentThreadsInput): Promise<ListAgentThreadsResult>;
|
|
19
|
+
addParticipants(input: AddAgentThreadParticipantsInput): Promise<readonly AgentThreadParticipantRecord[]>;
|
|
20
|
+
removeParticipant(input: RemoveAgentThreadParticipantInput): Promise<boolean>;
|
|
21
|
+
listParticipants(input: ListAgentThreadParticipantsInput): Promise<readonly AgentThreadParticipantRecord[]>;
|
|
13
22
|
}
|
|
14
23
|
//# sourceMappingURL=threads.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"threads.d.ts","sourceRoot":"","sources":["../../src/agents/threads.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"threads.d.ts","sourceRoot":"","sources":["../../src/agents/threads.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,KAAK,+BAA+B,EAGpC,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,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KAAK,EAAE,gCAAgC,GACtC,OAAO,CAAC,SAAS,4BAA4B,EAAE,CAAC;CAGpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-cost-groups.d.ts","sourceRoot":"","sources":["../src/ai-cost-groups.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ai-cost-groups.d.ts","sourceRoot":"","sources":["../src/ai-cost-groups.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAA;AACjG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAEnD,0GAA0G;AAC1G,wBAAsB,qBAAqB,CACzC,GAAG,EAAE,aAAa,EAClB,KAAK,EAAE,0BAA0B,GAChC,OAAO,CAAC,2BAA2B,CAAC,CAqBtC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AuthStorage, CompleteDeviceAuthorizationInput, CompleteDeviceAuthorizationResult, CompleteMagicLinkSignInInput, CompleteOidcSignInInput, CompleteSignInResult, SuspendUserAndRevokeSessionsInput,
|
|
1
|
+
import type { AuthStorage, CompleteDeviceAuthorizationInput, CompleteDeviceAuthorizationResult, CompleteMagicLinkSignInInput, CompleteOidcSignInInput, CompleteSignInResult, SuspendUserAndRevokeSessionsInput, UpdateAuthUserResult } from "@sixb/core/storage";
|
|
2
2
|
import { type PgStoreClient } from "../transactions";
|
|
3
3
|
import { PgAuthAccessTokenStore } from "./access-tokens";
|
|
4
4
|
import { PgAuthDeviceAuthorizationStore } from "./device-authorizations";
|
|
@@ -31,7 +31,7 @@ export declare class PgAuthStorage implements AuthStorage {
|
|
|
31
31
|
completeDeviceAuthorization(input: CompleteDeviceAuthorizationInput): Promise<CompleteDeviceAuthorizationResult>;
|
|
32
32
|
completeMagicLinkSignIn(input: CompleteMagicLinkSignInInput): Promise<CompleteSignInResult>;
|
|
33
33
|
completeOidcSignIn(input: CompleteOidcSignInInput): Promise<CompleteSignInResult>;
|
|
34
|
-
suspendUserAndRevokeSessions(input: SuspendUserAndRevokeSessionsInput): Promise<
|
|
34
|
+
suspendUserAndRevokeSessions(input: SuspendUserAndRevokeSessionsInput): Promise<UpdateAuthUserResult>;
|
|
35
35
|
private assertMagicLinkUsable;
|
|
36
36
|
private assertOidcAttemptUsable;
|
|
37
37
|
private insertUser;
|
|
@@ -39,6 +39,7 @@ export declare class PgAuthStorage implements AuthStorage {
|
|
|
39
39
|
private applyGroups;
|
|
40
40
|
private syncDirectoryGroups;
|
|
41
41
|
private createSignInSession;
|
|
42
|
+
private refreshProviderProfile;
|
|
42
43
|
private consumeOidcAttempt;
|
|
43
44
|
private upsertIdentity;
|
|
44
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-storage.d.ts","sourceRoot":"","sources":["../../src/auth-storage/auth-storage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,gCAAgC,EAChC,iCAAiC,EACjC,4BAA4B,EAC5B,uBAAuB,EACvB,oBAAoB,EAMpB,iCAAiC,
|
|
1
|
+
{"version":3,"file":"auth-storage.d.ts","sourceRoot":"","sources":["../../src/auth-storage/auth-storage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,gCAAgC,EAChC,iCAAiC,EACjC,4BAA4B,EAC5B,uBAAuB,EACvB,oBAAoB,EAMpB,iCAAiC,EACjC,oBAAoB,EAGrB,MAAM,oBAAoB,CAAA;AAG3B,OAAO,EAGL,KAAK,aAAa,EAEnB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAA;AACxD,OAAO,EAEL,8BAA8B,EAC/B,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAA;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAA;AACtD,OAAO,EAAE,qBAAqB,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GAAG,OAAO,CAAC,oBAAoB,CAAC;IAyLjF,4BAA4B,CAChC,KAAK,EAAE,iCAAiC,GACvC,OAAO,CAAC,oBAAoB,CAAC;IAsChC,OAAO,CAAC,qBAAqB;IAiB7B,OAAO,CAAC,uBAAuB;YAiBjB,UAAU;YA6CV,8BAA8B;YA+C9B,WAAW;YA6BX,mBAAmB;YA0BnB,mBAAmB;YA2BnB,sBAAsB;YAyBtB,kBAAkB;YAclB,cAAc;CAwC7B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AuthSessionStore, CreateAuthSessionInput, RotateSessionRefreshTokenResult, SessionRecord } from "@sixb/core/storage";
|
|
1
|
+
import type { AuthSessionStore, CreateAuthSessionInput, ListAuthSessionsInput, ListAuthSessionsResult, RotateSessionRefreshTokenResult, SessionRecord } from "@sixb/core/storage";
|
|
2
2
|
import { type PgStoreClient } from "../transactions";
|
|
3
3
|
export declare class PgAuthSessionStore implements AuthSessionStore {
|
|
4
4
|
private readonly sql;
|
|
@@ -13,6 +13,7 @@ export declare class PgAuthSessionStore implements AuthSessionStore {
|
|
|
13
13
|
readonly userId: string;
|
|
14
14
|
readonly now: Date;
|
|
15
15
|
}): Promise<readonly SessionRecord[]>;
|
|
16
|
+
listByUserId(params: ListAuthSessionsInput): Promise<ListAuthSessionsResult>;
|
|
16
17
|
findValidByTokenHash(params: {
|
|
17
18
|
readonly projectId: string;
|
|
18
19
|
readonly id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../../src/auth-storage/sessions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,sBAAsB,EACtB,+BAA+B,EAC/B,aAAa,EACd,MAAM,oBAAoB,CAAA;AAE3B,OAAO,EAGL,KAAK,aAAa,EAEnB,MAAM,iBAAiB,CAAA;AAWxB,qBAAa,kBAAmB,YAAW,gBAAgB;IAC7C,OAAO,CAAC,QAAQ,CAAC,GAA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EAAE,MAAM,CAAA;QACnB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;QAC1B,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAA;QAClB,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAA;KACzB,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC;IAwB3B,MAAM,CAAC,MAAM,EAAE;QACnB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;QAC1B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;QACnB,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAA;KACzB,GAAG,OAAO,CAAC,aAAa,CAAC;IAuBpB,mBAAmB,CAAC,MAAM,EAAE;QAChC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;QAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;QACvB,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAA;KACzB,GAAG,OAAO,CAAC,SAAS,aAAa,EAAE,CAAC;IAO/B,KAAK,CAAC,MAAM,EAAE;QAClB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;QAC1B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;QACnB,QAAQ,CAAC,UAAU,EAAE,IAAI,CAAA;KAC1B,GAAG,OAAO,CAAC,aAAa,CAAC;CAe3B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AuthUserStore, CreateAuthUserInput, ListAuthUsersInput, ListAuthUsersResult, UpdateAuthUserProfileInput, UpdateAuthUserStatusInput, UserRecord } from "@sixb/core/storage";
|
|
2
|
-
import type
|
|
1
|
+
import type { AuthUserStore, CreateAuthUserInput, ListAuthUsersInput, ListAuthUsersResult, UpdateAuthUserProfileInput, UpdateAuthUserResult, UpdateAuthUserStatusInput, UserRecord } from "@sixb/core/storage";
|
|
2
|
+
import { type PgStoreClient } from "../transactions";
|
|
3
3
|
export declare class PgAuthUserStore implements AuthUserStore {
|
|
4
4
|
private readonly sql;
|
|
5
5
|
constructor(sql: PgStoreClient);
|
|
@@ -8,12 +8,16 @@ export declare class PgAuthUserStore implements AuthUserStore {
|
|
|
8
8
|
readonly projectId: string;
|
|
9
9
|
readonly id: string;
|
|
10
10
|
}): Promise<UserRecord | null>;
|
|
11
|
+
getByIds(params: {
|
|
12
|
+
readonly projectId: string;
|
|
13
|
+
readonly ids: readonly string[];
|
|
14
|
+
}): Promise<readonly UserRecord[]>;
|
|
11
15
|
getByEmail(params: {
|
|
12
16
|
readonly projectId: string;
|
|
13
17
|
readonly email: string;
|
|
14
18
|
}): Promise<UserRecord | null>;
|
|
15
|
-
updateProfile(input: UpdateAuthUserProfileInput): Promise<
|
|
16
|
-
updateStatus(input: UpdateAuthUserStatusInput): Promise<
|
|
19
|
+
updateProfile(input: UpdateAuthUserProfileInput): Promise<UpdateAuthUserResult>;
|
|
20
|
+
updateStatus(input: UpdateAuthUserStatusInput): Promise<UpdateAuthUserResult>;
|
|
17
21
|
list(input: ListAuthUsersInput): Promise<ListAuthUsersResult>;
|
|
18
22
|
}
|
|
19
23
|
//# sourceMappingURL=users.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/auth-storage/users.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,0BAA0B,EAC1B,yBAAyB,EACzB,UAAU,EACX,MAAM,oBAAoB,CAAA;AAE3B,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/auth-storage/users.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,0BAA0B,EAC1B,oBAAoB,EACpB,yBAAyB,EACzB,UAAU,EACX,MAAM,oBAAoB,CAAA;AAE3B,OAAO,EAAE,KAAK,aAAa,EAAoB,MAAM,iBAAiB,CAAA;AAetE,qBAAa,eAAgB,YAAW,aAAa;IACvC,OAAO,CAAC,QAAQ,CAAC,GAAG;gBAAH,GAAG,EAAE,aAAa;IAEzC,MAAM,CAAC,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAAC,UAAU,CAAC;IAwDvD,OAAO,CAAC,MAAM,EAAE;QACpB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;QAC1B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;KACpB,GAAG,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC;IAKxB,QAAQ,CAAC,MAAM,EAAE;QACrB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;QAC1B,QAAQ,CAAC,GAAG,EAAE,SAAS,MAAM,EAAE,CAAA;KAChC,GAAG,OAAO,CAAC,SAAS,UAAU,EAAE,CAAC;IAc5B,UAAU,CAAC,MAAM,EAAE;QACvB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;QAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;KACvB,GAAG,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC;IAKxB,aAAa,CAAC,KAAK,EAAE,0BAA0B,GAAG,OAAO,CAAC,oBAAoB,CAAC;IA8C/E,YAAY,CAAC,KAAK,EAAE,yBAAyB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAiC7E,IAAI,CAAC,KAAK,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAmDpE"}
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ import { type PgObjectTextCountIndex } from "./objects/text-count-index";
|
|
|
9
9
|
export type { PgObjectTextCountIndex } from "./objects/text-count-index";
|
|
10
10
|
import { PgOntologyStorage } from "./ontology-storage";
|
|
11
11
|
import { PgActionRunStorage } from "./pg-action-run-storage";
|
|
12
|
+
import { PgActivityStorage } from "./pg-activity-storage";
|
|
13
|
+
import { PgArtifactStorage } from "./pg-artifact-storage";
|
|
12
14
|
import { PgExecutionStorage } from "./pg-execution-storage";
|
|
13
15
|
import { PgFileDownloadGrantStorage } from "./pg-file-download-grant-storage";
|
|
14
16
|
import { PgFileUploadSessionStorage } from "./pg-file-upload-session-storage";
|
|
@@ -109,6 +111,7 @@ export declare class PostgresStorage implements MigrationCapableStorage, QueryPr
|
|
|
109
111
|
readonly auth: PgAuthStorage;
|
|
110
112
|
readonly executions: PgExecutionStorage;
|
|
111
113
|
readonly agents: PgAgentStorage;
|
|
114
|
+
readonly artifacts: PgArtifactStorage;
|
|
112
115
|
readonly aiUsage: AiUsageStorage;
|
|
113
116
|
readonly aiCosts: AiCostStorage;
|
|
114
117
|
readonly aiLimits: AiLimitStorage;
|
|
@@ -126,6 +129,7 @@ export declare class PostgresStorage implements MigrationCapableStorage, QueryPr
|
|
|
126
129
|
readonly shareSessions: PgShareSessionStorage;
|
|
127
130
|
readonly fileUploadSessions: PgFileUploadSessionStorage;
|
|
128
131
|
readonly fileDownloadGrants: PgFileDownloadGrantStorage;
|
|
132
|
+
readonly activity: PgActivityStorage;
|
|
129
133
|
readonly migrators: readonly StorageMigrator[];
|
|
130
134
|
private readonly sql;
|
|
131
135
|
private readonly schemaName;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,uBAAuB,EACvB,OAAO,EACP,eAAe,EACf,yBAAyB,EAC1B,MAAM,YAAY,CAAA;AAenB,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,aAAa,EAClB,KAAK,8BAA8B,EAEpC,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAC9C,OAAO,EAAE,4BAA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