@8wave/ai-elements 0.121.0-beta.43 → 0.121.0-beta.45

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.
@@ -702,8 +702,8 @@ var e = {
702
702
  prompt: "Your confirmation is needed to continue:",
703
703
  promptNamed: "To continue, the agent wants to use “{tool}”.",
704
704
  expired: "This request is no longer answerable: the action was not performed.",
705
- pageElement: "an element",
706
705
  fieldChecked: "yes",
706
+ pageElement: "an element",
707
707
  moreFields: "and {count} more fields",
708
708
  pageSubmit: "The agent wants to submit the form with “{name}”. Allow it?",
709
709
  pageOpen: "The agent wants to open “{name}”: the page will change. Allow it?",
@@ -1465,8 +1465,8 @@ var e = {
1465
1465
  prompt: "Per continuare serve la tua conferma:",
1466
1466
  promptNamed: "Per continuare, l'agente vuole usare «{tool}».",
1467
1467
  expired: "Questa richiesta non è più confermabile: l'azione non è stata eseguita.",
1468
- pageElement: "un elemento",
1469
1468
  fieldChecked: "sì",
1469
+ pageElement: "un elemento",
1470
1470
  moreFields: "e altri {count} campi",
1471
1471
  pageSubmit: "L'agente vuole inviare il modulo con «{name}». Consenti?",
1472
1472
  pageOpen: "L'agente vuole aprire «{name}»: la pagina cambierà. Consenti?",
@@ -1,4 +1,4 @@
1
- import { AgentBuiltInTool } from './Agent';
1
+ import { AgentBuiltInTool, AgentType, AgentVisibility } from './Agent';
2
2
  import { IntegrationProvider } from './Integration';
3
3
  import { PlatformType } from './Platform';
4
4
  import { StoragePolicy } from './Media';
@@ -420,7 +420,18 @@ export declare enum OrganizationFeature {
420
420
  * runtime too: off, the turn offers none of those tools and the public
421
421
  * agent stops announcing them, even on an agent configured while it was on.
422
422
  */
423
- HostTools = "hostTools"
423
+ HostTools = "hostTools",
424
+ /**
425
+ * One flag per agent visibility an organization may go without (spec
426
+ * agent-visibility-modes.md, "Modalità per organizzazione"), and none
427
+ * for Organization, which every organization keeps. See
428
+ * {@link AGENT_VISIBILITY_FEATURES}. They gate the save of an agent into
429
+ * the mode, not the agents: a mode is switched off only when no agent
430
+ * uses it.
431
+ */
432
+ AgentVisibilityPublic = "agentVisibilityPublic",
433
+ AgentVisibilityRegistered = "agentVisibilityRegistered",
434
+ AgentVisibilityRestricted = "agentVisibilityRestricted"
424
435
  }
425
436
  /**
426
437
  * Value of a feature for an organization that does not mention it in its
@@ -435,6 +446,26 @@ export declare const ORGANIZATION_FEATURE_DEFAULTS: Record<OrganizationFeature,
435
446
  * connection service refuses it, and the channels page does not offer it.
436
447
  */
437
448
  export declare const PLATFORM_CHANNEL_FEATURES: Partial<Record<PlatformType, OrganizationFeature>>;
449
+ /**
450
+ * The feature flag of each agent visibility, `null` for Organization: the
451
+ * default of every new agent and one of the two a reasoning agent may have,
452
+ * so no organization can be left without it. A full record, so a visibility
453
+ * added to the enum does not compile until it says whether it has a flag.
454
+ */
455
+ export declare const AGENT_VISIBILITY_FEATURES: Record<AgentVisibility, OrganizationFeature | null>;
456
+ /**
457
+ * Whether the organization's flags let an agent be saved with `visibility`.
458
+ * Only a flag explicitly `false` closes it, as in
459
+ * {@link toolsRemovedByFeatures}, so a caller holding no flags closes nothing.
460
+ */
461
+ export declare const agentVisibilityEnabled: (visibility: AgentVisibility, features: Partial<OrganizationFeatures> | undefined) => boolean;
462
+ /**
463
+ * The visibilities an agent of `type` may be saved with, in the order the
464
+ * pickers list them: the two of a reasoning agent's organization for a
465
+ * reasoning one (the server turns any other into Organization), and of
466
+ * those the ones the organization has switched on.
467
+ */
468
+ export declare const agentVisibilityChoices: (type: AgentType | undefined, features: Partial<OrganizationFeatures> | undefined) => AgentVisibility[];
438
469
  /**
439
470
  * The feature flag of each integration provider. A full record, so a
440
471
  * provider added to the enum does not compile until it has its flag.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@8wave/ai-elements",
3
3
  "private": false,
4
- "version": "0.121.0-beta.43",
4
+ "version": "0.121.0-beta.45",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite --port 8082 --open --host",