@zerwiz/ymir 0.1.33 → 0.1.35
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/CHANGELOG.md +56 -0
- package/apps/README.md +4 -0
- package/apps/hlidskjalf/README.md +68 -0
- package/apps/hlidskjalf/android/app/build.gradle +73 -0
- package/apps/hlidskjalf/android/app/capacitor.build.gradle +19 -0
- package/apps/hlidskjalf/android/app/proguard-rules.pro +21 -0
- package/apps/hlidskjalf/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java +26 -0
- package/apps/hlidskjalf/android/app/src/main/AndroidManifest.xml +41 -0
- package/apps/hlidskjalf/android/app/src/main/java/org/zerwiz/ymir/MainActivity.java +5 -0
- package/apps/hlidskjalf/android/app/src/main/res/drawable/ic_launcher_background.xml +170 -0
- package/apps/hlidskjalf/android/app/src/main/res/drawable/splash.png +0 -0
- package/apps/hlidskjalf/android/app/src/main/res/drawable-land-hdpi/splash.png +0 -0
- package/apps/hlidskjalf/android/app/src/main/res/drawable-land-mdpi/splash.png +0 -0
- package/apps/hlidskjalf/android/app/src/main/res/drawable-land-xhdpi/splash.png +0 -0
- package/apps/hlidskjalf/android/app/src/main/res/drawable-land-xxhdpi/splash.png +0 -0
- package/apps/hlidskjalf/android/app/src/main/res/drawable-land-xxxhdpi/splash.png +0 -0
- package/apps/hlidskjalf/android/app/src/main/res/drawable-port-hdpi/splash.png +0 -0
- package/apps/hlidskjalf/android/app/src/main/res/drawable-port-mdpi/splash.png +0 -0
- package/apps/hlidskjalf/android/app/src/main/res/drawable-port-xhdpi/splash.png +0 -0
- package/apps/hlidskjalf/android/app/src/main/res/drawable-port-xxhdpi/splash.png +0 -0
- package/apps/hlidskjalf/android/app/src/main/res/drawable-port-xxxhdpi/splash.png +0 -0
- package/apps/hlidskjalf/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml +34 -0
- package/apps/hlidskjalf/android/app/src/main/res/layout/activity_main.xml +12 -0
- package/apps/hlidskjalf/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +5 -0
- package/apps/hlidskjalf/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +5 -0
- package/apps/hlidskjalf/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/apps/hlidskjalf/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png +0 -0
- package/apps/hlidskjalf/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/apps/hlidskjalf/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/apps/hlidskjalf/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png +0 -0
- package/apps/hlidskjalf/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/apps/hlidskjalf/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/apps/hlidskjalf/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png +0 -0
- package/apps/hlidskjalf/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/apps/hlidskjalf/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/apps/hlidskjalf/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png +0 -0
- package/apps/hlidskjalf/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/apps/hlidskjalf/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/apps/hlidskjalf/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png +0 -0
- package/apps/hlidskjalf/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/apps/hlidskjalf/android/app/src/main/res/values/ic_launcher_background.xml +4 -0
- package/apps/hlidskjalf/android/app/src/main/res/values/strings.xml +7 -0
- package/apps/hlidskjalf/android/app/src/main/res/values/styles.xml +22 -0
- package/apps/hlidskjalf/android/app/src/main/res/xml/file_paths.xml +5 -0
- package/apps/hlidskjalf/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java +18 -0
- package/apps/hlidskjalf/android/build.gradle +29 -0
- package/apps/hlidskjalf/android/capacitor.settings.gradle +3 -0
- package/apps/hlidskjalf/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/apps/hlidskjalf/android/gradle/wrapper/gradle-wrapper.properties +7 -0
- package/apps/hlidskjalf/android/gradle.properties +22 -0
- package/apps/hlidskjalf/android/gradlew +248 -0
- package/apps/hlidskjalf/android/gradlew.bat +92 -0
- package/apps/hlidskjalf/android/settings.gradle +5 -0
- package/apps/hlidskjalf/android/variables.gradle +16 -0
- package/apps/hlidskjalf/capacitor.config.ts +26 -0
- package/apps/hlidskjalf/dist/apple-touch-icon.png +0 -0
- package/apps/hlidskjalf/dist/assets/index-BWmNIyaG.css +1 -0
- package/apps/hlidskjalf/dist/assets/index-k7QEfNto.js +88 -0
- package/apps/hlidskjalf/dist/assets/index-k7QEfNto.js.map +1 -0
- package/apps/hlidskjalf/dist/icon.svg +7 -0
- package/apps/hlidskjalf/dist/index.html +64 -0
- package/apps/hlidskjalf/dist/manifest.webmanifest +31 -0
- package/apps/hlidskjalf/dist/og.jpg +0 -0
- package/apps/hlidskjalf/dist/og.png +0 -0
- package/apps/hlidskjalf/dist/og.svg +64 -0
- package/apps/hlidskjalf/dist/sw.js +39 -0
- package/apps/hlidskjalf/dist/ymir-icon.png +0 -0
- package/apps/hlidskjalf/dist/ymir-mark.svg +62 -0
- package/apps/hlidskjalf/electron/icon.png +0 -0
- package/apps/hlidskjalf/electron/main.cjs +236 -0
- package/apps/hlidskjalf/electron/preload.cjs +8 -0
- package/apps/hlidskjalf/electron/smidja-icon.png +0 -0
- package/apps/hlidskjalf/electron/ymir-hlidskjalf.desktop.in +12 -0
- package/apps/hlidskjalf/electron/ymir-smidja.desktop.in +12 -0
- package/apps/hlidskjalf/index.html +63 -0
- package/apps/hlidskjalf/package-lock.json +5398 -0
- package/apps/hlidskjalf/package.json +55 -0
- package/apps/hlidskjalf/public/apple-touch-icon.png +0 -0
- package/apps/hlidskjalf/public/icon.svg +7 -0
- package/apps/hlidskjalf/public/manifest.webmanifest +31 -0
- package/apps/hlidskjalf/public/og.jpg +0 -0
- package/apps/hlidskjalf/public/og.png +0 -0
- package/apps/hlidskjalf/public/og.svg +64 -0
- package/apps/hlidskjalf/public/sw.js +39 -0
- package/apps/hlidskjalf/public/ymir-icon.png +0 -0
- package/apps/hlidskjalf/public/ymir-mark.svg +62 -0
- package/apps/hlidskjalf/server/accounts.ts +159 -0
- package/apps/hlidskjalf/server/index.ts +2045 -0
- package/apps/hlidskjalf/src/app/App.tsx +116 -0
- package/apps/hlidskjalf/src/app/BottomStream.tsx +128 -0
- package/apps/hlidskjalf/src/app/MobileNav.tsx +87 -0
- package/apps/hlidskjalf/src/app/Rail.tsx +106 -0
- package/apps/hlidskjalf/src/app/Shell.tsx +135 -0
- package/apps/hlidskjalf/src/app/Topbar.tsx +130 -0
- package/apps/hlidskjalf/src/components/AccentPicker.tsx +207 -0
- package/apps/hlidskjalf/src/components/AccountMenu.tsx +115 -0
- package/apps/hlidskjalf/src/components/AgentCard.tsx +75 -0
- package/apps/hlidskjalf/src/components/EmberBackground.tsx +36 -0
- package/apps/hlidskjalf/src/components/Emblem.tsx +48 -0
- package/apps/hlidskjalf/src/components/Halls.tsx +155 -0
- package/apps/hlidskjalf/src/components/LoginModal.tsx +329 -0
- package/apps/hlidskjalf/src/components/Markdown.tsx +10 -0
- package/apps/hlidskjalf/src/components/MetricTile.tsx +40 -0
- package/apps/hlidskjalf/src/components/ModelPicker.tsx +100 -0
- package/apps/hlidskjalf/src/components/Overlay.tsx +134 -0
- package/apps/hlidskjalf/src/components/PRCard.tsx +154 -0
- package/apps/hlidskjalf/src/components/RecallPanel.tsx +116 -0
- package/apps/hlidskjalf/src/components/RuneTag.tsx +23 -0
- package/apps/hlidskjalf/src/components/Status.tsx +35 -0
- package/apps/hlidskjalf/src/components/TaskChip.tsx +23 -0
- package/apps/hlidskjalf/src/components/TraceRow.tsx +28 -0
- package/apps/hlidskjalf/src/data/lore.ts +127 -0
- package/apps/hlidskjalf/src/data/metadata.ts +147 -0
- package/apps/hlidskjalf/src/data/mythology.ts +95 -0
- package/apps/hlidskjalf/src/data/realms.ts +167 -0
- package/apps/hlidskjalf/src/gates/Cron.tsx +77 -0
- package/apps/hlidskjalf/src/gates/Decisions.tsx +67 -0
- package/apps/hlidskjalf/src/gates/Files.tsx +138 -0
- package/apps/hlidskjalf/src/gates/Fleet.tsx +184 -0
- package/apps/hlidskjalf/src/gates/Forge.tsx +486 -0
- package/apps/hlidskjalf/src/gates/OmniChat.tsx +217 -0
- package/apps/hlidskjalf/src/gates/Processes.tsx +162 -0
- package/apps/hlidskjalf/src/gates/Profile.tsx +225 -0
- package/apps/hlidskjalf/src/gates/Reviews.tsx +33 -0
- package/apps/hlidskjalf/src/gates/Runes.tsx +116 -0
- package/apps/hlidskjalf/src/gates/Runtime.tsx +106 -0
- package/apps/hlidskjalf/src/gates/Sessions.tsx +109 -0
- package/apps/hlidskjalf/src/gates/Stats.tsx +268 -0
- package/apps/hlidskjalf/src/gates/Tasks.tsx +173 -0
- package/apps/hlidskjalf/src/gates/Trace.tsx +155 -0
- package/apps/hlidskjalf/src/gates/Well.tsx +154 -0
- package/apps/hlidskjalf/src/gates/Worktrees.tsx +48 -0
- package/apps/hlidskjalf/src/hooks/useTenantDef.ts +13 -0
- package/apps/hlidskjalf/src/main.tsx +31 -0
- package/apps/hlidskjalf/src/services/api.ts +404 -0
- package/apps/hlidskjalf/src/services/auth.ts +107 -0
- package/apps/hlidskjalf/src/services/stream.ts +35 -0
- package/apps/hlidskjalf/src/state/store.ts +648 -0
- package/apps/hlidskjalf/src/state/ui.ts +62 -0
- package/apps/hlidskjalf/src/styles/auth.css +485 -0
- package/apps/hlidskjalf/src/styles/components.css +1259 -0
- package/apps/hlidskjalf/src/styles/forge.css +115 -0
- package/apps/hlidskjalf/src/styles/global.css +167 -0
- package/apps/hlidskjalf/src/styles/menus.css +175 -0
- package/apps/hlidskjalf/src/styles/mobile.css +298 -0
- package/apps/hlidskjalf/src/styles/overlays.css +205 -0
- package/apps/hlidskjalf/src/styles/shell.css +641 -0
- package/apps/hlidskjalf/src/types.ts +251 -0
- package/apps/hlidskjalf/src/vite-env.d.ts +9 -0
- package/apps/hlidskjalf/static/landing.md +6 -0
- package/apps/hlidskjalf/tsconfig.json +25 -0
- package/apps/hlidskjalf/vite.config.ts +49 -0
- package/apps/hlidskjalf-mobile/App.tsx +93 -0
- package/apps/hlidskjalf-mobile/app.json +13 -0
- package/apps/hlidskjalf-mobile/index.ts +4 -0
- package/apps/hlidskjalf-mobile/package.json +35 -0
- package/apps/hlidskjalf-mobile/public/icon.svg +7 -0
- package/apps/hlidskjalf-mobile/tsconfig.json +4 -0
- package/apps/odrerir/.astro/content.d.ts +159 -0
- package/apps/odrerir/.astro/dev.json +24 -0
- package/apps/odrerir/.astro/settings.json +5 -0
- package/apps/odrerir/.astro/types.d.ts +2 -0
- package/apps/odrerir/astro.config.mjs +79 -0
- package/apps/odrerir/dist/apple-touch-icon.png +0 -0
- package/apps/odrerir/dist/favicon-192.png +0 -0
- package/apps/odrerir/dist/favicon-32.png +0 -0
- package/apps/odrerir/dist/favicon-512.png +0 -0
- package/apps/odrerir/dist/favicon.svg +53 -0
- package/apps/odrerir/dist/icon.svg +7 -0
- package/apps/odrerir/dist/index.html +837 -0
- package/apps/odrerir/dist/og-square.png +0 -0
- package/apps/odrerir/dist/og-story.png +0 -0
- package/apps/odrerir/dist/og.png +0 -0
- package/apps/odrerir/dist/safari-pinned-tab.svg +7 -0
- package/apps/odrerir/dist/site.webmanifest +16 -0
- package/apps/odrerir/dist/styles/cloth.css +112 -0
- package/apps/odrerir/dist/styles/livehall.css +278 -0
- package/apps/odrerir/electron/icon.png +0 -0
- package/apps/odrerir/electron/main.cjs +183 -0
- package/apps/odrerir/electron/ymir-odrerir.desktop.in +12 -0
- package/apps/odrerir/package-lock.json +4195 -0
- package/apps/odrerir/package.json +30 -0
- package/apps/odrerir/public/apple-touch-icon.png +0 -0
- package/apps/odrerir/public/favicon-192.png +0 -0
- package/apps/odrerir/public/favicon-32.png +0 -0
- package/apps/odrerir/public/favicon-512.png +0 -0
- package/apps/odrerir/public/favicon.svg +53 -0
- package/apps/odrerir/public/icon.svg +7 -0
- package/apps/odrerir/public/og-square.png +0 -0
- package/apps/odrerir/public/og-story.png +0 -0
- package/apps/odrerir/public/og.png +0 -0
- package/apps/odrerir/public/safari-pinned-tab.svg +7 -0
- package/apps/odrerir/public/site.webmanifest +16 -0
- package/apps/odrerir/scripts/extract-cloth.mjs +101 -0
- package/apps/odrerir/src/index.html +837 -0
- package/apps/odrerir/src/styles/cloth.css +112 -0
- package/apps/odrerir/src/styles/livehall.css +278 -0
- package/apps/sessrumnir/.github/ISSUE_TEMPLATE/bug_report.yml +99 -0
- package/apps/sessrumnir/.github/ISSUE_TEMPLATE/config.yml +8 -0
- package/apps/sessrumnir/.github/ISSUE_TEMPLATE/feature_request.yml +46 -0
- package/apps/sessrumnir/.github/PULL_REQUEST_TEMPLATE.md +56 -0
- package/apps/sessrumnir/.github/SUPPORT.md +18 -0
- package/apps/sessrumnir/.github/workflows/build.yml +133 -0
- package/apps/sessrumnir/AGENTS.md +540 -0
- package/apps/sessrumnir/CLA.md +63 -0
- package/apps/sessrumnir/CONTRIBUTING.md +233 -0
- package/apps/sessrumnir/LICENSE +200 -0
- package/apps/sessrumnir/NOTICE +33 -0
- package/apps/sessrumnir/README.md +329 -0
- package/apps/sessrumnir/bin/sessrumnir-web.sh +117 -0
- package/apps/sessrumnir/bin/sessrumnir.js +169 -0
- package/apps/sessrumnir/docs/CNAME +1 -0
- package/apps/sessrumnir/docs/favicon.ico +0 -0
- package/apps/sessrumnir/docs/icon-512.png +0 -0
- package/apps/sessrumnir/docs/index.html +441 -0
- package/apps/sessrumnir/docs/robots.txt +4 -0
- package/apps/sessrumnir/docs/screenshots/Screenshot_20260824_181929.png +0 -0
- package/apps/sessrumnir/docs/screenshots/Screenshot_20260824_182005.png +0 -0
- package/apps/sessrumnir/docs/screenshots/Screenshot_20260824_182020.png +0 -0
- package/apps/sessrumnir/docs/screenshots/Screenshot_20260824_182039.png +0 -0
- package/apps/sessrumnir/docs/screenshots/Screenshot_20260824_182117.png +0 -0
- package/apps/sessrumnir/docs/screenshots/Screenshot_20260824_182225.png +0 -0
- package/apps/sessrumnir/docs/screenshots/Screenshot_20260824_182248.png +0 -0
- package/apps/sessrumnir/docs/screenshots/Screenshot_20260824_182322.png +0 -0
- package/apps/sessrumnir/docs/screenshots/Screenshot_20260824_182340.png +0 -0
- package/apps/sessrumnir/docs/sitemap.xml +9 -0
- package/apps/sessrumnir/electron.vite.config.ts +49 -0
- package/apps/sessrumnir/eslint.config.mjs +75 -0
- package/apps/sessrumnir/i18next.config.ts +33 -0
- package/apps/sessrumnir/install.sh +144 -0
- package/apps/sessrumnir/out/main/index.js +10881 -0
- package/apps/sessrumnir/out/preload/index.js +722 -0
- package/apps/sessrumnir/out/renderer/assets/cormorant-cyrillic-400-normal-C8QS47vb.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/cormorant-cyrillic-400-normal-D3EsxgFc.woff +0 -0
- package/apps/sessrumnir/out/renderer/assets/cormorant-cyrillic-500-normal-B7dJQtg-.woff +0 -0
- package/apps/sessrumnir/out/renderer/assets/cormorant-cyrillic-500-normal-BLlg2W5x.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/cormorant-cyrillic-600-normal-BcIsDXzC.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/cormorant-cyrillic-600-normal-CBymlcNF.woff +0 -0
- package/apps/sessrumnir/out/renderer/assets/cormorant-cyrillic-ext-400-normal-Bgrpe4p1.woff +0 -0
- package/apps/sessrumnir/out/renderer/assets/cormorant-cyrillic-ext-400-normal-BlcaxZtM.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/cormorant-cyrillic-ext-500-normal-CdQuyvtc.woff +0 -0
- package/apps/sessrumnir/out/renderer/assets/cormorant-cyrillic-ext-500-normal-pZw22qtS.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/cormorant-cyrillic-ext-600-normal-Dr-wLyOm.woff +0 -0
- package/apps/sessrumnir/out/renderer/assets/cormorant-cyrillic-ext-600-normal-dLR2-a_v.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/cormorant-latin-400-normal-BGH8Vunh.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/cormorant-latin-400-normal-C3_-2Ua-.woff +0 -0
- package/apps/sessrumnir/out/renderer/assets/cormorant-latin-500-normal-Dj3SQ6fR.woff +0 -0
- package/apps/sessrumnir/out/renderer/assets/cormorant-latin-500-normal-EBdSCOD3.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/cormorant-latin-600-normal-B254Xisw.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/cormorant-latin-600-normal-DUW-TI76.woff +0 -0
- package/apps/sessrumnir/out/renderer/assets/cormorant-latin-ext-400-normal-DuQ88yz3.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/cormorant-latin-ext-400-normal-DuXFa1Dr.woff +0 -0
- package/apps/sessrumnir/out/renderer/assets/cormorant-latin-ext-500-normal-AH9qog1s.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/cormorant-latin-ext-500-normal-DAuUCO41.woff +0 -0
- package/apps/sessrumnir/out/renderer/assets/cormorant-latin-ext-600-normal-CD-dlDpD.woff +0 -0
- package/apps/sessrumnir/out/renderer/assets/cormorant-latin-ext-600-normal-D3T6BBXG.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/cormorant-vietnamese-400-normal-C-RiYxEf.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/cormorant-vietnamese-400-normal-DmUuA7Y2.woff +0 -0
- package/apps/sessrumnir/out/renderer/assets/cormorant-vietnamese-500-normal-DsPuwQHi.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/cormorant-vietnamese-500-normal-tGBW_mI7.woff +0 -0
- package/apps/sessrumnir/out/renderer/assets/cormorant-vietnamese-600-normal-Dar_cCT6.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/cormorant-vietnamese-600-normal-GIs8CF2x.woff +0 -0
- package/apps/sessrumnir/out/renderer/assets/ibm-plex-mono-cyrillic-300-normal-Ba-HN6uq.woff +0 -0
- package/apps/sessrumnir/out/renderer/assets/ibm-plex-mono-cyrillic-300-normal-ByB2hQUF.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff +0 -0
- package/apps/sessrumnir/out/renderer/assets/ibm-plex-mono-cyrillic-500-normal-Ael50iVv.woff +0 -0
- package/apps/sessrumnir/out/renderer/assets/ibm-plex-mono-cyrillic-500-normal-Bq9vWWag.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/ibm-plex-mono-cyrillic-ext-300-normal-B8O3uHbr.woff +0 -0
- package/apps/sessrumnir/out/renderer/assets/ibm-plex-mono-cyrillic-ext-300-normal-BbtBtHoB.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/ibm-plex-mono-cyrillic-ext-400-normal-DMdlQ8Kv.woff +0 -0
- package/apps/sessrumnir/out/renderer/assets/ibm-plex-mono-cyrillic-ext-400-normal-xuaO2J-f.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/ibm-plex-mono-cyrillic-ext-500-normal-BIfNGwUT.woff +0 -0
- package/apps/sessrumnir/out/renderer/assets/ibm-plex-mono-cyrillic-ext-500-normal-BqneJy0T.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/ibm-plex-mono-latin-300-normal-BPU54Tw3.woff +0 -0
- package/apps/sessrumnir/out/renderer/assets/ibm-plex-mono-latin-300-normal-BRS-C4KA.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff +0 -0
- package/apps/sessrumnir/out/renderer/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff +0 -0
- package/apps/sessrumnir/out/renderer/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/ibm-plex-mono-latin-ext-300-normal-BEtQ2wm2.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/ibm-plex-mono-latin-ext-300-normal-CQbCaAQ4.woff +0 -0
- package/apps/sessrumnir/out/renderer/assets/ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff +0 -0
- package/apps/sessrumnir/out/renderer/assets/ibm-plex-mono-latin-ext-500-normal-CAhNIIs5.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/ibm-plex-mono-latin-ext-500-normal-CZ70TYgx.woff +0 -0
- package/apps/sessrumnir/out/renderer/assets/ibm-plex-mono-vietnamese-300-normal-B6fSpYYV.woff +0 -0
- package/apps/sessrumnir/out/renderer/assets/ibm-plex-mono-vietnamese-300-normal-CpdbWO_2.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/ibm-plex-mono-vietnamese-400-normal-BulugwFq.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/ibm-plex-mono-vietnamese-400-normal-DDuiU_S-.woff +0 -0
- package/apps/sessrumnir/out/renderer/assets/ibm-plex-mono-vietnamese-500-normal-C8zxqsMH.woff +0 -0
- package/apps/sessrumnir/out/renderer/assets/ibm-plex-mono-vietnamese-500-normal-DZ4AoWbu.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/index-BxqsRq2x.css +4858 -0
- package/apps/sessrumnir/out/renderer/assets/index-TaD69rFk.js +99435 -0
- package/apps/sessrumnir/out/renderer/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/newsreader-latin-ext-wght-italic-DFS986qL.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/newsreader-latin-ext-wght-normal-C-3rgBeH.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/newsreader-latin-wght-italic-Bxi8ein9.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/newsreader-latin-wght-normal-CCVVNp6i.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/newsreader-vietnamese-wght-italic-xAqemagA.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/newsreader-vietnamese-wght-normal-Czsa-EzN.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/openmoji-color-9qo_2DLG.woff2 +0 -0
- package/apps/sessrumnir/out/renderer/assets/pi-logo-B6SVnhuS.svg +7 -0
- package/apps/sessrumnir/out/renderer/index.html +19 -0
- package/apps/sessrumnir/out/renderer/theme-boot.js +30 -0
- package/apps/sessrumnir/package-lock.json +10636 -0
- package/apps/sessrumnir/package.json +183 -0
- package/apps/sessrumnir/public/apple-touch-icon.png +0 -0
- package/apps/sessrumnir/public/icon.svg +7 -0
- package/apps/sessrumnir/resources/icons/generate_icons.py +38 -0
- package/apps/sessrumnir/resources/icons/icon-128.png +0 -0
- package/apps/sessrumnir/resources/icons/icon-16.png +0 -0
- package/apps/sessrumnir/resources/icons/icon-256.png +0 -0
- package/apps/sessrumnir/resources/icons/icon-32.png +0 -0
- package/apps/sessrumnir/resources/icons/icon-48.png +0 -0
- package/apps/sessrumnir/resources/icons/icon-512.png +0 -0
- package/apps/sessrumnir/resources/icons/icon-64.png +0 -0
- package/apps/sessrumnir/resources/icons/icon.icns +0 -0
- package/apps/sessrumnir/resources/icons/icon.ico +0 -0
- package/apps/sessrumnir/resources/icons/icon.png +0 -0
- package/apps/sessrumnir/resources/icons/icon.svg +7 -0
- package/apps/sessrumnir/resources/linux/after-install.sh +23 -0
- package/apps/sessrumnir/resources/linux/after-remove.sh +18 -0
- package/apps/sessrumnir/resources/locales/en/translation.json +1735 -0
- package/apps/sessrumnir/resources/permission-prompt-text.test.ts +111 -0
- package/apps/sessrumnir/resources/permission-prompt-text.ts +84 -0
- package/apps/sessrumnir/resources/permission-rules.test.ts +351 -0
- package/apps/sessrumnir/resources/permission-rules.ts +293 -0
- package/apps/sessrumnir/resources/pi-desktop-permissions.ts +62 -0
- package/apps/sessrumnir/resources/ymir-sessrumnir.desktop.in +12 -0
- package/apps/sessrumnir/scripts/check-semantic-colors.mjs +57 -0
- package/apps/sessrumnir/src/main/activity-stats.test.ts +240 -0
- package/apps/sessrumnir/src/main/activity-stats.ts +596 -0
- package/apps/sessrumnir/src/main/agent-detection.test.ts +25 -0
- package/apps/sessrumnir/src/main/agent-detection.ts +114 -0
- package/apps/sessrumnir/src/main/app-data-paths.test.ts +90 -0
- package/apps/sessrumnir/src/main/app-data-paths.ts +95 -0
- package/apps/sessrumnir/src/main/app-log.test.ts +114 -0
- package/apps/sessrumnir/src/main/app-log.ts +210 -0
- package/apps/sessrumnir/src/main/archived-sessions.test.ts +50 -0
- package/apps/sessrumnir/src/main/archived-sessions.ts +95 -0
- package/apps/sessrumnir/src/main/attachment-reader.test.ts +56 -0
- package/apps/sessrumnir/src/main/attachment-reader.ts +52 -0
- package/apps/sessrumnir/src/main/auto-tag.test.ts +38 -0
- package/apps/sessrumnir/src/main/auto-tag.ts +75 -0
- package/apps/sessrumnir/src/main/autostart-linux.test.ts +56 -0
- package/apps/sessrumnir/src/main/autostart-linux.ts +58 -0
- package/apps/sessrumnir/src/main/cmd-escape.test.ts +424 -0
- package/apps/sessrumnir/src/main/cmd-escape.ts +186 -0
- package/apps/sessrumnir/src/main/council-manager.test.ts +167 -0
- package/apps/sessrumnir/src/main/council-manager.ts +265 -0
- package/apps/sessrumnir/src/main/diagnostics-report.test.ts +140 -0
- package/apps/sessrumnir/src/main/diagnostics-report.ts +91 -0
- package/apps/sessrumnir/src/main/diagnostics.ts +111 -0
- package/apps/sessrumnir/src/main/editor-guard.test.ts +59 -0
- package/apps/sessrumnir/src/main/editor-guard.ts +50 -0
- package/apps/sessrumnir/src/main/extension-ui-ipc.test.ts +299 -0
- package/apps/sessrumnir/src/main/extension-ui-ipc.ts +117 -0
- package/apps/sessrumnir/src/main/file-service.test.ts +279 -0
- package/apps/sessrumnir/src/main/file-service.ts +652 -0
- package/apps/sessrumnir/src/main/fs-errors.ts +42 -0
- package/apps/sessrumnir/src/main/get-messages-trim.test.ts +77 -0
- package/apps/sessrumnir/src/main/get-messages-trim.ts +97 -0
- package/apps/sessrumnir/src/main/git-conveyor.test.ts +305 -0
- package/apps/sessrumnir/src/main/git-conveyor.ts +338 -0
- package/apps/sessrumnir/src/main/git-worktree.test.ts +101 -0
- package/apps/sessrumnir/src/main/git-worktree.ts +201 -0
- package/apps/sessrumnir/src/main/i18n.ts +31 -0
- package/apps/sessrumnir/src/main/index.ts +619 -0
- package/apps/sessrumnir/src/main/ipc/active-engine.ts +15 -0
- package/apps/sessrumnir/src/main/ipc/context.ts +58 -0
- package/apps/sessrumnir/src/main/ipc/council-handlers.ts +126 -0
- package/apps/sessrumnir/src/main/ipc/diagnostics-handlers.ts +8 -0
- package/apps/sessrumnir/src/main/ipc/file-handlers.ts +96 -0
- package/apps/sessrumnir/src/main/ipc/git-conveyor-handlers.ts +55 -0
- package/apps/sessrumnir/src/main/ipc/model-handlers.ts +33 -0
- package/apps/sessrumnir/src/main/ipc/models-config-handlers.ts +80 -0
- package/apps/sessrumnir/src/main/ipc/notes-handlers.ts +65 -0
- package/apps/sessrumnir/src/main/ipc/package-handlers.ts +330 -0
- package/apps/sessrumnir/src/main/ipc/permission-rules-handlers.ts +223 -0
- package/apps/sessrumnir/src/main/ipc/pi-handlers.ts +136 -0
- package/apps/sessrumnir/src/main/ipc/pi-start-options.ts +150 -0
- package/apps/sessrumnir/src/main/ipc/run-pi-cli.ts +53 -0
- package/apps/sessrumnir/src/main/ipc/session-handlers.ts +491 -0
- package/apps/sessrumnir/src/main/ipc/settings.ts +120 -0
- package/apps/sessrumnir/src/main/ipc/skills-mcp-handlers.ts +192 -0
- package/apps/sessrumnir/src/main/ipc/system-handlers.ts +131 -0
- package/apps/sessrumnir/src/main/ipc/tag-handlers.ts +69 -0
- package/apps/sessrumnir/src/main/ipc/terminal-handlers.ts +41 -0
- package/apps/sessrumnir/src/main/ipc/theme-handlers.ts +131 -0
- package/apps/sessrumnir/src/main/ipc/update-handlers.ts +61 -0
- package/apps/sessrumnir/src/main/ipc/validation.ts +45 -0
- package/apps/sessrumnir/src/main/ipc/workflow-handlers.ts +108 -0
- package/apps/sessrumnir/src/main/ipc/workspace-activity-wiring.ts +179 -0
- package/apps/sessrumnir/src/main/ipc/workspace-handlers.ts +133 -0
- package/apps/sessrumnir/src/main/ipc-handlers.ts +98 -0
- package/apps/sessrumnir/src/main/map-concurrent.test.ts +80 -0
- package/apps/sessrumnir/src/main/map-concurrent.ts +30 -0
- package/apps/sessrumnir/src/main/models-file.test.ts +114 -0
- package/apps/sessrumnir/src/main/models-file.ts +89 -0
- package/apps/sessrumnir/src/main/notes-manager.test.ts +64 -0
- package/apps/sessrumnir/src/main/notes-manager.ts +183 -0
- package/apps/sessrumnir/src/main/notify-decision.test.ts +39 -0
- package/apps/sessrumnir/src/main/notify-decision.ts +25 -0
- package/apps/sessrumnir/src/main/omp-fork-points.test.ts +119 -0
- package/apps/sessrumnir/src/main/omp-fork-points.ts +105 -0
- package/apps/sessrumnir/src/main/omp-plugin-list.test.ts +94 -0
- package/apps/sessrumnir/src/main/omp-plugin-list.ts +103 -0
- package/apps/sessrumnir/src/main/package-catalog.test.ts +157 -0
- package/apps/sessrumnir/src/main/package-catalog.ts +166 -0
- package/apps/sessrumnir/src/main/package-updates.test.ts +149 -0
- package/apps/sessrumnir/src/main/package-updates.ts +185 -0
- package/apps/sessrumnir/src/main/path-authorization.test.ts +64 -0
- package/apps/sessrumnir/src/main/path-authorization.ts +31 -0
- package/apps/sessrumnir/src/main/pi-binary-resolution.test.ts +582 -0
- package/apps/sessrumnir/src/main/pi-binary-resolution.ts +649 -0
- package/apps/sessrumnir/src/main/pi-event-router.test.ts +388 -0
- package/apps/sessrumnir/src/main/pi-event-router.ts +290 -0
- package/apps/sessrumnir/src/main/pi-paths.test.ts +134 -0
- package/apps/sessrumnir/src/main/pi-paths.ts +74 -0
- package/apps/sessrumnir/src/main/pi-rpc-manager.test.ts +467 -0
- package/apps/sessrumnir/src/main/pi-rpc-manager.ts +1319 -0
- package/apps/sessrumnir/src/main/process-tree.test.ts +94 -0
- package/apps/sessrumnir/src/main/renderer-origin.test.ts +33 -0
- package/apps/sessrumnir/src/main/renderer-origin.ts +35 -0
- package/apps/sessrumnir/src/main/session-lineage-reader.test.ts +317 -0
- package/apps/sessrumnir/src/main/session-lineage-reader.ts +111 -0
- package/apps/sessrumnir/src/main/session-metadata.test.ts +508 -0
- package/apps/sessrumnir/src/main/session-metadata.ts +526 -0
- package/apps/sessrumnir/src/main/session-name.test.ts +71 -0
- package/apps/sessrumnir/src/main/session-name.ts +69 -0
- package/apps/sessrumnir/src/main/session-paths.test.ts +110 -0
- package/apps/sessrumnir/src/main/session-paths.ts +88 -0
- package/apps/sessrumnir/src/main/session-tags.test.ts +61 -0
- package/apps/sessrumnir/src/main/session-tags.ts +253 -0
- package/apps/sessrumnir/src/main/session-trash.test.ts +66 -0
- package/apps/sessrumnir/src/main/session-trash.ts +65 -0
- package/apps/sessrumnir/src/main/settings-logic.ts +66 -0
- package/apps/sessrumnir/src/main/skills-discovery.test.ts +149 -0
- package/apps/sessrumnir/src/main/skills-discovery.ts +179 -0
- package/apps/sessrumnir/src/main/startup-launch.ts +63 -0
- package/apps/sessrumnir/src/main/terminal-service.ts +96 -0
- package/apps/sessrumnir/src/main/theme-store.test.ts +440 -0
- package/apps/sessrumnir/src/main/theme-store.ts +495 -0
- package/apps/sessrumnir/src/main/tray-decision.test.ts +46 -0
- package/apps/sessrumnir/src/main/tray-decision.ts +49 -0
- package/apps/sessrumnir/src/main/tray-manager.ts +220 -0
- package/apps/sessrumnir/src/main/tsconfig.json +20 -0
- package/apps/sessrumnir/src/main/window-background.test.ts +29 -0
- package/apps/sessrumnir/src/main/window-background.ts +16 -0
- package/apps/sessrumnir/src/main/workflow-discovery.test.ts +252 -0
- package/apps/sessrumnir/src/main/workflow-monitor.test.ts +371 -0
- package/apps/sessrumnir/src/main/workflow-monitor.ts +1020 -0
- package/apps/sessrumnir/src/main/workspace-activity.test.ts +227 -0
- package/apps/sessrumnir/src/main/workspace-activity.ts +215 -0
- package/apps/sessrumnir/src/main/workspace-manager.test.ts +680 -0
- package/apps/sessrumnir/src/main/workspace-manager.ts +1199 -0
- package/apps/sessrumnir/src/main/workspace-trust.test.ts +78 -0
- package/apps/sessrumnir/src/main/workspace-trust.ts +84 -0
- package/apps/sessrumnir/src/preload/index.ts +358 -0
- package/apps/sessrumnir/src/preload/tsconfig.json +20 -0
- package/apps/sessrumnir/src/renderer/index.html +18 -0
- package/apps/sessrumnir/src/renderer/public/theme-boot.js +30 -0
- package/apps/sessrumnir/src/renderer/src/app.tsx +194 -0
- package/apps/sessrumnir/src/renderer/src/assets/openmoji-color.woff2 +0 -0
- package/apps/sessrumnir/src/renderer/src/assets/pi-logo.svg +7 -0
- package/apps/sessrumnir/src/renderer/src/assets/ymir-mark.svg +55 -0
- package/apps/sessrumnir/src/renderer/src/assets.d.ts +7 -0
- package/apps/sessrumnir/src/renderer/src/components/chat-code-highlight.ts +239 -0
- package/apps/sessrumnir/src/renderer/src/components/chat-file-link.ts +140 -0
- package/apps/sessrumnir/src/renderer/src/components/chat-input.tsx +729 -0
- package/apps/sessrumnir/src/renderer/src/components/chat-panel-widths.test.ts +175 -0
- package/apps/sessrumnir/src/renderer/src/components/chat-panel-widths.ts +100 -0
- package/apps/sessrumnir/src/renderer/src/components/chat-panel.tsx +523 -0
- package/apps/sessrumnir/src/renderer/src/components/chat-project-picker.tsx +193 -0
- package/apps/sessrumnir/src/renderer/src/components/chat-search.tsx +251 -0
- package/apps/sessrumnir/src/renderer/src/components/code-editor-highlight.ts +85 -0
- package/apps/sessrumnir/src/renderer/src/components/code-editor-language.test.ts +19 -0
- package/apps/sessrumnir/src/renderer/src/components/code-editor-language.ts +88 -0
- package/apps/sessrumnir/src/renderer/src/components/code-editor.tsx +128 -0
- package/apps/sessrumnir/src/renderer/src/components/command-palette.tsx +315 -0
- package/apps/sessrumnir/src/renderer/src/components/command-results.tsx +80 -0
- package/apps/sessrumnir/src/renderer/src/components/composer-permission-menu.tsx +91 -0
- package/apps/sessrumnir/src/renderer/src/components/context-menu.tsx +457 -0
- package/apps/sessrumnir/src/renderer/src/components/copy-button.tsx +36 -0
- package/apps/sessrumnir/src/renderer/src/components/council-panels.tsx +193 -0
- package/apps/sessrumnir/src/renderer/src/components/custom-models-editor.tsx +330 -0
- package/apps/sessrumnir/src/renderer/src/components/diagnostics-panel.tsx +380 -0
- package/apps/sessrumnir/src/renderer/src/components/diff-viewer.tsx +318 -0
- package/apps/sessrumnir/src/renderer/src/components/ember-background.tsx +113 -0
- package/apps/sessrumnir/src/renderer/src/components/error-boundary.tsx +38 -0
- package/apps/sessrumnir/src/renderer/src/components/extension-ui-dialog-helpers.test.ts +43 -0
- package/apps/sessrumnir/src/renderer/src/components/extension-ui-dialog-helpers.ts +51 -0
- package/apps/sessrumnir/src/renderer/src/components/extension-ui-dialog.tsx +486 -0
- package/apps/sessrumnir/src/renderer/src/components/file-tree.tsx +784 -0
- package/apps/sessrumnir/src/renderer/src/components/git-conveyor-actions.tsx +246 -0
- package/apps/sessrumnir/src/renderer/src/components/home-screen.tsx +396 -0
- package/apps/sessrumnir/src/renderer/src/components/image-viewer.tsx +100 -0
- package/apps/sessrumnir/src/renderer/src/components/line-numbered-code.tsx +58 -0
- package/apps/sessrumnir/src/renderer/src/components/markdown-renderer.tsx +237 -0
- package/apps/sessrumnir/src/renderer/src/components/message-bubble.tsx +1006 -0
- package/apps/sessrumnir/src/renderer/src/components/mission-control.tsx +341 -0
- package/apps/sessrumnir/src/renderer/src/components/model-selector.tsx +219 -0
- package/apps/sessrumnir/src/renderer/src/components/note-picker.tsx +155 -0
- package/apps/sessrumnir/src/renderer/src/components/notes-panel.tsx +437 -0
- package/apps/sessrumnir/src/renderer/src/components/package-browser.tsx +604 -0
- package/apps/sessrumnir/src/renderer/src/components/permission-mode.test.ts +22 -0
- package/apps/sessrumnir/src/renderer/src/components/permission-mode.ts +49 -0
- package/apps/sessrumnir/src/renderer/src/components/permission-rules-editor-helpers.test.ts +44 -0
- package/apps/sessrumnir/src/renderer/src/components/permission-rules-editor-helpers.ts +35 -0
- package/apps/sessrumnir/src/renderer/src/components/permission-rules-editor.tsx +226 -0
- package/apps/sessrumnir/src/renderer/src/components/permission-selector.tsx +104 -0
- package/apps/sessrumnir/src/renderer/src/components/resize-handle.tsx +51 -0
- package/apps/sessrumnir/src/renderer/src/components/review-rail.tsx +194 -0
- package/apps/sessrumnir/src/renderer/src/components/session-menu-position.test.ts +22 -0
- package/apps/sessrumnir/src/renderer/src/components/session-menu-position.ts +34 -0
- package/apps/sessrumnir/src/renderer/src/components/session-panel.tsx +711 -0
- package/apps/sessrumnir/src/renderer/src/components/session-runtime-indicator.tsx +43 -0
- package/apps/sessrumnir/src/renderer/src/components/settings-panel.tsx +1360 -0
- package/apps/sessrumnir/src/renderer/src/components/sidebar-activity.test.ts +47 -0
- package/apps/sessrumnir/src/renderer/src/components/sidebar-activity.ts +76 -0
- package/apps/sessrumnir/src/renderer/src/components/sidebar-session-labels.test.ts +73 -0
- package/apps/sessrumnir/src/renderer/src/components/sidebar-session-labels.ts +47 -0
- package/apps/sessrumnir/src/renderer/src/components/sidebar.tsx +1045 -0
- package/apps/sessrumnir/src/renderer/src/components/skills-panel.tsx +159 -0
- package/apps/sessrumnir/src/renderer/src/components/stats-panel.tsx +368 -0
- package/apps/sessrumnir/src/renderer/src/components/status-bar.tsx +274 -0
- package/apps/sessrumnir/src/renderer/src/components/status-popover.tsx +481 -0
- package/apps/sessrumnir/src/renderer/src/components/streaming-bubble.tsx +128 -0
- package/apps/sessrumnir/src/renderer/src/components/subagent-progress.tsx +254 -0
- package/apps/sessrumnir/src/renderer/src/components/task-launcher.tsx +168 -0
- package/apps/sessrumnir/src/renderer/src/components/terminal.tsx +203 -0
- package/apps/sessrumnir/src/renderer/src/components/theme-editor-helpers.test.ts +35 -0
- package/apps/sessrumnir/src/renderer/src/components/theme-editor-helpers.ts +35 -0
- package/apps/sessrumnir/src/renderer/src/components/theme-editor.tsx +440 -0
- package/apps/sessrumnir/src/renderer/src/components/theme-gallery.tsx +373 -0
- package/apps/sessrumnir/src/renderer/src/components/thinking-level-selector.tsx +85 -0
- package/apps/sessrumnir/src/renderer/src/components/timeline.tsx +289 -0
- package/apps/sessrumnir/src/renderer/src/components/tool-call-icon.ts +32 -0
- package/apps/sessrumnir/src/renderer/src/components/workflow-navigator.tsx +901 -0
- package/apps/sessrumnir/src/renderer/src/components/workspace-tabs.tsx +241 -0
- package/apps/sessrumnir/src/renderer/src/global.d.ts +8 -0
- package/apps/sessrumnir/src/renderer/src/hooks/use-folder-drop.ts +101 -0
- package/apps/sessrumnir/src/renderer/src/hooks.test.ts +88 -0
- package/apps/sessrumnir/src/renderer/src/hooks.ts +574 -0
- package/apps/sessrumnir/src/renderer/src/i18n.test.ts +54 -0
- package/apps/sessrumnir/src/renderer/src/i18n.ts +89 -0
- package/apps/sessrumnir/src/renderer/src/index.css +425 -0
- package/apps/sessrumnir/src/renderer/src/main.tsx +42 -0
- package/apps/sessrumnir/src/renderer/src/message-grouping.test.ts +422 -0
- package/apps/sessrumnir/src/renderer/src/message-grouping.ts +410 -0
- package/apps/sessrumnir/src/renderer/src/message-parsing.test.ts +86 -0
- package/apps/sessrumnir/src/renderer/src/message-parsing.ts +166 -0
- package/apps/sessrumnir/src/renderer/src/store-external-prompts.test.ts +161 -0
- package/apps/sessrumnir/src/renderer/src/store-session-transitions.test.ts +2090 -0
- package/apps/sessrumnir/src/renderer/src/store-timeline.test.ts +52 -0
- package/apps/sessrumnir/src/renderer/src/store-turn-error.test.ts +136 -0
- package/apps/sessrumnir/src/renderer/src/store.ts +3726 -0
- package/apps/sessrumnir/src/renderer/src/subagent-detection.test.ts +55 -0
- package/apps/sessrumnir/src/renderer/src/theme/engine.test.ts +29 -0
- package/apps/sessrumnir/src/renderer/src/theme/engine.ts +20 -0
- package/apps/sessrumnir/src/renderer/src/themes/breeze-claudius.json +69 -0
- package/apps/sessrumnir/src/renderer/src/themes/breeze-dark.json +69 -0
- package/apps/sessrumnir/src/renderer/src/themes/breeze-light.json +69 -0
- package/apps/sessrumnir/src/renderer/src/themes/builtin-themes.test.ts +95 -0
- package/apps/sessrumnir/src/renderer/src/themes/dark.json +46 -0
- package/apps/sessrumnir/src/renderer/src/themes/fensalir.json +82 -0
- package/apps/sessrumnir/src/renderer/src/themes/gruvbox.json +69 -0
- package/apps/sessrumnir/src/renderer/src/themes/index.ts +60 -0
- package/apps/sessrumnir/src/renderer/src/themes/light.json +46 -0
- package/apps/sessrumnir/src/renderer/src/themes/nord.json +69 -0
- package/apps/sessrumnir/src/renderer/src/themes/sessrumnir.json +82 -0
- package/apps/sessrumnir/src/renderer/src/utils/debounced-buffer.test.ts +81 -0
- package/apps/sessrumnir/src/renderer/src/utils/debounced-buffer.ts +57 -0
- package/apps/sessrumnir/src/renderer/src/utils/format-relative-time.test.ts +62 -0
- package/apps/sessrumnir/src/renderer/src/utils/format-relative-time.ts +28 -0
- package/apps/sessrumnir/src/renderer/src/utils/heatmap-grid.test.ts +57 -0
- package/apps/sessrumnir/src/renderer/src/utils/heatmap-grid.ts +41 -0
- package/apps/sessrumnir/src/renderer/src/utils/ipc-error.test.ts +22 -0
- package/apps/sessrumnir/src/renderer/src/utils/ipc-error.ts +12 -0
- package/apps/sessrumnir/src/renderer/src/utils/model-search.test.ts +63 -0
- package/apps/sessrumnir/src/renderer/src/utils/model-search.ts +20 -0
- package/apps/sessrumnir/src/renderer/src/utils/planning-prompt.test.ts +31 -0
- package/apps/sessrumnir/src/renderer/src/utils/planning-prompt.ts +27 -0
- package/apps/sessrumnir/src/renderer/src/utils/preview-load-error.test.ts +15 -0
- package/apps/sessrumnir/src/renderer/src/utils/preview-load-error.ts +22 -0
- package/apps/sessrumnir/src/renderer/src/utils/process-status-label.test.ts +13 -0
- package/apps/sessrumnir/src/renderer/src/utils/process-status-label.ts +19 -0
- package/apps/sessrumnir/src/renderer/src/utils/quick-switcher.test.ts +68 -0
- package/apps/sessrumnir/src/renderer/src/utils/quick-switcher.ts +52 -0
- package/apps/sessrumnir/src/renderer/src/utils/rank-file-results.test.ts +46 -0
- package/apps/sessrumnir/src/renderer/src/utils/rank-file-results.ts +23 -0
- package/apps/sessrumnir/src/renderer/src/utils/relative-time.tsx +25 -0
- package/apps/sessrumnir/src/renderer/src/utils/session-title.test.ts +98 -0
- package/apps/sessrumnir/src/renderer/src/utils/session-title.ts +58 -0
- package/apps/sessrumnir/src/renderer/src/utils/stale-guard.test.ts +29 -0
- package/apps/sessrumnir/src/renderer/src/utils/stale-guard.ts +20 -0
- package/apps/sessrumnir/src/renderer/src/utils/theme.test.ts +174 -0
- package/apps/sessrumnir/src/renderer/src/utils/theme.ts +159 -0
- package/apps/sessrumnir/src/renderer/src/utils/workflow-runs.test.ts +130 -0
- package/apps/sessrumnir/src/renderer/src/utils/workflow-runs.ts +84 -0
- package/apps/sessrumnir/src/renderer/tsconfig.json +24 -0
- package/apps/sessrumnir/src/shared/agent-engine-label.test.ts +45 -0
- package/apps/sessrumnir/src/shared/agent-engine-label.ts +53 -0
- package/apps/sessrumnir/src/shared/app-settings.test.ts +25 -0
- package/apps/sessrumnir/src/shared/app-settings.ts +23 -0
- package/apps/sessrumnir/src/shared/bridge-http.ts +341 -0
- package/apps/sessrumnir/src/shared/bridge.ts +337 -0
- package/apps/sessrumnir/src/shared/council-config.test.ts +300 -0
- package/apps/sessrumnir/src/shared/council-config.ts +356 -0
- package/apps/sessrumnir/src/shared/default-settings.ts +39 -0
- package/apps/sessrumnir/src/shared/folder-drop.test.ts +118 -0
- package/apps/sessrumnir/src/shared/folder-drop.ts +74 -0
- package/apps/sessrumnir/src/shared/fork-point.test.ts +30 -0
- package/apps/sessrumnir/src/shared/fork-point.ts +24 -0
- package/apps/sessrumnir/src/shared/i18n/i18next.d.ts +10 -0
- package/apps/sessrumnir/src/shared/i18n/index.test.ts +51 -0
- package/apps/sessrumnir/src/shared/i18n/index.ts +50 -0
- package/apps/sessrumnir/src/shared/i18n/languages.ts +12 -0
- package/apps/sessrumnir/src/shared/i18n/locale-checks.ts +98 -0
- package/apps/sessrumnir/src/shared/i18n/locales.test.ts +92 -0
- package/apps/sessrumnir/src/shared/i18n/pseudo.test.ts +39 -0
- package/apps/sessrumnir/src/shared/i18n/pseudo.ts +44 -0
- package/apps/sessrumnir/src/shared/i18n/resolve.test.ts +43 -0
- package/apps/sessrumnir/src/shared/i18n/resolve.ts +41 -0
- package/apps/sessrumnir/src/shared/i18n/resources.ts +11 -0
- package/apps/sessrumnir/src/shared/ipc-contracts.ts +1539 -0
- package/apps/sessrumnir/src/shared/models-config.test.ts +124 -0
- package/apps/sessrumnir/src/shared/models-config.ts +167 -0
- package/apps/sessrumnir/src/shared/package-filter.ts +19 -0
- package/apps/sessrumnir/src/shared/package-spec.test.ts +51 -0
- package/apps/sessrumnir/src/shared/package-spec.ts +25 -0
- package/apps/sessrumnir/src/shared/path-compare.test.ts +38 -0
- package/apps/sessrumnir/src/shared/path-compare.ts +76 -0
- package/apps/sessrumnir/src/shared/permission-mode.ts +8 -0
- package/apps/sessrumnir/src/shared/pi-command.test.ts +165 -0
- package/apps/sessrumnir/src/shared/pi-command.ts +139 -0
- package/apps/sessrumnir/src/shared/product-name.ts +7 -0
- package/apps/sessrumnir/src/shared/session-lineage.test.ts +103 -0
- package/apps/sessrumnir/src/shared/session-lineage.ts +50 -0
- package/apps/sessrumnir/src/shared/session-preview.test.ts +93 -0
- package/apps/sessrumnir/src/shared/session-preview.ts +56 -0
- package/apps/sessrumnir/src/shared/sidebar-width.test.ts +58 -0
- package/apps/sessrumnir/src/shared/sidebar-width.ts +37 -0
- package/apps/sessrumnir/src/shared/theme/builtin-ids.ts +16 -0
- package/apps/sessrumnir/src/shared/theme/resolve.test.ts +66 -0
- package/apps/sessrumnir/src/shared/theme/resolve.ts +29 -0
- package/apps/sessrumnir/src/shared/theme/syntax-defaults.ts +24 -0
- package/apps/sessrumnir/src/shared/theme/theme-file.test.ts +88 -0
- package/apps/sessrumnir/src/shared/theme/theme-file.ts +132 -0
- package/apps/sessrumnir/src/shared/theme/tokens.test.ts +35 -0
- package/apps/sessrumnir/src/shared/theme/tokens.ts +86 -0
- package/apps/sessrumnir/src/shared/tsconfig.json +17 -0
- package/apps/sessrumnir/src/shared/untrusted-data.test.ts +32 -0
- package/apps/sessrumnir/src/shared/untrusted-data.ts +22 -0
- package/apps/sessrumnir/src/shared/version-compare.test.ts +33 -0
- package/apps/sessrumnir/src/shared/version-compare.ts +50 -0
- package/apps/sessrumnir/src/shared/workflow-control.ts +33 -0
- package/apps/sessrumnir/src/web-server.ts +315 -0
- package/apps/sessrumnir/tsconfig.json +26 -0
- package/apps/smidja/smidja_build.py +45 -0
- package/apps/smidja/smidja_build_review.py +76 -0
- package/apps/smidja/smidja_build_test.py +79 -0
- package/apps/smidja/smidja_document.py +76 -0
- package/apps/smidja/smidja_modules/agent_cc.py +15 -0
- package/apps/smidja/smidja_modules/agent_opencode.py +194 -0
- package/apps/smidja/smidja_modules/agent_pi.py +392 -0
- package/apps/smidja/smidja_modules/agents.py +993 -0
- package/apps/smidja/smidja_modules/changes.py +103 -0
- package/apps/smidja/smidja_modules/console.py +131 -0
- package/apps/smidja/smidja_modules/data_types.py +447 -0
- package/apps/smidja/smidja_modules/gates.py +108 -0
- package/apps/smidja/smidja_modules/git_helper.py +120 -0
- package/apps/smidja/smidja_modules/lm_local.py +144 -0
- package/apps/smidja/smidja_modules/permissions.py +194 -0
- package/apps/smidja/smidja_modules/prompts.py +21 -0
- package/apps/smidja/smidja_modules/quality.py +240 -0
- package/apps/smidja/smidja_modules/runner.py +155 -0
- package/apps/smidja/smidja_modules/session.py +50 -0
- package/apps/smidja/smidja_modules/stall_watch.py +149 -0
- package/apps/smidja/smidja_modules/tracer.py +271 -0
- package/apps/smidja/smidja_modules/utils.py +77 -0
- package/apps/smidja/smidja_orchestrate.py +162 -0
- package/apps/smidja/smidja_plan.py +45 -0
- package/apps/smidja/smidja_plan_build.py +55 -0
- package/apps/smidja/smidja_plan_build_test.py +86 -0
- package/apps/smidja/smidja_plan_build_test_quality.py +98 -0
- package/apps/smidja/smidja_prompt.py +44 -0
- package/apps/smidja/smidja_quality.py +49 -0
- package/apps/smidja/smidja_recon_iv.py +202 -0
- package/apps/smidja/smidja_scout.py +45 -0
- package/apps/smidja/smidja_simple_sdlc.py +183 -0
- package/apps/smidja/smidja_smidja_config/smidja.config.yaml +143 -0
- package/apps/smidja-factory/AGENTS.md +165 -0
- package/apps/smidja-factory/README.md +3 -0
- package/apps/smidja-factory/SKILL.md +18 -0
- package/apps/smidja-factory/apps/visualizer/.oxlintrc.json +18 -0
- package/apps/smidja-factory/apps/visualizer/bun.lock +269 -0
- package/apps/smidja-factory/apps/visualizer/desktop/icon.png +0 -0
- package/apps/smidja-factory/apps/visualizer/desktop/main.js +140 -0
- package/apps/smidja-factory/apps/visualizer/desktop/package-lock.json +871 -0
- package/apps/smidja-factory/apps/visualizer/desktop/package.json +18 -0
- package/apps/smidja-factory/apps/visualizer/desktop/preload.js +19 -0
- package/apps/smidja-factory/apps/visualizer/index.html +28 -0
- package/apps/smidja-factory/apps/visualizer/package.json +31 -0
- package/apps/smidja-factory/apps/visualizer/public/icon.svg +7 -0
- package/apps/smidja-factory/apps/visualizer/public/models/claude.png +0 -0
- package/apps/smidja-factory/apps/visualizer/public/models/gemini.png +0 -0
- package/apps/smidja-factory/apps/visualizer/public/models/kimi.png +0 -0
- package/apps/smidja-factory/apps/visualizer/public/models/openai.png +0 -0
- package/apps/smidja-factory/apps/visualizer/public/models/zai.png +0 -0
- package/apps/smidja-factory/apps/visualizer/server/chat.ts +425 -0
- package/apps/smidja-factory/apps/visualizer/server/db.ts +1050 -0
- package/apps/smidja-factory/apps/visualizer/server/index.ts +648 -0
- package/apps/smidja-factory/apps/visualizer/server/model-catalog.ts +90 -0
- package/apps/smidja-factory/apps/visualizer/server/roster-api.ts +75 -0
- package/apps/smidja-factory/apps/visualizer/server/roster_resolve.py +170 -0
- package/apps/smidja-factory/apps/visualizer/server/settings.ts +106 -0
- package/apps/smidja-factory/apps/visualizer/shared/types.ts +630 -0
- package/apps/smidja-factory/apps/visualizer/src/App.vue +379 -0
- package/apps/smidja-factory/apps/visualizer/src/components/ChatInput.vue +155 -0
- package/apps/smidja-factory/apps/visualizer/src/components/ChatThread.vue +219 -0
- package/apps/smidja-factory/apps/visualizer/src/components/ChatView.vue +335 -0
- package/apps/smidja-factory/apps/visualizer/src/components/DecisionsView.vue +177 -0
- package/apps/smidja-factory/apps/visualizer/src/components/DetailSection.vue +76 -0
- package/apps/smidja-factory/apps/visualizer/src/components/MemoryView.vue +397 -0
- package/apps/smidja-factory/apps/visualizer/src/components/PhaseDetail.vue +1354 -0
- package/apps/smidja-factory/apps/visualizer/src/components/PhaseDots.vue +55 -0
- package/apps/smidja-factory/apps/visualizer/src/components/SessionCard.vue +583 -0
- package/apps/smidja-factory/apps/visualizer/src/components/SessionMiniCard.vue +58 -0
- package/apps/smidja-factory/apps/visualizer/src/components/SessionPanel.vue +272 -0
- package/apps/smidja-factory/apps/visualizer/src/components/SessionStartForm.vue +152 -0
- package/apps/smidja-factory/apps/visualizer/src/components/SessionTrace.vue +1157 -0
- package/apps/smidja-factory/apps/visualizer/src/components/SessionsList.vue +96 -0
- package/apps/smidja-factory/apps/visualizer/src/components/SettingsView.vue +152 -0
- package/apps/smidja-factory/apps/visualizer/src/components/StatChip.vue +98 -0
- package/apps/smidja-factory/apps/visualizer/src/components/StatsView.vue +382 -0
- package/apps/smidja-factory/apps/visualizer/src/components/StatusChip.vue +73 -0
- package/apps/smidja-factory/apps/visualizer/src/components/ToolCallCard.vue +156 -0
- package/apps/smidja-factory/apps/visualizer/src/lib/api.ts +177 -0
- package/apps/smidja-factory/apps/visualizer/src/lib/chat-api.ts +95 -0
- package/apps/smidja-factory/apps/visualizer/src/lib/chat-store.ts +351 -0
- package/apps/smidja-factory/apps/visualizer/src/lib/events.ts +131 -0
- package/apps/smidja-factory/apps/visualizer/src/lib/format.ts +92 -0
- package/apps/smidja-factory/apps/visualizer/src/lib/highlight.ts +54 -0
- package/apps/smidja-factory/apps/visualizer/src/lib/markdown.ts +120 -0
- package/apps/smidja-factory/apps/visualizer/src/lib/models.ts +42 -0
- package/apps/smidja-factory/apps/visualizer/src/lib/router.ts +67 -0
- package/apps/smidja-factory/apps/visualizer/src/lib/types.ts +61 -0
- package/apps/smidja-factory/apps/visualizer/src/main.ts +13 -0
- package/apps/smidja-factory/apps/visualizer/src/style.css +592 -0
- package/apps/smidja-factory/apps/visualizer/tsconfig.json +30 -0
- package/apps/smidja-factory/apps/visualizer/vite.config.js +32 -0
- package/apps/smidja-factory/apps/visualizer/vite.config.ts +31 -0
- package/apps/smidja-factory/cookbooks/create_config.md +61 -0
- package/apps/smidja-factory/cookbooks/create_smidja.md +120 -0
- package/apps/smidja-factory/cookbooks/how_to_prompt_for_the_eng.md +110 -0
- package/apps/smidja-factory/cookbooks/install.md +56 -0
- package/apps/smidja-factory/cookbooks/run_smidja.md +122 -0
- package/apps/smidja-factory/cookbooks/smidja_overview.md +88 -0
- package/apps/smidja-factory/cookbooks/update_config.md +103 -0
- package/apps/smidja-factory/cookbooks/update_modules.md +100 -0
- package/apps/smidja-factory/cookbooks/update_smidja.md +90 -0
- package/apps/smidja-factory/docs/enhancement-plan.md +420 -0
- package/apps/smidja-factory/references/config.md +202 -0
- package/apps/smidja-factory/references/handoff.md +161 -0
- package/apps/smidja-factory/references/observability.md +166 -0
- package/apps/smidja-factory/scripts/install.py +113 -0
- package/apps/smidja-factory/scripts/make_config.py +35 -0
- package/apps/smidja-factory/scripts/make_smidja.py +119 -0
- package/apps/smidja-factory/skills/add-or-edit-ai-models/SKILL.md +151 -0
- package/apps/smidja-factory/skills/create-new-agent/SKILL.md +125 -0
- package/apps/smidja-factory/skills/create-new-teams/SKILL.md +151 -0
- package/apps/smidja-factory/skills/git-ops/README.md +25 -0
- package/apps/smidja-factory/skills/git-ops/SKILL.md +18 -0
- package/apps/smidja-factory/skills/git-ops/create_branch.sh +79 -0
- package/apps/smidja-factory/skills/git-ops/safe_commit.sh +82 -0
- package/apps/smidja-factory/skills/git-ops/sync_upstream.sh +94 -0
- package/apps/smidja-factory/skills/how-to-run-agent-teams/SKILL.md +117 -0
- package/apps/smidja-factory/skills/smidja-instructions/SKILL.md +168 -0
- package/apps/smidja-factory/skills/smidja-launcher/SKILL.md +155 -0
- package/apps/smidja-factory/skills/smidja-start/SKILL.md +266 -0
- package/apps/smidja-factory/skills/volundr/SKILL.md +232 -0
- package/apps/smidja-factory/skills/volundr/prompt/dispatch-prompt.md +91 -0
- package/apps/smidja-factory/skills/volundr/prompt/volundr-system.md +63 -0
- package/apps/smidja-factory/skills/volundr/scripts/volundr-observe.py +52 -0
- package/apps/smidja-factory/skills/volundr/scripts/volundr-recall.py +54 -0
- package/apps/smidja-factory/skills/volundr/scripts/volundr-status.py +51 -0
- package/apps/smidja-factory/skills/volundr/scripts/volundr-teach.py +47 -0
- package/apps/smidja-factory/templates/env.sample +28 -0
- package/apps/smidja-factory/templates/harness_engineering/subagents.ts +706 -0
- package/apps/smidja-factory/templates/harness_engineering/themeMap.ts +145 -0
- package/apps/smidja-factory/templates/justfile +89 -0
- package/apps/smidja-factory/templates/prompt_engineering/builder/system.md +13 -0
- package/apps/smidja-factory/templates/prompt_engineering/builder/user.md +34 -0
- package/apps/smidja-factory/templates/prompt_engineering/documenter/system.md +17 -0
- package/apps/smidja-factory/templates/prompt_engineering/documenter/user.md +48 -0
- package/apps/smidja-factory/templates/prompt_engineering/orchestrator/system.md +55 -0
- package/apps/smidja-factory/templates/prompt_engineering/orchestrator/user.md +39 -0
- package/apps/smidja-factory/templates/prompt_engineering/planner/system.md +21 -0
- package/apps/smidja-factory/templates/prompt_engineering/planner/user.md +45 -0
- package/apps/smidja-factory/templates/prompt_engineering/recon_orchestrator/system.md +51 -0
- package/apps/smidja-factory/templates/prompt_engineering/recon_orchestrator/user.md +26 -0
- package/apps/smidja-factory/templates/prompt_engineering/reviewer/system.md +16 -0
- package/apps/smidja-factory/templates/prompt_engineering/reviewer/user.md +44 -0
- package/apps/smidja-factory/templates/prompt_engineering/scout/system.md +32 -0
- package/apps/smidja-factory/templates/prompt_engineering/scout/user.md +34 -0
- package/apps/smidja-factory/templates/smidja/smidja_build.py +45 -0
- package/apps/smidja-factory/templates/smidja/smidja_build_review.py +76 -0
- package/apps/smidja-factory/templates/smidja/smidja_build_test.py +79 -0
- package/apps/smidja-factory/templates/smidja/smidja_document.py +76 -0
- package/apps/smidja-factory/templates/smidja/smidja_modules/agent_cc.py +15 -0
- package/apps/smidja-factory/templates/smidja/smidja_modules/agent_opencode.py +194 -0
- package/apps/smidja-factory/templates/smidja/smidja_modules/agent_pi.py +392 -0
- package/apps/smidja-factory/templates/smidja/smidja_modules/agents.py +993 -0
- package/apps/smidja-factory/templates/smidja/smidja_modules/changes.py +103 -0
- package/apps/smidja-factory/templates/smidja/smidja_modules/console.py +131 -0
- package/apps/smidja-factory/templates/smidja/smidja_modules/data_types.py +447 -0
- package/apps/smidja-factory/templates/smidja/smidja_modules/gates.py +108 -0
- package/apps/smidja-factory/templates/smidja/smidja_modules/git_helper.py +120 -0
- package/apps/smidja-factory/templates/smidja/smidja_modules/lm_local.py +144 -0
- package/apps/smidja-factory/templates/smidja/smidja_modules/permissions.py +194 -0
- package/apps/smidja-factory/templates/smidja/smidja_modules/prompts.py +21 -0
- package/apps/smidja-factory/templates/smidja/smidja_modules/quality.py +240 -0
- package/apps/smidja-factory/templates/smidja/smidja_modules/runner.py +155 -0
- package/apps/smidja-factory/templates/smidja/smidja_modules/session.py +50 -0
- package/apps/smidja-factory/templates/smidja/smidja_modules/stall_watch.py +149 -0
- package/apps/smidja-factory/templates/smidja/smidja_modules/tracer.py +271 -0
- package/apps/smidja-factory/templates/smidja/smidja_modules/utils.py +77 -0
- package/apps/smidja-factory/templates/smidja/smidja_orchestrate.py +162 -0
- package/apps/smidja-factory/templates/smidja/smidja_plan.py +45 -0
- package/apps/smidja-factory/templates/smidja/smidja_plan_build.py +55 -0
- package/apps/smidja-factory/templates/smidja/smidja_plan_build_test.py +86 -0
- package/apps/smidja-factory/templates/smidja/smidja_plan_build_test_quality.py +98 -0
- package/apps/smidja-factory/templates/smidja/smidja_prompt.py +44 -0
- package/apps/smidja-factory/templates/smidja/smidja_quality.py +49 -0
- package/apps/smidja-factory/templates/smidja/smidja_recon_iv.py +202 -0
- package/apps/smidja-factory/templates/smidja/smidja_scout.py +45 -0
- package/apps/smidja-factory/templates/smidja/smidja_simple_sdlc.py +183 -0
- package/apps/smidja-factory/templates/smidja.config.yaml +143 -0
- package/bin/app-build.sh +36 -0
- package/bin/electron-lib.sh +25 -0
- package/bin/sessrumnir.sh +1 -1
- package/bin/ymir-install.sh +7 -0
- package/install.sh +88 -0
- package/package.json +16 -7
- package/scripts/electron.sh +6 -2
- package/.agents/bus/messages.json +0 -1
- package/.agents/config/agents.machine.example.yaml +0 -16
- package/.pi/mcp.json +0 -16
- package/assets/reference/state/.branch-eligible-owner +0 -4
- package/assets/reference/state/.branch-mirror-cursor +0 -1
- package/assets/reference/state/.branch-outcomes-cursor +0 -1
- package/assets/reference/state/.branch-session +0 -1
- package/assets/reference/state/.count-default_wF_p5 +0 -1
- package/assets/reference/state/.count-default_wF_p6 +0 -1
- package/assets/reference/state/.count-default_wR_p2 +0 -1
- package/assets/reference/state/.count-default_wS_p2 +0 -1
- package/assets/reference/state/.count-firstmate_fm-server-knowledge +0 -1
- package/assets/reference/state/.hash-default_wF_p5 +0 -1
- package/assets/reference/state/.hash-default_wF_p6 +0 -1
- package/assets/reference/state/.hash-default_wR_p2 +0 -1
- package/assets/reference/state/.hash-default_wS_p2 +0 -1
- package/assets/reference/state/.hash-firstmate_fm-server-knowledge +0 -1
- package/assets/reference/state/.heartbeat-streak +0 -1
- package/assets/reference/state/.inactive-outcome-reconcile +0 -2
- package/assets/reference/state/.lock +0 -1
- package/assets/reference/state/.pi-branch-extension-loaded +0 -1
- package/assets/reference/state/.pi-turnend-extension-loaded +0 -2
- package/assets/reference/state/.pi-watch-extension-loaded +0 -2
- package/assets/reference/state/.seen-server-knowledge_turn-ended +0 -1
- package/assets/reference/state/.session-start-agents-baseline +0 -2
- package/assets/reference/state/.session-start-complete +0 -1
- package/assets/reference/state/.stale-default_wF_p5 +0 -1
- package/assets/reference/state/.stale-default_wR_p2 +0 -1
- package/assets/reference/state/.stale-firstmate_fm-server-knowledge +0 -1
- package/assets/reference/state/.stale-since-default_wF_p5 +0 -1
- package/assets/reference/state/.stale-since-default_wR_p2 +0 -1
- package/assets/reference/state/.stale-since-firstmate_fm-server-knowledge +0 -1
- package/assets/reference/state/.startup-network.delivered +0 -1
- package/assets/reference/state/.startup-network.report +0 -1
- package/assets/reference/state/.startup-network.status +0 -10
- package/assets/reference/state/.startup-network.timings +0 -6
- package/assets/reference/state/.trace-context-effective +0 -1
- package/assets/reference/state/.wake-queue +0 -0
- package/assets/reference/state/.wake-queue.seq +0 -1
- package/assets/reference/state/.wake-rows.consume.BcqXSq +0 -0
- package/assets/reference/state/.wake-rows.consume.NDZZei +0 -0
- package/assets/reference/state/.wake-rows.consume.VGkhYm +0 -0
- package/assets/reference/state/.wake-rows.consume.tR2rTy +0 -0
- package/assets/reference/state/.watch-arm-output.3581p6 +0 -0
- package/assets/reference/state/.watch-arm-output.3ciDNP +0 -0
- package/assets/reference/state/.watch-arm-output.SksR6k +0 -0
- package/assets/reference/state/.watch-cycle-exits.log +0 -22
- package/assets/reference/state/.watch-deliveries.log +0 -19
- package/assets/reference/state/.watch-triage.log +0 -38
- package/assets/reference/state/.watch.lock/fm-home +0 -1
- package/assets/reference/state/.watch.lock/pid +0 -1
- package/assets/reference/state/.watch.lock/pid-identity +0 -1
- package/assets/reference/state/.watch.lock/watcher-path +0 -1
- package/assets/reference/state/.watch.lock.owner.qqbxmS/fm-home +0 -1
- package/assets/reference/state/.watch.lock.owner.qqbxmS/pid +0 -1
- package/assets/reference/state/.watch.lock.owner.qqbxmS/pid-identity +0 -1
- package/assets/reference/state/.watch.lock.owner.qqbxmS/watcher-path +0 -1
- package/assets/reference/state/.watcher-down +0 -1
- package/assets/reference/state/branch-outcomes.jsonl +0 -1
- package/assets/reference/state/branch-session/2026-09-04T16-49-38-671Z_01a06d53-6b6f-7619-930d-e6dfd9a4a29e.jsonl +0 -211
- package/assets/reference/state/home-summary.json +0 -42
- package/assets/reference/state/server-knowledge.busy-gen +0 -1
- package/assets/reference/state/server-knowledge.busy-state +0 -1
- package/assets/reference/state/server-knowledge.herdr-presentation +0 -12
- package/assets/reference/state/server-knowledge.meta +0 -18
- package/assets/reference/state/server-knowledge.pi-ext.ts +0 -26
- package/assets/reference/state/server-knowledge.turn-ended +0 -0
- /package/{assets/reference/state/.last-check → apps/hlidskjalf/src/app/.gitkeep} +0 -0
- /package/{assets/reference/state/.last-heartbeat → apps/hlidskjalf/src/components/.gitkeep} +0 -0
- /package/{assets/reference/state/.last-watcher-beat → apps/hlidskjalf/src/services/.gitkeep} +0 -0
- /package/{assets/reference/state/.main-eligible-rows.tmp.p2HMKo → apps/smidja/smidja_modules/__init__.py} +0 -0
- /package/{assets/reference/state/.main-eligible-rows.tmp.Exxm82 → apps/smidja-factory/templates/smidja/smidja_modules/__init__.py} +0 -0
|
@@ -0,0 +1,722 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const electron = require("electron");
|
|
3
|
+
const BASE = "";
|
|
4
|
+
const WS_BASE = "";
|
|
5
|
+
function createHttpBridge() {
|
|
6
|
+
const subscriptions = /* @__PURE__ */ new Map();
|
|
7
|
+
async function invoke(channel, ...args) {
|
|
8
|
+
const body = args.length === 1 ? args[0] : args;
|
|
9
|
+
const res = await fetch(`${BASE}/api/${channel}`, {
|
|
10
|
+
method: "POST",
|
|
11
|
+
headers: { "Content-Type": "application/json" },
|
|
12
|
+
body: JSON.stringify(body)
|
|
13
|
+
});
|
|
14
|
+
if (!res.ok) {
|
|
15
|
+
const text = await res.text().catch(() => "");
|
|
16
|
+
throw new Error(`HTTP ${res.status}: ${text}`);
|
|
17
|
+
}
|
|
18
|
+
return res.json();
|
|
19
|
+
}
|
|
20
|
+
function subscribe(channel, callback) {
|
|
21
|
+
const ws = new WebSocket(`${WS_BASE}/ws/${channel}`);
|
|
22
|
+
const handler = (event) => {
|
|
23
|
+
const data = typeof event.data === "string" ? JSON.parse(event.data) : event.data;
|
|
24
|
+
callback(data);
|
|
25
|
+
};
|
|
26
|
+
ws.addEventListener("message", handler);
|
|
27
|
+
const entry = { ws, handler };
|
|
28
|
+
const existing = subscriptions.get(channel) || [];
|
|
29
|
+
existing.push(entry);
|
|
30
|
+
subscriptions.set(channel, existing);
|
|
31
|
+
return () => {
|
|
32
|
+
const subs = subscriptions.get(channel);
|
|
33
|
+
if (subs) {
|
|
34
|
+
const idx = subs.indexOf(entry);
|
|
35
|
+
if (idx >= 0) subs.splice(idx, 1);
|
|
36
|
+
ws.close();
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
const pi = {
|
|
41
|
+
start: (options) => invoke("pi:start", options),
|
|
42
|
+
stop: () => invoke("pi:stop"),
|
|
43
|
+
restart: (options) => invoke("pi:restart", options),
|
|
44
|
+
getStatus: () => invoke("pi:status"),
|
|
45
|
+
detectInstallations: (options) => invoke("pi:detect-installations", options)
|
|
46
|
+
};
|
|
47
|
+
const commands = {
|
|
48
|
+
prompt: (message, options) => invoke("pi:prompt", message, options),
|
|
49
|
+
steer: (message, images) => invoke("pi:steer", message, images),
|
|
50
|
+
followUp: (message) => invoke("pi:follow-up", message),
|
|
51
|
+
abort: () => invoke("pi:abort"),
|
|
52
|
+
bash: (command) => invoke("pi:bash", command),
|
|
53
|
+
abortBash: () => invoke("pi:abort-bash")
|
|
54
|
+
};
|
|
55
|
+
const session = {
|
|
56
|
+
createNew: () => invoke("session:new"),
|
|
57
|
+
launchTask: (options) => invoke("session:launch-task", options),
|
|
58
|
+
closeRuntime: (runtimeId) => invoke("session:close-runtime", runtimeId),
|
|
59
|
+
switch: (sessionPath, cwd) => invoke("session:switch", sessionPath, cwd),
|
|
60
|
+
listRuntimes: () => invoke("session:list-runtimes"),
|
|
61
|
+
fork: (entryId) => invoke("session:fork", entryId),
|
|
62
|
+
clone: () => invoke("session:clone"),
|
|
63
|
+
list: (cwd) => invoke("session:list", cwd),
|
|
64
|
+
listAll: (cwd) => invoke("session:list-all", cwd),
|
|
65
|
+
getState: () => invoke("session:get-state"),
|
|
66
|
+
getMessages: () => invoke("session:get-messages"),
|
|
67
|
+
getStats: () => invoke("session:get-stats"),
|
|
68
|
+
setName: (name) => invoke("session:set-name", name),
|
|
69
|
+
exportHtml: (outputPath) => invoke("session:export-html", outputPath),
|
|
70
|
+
getForkMessages: () => invoke("session:get-fork-messages"),
|
|
71
|
+
delete: (sessionPath) => invoke("session:delete", sessionPath),
|
|
72
|
+
archive: (sessionId) => invoke("session:archive", sessionId),
|
|
73
|
+
unarchive: (sessionId) => invoke("session:unarchive", sessionId),
|
|
74
|
+
listArchived: () => invoke("session:list-archived"),
|
|
75
|
+
getLineage: () => invoke("session:get-lineage"),
|
|
76
|
+
compact: (customInstructions) => invoke("session:compact", customInstructions)
|
|
77
|
+
};
|
|
78
|
+
const model = {
|
|
79
|
+
set: (provider, modelId) => invoke("model:set", provider, modelId),
|
|
80
|
+
cycle: () => invoke("model:cycle"),
|
|
81
|
+
listAvailable: () => invoke("model:list-available")
|
|
82
|
+
};
|
|
83
|
+
const thinking = {
|
|
84
|
+
setLevel: (level) => invoke("thinking:set-level", level),
|
|
85
|
+
cycleLevel: () => invoke("thinking:cycle-level")
|
|
86
|
+
};
|
|
87
|
+
const settings = {
|
|
88
|
+
getAll: () => invoke("settings:get-all"),
|
|
89
|
+
save: (s) => invoke("settings:save", s)
|
|
90
|
+
};
|
|
91
|
+
const permissionRules = {
|
|
92
|
+
get: (scope) => invoke("permission-rules:get", scope),
|
|
93
|
+
set: (scope, rules) => invoke("permission-rules:set", scope, rules),
|
|
94
|
+
importFromFile: () => invoke("permission-rules:import"),
|
|
95
|
+
exportToFile: (rules) => invoke("permission-rules:export", rules),
|
|
96
|
+
workspaceStatus: () => invoke("permission-rules:workspace-status"),
|
|
97
|
+
removeWorkspace: () => invoke("permission-rules:remove-workspace"),
|
|
98
|
+
setWorkspaceTrust: (trusted) => invoke("permission-rules:set-workspace-trust", trusted)
|
|
99
|
+
};
|
|
100
|
+
const themes = {
|
|
101
|
+
list: () => invoke("themes:list"),
|
|
102
|
+
save: (file, existingId) => invoke("themes:save", file, existingId),
|
|
103
|
+
delete: (id) => invoke("themes:delete", id),
|
|
104
|
+
installFromUrl: (url) => invoke("themes:install-from-url", url),
|
|
105
|
+
export: (file) => invoke("themes:export", file),
|
|
106
|
+
import: () => invoke("themes:import"),
|
|
107
|
+
gallery: () => invoke("themes:gallery-list"),
|
|
108
|
+
galleryImage: (url) => invoke("themes:gallery-image", url)
|
|
109
|
+
};
|
|
110
|
+
const workspace = {
|
|
111
|
+
list: () => invoke("workspace:list"),
|
|
112
|
+
create: (name, path) => invoke("workspace:create", name, path),
|
|
113
|
+
createTab: (options) => invoke("workspace:create-tab", options),
|
|
114
|
+
remove: (workspaceId) => invoke("workspace:remove", workspaceId),
|
|
115
|
+
rename: (workspaceId, name) => invoke("workspace:rename", workspaceId, name),
|
|
116
|
+
changePath: (workspaceId, newPath) => invoke("workspace:change-path", workspaceId, newPath),
|
|
117
|
+
pathExists: () => invoke("workspace:path-exists"),
|
|
118
|
+
setActive: (workspaceId) => invoke("workspace:set-active", workspaceId),
|
|
119
|
+
getActive: () => invoke("workspace:get-active"),
|
|
120
|
+
startPi: (workspaceId, options) => invoke("workspace:start-pi", workspaceId, options),
|
|
121
|
+
stopPi: (workspaceId) => invoke("workspace:stop-pi", workspaceId),
|
|
122
|
+
getActivity: () => invoke("workspace:activity"),
|
|
123
|
+
takePendingActivation: () => invoke("workspace:take-pending-activation")
|
|
124
|
+
};
|
|
125
|
+
const packages = {
|
|
126
|
+
listInstalled: () => invoke("package:list-installed"),
|
|
127
|
+
install: (spec) => invoke("package:install", spec),
|
|
128
|
+
remove: (spec) => invoke("package:remove", spec),
|
|
129
|
+
update: (spec) => invoke("package:update", spec),
|
|
130
|
+
updateAll: () => invoke("package:update-all"),
|
|
131
|
+
checkUpdates: () => invoke("package:check-updates"),
|
|
132
|
+
fetchCatalog: (query) => invoke("package:catalog-fetch", query)
|
|
133
|
+
};
|
|
134
|
+
const models = {
|
|
135
|
+
read: () => invoke("models:read"),
|
|
136
|
+
write: (config) => invoke("models:write", config)
|
|
137
|
+
};
|
|
138
|
+
const council = {
|
|
139
|
+
detect: () => invoke("council:detect"),
|
|
140
|
+
runConsultants: (payload) => invoke("council:run-consultants", payload),
|
|
141
|
+
arbiter: (payload) => invoke("council:arbiter", payload),
|
|
142
|
+
onProgress: (callback) => subscribe("event:council-progress", callback)
|
|
143
|
+
};
|
|
144
|
+
const skills = { list: () => invoke("skills:list") };
|
|
145
|
+
const piCommands = { list: () => invoke("commands:list") };
|
|
146
|
+
const mcpServers = { list: () => invoke("mcp:servers-list") };
|
|
147
|
+
const tags = {
|
|
148
|
+
get: (sessionId) => invoke("tag:get", sessionId),
|
|
149
|
+
set: (sessionId, tags2) => invoke("tag:set", sessionId, tags2),
|
|
150
|
+
add: (sessionId, tag) => invoke("tag:add", sessionId, tag),
|
|
151
|
+
remove: (sessionId, tag) => invoke("tag:remove", sessionId, tag),
|
|
152
|
+
getAll: () => invoke("tag:get-all"),
|
|
153
|
+
getAllUsed: () => invoke("tag:get-all-used"),
|
|
154
|
+
autoGetAll: () => invoke("tag:auto-get-all"),
|
|
155
|
+
autoEnsure: (sessions) => invoke("tag:auto-ensure", sessions),
|
|
156
|
+
autoRemove: (sessionId) => invoke("tag:auto-remove", sessionId)
|
|
157
|
+
};
|
|
158
|
+
const git = {
|
|
159
|
+
status: () => invoke("git:conveyor-status"),
|
|
160
|
+
commit: (options) => invoke("git:conveyor-commit", options),
|
|
161
|
+
push: () => invoke("git:conveyor-push"),
|
|
162
|
+
createPullRequest: (options) => invoke("git:conveyor-create-pr", options)
|
|
163
|
+
};
|
|
164
|
+
const notes = {
|
|
165
|
+
list: () => invoke("notes:list"),
|
|
166
|
+
create: (input) => invoke("notes:create", input),
|
|
167
|
+
update: (id, patch) => invoke("notes:update", id, patch),
|
|
168
|
+
remove: (id) => invoke("notes:remove", id)
|
|
169
|
+
};
|
|
170
|
+
const files = {
|
|
171
|
+
getTree: (maxDepth) => invoke("file:tree", maxDepth),
|
|
172
|
+
search: (query) => invoke("file:search", query),
|
|
173
|
+
searchContent: (query) => invoke("file:search-content", query),
|
|
174
|
+
read: (path) => invoke("file:read", path),
|
|
175
|
+
readAttachment: (path) => invoke("file:read-attachment", path),
|
|
176
|
+
write: (path, content) => invoke("file:write", path, content),
|
|
177
|
+
getDiff: (filePath) => invoke("file:diff", filePath),
|
|
178
|
+
getStagedDiff: (filePath) => invoke("file:staged-diff", filePath),
|
|
179
|
+
getGitStatus: () => invoke("git:status"),
|
|
180
|
+
getGitBranch: () => invoke("git:branch")
|
|
181
|
+
};
|
|
182
|
+
const system = {
|
|
183
|
+
openDialog: (options) => invoke("system:open-dialog", options),
|
|
184
|
+
getPath: (name) => invoke("system:get-path", name),
|
|
185
|
+
getPathForFile: (_file) => "",
|
|
186
|
+
// NOT PORTABLE: requires webUtils.getPathForFile
|
|
187
|
+
pathKind: (path) => invoke("system:path-kind", path),
|
|
188
|
+
openExternal: (url) => invoke("system:open-external", url),
|
|
189
|
+
hallUrl: () => invoke("system:hall-url"),
|
|
190
|
+
getVersion: () => invoke("system:get-version"),
|
|
191
|
+
get platform() {
|
|
192
|
+
return "linux";
|
|
193
|
+
}
|
|
194
|
+
// stub: web has no process.platform
|
|
195
|
+
};
|
|
196
|
+
const activity = {
|
|
197
|
+
getStats: () => invoke("activity:get-stats")
|
|
198
|
+
};
|
|
199
|
+
const workflows = {
|
|
200
|
+
list: () => invoke("workflow:list"),
|
|
201
|
+
getRun: (workspaceId, runId) => invoke("workflow:get-run", workspaceId, runId),
|
|
202
|
+
control: (workspaceId, runId, action) => invoke("workflow:control", workspaceId, runId, action),
|
|
203
|
+
setPersistAgentSessions: (enabled) => invoke("workflow:set-persistence", enabled)
|
|
204
|
+
};
|
|
205
|
+
const diagnostics = {
|
|
206
|
+
get: () => invoke("diagnostics:get")
|
|
207
|
+
};
|
|
208
|
+
const updates = {
|
|
209
|
+
check: () => invoke("update:check")
|
|
210
|
+
};
|
|
211
|
+
const i18n = {
|
|
212
|
+
getEnvironment: () => invoke("i18n:get-environment")
|
|
213
|
+
};
|
|
214
|
+
const terminal = {
|
|
215
|
+
start: (options) => invoke("terminal:start", options),
|
|
216
|
+
input: (data) => invoke("terminal:input", data),
|
|
217
|
+
resize: (cols, rows) => invoke("terminal:resize", { cols, rows }),
|
|
218
|
+
stop: () => invoke("terminal:stop"),
|
|
219
|
+
onData: (callback) => subscribe("event:terminal-data", callback),
|
|
220
|
+
onExit: (callback) => subscribe("event:terminal-exit", callback)
|
|
221
|
+
};
|
|
222
|
+
const ui = {
|
|
223
|
+
respondSelect: (id, value) => invoke("ui:select-response", id, value),
|
|
224
|
+
respondConfirm: (id, confirmed) => invoke("ui:confirm-response", id, confirmed),
|
|
225
|
+
respondInput: (id, value) => invoke("ui:input-response", id, value),
|
|
226
|
+
respondEditor: (id, value) => invoke("ui:editor-response", id, value),
|
|
227
|
+
flushPendingPrompts: (workspaceId) => invoke("ui:pending-flush", workspaceId),
|
|
228
|
+
getPendingPrompts: () => invoke("ui:pending-get"),
|
|
229
|
+
setEditorDirty: (_dirty, _fileName) => {
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
const onEvent = (callback) => subscribe("event:pi", callback);
|
|
233
|
+
const onPendingPrompts = (callback) => subscribe("event:pending-prompts", callback);
|
|
234
|
+
const onWorkspaceActivity = (callback) => subscribe("event:workspace-activity", callback);
|
|
235
|
+
const onSessionRuntime = (callback) => subscribe("event:session-runtime", callback);
|
|
236
|
+
const onActivateWorkspace = (callback) => subscribe("event:activate-workspace", callback);
|
|
237
|
+
const onFileChange = (callback) => subscribe("event:file-change", callback);
|
|
238
|
+
const onMenuAction = (_callback) => {
|
|
239
|
+
return () => {
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
return {
|
|
243
|
+
pi,
|
|
244
|
+
commands,
|
|
245
|
+
session,
|
|
246
|
+
model,
|
|
247
|
+
thinking,
|
|
248
|
+
settings,
|
|
249
|
+
permissionRules,
|
|
250
|
+
themes,
|
|
251
|
+
workspace,
|
|
252
|
+
packages,
|
|
253
|
+
models,
|
|
254
|
+
council,
|
|
255
|
+
skills,
|
|
256
|
+
piCommands,
|
|
257
|
+
mcpServers,
|
|
258
|
+
tags,
|
|
259
|
+
git,
|
|
260
|
+
notes,
|
|
261
|
+
files,
|
|
262
|
+
system,
|
|
263
|
+
activity,
|
|
264
|
+
workflows,
|
|
265
|
+
diagnostics,
|
|
266
|
+
updates,
|
|
267
|
+
i18n,
|
|
268
|
+
terminal,
|
|
269
|
+
ui,
|
|
270
|
+
onEvent,
|
|
271
|
+
onPendingPrompts,
|
|
272
|
+
onWorkspaceActivity,
|
|
273
|
+
onSessionRuntime,
|
|
274
|
+
onActivateWorkspace,
|
|
275
|
+
onFileChange,
|
|
276
|
+
onMenuAction
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
const IPC_CHANNELS = {
|
|
280
|
+
/** The live fleet, read from herdr's panes - the same source the control plane uses. */
|
|
281
|
+
FLEET_LIST: "fleet:list",
|
|
282
|
+
// Pi process lifecycle
|
|
283
|
+
PI_START: "pi:start",
|
|
284
|
+
PI_STOP: "pi:stop",
|
|
285
|
+
PI_RESTART: "pi:restart",
|
|
286
|
+
PI_STATUS: "pi:status",
|
|
287
|
+
PI_DETECT_INSTALLATIONS: "pi:detect-installations",
|
|
288
|
+
// Pi commands
|
|
289
|
+
PI_PROMPT: "pi:prompt",
|
|
290
|
+
PI_STEER: "pi:steer",
|
|
291
|
+
PI_FOLLOW_UP: "pi:follow-up",
|
|
292
|
+
PI_ABORT: "pi:abort",
|
|
293
|
+
PI_BASH: "pi:bash",
|
|
294
|
+
PI_ABORT_BASH: "pi:abort-bash",
|
|
295
|
+
// Session management
|
|
296
|
+
SESSION_NEW: "session:new",
|
|
297
|
+
SESSION_LAUNCH_TASK: "session:launch-task",
|
|
298
|
+
SESSION_CLOSE_RUNTIME: "session:close-runtime",
|
|
299
|
+
SESSION_SWITCH: "session:switch",
|
|
300
|
+
SESSION_LIST_RUNTIMES: "session:list-runtimes",
|
|
301
|
+
SESSION_FORK: "session:fork",
|
|
302
|
+
SESSION_CLONE: "session:clone",
|
|
303
|
+
SESSION_LIST: "session:list",
|
|
304
|
+
SESSION_LIST_ALL: "session:list-all",
|
|
305
|
+
SESSION_GET_STATE: "session:get-state",
|
|
306
|
+
SESSION_GET_MESSAGES: "session:get-messages",
|
|
307
|
+
SESSION_GET_STATS: "session:get-stats",
|
|
308
|
+
SESSION_SET_NAME: "session:set-name",
|
|
309
|
+
SESSION_EXPORT_HTML: "session:export-html",
|
|
310
|
+
SESSION_GET_FORK_MESSAGES: "session:get-fork-messages",
|
|
311
|
+
SESSION_DELETE: "session:delete",
|
|
312
|
+
SESSION_ARCHIVE: "session:archive",
|
|
313
|
+
SESSION_UNARCHIVE: "session:unarchive",
|
|
314
|
+
SESSION_LIST_ARCHIVED: "session:list-archived",
|
|
315
|
+
SESSION_GET_LINEAGE: "session:get-lineage",
|
|
316
|
+
SESSION_COMPACT: "session:compact",
|
|
317
|
+
// Model management
|
|
318
|
+
MODEL_SET: "model:set",
|
|
319
|
+
MODEL_CYCLE: "model:cycle",
|
|
320
|
+
MODEL_LIST_AVAILABLE: "model:list-available",
|
|
321
|
+
THINKING_SET_LEVEL: "thinking:set-level",
|
|
322
|
+
THINKING_CYCLE_LEVEL: "thinking:cycle-level",
|
|
323
|
+
// Settings
|
|
324
|
+
SETTINGS_GET_ALL: "settings:get-all",
|
|
325
|
+
SETTINGS_SAVE: "settings:save",
|
|
326
|
+
I18N_GET_ENVIRONMENT: "i18n:get-environment",
|
|
327
|
+
// Permission rules
|
|
328
|
+
PERMISSION_RULES_GET: "permission-rules:get",
|
|
329
|
+
PERMISSION_RULES_SET: "permission-rules:set",
|
|
330
|
+
PERMISSION_RULES_IMPORT: "permission-rules:import",
|
|
331
|
+
PERMISSION_RULES_EXPORT: "permission-rules:export",
|
|
332
|
+
PERMISSION_RULES_WORKSPACE_STATUS: "permission-rules:workspace-status",
|
|
333
|
+
PERMISSION_RULES_REMOVE_WORKSPACE: "permission-rules:remove-workspace",
|
|
334
|
+
PERMISSION_RULES_SET_WORKSPACE_TRUST: "permission-rules:set-workspace-trust",
|
|
335
|
+
// UI
|
|
336
|
+
UI_SELECT_RESPONSE: "ui:select-response",
|
|
337
|
+
UI_CONFIRM_RESPONSE: "ui:confirm-response",
|
|
338
|
+
UI_INPUT_RESPONSE: "ui:input-response",
|
|
339
|
+
UI_EDITOR_RESPONSE: "ui:editor-response",
|
|
340
|
+
UI_PENDING_FLUSH: "ui:pending-flush",
|
|
341
|
+
UI_PENDING_GET: "ui:pending-get",
|
|
342
|
+
UI_EDITOR_DIRTY_SET: "ui:editor-dirty-set",
|
|
343
|
+
// System
|
|
344
|
+
SYSTEM_OPEN_DIALOG: "system:open-dialog",
|
|
345
|
+
SYSTEM_GET_PATH: "system:get-path",
|
|
346
|
+
SYSTEM_PATH_KIND: "system:path-kind",
|
|
347
|
+
SYSTEM_OPEN_EXTERNAL: "system:open-external",
|
|
348
|
+
SYSTEM_HALL_URL: "system:hall-url",
|
|
349
|
+
SYSTEM_GET_VERSION: "system:get-version",
|
|
350
|
+
UPDATE_CHECK: "update:check",
|
|
351
|
+
// Activity
|
|
352
|
+
ACTIVITY_GET_STATS: "activity:get-stats",
|
|
353
|
+
// Workflow run monitoring
|
|
354
|
+
WORKFLOW_LIST: "workflow:list",
|
|
355
|
+
WORKFLOW_GET_RUN: "workflow:get-run",
|
|
356
|
+
WORKFLOW_CONTROL: "workflow:control",
|
|
357
|
+
WORKFLOW_SET_PERSISTENCE: "workflow:set-persistence",
|
|
358
|
+
// Diagnostics
|
|
359
|
+
DIAGNOSTICS_GET: "diagnostics:get",
|
|
360
|
+
// Workspaces
|
|
361
|
+
WORKSPACE_LIST: "workspace:list",
|
|
362
|
+
WORKSPACE_CREATE: "workspace:create",
|
|
363
|
+
WORKSPACE_REMOVE: "workspace:remove",
|
|
364
|
+
WORKSPACE_RENAME: "workspace:rename",
|
|
365
|
+
WORKSPACE_SET_ACTIVE: "workspace:set-active",
|
|
366
|
+
WORKSPACE_GET_ACTIVE: "workspace:get-active",
|
|
367
|
+
WORKSPACE_CHANGE_PATH: "workspace:change-path",
|
|
368
|
+
WORKSPACE_PATH_EXISTS: "workspace:path-exists",
|
|
369
|
+
WORKSPACE_START_PI: "workspace:start-pi",
|
|
370
|
+
WORKSPACE_STOP_PI: "workspace:stop-pi",
|
|
371
|
+
WORKSPACE_CREATE_TAB: "workspace:create-tab",
|
|
372
|
+
WORKSPACE_ACTIVITY_GET: "workspace:activity",
|
|
373
|
+
WORKSPACE_TAKE_PENDING_ACTIVATION: "workspace:take-pending-activation",
|
|
374
|
+
// Packages
|
|
375
|
+
PACKAGE_LIST_INSTALLED: "package:list-installed",
|
|
376
|
+
PACKAGE_INSTALL: "package:install",
|
|
377
|
+
PACKAGE_REMOVE: "package:remove",
|
|
378
|
+
PACKAGE_UPDATE: "package:update",
|
|
379
|
+
PACKAGE_UPDATE_ALL: "package:update-all",
|
|
380
|
+
PACKAGE_CHECK_UPDATES: "package:check-updates",
|
|
381
|
+
PACKAGE_CATALOG_FETCH: "package:catalog-fetch",
|
|
382
|
+
// Skills
|
|
383
|
+
SKILLS_LIST: "skills:list",
|
|
384
|
+
COMMANDS_LIST: "commands:list",
|
|
385
|
+
MCP_SERVERS_LIST: "mcp:servers-list",
|
|
386
|
+
// Models config
|
|
387
|
+
MODELS_READ: "models:read",
|
|
388
|
+
MODELS_WRITE: "models:write",
|
|
389
|
+
// Council planning
|
|
390
|
+
COUNCIL_DETECT: "council:detect",
|
|
391
|
+
COUNCIL_RUN_CONSULTANTS: "council:run-consultants",
|
|
392
|
+
COUNCIL_ARBITER: "council:arbiter",
|
|
393
|
+
// File operations
|
|
394
|
+
FILE_TREE: "file:tree",
|
|
395
|
+
FILE_SEARCH: "file:search",
|
|
396
|
+
FILE_SEARCH_CONTENT: "file:search-content",
|
|
397
|
+
FILE_READ: "file:read",
|
|
398
|
+
FILE_READ_ATTACHMENT: "file:read-attachment",
|
|
399
|
+
FILE_WRITE: "file:write",
|
|
400
|
+
FILE_DIFF: "file:diff",
|
|
401
|
+
FILE_STAGED_DIFF: "file:staged-diff",
|
|
402
|
+
GIT_STATUS: "git:status",
|
|
403
|
+
GIT_BRANCH: "git:branch",
|
|
404
|
+
GIT_CONVEYOR_STATUS: "git:conveyor-status",
|
|
405
|
+
GIT_CONVEYOR_COMMIT: "git:conveyor-commit",
|
|
406
|
+
GIT_CONVEYOR_PUSH: "git:conveyor-push",
|
|
407
|
+
GIT_CONVEYOR_CREATE_PR: "git:conveyor-create-pr",
|
|
408
|
+
// Terminal
|
|
409
|
+
TERMINAL_START: "terminal:start",
|
|
410
|
+
TERMINAL_INPUT: "terminal:input",
|
|
411
|
+
TERMINAL_RESIZE: "terminal:resize",
|
|
412
|
+
TERMINAL_STOP: "terminal:stop",
|
|
413
|
+
// Session tags
|
|
414
|
+
TAG_GET: "tag:get",
|
|
415
|
+
TAG_SET: "tag:set",
|
|
416
|
+
TAG_ADD: "tag:add",
|
|
417
|
+
TAG_REMOVE: "tag:remove",
|
|
418
|
+
TAG_GET_ALL: "tag:get-all",
|
|
419
|
+
TAG_GET_ALL_USED: "tag:get-all-used",
|
|
420
|
+
TAG_AUTO_GET_ALL: "tag:auto-get-all",
|
|
421
|
+
TAG_AUTO_ENSURE: "tag:auto-ensure",
|
|
422
|
+
TAG_AUTO_REMOVE: "tag:auto-remove",
|
|
423
|
+
// Notes (reusable prompts / commands)
|
|
424
|
+
NOTES_LIST: "notes:list",
|
|
425
|
+
NOTES_CREATE: "notes:create",
|
|
426
|
+
NOTES_UPDATE: "notes:update",
|
|
427
|
+
NOTES_REMOVE: "notes:remove",
|
|
428
|
+
// Themes (user-created theme storage)
|
|
429
|
+
THEMES_LIST: "themes:list",
|
|
430
|
+
THEMES_SAVE: "themes:save",
|
|
431
|
+
THEMES_DELETE: "themes:delete",
|
|
432
|
+
THEMES_INSTALL_URL: "themes:install-from-url",
|
|
433
|
+
THEMES_EXPORT: "themes:export",
|
|
434
|
+
THEMES_IMPORT: "themes:import",
|
|
435
|
+
THEMES_GALLERY_LIST: "themes:gallery-list",
|
|
436
|
+
THEMES_GALLERY_IMAGE: "themes:gallery-image",
|
|
437
|
+
// Events (main → renderer)
|
|
438
|
+
EVENT_PI: "event:pi",
|
|
439
|
+
EVENT_PENDING_PROMPTS: "event:pending-prompts",
|
|
440
|
+
EVENT_WORKSPACE_ACTIVITY: "event:workspace-activity",
|
|
441
|
+
EVENT_SESSION_RUNTIME: "event:session-runtime",
|
|
442
|
+
EVENT_ACTIVATE_WORKSPACE: "event:activate-workspace",
|
|
443
|
+
EVENT_FILE_CHANGE: "event:file-change",
|
|
444
|
+
EVENT_TERMINAL_DATA: "event:terminal-data",
|
|
445
|
+
EVENT_TERMINAL_EXIT: "event:terminal-exit",
|
|
446
|
+
EVENT_COUNCIL_PROGRESS: "event:council-progress"
|
|
447
|
+
};
|
|
448
|
+
const IS_ELECTRON = typeof electron.contextBridge !== "undefined" && typeof electron.ipcRenderer !== "undefined";
|
|
449
|
+
function createBridge() {
|
|
450
|
+
if (IS_ELECTRON) {
|
|
451
|
+
const api = {
|
|
452
|
+
pi: {
|
|
453
|
+
start: (options) => electron.ipcRenderer.invoke(IPC_CHANNELS.PI_START, options),
|
|
454
|
+
stop: () => electron.ipcRenderer.invoke(IPC_CHANNELS.PI_STOP),
|
|
455
|
+
restart: (options) => electron.ipcRenderer.invoke(IPC_CHANNELS.PI_RESTART, options),
|
|
456
|
+
getStatus: () => electron.ipcRenderer.invoke(IPC_CHANNELS.PI_STATUS),
|
|
457
|
+
detectInstallations: (options) => electron.ipcRenderer.invoke(IPC_CHANNELS.PI_DETECT_INSTALLATIONS, options)
|
|
458
|
+
},
|
|
459
|
+
commands: {
|
|
460
|
+
prompt: (message, options) => electron.ipcRenderer.invoke(IPC_CHANNELS.PI_PROMPT, message, options),
|
|
461
|
+
steer: (message, images) => electron.ipcRenderer.invoke(IPC_CHANNELS.PI_STEER, message, images),
|
|
462
|
+
followUp: (message) => electron.ipcRenderer.invoke(IPC_CHANNELS.PI_FOLLOW_UP, message),
|
|
463
|
+
abort: () => electron.ipcRenderer.invoke(IPC_CHANNELS.PI_ABORT),
|
|
464
|
+
bash: (command) => electron.ipcRenderer.invoke(IPC_CHANNELS.PI_BASH, command),
|
|
465
|
+
abortBash: () => electron.ipcRenderer.invoke(IPC_CHANNELS.PI_ABORT_BASH)
|
|
466
|
+
},
|
|
467
|
+
session: {
|
|
468
|
+
createNew: () => electron.ipcRenderer.invoke(IPC_CHANNELS.SESSION_NEW),
|
|
469
|
+
launchTask: (options) => electron.ipcRenderer.invoke(IPC_CHANNELS.SESSION_LAUNCH_TASK, options),
|
|
470
|
+
closeRuntime: (runtimeId) => electron.ipcRenderer.invoke(IPC_CHANNELS.SESSION_CLOSE_RUNTIME, runtimeId),
|
|
471
|
+
switch: (sessionPath, cwd) => electron.ipcRenderer.invoke(IPC_CHANNELS.SESSION_SWITCH, sessionPath, cwd),
|
|
472
|
+
listRuntimes: () => electron.ipcRenderer.invoke(IPC_CHANNELS.SESSION_LIST_RUNTIMES),
|
|
473
|
+
fork: (entryId) => electron.ipcRenderer.invoke(IPC_CHANNELS.SESSION_FORK, entryId),
|
|
474
|
+
clone: () => electron.ipcRenderer.invoke(IPC_CHANNELS.SESSION_CLONE),
|
|
475
|
+
list: (cwd) => electron.ipcRenderer.invoke(IPC_CHANNELS.SESSION_LIST, cwd),
|
|
476
|
+
listAll: (cwd) => electron.ipcRenderer.invoke(IPC_CHANNELS.SESSION_LIST_ALL, cwd),
|
|
477
|
+
getState: () => electron.ipcRenderer.invoke(IPC_CHANNELS.SESSION_GET_STATE),
|
|
478
|
+
getMessages: () => electron.ipcRenderer.invoke(IPC_CHANNELS.SESSION_GET_MESSAGES),
|
|
479
|
+
getStats: () => electron.ipcRenderer.invoke(IPC_CHANNELS.SESSION_GET_STATS),
|
|
480
|
+
setName: (name) => electron.ipcRenderer.invoke(IPC_CHANNELS.SESSION_SET_NAME, name),
|
|
481
|
+
exportHtml: (outputPath) => electron.ipcRenderer.invoke(IPC_CHANNELS.SESSION_EXPORT_HTML, outputPath),
|
|
482
|
+
getForkMessages: () => electron.ipcRenderer.invoke(IPC_CHANNELS.SESSION_GET_FORK_MESSAGES),
|
|
483
|
+
getLineage: () => electron.ipcRenderer.invoke(IPC_CHANNELS.SESSION_GET_LINEAGE),
|
|
484
|
+
compact: (customInstructions) => electron.ipcRenderer.invoke(IPC_CHANNELS.SESSION_COMPACT, customInstructions),
|
|
485
|
+
delete: (sessionPath) => electron.ipcRenderer.invoke(IPC_CHANNELS.SESSION_DELETE, sessionPath),
|
|
486
|
+
archive: (sessionId) => electron.ipcRenderer.invoke(IPC_CHANNELS.SESSION_ARCHIVE, sessionId),
|
|
487
|
+
unarchive: (sessionId) => electron.ipcRenderer.invoke(IPC_CHANNELS.SESSION_UNARCHIVE, sessionId),
|
|
488
|
+
listArchived: () => electron.ipcRenderer.invoke(IPC_CHANNELS.SESSION_LIST_ARCHIVED)
|
|
489
|
+
},
|
|
490
|
+
model: {
|
|
491
|
+
set: (provider, modelId) => electron.ipcRenderer.invoke(IPC_CHANNELS.MODEL_SET, provider, modelId),
|
|
492
|
+
cycle: () => electron.ipcRenderer.invoke(IPC_CHANNELS.MODEL_CYCLE),
|
|
493
|
+
listAvailable: () => electron.ipcRenderer.invoke(IPC_CHANNELS.MODEL_LIST_AVAILABLE)
|
|
494
|
+
},
|
|
495
|
+
thinking: {
|
|
496
|
+
setLevel: (level) => electron.ipcRenderer.invoke(IPC_CHANNELS.THINKING_SET_LEVEL, level),
|
|
497
|
+
cycleLevel: () => electron.ipcRenderer.invoke(IPC_CHANNELS.THINKING_CYCLE_LEVEL)
|
|
498
|
+
},
|
|
499
|
+
settings: {
|
|
500
|
+
getAll: () => electron.ipcRenderer.invoke(IPC_CHANNELS.SETTINGS_GET_ALL),
|
|
501
|
+
save: (settings) => electron.ipcRenderer.invoke(IPC_CHANNELS.SETTINGS_SAVE, settings)
|
|
502
|
+
},
|
|
503
|
+
permissionRules: {
|
|
504
|
+
get: (scope) => electron.ipcRenderer.invoke(IPC_CHANNELS.PERMISSION_RULES_GET, scope),
|
|
505
|
+
set: (scope, rules) => electron.ipcRenderer.invoke(IPC_CHANNELS.PERMISSION_RULES_SET, scope, rules),
|
|
506
|
+
importFromFile: () => electron.ipcRenderer.invoke(IPC_CHANNELS.PERMISSION_RULES_IMPORT),
|
|
507
|
+
exportToFile: (rules) => electron.ipcRenderer.invoke(IPC_CHANNELS.PERMISSION_RULES_EXPORT, rules),
|
|
508
|
+
workspaceStatus: () => electron.ipcRenderer.invoke(IPC_CHANNELS.PERMISSION_RULES_WORKSPACE_STATUS),
|
|
509
|
+
removeWorkspace: () => electron.ipcRenderer.invoke(IPC_CHANNELS.PERMISSION_RULES_REMOVE_WORKSPACE),
|
|
510
|
+
setWorkspaceTrust: (trusted) => electron.ipcRenderer.invoke(IPC_CHANNELS.PERMISSION_RULES_SET_WORKSPACE_TRUST, trusted)
|
|
511
|
+
},
|
|
512
|
+
themes: {
|
|
513
|
+
list: () => electron.ipcRenderer.invoke(IPC_CHANNELS.THEMES_LIST),
|
|
514
|
+
save: (file, existingId) => electron.ipcRenderer.invoke(IPC_CHANNELS.THEMES_SAVE, file, existingId),
|
|
515
|
+
delete: (id) => electron.ipcRenderer.invoke(IPC_CHANNELS.THEMES_DELETE, id),
|
|
516
|
+
installFromUrl: (url) => electron.ipcRenderer.invoke(IPC_CHANNELS.THEMES_INSTALL_URL, url),
|
|
517
|
+
export: (file) => electron.ipcRenderer.invoke(IPC_CHANNELS.THEMES_EXPORT, file),
|
|
518
|
+
import: () => electron.ipcRenderer.invoke(IPC_CHANNELS.THEMES_IMPORT),
|
|
519
|
+
gallery: () => electron.ipcRenderer.invoke(IPC_CHANNELS.THEMES_GALLERY_LIST),
|
|
520
|
+
galleryImage: (url) => electron.ipcRenderer.invoke(IPC_CHANNELS.THEMES_GALLERY_IMAGE, url)
|
|
521
|
+
},
|
|
522
|
+
workspace: {
|
|
523
|
+
list: () => electron.ipcRenderer.invoke(IPC_CHANNELS.WORKSPACE_LIST),
|
|
524
|
+
create: (name, path) => electron.ipcRenderer.invoke(IPC_CHANNELS.WORKSPACE_CREATE, name, path),
|
|
525
|
+
remove: (workspaceId) => electron.ipcRenderer.invoke(IPC_CHANNELS.WORKSPACE_REMOVE, workspaceId),
|
|
526
|
+
rename: (workspaceId, name) => electron.ipcRenderer.invoke(IPC_CHANNELS.WORKSPACE_RENAME, workspaceId, name),
|
|
527
|
+
changePath: (workspaceId, newPath) => electron.ipcRenderer.invoke(IPC_CHANNELS.WORKSPACE_CHANGE_PATH, workspaceId, newPath),
|
|
528
|
+
pathExists: () => electron.ipcRenderer.invoke(IPC_CHANNELS.WORKSPACE_PATH_EXISTS),
|
|
529
|
+
setActive: (workspaceId) => electron.ipcRenderer.invoke(IPC_CHANNELS.WORKSPACE_SET_ACTIVE, workspaceId),
|
|
530
|
+
getActive: () => electron.ipcRenderer.invoke(IPC_CHANNELS.WORKSPACE_GET_ACTIVE),
|
|
531
|
+
startPi: (workspaceId, options) => electron.ipcRenderer.invoke(IPC_CHANNELS.WORKSPACE_START_PI, workspaceId, options),
|
|
532
|
+
stopPi: (workspaceId) => electron.ipcRenderer.invoke(IPC_CHANNELS.WORKSPACE_STOP_PI, workspaceId),
|
|
533
|
+
createTab: (options) => electron.ipcRenderer.invoke(IPC_CHANNELS.WORKSPACE_CREATE_TAB, options),
|
|
534
|
+
getActivity: () => electron.ipcRenderer.invoke(IPC_CHANNELS.WORKSPACE_ACTIVITY_GET),
|
|
535
|
+
takePendingActivation: () => electron.ipcRenderer.invoke(IPC_CHANNELS.WORKSPACE_TAKE_PENDING_ACTIVATION)
|
|
536
|
+
},
|
|
537
|
+
packages: {
|
|
538
|
+
listInstalled: () => electron.ipcRenderer.invoke(IPC_CHANNELS.PACKAGE_LIST_INSTALLED),
|
|
539
|
+
install: (spec) => electron.ipcRenderer.invoke(IPC_CHANNELS.PACKAGE_INSTALL, spec),
|
|
540
|
+
remove: (spec) => electron.ipcRenderer.invoke(IPC_CHANNELS.PACKAGE_REMOVE, spec),
|
|
541
|
+
update: (spec) => electron.ipcRenderer.invoke(IPC_CHANNELS.PACKAGE_UPDATE, spec),
|
|
542
|
+
updateAll: () => electron.ipcRenderer.invoke(IPC_CHANNELS.PACKAGE_UPDATE_ALL),
|
|
543
|
+
checkUpdates: () => electron.ipcRenderer.invoke(IPC_CHANNELS.PACKAGE_CHECK_UPDATES),
|
|
544
|
+
fetchCatalog: (query) => electron.ipcRenderer.invoke(IPC_CHANNELS.PACKAGE_CATALOG_FETCH, query)
|
|
545
|
+
},
|
|
546
|
+
models: {
|
|
547
|
+
read: () => electron.ipcRenderer.invoke(IPC_CHANNELS.MODELS_READ),
|
|
548
|
+
write: (config) => electron.ipcRenderer.invoke(IPC_CHANNELS.MODELS_WRITE, config)
|
|
549
|
+
},
|
|
550
|
+
council: {
|
|
551
|
+
detect: () => electron.ipcRenderer.invoke(IPC_CHANNELS.COUNCIL_DETECT),
|
|
552
|
+
runConsultants: (payload) => electron.ipcRenderer.invoke(IPC_CHANNELS.COUNCIL_RUN_CONSULTANTS, payload),
|
|
553
|
+
arbiter: (payload) => electron.ipcRenderer.invoke(IPC_CHANNELS.COUNCIL_ARBITER, payload),
|
|
554
|
+
onProgress: (callback) => {
|
|
555
|
+
const handler = (_event, data) => callback(data);
|
|
556
|
+
electron.ipcRenderer.on(IPC_CHANNELS.EVENT_COUNCIL_PROGRESS, handler);
|
|
557
|
+
return () => electron.ipcRenderer.removeListener(IPC_CHANNELS.EVENT_COUNCIL_PROGRESS, handler);
|
|
558
|
+
}
|
|
559
|
+
},
|
|
560
|
+
skills: {
|
|
561
|
+
list: () => electron.ipcRenderer.invoke(IPC_CHANNELS.SKILLS_LIST)
|
|
562
|
+
},
|
|
563
|
+
piCommands: {
|
|
564
|
+
list: () => electron.ipcRenderer.invoke(IPC_CHANNELS.COMMANDS_LIST)
|
|
565
|
+
},
|
|
566
|
+
mcpServers: {
|
|
567
|
+
list: () => electron.ipcRenderer.invoke(IPC_CHANNELS.MCP_SERVERS_LIST)
|
|
568
|
+
},
|
|
569
|
+
tags: {
|
|
570
|
+
get: (sessionId) => electron.ipcRenderer.invoke(IPC_CHANNELS.TAG_GET, sessionId),
|
|
571
|
+
set: (sessionId, tags) => electron.ipcRenderer.invoke(IPC_CHANNELS.TAG_SET, sessionId, tags),
|
|
572
|
+
add: (sessionId, tag) => electron.ipcRenderer.invoke(IPC_CHANNELS.TAG_ADD, sessionId, tag),
|
|
573
|
+
remove: (sessionId, tag) => electron.ipcRenderer.invoke(IPC_CHANNELS.TAG_REMOVE, sessionId, tag),
|
|
574
|
+
getAll: () => electron.ipcRenderer.invoke(IPC_CHANNELS.TAG_GET_ALL),
|
|
575
|
+
getAllUsed: () => electron.ipcRenderer.invoke(IPC_CHANNELS.TAG_GET_ALL_USED),
|
|
576
|
+
autoGetAll: () => electron.ipcRenderer.invoke(IPC_CHANNELS.TAG_AUTO_GET_ALL),
|
|
577
|
+
autoEnsure: (sessions) => electron.ipcRenderer.invoke(IPC_CHANNELS.TAG_AUTO_ENSURE, sessions),
|
|
578
|
+
autoRemove: (sessionId) => electron.ipcRenderer.invoke(IPC_CHANNELS.TAG_AUTO_REMOVE, sessionId)
|
|
579
|
+
},
|
|
580
|
+
git: {
|
|
581
|
+
status: () => electron.ipcRenderer.invoke(IPC_CHANNELS.GIT_CONVEYOR_STATUS),
|
|
582
|
+
commit: (options) => electron.ipcRenderer.invoke(IPC_CHANNELS.GIT_CONVEYOR_COMMIT, options),
|
|
583
|
+
push: () => electron.ipcRenderer.invoke(IPC_CHANNELS.GIT_CONVEYOR_PUSH),
|
|
584
|
+
createPullRequest: (options) => electron.ipcRenderer.invoke(IPC_CHANNELS.GIT_CONVEYOR_CREATE_PR, options)
|
|
585
|
+
},
|
|
586
|
+
notes: {
|
|
587
|
+
list: () => electron.ipcRenderer.invoke(IPC_CHANNELS.NOTES_LIST),
|
|
588
|
+
create: (input) => electron.ipcRenderer.invoke(IPC_CHANNELS.NOTES_CREATE, input),
|
|
589
|
+
update: (id, patch) => electron.ipcRenderer.invoke(IPC_CHANNELS.NOTES_UPDATE, id, patch),
|
|
590
|
+
remove: (id) => electron.ipcRenderer.invoke(IPC_CHANNELS.NOTES_REMOVE, id)
|
|
591
|
+
},
|
|
592
|
+
files: {
|
|
593
|
+
getTree: (maxDepth) => electron.ipcRenderer.invoke(IPC_CHANNELS.FILE_TREE, maxDepth),
|
|
594
|
+
search: (query) => electron.ipcRenderer.invoke(IPC_CHANNELS.FILE_SEARCH, query),
|
|
595
|
+
searchContent: (query) => electron.ipcRenderer.invoke(IPC_CHANNELS.FILE_SEARCH_CONTENT, query),
|
|
596
|
+
read: (path) => electron.ipcRenderer.invoke(IPC_CHANNELS.FILE_READ, path),
|
|
597
|
+
readAttachment: (path) => electron.ipcRenderer.invoke(IPC_CHANNELS.FILE_READ_ATTACHMENT, path),
|
|
598
|
+
write: (path, content) => electron.ipcRenderer.invoke(IPC_CHANNELS.FILE_WRITE, path, content),
|
|
599
|
+
getDiff: (filePath) => electron.ipcRenderer.invoke(IPC_CHANNELS.FILE_DIFF, filePath),
|
|
600
|
+
getStagedDiff: (filePath) => electron.ipcRenderer.invoke(IPC_CHANNELS.FILE_STAGED_DIFF, filePath),
|
|
601
|
+
getGitStatus: () => electron.ipcRenderer.invoke(IPC_CHANNELS.GIT_STATUS),
|
|
602
|
+
getGitBranch: () => electron.ipcRenderer.invoke(IPC_CHANNELS.GIT_BRANCH)
|
|
603
|
+
},
|
|
604
|
+
system: {
|
|
605
|
+
openDialog: (options) => electron.ipcRenderer.invoke(IPC_CHANNELS.SYSTEM_OPEN_DIALOG, options),
|
|
606
|
+
getPath: (name) => electron.ipcRenderer.invoke(IPC_CHANNELS.SYSTEM_GET_PATH, name),
|
|
607
|
+
getPathForFile: (file) => electron.webUtils.getPathForFile(file),
|
|
608
|
+
pathKind: (path) => electron.ipcRenderer.invoke(IPC_CHANNELS.SYSTEM_PATH_KIND, path),
|
|
609
|
+
platform: process.platform,
|
|
610
|
+
openExternal: (url) => electron.ipcRenderer.invoke(IPC_CHANNELS.SYSTEM_OPEN_EXTERNAL, url),
|
|
611
|
+
hallUrl: () => electron.ipcRenderer.invoke(IPC_CHANNELS.SYSTEM_HALL_URL),
|
|
612
|
+
fleet: () => electron.ipcRenderer.invoke(IPC_CHANNELS.FLEET_LIST),
|
|
613
|
+
getVersion: () => electron.ipcRenderer.invoke(IPC_CHANNELS.SYSTEM_GET_VERSION)
|
|
614
|
+
},
|
|
615
|
+
activity: {
|
|
616
|
+
getStats: () => electron.ipcRenderer.invoke(IPC_CHANNELS.ACTIVITY_GET_STATS)
|
|
617
|
+
},
|
|
618
|
+
workflows: {
|
|
619
|
+
list: () => electron.ipcRenderer.invoke(IPC_CHANNELS.WORKFLOW_LIST),
|
|
620
|
+
getRun: (workspaceId, runId) => electron.ipcRenderer.invoke(IPC_CHANNELS.WORKFLOW_GET_RUN, workspaceId, runId),
|
|
621
|
+
control: (workspaceId, runId, action) => electron.ipcRenderer.invoke(IPC_CHANNELS.WORKFLOW_CONTROL, workspaceId, runId, action),
|
|
622
|
+
setPersistAgentSessions: (enabled) => electron.ipcRenderer.invoke(IPC_CHANNELS.WORKFLOW_SET_PERSISTENCE, enabled)
|
|
623
|
+
},
|
|
624
|
+
diagnostics: {
|
|
625
|
+
get: () => electron.ipcRenderer.invoke(IPC_CHANNELS.DIAGNOSTICS_GET)
|
|
626
|
+
},
|
|
627
|
+
updates: {
|
|
628
|
+
check: () => electron.ipcRenderer.invoke(IPC_CHANNELS.UPDATE_CHECK)
|
|
629
|
+
},
|
|
630
|
+
i18n: {
|
|
631
|
+
getEnvironment: () => electron.ipcRenderer.invoke(IPC_CHANNELS.I18N_GET_ENVIRONMENT)
|
|
632
|
+
},
|
|
633
|
+
terminal: {
|
|
634
|
+
start: (options) => electron.ipcRenderer.invoke(IPC_CHANNELS.TERMINAL_START, options),
|
|
635
|
+
input: (data) => electron.ipcRenderer.invoke(IPC_CHANNELS.TERMINAL_INPUT, data),
|
|
636
|
+
resize: (cols, rows) => electron.ipcRenderer.invoke(IPC_CHANNELS.TERMINAL_RESIZE, { cols, rows }),
|
|
637
|
+
stop: () => electron.ipcRenderer.invoke(IPC_CHANNELS.TERMINAL_STOP),
|
|
638
|
+
onData: (callback) => {
|
|
639
|
+
const handler = (_event, data) => callback(data);
|
|
640
|
+
electron.ipcRenderer.on(IPC_CHANNELS.EVENT_TERMINAL_DATA, handler);
|
|
641
|
+
return () => electron.ipcRenderer.removeListener(IPC_CHANNELS.EVENT_TERMINAL_DATA, handler);
|
|
642
|
+
},
|
|
643
|
+
onExit: (callback) => {
|
|
644
|
+
const handler = (_event, data) => callback(data);
|
|
645
|
+
electron.ipcRenderer.on(IPC_CHANNELS.EVENT_TERMINAL_EXIT, handler);
|
|
646
|
+
return () => electron.ipcRenderer.removeListener(IPC_CHANNELS.EVENT_TERMINAL_EXIT, handler);
|
|
647
|
+
}
|
|
648
|
+
},
|
|
649
|
+
ui: {
|
|
650
|
+
respondSelect: (id, value) => electron.ipcRenderer.invoke(IPC_CHANNELS.UI_SELECT_RESPONSE, id, value),
|
|
651
|
+
respondConfirm: (id, confirmed) => electron.ipcRenderer.invoke(IPC_CHANNELS.UI_CONFIRM_RESPONSE, id, confirmed),
|
|
652
|
+
respondInput: (id, value) => electron.ipcRenderer.invoke(IPC_CHANNELS.UI_INPUT_RESPONSE, id, value),
|
|
653
|
+
respondEditor: (id, value) => electron.ipcRenderer.invoke(IPC_CHANNELS.UI_EDITOR_RESPONSE, id, value),
|
|
654
|
+
flushPendingPrompts: (workspaceId) => electron.ipcRenderer.invoke(IPC_CHANNELS.UI_PENDING_FLUSH, workspaceId),
|
|
655
|
+
getPendingPrompts: () => electron.ipcRenderer.invoke(IPC_CHANNELS.UI_PENDING_GET),
|
|
656
|
+
setEditorDirty: (dirty, fileName) => electron.ipcRenderer.send(
|
|
657
|
+
IPC_CHANNELS.UI_EDITOR_DIRTY_SET,
|
|
658
|
+
dirty === true,
|
|
659
|
+
typeof fileName === "string" ? fileName : null
|
|
660
|
+
)
|
|
661
|
+
},
|
|
662
|
+
onEvent: (callback) => {
|
|
663
|
+
const handler = (_event, data) => callback(data);
|
|
664
|
+
electron.ipcRenderer.on(IPC_CHANNELS.EVENT_PI, handler);
|
|
665
|
+
return () => {
|
|
666
|
+
electron.ipcRenderer.removeListener(IPC_CHANNELS.EVENT_PI, handler);
|
|
667
|
+
};
|
|
668
|
+
},
|
|
669
|
+
onPendingPrompts: (callback) => {
|
|
670
|
+
const handler = (_event, data) => callback(data);
|
|
671
|
+
electron.ipcRenderer.on(IPC_CHANNELS.EVENT_PENDING_PROMPTS, handler);
|
|
672
|
+
return () => {
|
|
673
|
+
electron.ipcRenderer.removeListener(IPC_CHANNELS.EVENT_PENDING_PROMPTS, handler);
|
|
674
|
+
};
|
|
675
|
+
},
|
|
676
|
+
onWorkspaceActivity: (callback) => {
|
|
677
|
+
const handler = (_event, data) => callback(data);
|
|
678
|
+
electron.ipcRenderer.on(IPC_CHANNELS.EVENT_WORKSPACE_ACTIVITY, handler);
|
|
679
|
+
return () => {
|
|
680
|
+
electron.ipcRenderer.removeListener(IPC_CHANNELS.EVENT_WORKSPACE_ACTIVITY, handler);
|
|
681
|
+
};
|
|
682
|
+
},
|
|
683
|
+
onSessionRuntime: (callback) => {
|
|
684
|
+
const handler = (_event, data) => callback(data);
|
|
685
|
+
electron.ipcRenderer.on(IPC_CHANNELS.EVENT_SESSION_RUNTIME, handler);
|
|
686
|
+
return () => {
|
|
687
|
+
electron.ipcRenderer.removeListener(IPC_CHANNELS.EVENT_SESSION_RUNTIME, handler);
|
|
688
|
+
};
|
|
689
|
+
},
|
|
690
|
+
onActivateWorkspace: (callback) => {
|
|
691
|
+
const handler = (_event, data) => callback(data);
|
|
692
|
+
electron.ipcRenderer.on(IPC_CHANNELS.EVENT_ACTIVATE_WORKSPACE, handler);
|
|
693
|
+
return () => {
|
|
694
|
+
electron.ipcRenderer.removeListener(IPC_CHANNELS.EVENT_ACTIVATE_WORKSPACE, handler);
|
|
695
|
+
};
|
|
696
|
+
},
|
|
697
|
+
onFileChange: (callback) => {
|
|
698
|
+
const handler = (_event, data) => callback(data);
|
|
699
|
+
electron.ipcRenderer.on(IPC_CHANNELS.EVENT_FILE_CHANGE, handler);
|
|
700
|
+
return () => {
|
|
701
|
+
electron.ipcRenderer.removeListener(IPC_CHANNELS.EVENT_FILE_CHANGE, handler);
|
|
702
|
+
};
|
|
703
|
+
},
|
|
704
|
+
onMenuAction: (callback) => {
|
|
705
|
+
const handlers = [];
|
|
706
|
+
const actions = ["menu:new-session", "menu:new-workspace", "menu:open-project"];
|
|
707
|
+
for (const action of actions) {
|
|
708
|
+
const handler = () => callback(action);
|
|
709
|
+
electron.ipcRenderer.on(action, handler);
|
|
710
|
+
handlers.push(() => electron.ipcRenderer.removeListener(action, handler));
|
|
711
|
+
}
|
|
712
|
+
return () => {
|
|
713
|
+
for (const cleanup of handlers) cleanup();
|
|
714
|
+
};
|
|
715
|
+
}
|
|
716
|
+
};
|
|
717
|
+
return api;
|
|
718
|
+
}
|
|
719
|
+
return createHttpBridge();
|
|
720
|
+
}
|
|
721
|
+
const bridge = createBridge();
|
|
722
|
+
electron.contextBridge.exposeInMainWorld("piDesktop", bridge);
|