@hung319/opencode-hive 1.4.1 → 1.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -374,6 +374,105 @@ Override models for specific agents:
374
374
  }
375
375
  ```
376
376
 
377
+ ## Agent Booster Tools
378
+
379
+ Ultra-fast code editing powered by Rust+WASM. **52x faster than Morph LLM, FREE (no API key required).**
380
+
381
+ ### Tools
382
+
383
+ | Tool | Description |
384
+ |------|-------------|
385
+ | `hive_code_edit` | Ultra-fast code editing with automatic fallback |
386
+ | `hive_lazy_edit` | Edit with `// ... existing code ...` markers |
387
+ | `hive_booster_status` | Check agent-booster availability |
388
+
389
+ ### Usage
390
+
391
+ ```typescript
392
+ // Edit with old/new content
393
+ hive_code_edit({
394
+ path: "src/index.ts",
395
+ oldContent: "const old = 'value';",
396
+ newContent: "const new = 'updated';"
397
+ })
398
+ ```
399
+
400
+ ### Lazy Edit Example
401
+
402
+ ```typescript
403
+ // Use markers for partial code
404
+ hive_lazy_edit({
405
+ path: "src/component.tsx",
406
+ snippet: `// ... existing code ...
407
+ export const newFeature = () => { ... };
408
+ // ... existing code ...`
409
+ })
410
+ ```
411
+
412
+ ### Configuration
413
+
414
+ ```json
415
+ {
416
+ "agentBooster": {
417
+ "enabled": false,
418
+ "serverUrl": "http://localhost:3001",
419
+ "serverPort": 3001
420
+ }
421
+ }
422
+ ```
423
+
424
+ ## Vector Memory Tools
425
+
426
+ Semantic memory search powered by HNSW indexing. Find memories by meaning, not just keywords.
427
+
428
+ ### Tools
429
+
430
+ | Tool | Description |
431
+ |------|-------------|
432
+ | `hive_vector_search` | Semantic search across memories |
433
+ | `hive_vector_add` | Add memory with vector indexing |
434
+ | `hive_vector_status` | Check vector memory status |
435
+
436
+ ### Memory Types
437
+
438
+ - `decision`: Architectural decisions, design choices
439
+ - `learning`: Insights, discoveries, patterns found
440
+ - `preference`: User preferences, coding style
441
+ - `blocker`: Known blockers, workarounds
442
+ - `context`: Important context about the project
443
+ - `pattern`: Code patterns, recurring solutions
444
+
445
+ ### Usage
446
+
447
+ ```typescript
448
+ // Add a memory
449
+ hive_vector_add({
450
+ content: "Use async/await instead of .then() chains",
451
+ type: "learning",
452
+ scope: "async-patterns",
453
+ tags: ["javascript", "best-practice"]
454
+ })
455
+
456
+ // Search memories
457
+ hive_vector_search({
458
+ query: "async patterns JavaScript",
459
+ type: "learning",
460
+ limit: 10
461
+ })
462
+ ```
463
+
464
+ ### Configuration
465
+
466
+ ```json
467
+ {
468
+ "vectorMemory": {
469
+ "enabled": false,
470
+ "indexPath": "~/.config/opencode/hive/vector-index",
471
+ "dimensions": 384
472
+ }
473
+ }
474
+ ```
475
+
377
476
  ## License
378
477
 
379
478
  MIT with Commons Clause — Free for personal and non-commercial use. See [LICENSE](../../LICENSE) for details.
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Smart Session Title Plugin
3
+ *
4
+ * Auto-generates meaningful session titles based on conversation content.
5
+ * Based on: https://github.com/Tarquinen/opencode-smart-title
6
+ *
7
+ * Note: This is a simplified version that uses heuristics.
8
+ * Full AI-based title generation can be added later.
9
+ */
10
+ import type { Event } from '@opencode-ai/sdk';
11
+ export interface SmartTitleConfig {
12
+ enabled?: boolean;
13
+ updateThreshold?: number;
14
+ }
15
+ export declare function createSmartTitleHandler(config: SmartTitleConfig): (input: {
16
+ event: Event;
17
+ }) => Promise<void>;
18
+ export declare function clearSessionData(sessionID: string): void;