Skip to content

Share .ok/skills in local-only mode via a Skills carve-out toggle (#2711)#673

Merged
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync
Jul 17, 2026
Merged

Share .ok/skills in local-only mode via a Skills carve-out toggle (#2711)#673
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync

Conversation

@inkeep-oss-sync

Copy link
Copy Markdown
Contributor

Copybara-translated 1 Inkeep OSS change. Rebase-merge this PR so the prepared commit lands directly on public main.

…711)

* Share .ok/skills in local-only mode via a Skills carve-out toggle

In local-only sharing mode the whole .ok/ tree is added to
.git/info/exclude, so project skills under .ok/skills (shareable content,
not machine-local config) silently cannot be committed or shared.

Git refuses to re-include a path whose parent dir is excluded, so a bare
!.ok/skills/ after .ok/ does not work. The carve-out replaces the blanket
.ok/ line with **/.ok/* plus !**/.ok/skills/ - skills become committable at
any depth while local/, config.yml, worktrees/ and PII files stay hidden.

Core: setSkillsShared / readSkillsShared in git-exclude.ts; removeOkPaths
strips the carve lines on the shared transition; readSharingMode recognizes
the carve as local-only. Desktop: a set-skills-shared IPC dispatch and a
skillsShared status field. UI: a one-click "Share skills" prompt in the
Skills sidebar (local-only only), plus a SharingSection "skills are shared"
indicator with an Undo so the carve state is visible and reversible. CLI:
ok config-sharing status reports skillsShared and a carve-state note.

* Address re-review: fix Undo result-inspection + doc/CLI polish

- SharingSection.onUndoSkillsShare now inspects the setSkillsShared(false)
  result like onSelect does: a `no-exclude` outcome (git config unavailable
  / exclude file unwritable) surfaces a warning instead of a false success.
- Map `no-exclude` reason codes (no-git / inaccessible / other) to plain
  English in both the sidebar share toast and the Settings Undo toast,
  instead of leaking internal terms like `malformed-pointer`.
- CLI `ok config-sharing status`: in the carve state, clarify that the
  "Toggle with" hint shares the whole project and skills-only undo is a
  desktop action, so it isn't misread as an undo-the-carve command.
- Refresh the stale "two-method" sharing-dispatch comments in
  preload/index.ts and ipc-channels.ts to name the third arm
  (set-skills-shared / setSkillsShared).

GitOrigin-RevId: 95ce9e4cbabeabd20069832a0b509357c59709d7
@inkeep-oss-sync
inkeep-oss-sync Bot merged commit a50b9f8 into main Jul 17, 2026
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@inkeep-oss-sync
inkeep-oss-sync Bot deleted the copybara/sync branch July 17, 2026 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants