@arbidocs/blocks 0.4.3 → 0.4.4
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/agents/definitions/AgentCreator.d.ts +11 -2
- package/dist/agents/definitions/index.d.ts +1 -0
- package/dist/agents/definitions/persona.d.ts +16 -0
- package/dist/agents/index.cjs +197 -145
- package/dist/agents/index.js +1 -1
- package/dist/agents/tasks/TaskRunsDialog.d.ts +15 -3
- package/dist/agents/tasks/index.d.ts +1 -0
- package/dist/agents/tasks/taskRequest.d.ts +61 -0
- package/dist/{chunk-TYZUCAT7.js → chunk-7YADKWZT.js} +43 -6
- package/dist/chunk-7YADKWZT.js.map +1 -0
- package/dist/{chunk-AAY5ASZD.js → chunk-BBEMPS6C.js} +166 -24
- package/dist/chunk-BBEMPS6C.js.map +1 -0
- package/dist/{chunk-VXOGANFJ.cjs → chunk-DGVKBOY5.cjs} +177 -22
- package/dist/chunk-DGVKBOY5.cjs.map +1 -0
- package/dist/{chunk-SYDHKKRZ.cjs → chunk-IZHWP6WQ.cjs} +47 -5
- package/dist/chunk-IZHWP6WQ.cjs.map +1 -0
- package/dist/collaboration/contacts/AddContactsParts.d.ts +9 -4
- package/dist/collaboration/contacts/index.d.ts +1 -0
- package/dist/collaboration/contacts/parseEmails.d.ts +26 -0
- package/dist/collaboration/index.cjs +51 -31
- package/dist/collaboration/index.js +1 -1
- package/dist/index.cjs +361 -289
- package/dist/index.js +4 -4
- package/dist/settings/index.cjs +1 -1
- package/dist/settings/index.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-AAY5ASZD.js.map +0 -1
- package/dist/chunk-SYDHKKRZ.cjs.map +0 -1
- package/dist/chunk-TYZUCAT7.js.map +0 -1
- package/dist/chunk-VXOGANFJ.cjs.map +0 -1
|
@@ -52,6 +52,8 @@ export interface AgentCreatorLabels {
|
|
|
52
52
|
workspaceAccess: string;
|
|
53
53
|
workspaceAccessHint: string;
|
|
54
54
|
workspaceAlready: string;
|
|
55
|
+
/** Accessible name of the revoke button next to an already-granted workspace. */
|
|
56
|
+
revokeWorkspace: (workspaceName: string) => string;
|
|
55
57
|
noWorkspacesToGrant: string;
|
|
56
58
|
name: string;
|
|
57
59
|
nameHint: string;
|
|
@@ -94,8 +96,15 @@ export interface AgentCreatorProps {
|
|
|
94
96
|
id: string;
|
|
95
97
|
name: string;
|
|
96
98
|
}>;
|
|
97
|
-
/**
|
|
99
|
+
/**
|
|
100
|
+
* Workspaces the agent can already read: shown ticked and fixed. Without `onRevokeWorkspace`
|
|
101
|
+
* they cannot be undone here; with it each gets a remove button.
|
|
102
|
+
*/
|
|
98
103
|
grantedWorkspaceIds?: string[];
|
|
104
|
+
/** Take back a granted workspace (the host revokes, then refreshes `grantedWorkspaceIds`). */
|
|
105
|
+
onRevokeWorkspace?: (workspaceId: string) => void;
|
|
106
|
+
/** The workspace whose revoke is in flight; its button is disabled. */
|
|
107
|
+
revokingWorkspaceId?: string;
|
|
99
108
|
/** One-click avatar (or anything that sits beside the name). */
|
|
100
109
|
avatar?: ReactNode | ((values: AgentCreatorValues) => ReactNode);
|
|
101
110
|
types?: AgentTypeOption<string>[];
|
|
@@ -115,4 +124,4 @@ export interface AgentCreatorProps {
|
|
|
115
124
|
* capabilities, a live sentence says what the agent can and cannot do, and the knobs (capability
|
|
116
125
|
* toggles, model, type, avatar, pickers) are folded under Advanced.
|
|
117
126
|
*/
|
|
118
|
-
export declare function AgentCreator({ open, onOpenChange, isEdit, agentName, capabilities, templates, models, workspaces, grantedWorkspaceIds, avatar, types, values: valuesProp, initialValues, onValuesChange, advanced, isSaving, onSubmit, labels, testId, }: AgentCreatorProps): import("react").JSX.Element;
|
|
127
|
+
export declare function AgentCreator({ open, onOpenChange, isEdit, agentName, capabilities, templates, models, workspaces, grantedWorkspaceIds, onRevokeWorkspace, revokingWorkspaceId, avatar, types, values: valuesProp, initialValues, onValuesChange, advanced, isSaving, onSubmit, labels, testId, }: AgentCreatorProps): import("react").JSX.Element;
|
|
@@ -2,3 +2,4 @@ export { AgentCard, DEFAULT_AGENT_CARD_LABELS, type AgentCardProps, type AgentCa
|
|
|
2
2
|
export { AgentGallery, DEFAULT_AGENT_GALLERY_LABELS, type AgentGalleryProps, type AgentGalleryLabels, type AgentGalleryTestIds, } from './AgentGallery';
|
|
3
3
|
export { CapabilityTile, CapabilityGrid, AgentTypeSelector, AgentAvatarField, DEFAULT_AGENT_TYPE_SELECTOR_LABELS, DEFAULT_AGENT_AVATAR_FIELD_LABELS, type AgentTypeSelectorLabels, type AgentAvatarFieldLabels, type AgentAvatarFieldTestIds, type CapabilityTileProps, type AgentTypeOption, type AgentTypeSelectorProps, type AgentAvatarFieldProps, } from './AgentEditorParts';
|
|
4
4
|
export { AgentCreator, DEFAULT_AGENT_CREATOR_LABELS, deriveAgentName, isValidAgentName, summarizeCapabilities, summarizeAgent, type AgentCreatorProps, type AgentCreatorLabels, type AgentCreatorValues, type AgentCapability, type AgentTemplate, } from './AgentCreator';
|
|
5
|
+
export { composePersona, stripPersonaPreamble, agentCreatorToConfigSection, agentConfigSectionToValues, } from './persona';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { AgentCreatorValues } from './AgentCreator';
|
|
2
|
+
/**
|
|
3
|
+
* The saved persona tells the agent its own name: "You are Reviewer, an AI agent. <description>".
|
|
4
|
+
* {@link stripPersonaPreamble} takes the preamble off again so the editor shows only what the user wrote.
|
|
5
|
+
*/
|
|
6
|
+
export declare function composePersona(name: string, description: string): string;
|
|
7
|
+
/** The description the user wrote, without the preamble {@link composePersona} adds. */
|
|
8
|
+
export declare function stripPersonaPreamble(persona: string): string;
|
|
9
|
+
/**
|
|
10
|
+
* The `Agents` config section an {@link AgentCreatorValues} form stands for: the persona, the model
|
|
11
|
+
* when one is picked, and one boolean per capability key. Pass it as `sections.Agents` to
|
|
12
|
+
* `useSaveAgentConfig` from `@arbidocs/react`.
|
|
13
|
+
*/
|
|
14
|
+
export declare function agentCreatorToConfigSection(values: Pick<AgentCreatorValues, 'name' | 'persona' | 'modelName' | 'capabilities'>, capabilityKeys: string[]): Record<string, unknown>;
|
|
15
|
+
/** The form values an existing agent's `Agents` config section opens as (edit mode). */
|
|
16
|
+
export declare function agentConfigSectionToValues(section: Record<string, unknown> | undefined, capabilityKeys: string[]): Pick<AgentCreatorValues, 'persona' | 'modelName' | 'capabilities'>;
|