@tangle-network/agent-app 0.58.14 → 0.58.16

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.
Files changed (89) hide show
  1. package/dist/VaultPane-RIJM452Y.js +7 -0
  2. package/dist/agent-profiles/d1.js +4 -1
  3. package/dist/agent-profiles/d1.js.map +1 -1
  4. package/dist/agent-profiles/index.d.ts +1 -1
  5. package/dist/agent-profiles/index.js +10 -1
  6. package/dist/agent-profiles/self-management.d.ts +77 -0
  7. package/dist/assistant/index.js +13 -11
  8. package/dist/assistant/index.js.map +1 -1
  9. package/dist/chat-react/index.js +4 -4
  10. package/dist/chat-routes/index.js +7 -7
  11. package/dist/chat-store/index.js +2 -2
  12. package/dist/{chunk-W5VBZTNN.js → chunk-4ZMZDE24.js} +9 -9
  13. package/dist/chunk-B7CL7ENS.js +118 -0
  14. package/dist/chunk-B7CL7ENS.js.map +1 -0
  15. package/dist/{chunk-KU3XTB7O.js → chunk-BDCATWBV.js} +3 -3
  16. package/dist/{chunk-NWR5CERQ.js → chunk-FNRUXPXE.js} +2 -2
  17. package/dist/{chunk-FZCXV4NH.js → chunk-GEGCSRYQ.js} +2 -2
  18. package/dist/{chunk-WTGSLW5X.js → chunk-HTAFI247.js} +4 -4
  19. package/dist/{chunk-YEBSFADG.js → chunk-IBTM5SAZ.js} +121 -1
  20. package/dist/chunk-IBTM5SAZ.js.map +1 -0
  21. package/dist/{chunk-Y2TP52AB.js → chunk-KSLVMA2D.js} +3 -3
  22. package/dist/{chunk-SPLPFIWT.js → chunk-OFQUM5FP.js} +52 -15
  23. package/dist/chunk-OFQUM5FP.js.map +1 -0
  24. package/dist/chunk-PV33JZKV.js +115 -0
  25. package/dist/chunk-PV33JZKV.js.map +1 -0
  26. package/dist/{chunk-WN24GJ7A.js → chunk-Q3BLSWYP.js} +2 -2
  27. package/dist/{chunk-LLHHZHQC.js → chunk-S5MKEU2E.js} +2607 -1438
  28. package/dist/chunk-S5MKEU2E.js.map +1 -0
  29. package/dist/{chunk-EN5CP7T7.js → chunk-T5PPQPOD.js} +5 -111
  30. package/dist/chunk-T5PPQPOD.js.map +1 -0
  31. package/dist/{chunk-DWUBICLW.js → chunk-UGPV7VEW.js} +569 -236
  32. package/dist/chunk-UGPV7VEW.js.map +1 -0
  33. package/dist/{chunk-52PYOFI6.js → chunk-XOBVWCOA.js} +348 -312
  34. package/dist/chunk-XOBVWCOA.js.map +1 -0
  35. package/dist/{mention-editor-BPDSMGJI.js → mention-editor-4D32JTDS.js} +2 -2
  36. package/dist/preset-cloudflare/index.js +3 -3
  37. package/dist/profile/index.js +4 -2
  38. package/dist/profile/index.js.map +1 -1
  39. package/dist/profile-editor/index.d.ts +185 -0
  40. package/dist/profile-editor/index.js +18 -0
  41. package/dist/profile-editor/index.js.map +1 -0
  42. package/dist/profile-editor/server.d.ts +112 -0
  43. package/dist/profile-editor/server.js +635 -0
  44. package/dist/profile-editor/server.js.map +1 -0
  45. package/dist/public-consultation/index.js +4 -4
  46. package/dist/sandbox/index.js +3 -3
  47. package/dist/skills/frontmatter.d.ts +43 -0
  48. package/dist/skills/index.d.ts +1 -38
  49. package/dist/skills/index.js +4 -2
  50. package/dist/skills-placement/index.js +2 -1
  51. package/dist/skills-placement/index.js.map +1 -1
  52. package/dist/stories/fixtures/profile-editor.d.ts +17 -0
  53. package/dist/studio-react/index.js +3 -3
  54. package/dist/teams/invitations-api.js +3 -3
  55. package/dist/tools/index.js +3 -3
  56. package/dist/vault/VaultPane.d.ts +4 -4
  57. package/dist/vault/VaultTree.d.ts +39 -0
  58. package/dist/vault/contracts.d.ts +17 -7
  59. package/dist/vault/index.d.ts +5 -4
  60. package/dist/vault/index.js +7 -3
  61. package/dist/vault/lazy.js +1 -1
  62. package/dist/web-react/agent-profile-editor.d.ts +63 -1
  63. package/dist/web-react/agent-profile-files.d.ts +38 -0
  64. package/dist/web-react/agent-profile-form-kit.d.ts +87 -0
  65. package/dist/web-react/agent-profile-github-source.d.ts +35 -0
  66. package/dist/web-react/agent-profile-mcp-servers.d.ts +20 -0
  67. package/dist/web-react/agent-profile-suggest-input.d.ts +31 -0
  68. package/dist/web-react/agent-session-controls.d.ts +51 -0
  69. package/dist/web-react/controls.d.ts +31 -6
  70. package/dist/web-react/index.d.ts +3 -2
  71. package/dist/web-react/index.js +23 -15
  72. package/dist/workspace-react/index.js +4 -4
  73. package/package.json +11 -1
  74. package/dist/VaultPane-SPXE7XAC.js +0 -7
  75. package/dist/chunk-52PYOFI6.js.map +0 -1
  76. package/dist/chunk-DWUBICLW.js.map +0 -1
  77. package/dist/chunk-EN5CP7T7.js.map +0 -1
  78. package/dist/chunk-LLHHZHQC.js.map +0 -1
  79. package/dist/chunk-SPLPFIWT.js.map +0 -1
  80. package/dist/chunk-YEBSFADG.js.map +0 -1
  81. /package/dist/{VaultPane-SPXE7XAC.js.map → VaultPane-RIJM452Y.js.map} +0 -0
  82. /package/dist/{chunk-W5VBZTNN.js.map → chunk-4ZMZDE24.js.map} +0 -0
  83. /package/dist/{chunk-KU3XTB7O.js.map → chunk-BDCATWBV.js.map} +0 -0
  84. /package/dist/{chunk-NWR5CERQ.js.map → chunk-FNRUXPXE.js.map} +0 -0
  85. /package/dist/{chunk-FZCXV4NH.js.map → chunk-GEGCSRYQ.js.map} +0 -0
  86. /package/dist/{chunk-WTGSLW5X.js.map → chunk-HTAFI247.js.map} +0 -0
  87. /package/dist/{chunk-Y2TP52AB.js.map → chunk-KSLVMA2D.js.map} +0 -0
  88. /package/dist/{chunk-WN24GJ7A.js.map → chunk-Q3BLSWYP.js.map} +0 -0
  89. /package/dist/{mention-editor-BPDSMGJI.js.map → mention-editor-4D32JTDS.js.map} +0 -0
