@debian777/kairos-mcp 4.2.1 → 4.2.2

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 (63) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/config.d.ts +7 -1
  3. package/dist/config.d.ts.map +1 -1
  4. package/dist/config.js +13 -3
  5. package/dist/config.js.map +1 -1
  6. package/dist/embed-docs/mem/00000000-0000-0000-0000-000000002001.md +8 -23
  7. package/dist/embed-docs/mem/00000000-0000-0000-0000-000000002002.md +1 -1
  8. package/dist/embed-docs/mem/00000000-0000-0000-0000-000000002003.md +1 -1
  9. package/dist/embed-docs/mem/00000000-0000-0000-0000-000000002004.md +3 -4
  10. package/dist/embed-docs/mem/00000000-0000-0000-0000-000000002005.md +1 -1
  11. package/dist/embed-docs/mem/00000000-0000-0000-0000-000000002006.md +176 -0
  12. package/dist/embed-docs/mem/README.md +1 -0
  13. package/dist/http/http-health-routes.d.ts.map +1 -1
  14. package/dist/http/http-health-routes.js +14 -11
  15. package/dist/http/http-health-routes.js.map +1 -1
  16. package/dist/http/http-well-known.d.ts.map +1 -1
  17. package/dist/http/http-well-known.js +23 -3
  18. package/dist/http/http-well-known.js.map +1 -1
  19. package/dist/http/oidc-scopes.d.ts +3 -0
  20. package/dist/http/oidc-scopes.d.ts.map +1 -0
  21. package/dist/http/oidc-scopes.js +20 -0
  22. package/dist/http/oidc-scopes.js.map +1 -0
  23. package/dist/resources/embedded-mcp-resources.d.ts +1 -0
  24. package/dist/resources/embedded-mcp-resources.d.ts.map +1 -1
  25. package/dist/resources/embedded-mcp-resources.js +6 -5
  26. package/dist/resources/embedded-mcp-resources.js.map +1 -1
  27. package/dist/services/key-value-store-factory.js +2 -2
  28. package/dist/tools/search.js +2 -2
  29. package/dist/ui/assets/AccountPage-BoA6v1P5.js +1 -0
  30. package/dist/ui/assets/{ChallengeCard-BzazsAvt.js → ChallengeCard-BZ5hfSjX.js} +1 -1
  31. package/dist/ui/assets/{ErrorAlert-7KMt7J_7.js → ErrorAlert-DMKZP8Bu.js} +1 -1
  32. package/dist/ui/assets/{HomePage-CwCNzSjT.js → HomePage-CRo8mNcK.js} +1 -1
  33. package/dist/ui/assets/{KairosPage-C5q5tqDm.js → KairosPage-Bib9zJu8.js} +1 -1
  34. package/dist/ui/assets/{NotFoundPage-SymCDZ6l.js → NotFoundPage-BAhX5b1F.js} +1 -1
  35. package/dist/ui/assets/{ProtocolDetailPage-BcPDemMk.js → ProtocolDetailPage-CSbv65eY.js} +1 -1
  36. package/dist/ui/assets/{ProtocolEditPage-CY0m0A6G.js → ProtocolEditPage-BgcnqEBN.js} +1 -1
  37. package/dist/ui/assets/{RichTextEditor-BbViqx11.js → RichTextEditor-DP6NpPMV.js} +1 -1
  38. package/dist/ui/assets/{RunGuidedPage-CiJMZoke.js → RunGuidedPage-NH4deGgN.js} +1 -1
  39. package/dist/ui/assets/{RunsPage-BJndRV4w.js → RunsPage-CtEX8sGc.js} +1 -1
  40. package/dist/ui/assets/{SkillBundlePage-Ckc-gVue.js → SkillBundlePage-Dqet-EFY.js} +1 -1
  41. package/dist/ui/assets/{SpaceSelect-cuRIuHIk.js → SpaceSelect-DIDjtkBC.js} +1 -1
  42. package/dist/ui/assets/{StepFlowGraph-DkyVvX6i.js → StepFlowGraph-DZzQ0AQV.js} +1 -1
  43. package/dist/ui/assets/{SurfaceCard-B5mLnSji.js → SurfaceCard-C0uBJPza.js} +1 -1
  44. package/dist/ui/assets/{index-CJz3Kamp.css → index-B_mJ0HIm.css} +1 -1
  45. package/dist/ui/assets/index-Da2yvncA.js +8 -0
  46. package/dist/ui/assets/{react-BL_LTrrN.js → react-nnqwRscp.js} +1 -1
  47. package/dist/ui/assets/rolldown-runtime-S-ySWqyJ.js +1 -0
  48. package/dist/ui/assets/{tiptap-DY8CGFJT.js → tiptap-CYcAvjOe.js} +29 -30
  49. package/dist/ui/assets/{useProtocol-BZSuhmnd.js → useProtocol-LcBAbyj-.js} +1 -1
  50. package/dist/ui/assets/{useRunSession-BnxZepqw.js → useRunSession-DnUNMlAi.js} +1 -1
  51. package/dist/ui/assets/vendor-uawy19jW.js +33 -0
  52. package/dist/ui/index.html +6 -7
  53. package/dist/utils/normalize-redis-url.d.ts +2 -0
  54. package/dist/utils/normalize-redis-url.d.ts.map +1 -0
  55. package/dist/utils/normalize-redis-url.js +18 -0
  56. package/dist/utils/normalize-redis-url.js.map +1 -0
  57. package/package.json +2 -2
  58. package/dist/ui/assets/AccountPage-Crmp73eW.js +0 -1
  59. package/dist/ui/assets/index-B-6o4FBH.js +0 -8
  60. package/dist/ui/assets/rolldown-runtime-Dw2cE7zH.js +0 -1
  61. package/dist/ui/assets/useThemePreference-BnOCATDn.js +0 -1
  62. package/dist/ui/assets/vendor-891xiZtj.js +0 -33
  63. /package/dist/ui/assets/{api-D_urPBLm.js → api-D88c6lbH.js} +0 -0
