@dudko.dev/agent-web-react 0.0.20 → 0.0.21

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/index.js CHANGED
@@ -32,6 +32,13 @@ var addUsage = (a, b) => ({
32
32
  cachedInputTokens: (a.cachedInputTokens ?? 0) + (b.cachedInputTokens ?? 0),
33
33
  cacheWriteTokens: (a.cacheWriteTokens ?? 0) + (b.cacheWriteTokens ?? 0)
34
34
  });
35
+ var lessonsOf = (skills) => skills.filter((s) => s.origin?.kind === "learned").map((s) => ({
36
+ name: s.name,
37
+ description: s.description,
38
+ revision: s.origin?.revision ?? 1,
39
+ chars: s.content.length,
40
+ sources: [...s.origin?.sources ?? [], ...s.origin?.fetched ?? []]
41
+ }));
35
42
  var createInitialAgentState = () => ({
36
43
  status: "idle",
37
44
  goal: void 0,
@@ -49,6 +56,9 @@ var createInitialAgentState = () => ({
49
56
  notes: [],
50
57
  undelivered: [],
51
58
  skills: [],
59
+ learned: [],
60
+ learnedNow: [],
61
+ fetches: [],
52
62
  discoveredTools: [],
53
63
  compactions: [],
54
64
  budget: void 0,
@@ -66,7 +76,8 @@ var resetRun = (state) => ({
66
76
  status: state.status,
67
77
  messages: state.messages,
68
78
  totalUsage: state.totalUsage,
69
- seq: state.seq
79
+ seq: state.seq,
80
+ learned: state.learned
70
81
  });
71
82
  var patchStep = (steps, id, fn) => steps.map((s) => s.id === id ? fn(s) : s);
72
83
  var patchApproval = (approvals, id, fn) => approvals.map((a) => a.id === id ? fn(a) : a);
@@ -392,6 +403,38 @@ var applyEvent = (state, event, ctx) => {
392
403
  };
393
404
  case "skill.activated":
394
405
  return state.skills.includes(event.name) ? state : { ...state, skills: [...state.skills, event.name] };
406
+ case "skill.learned": {
407
+ const before = state.learned.find((l) => l.name === event.name);
408
+ const lesson = {
409
+ name: event.name,
410
+ description: event.description,
411
+ // A rewrite of a lesson we know goes up one; a lesson we never saw (an event for a store
412
+ // loaded before this view existed) starts at 2 when the core says it is an update.
413
+ revision: event.update ? (before?.revision ?? 1) + 1 : 1,
414
+ chars: event.chars,
415
+ sources: event.sources
416
+ };
417
+ return {
418
+ ...state,
419
+ learned: before ? state.learned.map((l) => l.name === event.name ? lesson : l) : [...state.learned, lesson],
420
+ learnedNow: state.learnedNow.includes(event.name) ? state.learnedNow : [...state.learnedNow, event.name]
421
+ };
422
+ }
423
+ case "skill.forgotten":
424
+ return { ...state, learned: state.learned.filter((l) => l.name !== event.name) };
425
+ case "egress.request":
426
+ return {
427
+ ...state,
428
+ fetches: [
429
+ ...state.fetches,
430
+ {
431
+ url: event.url,
432
+ allowed: event.allowed,
433
+ ...event.status !== void 0 ? { status: event.status } : {},
434
+ ...event.reason ? { reason: event.reason } : {}
435
+ }
436
+ ]
437
+ };
395
438
  case "tools.discovered":
396
439
  return {
397
440
  ...state,
@@ -451,6 +494,9 @@ var syncRunMessage = (state) => {
451
494
  if (m.usage !== state.usage) patch.usage = state.usage;
452
495
  if ((m.reasoning ?? "") !== state.finalReasoning) patch.reasoning = state.finalReasoning;
453
496
  if (m.skills !== state.skills) patch.skills = state.skills;
497
+ if (state.learnedNow.length > 0 && m.learned !== state.learnedNow)
498
+ patch.learned = state.learnedNow;
499
+ if (state.fetches.length > 0 && m.fetches !== state.fetches) patch.fetches = state.fetches;
454
500
  if ((m.approvals?.length ?? 0) !== decided.length || decided.some((a, k) => m.approvals?.[k] !== a)) {
455
501
  patch.approvals = decided;
456
502
  }
@@ -462,7 +508,14 @@ var syncRunMessage = (state) => {
462
508
  var agentStateReducer = (state, action) => {
463
509
  switch (action.type) {
464
510
  case "reset":
465
- return { ...createInitialAgentState(), status: state.status, seq: state.seq };
511
+ return {
512
+ ...createInitialAgentState(),
513
+ status: state.status,
514
+ seq: state.seq,
515
+ learned: state.learned
516
+ };
517
+ case "notebook":
518
+ return { ...state, learned: action.lessons };
466
519
  case "status":
467
520
  return {
468
521
  ...state,
@@ -489,7 +542,8 @@ var agentStateReducer = (state, action) => {
489
542
  status: state.status,
490
543
  messages: action.messages.map((m) => m.pending ? { ...m, pending: false } : m),
491
544
  totalUsage: action.totalUsage ?? emptyUsage(),
492
- seq: maxSeq
545
+ seq: maxSeq,
546
+ learned: state.learned
493
547
  };
494
548
  }
495
549
  default:
@@ -564,6 +618,7 @@ var useAgent = (config, options = {}) => {
564
618
  if (cancelled) return;
565
619
  agent.setToolApprovalMode(modeRef.current);
566
620
  agentRef.current = agent;
621
+ dispatch({ type: "notebook", lessons: lessonsOf(agent.listLearnedSkills()) });
567
622
  setBuildStatus({ status: "ready" });
568
623
  }).catch((err) => {
569
624
  if (cancelled) return;
@@ -674,6 +729,14 @@ var useAgent = (config, options = {}) => {
674
729
  },
675
730
  []
676
731
  );
732
+ const forgetSkill = useCallback(async (name) => {
733
+ const agent = agentRef.current;
734
+ if (!agent) return false;
735
+ return agent.forgetSkill(
736
+ name,
737
+ (event) => dispatch({ type: "event", event, maxEvents: optionsRef.current.maxEvents, at: Date.now() })
738
+ );
739
+ }, []);
677
740
  const approve = useCallback((id, opts) => {
678
741
  const resolve = resolversRef.current.get(id);
679
742
  if (!resolve) return;
@@ -711,6 +774,7 @@ var useAgent = (config, options = {}) => {
711
774
  stop,
712
775
  send,
713
776
  stopSubagent,
777
+ forgetSkill,
714
778
  sendUndelivered,
715
779
  discardUndelivered,
716
780
  reset,
@@ -1306,12 +1370,20 @@ var defaultLabels = {
1306
1370
  toolCalls: (n) => plural(n, "tool call", "tool calls"),
1307
1371
  subagents: (n) => plural(n, "subagent", "subagents"),
1308
1372
  skillsUsed: (names) => `skills: ${names}`,
1373
+ learnedNow: (names) => `learned: ${names}`,
1374
+ fetches: (n) => plural(n, "web request", "web requests"),
1375
+ fetchRefused: (reason) => `refused: ${reason}`,
1309
1376
  answerThoughts: "Thinking about the answer",
1310
1377
  stepThoughts: "Thoughts",
1311
1378
  usageTitle: "Tokens this answer spent, by kind",
1312
1379
  attachments: "Attachments",
1313
1380
  planned: "Plan",
1314
1381
  replanned: (mode, reason) => `Replanned (${mode}): ${reason}`,
1382
+ notebookTitle: "Notebook",
1383
+ notebookEmpty: "The agent has not written any lessons down yet.",
1384
+ notebookForget: "Forget",
1385
+ notebookRevision: (n) => `revision ${n}`,
1386
+ notebookFrom: "from",
1315
1387
  placeholder: "Ask the agent to do something\u2026 ( / for commands, Ctrl+V to paste an image )",
1316
1388
  listening: "Listening\u2026",
1317
1389
  message: "Message",
@@ -1565,6 +1637,14 @@ var HistoryIcon = ({ size, className }) => /* @__PURE__ */ jsxs("svg", { ...base
1565
1637
  /* @__PURE__ */ jsx3("path", { d: "M3 12a9 9 0 1 0 3-6.7L3 8" }),
1566
1638
  /* @__PURE__ */ jsx3("path", { d: "M3 3v5h5M12 7v5l3 2" })
1567
1639
  ] });
1640
+ var BookIcon = ({ size, className }) => /* @__PURE__ */ jsxs("svg", { ...base(size), className, children: [
1641
+ /* @__PURE__ */ jsx3("path", { d: "M4 5a2 2 0 0 1 2-2h13v16H6a2 2 0 0 0-2 2Z" }),
1642
+ /* @__PURE__ */ jsx3("path", { d: "M4 19V5M9 7h6" })
1643
+ ] });
1644
+ var GlobeIcon = ({ size, className }) => /* @__PURE__ */ jsxs("svg", { ...base(size), className, children: [
1645
+ /* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "9" }),
1646
+ /* @__PURE__ */ jsx3("path", { d: "M3 12h18M12 3c3 3.2 3 14.8 0 18M12 3c-3 3.2-3 14.8 0 18" })
1647
+ ] });
1568
1648
  var DownloadIcon = ({ size, className }) => /* @__PURE__ */ jsx3("svg", { ...base(size), className, children: /* @__PURE__ */ jsx3("path", { d: "M12 3v12m-5-5 5 5 5-5M5 21h14" }) });
1569
1649
 
1570
1650
  // src/components/AgentComposer.tsx
@@ -2826,12 +2906,14 @@ var AttachmentView = ({ attachment: a }) => a.dataUrl && a.mediaType.startsWith(
2826
2906
  a.name
2827
2907
  ] });
2828
2908
  var toolCallCount = (m) => (m.steps ?? []).reduce((n, s) => n + s.toolCalls.length, 0);
2829
- var activitySummary = (m, showToolCalls, L) => {
2909
+ var activitySummary = (m, showToolCalls, showLearned, L) => {
2830
2910
  const steps = m.steps ?? [];
2831
2911
  const parts = [L.steps(steps.length)];
2832
2912
  if (showToolCalls) parts.push(L.toolCalls(toolCallCount(m)));
2833
2913
  if (m.subagents?.length) parts.push(L.subagents(m.subagents.length));
2834
2914
  if (m.skills?.length) parts.push(L.skillsUsed(m.skills.join(", ")));
2915
+ if (showLearned && m.learned?.length) parts.push(L.learnedNow(m.learned.join(", ")));
2916
+ if (showLearned && m.fetches?.length) parts.push(L.fetches(m.fetches.length));
2835
2917
  return parts.join(" \xB7 ");
2836
2918
  };
2837
2919
  var MessageList = ({
@@ -2842,6 +2924,7 @@ var MessageList = ({
2842
2924
  showUsage = true,
2843
2925
  showThoughts = true,
2844
2926
  showNotes = true,
2927
+ showLearned = true,
2845
2928
  onStopSubagent,
2846
2929
  activityOpen = false,
2847
2930
  liveExtra,
@@ -2866,7 +2949,7 @@ var MessageList = ({
2866
2949
  className: `awr-msg awr-msg--${m.role}${m.error ? " awr-msg--error" : ""}${m.pending ? " is-pending" : ""}`,
2867
2950
  children: /* @__PURE__ */ jsxs7("div", { className: "awr-msg__col", children: [
2868
2951
  m.role === "assistant" && hasActivity && /* @__PURE__ */ jsxs7("details", { className: "awr-activity", open: m.pending || activityOpen, children: [
2869
- /* @__PURE__ */ jsx9("summary", { className: "awr-activity__summary", children: activitySummary(m, showToolCalls, L) }),
2952
+ /* @__PURE__ */ jsx9("summary", { className: "awr-activity__summary", children: activitySummary(m, showToolCalls, showLearned, L) }),
2870
2953
  m.pending && liveExtra,
2871
2954
  /* @__PURE__ */ jsx9(
2872
2955
  StepList,
@@ -2884,6 +2967,25 @@ var MessageList = ({
2884
2967
  labels
2885
2968
  }
2886
2969
  ),
2970
+ showLearned && m.fetches?.length ? /* @__PURE__ */ jsx9("ul", { className: "awr-fetches", children: m.fetches.map((f, i) => /* @__PURE__ */ jsxs7(
2971
+ "li",
2972
+ {
2973
+ className: `awr-fetch${f.allowed ? "" : " awr-fetch--refused"}`,
2974
+ children: [
2975
+ /* @__PURE__ */ jsx9(GlobeIcon, { size: 12 }),
2976
+ " ",
2977
+ /* @__PURE__ */ jsx9("code", { children: f.url }),
2978
+ " ",
2979
+ /* @__PURE__ */ jsx9("span", { className: "awr-fetch__result", children: f.allowed ? f.status ?? "ok" : L.fetchRefused(f.reason ?? "") })
2980
+ ]
2981
+ },
2982
+ i
2983
+ )) }) : null,
2984
+ showLearned && m.learned?.length ? /* @__PURE__ */ jsxs7("p", { className: "awr-learned", children: [
2985
+ /* @__PURE__ */ jsx9(BookIcon, { size: 12 }),
2986
+ " ",
2987
+ L.learnedNow(m.learned.join(", "))
2988
+ ] }) : null,
2887
2989
  showThoughts && m.reasoning?.trim() && /* @__PURE__ */ jsxs7("details", { className: "awr-thought", children: [
2888
2990
  /* @__PURE__ */ jsxs7("summary", { children: [
2889
2991
  /* @__PURE__ */ jsx9(BrainIcon, { size: 13 }),
@@ -3019,6 +3121,7 @@ var AgentChatInner = ({
3019
3121
  showUsage = true,
3020
3122
  showThoughts = true,
3021
3123
  showNotes = true,
3124
+ showLearned = true,
3022
3125
  stoppableSubagents = true,
3023
3126
  showTotalUsage = true,
3024
3127
  showStatus = true,
@@ -3203,6 +3306,7 @@ var AgentChatInner = ({
3203
3306
  showUsage,
3204
3307
  showThoughts,
3205
3308
  showNotes,
3309
+ showLearned,
3206
3310
  onStopSubagent: stoppableSubagents ? agent.stopSubagent : void 0,
3207
3311
  activityOpen,
3208
3312
  liveExtra,
@@ -3274,9 +3378,59 @@ var AgentChatInner = ({
3274
3378
  );
3275
3379
  };
3276
3380
 
3381
+ // src/components/LearnedSkills.tsx
3382
+ import { jsx as jsx13, jsxs as jsxs12 } from "react/jsx-runtime";
3383
+ var LearnedSkills = ({
3384
+ controller,
3385
+ lessons,
3386
+ onForget,
3387
+ showSources = true,
3388
+ empty,
3389
+ hideTitle = false,
3390
+ labels,
3391
+ className
3392
+ }) => {
3393
+ const L = useLabels(labels);
3394
+ const ctx = useOptionalAgentContext();
3395
+ const c = controller ?? ctx;
3396
+ const list = lessons ?? c?.learned ?? [];
3397
+ const forget = onForget === false ? void 0 : onForget ?? c?.forgetSkill;
3398
+ return /* @__PURE__ */ jsxs12("section", { className: ["awr-notebook", className].filter(Boolean).join(" "), children: [
3399
+ !hideTitle && /* @__PURE__ */ jsxs12("h3", { className: "awr-notebook__title", children: [
3400
+ /* @__PURE__ */ jsx13(BookIcon, { size: 14 }),
3401
+ " ",
3402
+ L.notebookTitle,
3403
+ list.length > 0 && /* @__PURE__ */ jsx13("span", { className: "awr-notebook__count", children: list.length })
3404
+ ] }),
3405
+ list.length === 0 ? /* @__PURE__ */ jsx13("p", { className: "awr-notebook__empty", children: empty ?? L.notebookEmpty }) : /* @__PURE__ */ jsx13("ul", { className: "awr-notebook__list", children: list.map((l) => /* @__PURE__ */ jsxs12("li", { className: "awr-lesson", children: [
3406
+ /* @__PURE__ */ jsxs12("div", { className: "awr-lesson__head", children: [
3407
+ /* @__PURE__ */ jsx13("code", { className: "awr-lesson__name", children: l.name }),
3408
+ l.revision > 1 && /* @__PURE__ */ jsx13("span", { className: "awr-lesson__rev", children: L.notebookRevision(l.revision) }),
3409
+ forget && /* @__PURE__ */ jsx13(
3410
+ "button",
3411
+ {
3412
+ type: "button",
3413
+ className: "awr-lesson__forget",
3414
+ title: `${L.notebookForget}: ${l.name}`,
3415
+ "aria-label": `${L.notebookForget}: ${l.name}`,
3416
+ onClick: () => void forget(l.name),
3417
+ children: /* @__PURE__ */ jsx13(XIcon, { size: 12 })
3418
+ }
3419
+ )
3420
+ ] }),
3421
+ /* @__PURE__ */ jsx13("p", { className: "awr-lesson__when", children: l.description }),
3422
+ showSources && l.sources.length > 0 && /* @__PURE__ */ jsxs12("p", { className: "awr-lesson__from", children: [
3423
+ L.notebookFrom,
3424
+ " ",
3425
+ l.sources.join(", ")
3426
+ ] })
3427
+ ] }, l.name)) })
3428
+ ] });
3429
+ };
3430
+
3277
3431
  // src/components/Composer.tsx
3278
3432
  import { useState as useState10 } from "react";
3279
- import { jsx as jsx13, jsxs as jsxs12 } from "react/jsx-runtime";
3433
+ import { jsx as jsx14, jsxs as jsxs13 } from "react/jsx-runtime";
3280
3434
  var Composer = ({
3281
3435
  onSubmit,
3282
3436
  busy = false,
@@ -3298,7 +3452,7 @@ var Composer = ({
3298
3452
  submit();
3299
3453
  }
3300
3454
  };
3301
- return /* @__PURE__ */ jsxs12(
3455
+ return /* @__PURE__ */ jsxs13(
3302
3456
  "form",
3303
3457
  {
3304
3458
  className: ["awr-composer", className].filter(Boolean).join(" "),
@@ -3307,7 +3461,7 @@ var Composer = ({
3307
3461
  submit();
3308
3462
  },
3309
3463
  children: [
3310
- /* @__PURE__ */ jsx13(
3464
+ /* @__PURE__ */ jsx14(
3311
3465
  "textarea",
3312
3466
  {
3313
3467
  className: "awr-composer__input",
@@ -3319,23 +3473,23 @@ var Composer = ({
3319
3473
  rows: 1
3320
3474
  }
3321
3475
  ),
3322
- busy ? /* @__PURE__ */ jsx13(
3476
+ busy ? /* @__PURE__ */ jsx14(
3323
3477
  "button",
3324
3478
  {
3325
3479
  type: "button",
3326
3480
  className: "awr-composer__btn awr-composer__btn--stop",
3327
3481
  onClick: onStop,
3328
3482
  "aria-label": "Stop",
3329
- children: /* @__PURE__ */ jsx13(StopIcon, { size: 18 })
3483
+ children: /* @__PURE__ */ jsx14(StopIcon, { size: 18 })
3330
3484
  }
3331
- ) : /* @__PURE__ */ jsx13(
3485
+ ) : /* @__PURE__ */ jsx14(
3332
3486
  "button",
3333
3487
  {
3334
3488
  type: "submit",
3335
3489
  className: "awr-composer__btn",
3336
3490
  disabled: disabled || !text.trim(),
3337
3491
  "aria-label": "Send",
3338
- children: disabled ? /* @__PURE__ */ jsx13(SpinnerIcon, { size: 18 }) : /* @__PURE__ */ jsx13(SendIcon, { size: 18 })
3492
+ children: disabled ? /* @__PURE__ */ jsx14(SpinnerIcon, { size: 18 }) : /* @__PURE__ */ jsx14(SendIcon, { size: 18 })
3339
3493
  }
3340
3494
  )
3341
3495
  ]
@@ -3344,17 +3498,17 @@ var Composer = ({
3344
3498
  };
3345
3499
 
3346
3500
  // src/components/PlanView.tsx
3347
- import { jsx as jsx14, jsxs as jsxs13 } from "react/jsx-runtime";
3501
+ import { jsx as jsx15, jsxs as jsxs14 } from "react/jsx-runtime";
3348
3502
  var PlanView = ({ plan, showThought = true, className }) => {
3349
3503
  if (!plan.steps.length && !plan.thought) return null;
3350
- return /* @__PURE__ */ jsxs13("div", { className: ["awr-plan", className].filter(Boolean).join(" "), children: [
3351
- showThought && plan.thought.trim() && /* @__PURE__ */ jsx14("p", { className: "awr-plan__thought", children: plan.thought }),
3352
- plan.steps.length > 0 && /* @__PURE__ */ jsx14("ol", { className: "awr-plan__steps", children: plan.steps.map((step) => /* @__PURE__ */ jsx14("li", { className: "awr-plan__step", children: step.description }, step.id)) })
3504
+ return /* @__PURE__ */ jsxs14("div", { className: ["awr-plan", className].filter(Boolean).join(" "), children: [
3505
+ showThought && plan.thought.trim() && /* @__PURE__ */ jsx15("p", { className: "awr-plan__thought", children: plan.thought }),
3506
+ plan.steps.length > 0 && /* @__PURE__ */ jsx15("ol", { className: "awr-plan__steps", children: plan.steps.map((step) => /* @__PURE__ */ jsx15("li", { className: "awr-plan__step", children: step.description }, step.id)) })
3353
3507
  ] });
3354
3508
  };
3355
3509
 
3356
3510
  // src/components/ApprovalModeSwitch.tsx
3357
- import { jsx as jsx15 } from "react/jsx-runtime";
3511
+ import { jsx as jsx16 } from "react/jsx-runtime";
3358
3512
  var DEFAULT_LABELS = {
3359
3513
  autopilot: "Autopilot",
3360
3514
  "ask-writes": "Ask before changes",
@@ -3374,13 +3528,13 @@ var ApprovalModeSwitch = ({
3374
3528
  labels,
3375
3529
  disabled,
3376
3530
  className
3377
- }) => /* @__PURE__ */ jsx15(
3531
+ }) => /* @__PURE__ */ jsx16(
3378
3532
  "div",
3379
3533
  {
3380
3534
  className: ["awr-modeswitch", className].filter(Boolean).join(" "),
3381
3535
  role: "radiogroup",
3382
3536
  "aria-label": "Tool consent",
3383
- children: modes.map((m) => /* @__PURE__ */ jsx15(
3537
+ children: modes.map((m) => /* @__PURE__ */ jsx16(
3384
3538
  "button",
3385
3539
  {
3386
3540
  type: "button",
@@ -3399,7 +3553,7 @@ var ApprovalModeSwitch = ({
3399
3553
 
3400
3554
  // src/components/ApiKeyForm.tsx
3401
3555
  import { useEffect as useEffect8, useState as useState11 } from "react";
3402
- import { jsx as jsx16, jsxs as jsxs14 } from "react/jsx-runtime";
3556
+ import { jsx as jsx17, jsxs as jsxs15 } from "react/jsx-runtime";
3403
3557
  var ApiKeyForm = ({
3404
3558
  credentials,
3405
3559
  credentialRef,
@@ -3443,16 +3597,16 @@ var ApiKeyForm = ({
3443
3597
  setBusy(false);
3444
3598
  }
3445
3599
  };
3446
- return /* @__PURE__ */ jsxs14("div", { className: ["awr-keyform", className].filter(Boolean).join(" "), children: [
3447
- /* @__PURE__ */ jsxs14("label", { className: "awr-keyform__label", children: [
3600
+ return /* @__PURE__ */ jsxs15("div", { className: ["awr-keyform", className].filter(Boolean).join(" "), children: [
3601
+ /* @__PURE__ */ jsxs15("label", { className: "awr-keyform__label", children: [
3448
3602
  label,
3449
- present && /* @__PURE__ */ jsxs14("span", { className: "awr-keyform__saved", children: [
3450
- /* @__PURE__ */ jsx16(CheckIcon, { size: 12 }),
3603
+ present && /* @__PURE__ */ jsxs15("span", { className: "awr-keyform__saved", children: [
3604
+ /* @__PURE__ */ jsx17(CheckIcon, { size: 12 }),
3451
3605
  " stored, encrypted"
3452
3606
  ] })
3453
3607
  ] }),
3454
- /* @__PURE__ */ jsxs14("div", { className: "awr-keyform__row", children: [
3455
- /* @__PURE__ */ jsx16(
3608
+ /* @__PURE__ */ jsxs15("div", { className: "awr-keyform__row", children: [
3609
+ /* @__PURE__ */ jsx17(
3456
3610
  "input",
3457
3611
  {
3458
3612
  className: "awr-keyform__input",
@@ -3470,7 +3624,7 @@ var ApiKeyForm = ({
3470
3624
  disabled: busy
3471
3625
  }
3472
3626
  ),
3473
- /* @__PURE__ */ jsx16(
3627
+ /* @__PURE__ */ jsx17(
3474
3628
  "button",
3475
3629
  {
3476
3630
  type: "button",
@@ -3480,7 +3634,7 @@ var ApiKeyForm = ({
3480
3634
  children: "Save"
3481
3635
  }
3482
3636
  ),
3483
- present && /* @__PURE__ */ jsx16(
3637
+ present && /* @__PURE__ */ jsx17(
3484
3638
  "button",
3485
3639
  {
3486
3640
  type: "button",
@@ -3515,6 +3669,8 @@ import {
3515
3669
  IndexedDBStore,
3516
3670
  VirtualFileSystem,
3517
3671
  createFileTools,
3672
+ MemorySkillStore,
3673
+ VfsSkillStore,
3518
3674
  AttachmentsNotSupportedError,
3519
3675
  ImagesNotSupportedError,
3520
3676
  supportsImages,
@@ -3536,7 +3692,9 @@ export {
3536
3692
  FilesPanel,
3537
3693
  ImagesNotSupportedError,
3538
3694
  IndexedDBStore,
3695
+ LearnedSkills,
3539
3696
  MemoryCredentialStore,
3697
+ MemorySkillStore,
3540
3698
  MemoryStore,
3541
3699
  MessageList,
3542
3700
  ModelLoadBar,
@@ -3548,6 +3706,7 @@ export {
3548
3706
  UsageBadge,
3549
3707
  UserNoteRow,
3550
3708
  VaultCredentialStore2 as VaultCredentialStore,
3709
+ VfsSkillStore,
3551
3710
  VirtualFileSystem,
3552
3711
  agentStateReducer,
3553
3712
  attachmentKindOf,
@@ -3567,6 +3726,7 @@ export {
3567
3726
  filterCommands,
3568
3727
  formatElapsed,
3569
3728
  isWebGPUAvailable2 as isWebGPUAvailable,
3729
+ lessonsOf,
3570
3730
  loadSkillFromUrl,
3571
3731
  markReadOnly,
3572
3732
  mergeLabels,