@@ -1,12 +1,72 @@
1
1
  import type { AgentProfile } from '@tangle-network/agent-interface/profile';
2
+ import { type Harness } from '../harness';
3
+ import type { CatalogModel } from '../runtime/model-catalog';
4
+ import { type ProfileEditorGitHubPort, type ProfileEditorMcpPort } from '../profile-editor';
5
+ import { type EffortLevel } from './controls';
2
6
  import type { AgentProfileRegistryPort } from './agent-profile-registry';
7
+ import { type ResourceFileLimits } from './agent-profile-files';
3
8
  export type AgentProfileResourceKind = 'files' | 'skills' | 'tools' | 'agents' | 'commands' | 'instructions';
9
+ /** Editor sections a product can offer, in display order. */
10
+ export type AgentProfileEditorSection = 'identity' | 'prompts' | 'model' | 'tools' | 'skills' | 'toolFiles' | 'mcp' | 'files' | 'advanced';
11
+ export declare const AGENT_PROFILE_EDITOR_SECTIONS: readonly AgentProfileEditorSection[];
4
12
  export interface AgentProfileEditorSaveState {
5
13
  /** Internal JSON, resource, or tool edits have not been applied to the profile. */
6
14
  pending: boolean;
7
15
  /** Validation failed or stored values violate this editor's constraints. */
8
16
  invalid: boolean;
9
17
  }