@@ -26,13 +26,12 @@
26
26
  root.style.colorScheme = theme;
27
27
  })();
28
28
  </script>
29
- <script type="module" crossorigin src="/ui/assets/index-B-6o4FBH.js"></script>
30
- <link rel="modulepreload" crossorigin href="/ui/assets/rolldown-runtime-Dw2cE7zH.js">
31
- <link rel="modulepreload" crossorigin href="/ui/assets/react-BL_LTrrN.js">
32
- <link rel="modulepreload" crossorigin href="/ui/assets/tiptap-DY8CGFJT.js">
33
- <link rel="modulepreload" crossorigin href="/ui/assets/vendor-891xiZtj.js">
34
- <link rel="modulepreload" crossorigin href="/ui/assets/useThemePreference-BnOCATDn.js">
35
- <link rel="stylesheet" crossorigin href="/ui/assets/index-CJz3Kamp.css">
29
+ <script type="module" crossorigin src="/ui/assets/index-Da2yvncA.js"></script>
30
+ <link rel="modulepreload" crossorigin href="/ui/assets/rolldown-runtime-S-ySWqyJ.js">
31
+ <link rel="modulepreload" crossorigin href="/ui/assets/react-nnqwRscp.js">
32
+ <link rel="modulepreload" crossorigin href="/ui/assets/tiptap-CYcAvjOe.js">
33
+ <link rel="modulepreload" crossorigin href="/ui/assets/vendor-uawy19jW.js">
34
+ <link rel="stylesheet" crossorigin href="/ui/assets/index-B_mJ0HIm.css">
36
35
  </head>
37
36
  <body>
38
37
  <div id="root"></div>
@@ -0,0 +1,2 @@
1
+ export declare function normalizeRedisUrl(rawUrl: string, rawPassword: string): string;
2
+ //# sourceMappingURL=normalize-redis-url.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalize-redis-url.d.ts","sourceRoot":"","sources":["../../src/utils/normalize-redis-url.ts"],"names":[],"mappings":"AAAA,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAc7E"}
@@ -0,0 +1,18 @@
1
+ export function normalizeRedisUrl(rawUrl, rawPassword) {
2
+ const url = rawUrl.trim();
3
+ const password = rawPassword.trim();
4
+ if (!url || !password)
5
+ return url;
6
+ try {
7
+ const parsed = new URL(url);
8
+ if ((parsed.protocol !== 'redis:' && parsed.protocol !== 'rediss:') || parsed.username || parsed.password) {
9
+ return url;
10
+ }
11
+ parsed.password = password;
12
+ return parsed.toString();
13
+ }
14
+ catch {
15
+ return url;
16
+ }
17
+ }
18
+ //# sourceMappingURL=normalize-redis-url.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalize-redis-url.js","sourceRoot":"","sources":["../../src/utils/normalize-redis-url.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,iBAAiB,CAAC,MAAc,EAAE,WAAmB;IACnE,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC;IAC1B,MAAM,QAAQ,GAAG,WAAW,CAAC,IAAI,EAAE,CAAC;IACpC,IAAI,CAAC,GAAG,IAAI,CAAC,QAAQ;QAAE,OAAO,GAAG,CAAC;IAClC,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC;QAC5B,IAAI,CAAC,MAAM,CAAC,QAAQ,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,KAAK,SAAS,CAAC,IAAI,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,QAAQ,EAAE,CAAC;YAC1G,OAAO,GAAG,CAAC;QACb,CAAC;QACD,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAC3B,OAAO,MAAM,CAAC,QAAQ,EAAE,CAAC;IAC3B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,GAAG,CAAC;IACb,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@debian777/kairos-mcp",
3
- "version": "4.2.1",
3
+ "version": "4.2.2",
4
4
  "description": "MCP server for agent automation: persistent memory and deterministic workflow execution for AI agents and chats",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -137,7 +137,7 @@
137
137
  "react-router-dom": "^7.4.0",
138
138
  "redis": "^5.11.0",
139
139
  "remark-gfm": "^4.0.1",
140
- "uuid": "^13.0.0",
140
+ "uuid": "^14.0.0",
141
141
  "zod": "^4.3.6"
142
142
  },
