File tree Expand file tree Collapse file tree 3 files changed +88
-8
lines changed
Expand file tree Collapse file tree 3 files changed +88
-8
lines changed Original file line number Diff line number Diff line change @@ -247,8 +247,10 @@ <h2>🖥️ Console Output</h2>
247247 } ) ;
248248
249249 log ( '📝 Registering Notes schema...' ) ;
250+ // Note: When using registerObject() programmatically, 'name' is required
251+ // When using YAML files, the name is inferred from filename (latest ObjectStack spec)
250252 window . app . registerObject ( {
251- name : 'notes' ,
253+ name : 'notes' , // Required for programmatic registration
252254 label : 'Notes' ,
253255 fields : {
254256 content : {
Original file line number Diff line number Diff line change 1+ # File: task.object.yml
2+ # Object name is inferred from filename as 'task'
13label : Tasks
4+
5+ ai_context :
6+ intent : " Track individual tasks and their completion status"
7+ domain : task_management
8+ common_queries :
9+ - " Find pending tasks"
10+ - " Show overdue tasks"
11+ - " List tasks by priority"
12+
213fields :
314 title :
4- type : string
15+ type : text
516 label : Title
617 required : true
18+ ai_context :
19+ intent : " Brief description of the task"
720 description :
8- type : text
21+ type : textarea
922 label : Description
23+ ai_context :
24+ intent : " Detailed task information"
1025 status :
11- type : string
26+ type : select
1227 label : Status
28+ options :
29+ - label : Pending
30+ value : pending
31+ - label : In Progress
32+ value : in_progress
33+ - label : Completed
34+ value : completed
35+ - label : Cancelled
36+ value : cancelled
1337 defaultValue : pending
38+ ai_context :
39+ intent : " Current state of the task"
40+ is_state_machine : true
41+ transitions :
42+ pending : [in_progress, cancelled]
43+ in_progress : [completed, pending, cancelled]
44+ completed : []
45+ cancelled : [pending]
1446 priority :
15- type : string
47+ type : select
1648 label : Priority
49+ options :
50+ - label : Low
51+ value : low
52+ - label : Medium
53+ value : medium
54+ - label : High
55+ value : high
56+ - label : Urgent
57+ value : urgent
1758 defaultValue : medium
59+ ai_context :
60+ intent : " Task urgency level"
1861 due_date :
1962 type : date
2063 label : Due Date
64+ ai_context :
65+ intent : " Deadline for task completion"
2166 completed :
2267 type : boolean
2368 label : Completed
2469 defaultValue : false
70+ ai_context :
71+ intent : " Quick completion flag"
Original file line number Diff line number Diff line change 1+ # File: user.object.yml
2+ # Object name is inferred from filename as 'user'
13label : Users
4+
5+ ai_context :
6+ intent : " Manage user accounts and profiles"
7+ domain : user_management
8+ common_queries :
9+ - " Find active users"
10+ - " List users by age"
11+ - " Search users by email"
12+
213fields :
314 name :
4- type : string
15+ type : text
516 label : Full Name
617 required : true
18+ ai_context :
19+ intent : " User's full name for display"
720 email :
8- type : string
21+ type : email
922 label : Email Address
1023 required : true
24+ ai_context :
25+ intent : " Primary contact email and login identifier"
1126 status :
12- type : string
27+ type : select
1328 label : Status
29+ options :
30+ - label : Active
31+ value : active
32+ - label : Inactive
33+ value : inactive
34+ - label : Suspended
35+ value : suspended
1436 defaultValue : active
37+ ai_context :
38+ intent : " Account status"
39+ is_state_machine : true
40+ transitions :
41+ active : [inactive, suspended]
42+ inactive : [active]
43+ suspended : [active, inactive]
1544 age :
1645 type : number
1746 label : Age
47+ ai_context :
48+ intent : " User's age for demographic purposes"
You can’t perform that action at this time.
0 commit comments