@standardagents/skill 0.41.26 → 0.42.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 CHANGED
@@ -14,6 +14,13 @@ The first bundled skill is:
14
14
  - `agentbuilder` - guidance for composing models, prompts, tools, hooks, APIs,
15
15
  and subagents in Standard Agents projects
16
16
 
17
+ The skill also covers TypeSafe AI decision inference through `state.decide()`:
18
+ explicit context, named choice/options, score/levels, and boolean questions;
19
+ native Jev conversion; preservation of confidence and probabilities; and
20
+ caller-owned 0–1 thresholds. Decision calls automatically log operations and
21
+ cost without adding conversation messages. Full usage lives in the
22
+ `@standardagents/typesafe` package README.
23
+
17
24
  ## Installation
18
25
 
19
26
  Recommended:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@standardagents/skill",
3
- "version": "0.41.26",
3
+ "version": "0.42.1",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -542,6 +542,28 @@ Register the hook id in the side A prompt's `hooks` array. Why this split and no
542
542
 
543
543
  ---
544
544
 
545
+ ## Decision inference
546
+
547
+ For classification, scoring, or yes/no probabilities, use
548
+ `state.decide({ provider: typesafe, model: 'jev-latest', context, questions })`
549
+ with `typesafe` from `@standardagents/typesafe` and BYOK `TYPESAFE_AI_API_KEY`.
550
+ Keep conversational `defineModel` choices separate. Scope credentials as needed,
551
+ but set destination URLs only through trusted instance/deployment configuration.
552
+ Supply explicit context and
553
+ named questions: `choice` uses described `options` (or null), `score` uses ordered
554
+ `levels`, and `boolean` uses optional true/false criteria. Write the actual
555
+ question in `instructions`; its map key only identifies the answer. TypeSafe
556
+ maps context→state, options/levels→criteria, and boolean→noul. Preserve full
557
+ probabilities, confidence, and score legends; boolean answers return a 0–1
558
+ `probability`, so choose a threshold rather than coercing it. Thread calls log
559
+ request/response/duration/status/cost automatically, persist before the first
560
+ message, and never append messages;
561
+ explicitly use `state.injectMessage()` when needed.
562
+ Automatic logging and optional `name`/`trigger` attribution are AgentBuilder
563
+ extensions, not spec requirements. Standalone `typesafe({ apiKey }).decide(...)`
564
+ creates no thread logs. Read the package README for limits and the complete
565
+ conversion contract.
566
+
545
567
  ## Model selection
546
568
 
547
569
  **Rule: never write a model string the user did not request and `current-models` did not produce.**