143
143
  "devDependencies": {
@@ -1 +0,0 @@
1
- import{g as e,y as t}from"./vendor-891xiZtj.js";import{t as n}from"./react-BL_LTrrN.js";import{i as r,n as i,r as a}from"./useThemePreference-BnOCATDn.js";import{t as o}from"./api-D_urPBLm.js";async function s(){let e=await o(`/api/me`);if(!e.ok){let t=await e.json().catch(()=>({})),n=Error(t.message??e.statusText);throw n.statusCode=e.status,n}return e.json()}function c(){return e({queryKey:[`me`],queryFn:s,retry:!1})}var l=n(),u={light:`account.themeOptionLight`,dark:`account.themeOptionDark`};function d(e){if(e.name&&e.name.trim().length>0)return e.name;let t=[e.given_name,e.family_name].filter(e=>typeof e==`string`&&e.trim().length>0);return t.length>0?t.join(` `):e.preferred_username&&e.preferred_username.length>0?e.preferred_username:e.sub}function f(){let{t:e}=t(),{data:n,isLoading:o,isError:s}=c(),{preference:f,setPreference:p}=r();return o?(0,l.jsx)(`p`,{className:`text-[var(--color-text-muted)]`,children:e(`account.loading`)}):s||!n?(0,l.jsxs)(`div`,{children:[(0,l.jsx)(`h1`,{className:`text-[var(--color-text-heading)] text-2xl font-semibold mb-4`,children:e(`account.title`)}),(0,l.jsx)(`p`,{className:`text-[var(--color-text-muted)]`,children:e(`account.notSignedIn`)}),(0,l.jsx)(`a`,{href:`/auth/callback`,className:`mt-4 min-h-[44px] min-w-[44px] inline-flex items-center justify-center px-4 py-2 rounded-[var(--radius-md)] font-medium bg-[var(--color-primary)] text-white no-underline hover:bg-[var(--color-primary-hover)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-[var(--color-focus-ring)] focus-visible:outline-offset-2`,children:e(`account.signIn`)})]}):(0,l.jsxs)(`div`,{children:[(0,l.jsx)(`h1`,{className:`text-[var(--color-text-heading)] text-2xl font-semibold mb-6`,children:e(`account.title`)}),(0,l.jsx)(`p`,{className:`text-[var(--color-text-muted)] mb-6`,children:e(`account.intro`)}),(0,l.jsxs)(`div`,{className:`rounded-[var(--radius-md)] border border-[var(--color-border)] bg-[var(--color-surface-elevated)] p-6`,children:[(0,l.jsxs)(`div`,{className:`mb-6 rounded-[var(--radius-md)] border border-[var(--color-border)] bg-[var(--color-surface)] p-4`,children:[(0,l.jsx)(`h2`,{className:`mb-1 text-base font-semibold text-[var(--color-text-heading)]`,children:e(`account.themeTitle`)}),(0,l.jsx)(`p`,{className:`mb-3 text-sm text-[var(--color-text-muted)]`,children:e(`account.themeDescription`)}),(0,l.jsx)(`label`,{htmlFor:`account-theme-preference`,className:`sr-only`,children:e(`account.themePreferenceLabel`)}),(0,l.jsxs)(`select`,{id:`account-theme-preference`,value:f,onChange:e=>{let t=e.target.value;a(t)&&p(t)},className:`min-h-[44px] w-full max-w-xs rounded-[var(--radius-md)] border border-[var(--color-border)] bg-[var(--color-surface)] px-3 py-2 text-[var(--color-text)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-[var(--color-focus-ring)] focus-visible:outline-offset-2`,children:[(0,l.jsx)(`option`,{value:`system`,children:e(`account.themeOptionSystem`)}),i.map(t=>(0,l.jsx)(`option`,{value:t,children:e(u[t])},t))]})]}),(0,l.jsxs)(`div`,{className:`mb-4`,children:[(0,l.jsx)(`span`,{className:`block text-xs uppercase tracking-wider text-[var(--color-text-muted)] mb-1`,children:e(`account.name`)}),(0,l.jsx)(`span`,{className:`text-[var(--color-text-heading)]`,children:d(n)})]}),n.preferred_username&&n.preferred_username!==d(n)&&(0,l.jsxs)(`div`,{className:`mb-4`,children:[(0,l.jsx)(`span`,{className:`block text-xs uppercase tracking-wider text-[var(--color-text-muted)] mb-1`,children:e(`account.username`)}),(0,l.jsx)(`span`,{className:`text-[var(--color-text-heading)]`,children:n.preferred_username})]}),n.email&&(0,l.jsxs)(`div`,{className:`mb-4`,children:[(0,l.jsx)(`span`,{className:`block text-xs uppercase tracking-wider text-[var(--color-text-muted)] mb-1`,children:e(`account.email`)}),(0,l.jsxs)(`span`,{className:`text-[var(--color-text-heading)]`,children:[n.email,n.email_verified===!0?` (${e(`account.emailVerified`)})`:``]})]}),(0,l.jsxs)(`div`,{className:`mb-4`,children:[(0,l.jsx)(`span`,{className:`block text-xs uppercase tracking-wider text-[var(--color-text-muted)] mb-1`,children:e(`account.accountType`)}),(0,l.jsx)(`span`,{className:`text-[var(--color-text-heading)]`,children:n.account_label})]}),(0,l.jsxs)(`div`,{className:`mb-4`,children:[(0,l.jsx)(`span`,{className:`block text-xs uppercase tracking-wider text-[var(--color-text-muted)] mb-1`,children:e(`account.realm`)}),(0,l.jsx)(`span`,{className:`text-[var(--color-text-heading)]`,children:n.realm})]}),n.identity_provider&&(0,l.jsxs)(`div`,{className:`mb-4`,children:[(0,l.jsx)(`span`,{className:`block text-xs uppercase tracking-wider text-[var(--color-text-muted)] mb-1`,children:e(`account.identityProvider`)}),(0,l.jsx)(`span`,{className:`text-[var(--color-text-heading)]`,children:n.identity_provider})]}),n.groups.length>0&&(0,l.jsxs)(`div`,{className:`mb-4`,children:[(0,l.jsx)(`span`,{className:`block text-xs uppercase tracking-wider text-[var(--color-text-muted)] mb-1`,children:e(`account.groups`)}),(0,l.jsx)(`ul`,{className:`list-disc list-inside text-[var(--color-text-heading)] space-y-1`,children:n.groups.map(e=>(0,l.jsx)(`li`,{children:e},e))})]}),(0,l.jsx)(`div`,{className:`mt-6 flex gap-2 flex-wrap`,children:(0,l.jsx)(`a`,{href:`/auth/logout`,className:`min-h-[44px] min-w-[44px] inline-flex items-center justify-center px-4 py-2 rounded-[var(--radius-md)] font-medium border border-[var(--color-border)] text-[var(--color-text)] bg-transparent no-underline hover:bg-[var(--color-surface-elevated)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-[var(--color-focus-ring)] focus-visible:outline-offset-2`,children:e(`account.logOut`)})})]})]})}export{f as AccountPage};
@@ -1,8 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/HomePage-CwCNzSjT.js","assets/vendor-891xiZtj.js","assets/rolldown-runtime-Dw2cE7zH.js","assets/tiptap-DY8CGFJT.js","assets/react-BL_LTrrN.js","assets/SpaceSelect-cuRIuHIk.js","assets/api-D_urPBLm.js","assets/SurfaceCard-B5mLnSji.js","assets/KairosPage-C5q5tqDm.js","assets/ErrorAlert-7KMt7J_7.js","assets/RunsPage-BJndRV4w.js","assets/useRunSession-BnxZepqw.js","assets/ProtocolEditPage-CY0m0A6G.js","assets/ChallengeCard-BzazsAvt.js","assets/RichTextEditor-BbViqx11.js","assets/useProtocol-BZSuhmnd.js","assets/RunGuidedPage-CiJMZoke.js","assets/StepFlowGraph-DkyVvX6i.js","assets/SkillBundlePage-Ckc-gVue.js","assets/ProtocolDetailPage-BcPDemMk.js","assets/AccountPage-Crmp73eW.js","assets/useThemePreference-BnOCATDn.js","assets/NotFoundPage-SymCDZ6l.js"])))=>i.map(i=>d[i]);
2
- import{r as e}from"./rolldown-runtime-Dw2cE7zH.js";import{_ as t,b as n,c as r,i,l as a,m as o,o as s,s as c,u as l,v as u,x as d,y as f}from"./vendor-891xiZtj.js";import{i as p,n as m,t as h}from"./react-BL_LTrrN.js";import{t as g}from"./useThemePreference-BnOCATDn.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})(),d.use(n).init({lng:`en`,fallbackLng:`en`,ns:[`translation`],defaultNS:`translation`,resources:{en:{translation:{"nav.home":`Home`,"nav.kairos":`Browse`,"nav.create":`Create`,"nav.runs":`Test Run`,"nav.account":`Account`,"layout.kairosVersion":`KAIROS v{{version}}`,skipToMain:`Skip to main content`,"home.title":`Home`,"home.tagline":`Start from a clear task: browse protocols, create a new workflow, or continue protocol testing.`,"home.findCardTitle":`Find the right protocol`,"home.findCardSubtitle":`Home stays lightweight. Search and deeper discovery live in Browse.`,"home.goToBrowse":`Go to Browse`,"home.cardBrowseTitle":`Browse protocols`,"home.cardBrowseSubtitle":`Search or browse by label.`,"home.cardBrowseCta":`Open Browse`,"home.cardCreateTitle":`Create protocol`,"home.cardCreateSubtitle":`Use the rendered editor to draft a new workflow.`,"home.cardCreateCta":`Create new`,"home.cardRunsTitle":`Test Run`,"home.cardRunsSubtitle":`Resume a saved test run from this device.`,"home.cardRunsCta":`Open Test Run`,"home.spacesHeading":`Spaces`,"home.searchLabel":`Search protocols`,"home.searchPlaceholder":`e.g. deploy and test`,"home.searchHint":`Enter a query to find the best matching protocol. Results open in Browse.`,"home.statsLabel":`Space and protocol counts`,"home.stats.personalProtocols":`—`,"home.stats.personalProtocolsLabel":`Personal protocols`,"home.stats.kairosApp":`—`,"home.stats.kairosAppLabel":`Kairos app`,"home.stats.spaces":`—`,"home.stats.spacesLabel":`Spaces`,"home.stats.protocolCount":`{{count}} protocol`,"home.stats.protocolCount_plural":`{{count}} protocols`,"home.ctaPre":`Search and manage protocols in`,"home.ctaSuffix":`.`,"kairos.title":`Browse`,"kairos.searchLabel":`Activation query`,"kairos.searchPlaceholder":`e.g. deploy and test`,"kairos.searchHint":`Search or browse by label. The default view lists protocols by their label.`,"kairos.searchHintShort":`Run an activation query to rank the best matches, or browse the list below.`,"kairos.browseByLabel":`Browse by label`,"kairos.browseByLetterHint":`Click a letter to list protocols whose title starts with that letter (A–Z).`,"kairos.letterCount":`Letter {{letter}}, {{count}} protocols`,"kairos.labelsStartingWith":`Labels starting with {{letter}}`,"kairos.noLabelsForLetter":`No protocols starting with this letter.`,"kairos.browseFlatListHint":`Protocols listed by label. This is the default view when you open Browse.`,"kairos.browseEmpty":`No protocols found in your spaces yet.`,"kairos.enterQueryHint":`Enter an activation query above to find the best matching protocol. Results appear below.`,"spaces.filterAll":`All spaces`,"spaces.type.personal":`Personal`,"spaces.type.group":`Group`,"spaces.type.app":`App`,"spaces.type.other":`Other`,"kairos.scopeSpaceLabel":`Limit search to a space`,"kairos.spaceLabel":`Space`,"kairos.search":`Activate`,"kairos.loading":`Activating…`,"kairos.empty":`No matching protocols found`,"kairos.foundMatches":`Found {{count}} activation choices (top confidence: {{top}}%). View one, refine the query, or create a new protocol.`,"kairos.resultsLabel":`Activation results`,"kairos.score":`Score`,"kairos.version":`Version`,"kairos.tagsLabel":`Tags`,"kairos.refineMeta":`Refine query`,"kairos.createMeta":`Start from scratch`,"kairos.view":`View`,"kairos.viewProtocol":`View {{title}}`,"kairos.refineSearch":`Refine query`,"kairos.createNew":`Create new`,"protocol.loading":`Loading protocol…`,"protocol.notFound":`Protocol not found`,"protocol.uri":`URI`,"protocol.spaceLabel":`Space`,"protocol.readOnly":`Read-only`,"protocol.copyUri":`Copy URI`,"protocol.download":`Download`,"protocol.downloadAsMarkdown":`Download as Markdown`,"protocol.downloadAsSkill":`Download as Skill`,"protocol.editAsSkill":`Edit as Skill`,"protocol.expand":`Expand`,"protocol.collapse":`Collapse`,"protocol.edit":`Edit`,"protocol.duplicate":`Duplicate`,"protocol.runGuided":`Test Run`,"protocol.steps":`Steps`,"protocol.stepFlow":`Step flow`,"protocol.exportCardTitle":`Export`,"protocol.exportCardSubtitle":`Clear language replaces internal dump terminology.`,"protocol.exportFooter":`Skill export prepares a portable bundle for external AI tools.`,"protocol.triggers":`Activation patterns`,"protocol.completion":`Reward signal`,"protocol.howToUse":`How to use this protocol`,"protocol.howToUseInProduct":`The public UI helps people read, edit, export, and manually test protocol steps. Live AI execution still happens through MCP or CLI tooling.`,"protocol.howToUseCopy":`Use Test Run from the button above to step through this protocol in the browser. For agents or CLI, use Cursor (MCP) or the command line. See`,"protocol.docsLink":`documentation`,"runs.title":`Test Run`,"runs.subtitle":`Continue a test run you started earlier on this device.`,"runs.empty":`No runs yet.`,"runs.listLabel":`Test Run list`,"runs.status":`Status`,"runs.updated":`Updated`,"runs.stepsDone":`{{count}} steps completed`,"runs.resume":`Resume`,"runs.remove":`Remove`,"run.title":`Test Run`,"run.guidedIntro":`Step through the saved run in the browser and submit the same data the current run flow expects.`,"run.progressHeading":`Progress`,"run.currentStepHeading":`Current step`,"run.challengeHeading":`Challenge`,"run.stepProgress":`Step {{current}} of {{total}}`,"run.sessionBadge":`Active manual test session`,"run.flowStepN":`{{n}}`,"run.copyShellCommand":`Copy command`,"run.adapterUri":`Adapter URI`,"run.backToProtocol":`Back to adapter`,"run.start":`Start run`,"run.starting":`Starting…`,"run.safety.title":`Safe by default`,"run.safety.copy":`This guided run never executes shell commands in your browser. For shell challenges, run the command yourself and paste the real results.`,"run.serverMessage":`Server message`,"run.currentLayer":`Current layer`,"run.layerUri":`Layer URI`,"run.noLayerContent":`(No layer content)`,"run.contract":`Contract`,"run.contractType":`Type`,"run.advanced":`Advanced`,"run.nonce":`Nonce`,"run.proofHash":`Challenge proof_hash`,"run.previousProofHash":`Previous proof_hash`,"run.copy":`Copy`,"run.copied":`Copied`,"run.solution":`Solution`,"run.solutionFormLabel":`Submit solution`,"run.submitStep":`Submit step`,"run.shell.command":`Command`,"run.shell.invocation":`Invocation`,"run.shell.exitCode":`Exit code`,"run.shell.stdout":`Stdout`,"run.shell.stderr":`Stderr`,"run.mcp.toolName":`Tool`,"run.mcp.toolMissing":`(Missing tool name)`,"run.mcp.success":`Success`,"run.mcp.arguments":`Arguments (JSON)`,"run.mcp.result":`Result (JSON)`,"run.userInput.prompt":`Prompt`,"run.userInput.promptMissing":`(Missing prompt)`,"run.userInput.confirmation":`User confirmation`,"run.comment.minLength":`Minimum {{count}} characters`,"run.comment.count":`{{count}} typed`,"run.comment.text":`Comment`,"run.reward.title":`Reward completion`,"run.reward.subtitle":`Finalize the run outcome for reward and export quality.`,"run.reward.outcomeLabel":`Outcome`,"run.reward.success":`Success`,"run.reward.failure":`Failure`,"run.reward.feedback":`Feedback`,"run.reward.submit":`Submit reward`,"run.reward.submitting":`Submitting…`,"run.reward.defaultFeedback":`Completed guided run.`,"run.stepperProgress":`{{completed}} step(s) completed`,"run.history":`History`,"run.historyLabel":`Run history`,"run.completed":`Run completed`,"run.missingUri":`Missing adapter URI.`,"protocolEdit.newTitle":`New protocol`,"protocolEdit.editTitle":`Edit protocol`,"protocolEdit.hint":`Write as a human. The editor renders text on input and output while keeping the saved format compatible with generic Markdown.`,"protocolEdit.stepHeading":`Step {{n}}`,"protocolEdit.stepEditorHint":`Human-friendly editor with Markdown-safe formatting.`,"protocolEdit.triggersEditorHint":`Shown to humans as rendered text and serialized as Markdown-compatible content.`,"protocolEdit.previewRenderedTitle":`Rendered preview`,"protocolEdit.previewRenderedSubtitle":`Reading flow is fully rendered. Editing keeps a Markdown-safe rich text surface and this card previews section structure.`,"protocolEdit.previewStepLine":`Step {{n}}: {{label}}`,"protocolEdit.skillShortcutTitle":`Skill bundle shortcut`,"protocolEdit.skillShortcutSubtitle":`Authors can turn a protocol into a reusable skill bundle without learning repo-internal file names.`,"protocolEdit.formLabel":`Protocol form`,"protocolEdit.protocolLabel":`Protocol label`,"protocolEdit.triggersLabel":`Activation patterns`,"protocolEdit.triggersHint":`Describe when this protocol should run (e.g. deploy and test).`,"protocolEdit.stepLabel":`Step label`,"protocolEdit.stepContent":`Step content`,"protocolEdit.challengeType":`Challenge type`,"protocolEdit.addStep":`Add step`,"protocolEdit.removeStep":`Remove step`,"protocolEdit.completionLabel":`Reward signal`,"protocolEdit.challengeShell":`Shell command`,"protocolEdit.challengeMcp":`MCP tool call`,"protocolEdit.challengeUserInput":`User input`,"protocolEdit.challengeComment":`Comment`,"protocolEdit.shellCmd":`Command`,"protocolEdit.shellTimeout":`Timeout (seconds)`,"protocolEdit.shellInterpreter":`Interpreter (optional)`,"protocolEdit.shellFlags":`Flags (one per line, optional)`,"protocolEdit.shellArgs":`Args (one per line, optional)`,"protocolEdit.shellWorkdir":`Workdir (optional)`,"protocolEdit.mcpToolName":`Tool name`,"protocolEdit.userInputPrompt":`Prompt`,"protocolEdit.commentMinLength":`Minimum length (characters)`,"protocolEdit.importCardTitle":`Import existing content`,"protocolEdit.uploadHint":"Uploading a `.md` file fills this editor form. It does not publish or overwrite anything until you save.","protocolEdit.contentLabel":`Protocol content (markdown)`,"protocolEdit.previewLabel":`Protocol preview`,"protocolEdit.previewTitle":`Live preview`,"protocolEdit.previewSteps":`Steps`,"protocolEdit.previewNoSteps":`No steps yet.`,"protocolEdit.previewSections":`Key sections`,"protocolEdit.present":`present`,"protocolEdit.missing":`missing`,"protocolEdit.insertTemplate":`Insert template`,"protocolEdit.upload":`Upload .md file`,"skill.title":`Edit as Skill`,"skill.subtitle":`Prepare a skill bundle for external AI tools before downloading the zip. Protocol content stays connected to the original workflow.`,"skill.bundleContentsTitle":`Bundle contents`,"skill.bundleContentsSubtitle":`Optional protocol references can be included in a dedicated folder.`,"skill.chipReadme":`Include README snippet`,"skill.chipPrompts":`Include example prompts`,"skill.comingSoon":`Coming soon`,"skill.bundlePreviewTitle":`Bundle preview`,"skill.bundlePreviewSubtitle":`Zip root contains the skill folder so users can upload it directly.`,"skill.whyExportTitle":`Why this export exists`,"skill.whyExportSubtitle":`The bundle is for human-friendly reuse, not an internal raw dump.`,"skill.whyExportBody":`Authors can package a protocol as a portable skill with polished naming and usage guidance, then download the final zip in one step.`,"skill.skillName":`Skill name`,"skill.description":`Skill description`,"skill.descriptionHint":`Describe what the skill does and when an AI assistant should use it.`,"skill.whenToUse":`When to use it`,"skill.includeReferences":`Include references folder`,"skill.downloadAsSkill":`Download as Skill`,"skill.backToProtocol":`Back to protocol`,"protocolEdit.placeholder":`# Protocol title
3
-
4
- ## Activation Patterns
5
- ...
6
-
7
- ## Step 1
8
- ...`,"protocolEdit.contentHint":`Include: Activation Patterns (first H2), steps (H2 + optional challenge block), Reward Signal (last H2).`,"protocolEdit.targetSpaceLabel":`Save to space`,"protocolEdit.targetSpaceHint":`New protocols are stored in the space you pick (default: Personal).`,"protocolEdit.forkSourceLabel":`Fork from adapter (optional)`,"protocolEdit.forkSourcePlaceholder":`kairos://adapter/{uuid}`,"protocolEdit.forkSourceHint":`Leave empty for a brand-new protocol, or paste an adapter URI to copy its markdown into the target space as a new adapter.`,"protocolEdit.forkUriInvalid":`Fork source must be a kairos://adapter/{uuid} URI.`,"protocolEdit.moveSpaceLabel":`Space for this protocol`,"protocolEdit.moveSpaceHint":`Change the space and save to move every layer to the selected space (same as tune with a space parameter).`,"protocolEdit.save":`Save`,"protocolEdit.saving":`Saving…`,"protocolEdit.cancel":`Cancel`,"account.title":`Account`,"account.intro":`You are signed in. Sign out below or use the options to manage your profile.`,"account.loading":`Loading…`,"account.notSignedIn":`You are not signed in.`,"account.signIn":`Sign in`,"account.name":`Name`,"account.username":`Username`,"account.email":`Email`,"account.emailVerified":`verified`,"account.accountType":`Account type`,"account.realm":`Realm`,"account.identityProvider":`Login provider`,"account.groups":`Groups`,"account.themeTitle":`Theme`,"account.themeDescription":`Choose how KAIROS UI appearance should be rendered.`,"account.themePreferenceLabel":`Theme preference`,"account.themeOptionLight":`Light`,"account.themeOptionDark":`Dark`,"account.themeOptionSystem":`Match system`,"account.logOut":`Log out`,"notFound.title":`Page not found`,"notFound.message":`The page you requested could not be found.`,"notFound.goHome":`Go to Home`,"error.title":`Something went wrong`,"error.retry":`Retry`,"error.goBack":`Go to Home`,"error.support":`Support`}}},interpolation:{escapeValue:!1}});var _=e(p(),1),v=m(),y=`/ui/assets/kairos-mcp-DNiKVgiO.svg`,b=h(),x=e=>e.startsWith(`/protocols`)||e.startsWith(`/runs`);function S(){let{t:e}=f(),t=l().pathname,n=({isActive:e})=>`min-h-[var(--layout-touch-target)] flex items-center px-4 py-3 text-[var(--color-text)] no-underline border-l-[3px] border-transparent outline-offset-2 focus-visible:outline focus-visible:outline-2 focus-visible:outline-[var(--color-focus-ring)] hover:bg-[var(--color-surface)] hover:text-[var(--color-text-heading)] ${e?`font-semibold text-[var(--color-primary)] border-l-[var(--color-primary)] bg-[var(--color-surface)]`:``}`,r=x(t)?`min(100%, var(--layout-main-max), var(--layout-main-wide))`:`min(100%, var(--layout-main-max), var(--layout-main-narrow))`;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(`a`,{href:`#main`,className:`skip-link`,children:e(`skipToMain`)}),(0,b.jsxs)(`div`,{className:`flex min-h-screen`,children:[(0,b.jsxs)(`aside`,{className:`flex min-h-screen w-[var(--layout-sidebar-width)] flex-shrink-0 flex-col border-r border-[var(--color-border)] bg-[var(--color-surface-elevated)] py-4`,"aria-label":`Main navigation`,children:[(0,b.jsx)(`div`,{className:`px-4 pb-4`,children:(0,b.jsxs)(s,{to:`/`,end:!0,className:`flex min-h-[var(--layout-touch-target)] min-w-[var(--layout-touch-target)] items-center gap-3 rounded-md outline-offset-2 focus-visible:outline focus-visible:outline-2 focus-visible:outline-[var(--color-focus-ring)]`,children:[(0,b.jsx)(`img`,{src:y,alt:``,className:`h-10 w-10 flex-shrink-0 rounded-lg object-contain`,width:`40`,height:`40`}),(0,b.jsxs)(`span`,{className:`flex flex-col leading-tight`,children:[(0,b.jsx)(`span`,{className:`font-bold text-[var(--color-text-heading)] text-lg`,children:`Kairos`}),(0,b.jsx)(`span`,{className:`font-bold text-[var(--color-text-muted)] text-xs uppercase tracking-wide`,children:`MCP`})]})]})}),(0,b.jsxs)(`nav`,{className:`flex min-h-0 flex-1 flex-col gap-0.5`,children:[(0,b.jsx)(s,{to:`/`,end:!0,"aria-current":t===`/`?`page`:void 0,className:n,children:e(`nav.home`)}),(0,b.jsx)(s,{to:`/kairos`,"aria-current":t===`/kairos`?`page`:void 0,className:n,children:e(`nav.kairos`)}),(0,b.jsx)(s,{to:`/protocols/new`,"aria-current":t===`/protocols/new`?`page`:void 0,className:n,children:e(`nav.create`)}),(0,b.jsx)(s,{to:`/runs`,"aria-current":t===`/runs`?`page`:void 0,className:n,children:e(`nav.runs`)}),(0,b.jsx)(s,{to:`/account`,"aria-current":t===`/account`?`page`:void 0,className:n,children:e(`nav.account`)})]}),(0,b.jsx)(`div`,{className:`mt-auto border-t border-[var(--color-border)] px-4 pt-3`,children:(0,b.jsx)(`p`,{className:`m-0 text-xs text-[var(--color-text-muted)]`,children:e(`layout.kairosVersion`,{version:`4.2.1`})})})]}),(0,b.jsx)(`main`,{id:`main`,className:`flex-1 mx-auto w-full py-[var(--layout-main-padding-y)] px-[var(--layout-main-padding-x)]`,style:{maxWidth:r},tabIndex:-1,children:(0,b.jsx)(c,{})})]})]})}var C=(0,_.lazy)(()=>o(()=>import(`./HomePage-CwCNzSjT.js`).then(e=>({default:e.HomePage})),__vite__mapDeps([0,1,2,3,4,5,6,7]))),w=(0,_.lazy)(()=>o(()=>import(`./KairosPage-C5q5tqDm.js`).then(e=>({default:e.KairosPage})),__vite__mapDeps([8,2,1,3,4,9,5,6]))),T=(0,_.lazy)(()=>o(()=>import(`./RunsPage-BJndRV4w.js`).then(e=>({default:e.RunsPage})),__vite__mapDeps([10,1,2,3,4,11]))),E=(0,_.lazy)(()=>o(()=>import(`./ProtocolEditPage-CY0m0A6G.js`).then(e=>({default:e.ProtocolEditPage})),__vite__mapDeps([12,2,1,3,4,13,14,5,6,7,15]))),D=(0,_.lazy)(()=>o(()=>import(`./RunGuidedPage-CiJMZoke.js`).then(e=>({default:e.RunGuidedPage})),__vite__mapDeps([16,2,1,3,4,13,9,17,7,11,6]))),O=(0,_.lazy)(()=>o(()=>import(`./SkillBundlePage-Ckc-gVue.js`).then(e=>({default:e.SkillBundlePage})),__vite__mapDeps([18,2,1,3,4,14,7,15,6]))),k=(0,_.lazy)(()=>o(()=>import(`./ProtocolDetailPage-BcPDemMk.js`).then(e=>({default:e.ProtocolDetailPage})),__vite__mapDeps([19,2,1,3,4,13,17,7,15,6]))),A=(0,_.lazy)(()=>o(()=>import(`./AccountPage-Crmp73eW.js`).then(e=>({default:e.AccountPage})),__vite__mapDeps([20,1,2,3,4,21,6]))),j=(0,_.lazy)(()=>o(()=>import(`./NotFoundPage-SymCDZ6l.js`).then(e=>({default:e.NotFoundPage})),__vite__mapDeps([22,1,2,3,4,9])));function M(){return(0,b.jsx)(`div`,{className:`flex min-h-[12rem] items-center justify-center text-[var(--color-text-muted)]`,"aria-busy":`true`,children:`Loading…`})}function N(){return(0,b.jsx)(a,{children:(0,b.jsxs)(r,{path:`/`,element:(0,b.jsx)(S,{}),children:[(0,b.jsx)(r,{index:!0,element:(0,b.jsx)(_.Suspense,{fallback:(0,b.jsx)(M,{}),children:(0,b.jsx)(C,{})})}),(0,b.jsx)(r,{path:`kairos`,element:(0,b.jsx)(_.Suspense,{fallback:(0,b.jsx)(M,{}),children:(0,b.jsx)(w,{})})}),(0,b.jsx)(r,{path:`runs`,element:(0,b.jsx)(_.Suspense,{fallback:(0,b.jsx)(M,{}),children:(0,b.jsx)(T,{})})}),(0,b.jsx)(r,{path:`protocols/new`,element:(0,b.jsx)(_.Suspense,{fallback:(0,b.jsx)(M,{}),children:(0,b.jsx)(E,{})})}),(0,b.jsx)(r,{path:`protocols/:uri/edit`,element:(0,b.jsx)(_.Suspense,{fallback:(0,b.jsx)(M,{}),children:(0,b.jsx)(E,{})})}),(0,b.jsx)(r,{path:`protocols/:uri/run`,element:(0,b.jsx)(_.Suspense,{fallback:(0,b.jsx)(M,{}),children:(0,b.jsx)(D,{})})}),(0,b.jsx)(r,{path:`protocols/:uri/skill`,element:(0,b.jsx)(_.Suspense,{fallback:(0,b.jsx)(M,{}),children:(0,b.jsx)(O,{})})}),(0,b.jsx)(r,{path:`protocols/:uri`,element:(0,b.jsx)(_.Suspense,{fallback:(0,b.jsx)(M,{}),children:(0,b.jsx)(k,{})})}),(0,b.jsx)(r,{path:`account`,element:(0,b.jsx)(_.Suspense,{fallback:(0,b.jsx)(M,{}),children:(0,b.jsx)(A,{})})}),(0,b.jsx)(r,{path:`*`,element:(0,b.jsx)(_.Suspense,{fallback:(0,b.jsx)(M,{}),children:(0,b.jsx)(j,{})})})]})})}function P(){return(0,b.jsx)(i,{basename:`/ui`,children:(0,b.jsx)(N,{})})}var F=new u;(0,v.createRoot)(document.getElementById(`root`)).render((0,b.jsx)(_.StrictMode,{children:(0,b.jsx)(t,{client:F,children:(0,b.jsx)(g,{children:(0,b.jsx)(P,{})})})}));
@@ -1 +0,0 @@
1
- var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));export{s as n,l as r,o as t};
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-Dw2cE7zH.js";import{i as t,t as n}from"./react-BL_LTrrN.js";var r=e(t(),1),i=n(),a=[`light`,`dark`],o=`kairos:ui:theme-preference`,s=`(prefers-color-scheme: dark)`,c=`system`;function l(e){return e===null?!1:e===`system`?!0:a.includes(e)}function u(e,t){return e===`system`?t?`dark`:`light`:e}function d(){if(typeof window>`u`)return c;try{let e=window.localStorage.getItem(o);return l(e)?e:c}catch{return c}}function f(){return typeof window>`u`||typeof window.matchMedia!=`function`?!1:window.matchMedia(s).matches}function p(e){if(typeof document>`u`)return;let t=document.documentElement;t.setAttribute(`data-theme`,e),t.style.colorScheme=e===`light`?`light`:`dark`}function m(){let[e,t]=(0,r.useState)(()=>d()),[n,i]=(0,r.useState)(()=>f()),a=(0,r.useMemo)(()=>u(e,n),[e,n]);return(0,r.useEffect)(()=>{p(a)},[a]),(0,r.useEffect)(()=>{if(typeof window>`u`||e!==`system`||typeof window.matchMedia!=`function`)return;let t=window.matchMedia(s);i(t.matches);let n=e=>{i(e.matches)};return typeof t.addEventListener==`function`?(t.addEventListener(`change`,n),()=>t.removeEventListener(`change`,n)):(t.addListener(n),()=>t.removeListener(n))},[e]),(0,r.useEffect)(()=>{if(typeof window>`u`)return;let e=e=>{e.key===`kairos:ui:theme-preference`&&t(l(e.newValue)?e.newValue:c)};return window.addEventListener(`storage`,e),()=>window.removeEventListener(`storage`,e)},[]),{preference:e,effectiveTheme:a,setPreference:(0,r.useCallback)(e=>{if(t(e),!(typeof window>`u`))try{window.localStorage.setItem(o,e)}catch{}},[])}}var h=(0,r.createContext)(null);function g({children:e}){let t=m();return(0,i.jsx)(h.Provider,{value:t,children:e})}function _(){let e=(0,r.useContext)(h);if(!e)throw Error(`useThemePreferenceContext must be used within ThemeProvider`);return e}export{_ as i,a as n,l as r,g as t};