steps 5-8: deep gut — purge chat/notes/projects/providers from code
Some checks failed
CI/CD / detect-changes (push) Successful in 4s
CI/CD / test-frontend (push) Failing after 6s
CI/CD / test-sqlite (push) Failing after 25s
CI/CD / test-go-pg (push) Failing after 26s
CI/CD / build-and-deploy (push) Has been skipped

main.go: remove ~300 lines of stale routes referencing deleted handlers
  (channels, messages, folders, personas, notes, projects, memories,
   models, providers, tasks, roles, usage, routing, capabilities, etc.)
  Fix branding: "Chat Switchboard" → "Switchboard Core"

pages: remove chat/notes/projects surface manifests and templates
  Keep: admin, settings, team-admin, workflow, workflow-landing

frontend: delete chat/, notes/, projects/ surface directories (19 files)
  Delete 5 CSS files (4,144 lines): sw-chat-*, sw-notes-*, sw-projects-*
  SDK: strip gutted API domains (594→287 lines), remove chatPane/notesPane

tests: remove integration_test.go (5,194 lines, broken imports to deleted
  packages) and perm_enforcement_test.go (551 lines, depended on deleted
  test helpers). Fix testmain_test.go (remove providers import).

openapi.yaml: replace 12,491-line stale spec with kernel auth stub.
  Full ICD rebuild is Step 8 proper.

Auth (builtin, mTLS, OIDC) untouched throughout.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-26 09:47:32 +00:00
parent a9c652ff59
commit 45291860c5
36 changed files with 76 additions and 25937 deletions

View File

@@ -1,5 +1,5 @@
// ==========================================
// Chat Switchboard — SDK Entry Point
// Switchboard Core — SDK Entry Point
// ==========================================
// Assembles all SDK modules into the `sw` object
// and runs the boot sequence.
@@ -129,28 +129,6 @@ export async function boot() {
});
};
// ChatPane render helper — surfaces call sw.chatPane(container, opts)
// Returns Promise<imperative handle> for backward-compat with old ChatPane API.
sw.chatPane = function (container, opts = {}) {
return import('../components/chat-pane/index.js').then(({ ChatPane }) => {
const handleRef = { current: null };
const { render } = preact;
render(html`<${ChatPane} handleRef=${handleRef} ...${opts} />`, container);
return handleRef.current;
});
};
// NotesPane render helper — surfaces call sw.notesPane(container, opts)
// Returns Promise<imperative handle>.
sw.notesPane = function (container, opts = {}) {
return import('../components/notes-pane/index.js').then(({ NotesPane }) => {
const handleRef = { current: null };
const { render } = preact;
render(html`<${NotesPane} handleRef=${handleRef} ...${opts} />`, container);
return handleRef.current;
});
};
// Marker for idempotency
sw._sdk = '0.38.1';