@segmentstream-cloud/ontology 0.26.1 → 0.26.2

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/action.d.ts CHANGED
@@ -18,7 +18,9 @@ export interface ActionContext<Input, Prepared = undefined> extends PrepareConte
18
18
  /** What `prepare` may fail with: the action errors, and connection calls that failed. */
19
19
  export type PrepareError = ActionError | ConnectionError;
20
20
  /**
21
- * How an action behaves. Agents confirm destructive or irreversible actions before preparation.
21
+ * How an action behaves. Agents confirm destructive, irreversible or external actions before
22
+ * preparation. Actions with connections are external even when both safety hints are false.
23
+ * Permitted, routine reversible actions can run without confirmation.
22
24
  * Custom actions without safety labels require confirmation for backwards compatibility.
23
25
  * Idempotence does not decide whether confirmation is needed.
24
26
  */
@@ -336,6 +336,11 @@ function instructions({ built }, permissions) {
336
336
  : []),
337
337
  "Call describe for the full catalog: properties, relationships, measures and the actions " +
338
338
  "you may run.",
339
+ "Use the authenticated tool annotations for confirmation: permitted actions classified as " +
340
+ "non-destructive and reversible need no extra approval. Destructive, irreversible or " +
341
+ "external actions (openWorldHint) require confirmation before preparation; idempotence " +
342
+ "alone does not waive it. Present confirmations in the conversation's language using " +
343
+ "action, entity, field and option labels and readable record titles, never tool names, ids or JSON.",
339
344
  ].join("\n\n");
340
345
  }
341
346
  function negotiate(requested) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@segmentstream-cloud/ontology",
3
- "version": "0.26.1",
3
+ "version": "0.26.2",
4
4
  "description": "Define a SegmentStream workspace app's ontology: entities, relationships, roles and actions, written with Effect.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "SegmentStream",