You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Revise getting started docs and add VS Code extension recommendations
Updated README and documentation to emphasize YAML-based metadata, improved quick start instructions, and highlighted the importance of the ObjectQL VS Code extension. Added .vscode/extensions.json files to example projects to recommend relevant extensions for better developer experience.
This will create a new project with all necessary dependencies.
28
28
29
-
### 2. Standard Setup (Project Tracker)
29
+
### 2. Install VS Code Extension (Recommended) 🚨
30
+
31
+
To treat your metadata like code (with validation and autocomplete), install the **Standard ObjectStack AI Extension**.
32
+
33
+
1. Open Visual Studio Code.
34
+
2. Go to the **Extensions** view (`Cmd+Shift+X`).
35
+
3. Search for `ObjectQL` and install.
36
+
4. Alternatively, when you open the created project, VS Code will prompt you to install recommended extensions.
37
+
38
+
> **Why?** The extension understands your `*.object.yml` files, validating field types and relationships in real-time, just like TypeScript.
39
+
40
+
### 3. Define the Protocol (Your Meta-Schema)
41
+
42
+
Instead of passing objects to a constructor, we define them in YAML. This is the "AI-Native" way—separate the **Instruction** (YAML) from the **Execution** (Runtime).
43
+
44
+
Create a file `src/objects/todo.object.yml`:
45
+
46
+
```yaml
47
+
name: todo
48
+
label: Task
49
+
fields:
50
+
title:
51
+
type: text
52
+
required: true
53
+
searchable: true
54
+
completed:
55
+
type: boolean
56
+
default: false
57
+
priority:
58
+
type: select
59
+
options: [low, medium, high]
60
+
default: medium
61
+
```
30
62
31
-
For building real applications, use the `showcase` template. This sets up a proper folder structure with YAML metadata, TypeScript logic hooks, and relationship management.
0 commit comments