Skip to content

Commit f8d0575

Browse files
fix: Correct SDK package name from @lokus/plugin-sdk to lokus-plugin-sdk
The actual npm package is lokus-plugin-sdk (not scoped). Updated all documentation to use the correct package name.
1 parent 77c448a commit f8d0575

9 files changed

Lines changed: 22 additions & 22 deletions

File tree

pages/developers/plugins/advanced.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Built-in testing utilities for comprehensive plugin testing:
121121
### Basic Testing
122122

123123
```typescript
124-
import { createMockContext, TestHelper } from '@lokus/plugin-sdk/testing'
124+
import { createMockContext, TestHelper } from 'lokus-plugin-sdk/testing'
125125

126126
describe('MyPlugin', () => {
127127
let context: PluginContext
@@ -241,11 +241,11 @@ lokus-plugin publish
241241
Full TypeScript definitions included:
242242

243243
```bash
244-
npm install --save-dev @lokus/plugin-sdk
244+
npm install --save-dev lokus-plugin-sdk
245245
```
246246

247247
```typescript
248-
import { Plugin, PluginContext } from '@lokus/plugin-sdk'
248+
import { Plugin, PluginContext } from 'lokus-plugin-sdk'
249249

250250
export default class MyPlugin implements Plugin {
251251
async activate(context: PluginContext) {
@@ -504,7 +504,7 @@ export function activate(context: vscode.ExtensionContext) {
504504
}
505505

506506
// Lokus (similar API)
507-
import { Plugin, PluginContext } from '@lokus/plugin-sdk'
507+
import { Plugin, PluginContext } from 'lokus-plugin-sdk'
508508

509509
export default class MyPlugin implements Plugin {
510510
async activate(context: PluginContext) {

pages/developers/plugins/architecture.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ Major version changes indicate breaking changes:
400400
**Migration Support:**
401401
```typescript
402402
// Plugin SDK provides compatibility layer
403-
import { compat } from '@lokus/plugin-sdk'
403+
import { compat } from 'lokus-plugin-sdk'
404404

405405
export default class MyPlugin implements Plugin {
406406
async activate(context: PluginContext) {

pages/developers/plugins/data-providers.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Data providers allow you to:
2020
## Basic Data Provider
2121

2222
```typescript
23-
import { Plugin, PluginContext } from '@lokus/plugin-sdk'
23+
import { Plugin, PluginContext } from 'lokus-plugin-sdk'
2424

2525
export default class DataProviderPlugin implements Plugin {
2626
private api!: LokusAPI

pages/developers/plugins/editor-plugins.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ const SafeNode = Node.create({
465465
### Testing
466466
467467
```typescript
468-
import { createTestEditor } from '@lokus/plugin-sdk/testing'
468+
import { createTestEditor } from 'lokus-plugin-sdk/testing'
469469

470470
describe('CustomNode', () => {
471471
it('should insert custom node', () => {

pages/developers/plugins/lifecycle.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ class CachedPlugin implements Plugin {
512512
## Testing Lifecycle
513513

514514
```typescript
515-
import { createMockContext, TestHelper } from '@lokus/plugin-sdk/testing'
515+
import { createMockContext, TestHelper } from 'lokus-plugin-sdk/testing'
516516

517517
describe('Plugin Lifecycle', () => {
518518
let context: PluginContext

pages/developers/plugins/manifest.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ Peer dependencies (must be provided by host or other plugins).
780780
```json
781781
{
782782
"peerDependencies": {
783-
"@lokus/plugin-sdk": "^1.0.0"
783+
"lokus-plugin-sdk": "^1.0.0"
784784
}
785785
}
786786
```
@@ -962,7 +962,7 @@ Here's a comprehensive manifest example:
962962
},
963963

964964
"dependencies": {
965-
"@lokus/plugin-sdk": "^1.0.0"
965+
"lokus-plugin-sdk": "^1.0.0"
966966
},
967967

968968
"devDependencies": {

pages/developers/plugins/mcp-integration.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import {
3131
MCPToolBuilder,
3232
MCPPromptBuilder,
3333
MCPServer
34-
} from '@lokus/plugin-sdk'
34+
} from 'lokus-plugin-sdk'
3535

3636
export default class MyMCPPlugin implements Plugin {
3737
private mcpServer?: MCPServer
@@ -534,7 +534,7 @@ const exportTool = new MCPToolBuilder()
534534
Test your MCP tools with the built-in testing framework:
535535

536536
```typescript
537-
import { createMockContext, TestHelper } from '@lokus/plugin-sdk/testing'
537+
import { createMockContext, TestHelper } from 'lokus-plugin-sdk/testing'
538538

539539
describe('MCP Integration', () => {
540540
let context: PluginContext

pages/developers/plugins/overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Create custom data visualizations and diagrams.
165165
Get started with plugin development in minutes:
166166

167167
```typescript
168-
import { Plugin, PluginContext } from '@lokus/plugin-sdk'
168+
import { Plugin, PluginContext } from 'lokus-plugin-sdk'
169169

170170
export default class MyPlugin implements Plugin {
171171
async activate(context: PluginContext) {

pages/developers/plugins/performance.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Lokus v1.3 supports WebAssembly modules for compute-intensive operations, provid
105105
### Loading WASM Modules
106106

107107
```typescript
108-
import { Plugin, PluginContext } from '@lokus/plugin-sdk'
108+
import { Plugin, PluginContext } from 'lokus-plugin-sdk'
109109

110110
export default class WasmPlugin implements Plugin {
111111
private wasmModule?: any
@@ -227,7 +227,7 @@ impl TextAnalyzer {
227227
### Using Rust WASM in Plugin
228228

229229
```typescript
230-
import { Plugin, PluginContext } from '@lokus/plugin-sdk'
230+
import { Plugin, PluginContext } from 'lokus-plugin-sdk'
231231
import init, { TextAnalyzer } from './wasm/text_analyzer'
232232

233233
export default class TextAnalyzerPlugin implements Plugin {
@@ -275,7 +275,7 @@ Offload heavy computations to worker threads to keep UI responsive.
275275

276276
```typescript
277277
// worker.ts - Worker thread code
278-
import { expose } from '@lokus/plugin-sdk/worker'
278+
import { expose } from 'lokus-plugin-sdk/worker'
279279

280280
const workerAPI = {
281281
async processLargeFile(content: string) {
@@ -309,8 +309,8 @@ expose(workerAPI)
309309
### Main Plugin Code
310310

311311
```typescript
312-
import { Plugin, PluginContext } from '@lokus/plugin-sdk'
313-
import { wrap } from '@lokus/plugin-sdk/worker'
312+
import { Plugin, PluginContext } from 'lokus-plugin-sdk'
313+
import { wrap } from 'lokus-plugin-sdk/worker'
314314
import type { Remote } from 'comlink'
315315

316316
export default class WorkerPlugin implements Plugin {
@@ -370,7 +370,7 @@ Reduce unnecessary computations:
370370

371371
```typescript
372372
// Use built-in debounce utilities
373-
import { debounce } from '@lokus/plugin-sdk/utils'
373+
import { debounce } from 'lokus-plugin-sdk/utils'
374374

375375
const debouncedHandler = debounce((text) => {
376376
// Process text
@@ -401,7 +401,7 @@ function expensiveOperation(key: string) {
401401
}
402402

403403
// LRU cache with size limit
404-
import { LRUCache } from '@lokus/plugin-sdk/cache'
404+
import { LRUCache } from 'lokus-plugin-sdk/cache'
405405

406406
const lruCache = new LRUCache({ max: 100 })
407407

@@ -415,7 +415,7 @@ function cachedComputation(key: string) {
415415
For large lists, use virtual scrolling:
416416

417417
```typescript
418-
import { VirtualList } from '@lokus/plugin-sdk/ui'
418+
import { VirtualList } from 'lokus-plugin-sdk/ui'
419419

420420
const list = new VirtualList({
421421
container: containerElement,
@@ -434,7 +434,7 @@ const list = new VirtualList({
434434
Limit execution frequency:
435435

436436
```typescript
437-
import { throttle } from '@lokus/plugin-sdk/utils'
437+
import { throttle } from 'lokus-plugin-sdk/utils'
438438

439439
const throttledHandler = throttle((event) => {
440440
// Handle scroll event

0 commit comments

Comments
 (0)