Skip to content

Commit 9566a83

Browse files
committed
fix: 修复内存驱动程序中的导入路径错误,将 DriverOptions 从 system 更改为 data
1 parent 4a58f0a commit 9566a83

2 files changed

Lines changed: 17 additions & 4 deletions

File tree

.github/copilot-instructions.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,14 @@ Mission: Build the "Post-SaaS Operating System" — an open-core, local-first ec
2525
## 📘 1. The Metamodel Standards (Knowledge Base)
2626

2727
### **A. DATA PROTOCOL (`src/data/*.zod.ts`)**
28-
*Core Business Logic & Data Model*
28+
*Core Data Model*
2929

3030
* **Field (`src/data/field.zod.ts`)**:
3131
* **Type Enum**: `text`, `textarea`, `number`, `boolean`, `select`, `lookup`, `formula`, ...
3232
* **Props**: `name` (snake_case), `label`, `type`, `multiple` (Array support), `reference` (Target Object).
3333
* **Object (`src/data/object.zod.ts`)**:
3434
* **Props**: `name` (snake_case), `label`, `fields` (Map), `enable` (Capabilities: `trackHistory`, `apiEnabled`).
35-
* **Flow (`src/data/flow.zod.ts`)**: Visual Logic Orchestration (`autolaunched`, `screen`, `schedule`).
36-
* **Logic**: `validation.zod.ts` (Rules), `permission.zod.ts` (ACL), `workflow.zod.ts` (State Machine).
35+
* **Validation**: `validation.zod.ts` (Rules).
3736

3837
### **B. UI PROTOCOL (`src/ui/*.zod.ts`)**
3938
*Presentation & Interaction*
@@ -56,6 +55,20 @@ Mission: Build the "Post-SaaS Operating System" — an open-core, local-first ec
5655
* **API (`src/system/api.zod.ts`)**: REST/GraphQL Endpoint Definitions.
5756
* **Translation (`src/system/translation.zod.ts`)**: Internationalization (i18n).
5857

58+
### **D. AUTOMATION PROTOCOL (`src/automation/*.zod.ts`)**
59+
*Business Logic & Orchestration*
60+
61+
* **Flow (`src/automation/flow.zod.ts`)**: Visual Logic Orchestration (`autolaunched`, `screen`, `schedule`).
62+
* **Workflow (`src/automation/workflow.zod.ts`)**: State Machine & Approval Processes.
63+
* **Trigger (`src/automation/trigger-registry.zod.ts`)**: Event-driven Automation.
64+
65+
### **E. AI PROTOCOL (`src/ai/*.zod.ts`)**
66+
*Artificial Intelligence & Agents*
67+
68+
* **Agent (`src/ai/agent.zod.ts`)**: Autonomous Actors (`role`, `instructions`, `tools`).
69+
* **RAG (`src/ai/rag-pipeline.zod.ts`)**: Retrieval Augmented Generation (`indexes`, `sources`).
70+
* **Model (`src/ai/model-registry.zod.ts`)**: LLM Configuration & Routing.
71+
5972
---
6073

6174
## 🛠️ 2. Coding Patterns

packages/plugins/driver-memory/src/memory-driver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { QueryAST, QueryInput } from '@objectstack/spec/data';
2-
import { DriverOptions } from '@objectstack/spec/system';
2+
import { DriverOptions } from '@objectstack/spec/data';
33
import { DriverInterface, Logger, createLogger } from '@objectstack/core';
44

55
/**

0 commit comments

Comments
 (0)