@undefineds.co/models 0.2.34 → 0.2.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/README.md +13 -16
- package/dist/agent.repository.d.ts +48 -0
- package/dist/agent.repository.js +1 -1
- package/dist/agent.schema.d.ts +24 -0
- package/dist/agent.schema.js +16 -5
- package/dist/ai-config/index.d.ts +28 -2
- package/dist/ai-config/index.js +154 -13
- package/dist/ai-model.schema.js +11 -12
- package/dist/ai-provider.schema.d.ts +4 -0
- package/dist/ai-provider.schema.js +11 -10
- package/dist/ai-runtime.schema.d.ts +4 -4
- package/dist/ai-runtime.schema.js +43 -45
- package/dist/approval.schema.d.ts +0 -1
- package/dist/approval.schema.js +2 -11
- package/dist/audit.schema.d.ts +0 -1
- package/dist/audit.schema.js +2 -11
- package/dist/automation-rule.schema.d.ts +63 -0
- package/dist/automation-rule.schema.js +51 -0
- package/dist/bin/udfs.js +3 -3
- package/dist/chat.repository.d.ts +4 -4
- package/dist/chat.repository.js +1 -1
- package/dist/chat.schema.d.ts +2 -2
- package/dist/chat.schema.js +3 -4
- package/dist/chat.utils.d.ts +7 -0
- package/dist/chat.utils.js +35 -6
- package/dist/contact.repository.d.ts +4 -4
- package/dist/contact.repository.js +1 -1
- package/dist/contact.schema.d.ts +2 -2
- package/dist/contact.schema.js +2 -3
- package/dist/credential.schema.js +21 -22
- package/dist/delivery.schema.d.ts +81 -0
- package/dist/delivery.schema.js +64 -0
- package/dist/evidence.schema.d.ts +38 -0
- package/dist/evidence.schema.js +46 -0
- package/dist/favorite/favorite.schema.d.ts +3 -5
- package/dist/favorite/favorite.schema.js +2 -3
- package/dist/favorite/starred-sync.d.ts +1 -1
- package/dist/favorite/starred-sync.js +11 -13
- package/dist/fixtures/contracts-chat-contact.js +3 -3
- package/dist/grant.schema.d.ts +2 -3
- package/dist/grant.schema.js +6 -9
- package/dist/idea.schema.d.ts +32 -0
- package/dist/idea.schema.js +36 -0
- package/dist/inbox-notification.schema.js +1 -2
- package/dist/index.d.ts +19 -14
- package/dist/index.js +20 -18
- package/dist/issue.repository.js +1 -1
- package/dist/issue.schema.js +1 -2
- package/dist/knowledge/knowledge-folder.schema.d.ts +1 -1
- package/dist/knowledge/knowledge-folder.schema.js +1 -1
- package/dist/message.repository.d.ts +7 -15
- package/dist/message.repository.js +1 -1
- package/dist/message.schema.d.ts +7 -11
- package/dist/message.schema.js +10 -12
- package/dist/namespaces.d.ts +0 -2
- package/dist/namespaces.js +122 -92
- package/dist/pod-storage-descriptor.d.ts +0 -6
- package/dist/pod-storage-descriptor.js +11 -12
- package/dist/profile.repository.d.ts +2 -2
- package/dist/profile.repository.js +2 -2
- package/dist/report.schema.d.ts +58 -0
- package/dist/report.schema.js +73 -0
- package/dist/repository.d.ts +15 -4
- package/dist/repository.js +16 -5
- package/dist/resource-id-defaults.d.ts +1 -12
- package/dist/resource-id-defaults.js +65 -72
- package/dist/resource-refs.d.ts +25 -0
- package/dist/resource-refs.js +45 -0
- package/dist/run.schema.d.ts +13 -17
- package/dist/run.schema.js +12 -13
- package/dist/schedule.schema.d.ts +56 -0
- package/dist/schedule.schema.js +46 -0
- package/dist/schema.d.ts +273 -194
- package/dist/schema.js +18 -10
- package/dist/session/index.d.ts +1 -1
- package/dist/session/index.js +1 -1
- package/dist/session/session.schema.d.ts +4 -6
- package/dist/session/session.schema.js +5 -16
- package/dist/session.repository.d.ts +8 -8
- package/dist/session.repository.js +1 -1
- package/dist/settings/settings.schema.d.ts +2 -0
- package/dist/settings/settings.schema.js +8 -3
- package/dist/sidecar/persistence-mapping.d.ts +1 -1
- package/dist/sidecar/sidecar-events.d.ts +36 -36
- package/dist/skill.schema.d.ts +39 -0
- package/dist/skill.schema.js +31 -0
- package/dist/task.schema.d.ts +22 -32
- package/dist/task.schema.js +17 -25
- package/dist/thread.repository.d.ts +4 -8
- package/dist/thread.repository.js +1 -1
- package/dist/thread.schema.d.ts +9 -10
- package/dist/thread.schema.js +24 -13
- package/dist/types/collaboration-blocks.d.ts +3 -1
- package/dist/types/message-block.d.ts +3 -1
- package/dist/vocab/chat.vocab.d.ts +1 -1
- package/dist/vocab/chat.vocab.js +1 -1
- package/dist/vocab/contact.vocab.d.ts +1 -1
- package/dist/vocab/contact.vocab.js +1 -1
- package/dist/vocab/index.d.ts +2 -0
- package/dist/vocab/index.js +2 -0
- package/dist/vocab/message.vocab.d.ts +1 -1
- package/dist/vocab/message.vocab.js +1 -1
- package/dist/vocab/session.vocab.d.ts +16 -0
- package/dist/vocab/session.vocab.js +17 -0
- package/dist/vocab/sidecar.vocab.d.ts +19 -1
- package/dist/vocab/sidecar.vocab.js +22 -4
- package/dist/vocab/thread.vocab.d.ts +1 -0
- package/dist/vocab/thread.vocab.js +1 -0
- package/dist/vocab/workflow.vocab.d.ts +135 -0
- package/dist/vocab/workflow.vocab.js +136 -0
- package/package.json +3 -3
- package/skills/solid-modeling/SKILL.md +57 -17
- package/dist/file/file.schema.d.ts +0 -60
- package/dist/file/file.schema.js +0 -53
- package/dist/file/index.d.ts +0 -1
- package/dist/file/index.js +0 -1
- package/dist/matrix.repository.d.ts +0 -183
- package/dist/matrix.repository.js +0 -20
- package/dist/matrix.schema.d.ts +0 -136
- package/dist/matrix.schema.js +0 -100
|
@@ -2,7 +2,7 @@ import { definePodRepository } from './repository.js';
|
|
|
2
2
|
import { threadResource } from './thread.schema.js';
|
|
3
3
|
export const threadRepository = definePodRepository({
|
|
4
4
|
namespace: 'thread',
|
|
5
|
-
|
|
5
|
+
resource: threadResource,
|
|
6
6
|
searchableFields: ['title'],
|
|
7
7
|
defaultSort: { field: 'updatedAt', direction: 'desc' },
|
|
8
8
|
});
|
package/dist/thread.schema.d.ts
CHANGED
|
@@ -8,17 +8,18 @@ export declare const ThreadStatus: {
|
|
|
8
8
|
* Thread resource.
|
|
9
9
|
*
|
|
10
10
|
* Product semantics:
|
|
11
|
-
* - Thread is the concrete
|
|
11
|
+
* - Thread is the implicit concrete timeline/place under exactly one surface:
|
|
12
|
+
* Chat for conversation timelines, or Task for task execution timelines.
|
|
12
13
|
* - AI product runtime sessions map to Thread when they represent a concrete
|
|
13
14
|
* conversation timeline/place/run.
|
|
14
|
-
* - Thread carries workspace/
|
|
15
|
-
* counterpart/conversation object.
|
|
15
|
+
* - Thread carries workspace/place relations and runtime metadata. Chat only
|
|
16
|
+
* identifies the counterpart/conversation object.
|
|
16
17
|
* - Product/runtime-specific ids should stay in metadata as `runtimeSessionId`,
|
|
17
|
-
* `runtime`,
|
|
18
|
+
* `runtime`, etc. Do not name the generic thread id `piSessionId`.
|
|
18
19
|
*
|
|
19
20
|
* Storage structure (aligned with xpod):
|
|
20
|
-
* -
|
|
21
|
-
* -
|
|
21
|
+
* - Chat thread location: /.data/chat/{chat|id}/index.ttl#{id}
|
|
22
|
+
* - Task thread location: /.data/task/{task|id}/index.ttl#{id}
|
|
22
23
|
*
|
|
23
24
|
* NOTE:
|
|
24
25
|
* - `thread.workspace` is a storage-layer reference (URI) to a container/resource in CSS/Pod.
|
|
@@ -28,9 +29,8 @@ export declare const ThreadStatus: {
|
|
|
28
29
|
*/
|
|
29
30
|
export declare const threadResource: import("@undefineds.co/drizzle-solid/dist/core/schema").PodTableWithColumns<import("@undefineds.co/drizzle-solid/dist/core/schema").ResolvedColumns<{
|
|
30
31
|
id: import("@undefineds.co/drizzle-solid/dist/core/schema").PodStringColumn<false, false>;
|
|
31
|
-
commandKind: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, true, true>;
|
|
32
|
-
surfaceId: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, true, true>;
|
|
33
32
|
chat: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"uri", null, false, false>;
|
|
33
|
+
task: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"uri", null, false, false>;
|
|
34
34
|
title: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, false, false>;
|
|
35
35
|
status: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, true, true>;
|
|
36
36
|
starred: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"boolean", null, false, true>;
|
|
@@ -41,9 +41,8 @@ export declare const threadResource: import("@undefineds.co/drizzle-solid/dist/c
|
|
|
41
41
|
}>>;
|
|
42
42
|
export declare const threadTable: import("@undefineds.co/drizzle-solid/dist/core/schema").PodTableWithColumns<import("@undefineds.co/drizzle-solid/dist/core/schema").ResolvedColumns<{
|
|
43
43
|
id: import("@undefineds.co/drizzle-solid/dist/core/schema").PodStringColumn<false, false>;
|
|
44
|
-
commandKind: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, true, true>;
|
|
45
|
-
surfaceId: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, true, true>;
|
|
46
44
|
chat: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"uri", null, false, false>;
|
|
45
|
+
task: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"uri", null, false, false>;
|
|
47
46
|
title: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, false, false>;
|
|
48
47
|
status: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, true, true>;
|
|
49
48
|
starred: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"boolean", null, false, true>;
|
package/dist/thread.schema.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { uri, boolean, object, podTable, string, timestamp, id } from '@undefineds.co/drizzle-solid';
|
|
1
|
+
import { uri, boolean, object, podTable, string, timestamp, id, renderDefaultIdTemplate } from '@undefineds.co/drizzle-solid';
|
|
2
2
|
import { UDFS, DCTerms, SIOC } from './namespaces.js';
|
|
3
3
|
import { chatResource } from './chat.schema.js';
|
|
4
|
-
import {
|
|
4
|
+
import { taskResource } from './task.schema.js';
|
|
5
|
+
import { resourceKey } from './resource-id-defaults.js';
|
|
5
6
|
export const ThreadStatus = {
|
|
6
7
|
ACTIVE: 'active',
|
|
7
8
|
LOCKED: 'locked',
|
|
@@ -11,17 +12,18 @@ export const ThreadStatus = {
|
|
|
11
12
|
* Thread resource.
|
|
12
13
|
*
|
|
13
14
|
* Product semantics:
|
|
14
|
-
* - Thread is the concrete
|
|
15
|
+
* - Thread is the implicit concrete timeline/place under exactly one surface:
|
|
16
|
+
* Chat for conversation timelines, or Task for task execution timelines.
|
|
15
17
|
* - AI product runtime sessions map to Thread when they represent a concrete
|
|
16
18
|
* conversation timeline/place/run.
|
|
17
|
-
* - Thread carries workspace/
|
|
18
|
-
* counterpart/conversation object.
|
|
19
|
+
* - Thread carries workspace/place relations and runtime metadata. Chat only
|
|
20
|
+
* identifies the counterpart/conversation object.
|
|
19
21
|
* - Product/runtime-specific ids should stay in metadata as `runtimeSessionId`,
|
|
20
|
-
* `runtime`,
|
|
22
|
+
* `runtime`, etc. Do not name the generic thread id `piSessionId`.
|
|
21
23
|
*
|
|
22
24
|
* Storage structure (aligned with xpod):
|
|
23
|
-
* -
|
|
24
|
-
* -
|
|
25
|
+
* - Chat thread location: /.data/chat/{chat|id}/index.ttl#{id}
|
|
26
|
+
* - Task thread location: /.data/task/{task|id}/index.ttl#{id}
|
|
25
27
|
*
|
|
26
28
|
* NOTE:
|
|
27
29
|
* - `thread.workspace` is a storage-layer reference (URI) to a container/resource in CSS/Pod.
|
|
@@ -30,18 +32,27 @@ export const ThreadStatus = {
|
|
|
30
32
|
* container URI here and store portable metadata with that container/resource.
|
|
31
33
|
*/
|
|
32
34
|
export const threadResource = podTable('thread', {
|
|
33
|
-
id: id('id').default(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
id: id('id').default((key, row) => (renderDefaultIdTemplate(row?.task
|
|
36
|
+
? 'task/{task.key}/index.ttl#{key}'
|
|
37
|
+
: 'chat/{chat.key}/index.ttl#{key}', {
|
|
38
|
+
key: resourceKey(key, 'thread'),
|
|
39
|
+
row,
|
|
40
|
+
links: {
|
|
41
|
+
chat: chatResource,
|
|
42
|
+
task: taskResource,
|
|
43
|
+
},
|
|
44
|
+
}))),
|
|
45
|
+
// Owner surface for conversation timelines. Do not set together with `task`.
|
|
37
46
|
chat: uri('chat').predicate(SIOC.has_parent).link(chatResource),
|
|
47
|
+
// Owner surface for task execution timelines. Do not set together with `chat`.
|
|
48
|
+
task: uri('task').predicate(UDFS.task).link(taskResource),
|
|
38
49
|
// Display / state
|
|
39
50
|
title: string('title').predicate(DCTerms.title),
|
|
40
51
|
status: string('status').predicate(UDFS.status).notNull().default(ThreadStatus.ACTIVE),
|
|
41
52
|
starred: boolean('starred').predicate(UDFS.favorite).default(false),
|
|
42
53
|
// Storage-layer execution context reference: container/resource URI
|
|
43
54
|
workspace: uri('workspace').predicate(UDFS.workspace),
|
|
44
|
-
//
|
|
55
|
+
// Opaque protocol/local/UI metadata only. Shared relations must be explicit URI fields.
|
|
45
56
|
metadata: object('metadata').predicate(UDFS.metadata),
|
|
46
57
|
createdAt: timestamp('createdAt').predicate(DCTerms.created).notNull().defaultNow(),
|
|
47
58
|
updatedAt: timestamp('updatedAt').predicate(DCTerms.modified).notNull().defaultNow(),
|
|
@@ -26,7 +26,9 @@ export interface ToolApprovalBlock {
|
|
|
26
26
|
export type TaskProgressStepStatus = 'pending' | 'running' | 'done' | 'error' | 'skipped';
|
|
27
27
|
export interface TaskProgressBlock {
|
|
28
28
|
type: 'task_progress';
|
|
29
|
-
|
|
29
|
+
task: string;
|
|
30
|
+
/** @deprecated Use `task`; retained only for reading older richContent payloads. */
|
|
31
|
+
taskId?: string;
|
|
30
32
|
title: string;
|
|
31
33
|
steps: Array<{
|
|
32
34
|
id: string;
|
|
@@ -183,7 +183,9 @@ export interface ToolApprovalMessageBlock extends BaseMessageBlock {
|
|
|
183
183
|
}
|
|
184
184
|
export interface TaskProgressMessageBlock extends BaseMessageBlock {
|
|
185
185
|
type: MessageBlockType.TASK_PROGRESS;
|
|
186
|
-
|
|
186
|
+
task: string;
|
|
187
|
+
/** @deprecated Use `task`; retained only for older richContent payloads. */
|
|
188
|
+
taskId?: string;
|
|
187
189
|
title: string;
|
|
188
190
|
steps: Array<{
|
|
189
191
|
id: string;
|
|
@@ -9,7 +9,7 @@ export declare const ChatBaseVocab: {
|
|
|
9
9
|
readonly muted: string;
|
|
10
10
|
readonly unreadCount: string;
|
|
11
11
|
readonly lastActiveAt: string;
|
|
12
|
-
readonly
|
|
12
|
+
readonly lastMessage: string;
|
|
13
13
|
readonly lastMessagePreview: string;
|
|
14
14
|
readonly createdAt: string;
|
|
15
15
|
readonly updatedAt: string;
|
package/dist/vocab/chat.vocab.js
CHANGED
|
@@ -14,7 +14,7 @@ export const ChatBaseVocab = {
|
|
|
14
14
|
unreadCount: UDFS.unreadCount,
|
|
15
15
|
// Activity
|
|
16
16
|
lastActiveAt: UDFS.lastActiveAt,
|
|
17
|
-
|
|
17
|
+
lastMessage: UDFS.lastMessage,
|
|
18
18
|
lastMessagePreview: SCHEMA.text,
|
|
19
19
|
// Timestamps
|
|
20
20
|
createdAt: DCTerms.created,
|
|
@@ -2,7 +2,7 @@ import { AS, DCTerms, FOAF, RDF, UDFS, VCARD } from '../namespaces.js';
|
|
|
2
2
|
export const ContactVocab = {
|
|
3
3
|
name: VCARD.fn,
|
|
4
4
|
avatarUrl: VCARD.hasPhoto,
|
|
5
|
-
|
|
5
|
+
entity: FOAF.primaryTopic,
|
|
6
6
|
rdfType: RDF.type,
|
|
7
7
|
contactType: UDFS.contactType,
|
|
8
8
|
isPublic: AS.audience,
|
package/dist/vocab/index.d.ts
CHANGED
package/dist/vocab/index.js
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const SessionVocab: {
|
|
2
|
+
readonly owner: string;
|
|
3
|
+
readonly chat: string;
|
|
4
|
+
readonly thread: string;
|
|
5
|
+
readonly sessionType: string;
|
|
6
|
+
readonly status: string;
|
|
7
|
+
readonly tool: string;
|
|
8
|
+
readonly tokenUsage: string;
|
|
9
|
+
readonly messages: string;
|
|
10
|
+
readonly policy: string;
|
|
11
|
+
readonly policyVersion: string;
|
|
12
|
+
readonly metadata: string;
|
|
13
|
+
readonly createdAt: string;
|
|
14
|
+
readonly updatedAt: string;
|
|
15
|
+
readonly archivedAt: string;
|
|
16
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DCTerms, UDFS } from '../namespaces.js';
|
|
2
|
+
export const SessionVocab = {
|
|
3
|
+
owner: UDFS.actor,
|
|
4
|
+
chat: UDFS.conversation,
|
|
5
|
+
thread: UDFS.inThread,
|
|
6
|
+
sessionType: UDFS.conversationType,
|
|
7
|
+
status: UDFS.sessionStatus,
|
|
8
|
+
tool: UDFS.sessionTool,
|
|
9
|
+
tokenUsage: UDFS.tokenUsage,
|
|
10
|
+
messages: UDFS.message,
|
|
11
|
+
policy: UDFS.policy,
|
|
12
|
+
policyVersion: UDFS.policyVersion,
|
|
13
|
+
metadata: UDFS.metadata,
|
|
14
|
+
createdAt: DCTerms.created,
|
|
15
|
+
updatedAt: DCTerms.modified,
|
|
16
|
+
archivedAt: UDFS.archivedAt,
|
|
17
|
+
};
|
|
@@ -37,7 +37,7 @@ export declare const GrantVocab: {
|
|
|
37
37
|
readonly action: string;
|
|
38
38
|
readonly title: string;
|
|
39
39
|
readonly summary: string;
|
|
40
|
-
readonly
|
|
40
|
+
readonly description: string;
|
|
41
41
|
readonly schema: string;
|
|
42
42
|
readonly pageKind: string;
|
|
43
43
|
readonly wikiStatus: string;
|
|
@@ -57,6 +57,24 @@ export declare const GrantVocab: {
|
|
|
57
57
|
readonly createdAt: string;
|
|
58
58
|
readonly revokedAt: string;
|
|
59
59
|
};
|
|
60
|
+
/**
|
|
61
|
+
* Legacy predicates written by @undefineds.co/models <= 0.2.33.
|
|
62
|
+
*
|
|
63
|
+
* Keep this small compatibility surface so readers can accept old Pod grants
|
|
64
|
+
* while new writers use `GrantVocab`.
|
|
65
|
+
*/
|
|
66
|
+
export declare const LegacyGrantVocab: {
|
|
67
|
+
readonly summary: string;
|
|
68
|
+
readonly body: string;
|
|
69
|
+
readonly source: string;
|
|
70
|
+
readonly related: string;
|
|
71
|
+
};
|
|
72
|
+
export declare const GrantReadVocab: {
|
|
73
|
+
readonly summary: readonly [string, string];
|
|
74
|
+
readonly description: readonly [string, string];
|
|
75
|
+
readonly source: readonly [string, string];
|
|
76
|
+
readonly related: readonly [string, string];
|
|
77
|
+
};
|
|
60
78
|
export declare const InboxNotificationVocab: {
|
|
61
79
|
readonly actor: string;
|
|
62
80
|
readonly object: string;
|
|
@@ -37,17 +37,17 @@ export const GrantVocab = {
|
|
|
37
37
|
target: ODRL.target,
|
|
38
38
|
action: ODRL.action,
|
|
39
39
|
title: DCTerms.title,
|
|
40
|
-
summary:
|
|
41
|
-
|
|
40
|
+
summary: DCTerms.abstract,
|
|
41
|
+
description: DCTerms.description,
|
|
42
42
|
schema: DCTerms.conformsTo,
|
|
43
43
|
pageKind: UDFS.pageKind,
|
|
44
44
|
wikiStatus: UDFS.status,
|
|
45
45
|
tags: UDFS.tags,
|
|
46
|
-
source: UDFS.
|
|
46
|
+
source: UDFS.sourceKind,
|
|
47
47
|
sourceHash: UDFS.sourceHash,
|
|
48
48
|
compiledAt: UDFS.compiledAt,
|
|
49
49
|
compiledFrom: UDFS.compiledFrom,
|
|
50
|
-
related:
|
|
50
|
+
related: DCTerms.relation,
|
|
51
51
|
effect: UDFS.effect,
|
|
52
52
|
riskCeiling: UDFS.riskCeiling,
|
|
53
53
|
policy: UDFS.policy,
|
|
@@ -58,6 +58,24 @@ export const GrantVocab = {
|
|
|
58
58
|
createdAt: DCTerms.created,
|
|
59
59
|
revokedAt: UDFS.revokedAt,
|
|
60
60
|
};
|
|
61
|
+
/**
|
|
62
|
+
* Legacy predicates written by @undefineds.co/models <= 0.2.33.
|
|
63
|
+
*
|
|
64
|
+
* Keep this small compatibility surface so readers can accept old Pod grants
|
|
65
|
+
* while new writers use `GrantVocab`.
|
|
66
|
+
*/
|
|
67
|
+
export const LegacyGrantVocab = {
|
|
68
|
+
summary: UDFS.summary,
|
|
69
|
+
body: UDFS.body,
|
|
70
|
+
source: UDFS.source,
|
|
71
|
+
related: UDFS.related,
|
|
72
|
+
};
|
|
73
|
+
export const GrantReadVocab = {
|
|
74
|
+
summary: [GrantVocab.summary, LegacyGrantVocab.summary],
|
|
75
|
+
description: [GrantVocab.description, LegacyGrantVocab.body],
|
|
76
|
+
source: [GrantVocab.source, LegacyGrantVocab.source],
|
|
77
|
+
related: [GrantVocab.related, LegacyGrantVocab.related],
|
|
78
|
+
};
|
|
61
79
|
export const InboxNotificationVocab = {
|
|
62
80
|
actor: AS.actor,
|
|
63
81
|
object: AS.object,
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
export declare const TaskVocab: {
|
|
2
|
+
readonly title: string;
|
|
3
|
+
readonly instruction: string;
|
|
4
|
+
readonly prompt: string;
|
|
5
|
+
readonly issue: string;
|
|
6
|
+
readonly message: string;
|
|
7
|
+
readonly workspace: string;
|
|
8
|
+
readonly status: string;
|
|
9
|
+
readonly priority: string;
|
|
10
|
+
readonly assignedTo: string;
|
|
11
|
+
readonly source: string;
|
|
12
|
+
readonly metadata: string;
|
|
13
|
+
readonly createdAt: string;
|
|
14
|
+
readonly updatedAt: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const ScheduleVocab: {
|
|
17
|
+
readonly task: string;
|
|
18
|
+
readonly status: string;
|
|
19
|
+
readonly scheduleKind: string;
|
|
20
|
+
readonly cron: string;
|
|
21
|
+
readonly intervalSeconds: string;
|
|
22
|
+
readonly timezone: string;
|
|
23
|
+
readonly startsAt: string;
|
|
24
|
+
readonly nextRunAt: string;
|
|
25
|
+
readonly lastRunAt: string;
|
|
26
|
+
readonly metadata: string;
|
|
27
|
+
readonly createdAt: string;
|
|
28
|
+
readonly updatedAt: string;
|
|
29
|
+
};
|
|
30
|
+
export declare const AutomationRuleVocab: {
|
|
31
|
+
readonly title: string;
|
|
32
|
+
readonly description: string;
|
|
33
|
+
readonly status: string;
|
|
34
|
+
readonly ruleKind: string;
|
|
35
|
+
readonly task: string;
|
|
36
|
+
readonly schedule: string;
|
|
37
|
+
readonly source: string;
|
|
38
|
+
readonly target: string;
|
|
39
|
+
readonly condition: string;
|
|
40
|
+
readonly actions: string;
|
|
41
|
+
readonly metadata: string;
|
|
42
|
+
readonly lastTriggeredAt: string;
|
|
43
|
+
readonly lastRunStatus: string;
|
|
44
|
+
readonly createdAt: string;
|
|
45
|
+
readonly updatedAt: string;
|
|
46
|
+
};
|
|
47
|
+
export declare const DeliveryVocab: {
|
|
48
|
+
readonly kind: string;
|
|
49
|
+
readonly status: string;
|
|
50
|
+
readonly task: string;
|
|
51
|
+
readonly source: string;
|
|
52
|
+
readonly target: string;
|
|
53
|
+
readonly chat: string;
|
|
54
|
+
readonly thread: string;
|
|
55
|
+
readonly targetThread: string;
|
|
56
|
+
readonly targetSession: string;
|
|
57
|
+
readonly actor: string;
|
|
58
|
+
readonly object: string;
|
|
59
|
+
readonly objective: string;
|
|
60
|
+
readonly payload: string;
|
|
61
|
+
readonly projection: string;
|
|
62
|
+
readonly projectedRole: string;
|
|
63
|
+
readonly metadata: string;
|
|
64
|
+
readonly error: string;
|
|
65
|
+
readonly createdAt: string;
|
|
66
|
+
readonly dispatchedAt: string;
|
|
67
|
+
readonly consumedAt: string;
|
|
68
|
+
readonly completedAt: string;
|
|
69
|
+
readonly updatedAt: string;
|
|
70
|
+
};
|
|
71
|
+
export declare const RunVocab: {
|
|
72
|
+
readonly task: string;
|
|
73
|
+
readonly delivery: string;
|
|
74
|
+
readonly trigger: string;
|
|
75
|
+
readonly input: string;
|
|
76
|
+
readonly thread: string;
|
|
77
|
+
readonly workspace: string;
|
|
78
|
+
readonly status: string;
|
|
79
|
+
readonly runner: string;
|
|
80
|
+
readonly prompt: string;
|
|
81
|
+
readonly externalRunId: string;
|
|
82
|
+
readonly leaseOwner: string;
|
|
83
|
+
readonly leaseExpiresAt: string;
|
|
84
|
+
readonly heartbeatAt: string;
|
|
85
|
+
readonly cancelRequestedAt: string;
|
|
86
|
+
readonly error: string;
|
|
87
|
+
readonly metadata: string;
|
|
88
|
+
readonly createdAt: string;
|
|
89
|
+
readonly startedAt: string;
|
|
90
|
+
readonly completedAt: string;
|
|
91
|
+
readonly updatedAt: string;
|
|
92
|
+
};
|
|
93
|
+
export declare const EvidenceVocab: {
|
|
94
|
+
readonly evidenceKind: string;
|
|
95
|
+
readonly about: string;
|
|
96
|
+
readonly issue: string;
|
|
97
|
+
readonly task: string;
|
|
98
|
+
readonly delivery: string;
|
|
99
|
+
readonly run: string;
|
|
100
|
+
readonly thread: string;
|
|
101
|
+
readonly summary: string;
|
|
102
|
+
readonly source: string;
|
|
103
|
+
readonly actor: string;
|
|
104
|
+
readonly outcome: string;
|
|
105
|
+
readonly metadata: string;
|
|
106
|
+
readonly createdAt: string;
|
|
107
|
+
};
|
|
108
|
+
export declare const ReportVocab: {
|
|
109
|
+
readonly reportKind: string;
|
|
110
|
+
readonly status: string;
|
|
111
|
+
readonly outcome: string;
|
|
112
|
+
readonly about: string;
|
|
113
|
+
readonly issue: string;
|
|
114
|
+
readonly task: string;
|
|
115
|
+
readonly delivery: string;
|
|
116
|
+
readonly run: string;
|
|
117
|
+
readonly thread: string;
|
|
118
|
+
readonly evidence: string;
|
|
119
|
+
readonly summary: string;
|
|
120
|
+
readonly reviewer: string;
|
|
121
|
+
readonly actor: string;
|
|
122
|
+
readonly source: string;
|
|
123
|
+
readonly metricFacts: string;
|
|
124
|
+
readonly metadata: string;
|
|
125
|
+
readonly createdAt: string;
|
|
126
|
+
readonly publishedAt: string;
|
|
127
|
+
readonly updatedAt: string;
|
|
128
|
+
};
|
|
129
|
+
export declare const RunStepVocab: {
|
|
130
|
+
readonly run: string;
|
|
131
|
+
readonly stepType: string;
|
|
132
|
+
readonly message: string;
|
|
133
|
+
readonly payload: string;
|
|
134
|
+
readonly createdAt: string;
|
|
135
|
+
};
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { AS, DCTerms, SCHEMA, UDFS } from '../namespaces.js';
|
|
2
|
+
export const TaskVocab = {
|
|
3
|
+
title: DCTerms.title,
|
|
4
|
+
instruction: UDFS.instruction,
|
|
5
|
+
prompt: UDFS.prompt,
|
|
6
|
+
issue: UDFS.issue,
|
|
7
|
+
message: UDFS.message,
|
|
8
|
+
workspace: UDFS.workspace,
|
|
9
|
+
status: UDFS.status,
|
|
10
|
+
priority: UDFS.priority,
|
|
11
|
+
assignedTo: UDFS.assignedTo,
|
|
12
|
+
source: UDFS.source,
|
|
13
|
+
metadata: UDFS.metadata,
|
|
14
|
+
createdAt: DCTerms.created,
|
|
15
|
+
updatedAt: DCTerms.modified,
|
|
16
|
+
};
|
|
17
|
+
export const ScheduleVocab = {
|
|
18
|
+
task: UDFS.task,
|
|
19
|
+
status: UDFS.status,
|
|
20
|
+
scheduleKind: UDFS.scheduleKind,
|
|
21
|
+
cron: UDFS.cron,
|
|
22
|
+
intervalSeconds: UDFS.intervalSeconds,
|
|
23
|
+
timezone: UDFS.timezone,
|
|
24
|
+
startsAt: UDFS.startsAt,
|
|
25
|
+
nextRunAt: UDFS.nextRunAt,
|
|
26
|
+
lastRunAt: UDFS.lastRunAt,
|
|
27
|
+
metadata: UDFS.metadata,
|
|
28
|
+
createdAt: DCTerms.created,
|
|
29
|
+
updatedAt: DCTerms.modified,
|
|
30
|
+
};
|
|
31
|
+
export const AutomationRuleVocab = {
|
|
32
|
+
title: DCTerms.title,
|
|
33
|
+
description: DCTerms.description,
|
|
34
|
+
status: UDFS.status,
|
|
35
|
+
ruleKind: UDFS.ruleKind,
|
|
36
|
+
task: UDFS.task,
|
|
37
|
+
schedule: UDFS.schedule,
|
|
38
|
+
source: UDFS.source,
|
|
39
|
+
target: UDFS.target,
|
|
40
|
+
condition: UDFS.condition,
|
|
41
|
+
actions: UDFS.actions,
|
|
42
|
+
metadata: UDFS.metadata,
|
|
43
|
+
lastTriggeredAt: UDFS.lastTriggeredAt,
|
|
44
|
+
lastRunStatus: UDFS.lastRunStatus,
|
|
45
|
+
createdAt: DCTerms.created,
|
|
46
|
+
updatedAt: DCTerms.modified,
|
|
47
|
+
};
|
|
48
|
+
export const DeliveryVocab = {
|
|
49
|
+
kind: UDFS.deliveryKind,
|
|
50
|
+
status: UDFS.status,
|
|
51
|
+
task: UDFS.task,
|
|
52
|
+
source: UDFS.source,
|
|
53
|
+
target: AS.target,
|
|
54
|
+
chat: UDFS.conversation,
|
|
55
|
+
thread: UDFS.inThread,
|
|
56
|
+
targetThread: UDFS.targetThread,
|
|
57
|
+
targetSession: UDFS.targetSession,
|
|
58
|
+
actor: AS.actor,
|
|
59
|
+
object: AS.object,
|
|
60
|
+
objective: UDFS.objective,
|
|
61
|
+
payload: UDFS.payload,
|
|
62
|
+
projection: UDFS.projection,
|
|
63
|
+
projectedRole: UDFS.projectedRole,
|
|
64
|
+
metadata: UDFS.metadata,
|
|
65
|
+
error: UDFS.error,
|
|
66
|
+
createdAt: DCTerms.created,
|
|
67
|
+
dispatchedAt: UDFS.startedAt,
|
|
68
|
+
consumedAt: UDFS.consumedAt,
|
|
69
|
+
completedAt: UDFS.completedAt,
|
|
70
|
+
updatedAt: DCTerms.modified,
|
|
71
|
+
};
|
|
72
|
+
export const RunVocab = {
|
|
73
|
+
task: UDFS.task,
|
|
74
|
+
delivery: UDFS.delivery,
|
|
75
|
+
trigger: UDFS.trigger,
|
|
76
|
+
input: UDFS.input,
|
|
77
|
+
thread: UDFS.inThread,
|
|
78
|
+
workspace: UDFS.workspace,
|
|
79
|
+
status: UDFS.status,
|
|
80
|
+
runner: UDFS.runner,
|
|
81
|
+
prompt: UDFS.prompt,
|
|
82
|
+
externalRunId: UDFS.externalRunId,
|
|
83
|
+
leaseOwner: UDFS.leaseOwner,
|
|
84
|
+
leaseExpiresAt: UDFS.leaseExpiresAt,
|
|
85
|
+
heartbeatAt: UDFS.heartbeatAt,
|
|
86
|
+
cancelRequestedAt: UDFS.cancelRequestedAt,
|
|
87
|
+
error: UDFS.error,
|
|
88
|
+
metadata: UDFS.metadata,
|
|
89
|
+
createdAt: DCTerms.created,
|
|
90
|
+
startedAt: UDFS.startedAt,
|
|
91
|
+
completedAt: UDFS.completedAt,
|
|
92
|
+
updatedAt: DCTerms.modified,
|
|
93
|
+
};
|
|
94
|
+
export const EvidenceVocab = {
|
|
95
|
+
evidenceKind: UDFS.evidenceKind,
|
|
96
|
+
about: SCHEMA.about,
|
|
97
|
+
issue: UDFS.issue,
|
|
98
|
+
task: UDFS.task,
|
|
99
|
+
delivery: UDFS.delivery,
|
|
100
|
+
run: UDFS.run,
|
|
101
|
+
thread: UDFS.inThread,
|
|
102
|
+
summary: DCTerms.abstract,
|
|
103
|
+
source: DCTerms.source,
|
|
104
|
+
actor: DCTerms.creator,
|
|
105
|
+
outcome: UDFS.outcome,
|
|
106
|
+
metadata: UDFS.metadata,
|
|
107
|
+
createdAt: DCTerms.created,
|
|
108
|
+
};
|
|
109
|
+
export const ReportVocab = {
|
|
110
|
+
reportKind: UDFS.reportKind,
|
|
111
|
+
status: UDFS.status,
|
|
112
|
+
outcome: UDFS.outcome,
|
|
113
|
+
about: SCHEMA.about,
|
|
114
|
+
issue: UDFS.issue,
|
|
115
|
+
task: UDFS.task,
|
|
116
|
+
delivery: UDFS.delivery,
|
|
117
|
+
run: UDFS.run,
|
|
118
|
+
thread: UDFS.inThread,
|
|
119
|
+
evidence: UDFS.evidence,
|
|
120
|
+
summary: DCTerms.abstract,
|
|
121
|
+
reviewer: SCHEMA.reviewedBy,
|
|
122
|
+
actor: DCTerms.creator,
|
|
123
|
+
source: DCTerms.source,
|
|
124
|
+
metricFacts: UDFS.metricFacts,
|
|
125
|
+
metadata: UDFS.metadata,
|
|
126
|
+
createdAt: DCTerms.created,
|
|
127
|
+
publishedAt: DCTerms.issued,
|
|
128
|
+
updatedAt: DCTerms.modified,
|
|
129
|
+
};
|
|
130
|
+
export const RunStepVocab = {
|
|
131
|
+
run: UDFS.run,
|
|
132
|
+
stepType: UDFS.stepType,
|
|
133
|
+
message: DCTerms.description,
|
|
134
|
+
payload: UDFS.payload,
|
|
135
|
+
createdAt: DCTerms.created,
|
|
136
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@undefineds.co/models",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.36",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"dependencies": {
|
|
87
87
|
"@comunica/query-sparql-solid": "^4.0.2",
|
|
88
88
|
"@inrupt/vocab-common-rdf": "^1.0.5",
|
|
89
|
-
"@undefineds.co/drizzle-solid": "^0.3.
|
|
89
|
+
"@undefineds.co/drizzle-solid": "^0.3.14",
|
|
90
90
|
"n3": "^1.26.0",
|
|
91
91
|
"zod": "^3.22.4"
|
|
92
92
|
},
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"vitest": "^1.6.0"
|
|
97
97
|
},
|
|
98
98
|
"peerDependencies": {
|
|
99
|
-
"@undefineds.co/drizzle-solid": "^0.3.
|
|
99
|
+
"@undefineds.co/drizzle-solid": "^0.3.14"
|
|
100
100
|
},
|
|
101
101
|
"packageManager": "yarn@1.22.22",
|
|
102
102
|
"files": [
|