@undefineds.co/models 0.2.16 → 0.2.18
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 +20 -24
- package/dist/agent.repository.d.ts +1 -1
- package/dist/ai-config/index.d.ts +3 -2
- package/dist/ai-config/index.js +46 -21
- package/dist/ai-model.schema.js +4 -3
- package/dist/ai-provider.schema.js +1 -1
- package/dist/approval.schema.d.ts +1 -1
- package/dist/approval.schema.js +3 -8
- package/dist/audit.presentation.d.ts +23 -0
- package/dist/audit.presentation.js +275 -0
- package/dist/audit.schema.d.ts +1 -1
- package/dist/audit.schema.js +3 -8
- package/dist/chat.repository.d.ts +1 -1
- package/dist/chat.utils.d.ts +9 -0
- package/dist/chat.utils.js +33 -0
- package/dist/contact.repository.d.ts +1 -1
- package/dist/contact.schema.d.ts +8 -0
- package/dist/contact.schema.js +12 -0
- package/dist/credential.schema.js +1 -1
- package/dist/grant.schema.d.ts +0 -1
- package/dist/grant.schema.js +0 -3
- package/dist/index.d.ts +9 -7
- package/dist/index.js +9 -7
- package/dist/message.repository.d.ts +1 -1
- package/dist/profile.repository.d.ts +7 -7
- package/dist/repository.d.ts +1 -99
- package/dist/repository.js +1 -189
- package/dist/session/index.d.ts +1 -1
- package/dist/session/index.js +1 -1
- package/dist/session/session.schema.d.ts +2 -1
- package/dist/session/session.schema.js +11 -7
- package/dist/session.repository.d.ts +1 -1
- package/dist/sidecar/sidecar-events.d.ts +6 -6
- package/dist/thread.repository.d.ts +1 -1
- package/dist/watch/index.js +0 -10
- package/package.json +2 -2
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import { object, podTable, string, timestamp, uri, id, integer } from '@undefineds.co/drizzle-solid';
|
|
1
|
+
import { extractPodResourceTemplateValue, object, podTable, string, timestamp, uri, id, integer } from '@undefineds.co/drizzle-solid';
|
|
2
2
|
import { DCTerms, UDFS } from '../namespaces.js';
|
|
3
3
|
import { chatResource } from '../chat.schema.js';
|
|
4
4
|
import { threadResource } from '../thread.schema.js';
|
|
5
|
-
export function
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
export function buildRuntimeSessionIri(sessionId) {
|
|
6
|
+
return `urn:linx:runtime-session:${sessionId}`;
|
|
7
|
+
}
|
|
8
|
+
export function extractRuntimeSessionId(sessionRef) {
|
|
9
|
+
if (!sessionRef)
|
|
10
|
+
return null;
|
|
11
|
+
const runtimeMatch = sessionRef.match(/^urn:linx:runtime-session:(.+)$/);
|
|
12
|
+
if (runtimeMatch?.[1])
|
|
13
|
+
return runtimeMatch[1];
|
|
14
|
+
return extractPodResourceTemplateValue(sessionResource, sessionRef);
|
|
11
15
|
}
|
|
12
16
|
/**
|
|
13
17
|
* Runtime / collaboration session resource.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const sessionRepository: import("
|
|
1
|
+
export declare const sessionRepository: import("@undefineds.co/drizzle-solid/dist/core/repository").PodRepositoryDescriptor<import("@undefineds.co/drizzle-solid/dist/core/schema").PodTableWithColumns<import("@undefineds.co/drizzle-solid/dist/core/schema").ResolvedColumns<{
|
|
2
2
|
id: import("@undefineds.co/drizzle-solid/dist/core/schema").PodStringColumn<false, false>;
|
|
3
3
|
ownerWebId: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"uri", null, true, false>;
|
|
4
4
|
chat: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"uri", null, false, false>;
|
|
@@ -213,9 +213,9 @@ export declare const SessionStateEventV1Schema: z.ZodObject<{
|
|
|
213
213
|
tokenUsage: number;
|
|
214
214
|
type: "session.state";
|
|
215
215
|
tool: "claude-code" | "cursor" | "windsurf";
|
|
216
|
+
chatId: string;
|
|
216
217
|
sessionId: string;
|
|
217
218
|
timestamp: string;
|
|
218
|
-
chatId: string;
|
|
219
219
|
previousStatus: string;
|
|
220
220
|
policy?: string | undefined;
|
|
221
221
|
policyVersion?: string | undefined;
|
|
@@ -225,9 +225,9 @@ export declare const SessionStateEventV1Schema: z.ZodObject<{
|
|
|
225
225
|
tokenUsage: number;
|
|
226
226
|
type: "session.state";
|
|
227
227
|
tool: "claude-code" | "cursor" | "windsurf";
|
|
228
|
+
chatId: string;
|
|
228
229
|
sessionId: string;
|
|
229
230
|
timestamp: string;
|
|
230
|
-
chatId: string;
|
|
231
231
|
previousStatus: string;
|
|
232
232
|
policy?: string | undefined;
|
|
233
233
|
policyVersion?: string | undefined;
|
|
@@ -250,9 +250,9 @@ export declare const SessionStateEventSchema: z.ZodObject<{
|
|
|
250
250
|
tokenUsage: number;
|
|
251
251
|
type: "session.state";
|
|
252
252
|
tool: "claude-code" | "cursor" | "windsurf";
|
|
253
|
+
chatId: string;
|
|
253
254
|
sessionId: string;
|
|
254
255
|
timestamp: string;
|
|
255
|
-
chatId: string;
|
|
256
256
|
previousStatus: string;
|
|
257
257
|
policy?: string | undefined;
|
|
258
258
|
policyVersion?: string | undefined;
|
|
@@ -262,9 +262,9 @@ export declare const SessionStateEventSchema: z.ZodObject<{
|
|
|
262
262
|
tokenUsage: number;
|
|
263
263
|
type: "session.state";
|
|
264
264
|
tool: "claude-code" | "cursor" | "windsurf";
|
|
265
|
+
chatId: string;
|
|
265
266
|
sessionId: string;
|
|
266
267
|
timestamp: string;
|
|
267
|
-
chatId: string;
|
|
268
268
|
previousStatus: string;
|
|
269
269
|
policy?: string | undefined;
|
|
270
270
|
policyVersion?: string | undefined;
|
|
@@ -659,9 +659,9 @@ export declare const SidecarEventSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
659
659
|
tokenUsage: number;
|
|
660
660
|
type: "session.state";
|
|
661
661
|
tool: "claude-code" | "cursor" | "windsurf";
|
|
662
|
+
chatId: string;
|
|
662
663
|
sessionId: string;
|
|
663
664
|
timestamp: string;
|
|
664
|
-
chatId: string;
|
|
665
665
|
previousStatus: string;
|
|
666
666
|
policy?: string | undefined;
|
|
667
667
|
policyVersion?: string | undefined;
|
|
@@ -671,9 +671,9 @@ export declare const SidecarEventSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
671
671
|
tokenUsage: number;
|
|
672
672
|
type: "session.state";
|
|
673
673
|
tool: "claude-code" | "cursor" | "windsurf";
|
|
674
|
+
chatId: string;
|
|
674
675
|
sessionId: string;
|
|
675
676
|
timestamp: string;
|
|
676
|
-
chatId: string;
|
|
677
677
|
previousStatus: string;
|
|
678
678
|
policy?: string | undefined;
|
|
679
679
|
policyVersion?: string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const threadRepository: import("
|
|
1
|
+
export declare const threadRepository: import("@undefineds.co/drizzle-solid/dist/core/repository").PodRepositoryDescriptor<import("@undefineds.co/drizzle-solid/dist/core/schema").PodTableWithColumns<import("@undefineds.co/drizzle-solid/dist/core/schema").ResolvedColumns<{
|
|
2
2
|
id: import("@undefineds.co/drizzle-solid/dist/core/schema").PodStringColumn<false, false>;
|
|
3
3
|
chat: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"uri", null, true, false>;
|
|
4
4
|
title: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, false, false>;
|
package/dist/watch/index.js
CHANGED
|
@@ -474,16 +474,6 @@ function isRecord(value) {
|
|
|
474
474
|
function stringFromUnknown(value) {
|
|
475
475
|
return typeof value === 'string' && value.trim() ? value.trim() : undefined;
|
|
476
476
|
}
|
|
477
|
-
function normalizeStringList(value) {
|
|
478
|
-
const source = typeof value === 'string'
|
|
479
|
-
? value.split(',')
|
|
480
|
-
: Array.isArray(value)
|
|
481
|
-
? value
|
|
482
|
-
: [];
|
|
483
|
-
return source
|
|
484
|
-
.map((entry) => typeof entry === 'string' ? entry.trim() : '')
|
|
485
|
-
.filter(Boolean);
|
|
486
|
-
}
|
|
487
477
|
function booleanFromUnknown(value) {
|
|
488
478
|
if (typeof value === 'boolean') {
|
|
489
479
|
return value;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@undefineds.co/models",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.18",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@comunica/query-sparql-solid": "^4.0.2",
|
|
64
64
|
"@inrupt/vocab-common-rdf": "^1.0.5",
|
|
65
|
-
"@undefineds.co/drizzle-solid": "^0.3.
|
|
65
|
+
"@undefineds.co/drizzle-solid": "^0.3.9",
|
|
66
66
|
"n3": "^1.26.0",
|
|
67
67
|
"zod": "^3.22.4"
|
|
68
68
|
},
|