18
+ /** The model catalog the selectors offer: the same list the product's chat composer uses. */
19
+ export interface AgentProfileEditorModelCatalog {
20
+ models: CatalogModel[];
21
+ loading?: boolean;
22
+ error?: string | null;
23
+ onRetry?: () => void;
24
+ /** Label for an empty model setting, for example "Product default". */
25
+ defaultLabel?: string;
26
+ }
27
+ /**
28
+ * What a product offers in the editor. Every part is optional; an omitted part
29
+ * falls back to the plain control or hides the section.
30
+ */
31
+ export interface AgentProfileEditorConfig {
32
+ /** Sections to show, in the editor's fixed order. Defaults to every section the other props allow. */
33
+ sections?: readonly AgentProfileEditorSection[];
34
+ identity?: {
35
+ /** False when the product fixes the profile name. Defaults to true. */
36
+ nameEditable?: boolean;
37
+ };
38
+ /** Catalog-backed model selectors. Without it, model fields are plain text inputs. */
39
+ models?: AgentProfileEditorModelCatalog;
40
+ /** Harnesses the product runs. Omit to hide the harness selector. */
41
+ harnesses?: readonly Harness[];
42
+ /** Thinking levels for a harness and model. Defaults to the levels that harness applies, plus Auto. */
43
+ thinkingLevels?: (input: {
44
+ harness?: Harness;
45
+ model?: CatalogModel;
46
+ }) => readonly EffortLevel[];
47
+ /** GitHub sources through the product's checks. Without it, GitHub sources are typed by hand. */
48
+ github?: {
49
+ port: ProfileEditorGitHubPort;
50
+ /**
51
+ * `reference` stores `{ kind: 'github', repository, path, ref }` pinned to the
52
+ * checked commit. `inline` stores the checked file's text, for products that
53
+ * do not fetch GitHub at run time.
54
+ */
55
+ storage: 'reference' | 'inline';
56
+ /** Where the person connects GitHub, shown when the workspace has no connection. */
57
+ connectHref?: string;
58
+ };
59
+ mcp?: {
60
+ /** Health checks; each enabled remote server is checked automatically. */
61
+ port?: ProfileEditorMcpPort;
62
+ /** Explain why servers are read-only here. Presence locks toggles and edits. */
63
+ lockReason?: string;
64
+ /** Offer local command servers. Defaults to true unless `publicHttpsMcpOnly` is set. */
65
+ allowLocalCommand?: boolean;
66
+ };
67
+ /** Limits for uploaded resource files. */
68
+ files?: ResourceFileLimits;
69
+ }
10
70
  export interface AgentProfileEditorProps {
11
71
  value: AgentProfile;
12
72
  onChange: (value: AgentProfile) => void;
@@ -14,6 +74,8 @@ export interface AgentProfileEditorProps {
14
74
  onSaveStateChange?: (state: AgentProfileEditorSaveState) => void;
15
75
  disabled?: boolean;
16
76
  className?: string;
77
+ /** Product configuration: sections, model catalog, harnesses, and source checks. */
78
+ config?: AgentProfileEditorConfig;
17
79
  /** Hide unsupported resource controls. Existing entries remain in the profile and are flagged for review. */
18
80
  allowedResourceKinds?: readonly AgentProfileResourceKind[];
19
81
  /** Require resource file workspace paths under this relative folder, for example `reference/`. */
@@ -32,4 +94,4 @@ export interface AgentProfileEditorProps {
32
94
  registry?: AgentProfileRegistryPort;
33
95
  }
34
96
  /** Controlled editor for the canonical profile. The product owns save and execution authority. */
35
- export declare function AgentProfileEditor({ value, onChange, disabled, className, allowedResourceKinds, filePathPrefix, allowExecutableFiles, requireGitHubCommitSha, requireUniqueSkillNames, showToolsAndPermissions, publicHttpsMcpOnly, registry, onSaveStateChange }: AgentProfileEditorProps): import("react").JSX.Element;
97
+ export declare function AgentProfileEditor({ value, onChange, disabled, className, config, allowedResourceKinds, filePathPrefix, allowExecutableFiles, requireGitHubCommitSha, requireUniqueSkillNames, showToolsAndPermissions, publicHttpsMcpOnly, registry, onSaveStateChange }: AgentProfileEditorProps): import("react").JSX.Element;
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Drop or choose text files to add to the profile as resource files. Each file
3
+ * is read in the browser and stored inline, with per-file progress and a clear
4
+ * reason for any file that is refused (type, size, count, encoding, or a path
5
+ * already in use). The drop target and the progress list are the shared
6
+ * `SidebarDropZone` and `UploadProgress` primitives.
7
+ */
8
+ import { type ReactNode } from 'react';
9
+ export interface ResourceFileLimits {
10
+ /** Accepted types, in `<input accept>` grammar. Defaults to Markdown, text, and JSON. */
11
+ accept?: readonly string[];
12
+ /** Largest file in bytes. Defaults to 256 KiB. */
13
+ maxFileBytes?: number;
14
+ /** Most resource files in the profile. Defaults to 50. */
15
+ maxFiles?: number;
16
+ }
17
+ interface ReadFile {
18
+ name: string;
19
+ content: string;
20
+ }
21
+ export interface ResourceFileDropProps {
22
+ /** Paths already in the profile, for conflict checks. */
23
+ existingPaths: readonly string[];
24
+ /** Folder new files land in, for example `reference/`. */
25
+ pathPrefix?: string;
26
+ limits?: ResourceFileLimits;
27
+ disabled?: boolean;
28
+ /** Add the read files. Returns the reason the profile rejected them, or null. */
29
+ onAdd: (files: {
30
+ path: string;
31
+ file: ReadFile;
32
+ }[]) => string | null;
33
+ /** More add actions shown beside "Choose files". */
34
+ actions?: ReactNode;
35
+ }
36
+ /** The drop target, file chooser, and progress list for resource files. */
37
+ export declare function ResourceFileDrop({ existingPaths, pathPrefix, limits, disabled, onAdd, actions }: ResourceFileDropProps): import("react").JSX.Element;
38
+ export {};
@@ -0,0 +1,87 @@
1
+ /**
2
+ * Layout and text conventions for the profile editor, kept in one place so
3
+ * every section uses one type size, one spacing scale, and one control height.
4
+ *
5
+ * Type: 14px (`text-sm`) for labels, values, help, status, and errors; section
6
+ * titles are 16px semibold. Nothing in the form is smaller.
7
+ * Spacing: 8px from a label to its control, 16px between fields, 16px between
8
+ * sections. Controls: `--control-height` for inputs, selects, pickers, and
9
+ * buttons (`size="compact"`).
10
+ *
11
+ * Two-column field rows respond to the editor's own width through a container
12
+ * query, so the form stays single-column inside a narrow side panel on a wide
13
+ * screen.
14
+ */
15
+ import { type ReactNode } from 'react';
16
+ export declare const formText: {
17
+ readonly body: 'text-sm leading-6 text-foreground';
18
+ readonly muted: 'text-sm leading-6 text-muted-foreground';
19
+ readonly error: 'text-sm leading-6 text-destructive';
20
+ readonly label: 'text-sm font-medium leading-6 text-foreground';
21
+ /** Section titles are the one step up: 16px semibold. */
22
+ readonly title: 'text-base font-semibold leading-6 text-foreground';
23
+ };
24
+ /** Two fields side by side once the editor is at least 36rem wide. */
25
+ export declare const formRow = "grid gap-4 @xl/profile-editor:grid-cols-2";
26
+ /** A list row: its text, then its actions beside it when the editor is wide enough, or below it when narrow. */
27
+ export declare const listRow = "flex flex-col gap-1 @lg/profile-editor:flex-row @lg/profile-editor:items-start @lg/profile-editor:justify-between @lg/profile-editor:gap-3";
28
+ /** Row actions are ghost buttons; pulling them left by their padding lines their text up with the row's text when stacked. */
29
+ export declare const rowActions = "flex shrink-0 flex-wrap gap-1 -ml-3 @lg/profile-editor:ml-0";
30
+ export interface FieldProps {
31
+ label: string;
32
+ /** The control's id; the label targets it. */
33
+ htmlFor: string;
34
+ /** Help that explains what the setting does, shown from an info button. */
35
+ info?: ReactNode;
36
+ /** One short sentence the person needs to fill the field in. */
37
+ hint?: ReactNode;
38
+ /** A validation error. The control should set `aria-invalid` and reference {@link fieldMessageId}. */
39
+ error?: ReactNode;
40
+ /** A non-error status, such as a check that passed. */
41
+ status?: ReactNode;
42
+ /** Trailing content in the label row, such as a "Use default" action. */
43
+ aside?: ReactNode;
44
+ children: ReactNode;
45
+ }
46
+ /** The id of a field's hint, error, or status line, for the control's `aria-describedby`. */
47
+ export declare function fieldMessageId(htmlFor: string): string;
48
+ export declare function Field({ label, htmlFor, info, hint, error, status, aside, children }: FieldProps): import("react").JSX.Element;
49
+ export interface SectionProps {
50
+ title: string;
51
+ /** One sentence on what the section controls. */
52
+ description?: ReactNode;
53
+ /** Short trailing summary, such as "3 skills". */
54
+ summary?: ReactNode;
55
+ /** Collapsible sections start closed unless this is set. */
56
+ defaultOpen?: boolean;
57
+ collapsible?: boolean;
58
+ children: ReactNode;
59
+ }
60
+ /** A bordered section. Collapsible sections use a native disclosure so they work without script. */
61
+ export declare function Section({ title, description, summary, defaultOpen, collapsible, children }: SectionProps): import("react").JSX.Element;
62
+ export type StatusTone = 'neutral' | 'pending' | 'success' | 'warning' | 'error';
63
+ /** An inline status with an icon: a check in progress, a passed check, or a failure. */
64
+ export declare function StatusLine({ tone, children, id }: {
65
+ tone: StatusTone;
66
+ children: ReactNode;
67
+ id?: string;
68
+ }): import("react").JSX.Element;
69
+ /** A short state label with a dot, for list rows. */
70
+ export declare function StatusPill({ tone, children }: {
71
+ tone: StatusTone;
72
+ children: ReactNode;
73
+ }): import("react").JSX.Element;
74
+ /** A banner for a form-wide state, such as an error the person must fix before saving. */
75
+ export declare function Notice({ tone, children }: {
76
+ tone: 'error' | 'info';
77
+ children: ReactNode;
78
+ }): import("react").JSX.Element;
79
+ /** Attributes that keep password managers and browser autofill off fields that are not credentials. */
80
+ export declare const noAutofill: {
81
+ readonly autoComplete: 'off';
82
+ readonly 'data-1p-ignore': 'true';
83
+ readonly 'data-lpignore': 'true';
84
+ readonly 'data-bwignore': 'true';
85
+ readonly 'data-form-type': 'other';
86
+ readonly spellCheck: false;
87
+ };
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Choose a file from GitHub for a skill or a resource file. Repositories and
3
+ * paths autocomplete from the workspace's GitHub connection, the version is the
4
+ * default branch's latest commit unless the person pins a SHA, and the chosen
5
+ * file is read and checked before it can be added.
6
+ */
7
+ import { type ReactNode } from 'react';
8
+ import { type GitHubSourceCheck, type GitHubSourcePurpose, type ProfileEditorGitHubPort } from '../profile-editor';
9
+ interface GitHubSourceSelection {
10
+ check: GitHubSourceCheck;
11
+ }
12
+ export interface GitHubSourcePickerProps {
13
+ port: ProfileEditorGitHubPort;
14
+ purpose: GitHubSourcePurpose;
15
+ disabled?: boolean;
16
+ /** Where the person connects GitHub, shown when the workspace has no connection. */
17
+ connectHref?: string;
18
+ /** Called with the checked source. The caller adds it to the profile and closes the picker. */
19
+ onChoose: (selection: GitHubSourceSelection) => void;
20
+ /** The label for the add action, for example "Add skill". */
21
+ actionLabel: string;
22
+ /** Fields the caller needs beside the source, such as the skill name; rendered above the action. */
23
+ children?: (check: GitHubSourceCheck | null) => ReactNode;
24
+ /** The reason the caller's fields block adding, or null. */
25
+ blocked?: string | null;
26
+ /** Initial values, for editing an existing GitHub source. */
27
+ initial?: {
28
+ repository?: string;
29
+ path?: string;
30
+ ref?: string;
31
+ };
32
+ onCancel: () => void;
33
+ }
34
+ export declare function GitHubSourcePicker({ port, purpose, disabled, connectHref, onChoose, actionLabel, children, blocked, initial, onCancel }: GitHubSourcePickerProps): import("react").JSX.Element;
35
+ export {};
@@ -0,0 +1,20 @@
1
+ import type { AgentProfileMcpServer } from '@tangle-network/agent-interface/profile';
2
+ import { type ProfileEditorMcpPort } from '../profile-editor';
3
+ import type { AgentProfileRegistryPort } from './agent-profile-registry';
4
+ type Servers = Record<string, AgentProfileMcpServer>;
5
+ export interface McpServersEditorProps {
6
+ servers: Servers;
7
+ /** Apply the next server map to the profile. Returns false when the profile rejected it. */
8
+ onChange: (next: Servers) => boolean;
9
+ port?: ProfileEditorMcpPort;
10
+ disabled: boolean;
11
+ /** Explain why servers cannot be changed here, for example a missing role. */
12
+ lockReason?: string;
13
+ publicHttpsOnly: boolean;
14
+ allowLocalCommand: boolean;
15
+ registry?: AgentProfileRegistryPort;
16
+ /** Report an open add or edit form, so the host can hold its save. */
17
+ onPendingChange?: (pending: boolean) => void;
18
+ }
19
+ export declare function McpServersEditor({ servers, onChange, port, disabled, lockReason, publicHttpsOnly, allowLocalCommand, registry, onPendingChange }: McpServersEditorProps): import("react").JSX.Element;
20
+ export {};
@@ -0,0 +1,31 @@
1
+ /**
2
+ * A text field with a suggestion list: type to filter, arrow keys to move,
3
+ * Enter to choose. The person may also keep what they typed, so a value the
4
+ * suggestions do not contain (a repository the listing missed, a path in a
5
+ * truncated tree) is still enterable. The list renders through
6
+ * `PopoverSurface`, so a scrolling side panel cannot clip it.
7
+ */
8
+ import { type ReactNode } from 'react';
9
+ export interface Suggestion {
10
+ value: string;
11
+ label: ReactNode;
12
+ detail?: ReactNode;
13
+ }
14
+ export interface SuggestInputProps {
15
+ id: string;
16
+ value: string;
17
+ onChange: (value: string) => void;
18
+ /** Called when the person chooses a suggestion, presses Enter, or leaves the field with a changed value. */
19
+ onCommit: (value: string) => void;
20
+ suggestions: readonly Suggestion[];
21
+ /** Shown in the list while suggestions load. */
22
+ loading?: boolean;
23
+ /** Shown when the list is open but nothing matches. */
24
+ emptyText?: string;
25
+ placeholder?: string;
26
+ disabled?: boolean;
27
+ invalid?: boolean;
28
+ describedBy?: string;
29
+ 'aria-label'?: string;
30
+ }
31
+ export declare function SuggestInput({ id, value, onChange, onCommit, suggestions, loading, emptyText, placeholder, disabled, invalid, describedBy, 'aria-label': ariaLabel }: SuggestInputProps): import("react").JSX.Element;
@@ -45,6 +45,57 @@ import { type ReactNode } from 'react';
45
45
  import { type Harness } from '../harness';
46
46
  import type { CatalogModel } from '../runtime/model-catalog';
47
47
  import type { EffortLevel, PickerVariant } from './controls';
48
+ /**
49
+ * Pill-styled harness picker — inline, no sandbox-ui dependency. The brand
50
+ * marks come from `./harness-glyphs` (the set the legacy sandbox-ui picker
51
+ * shipped, vendored inline).
52
+ *
53
+ * `rounded-full` + `min-h-[36px]`, not `rounded-lg` at whatever height the
54
+ * padding gives: this pill sits beside `ModelPicker` and `EffortPicker` in
55
+ * both layouts, and both of those are 36px pills. A single odd-shaped control
56
+ * is what made the compact popover read as a pile of unrelated widgets rather
57
+ * than one selector stack. The `quiet` variant holds the same rule the other
58
+ * way: its 28px text-button geometry comes from the one
59
+ * `quietPickerTriggerClass` the other two triggers use.
60
+ *
61
+ * `fullWidth` is opt-in and means what it means on `EffortPicker` — see
62
+ * {@link pickerRootClass}.
63
+ *
64
+ * `lockReason` PINS the control: it keeps its selector shape and keeps
65
+ * reporting the harness the thread is on, opens nothing, and explains itself
66
+ * on hover AND on keyboard focus. Three deliberate choices there:
67
+ *
68
+ * - `aria-disabled`, never the native `disabled` attribute. A disabled button
69
+ * is removed from the tab order and fires no pointer events in most
70
+ * browsers, so the one control that has something to explain would become
71
+ * the one control that can never be asked.
72
+ * - the reason rides a permanent visually-hidden node that `aria-describedby`
73
+ * points at, so assistive tech has it whether or not the floating hint is
74
+ * up; the floating copy is `aria-hidden` so nothing is announced twice.
75
+ * - the hint is a {@link PopoverSurface}, not an absolutely-positioned div —
76
+ * the compact panel is an `overflow-y-auto` box, which clips a positioned
77
+ * descendant, and that surface is this package's answer to exactly that.
78
+ */
79
+ export interface HarnessPickerProps {
80
+ /** The selected harness, or `''` for none when {@link HarnessPickerProps.defaultOption} is offered. */
81
+ value: Harness | '';
82
+ onChange: (h: Harness | '') => void;
83
+ /** Harnesses to offer; defaults to the labeled set. */
84
+ available?: ReadonlyArray<Harness>;
85
+ fullWidth?: boolean;
86
+ /** Pin the control and say why; see the component notes. */
87
+ lockReason?: string;
88
+ variant?: PickerVariant;
89
+ /** Offer "no selection" as the first row; choosing it calls `onChange('')`. */
90
+ defaultOption?: {
91
+ label: string;
92
+ };
93
+ /** Disable the trigger; unlike `lockReason` it explains nothing. */
94
+ disabled?: boolean;
95
+ id?: string;
96
+ 'aria-describedby'?: string;
97
+ }
98
+ export declare function HarnessPicker({ value, onChange, available, fullWidth, lockReason, variant, defaultOption, disabled, id, 'aria-describedby': ariaDescribedBy, }: HarnessPickerProps): import("react").JSX.Element;
48
99
  export interface AgentSessionControlsProps {
49
100
  /** Catalog models — canonical provider-prefixed ids. */
50
101
  models: CatalogModel[];
@@ -148,16 +148,28 @@ export declare function pickerRootClass(fullWidth: boolean): string;
148
148
  /**
149
149
  * How a picker's TRIGGER is drawn. The menu it opens is the same either way.
150
150
  *
151
- * - `chip` (default): the 36px bordered pill — `rounded-full border
152
- * border-border bg-card font-medium`. A consumer that names no variant
153
- * renders exactly what it rendered before this prop existed.
151
+ * - `chip` (default): the 32px bordered pill — `rounded-full border
152
+ * border-border bg-card font-medium`, on the composer row's height.
154
153
  * - `quiet`: a 32px borderless text button (the control scale's sm, the
155
154
  * composer row's one height) — muted label, small glyph, a
156
155
  * surface fill on hover and while the menu is open, nothing else. For a
157
156
  * composer whose card already draws the border: three pills docked under
158
157
  * the input there read as three more cards, not as the input's controls.
158
+ * - `field`: a full-width form field — the same height, radius, border,
159
+ * well, and focus treatment as a text input at `--control-height`. For a
160
+ * settings form, where a pill among inputs reads as a different control.
159
161
  */
160
- export type PickerVariant = 'chip' | 'quiet';
162
+ export type PickerVariant = 'chip' | 'quiet' | 'field';
163
+ /**
164
+ * Trigger classes for a `field` picker. It matches `@tangle-network/ui`'s
165
+ * compact `Input` (height, `rounded-lg`, `--bg-input` well, border hover, and
166
+ * `:focus` halo) so a model or harness selector sits in a form as one more
167
+ * field. Written out here because `/web-react` controls stay free of the
168
+ * sandbox-ui peer.
169
+ */
170
+ export declare function fieldPickerTriggerClass({ interactive }?: {
171
+ interactive?: boolean;
172
+ }): string;
161
173
  /**
162
174
  * Trigger classes for a `quiet` picker. Height, padding, radius, and type are
163
175
  * fixed here so the triggers on one composer row agree; a caller adds only
@@ -223,6 +235,14 @@ export interface ModelPickerProps {
223
235
  variant?: PickerVariant;
224
236
  /** Optional accessible trigger content for a picker docked beside an editable model field. */
225
237
  triggerContent?: ReactNode;
238
+ /**
239
+ * Offer "no selection" as the first row, for a setting that may defer to a
240
+ * default chosen elsewhere. Choosing it calls `onChange('')`, and the trigger
241
+ * shows this label while `value` is empty.
242
+ */
243
+ defaultOption?: {
244
+ label: string;
245
+ };
226
246
  }
227
247
  /**
228
248
  * Searchable model picker pill + popover. A featured model is recommended
@@ -234,7 +254,7 @@ export interface ModelPickerProps {
234
254
  * The non-modal dialog uses native buttons, not a partial combobox/listbox:
235
255
  * Tab and Enter/Space work normally; arrow keys also move through its controls.
236
256
  */
237
- export declare function ModelPicker({ value, onChange, models, loading, error, onRetry, disabled, id, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, 'aria-describedby': ariaDescribedBy, renderProviderBadge, recommendedLabel, priorityGroup, variant, triggerContent, }: ModelPickerProps): import("react").JSX.Element;
257
+ export declare function ModelPicker({ value, onChange, models, loading, error, onRetry, disabled, id, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, 'aria-describedby': ariaDescribedBy, renderProviderBadge, recommendedLabel, priorityGroup, variant, triggerContent, defaultOption, }: ModelPickerProps): import("react").JSX.Element;
238
258
  /** One reasoning-budget level: the engine `id` is unchanged (the value the
239
259
  * product sends to the loop); only the user-facing `label` is renamed to the
240
260
  * plainer "how hard should it think" vocabulary from docs/product-surfaces.md.
@@ -319,6 +339,11 @@ export interface EffortPickerProps {
319
339
  fullWidth?: boolean;
320
340
  /** Trigger treatment — see {@link PickerVariant}. Default `chip`. */
321
341
  variant?: PickerVariant;
342
+ /** Disable the trigger and close an open menu; does not change the value. */
343
+ disabled?: boolean;
344
+ /** Associations belong to the trigger button, for a picker labelled by a form field. */
345
+ id?: string;
346
+ 'aria-describedby'?: string;
322
347
  }
323
348
  /** Thinking-budget selector pill, styled to match {@link ModelPicker}. Show
324
349
  * it only when the selected model `supportsReasoning`. "Thinking" is the
@@ -326,4 +351,4 @@ export interface EffortPickerProps {
326
351
  *
327
352
  * The CANONICAL ecosystem effort picker — sandbox-ui's reasoning menu (inside
328
353
  * its `chat/AgentSessionControls`) is legacy and frozen. */
329
- export declare function EffortPicker({ value, onChange, levels, label, fullWidth, variant }: EffortPickerProps): import("react").JSX.Element;
354
+ export declare function EffortPicker({ value, onChange, levels, label, fullWidth, variant, disabled, id, 'aria-describedby': ariaDescribedBy }: EffortPickerProps): import("react").JSX.Element;
@@ -33,6 +33,7 @@ export * from './chat-composer';
33
33
  export { getChatFundingRecovery, type ChatFundingFailure, type ChatFundingRecovery } from './turn-funding-recovery';
34
34
  export { RouteChunkBoundary, type RouteChunkBoundaryProps } from './lazy-load-boundary';
35
35
  export * from './agent-profile-editor';
36
+ export type { ResourceFileLimits } from './agent-profile-files';
36
37
  export * from './agent-profile-registry';
37
38
  export * from './agent-profile-viewer';
38
39
  export * from './composer-file-accept';
@@ -66,8 +67,8 @@ export * from './command-palette';
66
67
  export * from './sparkline';
67
68
  export * from './insight-card';
68
69
  export * from './use-dictation';
69
- export { usePopover, usePending, PopoverSurface, POPOVER_SURFACE_ATTR, ModelPicker, EffortPicker, EffortMeter, effortMeterFill, effortLevelLabel, effortLevelsFromIds, reconcileEffortLevels, DEFAULT_EFFORT_LEVELS, EFFORT_METER_SEGMENTS, OVERLAY_SHADOW, type ModelPickerProps, type EffortPickerProps, type EffortLevel, type PickerVariant, type PopoverSurfaceProps, } from './controls';
70
- export { AgentSessionControls, type AgentSessionControlsProps, } from './agent-session-controls';
70
+ export { usePopover, usePending, PopoverSurface, POPOVER_SURFACE_ATTR, ModelPicker, EffortPicker, EffortMeter, effortMeterFill, effortLevelLabel, effortLevelsFromIds, reconcileEffortLevels, DEFAULT_EFFORT_LEVELS, EFFORT_METER_SEGMENTS, OVERLAY_SHADOW, fieldPickerTriggerClass, type ModelPickerProps, type EffortPickerProps, type EffortLevel, type PickerVariant, type PopoverSurfaceProps, } from './controls';
71
+ export { AgentSessionControls, HarnessPicker, type AgentSessionControlsProps, type HarnessPickerProps, } from './agent-session-controls';
71
72
  import type { CatalogModel } from '../runtime/model-catalog';
72
73
  export type { CatalogModel } from '../runtime/model-catalog';
73
74
  /** Describe metrics related to a chat message including model, token counts, and duration */
@@ -1,4 +1,5 @@
1
1
  import {
2
+ AGENT_PROFILE_EDITOR_SECTIONS,
2
3
  AgentActivityPanel,
3
4
  AgentProfileChoices,
4
5
  AgentProfileEditor,
@@ -134,14 +135,14 @@ import {
134
135
  withoutRecordGridCreated,
135
136
  withoutRecordGridRemoved,
136
137
  withoutRecordGridUpdate
137
- } from "../chunk-LLHHZHQC.js";
138
+ } from "../chunk-S5MKEU2E.js";
138
139
  import {
139
140
  SessionHistoryPanel,
140
141
  formatSessionTimestamp,
141
142
  useInfiniteScroll,
142
143
  useSessionActions,
143
144
  useSessionHistory
144
- } from "../chunk-KU3XTB7O.js";
145
+ } from "../chunk-BDCATWBV.js";
145
146
  import {
146
147
  MENTION_PILL_CLASS
147
148
  } from "../chunk-3HUFJ5LO.js";
@@ -159,6 +160,9 @@ import {
159
160
  workProductStatusLabel,
160
161
  workProductStatusTone
161
162
  } from "../chunk-Y6PRDUFJ.js";
163
+ import {
164
+ parseReviewQueueItem
165
+ } from "../chunk-GEYACSFW.js";
162
166
  import {
163
167
  AgentSessionControls,
164
168
  AgentSettingsPopover,
@@ -166,6 +170,7 @@ import {
166
170
  ComposerModeControls,
167
171
  EntryComposer,
168
172
  HarnessGlyph,
173
+ HarnessPicker,
169
174
  RouteChunkBoundary,
170
175
  acceptRejectionReason,
171
176
  dictationErrorMessage,
@@ -176,14 +181,14 @@ import {
176
181
  renamePastedImages,
177
182
  useComposerAttachments,
178
183
  useDictation
179
- } from "../chunk-52PYOFI6.js";
184
+ } from "../chunk-XOBVWCOA.js";
180
185
  import "../chunk-L7MB2LLM.js";
181
186
  import {
182
187
  WorkspaceInitial,
183
188
  WorkspaceSwitcher
184
- } from "../chunk-Y2TP52AB.js";
185
- import "../chunk-WN24GJ7A.js";
186
- import "../chunk-FZCXV4NH.js";
189
+ } from "../chunk-KSLVMA2D.js";
190
+ import "../chunk-Q3BLSWYP.js";
191
+ import "../chunk-GEGCSRYQ.js";
187
192
  import {
188
193
  DEFAULT_EFFORT_LEVELS,
189
194
  EFFORT_METER_SEGMENTS,
@@ -196,27 +201,27 @@ import {
196
201
  effortLevelLabel,
197
202
  effortLevelsFromIds,
198
203
  effortMeterFill,
204
+ fieldPickerTriggerClass,
199
205
  reconcileEffortLevels,
200
206
  usePending,
201
207
  usePopover
202
- } from "../chunk-SPLPFIWT.js";
208
+ } from "../chunk-OFQUM5FP.js";
203
209
  import {
204
210
  tabTerminalConnectionId,
205
211
  useSandboxTerminalConnection
206
212
  } from "../chunk-E4AY62T2.js";
