sqlew 5.2.0 → 5.2.2
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/CHANGELOG.md +2169 -2110
- package/LICENSE +190 -190
- package/NOTICE +24 -24
- package/README.md +204 -199
- package/dist/adapters/mysql-adapter.js +3 -3
- package/dist/adapters/postgresql-adapter.js +3 -3
- package/dist/cli/db-export.js +32 -32
- package/dist/cli/db-import.js +30 -30
- package/dist/cli/hooks/codex-transcript.d.ts +23 -0
- package/dist/cli/hooks/codex-transcript.d.ts.map +1 -0
- package/dist/cli/hooks/codex-transcript.js +134 -0
- package/dist/cli/hooks/codex-transcript.js.map +1 -0
- package/dist/cli/hooks/on-exit-plan.d.ts.map +1 -1
- package/dist/cli/hooks/on-exit-plan.js +30 -3
- package/dist/cli/hooks/on-exit-plan.js.map +1 -1
- package/dist/cli/hooks/on-prompt.d.ts +2 -2
- package/dist/cli/hooks/on-prompt.d.ts.map +1 -1
- package/dist/cli/hooks/on-prompt.js +33 -16
- package/dist/cli/hooks/on-prompt.js.map +1 -1
- package/dist/cli/hooks/plan-pattern-extractor.d.ts +2 -0
- package/dist/cli/hooks/plan-pattern-extractor.d.ts.map +1 -1
- package/dist/cli/hooks/plan-pattern-extractor.js +1 -0
- package/dist/cli/hooks/plan-pattern-extractor.js.map +1 -1
- package/dist/cli/hooks/plan-processor.d.ts.map +1 -1
- package/dist/cli/hooks/plan-processor.js +1 -0
- package/dist/cli/hooks/plan-processor.js.map +1 -1
- package/dist/cli/hooks/pr-adr.js +5 -5
- package/dist/cli/hooks/stdin-parser.d.ts +4 -2
- package/dist/cli/hooks/stdin-parser.d.ts.map +1 -1
- package/dist/cli/hooks/stdin-parser.js +79 -9
- package/dist/cli/hooks/stdin-parser.js.map +1 -1
- package/dist/cli/hooks/track-plan.js +15 -15
- package/dist/cli.js +48 -48
- package/dist/config/global-config.js +19 -19
- package/dist/database/migrations/v4/20251126000000_v4_bootstrap.js +32 -32
- package/dist/database/migrations/v4/20260102204000_v4_fix_decision_set_example.js +3 -3
- package/dist/database/migrations/v4/20260613000000_add_constraint_reason.d.ts +9 -0
- package/dist/database/migrations/v4/20260613000000_add_constraint_reason.d.ts.map +1 -0
- package/dist/database/migrations/v4/20260613000000_add_constraint_reason.js +31 -0
- package/dist/database/migrations/v4/20260613000000_add_constraint_reason.js.map +1 -0
- package/dist/help-data/constraint.toml +265 -259
- package/dist/help-data/decision.toml +845 -845
- package/dist/help-data/queue.toml +134 -134
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +4 -5
- package/dist/schema.js.map +1 -1
- package/dist/server/tool-schemas.js +30 -30
- package/dist/tests/docker/native/constraint-operations.test.js +38 -0
- package/dist/tests/docker/native/constraint-operations.test.js.map +1 -1
- package/dist/tests/docker/native/db-init.js +9 -9
- package/dist/tests/feature/constraint/reason.test.d.ts +7 -0
- package/dist/tests/feature/constraint/reason.test.d.ts.map +1 -0
- package/dist/tests/feature/constraint/reason.test.js +68 -0
- package/dist/tests/feature/constraint/reason.test.js.map +1 -0
- package/dist/tests/unit/hooks/codex-hook-normalization.test.d.ts +7 -0
- package/dist/tests/unit/hooks/codex-hook-normalization.test.d.ts.map +1 -0
- package/dist/tests/unit/hooks/codex-hook-normalization.test.js +112 -0
- package/dist/tests/unit/hooks/codex-hook-normalization.test.js.map +1 -0
- package/dist/tests/unit/hooks/grok-hook-normalization.test.js +45 -7
- package/dist/tests/unit/hooks/grok-hook-normalization.test.js.map +1 -1
- package/dist/tests/unit/hooks/plan-pattern-extractor.test.d.ts +8 -0
- package/dist/tests/unit/hooks/plan-pattern-extractor.test.d.ts.map +1 -0
- package/dist/tests/unit/hooks/plan-pattern-extractor.test.js +110 -0
- package/dist/tests/unit/hooks/plan-pattern-extractor.test.js.map +1 -0
- package/dist/tests/utils/db-schema.js +48 -48
- package/dist/tests/utils/test-helpers.js +48 -48
- package/dist/tools/constraints/actions/add.d.ts.map +1 -1
- package/dist/tools/constraints/actions/add.js +1 -0
- package/dist/tools/constraints/actions/add.js.map +1 -1
- package/dist/tools/constraints/actions/get.d.ts.map +1 -1
- package/dist/tools/constraints/actions/get.js +9 -7
- package/dist/tools/constraints/actions/get.js.map +1 -1
- package/dist/tools/constraints/help/example.js +1 -1
- package/dist/tools/constraints/help/example.js.map +1 -1
- package/dist/types/constraint/params.d.ts +2 -0
- package/dist/types/constraint/params.d.ts.map +1 -1
- package/dist/types/view-entities.d.ts +1 -0
- package/dist/types/view-entities.d.ts.map +1 -1
- package/dist/utils/action-specs/constraint-specs.d.ts.map +1 -1
- package/dist/utils/action-specs/constraint-specs.js +4 -3
- package/dist/utils/action-specs/constraint-specs.js.map +1 -1
- package/dist/utils/hook-queue.d.ts +2 -0
- package/dist/utils/hook-queue.d.ts.map +1 -1
- package/dist/utils/hook-queue.js.map +1 -1
- package/dist/utils/project-root.d.ts +1 -0
- package/dist/utils/project-root.d.ts.map +1 -1
- package/dist/utils/project-root.js +6 -0
- package/dist/utils/project-root.js.map +1 -1
- package/dist/utils/view-queries.d.ts.map +1 -1
- package/dist/utils/view-queries.js +1 -0
- package/dist/utils/view-queries.js.map +1 -1
- package/dist/watcher/queue-watcher.d.ts.map +1 -1
- package/dist/watcher/queue-watcher.js +1 -0
- package/dist/watcher/queue-watcher.js.map +1 -1
- package/docs/ADR_CONCEPTS.md +152 -152
- package/docs/CLI_USAGE.md +392 -392
- package/docs/CONFIGURATION.md +157 -157
- package/docs/CROSS_DATABASE.md +66 -66
- package/docs/DATABASE_AUTH.md +135 -135
- package/docs/HOOKS_GUIDE.md +116 -101
- package/docs/MIGRATION_TO_SAAS.md +176 -176
- package/docs/SHARED_DATABASE.md +108 -108
- package/package.json +88 -88
- package/scripts/copy-help-data.js +19 -19
- package/scripts/filter-test-output.js +78 -78
- package/dist/tests/docker/native/help-system.test.d.ts +0 -8
- package/dist/tests/docker/native/help-system.test.d.ts.map +0 -1
- package/dist/tests/docker/native/help-system.test.js +0 -508
- package/dist/tests/docker/native/help-system.test.js.map +0 -1
|
@@ -1,259 +1,265 @@
|
|
|
1
|
-
# Constraint Tool - Architectural Rules
|
|
2
|
-
# Define and manage project constraints with priorities
|
|
3
|
-
|
|
4
|
-
[tool]
|
|
5
|
-
name = "constraint"
|
|
6
|
-
description = "Architectural Rules - Define and manage project constraints with priorities. Supports categories, layer associations, and tag filtering."
|
|
7
|
-
|
|
8
|
-
# =============================================================================
|
|
9
|
-
# ACTIONS
|
|
10
|
-
# =============================================================================
|
|
11
|
-
|
|
12
|
-
[[actions]]
|
|
13
|
-
name = "add"
|
|
14
|
-
description = "Add a new constraint with priority"
|
|
15
|
-
|
|
16
|
-
[[actions.params]]
|
|
17
|
-
name = "action"
|
|
18
|
-
type = "string"
|
|
19
|
-
required = true
|
|
20
|
-
description = "Must be \"add\""
|
|
21
|
-
|
|
22
|
-
[[actions.params]]
|
|
23
|
-
name = "constraint_text"
|
|
24
|
-
type = "string"
|
|
25
|
-
required = true
|
|
26
|
-
description = "Constraint rule text"
|
|
27
|
-
|
|
28
|
-
[[actions.params]]
|
|
29
|
-
name = "category"
|
|
30
|
-
type = "string"
|
|
31
|
-
required = true
|
|
32
|
-
description = "Constraint category: architecture, security, code-style, performance"
|
|
33
|
-
|
|
34
|
-
[[actions.params]]
|
|
35
|
-
name = "priority"
|
|
36
|
-
type = "string"
|
|
37
|
-
required = false
|
|
38
|
-
description = "Priority: low, medium, high, critical (or 1-4)"
|
|
39
|
-
default = "medium"
|
|
40
|
-
|
|
41
|
-
[[actions.params]]
|
|
42
|
-
name = "layer"
|
|
43
|
-
type = "string"
|
|
44
|
-
required = false
|
|
45
|
-
description = "Architecture layer this constraint applies to"
|
|
46
|
-
|
|
47
|
-
[[actions.params]]
|
|
48
|
-
name = "tags"
|
|
49
|
-
type = "string[]"
|
|
50
|
-
required = false
|
|
51
|
-
description = "Tags for categorization"
|
|
52
|
-
default = "[]"
|
|
53
|
-
|
|
54
|
-
[[actions.
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
"
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
[[actions.params]]
|
|
93
|
-
name = "
|
|
94
|
-
type = "string"
|
|
95
|
-
required =
|
|
96
|
-
description = "
|
|
97
|
-
|
|
98
|
-
[[actions.params]]
|
|
99
|
-
name = "
|
|
100
|
-
type = "string"
|
|
101
|
-
required = false
|
|
102
|
-
description = "Filter by
|
|
103
|
-
|
|
104
|
-
[[actions.params]]
|
|
105
|
-
name = "
|
|
106
|
-
type = "string"
|
|
107
|
-
required = false
|
|
108
|
-
description = "Filter by
|
|
109
|
-
|
|
110
|
-
[[actions.params]]
|
|
111
|
-
name = "
|
|
112
|
-
type = "
|
|
113
|
-
required = false
|
|
114
|
-
description = "
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
"
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
[[actions.params]]
|
|
150
|
-
name = "
|
|
151
|
-
type = "
|
|
152
|
-
required = true
|
|
153
|
-
description = "
|
|
154
|
-
|
|
155
|
-
[[actions.
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
[[actions.
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
"
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
[[actions.
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
"
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
[[actions.
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
"
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
[[actions.
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
"
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
1
|
+
# Constraint Tool - Architectural Rules
|
|
2
|
+
# Define and manage project constraints with priorities
|
|
3
|
+
|
|
4
|
+
[tool]
|
|
5
|
+
name = "constraint"
|
|
6
|
+
description = "Architectural Rules - Define and manage project constraints with priorities. Supports categories, layer associations, and tag filtering."
|
|
7
|
+
|
|
8
|
+
# =============================================================================
|
|
9
|
+
# ACTIONS
|
|
10
|
+
# =============================================================================
|
|
11
|
+
|
|
12
|
+
[[actions]]
|
|
13
|
+
name = "add"
|
|
14
|
+
description = "Add a new constraint with priority"
|
|
15
|
+
|
|
16
|
+
[[actions.params]]
|
|
17
|
+
name = "action"
|
|
18
|
+
type = "string"
|
|
19
|
+
required = true
|
|
20
|
+
description = "Must be \"add\""
|
|
21
|
+
|
|
22
|
+
[[actions.params]]
|
|
23
|
+
name = "constraint_text"
|
|
24
|
+
type = "string"
|
|
25
|
+
required = true
|
|
26
|
+
description = "Constraint rule text"
|
|
27
|
+
|
|
28
|
+
[[actions.params]]
|
|
29
|
+
name = "category"
|
|
30
|
+
type = "string"
|
|
31
|
+
required = true
|
|
32
|
+
description = "Constraint category: architecture, security, code-style, performance"
|
|
33
|
+
|
|
34
|
+
[[actions.params]]
|
|
35
|
+
name = "priority"
|
|
36
|
+
type = "string"
|
|
37
|
+
required = false
|
|
38
|
+
description = "Priority: low, medium, high, critical (or 1-4)"
|
|
39
|
+
default = "medium"
|
|
40
|
+
|
|
41
|
+
[[actions.params]]
|
|
42
|
+
name = "layer"
|
|
43
|
+
type = "string"
|
|
44
|
+
required = false
|
|
45
|
+
description = "Architecture layer this constraint applies to"
|
|
46
|
+
|
|
47
|
+
[[actions.params]]
|
|
48
|
+
name = "tags"
|
|
49
|
+
type = "string[]"
|
|
50
|
+
required = false
|
|
51
|
+
description = "Tags for categorization"
|
|
52
|
+
default = "[]"
|
|
53
|
+
|
|
54
|
+
[[actions.params]]
|
|
55
|
+
name = "reason"
|
|
56
|
+
type = "string"
|
|
57
|
+
required = false
|
|
58
|
+
description = "Why this constraint exists (e.g. incident, compliance, team agreement)"
|
|
59
|
+
|
|
60
|
+
[[actions.examples]]
|
|
61
|
+
title = "Add security constraint"
|
|
62
|
+
code = '''
|
|
63
|
+
{
|
|
64
|
+
"action": "add",
|
|
65
|
+
"constraint_text": "All API endpoints must require authentication",
|
|
66
|
+
"category": "security",
|
|
67
|
+
"priority": "critical",
|
|
68
|
+
"layer": "presentation"
|
|
69
|
+
}
|
|
70
|
+
'''
|
|
71
|
+
explanation = "Add a critical security constraint for API endpoints"
|
|
72
|
+
|
|
73
|
+
[[actions.examples]]
|
|
74
|
+
title = "Add code style constraint"
|
|
75
|
+
code = '''
|
|
76
|
+
{
|
|
77
|
+
"action": "add",
|
|
78
|
+
"constraint_text": "Use functional components with hooks instead of class components",
|
|
79
|
+
"category": "code-style",
|
|
80
|
+
"priority": "medium",
|
|
81
|
+
"tags": ["react", "frontend"]
|
|
82
|
+
}
|
|
83
|
+
'''
|
|
84
|
+
explanation = "Add a medium-priority coding style constraint"
|
|
85
|
+
|
|
86
|
+
# -----------------------------------------------------------------------------
|
|
87
|
+
|
|
88
|
+
[[actions]]
|
|
89
|
+
name = "get"
|
|
90
|
+
description = "Retrieve constraints with filtering"
|
|
91
|
+
|
|
92
|
+
[[actions.params]]
|
|
93
|
+
name = "action"
|
|
94
|
+
type = "string"
|
|
95
|
+
required = true
|
|
96
|
+
description = "Must be \"get\""
|
|
97
|
+
|
|
98
|
+
[[actions.params]]
|
|
99
|
+
name = "category"
|
|
100
|
+
type = "string"
|
|
101
|
+
required = false
|
|
102
|
+
description = "Filter by category"
|
|
103
|
+
|
|
104
|
+
[[actions.params]]
|
|
105
|
+
name = "layer"
|
|
106
|
+
type = "string"
|
|
107
|
+
required = false
|
|
108
|
+
description = "Filter by layer"
|
|
109
|
+
|
|
110
|
+
[[actions.params]]
|
|
111
|
+
name = "priority"
|
|
112
|
+
type = "string"
|
|
113
|
+
required = false
|
|
114
|
+
description = "Filter by priority: low, medium, high, critical (or 1-4)"
|
|
115
|
+
|
|
116
|
+
[[actions.params]]
|
|
117
|
+
name = "active_only"
|
|
118
|
+
type = "boolean"
|
|
119
|
+
required = false
|
|
120
|
+
description = "Only return active constraints"
|
|
121
|
+
default = "true"
|
|
122
|
+
|
|
123
|
+
[[actions.examples]]
|
|
124
|
+
title = "Get all security constraints"
|
|
125
|
+
code = '''
|
|
126
|
+
{
|
|
127
|
+
"action": "get",
|
|
128
|
+
"category": "security"
|
|
129
|
+
}
|
|
130
|
+
'''
|
|
131
|
+
explanation = "Retrieve all security-related constraints"
|
|
132
|
+
|
|
133
|
+
[[actions.examples]]
|
|
134
|
+
title = "Get critical constraints"
|
|
135
|
+
code = '''
|
|
136
|
+
{
|
|
137
|
+
"action": "get",
|
|
138
|
+
"priority": "critical"
|
|
139
|
+
}
|
|
140
|
+
'''
|
|
141
|
+
explanation = "Retrieve all critical constraints"
|
|
142
|
+
|
|
143
|
+
# -----------------------------------------------------------------------------
|
|
144
|
+
|
|
145
|
+
[[actions]]
|
|
146
|
+
name = "deactivate"
|
|
147
|
+
description = "Deactivate a constraint (soft delete)"
|
|
148
|
+
|
|
149
|
+
[[actions.params]]
|
|
150
|
+
name = "action"
|
|
151
|
+
type = "string"
|
|
152
|
+
required = true
|
|
153
|
+
description = "Must be \"deactivate\""
|
|
154
|
+
|
|
155
|
+
[[actions.params]]
|
|
156
|
+
name = "id"
|
|
157
|
+
type = "number | string"
|
|
158
|
+
required = true
|
|
159
|
+
description = "ID of the constraint (number for SQLite, UUID string for SaaS). constraint_id also accepted for backward compatibility"
|
|
160
|
+
|
|
161
|
+
[[actions.examples]]
|
|
162
|
+
title = "Deactivate constraint"
|
|
163
|
+
target_type = "sqlite"
|
|
164
|
+
code = '''
|
|
165
|
+
{
|
|
166
|
+
"action": "deactivate",
|
|
167
|
+
"id": 5
|
|
168
|
+
}
|
|
169
|
+
'''
|
|
170
|
+
explanation = "Soft-delete a constraint by ID (SQLite uses numeric IDs)"
|
|
171
|
+
|
|
172
|
+
[[actions.examples]]
|
|
173
|
+
title = "Deactivate constraint"
|
|
174
|
+
target_type = "cloud"
|
|
175
|
+
code = '''
|
|
176
|
+
{
|
|
177
|
+
"action": "deactivate",
|
|
178
|
+
"id": "fbb982cc-764f-4427-b34a-7e758e31c457"
|
|
179
|
+
}
|
|
180
|
+
'''
|
|
181
|
+
explanation = "Soft-delete a constraint by UUID (SaaS uses UUID strings)"
|
|
182
|
+
|
|
183
|
+
# -----------------------------------------------------------------------------
|
|
184
|
+
|
|
185
|
+
[[actions]]
|
|
186
|
+
name = "suggest_pending"
|
|
187
|
+
description = "Get AI-suggested constraints based on codebase analysis"
|
|
188
|
+
|
|
189
|
+
[[actions.params]]
|
|
190
|
+
name = "action"
|
|
191
|
+
type = "string"
|
|
192
|
+
required = true
|
|
193
|
+
description = "Must be \"suggest_pending\""
|
|
194
|
+
|
|
195
|
+
[[actions.examples]]
|
|
196
|
+
title = "Get suggestions"
|
|
197
|
+
code = '''
|
|
198
|
+
{
|
|
199
|
+
"action": "suggest_pending"
|
|
200
|
+
}
|
|
201
|
+
'''
|
|
202
|
+
explanation = "View AI-suggested constraints that haven't been reviewed yet"
|
|
203
|
+
|
|
204
|
+
# -----------------------------------------------------------------------------
|
|
205
|
+
|
|
206
|
+
[[actions]]
|
|
207
|
+
name = "help"
|
|
208
|
+
description = "Get constraint tool documentation"
|
|
209
|
+
|
|
210
|
+
[[actions.params]]
|
|
211
|
+
name = "action"
|
|
212
|
+
type = "string"
|
|
213
|
+
required = true
|
|
214
|
+
description = "Must be \"help\""
|
|
215
|
+
|
|
216
|
+
[[actions.examples]]
|
|
217
|
+
title = "Get help"
|
|
218
|
+
code = '''
|
|
219
|
+
{
|
|
220
|
+
"action": "help"
|
|
221
|
+
}
|
|
222
|
+
'''
|
|
223
|
+
explanation = "Display constraint tool documentation"
|
|
224
|
+
|
|
225
|
+
# -----------------------------------------------------------------------------
|
|
226
|
+
|
|
227
|
+
[[actions]]
|
|
228
|
+
name = "example"
|
|
229
|
+
description = "Get constraint tool examples"
|
|
230
|
+
|
|
231
|
+
[[actions.params]]
|
|
232
|
+
name = "action"
|
|
233
|
+
type = "string"
|
|
234
|
+
required = true
|
|
235
|
+
description = "Must be \"example\""
|
|
236
|
+
|
|
237
|
+
[[actions.examples]]
|
|
238
|
+
title = "Get examples"
|
|
239
|
+
code = '''
|
|
240
|
+
{
|
|
241
|
+
"action": "example"
|
|
242
|
+
}
|
|
243
|
+
'''
|
|
244
|
+
explanation = "Display constraint tool usage examples"
|
|
245
|
+
|
|
246
|
+
# -----------------------------------------------------------------------------
|
|
247
|
+
|
|
248
|
+
[[actions]]
|
|
249
|
+
name = "use_case"
|
|
250
|
+
description = "Get constraint tool use cases"
|
|
251
|
+
|
|
252
|
+
[[actions.params]]
|
|
253
|
+
name = "action"
|
|
254
|
+
type = "string"
|
|
255
|
+
required = true
|
|
256
|
+
description = "Must be \"use_case\""
|
|
257
|
+
|
|
258
|
+
[[actions.examples]]
|
|
259
|
+
title = "Get use cases"
|
|
260
|
+
code = '''
|
|
261
|
+
{
|
|
262
|
+
"action": "use_case"
|
|
263
|
+
}
|
|
264
|
+
'''
|
|
265
|
+
explanation = "Display constraint tool use case workflows"
|