Skip to content
Merged

0.3.0 #1162

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
190 commits
Select commit Hold shift + click to select a range
04f7438
feat(explore_agent): enhance tool descriptions and establish explorat…
XingYu-Zhong Aug 7, 2026
2a24198
feat: implement thread snapshot caching and state management
XingYu-Zhong Aug 7, 2026
c5596d1
feat(chromium-cookies): add cookie reading and decryption functionali…
XingYu-Zhong Aug 7, 2026
23793f7
feat: add tool cancellation functionality
XingYu-Zhong Aug 7, 2026
298601b
refactor: simplify telemetry pressure management and improve model re…
XingYu-Zhong Aug 7, 2026
efb8e73
feat: add timing metrics for usage tracking
XingYu-Zhong Aug 7, 2026
b7a6677
feat: enhance speech-to-text settings with credential readiness check…
XingYu-Zhong Aug 7, 2026
4a748d0
feat: enhance model handling by preventing empty primary model from o…
XingYu-Zhong Aug 7, 2026
689e086
fix(office): soft-fail WPS schema validate on intake
XingYu-Zhong Aug 7, 2026
365583e
fix(providers): keep Token Plan catalog across registry races
XingYu-Zhong Aug 7, 2026
b06d4a9
fix(runtime): recover shared Kun when discovery PID is dead
XingYu-Zhong Aug 7, 2026
230e64e
feat: implement preserveRedactedProviderCredentials function and add …
XingYu-Zhong Aug 7, 2026
4f5352d
Merge pull request #1123 from KunAgent/codex/fix-office-wps-schema-in…
XingYu-Zhong Aug 7, 2026
cb1819e
Merge pull request #1125 from KunAgent/codex/fix-shared-runtime-dead-…
XingYu-Zhong Aug 7, 2026
ccfc194
Merge pull request #1124 from KunAgent/codex/fix-tokenplan-model-cata…
XingYu-Zhong Aug 7, 2026
0d7f06f
feat: add in-place update handling and cleanup for automatic updates
XingYu-Zhong Aug 7, 2026
ee678c6
fix(models-dev-catalog): add MiniMax OpenAI-compatible /v1 endpoint a…
XingYu-Zhong Aug 7, 2026
9d900b9
fix(graph): preserve completion-ready runs on lead settlement (#1127)
XingYu-Zhong Aug 7, 2026
6de7210
fix(graph): add thread ownership gate and independent SSE observer (#…
XingYu-Zhong Aug 7, 2026
0f750f3
fix(scripts): ensure proper execution of .cmd scripts on Windows by u…
XingYu-Zhong Aug 7, 2026
278335d
fix: normalize Codex responses URL and update related endpoint handling
XingYu-Zhong Aug 7, 2026
bec9c87
fix: enhance explore_agent tool provider with dynamic advertising bas…
XingYu-Zhong Aug 7, 2026
e17a2f0
fix(cursor): re-expose Kun-exclusive tools and exclude overlapping Cu…
XingYu-Zhong Aug 7, 2026
1b0884d
feat: add explore functionality with new components and tests
XingYu-Zhong Aug 7, 2026
bdb1323
feat: implement ExplorePeekBody component and related tests; enhance …
XingYu-Zhong Aug 7, 2026
5461fc3
feat: add explore_agent tool with read-only access; update related te…
XingYu-Zhong Aug 7, 2026
47613b2
feat: enhance OpenCode Go cookie handling and diagnostics
XingYu-Zhong Aug 7, 2026
b5093ba
feat: enhance explore_agent handling in tool dispatch policy and mess…
XingYu-Zhong Aug 7, 2026
818a917
feat: release v0.2.37 with enhancements to explore_agent, Agent Graph…
XingYu-Zhong Aug 7, 2026
9ab2ef5
feat: implement CodeCanvas design surface for viewing design document…
XingYu-Zhong Aug 8, 2026
4c0f75c
feat: add ppt_agent support to the lab settings
XingYu-Zhong Aug 8, 2026
1393ef2
feat(ppt-agent): add local tools for PPT export and guide reading
XingYu-Zhong Aug 8, 2026
b42f142
feat: add average TTFT and tokens per second metrics to usage tracking
XingYu-Zhong Aug 8, 2026
bd4fc99
fix(chat): keep subagent cards terminal when stale running lifecycle …
XingYu-Zhong Aug 8, 2026
4174d2f
feat(hybrid-thread-store): add cumulative timing aggregates for usage…
XingYu-Zhong Aug 8, 2026
1019071
feat(sidebar): prioritize unread and running threads
XingYu-Zhong Aug 8, 2026
2eaaf72
feat: enhance completion notification handling and unread completion …
XingYu-Zhong Aug 8, 2026
93ea6b0
feat: add support for paused delivery state in queued messages and up…
XingYu-Zhong Aug 8, 2026
65194fe
fix(providers): reuse stored credential for custom probes
XingYu-Zhong Aug 8, 2026
f32385e
fix(renderer): keep usage history visible on scaled windows
XingYu-Zhong Aug 8, 2026
5a18b4a
fix(composer): include local route models
XingYu-Zhong Aug 8, 2026
61de150
feat(locales): update browser tool terminology to "preview" in multip…
XingYu-Zhong Aug 8, 2026
efcdb90
feat(runtime): enhance UTF-8 handling and add usage endpoint tests
XingYu-Zhong Aug 8, 2026
c12be1c
feat(runtime): implement watchdog for cold-start recovery and enhance…
XingYu-Zhong Aug 9, 2026
ec907e0
fix(chat): restore ppt agent history cards
XingYu-Zhong Aug 9, 2026
2f1f412
feat(ppt): add image-first review workflow
XingYu-Zhong Aug 9, 2026
8dd1604
fix(graph): recover wrapped planning arguments
XingYu-Zhong Aug 9, 2026
ad3f9bc
fix(graph): redact incomplete tool arguments
XingYu-Zhong Aug 9, 2026
486612f
fix(runtime): stabilize busy threads and long tasks
XingYu-Zhong Aug 9, 2026
33576f5
merge: stabilize busy threads and long tasks
XingYu-Zhong Aug 9, 2026
872bd13
test(ppt): close graph-discovered coverage gaps
XingYu-Zhong Aug 9, 2026
d5480ae
fix(graph): require command-capable verification scopes
XingYu-Zhong Aug 9, 2026
383bec8
fix(ppt): provide locale fallback copy
XingYu-Zhong Aug 9, 2026
35d4412
test(ppt): cover image-first config defaults
XingYu-Zhong Aug 9, 2026
86e83c7
feat(linux): support system title bar
XingYu-Zhong Aug 9, 2026
d56dd4b
feat(telegram): add per-connection proxy configuration
XingYu-Zhong Aug 9, 2026
bd16b9f
feat(ui-plugin): add character size controls
XingYu-Zhong Aug 9, 2026
0bf49e1
merge: add Telegram proxy configuration
XingYu-Zhong Aug 9, 2026
e695d12
merge: add character size controls
XingYu-Zhong Aug 9, 2026
ce11fd8
fix(chat): collapse agent cards by default
XingYu-Zhong Aug 9, 2026
60a65f7
fix(ppt): harden image-first review workflow
XingYu-Zhong Aug 9, 2026
2e2cbeb
merge: harden PPT image-first review workflow
XingYu-Zhong Aug 9, 2026
726cf9f
fix(graph): prevent supervision delivery livelock
XingYu-Zhong Aug 9, 2026
89b13c2
Merge branch 'develop' into codex/fix-graph-raw-persistence
XingYu-Zhong Aug 9, 2026
ee86baf
fix(settings): hide default provider removal controls
XingYu-Zhong Aug 9, 2026
7f02140
refactor(repo): enforce 700-line file limit
XingYu-Zhong Aug 9, 2026
46d44c3
merge: integrate latest local develop
XingYu-Zhong Aug 9, 2026
c40bfdd
fix(installer): recover stale Windows migration journals
XingYu-Zhong Aug 9, 2026
6bd6781
Merge branch 'develop' into codex/fix-graph-raw-persistence
XingYu-Zhong Aug 9, 2026
f200eaf
fix(delegation): remove cumulative child-run limit
XingYu-Zhong Aug 9, 2026
a6a0829
fix(graph): expose externalized replay artifacts
XingYu-Zhong Aug 9, 2026
c0a66d1
Merge branch 'codex/fix-installer-recovery-journal' into develop
XingYu-Zhong Aug 9, 2026
c254860
feat(kun): add per-turn persona rendered as a cache-safe context block
MohamedWaelBishr Aug 10, 2026
e9399b4
feat(settings): add the Code agent persona preset catalog
MohamedWaelBishr Aug 10, 2026
de81dd8
feat(composer): add the persona picker and send the selection per turn
MohamedWaelBishr Aug 10, 2026
1b99702
feat(settings-ui): persona editor with a searchable lucide icon picker
MohamedWaelBishr Aug 10, 2026
6c0ac45
feat(preview): allow public URLs in dev preview with precise errors
XingYu-Zhong Aug 10, 2026
f3e71b9
merge: allow public URLs in dev preview (codex/preview-public-urls)
XingYu-Zhong Aug 10, 2026
a86560e
feat: implement usage event compaction and streaming queries for sess…
XingYu-Zhong Aug 10, 2026
0c5f4c8
fix(tui): skip GUI catalog import when shared runtime is live
XingYu-Zhong Aug 10, 2026
2d87f7a
merge: fix TUI misleading GUI catalog lease warning (#1144)
XingYu-Zhong Aug 10, 2026
07a0d28
fix(kun): defer session compaction off the live turn path
XingYu-Zhong Aug 10, 2026
dc851db
merge: defer session compaction off live turns (codex/fix-compaction-…
XingYu-Zhong Aug 10, 2026
e6c24f5
feat(settings): allow customizing the empty-chat welcome title
XingYu-Zhong Aug 10, 2026
f39a57d
Merge branch 'codex/chat-welcome-message' into develop
XingYu-Zhong Aug 10, 2026
06d9ef3
fix(chat): stop assistant final replies duplicating in one bubble
XingYu-Zhong Aug 10, 2026
c52b087
merge: stop assistant final replies duplicating in one bubble
XingYu-Zhong Aug 10, 2026
184c67f
fix(kun): omit fixed sampling params for Kimi K3 models
XingYu-Zhong Aug 10, 2026
206625d
merge: fix Kimi K3 fixed-sampling local agent failure (#1141)
XingYu-Zhong Aug 10, 2026
0c7cdc2
feat(runtime): auto-resume interrupted tasks after restart
XingYu-Zhong Aug 10, 2026
2fdcfc7
merge: auto-resume interrupted tasks after restart (codex/interrupted…
XingYu-Zhong Aug 10, 2026
a07c542
fix(runtime): improve model catalog loading and error handling in Sha…
XingYu-Zhong Aug 10, 2026
9bde95e
fix(chat): hide subagent logos in focus mode
XingYu-Zhong Aug 10, 2026
28ed03a
fix(loop): recover Chinese tool-failure progress continuations
XingYu-Zhong Aug 10, 2026
6d35bff
merge: recover tool-failure progress continuations
XingYu-Zhong Aug 10, 2026
e0cb387
fix(graph): classify planning host failures safely
XingYu-Zhong Aug 10, 2026
891dd96
merge: complete graph mode optimization
XingYu-Zhong Aug 10, 2026
f87c07e
fix(tests): align settings mocks with current contract
XingYu-Zhong Aug 10, 2026
2267dc1
feat(preview): add live Office file previews
XingYu-Zhong Aug 10, 2026
045026d
feat(composer): redesign responsive usage footer
XingYu-Zhong Aug 10, 2026
86d9f35
fix(tray): keep mac dock icon visible
XingYu-Zhong Aug 10, 2026
0c433ac
feat(agent): batch parallel explore agents
XingYu-Zhong Aug 11, 2026
31a9215
fix(delegation): externalize oversized child results
XingYu-Zhong Aug 11, 2026
387beda
merge: bound subagent result handoffs
XingYu-Zhong Aug 11, 2026
dd4685c
feat(subagents): resume interrupted child runs
XingYu-Zhong Aug 11, 2026
2c86f1e
feat(preview): render office files in the browser
XingYu-Zhong Aug 11, 2026
b75193a
fix(ppt): isolate dedicated agent design authority
XingYu-Zhong Aug 11, 2026
a5b6e30
merge: isolate PPT agent design authority
XingYu-Zhong Aug 11, 2026
ef62998
docs(openspec): plan ppt design preview quality upgrades
XingYu-Zhong Aug 11, 2026
b2ef4d2
feat(ppt): add visual direction selection
XingYu-Zhong Aug 11, 2026
4d7db0e
feat(preview): add pptx filmstrip and fullscreen
XingYu-Zhong Aug 11, 2026
2cf1aff
feat(ppt): add geometry quality gates
XingYu-Zhong Aug 11, 2026
f0a56d8
feat: enhance guidance system to support image attachments
XingYu-Zhong Aug 11, 2026
e68b098
Merge branch 'develop' into codex/ppt-design-preview-qa
XingYu-Zhong Aug 11, 2026
d3d3b73
feat(knowledge): add vectorless write workspace retrieval
XingYu-Zhong Aug 11, 2026
9c7afba
merge: add vectorless write workspace knowledge bases
XingYu-Zhong Aug 11, 2026
8a933c6
feat(write): preview and discuss office documents
XingYu-Zhong Aug 12, 2026
d68b97c
feat(knowledge): index office documents locally
XingYu-Zhong Aug 12, 2026
ab5ecec
feat: enhance workspace file actions and editor layout management
XingYu-Zhong Aug 12, 2026
a02e72b
feat: enhance Write Assistant Panel and Editor Group functionality
XingYu-Zhong Aug 11, 2026
eb3f1d6
Merge pull request #1143 from MohamedWaelBishr/feat/code-persona-presets
XingYu-Zhong Aug 12, 2026
dda549c
Merge remote-tracking branch 'origin/develop' into develop
XingYu-Zhong Aug 11, 2026
485920c
feat: Add document quote functionality and related tests
XingYu-Zhong Aug 12, 2026
ac9e643
feat: enhance subagent management with user stop functionality and co…
XingYu-Zhong Aug 12, 2026
6fb1bf8
fix(write): restore queued assistant input
XingYu-Zhong Aug 12, 2026
99a9325
feat(work): preview code files
XingYu-Zhong Aug 12, 2026
490c84b
fix(design): restore embedded whiteboard workflows
XingYu-Zhong Aug 12, 2026
d09ccd0
merge: restore embedded design whiteboard workflows
XingYu-Zhong Aug 12, 2026
d70806b
fix(chat): keep runtime errors in timeline order
XingYu-Zhong Aug 12, 2026
a34ad21
merge: keep runtime errors in timeline order
XingYu-Zhong Aug 12, 2026
fbf8102
fix(graph): preserve disjoint workspace changes
XingYu-Zhong Aug 12, 2026
312bfaf
feat(work): add whiteboard canvas surface
XingYu-Zhong Aug 12, 2026
1044889
fix(work): harden whiteboard workflow guards
XingYu-Zhong Aug 12, 2026
879d62c
merge: add Work whiteboard canvas
XingYu-Zhong Aug 12, 2026
8eaee1b
fix(runtime): replace only current kun serve
XingYu-Zhong Aug 12, 2026
5012a4a
feat: enhance plan worktree runtime admission and recovery mechanisms
XingYu-Zhong Aug 12, 2026
203a5d7
feat(plan): redesign inline build card
XingYu-Zhong Aug 12, 2026
9ce47cb
fix(work): preserve agent context boundaries
XingYu-Zhong Aug 12, 2026
7e28a45
fix(gateway): restore local route configuration
XingYu-Zhong Aug 12, 2026
258fe02
fix(settings): default git checkpoints to off
XingYu-Zhong Aug 12, 2026
ba60bc5
fix(design): preserve first-send task intent
XingYu-Zhong Aug 12, 2026
c73bcd1
fix(runtime): preserve hot-turn prompt cache
XingYu-Zhong Aug 12, 2026
af56665
fix(git): improve handling of source checkout changes in preflight ch…
XingYu-Zhong Aug 12, 2026
61a264d
Update README and assets; adjust memory pressure monitor defaults
XingYu-Zhong Aug 12, 2026
9fddc4a
fix(design): restore task identity and canvas delivery
XingYu-Zhong Aug 12, 2026
24b8460
feat: Enhance work whiteboard session management and navigation
XingYu-Zhong Aug 12, 2026
b6f69f7
fix(design): restore session list and canvas
XingYu-Zhong Aug 12, 2026
5cc24a0
fix(ppt): stabilize Work presentation flow
XingYu-Zhong Aug 13, 2026
74f490f
fix(ppt): recover Work presentation workflows
XingYu-Zhong Aug 13, 2026
6ec91e7
feat: Implement fallback mechanism for isolated plan builds in workbe…
XingYu-Zhong Aug 13, 2026
7b92e62
feat: Add Fast Context evidence types and parsing functions
XingYu-Zhong Aug 13, 2026
780c052
feat(workbench): unify code design and work
XingYu-Zhong Aug 13, 2026
002c45f
fix(write): remove duplicate selection AI composer
XingYu-Zhong Aug 12, 2026
b995b35
feat: add Fast Context evidence card and detail components
XingYu-Zhong Aug 13, 2026
d19bb7f
refactor: rename explore_agent to fast_context and update related com…
XingYu-Zhong Aug 13, 2026
c3a5404
refactor: rename .kun-write/whiteboards to .kun-whiteboards across th…
XingYu-Zhong Aug 13, 2026
96e2872
feat: add plan build admission metadata and enhance thread usage hand…
XingYu-Zhong Aug 13, 2026
6a2a524
refactor: replace 'Explore agent' with 'Fast Context' in various comp…
XingYu-Zhong Aug 13, 2026
17069bc
fix(sidebar): expand project threads in batches
XingYu-Zhong Aug 13, 2026
25ecf36
merge: sidebar progressive expansion
XingYu-Zhong Aug 13, 2026
5292711
feat: update withRegistryCredentials to accept providerIds for target…
XingYu-Zhong Aug 13, 2026
bab56f8
feat: enhance design document handling and improve message timeline t…
XingYu-Zhong Aug 13, 2026
fb32b07
fix(usage): restore cache metrics after reopening threads
XingYu-Zhong Aug 13, 2026
d8fa8be
merge: restore cache usage after reopening threads
XingYu-Zhong Aug 13, 2026
f9a6648
feat: update withRegistryCredentials to accept additional parameters …
XingYu-Zhong Aug 13, 2026
c053dc9
fix(plan-worktree): persist and repair the durable plan-build admissi…
XingYu-Zhong Aug 13, 2026
bfc4053
fix(work-canvas): normalize top-level text aliases, persist invalid-o…
XingYu-Zhong Aug 13, 2026
ba883b6
feat(work-canvas): two-phase design tool receipts so the model sees r…
XingYu-Zhong Aug 13, 2026
7ab55e4
fix(design): per-turn Code/Design surface selection and whiteboard ge…
XingYu-Zhong Aug 13, 2026
d50fb24
Merge branch 'codex/per-turn-surface-fix' into develop
XingYu-Zhong Aug 13, 2026
8c36f5b
fix(work-canvas): pass threadId to canvas receipt handler
XingYu-Zhong Aug 13, 2026
3f355d4
fix(chat): keep active turn user message anchored in paged timeline
XingYu-Zhong Aug 13, 2026
af3736e
fix(workbench): dedupe whiteboard title sync
XingYu-Zhong Aug 13, 2026
9214c17
fix(remote-data-stores): update thread schema to ThreadSchemaReadable…
XingYu-Zhong Aug 13, 2026
9cbbf33
chore: checkpoint in-flight worktree changes before merging sidebar t…
XingYu-Zhong Aug 13, 2026
9c563ba
feat(kun): keyset pagination and lean projection for /v1/threads
XingYu-Zhong Aug 13, 2026
1e5be25
feat(sidebar): loading state, cache-first startup, and per-workspace …
XingYu-Zhong Aug 13, 2026
f68998b
merge: progressive sidebar thread loading into develop
XingYu-Zhong Aug 13, 2026
94c2a0c
feat: add pagination support for thread listing and enhance quota par…
XingYu-Zhong Aug 13, 2026
bff5890
feat: add title support for code canvas panel and improve work whiteb…
XingYu-Zhong Aug 13, 2026
37497e0
refactor: streamline Kun serve process management and enhance worktre…
XingYu-Zhong Aug 14, 2026
1be9999
refactor: remove plan worktree actions and related tests
XingYu-Zhong Aug 14, 2026
cc7aade
feat: enhance canvas viewport synchronization and image generation pr…
XingYu-Zhong Aug 14, 2026
83365b7
feat: Enhance canvas design system integration and placement logic
XingYu-Zhong Aug 14, 2026
6fef35d
feat: 更新 README 文档,增强对 Kun 工作台功能的描述并添加新示例图像
XingYu-Zhong Aug 14, 2026
f9c5721
fix(delegation): retain accrued usage for failed child agents
XingYu-Zhong Aug 14, 2026
86afa65
fix(checkpoint): enforce hard retention cap and disk quota to stop st…
XingYu-Zhong Aug 14, 2026
d45527c
fix(kun): make cumulative tool-result hygiene cache-stable
XingYu-Zhong Aug 14, 2026
8fa5b8a
feat: 更新版本号至 0.3.0,并添加显式版本提升逻辑
XingYu-Zhong Aug 14, 2026
cf17f40
merge: reconcile master after v0.2.37 squash merge to restore shared …
XingYu-Zhong Aug 14, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ TestResults.xml
.kun-design/
.kun/images/
.kun-canvas/
.kun-whiteboards/
.kunsdd/
openspec/

Expand Down
2 changes: 2 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ This guide is for AI agents working in this repository. It collects the project
- Unit tests: `npm run test`
- Build: `npm run build`
- Lint: `npm run lint`
- File-size gate: `npm run check:file-lines` (every tracked non-binary, non-lockfile text file must be at most 700 physical lines)
- Changes under `kun/` should pass `npm run build:kun`; top-level `dev` and `build` both run it first.
- Before committing, run the smallest checks that cover the change. Cross-layer contracts, runtime behavior, settings, providers, and packaging changes usually need `npm run typecheck`, relevant `vitest` coverage, and `npm run build`.
- If a check fails, separate newly introduced failures from existing baseline failures. Do not silently treat unrelated baseline failures as passing.
Expand Down Expand Up @@ -121,6 +122,7 @@ gh pr create --base develop --head <branch> --title "<title>" --body-file <file>

## Repository Hygiene

- Keep every tracked authored text file at or below 700 physical lines. Split files by cohesive feature or operation before they cross the limit; do not bypass the gate with generated formatting or line compaction.
- Do not commit build artifacts, extracted apps, temporary logs, or local investigation notes.
- Keep changes local to the requested area. Do not reformat the whole repository, reorder unrelated files, or remove existing comments as drive-by cleanup.
- New content should stay ASCII unless the surrounding file or user-facing requirement clearly needs otherwise.
1,011 changes: 58 additions & 953 deletions DESIGN.md

Large diffs are not rendered by default.

1,011 changes: 58 additions & 953 deletions DESIGN.zh-CN.md

Large diffs are not rendered by default.

267 changes: 72 additions & 195 deletions README.en.md

Large diffs are not rendered by default.

252 changes: 67 additions & 185 deletions README.md

Large diffs are not rendered by default.

23 changes: 22 additions & 1 deletion build/installer.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ Var /GLOBAL KunInstallerSecondarySourceDir
Var /GLOBAL KunInstallerTargetDir
Var /GLOBAL KunInstallerResultPath
Var /GLOBAL KunInstallerResultHandle
Var /GLOBAL KunInstallerJournalPath
Var /GLOBAL KunInstallerMigrationPrepared
Var /GLOBAL KunInstallerSnapshotMode
Var /GLOBAL KunInstallerPrimarySourceStale
Expand All @@ -22,6 +21,7 @@ Var /GLOBAL KunInstallerCurrentUserShortcutName
Var /GLOBAL KunInstallerCurrentUserMenuDirectory
!endif
Var /GLOBAL KunInstallerHelperPath
Var /GLOBAL KunInstallerJournalPath
Var /GLOBAL KunInstallerPowerShellPath
Var /GLOBAL KunInstallerHelperExitCode
Var /GLOBAL KunInstallerHelperOutput
Expand Down Expand Up @@ -62,6 +62,10 @@ Var /GLOBAL KunInstallerStopResult
InitPluginsDir
StrCpy $KunInstallerPowerShellPath "$SYSDIR\WindowsPowerShell\v1.0\powershell.exe"
File /oname=$PLUGINSDIR\kun-windows-installer-migration.ps1 "${PROJECT_DIR}\build\windows-installer-migration.ps1"
File /oname=$PLUGINSDIR\windows-installer-migration-paths.ps1 "${PROJECT_DIR}\build\windows-installer-migration-paths.ps1"
File /oname=$PLUGINSDIR\windows-installer-migration-journal.ps1 "${PROJECT_DIR}\build\windows-installer-migration-journal.ps1"
File /oname=$PLUGINSDIR\windows-installer-migration-filesystem.ps1 "${PROJECT_DIR}\build\windows-installer-migration-filesystem.ps1"
File /oname=$PLUGINSDIR\windows-installer-migration-actions.ps1 "${PROJECT_DIR}\build\windows-installer-migration-actions.ps1"
StrCpy $KunInstallerHelperPath "$PLUGINSDIR\kun-windows-installer-migration.ps1"
StrCpy $KunInstallerResultPath "$PLUGINSDIR\kun-windows-installer-result.txt"
System::Call 'kernel32::GetCurrentProcessId() i .r0'
Expand Down Expand Up @@ -113,6 +117,10 @@ Var /GLOBAL KunInstallerStopResult
InitPluginsDir
StrCpy $KunInstallerPowerShellPath "$SYSDIR\WindowsPowerShell\v1.0\powershell.exe"
File /oname=$PLUGINSDIR\kun-windows-installer-migration.ps1 "${PROJECT_DIR}\build\windows-installer-migration.ps1"
File /oname=$PLUGINSDIR\windows-installer-migration-paths.ps1 "${PROJECT_DIR}\build\windows-installer-migration-paths.ps1"
File /oname=$PLUGINSDIR\windows-installer-migration-journal.ps1 "${PROJECT_DIR}\build\windows-installer-migration-journal.ps1"
File /oname=$PLUGINSDIR\windows-installer-migration-filesystem.ps1 "${PROJECT_DIR}\build\windows-installer-migration-filesystem.ps1"
File /oname=$PLUGINSDIR\windows-installer-migration-actions.ps1 "${PROJECT_DIR}\build\windows-installer-migration-actions.ps1"
StrCpy $KunInstallerHelperPath "$PLUGINSDIR\kun-windows-installer-migration.ps1"
System::Call 'kernel32::GetCurrentProcessId() i .r0'
StrCpy $KunInstallerCurrentPid $0
Expand Down Expand Up @@ -245,6 +253,19 @@ Var /GLOBAL KunInstallerStopResult
nsExec::ExecToLog `"$PowerShellPath" -NoProfile -ExecutionPolicy Bypass -Command "$$p=[Environment]::GetEnvironmentVariable('Path','User');$$parts=@($$p -split ';' | ? { $$_.Trim() -ne '' -and -not $$_.TrimEnd('\').Equals($$env:KUN_CLI_BIN.TrimEnd('\'),'OrdinalIgnoreCase') });[Environment]::SetEnvironmentVariable('Path',($$parts -join ';'),'User')"`
Pop $0
System::Call 'user32::SendMessageTimeout(i 0xffff, i 0x001A, i 0, t "Environment", i 2, i 5000, *i .r0)'
${ifNot} ${isUpdated}
StrCpy $KunInstallerJournalPath "$APPDATA\KunInstallerRecovery\${APP_GUID}.json"
System::Call 'kernel32::SetEnvironmentVariable(t, t)i ("KUN_INSTALLER_SOURCE", "$INSTDIR").r0'
System::Call 'kernel32::SetEnvironmentVariable(t, t)i ("KUN_INSTALLER_SECONDARY_SOURCE", "").r0'
System::Call 'kernel32::SetEnvironmentVariable(t, t)i ("KUN_INSTALLER_TARGET", "$INSTDIR").r0'
System::Call 'kernel32::SetEnvironmentVariable(t, t)i ("KUN_INSTALLER_JOURNAL", "$KunInstallerJournalPath").r0'
System::Call 'kernel32::SetEnvironmentVariable(t, t)i ("KUN_INSTALLER_INSTALL_MODE", "$installMode").r0'
System::Call 'kernel32::SetEnvironmentVariable(t, t)i ("KUN_INSTALLER_APP_GUID", "${APP_GUID}").r0'
!insertmacro kunRunMigrationHelper CleanupJournal
${if} $KunInstallerHelperExitCode != 0
DetailPrint "Kun preserved installer recovery state during uninstall: $KunInstallerHelperOutput"
${endif}
${endif}
!macroend

# installer.nsi inserts customHeader after common.nsh, multiUser.nsh, and the
Expand Down
Loading
Loading