@kehto/paja 0.31.0 → 0.32.1
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 +5 -5
- package/dist/browser-host.js +1292 -284
- package/dist/browser-host.js.map +1 -1
- package/dist/{chunk-JVTK35QF.js → chunk-DDYBKY5L.js} +52 -12
- package/dist/chunk-DDYBKY5L.js.map +1 -0
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +1 -1
- package/package.json +10 -10
- package/dist/chunk-JVTK35QF.js.map +0 -1
package/dist/cli.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { Filter } from 'nostr-tools/filter';
|
|
|
5
5
|
import { ResolvedNapplet } from '@kehto/nip/5d';
|
|
6
6
|
import { ShellCapabilities, NormalizedIntentUri } from '@kehto/shell';
|
|
7
7
|
export { NappletCspDirective, NappletCspDirectives, NappletCspOptions } from '@kehto/shell';
|
|
8
|
-
import { IntentCatalogEntry, IntentTargetController, IntentDispatchParams, IntentTargetAcceptance, LlmRequirements, LlmProviderProtocol, LlmCredentialHeader, LlmConnectionHost, HttpLlmProvider } from '@kehto/services';
|
|
8
|
+
import { IntentCatalogEntry, IntentTargetController, IntentDispatchParams, IntentTargetAcceptance, LlmRequirements, LlmProviderProtocol, LlmToolChoiceMode, LlmCredentialHeader, LlmConnectionHost, HttpLlmProvider } from '@kehto/services';
|
|
9
9
|
import { NostrEvent as NostrEvent$1 } from '@napplet/core';
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -626,6 +626,10 @@ type PajaConfirmationRequest = ({
|
|
|
626
626
|
readonly messages: number;
|
|
627
627
|
readonly characters: number;
|
|
628
628
|
readonly images: number;
|
|
629
|
+
/** Tool definition names offered to the model; shown in the dialog only, never logged. */
|
|
630
|
+
readonly tools: readonly string[];
|
|
631
|
+
/** Tool results re-entering the conversation as model input. */
|
|
632
|
+
readonly toolResults: number;
|
|
629
633
|
readonly format: 'text' | 'json';
|
|
630
634
|
readonly warning: string;
|
|
631
635
|
} | {
|
|
@@ -750,6 +754,10 @@ interface PajaLlmConnectionRecord {
|
|
|
750
754
|
readonly model: string;
|
|
751
755
|
readonly images: boolean;
|
|
752
756
|
readonly json: boolean;
|
|
757
|
+
/** Tool calling support; rows saved before it existed omit it and load as off. */
|
|
758
|
+
readonly tools?: boolean;
|
|
759
|
+
/** Supported tool-choice modes in canonical order; stored as `[]` when tools are off. */
|
|
760
|
+
readonly toolChoiceModes?: readonly LlmToolChoiceMode[];
|
|
753
761
|
readonly credentialHeader?: LlmCredentialHeader;
|
|
754
762
|
readonly credentialStorage: PajaLlmCredentialStorage;
|
|
755
763
|
}
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kehto/paja",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.1",
|
|
4
4
|
"description": "Paja local authoring workshop for hosting napplets in a real Kehto iframe during development",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -25,22 +25,22 @@
|
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@kehto/acl": "^0.20.
|
|
29
|
-
"@kehto/firewall": "^0.
|
|
28
|
+
"@kehto/acl": "^0.20.3",
|
|
29
|
+
"@kehto/firewall": "^0.7.0",
|
|
30
30
|
"@kehto/nip": "^0.8.0",
|
|
31
|
-
"@kehto/runtime": "^0.
|
|
32
|
-
"@kehto/services": "^0.
|
|
33
|
-
"@kehto/shell": "^0.
|
|
31
|
+
"@kehto/runtime": "^0.28.0",
|
|
32
|
+
"@kehto/services": "^0.30.1",
|
|
33
|
+
"@kehto/shell": "^0.32.0",
|
|
34
34
|
"@kehto/wm": "^0.0.2"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@napplet/core": ">=0.
|
|
38
|
-
"@napplet/nap": ">=0.
|
|
37
|
+
"@napplet/core": ">=0.38.0 <0.39.0",
|
|
38
|
+
"@napplet/nap": ">=0.37.0 <0.38.0",
|
|
39
39
|
"nostr-tools": ">=2.23.3 <=2.x"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@napplet/core": ">=0.
|
|
43
|
-
"@napplet/nap": ">=0.
|
|
42
|
+
"@napplet/core": ">=0.38.0 <0.39.0",
|
|
43
|
+
"@napplet/nap": ">=0.37.0 <0.38.0",
|
|
44
44
|
"nostr-tools": "^2.23.3",
|
|
45
45
|
"tsup": "^8.5.0",
|
|
46
46
|
"typescript": "^5.9.3",
|