@getcatalystiq/agent-plane-ui 0.1.19 → 0.1.20
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/agent-identity-tab-ETPM6LQN.js +2 -0
- package/dist/agent-identity-tab-F4MU2HP2.cjs +11 -0
- package/dist/chunk-CE2RHDPY.js +422 -0
- package/dist/chunk-CHJL4MZI.cjs +277 -0
- package/dist/chunk-L45SI32F.js +275 -0
- package/dist/chunk-VZ43ATC5.cjs +454 -0
- package/dist/{chunk-OOBDCC6Q.js → chunk-XFI227OB.js} +6 -48
- package/dist/{chunk-VBGYWQUF.cjs → chunk-XXF4U7WL.cjs} +15 -67
- package/dist/editor.cjs +26 -657
- package/dist/editor.js +7 -643
- package/dist/index.cjs +346 -380
- package/dist/index.d.cts +0 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.js +14 -47
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { Card, CardHeader, CardTitle, CardContent, useApi, Skeleton, FileTreeEditor } from './chunk-CE2RHDPY.js';
|
|
2
|
+
export { Card, CardContent, CardDescription, CardHeader, CardTitle, Skeleton, useApi } from './chunk-CE2RHDPY.js';
|
|
3
|
+
import { cn, Dialog, DialogContent, DialogHeader, DialogTitle, DialogBody, DialogFooter, Button, Badge, useNavigation, useAgentPlaneClient, DialogDescription, FormField, Input, supportsClaudeRunner, buttonVariants } from './chunk-XFI227OB.js';
|
|
4
|
+
export { AgentPlaneProvider, Badge, Button, Dialog, DialogBody, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, FormField, Input, badgeVariants, buttonVariants, cn, useAgentPlaneClient, useAuthError, useNavigation } from './chunk-XFI227OB.js';
|
|
3
5
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
4
6
|
import * as React from 'react';
|
|
5
7
|
import React__default, { lazy, useState, useCallback, useMemo, useRef, useEffect, Suspense } from 'react';
|
|
@@ -2432,10 +2434,8 @@ function AgentEditForm({ agent, onSaved }) {
|
|
|
2432
2434
|
const [maxTurns, setMaxTurns] = useState(agent.max_turns.toString());
|
|
2433
2435
|
const [maxBudget, setMaxBudget] = useState(agent.max_budget_usd.toString());
|
|
2434
2436
|
const [maxRuntime, setMaxRuntime] = useState(Math.floor(agent.max_runtime_seconds / 60).toString());
|
|
2435
|
-
const [soulMd, setSoulMd] = useState(agent.soul_md ?? "");
|
|
2436
|
-
const [identityMd, setIdentityMd] = useState(agent.identity_md ?? "");
|
|
2437
2437
|
const [saving, setSaving] = useState(false);
|
|
2438
|
-
const isDirty = name !== agent.name || description !== (agent.description ?? "") || model !== agent.model || runner !== (agent.runner ?? "") || permissionMode !== agent.permission_mode || maxTurns !== agent.max_turns.toString() || maxBudget !== agent.max_budget_usd.toString() || maxRuntime !== Math.floor(agent.max_runtime_seconds / 60).toString()
|
|
2438
|
+
const isDirty = name !== agent.name || description !== (agent.description ?? "") || model !== agent.model || runner !== (agent.runner ?? "") || permissionMode !== agent.permission_mode || maxTurns !== agent.max_turns.toString() || maxBudget !== agent.max_budget_usd.toString() || maxRuntime !== Math.floor(agent.max_runtime_seconds / 60).toString();
|
|
2439
2439
|
const [error, setError] = useState("");
|
|
2440
2440
|
async function handleSave() {
|
|
2441
2441
|
setSaving(true);
|
|
@@ -2449,9 +2449,7 @@ function AgentEditForm({ agent, onSaved }) {
|
|
|
2449
2449
|
permission_mode: permissionMode,
|
|
2450
2450
|
max_turns: parseInt(maxTurns) || agent.max_turns,
|
|
2451
2451
|
max_budget_usd: parseFloat(maxBudget) || agent.max_budget_usd,
|
|
2452
|
-
max_runtime_seconds: (parseInt(maxRuntime) || Math.floor(agent.max_runtime_seconds / 60)) * 60
|
|
2453
|
-
soul_md: soulMd || null,
|
|
2454
|
-
identity_md: identityMd || null
|
|
2452
|
+
max_runtime_seconds: (parseInt(maxRuntime) || Math.floor(agent.max_runtime_seconds / 60)) * 60
|
|
2455
2453
|
});
|
|
2456
2454
|
onSaved?.();
|
|
2457
2455
|
} catch (err) {
|
|
@@ -2512,42 +2510,6 @@ function AgentEditForm({ agent, onSaved }) {
|
|
|
2512
2510
|
/* @__PURE__ */ jsx("option", { value: "bypassPermissions", children: "bypassPermissions" }),
|
|
2513
2511
|
/* @__PURE__ */ jsx("option", { value: "plan", children: "plan" })
|
|
2514
2512
|
] }) }) })
|
|
2515
|
-
] }),
|
|
2516
|
-
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-4", children: [
|
|
2517
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(FormField, { label: "SOUL.md", children: [
|
|
2518
|
-
/* @__PURE__ */ jsx(
|
|
2519
|
-
Textarea,
|
|
2520
|
-
{
|
|
2521
|
-
value: soulMd,
|
|
2522
|
-
onChange: (e) => setSoulMd(e.target.value),
|
|
2523
|
-
placeholder: "## Voice & Tone\nDirect, concise, technical.\n\n## Values\nClarity over completeness.\n\n## Stance\nProactive problem-solver.\n\n## Boundaries\n- Never modify production data directly\n\n## Essence\nA focused engineering assistant.",
|
|
2524
|
-
rows: 10,
|
|
2525
|
-
className: "font-mono text-sm",
|
|
2526
|
-
disabled: saving
|
|
2527
|
-
}
|
|
2528
|
-
),
|
|
2529
|
-
/* @__PURE__ */ jsxs("span", { className: "text-xs text-muted-foreground mt-1 block", children: [
|
|
2530
|
-
soulMd.split(/\s+/).filter(Boolean).length,
|
|
2531
|
-
" words"
|
|
2532
|
-
] })
|
|
2533
|
-
] }) }),
|
|
2534
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(FormField, { label: "IDENTITY.md", children: [
|
|
2535
|
-
/* @__PURE__ */ jsx(
|
|
2536
|
-
Textarea,
|
|
2537
|
-
{
|
|
2538
|
-
value: identityMd,
|
|
2539
|
-
onChange: (e) => setIdentityMd(e.target.value),
|
|
2540
|
-
placeholder: "- **Communication Verbosity:** concise\n- **Communication Tone:** direct\n- **Decision Autonomy:** high\n- **Risk Tolerance:** moderate\n- **Collaboration Mode:** autonomous\n\n## Escalation Preferences\n- Budget over $50 -> escalate\n- Breaking changes -> escalate",
|
|
2541
|
-
rows: 10,
|
|
2542
|
-
className: "font-mono text-sm",
|
|
2543
|
-
disabled: saving
|
|
2544
|
-
}
|
|
2545
|
-
),
|
|
2546
|
-
/* @__PURE__ */ jsxs("span", { className: "text-xs text-muted-foreground mt-1 block", children: [
|
|
2547
|
-
identityMd.split(/\s+/).filter(Boolean).length,
|
|
2548
|
-
" words"
|
|
2549
|
-
] })
|
|
2550
|
-
] }) })
|
|
2551
2513
|
] })
|
|
2552
2514
|
] }) })
|
|
2553
2515
|
] });
|
|
@@ -3315,7 +3277,7 @@ function buildTree(files) {
|
|
|
3315
3277
|
if (existing) return existing;
|
|
3316
3278
|
const parts = dirPath.split("/");
|
|
3317
3279
|
const node = {
|
|
3318
|
-
name: parts[parts.length - 1],
|
|
3280
|
+
name: parts[parts.length - 1] ?? dirPath,
|
|
3319
3281
|
fullPath: dirPath,
|
|
3320
3282
|
children: [],
|
|
3321
3283
|
files: []
|
|
@@ -3365,7 +3327,7 @@ function collectAllDirPaths(nodes) {
|
|
|
3365
3327
|
nodes.forEach(walk);
|
|
3366
3328
|
return paths;
|
|
3367
3329
|
}
|
|
3368
|
-
function
|
|
3330
|
+
function FileTreeEditor2({
|
|
3369
3331
|
initialFiles,
|
|
3370
3332
|
onSave,
|
|
3371
3333
|
onChange,
|
|
@@ -3675,7 +3637,7 @@ function AgentSkillManager({ agentId, initialSkills, onSaved }) {
|
|
|
3675
3637
|
onSaved?.();
|
|
3676
3638
|
}, [agentId, client, onSaved]);
|
|
3677
3639
|
return /* @__PURE__ */ jsx(
|
|
3678
|
-
|
|
3640
|
+
FileTreeEditor2,
|
|
3679
3641
|
{
|
|
3680
3642
|
initialFiles,
|
|
3681
3643
|
onSave: handleSave,
|
|
@@ -4083,6 +4045,7 @@ function AgentA2aInfo({
|
|
|
4083
4045
|
] })
|
|
4084
4046
|
] });
|
|
4085
4047
|
}
|
|
4048
|
+
var AgentIdentityTab = lazy(() => import('./agent-identity-tab-ETPM6LQN.js').then((m) => ({ default: m.AgentIdentityTab })));
|
|
4086
4049
|
function AgentDetailPage({ agentId, a2aBaseUrl, tenantSlug }) {
|
|
4087
4050
|
const { LinkComponent, basePath } = useNavigation();
|
|
4088
4051
|
const { mutate } = useSWRConfig();
|
|
@@ -4152,6 +4115,10 @@ function AgentDetailPage({ agentId, a2aBaseUrl, tenantSlug }) {
|
|
|
4152
4115
|
)
|
|
4153
4116
|
] })
|
|
4154
4117
|
},
|
|
4118
|
+
{
|
|
4119
|
+
label: "Identity",
|
|
4120
|
+
content: /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Skeleton, { className: "h-64 w-full" }), children: /* @__PURE__ */ jsx(AgentIdentityTab, { agent, FileTreeEditor, onSaved: invalidate }) })
|
|
4121
|
+
},
|
|
4155
4122
|
{
|
|
4156
4123
|
label: "Connectors",
|
|
4157
4124
|
content: /* @__PURE__ */ jsx(
|