Skip to content

W1: remove nb__manage_app#274

Merged
mgoldsborough merged 1 commit into
mainfrom
feat/identity-app-surface
May 25, 2026
Merged

W1: remove nb__manage_app#274
mgoldsborough merged 1 commit into
mainfrom
feat/identity-app-surface

Conversation

@mgoldsborough
Copy link
Copy Markdown
Contributor

Re-lands #273, which was merged into stage-2/main (already squash-merged to main via #272) and got stranded — its W1 commit never reached main.

This is a cherry-pick of eab163a onto current main. The cherry-pick applied with zero conflicts and the resulting tree is byte-identical to the state that passed CI on #273.

Removes the conversational nb__manage_app install/uninstall/configure chat tool (non-functional today; conversational workspace mutation deserves real design later). Install lifecycle, CLI, catalog, and connector config UI are unaffected.

* feat(stage-2/identity-apps W1): remove nb__manage_app

Rip out the conversational bundle install/uninstall/configure chat tool.
It was non-functional today, and conversational workspace mutation deserves
real design later (single tool, explicit workspace param, per-call admin
auth) — so remove rather than redesign. The install lifecycle, CLI, catalog,
and connector config UI are unaffected.

- system-tools.ts: drop the manage_app tool def + the configureBundle /
  install/uninstallBundleFromWorkspaceViaCtx helpers and ManageBundleContext.
  Keep the exported resolveBundleServerName (still consumed by uninstall).
  gate/manageBundleCtx become reserved positional slots (_gate /
  _manageBundleCtx) so every call site's arity holds.
- runtime.ts: drop the manageBundleCtx construction + call-site arg.
- features.ts / privilege.ts: drop the manage_app feature-map entries and
  privilege rule. bundleManagement flag kept as a reserved operator knob.
- bootstrap.md / skill-authoring.md: install + credential setup now happen
  in the Apps catalog / CLI, not chat.
- CLI deprecation strings + stale comments repointed off manage_app.
- Tests: delete the two manage_app-only integration files; repoint the
  privilege/audit/visibility tests to the surviving skills__create gate;
  assert manage_app is absent.

* fix(W1): delete dead uninstall helpers orphaned by manage_app removal

QA review caught that resolveBundleServerName (system-tools.ts) and
uninstallBundleFromWorkspace (workspace-ops.ts) had exactly one caller —
the uninstallBundleFromWorkspaceViaCtx helper this PR already removed — so
both are dead production code after W1, not "consumed by the uninstall
path" as the PR body wrongly claimed.

The canonical uninstall is BundleLifecycleManager.uninstall(), which is
self-contained: it resolves the server name via its instance map, runs the
protected check, removes the source, clears workspace credentials, and
unregisters placements/config/automations. It never touched either helper.

- Delete both functions and their two unit tests
  (workspace-ops-uninstall, workspace-uninstall-credentials). Those tests
  only pinned dead code; the live behaviors are covered against
  lifecycle.uninstall() in lifecycle.test.ts (protected reject, credential
  file removal + sibling untouched, data-dir preservation, idempotent
  no-op).
- installBundleInWorkspace stays — it's still live (connector install).
- Drop the stale comments that referenced the deleted sibling and a
  non-existent "catalog/connector uninstall" caller.

---------

Co-authored-by: Mathew Goldsborough <1759329+mgoldsborough@users.noreply.github.com>
@mgoldsborough mgoldsborough merged commit 77ca2a3 into main May 25, 2026
3 checks passed
@mgoldsborough mgoldsborough deleted the feat/identity-app-surface branch May 25, 2026 19:02
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