Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Owner split: Skills faces on their owners - #2485

Draft
eric8810 wants to merge 3 commits into
mainfrom
dim/2022-extensions
Draft

eric8810 wants to merge 3 commits into
mainfrom
dim/2022-extensions

Conversation

@eric8810

@eric8810 eric8810 commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

Refs #2022

Owner split, block 1 of the content owners: Skills.

  • skillsCatalog is the catalog owner type's own #[rutis::service] block: register, withdraw, plugins, issues, and instructions, which answers the operator's how-to-use override (or null, keeping the Session's factory or built-in text). SkillsCatalogBinding and the skillsConfig face are gone; SkillsConfig has a private field and only the Skills Session part reads it.
  • Discovery, enablement and installation move to SkillsManagement at the private key dim/skills/catalog-management, read by the Session parts and the App Server's skills.* methods.
  • skillsBranch is the branch part's own #[rutis::service] block, and the branch re-delivers a changed list through Prompt's configure operation instead of ConfigureControl.
  • Access-layer entries removed: crates/dim-agent-capabilities/src/skills/face.rs SkillsCatalog (host-dispatch), crates/dim-agent-capabilities/src/skills/mod.rs SkillsConfig::instructions (rust-only-field), crates/dim-agent-capabilities/src/skills/session.rs SkillsBranch (host-dispatch).
  • Callers migrated: PluginManager content registration, skills_management, skill_references and process_typescript fixtures, legacy_session_faces, the Skills flow tests, local_support.

Still to come on this branch: the Mcp, Hooks and PluginManager blocks, including the remaining three access-layer entries (HooksService, McpService, McpSession::subscribe). This branch is expected not to compile yet: the debug pass compiles, finishes the migration and regenerates npm/branch-services.d.ts.

`skillsCatalog` is now the catalog owner's own `#[rutis::service]` block:
register, withdraw, plugins, issues and the new `instructions`, which answers
the operator's how-to-use override or null. No forwarding binding type and no
`skillsConfig` face remain; the factory text stays in the Skills Session part
with a private `SkillsConfig` field.

Discovery, enablement and installation move to `SkillsManagement`, reached
through the private `dim/skills/catalog-management` key by the Session parts
and the App Server's `skills.*` methods.

`skillsBranch` is the branch part's own `#[rutis::service]` block, and the
branch adopts a changed list through Prompt's `configure` operation instead of
the `ConfigureControl` interface.

Removes three access-layer entries and migrates PluginManager, the App Server
management boundaries and the Skills tests to the owner faces.

Refs #2022
`HooksService` is now a `#[rutis::service]` block: register, withdraw,
plugins, refusal and the new `sources({cwd})`. The hand-written dispatch is
gone, and the owner holds one reader over Settings and fsHost that both
`hooksService.sources` and the `HookSources` Session port read; the port binds
that same owner and no part builds a second reader. A refused document's
credential-safe reason crosses as the data of `refusal`.

`PluginTools` no longer holds the process `Manager`: the row gives its Session
part a `PluginOperations` handle for the `plugin.*` dispatch and the `config`
command's Settings read and write, and withdraws it when the row unloads.
PluginManager's Hooks content registration calls `hooksService.register` /
`withdraw`.

Removes the `HooksService` access-layer entry, migrates the Hooks fixtures and
tests, and updates the Hooks and PluginManager documents.

Refs #2022
`McpService` carries the `#[rutis::service]` block now: register, withdraw,
plugins and refusal, with no forwarding binding type and no hand-written
dispatch. Its other operations — catalog, entries, overlays, connection
generations, imports, diagnostics — move to `McpOperations` at the private
key `dim/mcp/management`, which the Session part, the `mcp.*` methods and
embedding hosts read.

`McpSession::subscribe` is gone: the face offers `state`, and the tests read
it there instead of subscribing to a Rust-only watch.

Removes the last two access-layer entries of this issue, migrates
PluginManager, the MCP fixtures and tests, and updates the management page.

Refs #2022

This branch has not been deployed

No deployments
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.

1 participant