@kehto/paja 0.31.0 → 0.32.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/dist/cli.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  startPajaServer,
10
10
  summarizePajaSimulation,
11
11
  waitForTargetUrl
12
- } from "./chunk-JVTK35QF.js";
12
+ } from "./chunk-DDYBKY5L.js";
13
13
 
14
14
  // src/cli.ts
15
15
  import { spawn } from "child_process";
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
@@ -59,7 +59,7 @@ import {
59
59
  summarizePajaSimulation,
60
60
  validatePajaLlmVaultPassword,
61
61
  waitForTargetUrl
62
- } from "./chunk-JVTK35QF.js";
62
+ } from "./chunk-DDYBKY5L.js";
63
63
  export {
64
64
  BrowserIntentController,
65
65
  DEFAULT_PAJA_AGGREGATE_HASH,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kehto/paja",
3
- "version": "0.31.0",
3
+ "version": "0.32.0",
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.2",
29
- "@kehto/firewall": "^0.6.3",
28
+ "@kehto/acl": "^0.20.3",
29
+ "@kehto/firewall": "^0.6.4",
30
30
  "@kehto/nip": "^0.8.0",
31
- "@kehto/runtime": "^0.27.2",
32
- "@kehto/services": "^0.29.0",
33
- "@kehto/shell": "^0.30.0",
31
+ "@kehto/runtime": "^0.27.3",
32
+ "@kehto/services": "^0.30.0",
33
+ "@kehto/shell": "^0.31.0",
34
34
  "@kehto/wm": "^0.0.2"
35
35
  },
36
36
  "peerDependencies": {
37
- "@napplet/core": ">=0.32.0 <0.38.0",
38
- "@napplet/nap": ">=0.32.0 <0.37.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.32.0 <0.33.0",
43
- "@napplet/nap": ">=0.32.0 <0.33.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",