207
213
  import "../chunk-SJWIZT7B.js";
208
- import {
209
- parseReviewQueueItem
210
- } from "../chunk-GEYACSFW.js";
211
- import {
212
- ProviderLogo
213
- } from "../chunk-MLG6XKPV.js";
214
214
  import "../chunk-LSUELMHY.js";
215
215
  import "../chunk-FQYAJYPW.js";
216
216
  import {
217
217
  ATTACHMENT_ACCEPT
218
218
  } from "../chunk-NJA6X7JI.js";
219
+ import {
220
+ ProviderLogo
221
+ } from "../chunk-MLG6XKPV.js";
219
222
  import "../chunk-MCYJON3F.js";
223
+ import "../chunk-B7CL7ENS.js";
224
+ import "../chunk-PV33JZKV.js";
220
225
  import "../chunk-7YA4QNTU.js";
221
226
  import {
222
227
  attachmentInputToPart,
@@ -225,7 +230,8 @@ import {
225
230
  isChatAttachmentPart,
226
231
  mentionInputToPart,
227
232
  mentionPartsFromMessageParts
228
- } from "../chunk-WTGSLW5X.js";
233
+ } from "../chunk-HTAFI247.js";
234
+ import "../chunk-ZVEEWGDK.js";
229
235
  import {
230
236
  DISPATCH_MAX_MEDIA_PARTS,
231
237
  DISPATCH_MAX_PARTS,
@@ -238,7 +244,6 @@ import {
238
244
  mediaTypeForMentionPath,
239
245
  mentionKindForPath
240
246
  } from "../chunk-GYDFGEJ2.js";
241
- import "../chunk-ZVEEWGDK.js";
242
247
  import "../chunk-TXD5HXLE.js";
243
248
  import {
244
249
  attachmentPartKey
@@ -270,6 +275,7 @@ import {
270
275
  } from "../chunk-FCON65I2.js";
271
276
  import "../chunk-LQYIBL3G.js";
272
277
  export {
278
+ AGENT_PROFILE_EDITOR_SECTIONS,
273
279
  ATTACHMENT_ACCEPT,
274
280
  AgentActivityPanel,
275
281
  AgentProfileChoices,
@@ -311,6 +317,7 @@ export {
311
317
  ExceptionList,
312
318
  FlowWaterfall,
313
319
  HarnessGlyph,
320
+ HarnessPicker,
314
321
  INDEX_REFRESH_AFTER_MS,
315
322
  INTERACTION_CANCEL_EVENT,
316
323
  INTERACTION_EVENT,
@@ -383,6 +390,7 @@ export {
383
390
  effortMeterFill,
384
391
  fieldAcceptsFreeText,
385
392
  fieldAnswer,
393
+ fieldPickerTriggerClass,
386
394
  fieldValuesFromAnswers,
387
395
  fileMentionsToParts,
388
396
  filterAcceptedFiles,
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  WorkspaceInitial,
3
3
  WorkspaceSwitcher
4
- } from "../chunk-Y2TP52AB.js";
4
+ } from "../chunk-KSLVMA2D.js";
5
5
  import {
6
6
  ActionDialog,
7
7
  ActionDialogButton
8
- } from "../chunk-WN24GJ7A.js";
8
+ } from "../chunk-Q3BLSWYP.js";
9
9
  import {
10
10
  usePopoverDialog
11
- } from "../chunk-FZCXV4NH.js";
11
+ } from "../chunk-GEGCSRYQ.js";
12
12
  import {
13
13
  CheckGlyph,
14
14
  OVERLAY_SHADOW,
15
15
  PopoverSurface,
16
16
  usePopover
17
- } from "../chunk-SPLPFIWT.js";
17
+ } from "../chunk-OFQUM5FP.js";
18
18
  import {
19
19
  buildSessionNavItem,
20
20
  composeSidebarSessions,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-app",
3
- "version": "0.58.14",
3
+ "version": "0.58.16",
4
4
  "packageManager": "pnpm@11.24.0",
5
5
  "description": "Build agent applications with typed chat, tools, sandboxes, integrations, billing, and evaluation.",
6
6
  "keywords": [
@@ -115,6 +115,16 @@
115
115
  "import": "./dist/profile/index.js",
116
116
  "default": "./dist/profile/index.js"
117
117
  },
118
+ "./profile-editor": {
119
+ "types": "./dist/profile-editor/index.d.ts",
120
+ "import": "./dist/profile-editor/index.js",
121
+ "default": "./dist/profile-editor/index.js"
122
+ },
123
+ "./profile-editor/server": {
124
+ "types": "./dist/profile-editor/server.d.ts",
125
+ "import": "./dist/profile-editor/server.js",
126
+ "default": "./dist/profile-editor/server.js"
127
+ },
118
128
  "./agent-profiles": {
119
129
  "types": "./dist/agent-profiles/index.d.ts",
120
130
  "import": "./dist/agent-profiles/index.js",
@@ -1,7 +0,0 @@
1
- import {
2
- VaultPane
3
- } from "./chunk-DWUBICLW.js";
4
- export {
5
- VaultPane
6
- };
7
- //# sourceMappingURL=VaultPane-SPXE7XAC.js.map