@x12i/memorix-skills 0.3.4 → 0.3.7
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 +53 -53
- package/agents/BLOCKS.md +21 -21
- package/agents/README.md +15 -15
- package/agents/evidence-summary/README.md +5 -5
- package/agents/evidence-summary/models.json +30 -30
- package/agents/evidence-summary/processes/evidence-summary/fixture.json +23 -23
- package/agents/evidence-summary/processes/evidence-summary/process.json +96 -96
- package/agents/evidence-summary/processes/evidence-summary/processing/check.example-outputs/index.json +21 -21
- package/agents/evidence-summary/processes/evidence-summary/processing/check.example-outputs/output.json +9 -9
- package/agents/evidence-summary/processes/evidence-summary/processing/check.example-outputs/result.json +3 -3
- package/agents/evidence-summary/processes/evidence-summary/processing/draft.example-outputs/index.json +21 -21
- package/agents/evidence-summary/processes/evidence-summary/processing/draft.example-outputs/output.json +12 -12
- package/agents/evidence-summary/processes/evidence-summary/processing/draft.example-outputs/result.json +3 -3
- package/agents/evidence-summary/processes/evidence-summary/processing/incomplete.example-outputs/index.json +21 -21
- package/agents/evidence-summary/processes/evidence-summary/processing/incomplete.example-outputs/output.json +11 -11
- package/agents/evidence-summary/processes/evidence-summary/processing/incomplete.example-outputs/result.json +3 -3
- package/agents/evidence-summary/processes/evidence-summary/processing/publish.example-outputs/index.json +21 -21
- package/agents/evidence-summary/processes/evidence-summary/processing/publish.example-outputs/output.json +12 -12
- package/agents/evidence-summary/processes/evidence-summary/schemas/summary.json +9 -9
- package/agents/foundation/README.md +20 -20
- package/agents/foundation/auditing/entity-overview.audit.md +32 -32
- package/agents/foundation/auditing/list-overview.audit.md +32 -32
- package/agents/foundation/blocks/overview-sections.md +13 -13
- package/agents/foundation/processing/entity-overview.md +25 -25
- package/agents/foundation/processing/list-overview.md +27 -27
- package/agents/record-brief/README.md +7 -7
- package/agents/record-brief/models.json +16 -16
- package/agents/record-brief/processes/record-brief/edges/summary-when-long.mjs +10 -10
- package/agents/record-brief/processes/record-brief/fixture.json +22 -22
- package/agents/record-brief/processes/record-brief/process.json +143 -143
- package/agents/record-brief/processes/record-brief/processing/count-briefs.example-outputs/index.json +21 -21
- package/agents/record-brief/processes/record-brief/processing/count-briefs.example-outputs/output.json +9 -9
- package/agents/record-brief/processes/record-brief/processing/index-terms.example-outputs/index.json +21 -21
- package/agents/record-brief/processes/record-brief/processing/index-terms.example-outputs/output.json +12 -12
- package/agents/record-brief/processes/record-brief/processing/normalize-note.example-outputs/index.json +21 -21
- package/agents/record-brief/processes/record-brief/processing/normalize-note.example-outputs/output.json +11 -11
- package/agents/record-brief/processes/record-brief/processing/summarize-note.example-outputs/index.json +21 -21
- package/agents/record-brief/processes/record-brief/processing/summarize-note.example-outputs/output.json +11 -11
- package/agents/record-brief/processes/record-brief/prompts/summarize.md +1 -1
- package/agents/record-brief/processes/record-brief/steps/count-briefs.mjs +6 -6
- package/agents/record-brief/processes/record-brief/steps/index-terms.mjs +6 -6
- package/agents/record-brief/processes/record-brief/steps/normalize-note.mjs +16 -16
- package/agents/record-brief/processes/record-brief/steps/summarize-note.mjs +38 -38
- package/agents/system/README.md +37 -37
- package/agents/system/internal/audit-prompt.md +28 -28
- package/agents/system/internal/audit-result.md +28 -28
- package/agents/system/internal/fix-attempt.md +17 -17
- package/agents/system/internal/improve-prompt.md +17 -17
- package/agents/system/internal/investigate-audit.md +9 -9
- package/agents/system/internal/investigate-context.md +9 -9
- package/agents/system/internal/investigate-contract.md +9 -9
- package/agents/system/internal/investigate-execution.md +9 -9
- package/agents/system/internal/investigate-inputs.md +9 -9
- package/agents/system/internal/investigate-instructions.md +9 -9
- package/agents/system/internal/investigate-provenance.md +9 -9
- package/agents/system/internal/investigate-response.md +9 -9
- package/agents/system/internal/investigate-synthesis.md +19 -19
- package/agents/tryout/README.md +7 -7
- package/agents/tryout/processes/tryout/fixture.json +28 -28
- package/agents/tryout/processes/tryout/process.json +88 -88
- package/agents/tryout/processes/tryout/processing/echo-stamp.example-outputs/index.json +16 -16
- package/agents/tryout/processes/tryout/processing/echo-stamp.example-outputs/output.json +10 -10
- package/agents/tryout/processes/tryout/processing/name-label.example-outputs/index.json +16 -16
- package/agents/tryout/processes/tryout/processing/name-label.example-outputs/output.json +9 -9
- package/agents/tryout/processes/tryout/processing/stamp-note.example-outputs/index.json +16 -16
- package/agents/tryout/processes/tryout/processing/stamp-note.example-outputs/output.json +10 -10
- package/agents/tryout/processes/tryout/steps/echo-stamp.mjs +11 -11
- package/agents/tryout/processes/tryout/steps/name-label.mjs +8 -8
- package/agents/tryout/processes/tryout/steps/stamp-note.mjs +11 -11
- package/dist/create-memorix-skills.d.ts +5 -4
- package/dist/create-memorix-skills.d.ts.map +1 -1
- package/dist/create-memorix-skills.js +32 -7
- package/dist/create-memorix-skills.js.map +1 -1
- package/dist/shared-packs.d.ts.map +1 -1
- package/dist/shared-packs.js +6 -0
- package/dist/shared-packs.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schemaVersion": "memorix.process/v2",
|
|
3
|
-
"id": "tryout",
|
|
4
|
-
"title": "Tryout",
|
|
5
|
-
"description": "Two reads and one follow-up. A note points at a label. Use this pack to try a closed process without the network sequence.",
|
|
6
|
-
"initiation": [
|
|
7
|
-
{ "objectType": "note", "contentType": "inventory", "events": ["created", "updated"] },
|
|
8
|
-
{ "objectType": "label", "contentType": "inventory", "events": ["created", "updated"] }
|
|
9
|
-
],
|
|
10
|
-
"entryNodes": ["stamp-note", "name-label"],
|
|
11
|
-
"nodes": [
|
|
12
|
-
{
|
|
13
|
-
"id": "stamp-note",
|
|
14
|
-
"label": "Stamp the note",
|
|
15
|
-
"kind": "module",
|
|
16
|
-
"module": "./steps/stamp-note.mjs",
|
|
17
|
-
"scope": "subject",
|
|
18
|
-
"activation": "always",
|
|
19
|
-
"objectType": "note",
|
|
20
|
-
"queryContentType": "inventory",
|
|
21
|
-
"reads": {
|
|
22
|
-
"required": [{ "contentType": "inventory" }],
|
|
23
|
-
"optional": []
|
|
24
|
-
},
|
|
25
|
-
"output": {
|
|
26
|
-
"contentType": "stamp",
|
|
27
|
-
"persistence": "derived",
|
|
28
|
-
"contract": {
|
|
29
|
-
"properties": [
|
|
30
|
-
{ "name": "title", "path": "data.title", "type": "string", "required": true },
|
|
31
|
-
{ "name": "labelId", "path": "data.labelId", "type": "string", "required": true }
|
|
32
|
-
]
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"id": "name-label",
|
|
38
|
-
"label": "Name the label",
|
|
39
|
-
"kind": "module",
|
|
40
|
-
"module": "./steps/name-label.mjs",
|
|
41
|
-
"scope": "subject",
|
|
42
|
-
"activation": "always",
|
|
43
|
-
"objectType": "label",
|
|
44
|
-
"queryContentType": "inventory",
|
|
45
|
-
"reads": {
|
|
46
|
-
"required": [{ "contentType": "inventory" }],
|
|
47
|
-
"optional": []
|
|
48
|
-
},
|
|
49
|
-
"output": {
|
|
50
|
-
"contentType": "name",
|
|
51
|
-
"persistence": "derived",
|
|
52
|
-
"contract": {
|
|
53
|
-
"properties": [
|
|
54
|
-
{ "name": "name", "path": "data.name", "type": "string", "required": true }
|
|
55
|
-
]
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"id": "echo-stamp",
|
|
61
|
-
"label": "Echo the stamp",
|
|
62
|
-
"kind": "module",
|
|
63
|
-
"module": "./steps/echo-stamp.mjs",
|
|
64
|
-
"scope": "subject",
|
|
65
|
-
"activation": "always",
|
|
66
|
-
"objectType": "note",
|
|
67
|
-
"queryContentType": "stamp",
|
|
68
|
-
"reads": {
|
|
69
|
-
"required": [{ "contentType": "stamp", "from": "stamp-note" }],
|
|
70
|
-
"optional": []
|
|
71
|
-
},
|
|
72
|
-
"output": {
|
|
73
|
-
"contentType": "echo",
|
|
74
|
-
"persistence": "derived",
|
|
75
|
-
"contract": {
|
|
76
|
-
"properties": [
|
|
77
|
-
{ "name": "title", "path": "data.title", "type": "string", "required": true },
|
|
78
|
-
{ "name": "labelId", "path": "data.labelId", "type": "string", "required": true }
|
|
79
|
-
]
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
],
|
|
84
|
-
"phases": [
|
|
85
|
-
{ "id": "read", "label": "Read", "steps": ["stamp-note", "name-label"] },
|
|
86
|
-
{ "id": "close", "label": "Close", "steps": ["echo-stamp"] }
|
|
87
|
-
]
|
|
88
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "memorix.process/v2",
|
|
3
|
+
"id": "tryout",
|
|
4
|
+
"title": "Tryout",
|
|
5
|
+
"description": "Two reads and one follow-up. A note points at a label. Use this pack to try a closed process without the network sequence.",
|
|
6
|
+
"initiation": [
|
|
7
|
+
{ "objectType": "note", "contentType": "inventory", "events": ["created", "updated"] },
|
|
8
|
+
{ "objectType": "label", "contentType": "inventory", "events": ["created", "updated"] }
|
|
9
|
+
],
|
|
10
|
+
"entryNodes": ["stamp-note", "name-label"],
|
|
11
|
+
"nodes": [
|
|
12
|
+
{
|
|
13
|
+
"id": "stamp-note",
|
|
14
|
+
"label": "Stamp the note",
|
|
15
|
+
"kind": "module",
|
|
16
|
+
"module": "./steps/stamp-note.mjs",
|
|
17
|
+
"scope": "subject",
|
|
18
|
+
"activation": "always",
|
|
19
|
+
"objectType": "note",
|
|
20
|
+
"queryContentType": "inventory",
|
|
21
|
+
"reads": {
|
|
22
|
+
"required": [{ "contentType": "inventory" }],
|
|
23
|
+
"optional": []
|
|
24
|
+
},
|
|
25
|
+
"output": {
|
|
26
|
+
"contentType": "stamp",
|
|
27
|
+
"persistence": "derived",
|
|
28
|
+
"contract": {
|
|
29
|
+
"properties": [
|
|
30
|
+
{ "name": "title", "path": "data.title", "type": "string", "required": true },
|
|
31
|
+
{ "name": "labelId", "path": "data.labelId", "type": "string", "required": true }
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"id": "name-label",
|
|
38
|
+
"label": "Name the label",
|
|
39
|
+
"kind": "module",
|
|
40
|
+
"module": "./steps/name-label.mjs",
|
|
41
|
+
"scope": "subject",
|
|
42
|
+
"activation": "always",
|
|
43
|
+
"objectType": "label",
|
|
44
|
+
"queryContentType": "inventory",
|
|
45
|
+
"reads": {
|
|
46
|
+
"required": [{ "contentType": "inventory" }],
|
|
47
|
+
"optional": []
|
|
48
|
+
},
|
|
49
|
+
"output": {
|
|
50
|
+
"contentType": "name",
|
|
51
|
+
"persistence": "derived",
|
|
52
|
+
"contract": {
|
|
53
|
+
"properties": [
|
|
54
|
+
{ "name": "name", "path": "data.name", "type": "string", "required": true }
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"id": "echo-stamp",
|
|
61
|
+
"label": "Echo the stamp",
|
|
62
|
+
"kind": "module",
|
|
63
|
+
"module": "./steps/echo-stamp.mjs",
|
|
64
|
+
"scope": "subject",
|
|
65
|
+
"activation": "always",
|
|
66
|
+
"objectType": "note",
|
|
67
|
+
"queryContentType": "stamp",
|
|
68
|
+
"reads": {
|
|
69
|
+
"required": [{ "contentType": "stamp", "from": "stamp-note" }],
|
|
70
|
+
"optional": []
|
|
71
|
+
},
|
|
72
|
+
"output": {
|
|
73
|
+
"contentType": "echo",
|
|
74
|
+
"persistence": "derived",
|
|
75
|
+
"contract": {
|
|
76
|
+
"properties": [
|
|
77
|
+
{ "name": "title", "path": "data.title", "type": "string", "required": true },
|
|
78
|
+
{ "name": "labelId", "path": "data.labelId", "type": "string", "required": true }
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"phases": [
|
|
85
|
+
{ "id": "read", "label": "Read", "steps": ["stamp-note", "name-label"] },
|
|
86
|
+
{ "id": "close", "label": "Close", "steps": ["echo-stamp"] }
|
|
87
|
+
]
|
|
88
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
{
|
|
2
|
-
"packId": "tryout",
|
|
3
|
-
"skill": "echo-stamp",
|
|
4
|
-
"subjects": [
|
|
5
|
-
{
|
|
6
|
-
"id": "note",
|
|
7
|
-
"objectType": "note",
|
|
8
|
-
"contentType": "echo",
|
|
9
|
-
"recordId": "fx-note",
|
|
10
|
-
"documents": [
|
|
11
|
-
{ "objectType": "note", "contentType": "echo", "recordId": "fx-note", "file": "output.json" }
|
|
12
|
-
],
|
|
13
|
-
"absent": []
|
|
14
|
-
}
|
|
15
|
-
]
|
|
16
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"packId": "tryout",
|
|
3
|
+
"skill": "echo-stamp",
|
|
4
|
+
"subjects": [
|
|
5
|
+
{
|
|
6
|
+
"id": "note",
|
|
7
|
+
"objectType": "note",
|
|
8
|
+
"contentType": "echo",
|
|
9
|
+
"recordId": "fx-note",
|
|
10
|
+
"documents": [
|
|
11
|
+
{ "objectType": "note", "contentType": "echo", "recordId": "fx-note", "file": "output.json" }
|
|
12
|
+
],
|
|
13
|
+
"absent": []
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
{
|
|
2
|
-
"objectType": "note",
|
|
3
|
-
"contentType": "echo",
|
|
4
|
-
"recordId": "fx-note",
|
|
5
|
-
"data": {
|
|
6
|
-
"title": "Door",
|
|
7
|
-
"labelId": "fx-label",
|
|
8
|
-
"instanceId": "echo-stamp"
|
|
9
|
-
}
|
|
10
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"objectType": "note",
|
|
3
|
+
"contentType": "echo",
|
|
4
|
+
"recordId": "fx-note",
|
|
5
|
+
"data": {
|
|
6
|
+
"title": "Door",
|
|
7
|
+
"labelId": "fx-label",
|
|
8
|
+
"instanceId": "echo-stamp"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
{
|
|
2
|
-
"packId": "tryout",
|
|
3
|
-
"skill": "name-label",
|
|
4
|
-
"subjects": [
|
|
5
|
-
{
|
|
6
|
-
"id": "label",
|
|
7
|
-
"objectType": "label",
|
|
8
|
-
"contentType": "name",
|
|
9
|
-
"recordId": "fx-label",
|
|
10
|
-
"documents": [
|
|
11
|
-
{ "objectType": "label", "contentType": "name", "recordId": "fx-label", "file": "output.json" }
|
|
12
|
-
],
|
|
13
|
-
"absent": []
|
|
14
|
-
}
|
|
15
|
-
]
|
|
16
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"packId": "tryout",
|
|
3
|
+
"skill": "name-label",
|
|
4
|
+
"subjects": [
|
|
5
|
+
{
|
|
6
|
+
"id": "label",
|
|
7
|
+
"objectType": "label",
|
|
8
|
+
"contentType": "name",
|
|
9
|
+
"recordId": "fx-label",
|
|
10
|
+
"documents": [
|
|
11
|
+
{ "objectType": "label", "contentType": "name", "recordId": "fx-label", "file": "output.json" }
|
|
12
|
+
],
|
|
13
|
+
"absent": []
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
{
|
|
2
|
-
"objectType": "label",
|
|
3
|
-
"contentType": "name",
|
|
4
|
-
"recordId": "fx-label",
|
|
5
|
-
"data": {
|
|
6
|
-
"name": "Lobby",
|
|
7
|
-
"instanceId": "name-label"
|
|
8
|
-
}
|
|
9
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"objectType": "label",
|
|
3
|
+
"contentType": "name",
|
|
4
|
+
"recordId": "fx-label",
|
|
5
|
+
"data": {
|
|
6
|
+
"name": "Lobby",
|
|
7
|
+
"instanceId": "name-label"
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
{
|
|
2
|
-
"packId": "tryout",
|
|
3
|
-
"skill": "stamp-note",
|
|
4
|
-
"subjects": [
|
|
5
|
-
{
|
|
6
|
-
"id": "note",
|
|
7
|
-
"objectType": "note",
|
|
8
|
-
"contentType": "stamp",
|
|
9
|
-
"recordId": "fx-note",
|
|
10
|
-
"documents": [
|
|
11
|
-
{ "objectType": "note", "contentType": "stamp", "recordId": "fx-note", "file": "output.json" }
|
|
12
|
-
],
|
|
13
|
-
"absent": []
|
|
14
|
-
}
|
|
15
|
-
]
|
|
16
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"packId": "tryout",
|
|
3
|
+
"skill": "stamp-note",
|
|
4
|
+
"subjects": [
|
|
5
|
+
{
|
|
6
|
+
"id": "note",
|
|
7
|
+
"objectType": "note",
|
|
8
|
+
"contentType": "stamp",
|
|
9
|
+
"recordId": "fx-note",
|
|
10
|
+
"documents": [
|
|
11
|
+
{ "objectType": "note", "contentType": "stamp", "recordId": "fx-note", "file": "output.json" }
|
|
12
|
+
],
|
|
13
|
+
"absent": []
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
{
|
|
2
|
-
"objectType": "note",
|
|
3
|
-
"contentType": "stamp",
|
|
4
|
-
"recordId": "fx-note",
|
|
5
|
-
"data": {
|
|
6
|
-
"title": "Door",
|
|
7
|
-
"labelId": "fx-label",
|
|
8
|
-
"instanceId": "stamp-note"
|
|
9
|
-
}
|
|
10
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"objectType": "note",
|
|
3
|
+
"contentType": "stamp",
|
|
4
|
+
"recordId": "fx-note",
|
|
5
|
+
"data": {
|
|
6
|
+
"title": "Door",
|
|
7
|
+
"labelId": "fx-label",
|
|
8
|
+
"instanceId": "stamp-note"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/** Repeat the stamp the earlier step wrote. */
|
|
2
|
-
export async function run(ctx) {
|
|
3
|
-
const stamp = ctx.inputs.stamp?.data ?? {};
|
|
4
|
-
return {
|
|
5
|
-
outcome: "emit",
|
|
6
|
-
data: {
|
|
7
|
-
title: String(stamp.title ?? "").trim(),
|
|
8
|
-
labelId: String(stamp.labelId ?? "").trim(),
|
|
9
|
-
},
|
|
10
|
-
};
|
|
11
|
-
}
|
|
1
|
+
/** Repeat the stamp the earlier step wrote. */
|
|
2
|
+
export async function run(ctx) {
|
|
3
|
+
const stamp = ctx.inputs.stamp?.data ?? {};
|
|
4
|
+
return {
|
|
5
|
+
outcome: "emit",
|
|
6
|
+
data: {
|
|
7
|
+
title: String(stamp.title ?? "").trim(),
|
|
8
|
+
labelId: String(stamp.labelId ?? "").trim(),
|
|
9
|
+
},
|
|
10
|
+
};
|
|
11
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/** Copy the label name. */
|
|
2
|
-
export async function run(ctx) {
|
|
3
|
-
const label = ctx.inputs.inventory?.data ?? {};
|
|
4
|
-
return {
|
|
5
|
-
outcome: "emit",
|
|
6
|
-
data: { name: String(label.name ?? "").trim() },
|
|
7
|
-
};
|
|
8
|
-
}
|
|
1
|
+
/** Copy the label name. */
|
|
2
|
+
export async function run(ctx) {
|
|
3
|
+
const label = ctx.inputs.inventory?.data ?? {};
|
|
4
|
+
return {
|
|
5
|
+
outcome: "emit",
|
|
6
|
+
data: { name: String(label.name ?? "").trim() },
|
|
7
|
+
};
|
|
8
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/** Copy the note title and the label it points at. */
|
|
2
|
-
export async function run(ctx) {
|
|
3
|
-
const note = ctx.inputs.inventory?.data ?? {};
|
|
4
|
-
return {
|
|
5
|
-
outcome: "emit",
|
|
6
|
-
data: {
|
|
7
|
-
title: String(note.title ?? "").trim(),
|
|
8
|
-
labelId: String(note.labelId ?? "").trim(),
|
|
9
|
-
},
|
|
10
|
-
};
|
|
11
|
-
}
|
|
1
|
+
/** Copy the note title and the label it points at. */
|
|
2
|
+
export async function run(ctx) {
|
|
3
|
+
const note = ctx.inputs.inventory?.data ?? {};
|
|
4
|
+
return {
|
|
5
|
+
outcome: "emit",
|
|
6
|
+
data: {
|
|
7
|
+
title: String(note.title ?? "").trim(),
|
|
8
|
+
labelId: String(note.labelId ?? "").trim(),
|
|
9
|
+
},
|
|
10
|
+
};
|
|
11
|
+
}
|
|
@@ -2,11 +2,11 @@ import { type AiDispatcher, type AiDispatcherOptions, type AiDispatcherRequest,
|
|
|
2
2
|
import type { MemorixClient } from "@x12i/memorix-client";
|
|
3
3
|
import { type MemorixSkillsMemorixOptions } from "./memorix.js";
|
|
4
4
|
/**
|
|
5
|
-
* Highest priority first. The dispatcher default keeps the identity
|
|
6
|
-
* subject. This list also keeps the xtivix address ahead of the host stamp.
|
|
5
|
+
* Highest priority first. The dispatcher default keeps the identity, the role
|
|
6
|
+
* stamp, and the subject. This list also keeps the xtivix address ahead of the host stamp.
|
|
7
7
|
* `user` and `action` (who started the call, and for what) are the first to go when the record is full.
|
|
8
8
|
*/
|
|
9
|
-
export declare const MODEL_METADATA_PRIORITY: readonly ["agentId", "orgId", "stepId", "skillId", "recordId", "objectType", "xtivix.execution", "priority", "machine", "app", "user", "action"];
|
|
9
|
+
export declare const MODEL_METADATA_PRIORITY: readonly ["agentId", "orgId", "stepId", "skillId", "role", "roleLayer", "roleDigest", "profileChoice", "recordId", "objectType", "xtivix.execution", "priority", "machine", "app", "user", "action"];
|
|
10
10
|
/** Dispatcher options with this product's metadata priority, unless the caller set one. */
|
|
11
11
|
export declare function memorixDispatcherOptions(options?: AiDispatcherOptions): AiDispatcherOptions;
|
|
12
12
|
/** The prompt `run` would send for this skill and these records. */
|
|
@@ -23,7 +23,8 @@ export type MemorixSkillsOptions = {
|
|
|
23
23
|
/**
|
|
24
24
|
* One agent directory (the folder that contains `processing/`).
|
|
25
25
|
* Default: `AGENTS_DIR` or `SKILLS_DIR`, plus `AGENT_ID` or `PROCESS_AGENT_ID`
|
|
26
|
-
* when one of those is set. Otherwise `<cwd>/.
|
|
26
|
+
* when one of those is set. Otherwise `<cwd>/.pagx`, where a scoped install
|
|
27
|
+
* `.pagx/@scope/<id>` is found by id.
|
|
27
28
|
*/
|
|
28
29
|
skillsDir?: string;
|
|
29
30
|
/** Existing dispatcher, or options for `createAiDispatcher`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-memorix-skills.d.ts","sourceRoot":"","sources":["../src/create-memorix-skills.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-memorix-skills.d.ts","sourceRoot":"","sources":["../src/create-memorix-skills.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EAC1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAG1D,OAAO,EAA6B,KAAK,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAK3F;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,sMAiB1B,CAAC;AAEX,2FAA2F;AAC3F,wBAAgB,wBAAwB,CAAC,OAAO,CAAC,EAAE,mBAAmB,GAAG,mBAAmB,CAK3F;AAED,oEAAoE;AACpE,wBAAsB,iBAAiB,CACrC,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EAClC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACjC,OAAO,CAAC,MAAM,CAAC,CAYjB;AAED,qBAAa,6BAA8B,SAAQ,KAAK;IACtD,QAAQ,CAAC,IAAI,iCAAiC;IAC9C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;gBAEX,KAAK,EAAE,MAAM;CAK1B;AAED,YAAY,EAAE,oBAAoB,EAAE,CAAC;AAErC,8FAA8F;AAC9F,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,mBAAmB,EAAE,QAAQ,CAAC,CAAC;AAEzE,MAAM,MAAM,oBAAoB,G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3
4
|
import { render } from "@x12i/rendrix";
|
|
@@ -7,8 +8,8 @@ import { assertPromptCatalogs } from "./prompt-catalog.js";
|
|
|
7
8
|
import { loadInternalAction, renderInternalAction } from "./internal.js";
|
|
8
9
|
import { loadSkill } from "./skills.js";
|
|
9
10
|
/**
|
|
10
|
-
* Highest priority first. The dispatcher default keeps the identity
|
|
11
|
-
* subject. This list also keeps the xtivix address ahead of the host stamp.
|
|
11
|
+
* Highest priority first. The dispatcher default keeps the identity, the role
|
|
12
|
+
* stamp, and the subject. This list also keeps the xtivix address ahead of the host stamp.
|
|
12
13
|
* `user` and `action` (who started the call, and for what) are the first to go when the record is full.
|
|
13
14
|
*/
|
|
14
15
|
export const MODEL_METADATA_PRIORITY = [
|
|
@@ -16,6 +17,10 @@ export const MODEL_METADATA_PRIORITY = [
|
|
|
16
17
|
"orgId",
|
|
17
18
|
"stepId",
|
|
18
19
|
"skillId",
|
|
20
|
+
"role",
|
|
21
|
+
"roleLayer",
|
|
22
|
+
"roleDigest",
|
|
23
|
+
"profileChoice",
|
|
19
24
|
"recordId",
|
|
20
25
|
"objectType",
|
|
21
26
|
"xtivix.execution",
|
|
@@ -28,8 +33,8 @@ export const MODEL_METADATA_PRIORITY = [
|
|
|
28
33
|
/** Dispatcher options with this product's metadata priority, unless the caller set one. */
|
|
29
34
|
export function memorixDispatcherOptions(options) {
|
|
30
35
|
return {
|
|
31
|
-
metadataPriority: MODEL_METADATA_PRIORITY,
|
|
32
36
|
...options,
|
|
37
|
+
metadataPriority: options?.metadataPriority ?? MODEL_METADATA_PRIORITY,
|
|
33
38
|
};
|
|
34
39
|
}
|
|
35
40
|
/** The prompt `run` would send for this skill and these records. */
|
|
@@ -69,12 +74,32 @@ function resolveDispatcher(dispatcher) {
|
|
|
69
74
|
}
|
|
70
75
|
return createAiDispatcher(memorixDispatcherOptions(dispatcher));
|
|
71
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
* Pack folder under an agents root: a direct child, else the first
|
|
79
|
+
* `@scope/<id>`. Same rule as `resolvePackDir` in the process package, which
|
|
80
|
+
* this package cannot import.
|
|
81
|
+
*/
|
|
82
|
+
function packFolder(root, agentId) {
|
|
83
|
+
const direct = path.resolve(root, agentId);
|
|
84
|
+
if (existsSync(direct))
|
|
85
|
+
return direct;
|
|
86
|
+
if (existsSync(root)) {
|
|
87
|
+
const scopes = readdirSync(root, { withFileTypes: true })
|
|
88
|
+
.filter((entry) => entry.isDirectory() && entry.name.startsWith("@"))
|
|
89
|
+
.map((entry) => entry.name)
|
|
90
|
+
.sort((a, b) => a.localeCompare(b, "en"));
|
|
91
|
+
for (const scope of scopes) {
|
|
92
|
+
const scoped = path.resolve(root, scope, agentId);
|
|
93
|
+
if (existsSync(scoped))
|
|
94
|
+
return scoped;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
return direct;
|
|
98
|
+
}
|
|
72
99
|
function defaultAgentDir() {
|
|
73
|
-
const root = process.env.AGENTS_DIR?.trim() ||
|
|
74
|
-
process.env.SKILLS_DIR?.trim() ||
|
|
75
|
-
path.join(process.cwd(), ".memorix-agents");
|
|
100
|
+
const root = path.resolve(process.env.AGENTS_DIR?.trim() || process.env.SKILLS_DIR?.trim() || path.join(process.cwd(), ".pagx"));
|
|
76
101
|
const agentId = process.env.AGENT_ID?.trim() || process.env.PROCESS_AGENT_ID?.trim();
|
|
77
|
-
return
|
|
102
|
+
return agentId ? packFolder(root, agentId) : root;
|
|
78
103
|
}
|
|
79
104
|
export function createMemorixSkills(options = {}) {
|
|
80
105
|
const skillsDir = path.resolve(options.skillsDir ?? defaultAgentDir());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-memorix-skills.js","sourceRoot":"","sources":["../src/create-memorix-skills.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EACL,kBAAkB,GAKnB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAA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 -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-packs.d.ts","sourceRoot":"","sources":["../src/shared-packs.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,eAAe,eAAe,CAAC;AAC5C,eAAO,MAAM,WAAW,WAAW,CAAC;AAEpC,eAAO,MAAM,eAAe,mCAA0C,CAAC;AAEvE,+FAA+F;AAC/F,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AAWD;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"shared-packs.d.ts","sourceRoot":"","sources":["../src/shared-packs.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,eAAe,eAAe,CAAC;AAC5C,eAAO,MAAM,WAAW,WAAW,CAAC;AAEpC,eAAO,MAAM,eAAe,mCAA0C,CAAC;AAEvE,+FAA+F;AAC/F,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AAWD;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CA0B/E;AAED,2DAA2D;AAC3D,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAE/E"}
|
package/dist/shared-packs.js
CHANGED
|
@@ -40,6 +40,12 @@ export function sharedPackDirs(skillsDir, agentsRoot) {
|
|
|
40
40
|
const parent = path.dirname(self);
|
|
41
41
|
if (!roots.includes(parent))
|
|
42
42
|
roots.push(parent);
|
|
43
|
+
// A scoped install is <root>/@scope/<id>, so the agents root is one level higher.
|
|
44
|
+
if (path.basename(parent).startsWith("@")) {
|
|
45
|
+
const scopedRoot = path.dirname(parent);
|
|
46
|
+
if (!roots.includes(scopedRoot))
|
|
47
|
+
roots.push(scopedRoot);
|
|
48
|
+
}
|
|
43
49
|
const shipped = packageAgentsRoot();
|
|
44
50
|
for (const id of SHARED_PACK_IDS) {
|
|
45
51
|
if (pushDir(dirs, seen, path.join(self, "shared", id), self))
|
package/dist/shared-packs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-packs.js","sourceRoot":"","sources":["../src/shared-packs.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,CAAC,MAAM,eAAe,GAAG,YAAY,CAAC;AAC5C,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC;AAEpC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,eAAe,EAAE,WAAW,CAAU,CAAC;AAEvE,+FAA+F;AAC/F,MAAM,UAAU,iBAAiB;IAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;AACjF,CAAC;AAED,SAAS,OAAO,CAAC,IAAc,EAAE,IAAiB,EAAE,GAAW,EAAE,IAAY;IAC3E,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC;QAAE,OAAO,KAAK,CAAC;IACnC,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACnC,IAAI,QAAQ,KAAK,IAAI,IAAI,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC;QAAE,OAAO,KAAK,CAAC;IAC1D,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACnB,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACpB,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,SAAiB,EAA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,CAAC;gBACd,MAAM;YACR,CAAC;QACH,CAAC;QACD,IAAI,CAAC,MAAM;YAAE,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,2DAA2D;AAC3D,MAAM,UAAU,cAAc,CAAC,SAAiB,EAAE,UAAmB;IACnE,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,GAAG,cAAc,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;AAC7E,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@x12i/memorix-skills",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.7",
|
|
4
4
|
"description": "Skill runner — load an agent processing and auditing *.md, render with Rendrix, run via @x12i/ai-dispatcher",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"registry": "https://registry.npmjs.org/"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@x12i/ai-dispatcher": "^2.
|
|
25
|
-
"@x12i/memorix-client": "^3.
|
|
24
|
+
"@x12i/ai-dispatcher": "^2.3.3",
|
|
25
|
+
"@x12i/memorix-client": "^3.12.0",
|
|
26
26
|
"@x12i/rendrix": "^4.3.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|