Skip to content
This repository was archived by the owner on Aug 3, 2026. It is now read-only.

feat(bkos): Initialize BKOS Integration Package - #1

Closed
brittek wants to merge 2 commits into
mainfrom
claude/slack-session-EmxKJ
Closed

brittek wants to merge 2 commits into
mainfrom
claude/slack-session-EmxKJ

Conversation

@brittek

@brittek brittek commented Jun 4, 2026

Copy link
Copy Markdown
Owner

Summary

Initialize @brittek/bkos package for Brittek Operating System integration with Vue.js core. This PR establishes the foundation for Phase 1 of the BKOS integration project.

What's Included

✅ Package Structure

  • Created packages/bkos/ with organized directory structure
  • Composables, components, system layer, types, and more

✅ Type Definitions

  • Complete TypeScript types for BKOS APIs
  • Process, file system, window, IPC, and system resource types

✅ Plugin System

  • Vue plugin for BKOS integration
  • Global configuration and injection
  • Permission system foundation

✅ System Bridge

  • Interface layer between Vue and OS
  • Permission validation
  • System hooks setup

✅ Initial Composables

  • useProcess() - Process lifecycle management
  • useFileSystem() - Reactive file system operations
  • Stubs ready for implementation

✅ Documentation

  • BKOS_INTEGRATION.md - Complete 12-week integration plan
  • BKOS_TASKS.md - Detailed task breakdown and progress tracking
  • Package README with API examples

Integration Plan

This PR is Phase 1.1 of a 6-phase integration plan:

  • Phase 1: Foundation (Weeks 1-2) - 30% Complete ⬅️ This PR
  • Phase 2: Vue Integration Layer (Weeks 3-4)
  • Phase 3: Runtime Integration (Weeks 5-6)
  • Phase 4: Developer Tools (Weeks 7-8)
  • Phase 5: Documentation & Examples (Weeks 9-10)
  • Phase 6: Optimization & Security (Weeks 11-12)

Next Steps

  1. Integrate BKOS with build system (rollup, scripts)
  2. Complete remaining composables implementation
  3. Create component stubs
  4. Write comprehensive tests
  5. Create example application

Files Changed

BKOS_INTEGRATION.md                        # 12-week integration roadmap
BKOS_TASKS.md                             # Detailed task breakdown
packages/bkos/package.json                # Package configuration
packages/bkos/README.md                   # Package documentation
packages/bkos/src/index.ts                # Main entry point
packages/bkos/src/plugin.ts               # Vue plugin
packages/bkos/src/types/index.ts          # Type definitions
packages/bkos/src/system/bridge.ts        # System bridge
packages/bkos/src/composables/useProcess.ts      # Process composable
packages/bkos/src/composables/useFileSystem.ts   # File system composable

API Preview

import { createApp } from 'vue'
import { createBKOS, useProcess, useFileSystem } from '@brittek/bkos'

const app = createApp(App)
app.use(createBKOS({
  permissions: ['filesystem', 'process', 'window']
}))
<template>
  <BKWindow title="My App" :width="800" :height="600">
    <BKFileExplorer v-model:path="currentPath" />
  </BKWindow>
</template>

<script setup>
import { useFileSystem } from '@brittek/bkos'
const fs = useFileSystem()
const files = fs.watch('/home/user')
</script>

Test Plan

  • Build system integration
  • Unit tests for composables
  • Integration tests for plugin
  • Example application

Related

Slack thread: https://premisis.slack.com/archives/C0AU04B0E6P/p1780562164557879


Status: 🚧 Draft - Phase 1 Foundation
Review: Architecture and API design feedback welcome


Generated by Claude Code

claude added 2 commits June 4, 2026 08:39
Initialize @brittek/bkos package for Brittek Operating System integration with Vue.js core.

Created:
- Package structure with composables, components, system layer
- Type definitions for BKOS APIs
- Plugin system for Vue integration
- System bridge for OS interaction
- Initial composables (useProcess, useFileSystem)
- Comprehensive integration plan and task breakdown

This establishes the foundation for Phase 1 of BKOS integration.

https://claude.ai/code/session_EmxKJ
Add stub implementations for all BKOS composables, components, and system modules:

Composables:
- useWindow: Native window control
- useSystemResources: Resource monitoring
- useIPC: Inter-process communication

Components:
- BKWindow, BKProcess, BKFileExplorer
- BKSystemTray, BKMenuBar

System modules:
- ProcessManager, FileSystemManager, WindowManager

Also includes pnpm-lock.yaml update for package dependencies.

All code passes linting and type checking.

https://claude.ai/code/session_EmxKJ

brittek commented Jun 4, 2026

Copy link
Copy Markdown
Owner Author

Closing This PR - Wrong Repository

This PR is being closed because BKOS integration code was incorrectly added to the Vue.js framework fork.

Why This Is Wrong

brittek/core is a fork of vuejs/core - the Vue.js framework source code. Framework forks should only contain:

  • Patches for upstream Vue.js
  • Custom Vue.js builds
  • Framework-level modifications

This PR added product-level code (BKOS operating system integration), which:

  • ❌ Pollutes the framework source with business logic
  • ❌ Makes upstream syncing impossible
  • ❌ Creates dependency conflicts with Vue.js updates
  • ❌ Mixes product IP with open-source framework code

Correct Architecture

BKOS needs its own separate repository: brittek/bkos

This will:

  • ✅ Keep Vue.js fork clean and syncable with upstream
  • ✅ Allow independent versioning and releases
  • ✅ Properly depend on Vue as a package (not workspace)
  • ✅ Maintain clear separation of concerns
  • ✅ Enable independent CI/CD and testing

Next Steps

  1. Create new repository: brittek/bkos
  2. Move BKOS code to the new repository
  3. Add Vue as a normal npm dependency
  4. Clean up this fork to remove BKOS changes

The BKOS integration work was good - it just needs to live in the right place. 🚀


Related Slack thread: https://premisis.slack.com/archives/C0AU04B0E6P/p1780562164557879


Generated by Claude Code

@brittek brittek closed this Jun 4, 2026
@brittek
brittek deleted the claude/slack-session-EmxKJ branch June 4, 2026 09:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants