@howaboua/pi-durable-context 0.9.1 → 0.11.0
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 +2 -2
- package/dist/activation.js +3049 -0
- package/dist/index.js +213 -42
- package/dist/packages/context/src/activation.d.ts +20 -0
- package/dist/packages/context/src/admission.d.ts +1 -0
- package/dist/packages/context/src/history.d.ts +4 -4
- package/dist/packages/context/src/index.d.ts +4 -0
- package/dist/packages/context/src/input-placement.d.ts +6 -0
- package/dist/packages/context/src/model-roles.d.ts +1 -1
- package/dist/packages/context/src/note-store.d.ts +3 -0
- package/dist/packages/context/src/notes.d.ts +4 -4
- package/dist/packages/context/src/tool-contract.d.ts +4 -2
- package/dist/packages/context/src/tool-rollover.d.ts +1 -1
- package/package.json +26 -6
|
@@ -17,7 +17,7 @@ export declare function contextToolResult(result: JsonObject, details?: JsonObje
|
|
|
17
17
|
details: JsonObject;
|
|
18
18
|
};
|
|
19
19
|
export declare const historyParameters: Type.TObject<{
|
|
20
|
-
action: Type.TOptional<Type.TUnion<Type.TLiteral<"help"
|
|
20
|
+
action: Type.TOptional<Type.TUnion<[Type.TLiteral<"help">, Type.TLiteral<"list_windows">, Type.TLiteral<"list">, Type.TLiteral<"read">, Type.TLiteral<"search">]>>;
|
|
21
21
|
target: Type.TOptional<Type.TString>;
|
|
22
22
|
item_id: Type.TOptional<Type.TString>;
|
|
23
23
|
agent_name: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
@@ -33,7 +33,7 @@ export declare const historyParameters: Type.TObject<{
|
|
|
33
33
|
window_id: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
34
34
|
}>;
|
|
35
35
|
export declare const notesParameters: Type.TObject<{
|
|
36
|
-
action: Type.TOptional<Type.TUnion<Type.TLiteral<"
|
|
36
|
+
action: Type.TOptional<Type.TUnion<[Type.TLiteral<"help">, Type.TLiteral<"list">, Type.TLiteral<"read">, Type.TLiteral<"search">, Type.TLiteral<"append">, Type.TLiteral<"write">]>>;
|
|
37
37
|
target: Type.TOptional<Type.TString>;
|
|
38
38
|
agent_name: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
39
39
|
file_order: Type.TOptional<Type.TUnion<[Type.TLiteral<"ascending">, Type.TLiteral<"descending">]>>;
|
|
@@ -60,6 +60,7 @@ export declare function prepareNewContextArguments(input: unknown): {
|
|
|
60
60
|
export declare function prepareNotesArguments(input: unknown): NotesArguments;
|
|
61
61
|
export declare function prepareHistoryArguments(input: unknown): HistoryArguments;
|
|
62
62
|
export declare function contextToolHelp(namespace: "notes" | "history", args: NotesArguments | HistoryArguments, rankedHistory?: boolean): {
|
|
63
|
+
results?: string;
|
|
63
64
|
actions: {
|
|
64
65
|
[k: string]: string;
|
|
65
66
|
};
|
|
@@ -71,6 +72,7 @@ export declare function contextToolHelp(namespace: "notes" | "history", args: No
|
|
|
71
72
|
paging: string;
|
|
72
73
|
defaults: string;
|
|
73
74
|
} | {
|
|
75
|
+
results?: string;
|
|
74
76
|
actions: {
|
|
75
77
|
[k: string]: string;
|
|
76
78
|
};
|
|
@@ -22,7 +22,7 @@ export declare function createToolRollover(host: () => ContextHost, now: () => n
|
|
|
22
22
|
prepareArguments?(args: unknown): {
|
|
23
23
|
role?: string;
|
|
24
24
|
};
|
|
25
|
-
structuredOutputSchema?:
|
|
25
|
+
structuredOutputSchema?: object;
|
|
26
26
|
callers?: readonly ("model" | "tools")[];
|
|
27
27
|
deferred?: true;
|
|
28
28
|
outputLimits?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@howaboua/pi-durable-context",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Local notes, retained history and durable context rollover",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,6 +27,10 @@
|
|
|
27
27
|
".": {
|
|
28
28
|
"types": "./dist/packages/context/src/index.d.ts",
|
|
29
29
|
"import": "./dist/index.js"
|
|
30
|
+
},
|
|
31
|
+
"./component": {
|
|
32
|
+
"types": "./dist/packages/context/src/activation.d.ts",
|
|
33
|
+
"import": "./dist/activation.js"
|
|
30
34
|
}
|
|
31
35
|
},
|
|
32
36
|
"files": [
|
|
@@ -37,15 +41,31 @@
|
|
|
37
41
|
],
|
|
38
42
|
"sideEffects": false,
|
|
39
43
|
"dependencies": {
|
|
40
|
-
"typebox": "1.3.27"
|
|
44
|
+
"typebox": "1.3.27",
|
|
45
|
+
"@howaboua/pi-durable-components": "0.11.0"
|
|
41
46
|
},
|
|
42
47
|
"peerDependencies": {
|
|
43
|
-
"@earendil-works/chord": "1.
|
|
44
|
-
"@earendil-works/pi-ai": "1.
|
|
45
|
-
"@earendil-works/pi-durable": "1.
|
|
46
|
-
"@modelcontextprotocol/sdk": "1.25.2"
|
|
48
|
+
"@earendil-works/chord": "1.5.0",
|
|
49
|
+
"@earendil-works/pi-ai": "1.5.0",
|
|
50
|
+
"@earendil-works/pi-durable": "1.5.0",
|
|
51
|
+
"@modelcontextprotocol/sdk": ">=1.25.2 <2"
|
|
47
52
|
},
|
|
48
53
|
"publishConfig": {
|
|
49
54
|
"access": "public"
|
|
55
|
+
},
|
|
56
|
+
"durable": {
|
|
57
|
+
"schemaVersion": 1,
|
|
58
|
+
"kind": "extension",
|
|
59
|
+
"entry": "./component",
|
|
60
|
+
"runtimes": [
|
|
61
|
+
"node"
|
|
62
|
+
],
|
|
63
|
+
"requires": [
|
|
64
|
+
"durable.models.v1"
|
|
65
|
+
],
|
|
66
|
+
"permissions": [
|
|
67
|
+
"storage",
|
|
68
|
+
"models"
|
|
69
|
+
]
|
|
50
70
|
}
|
|
51
71
|
}
|