@oxy-hq/cli 0.12.1 → 0.14.0

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.
Files changed (35) hide show
  1. package/README.md +1031 -71
  2. package/dist/main.mjs +21844 -4166
  3. package/dist/main.mjs.map +1 -1
  4. package/dist/{mcp-CJWQm-yd.mjs → mcp-bxf7JBJu.mjs} +2 -2
  5. package/dist/mcp-bxf7JBJu.mjs.map +1 -0
  6. package/json-schemas/agent-test.json +116 -3
  7. package/json-schemas/agentic.json +81 -1
  8. package/json-schemas/config.json +2 -1
  9. package/json-schemas/flow-test.json +11 -2
  10. package/json-schemas/topic.json +252 -0
  11. package/json-schemas/view.json +473 -0
  12. package/package.json +9 -5
  13. package/skills/oxy-agents/SKILL.md +98 -54
  14. package/skills/oxy-agents/references/quick-reference.md +22 -20
  15. package/skills/oxy-agents/templates/agentic-template.yml +34 -90
  16. package/skills/oxy-airway-pipelines/SKILL.md +35 -2
  17. package/skills/oxy-automations/SKILL.md +42 -28
  18. package/skills/oxy-cli/SKILL.md +15 -7
  19. package/skills/oxy-custom-apps/SKILL.md +413 -7
  20. package/skills/oxy-custom-apps/references/app-calls.md +98 -0
  21. package/skills/oxy-custom-apps/references/phone-layout.md +16 -2
  22. package/skills/oxy-custom-apps/references/sandbox-agent-loop.md +8 -8
  23. package/skills/oxy-evals/SKILL.md +112 -46
  24. package/skills/oxy-evals/references/diagnosis.md +18 -21
  25. package/skills/oxy-evals/references/results-json.md +30 -18
  26. package/skills/oxy-evals/references/writing-expected.md +5 -4
  27. package/skills/oxy-experiments/SKILL.md +4 -3
  28. package/skills/oxy-semantic-modeling/SKILL.md +14 -12
  29. package/template/.claude/hooks/oxyc-cloud-session.sh +40 -8
  30. package/template/.github/workflows/publish.yaml +5 -5
  31. package/template/.github/workflows/validate.yaml +125 -199
  32. package/template/README.md +50 -21
  33. package/template/_gitignore +4 -4
  34. package/template/config.yml +2 -2
  35. package/dist/mcp-CJWQm-yd.mjs.map +0 -1
@@ -0,0 +1,473 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "definitions": {
4
+ "Dimension": {
5
+ "description": "Represents a dimension in the semantic model",
6
+ "properties": {
7
+ "description": {
8
+ "description": "Human-readable description of what this dimension represents",
9
+ "type": [
10
+ "string",
11
+ "null"
12
+ ]
13
+ },
14
+ "expr": {
15
+ "description": "SQL expression that defines how to calculate this dimension",
16
+ "type": "string"
17
+ },
18
+ "name": {
19
+ "description": "Unique identifier for the dimension within the view",
20
+ "type": "string"
21
+ },
22
+ "original_expr": {
23
+ "description": "Original expression before variable encoding (if variables were used)",
24
+ "type": [
25
+ "string",
26
+ "null"
27
+ ]
28
+ },
29
+ "samples": {
30
+ "description": "Example values to help users understand the dimension content",
31
+ "items": {
32
+ "type": "string"
33
+ },
34
+ "type": [
35
+ "array",
36
+ "null"
37
+ ]
38
+ },
39
+ "synonyms": {
40
+ "description": "Alternative names or terms that refer to this dimension",
41
+ "items": {
42
+ "type": "string"
43
+ },
44
+ "type": [
45
+ "array",
46
+ "null"
47
+ ]
48
+ },
49
+ "type": {
50
+ "allOf": [
51
+ {
52
+ "$ref": "#/definitions/DimensionType"
53
+ }
54
+ ],
55
+ "description": "Data type of the dimension"
56
+ }
57
+ },
58
+ "required": [
59
+ "expr",
60
+ "name",
61
+ "type"
62
+ ],
63
+ "type": "object"
64
+ },
65
+ "DimensionType": {
66
+ "description": "Represents the data type of a dimension",
67
+ "enum": [
68
+ "string",
69
+ "number",
70
+ "date",
71
+ "datetime",
72
+ "boolean"
73
+ ],
74
+ "type": "string"
75
+ },
76
+ "Driver": {
77
+ "description": "A driver relationship: a measure that influences this measure's value.\n\nSupports two modes: qualitative (`direction`/`strength`/`confidence`) and quantitative (`coefficient`/`form`/`intercept`/`lag`).",
78
+ "properties": {
79
+ "coefficient": {
80
+ "description": "Marginal effect coefficient (quantitative mode).",
81
+ "format": "double",
82
+ "type": [
83
+ "number",
84
+ "null"
85
+ ]
86
+ },
87
+ "confidence": {
88
+ "allOf": [
89
+ {
90
+ "$ref": "#/definitions/DriverConfidence"
91
+ }
92
+ ],
93
+ "default": "medium",
94
+ "description": "Confidence in the relationship."
95
+ },
96
+ "description": {
97
+ "description": "Human-readable description of the relationship.",
98
+ "type": [
99
+ "string",
100
+ "null"
101
+ ]
102
+ },
103
+ "direction": {
104
+ "allOf": [
105
+ {
106
+ "$ref": "#/definitions/DriverDirection"
107
+ }
108
+ ],
109
+ "default": "unknown",
110
+ "description": "Direction of the relationship."
111
+ },
112
+ "form": {
113
+ "allOf": [
114
+ {
115
+ "$ref": "#/definitions/DriverForm"
116
+ }
117
+ ],
118
+ "default": "linear",
119
+ "description": "Functional form of the relationship."
120
+ },
121
+ "intercept": {
122
+ "description": "Intercept term (quantitative mode).",
123
+ "format": "double",
124
+ "type": [
125
+ "number",
126
+ "null"
127
+ ]
128
+ },
129
+ "lag": {
130
+ "description": "Lag in days before a change in the driver affects the target.",
131
+ "format": "uint64",
132
+ "minimum": 0.0,
133
+ "type": [
134
+ "integer",
135
+ "null"
136
+ ]
137
+ },
138
+ "measure": {
139
+ "description": "Fully qualified measure reference (e.g., \"marketing.ad_spend\").",
140
+ "type": "string"
141
+ },
142
+ "refs": {
143
+ "description": "Links to supporting research, experiments, or documentation.",
144
+ "items": {
145
+ "type": "string"
146
+ },
147
+ "type": [
148
+ "array",
149
+ "null"
150
+ ]
151
+ },
152
+ "strength": {
153
+ "allOf": [
154
+ {
155
+ "$ref": "#/definitions/DriverStrength"
156
+ }
157
+ ],
158
+ "default": "moderate",
159
+ "description": "Strength of the relationship."
160
+ }
161
+ },
162
+ "required": [
163
+ "measure"
164
+ ],
165
+ "type": "object"
166
+ },
167
+ "DriverConfidence": {
168
+ "enum": [
169
+ "high",
170
+ "medium",
171
+ "low"
172
+ ],
173
+ "type": "string"
174
+ },
175
+ "DriverDirection": {
176
+ "enum": [
177
+ "positive",
178
+ "negative",
179
+ "unknown"
180
+ ],
181
+ "type": "string"
182
+ },
183
+ "DriverForm": {
184
+ "description": "Functional form of a quantitative driver relationship.\n\nThis mirrors `oxy_airlayer_compat::schema::models::DriverForm`, which is where the shape is actually defined (a basis plus a link, in `oxy_airlayer_compat::engine::response`). The copy exists because this crate parses `.view.yml` itself, so a form the engine accepts and this enum does not is a deserialization failure on a perfectly valid file — keep the two variant lists in step.\n\nNote the multi-term shapes (`quadratic`, `cubic`, `linear-log-quadratic`) cannot be given their coefficients through this crate's [`Driver`], which carries only the scalar `coefficient`. Declared here they are fit-only: the shape is honoured, the magnitude comes from history.",
185
+ "enum": [
186
+ "linear",
187
+ "log-log",
188
+ "log-linear",
189
+ "linear-log",
190
+ "quadratic",
191
+ "cubic",
192
+ "sqrt",
193
+ "inverse",
194
+ "linear-log-quadratic"
195
+ ],
196
+ "type": "string"
197
+ },
198
+ "DriverStrength": {
199
+ "enum": [
200
+ "strong",
201
+ "moderate",
202
+ "weak"
203
+ ],
204
+ "type": "string"
205
+ },
206
+ "Entity": {
207
+ "description": "Represents an entity in the semantic model",
208
+ "properties": {
209
+ "description": {
210
+ "default": null,
211
+ "description": "Human-readable description of what this entity represents",
212
+ "type": [
213
+ "string",
214
+ "null"
215
+ ]
216
+ },
217
+ "key": {
218
+ "description": "The dimension(s) that should be used as the key for the entity Can be a single key or multiple keys for composite primary keys",
219
+ "type": [
220
+ "string",
221
+ "null"
222
+ ]
223
+ },
224
+ "keys": {
225
+ "description": "Multiple keys for composite primary keys",
226
+ "items": {
227
+ "type": "string"
228
+ },
229
+ "type": [
230
+ "array",
231
+ "null"
232
+ ]
233
+ },
234
+ "name": {
235
+ "description": "Unique identifier for the entity within the view",
236
+ "type": "string"
237
+ },
238
+ "type": {
239
+ "allOf": [
240
+ {
241
+ "$ref": "#/definitions/EntityType"
242
+ }
243
+ ],
244
+ "description": "Type of entity (primary or foreign)"
245
+ }
246
+ },
247
+ "required": [
248
+ "name",
249
+ "type"
250
+ ],
251
+ "type": "object"
252
+ },
253
+ "EntityType": {
254
+ "description": "Represents the type of an entity in the semantic model",
255
+ "oneOf": [
256
+ {
257
+ "description": "Primary entity representing the main subject of a view",
258
+ "enum": [
259
+ "primary"
260
+ ],
261
+ "type": "string"
262
+ },
263
+ {
264
+ "description": "Foreign entity representing a reference to an entity defined in another view",
265
+ "enum": [
266
+ "foreign"
267
+ ],
268
+ "type": "string"
269
+ }
270
+ ]
271
+ },
272
+ "Measure": {
273
+ "description": "Represents a measure in the semantic model",
274
+ "properties": {
275
+ "description": {
276
+ "description": "Human-readable description of what this measure represents",
277
+ "type": [
278
+ "string",
279
+ "null"
280
+ ]
281
+ },
282
+ "drivers": {
283
+ "description": "Driver relationships: measures that influence this measure's value",
284
+ "items": {
285
+ "$ref": "#/definitions/Driver"
286
+ },
287
+ "type": [
288
+ "array",
289
+ "null"
290
+ ]
291
+ },
292
+ "expr": {
293
+ "description": "SQL expression for the measure (required for most types, not for count)",
294
+ "type": [
295
+ "string",
296
+ "null"
297
+ ]
298
+ },
299
+ "filters": {
300
+ "description": "List of filters to apply to the measure calculation",
301
+ "items": {
302
+ "$ref": "#/definitions/MeasureFilter"
303
+ },
304
+ "type": [
305
+ "array",
306
+ "null"
307
+ ]
308
+ },
309
+ "name": {
310
+ "description": "Unique identifier for the measure within the view",
311
+ "type": "string"
312
+ },
313
+ "original_expr": {
314
+ "description": "Original expression before variable encoding (if variables were used)",
315
+ "type": [
316
+ "string",
317
+ "null"
318
+ ]
319
+ },
320
+ "samples": {
321
+ "description": "Sample values or example outputs to help users understand the measure",
322
+ "items": {
323
+ "type": "string"
324
+ },
325
+ "type": [
326
+ "array",
327
+ "null"
328
+ ]
329
+ },
330
+ "synonyms": {
331
+ "description": "Alternative names or terms that refer to this measure",
332
+ "items": {
333
+ "type": "string"
334
+ },
335
+ "type": [
336
+ "array",
337
+ "null"
338
+ ]
339
+ },
340
+ "type": {
341
+ "allOf": [
342
+ {
343
+ "$ref": "#/definitions/MeasureType"
344
+ }
345
+ ],
346
+ "description": "Type of measure aggregation"
347
+ }
348
+ },
349
+ "required": [
350
+ "name",
351
+ "type"
352
+ ],
353
+ "type": "object"
354
+ },
355
+ "MeasureFilter": {
356
+ "description": "Represents a filter condition for measures",
357
+ "properties": {
358
+ "description": {
359
+ "description": "Human-readable description of the filter",
360
+ "type": [
361
+ "string",
362
+ "null"
363
+ ]
364
+ },
365
+ "expr": {
366
+ "description": "SQL expression for the filter condition",
367
+ "type": "string"
368
+ },
369
+ "original_expr": {
370
+ "description": "Original expression before variable encoding (if variables were used)",
371
+ "type": [
372
+ "string",
373
+ "null"
374
+ ]
375
+ }
376
+ },
377
+ "required": [
378
+ "expr"
379
+ ],
380
+ "type": "object"
381
+ },
382
+ "MeasureType": {
383
+ "description": "Represents the type of a measure aggregation. `number` is a pass-through: `expr` must already contain its own aggregation.",
384
+ "enum": [
385
+ "count",
386
+ "sum",
387
+ "average",
388
+ "min",
389
+ "max",
390
+ "count_distinct",
391
+ "count_distinct_approx",
392
+ "median",
393
+ "custom",
394
+ "number"
395
+ ],
396
+ "type": "string"
397
+ }
398
+ },
399
+ "description": "Represents a view in the semantic model",
400
+ "properties": {
401
+ "datasource": {
402
+ "description": "Name of the datasource to use for this view",
403
+ "type": [
404
+ "string",
405
+ "null"
406
+ ]
407
+ },
408
+ "description": {
409
+ "default": null,
410
+ "description": "Human-readable description of what this view represents",
411
+ "type": [
412
+ "string",
413
+ "null"
414
+ ]
415
+ },
416
+ "dimensions": {
417
+ "description": "List of dimensions (attributes) available in this view",
418
+ "items": {
419
+ "$ref": "#/definitions/Dimension"
420
+ },
421
+ "type": "array"
422
+ },
423
+ "entities": {
424
+ "description": "List of entities that define the core objects in this view",
425
+ "items": {
426
+ "$ref": "#/definitions/Entity"
427
+ },
428
+ "type": "array"
429
+ },
430
+ "label": {
431
+ "description": "Display name for the view (defaults to name if not specified)",
432
+ "type": [
433
+ "string",
434
+ "null"
435
+ ]
436
+ },
437
+ "measures": {
438
+ "description": "List of measures (aggregations) available in this view",
439
+ "items": {
440
+ "$ref": "#/definitions/Measure"
441
+ },
442
+ "type": [
443
+ "array",
444
+ "null"
445
+ ]
446
+ },
447
+ "name": {
448
+ "description": "Unique identifier for the view within the semantic model",
449
+ "type": "string"
450
+ },
451
+ "sql": {
452
+ "description": "Custom SQL query (required if table not specified)",
453
+ "type": [
454
+ "string",
455
+ "null"
456
+ ]
457
+ },
458
+ "table": {
459
+ "description": "Database table reference (required if sql not specified)",
460
+ "type": [
461
+ "string",
462
+ "null"
463
+ ]
464
+ }
465
+ },
466
+ "required": [
467
+ "dimensions",
468
+ "entities",
469
+ "name"
470
+ ],
471
+ "title": "View",
472
+ "type": "object"
473
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxy-hq/cli",
3
- "version": "0.12.1",
3
+ "version": "0.14.0",
4
4
  "description": "oxyc — the Oxy CLI: a gh-api-style client for the Oxy HTTP API, plus the customer-account tooling that scopes a session to one customer.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -19,9 +19,13 @@
19
19
  },
20
20
  "repository": {
21
21
  "type": "git",
22
- "url": "git+https://github.com/oxy-hq/oxygen-internal.git",
22
+ "url": "git+https://github.com/oxy-hq/oxygen.git",
23
23
  "directory": "sdk/cli"
24
24
  },
25
+ "homepage": "https://github.com/oxy-hq/oxygen/tree/main/sdk/cli#readme",
26
+ "bugs": {
27
+ "url": "https://github.com/oxy-hq/oxygen/issues"
28
+ },
25
29
  "scripts": {
26
30
  "codegen": "node scripts/emit-version.mjs && node scripts/sync-schemas.mjs && node scripts/embed-assets.mjs",
27
31
  "prebuild": "pnpm run codegen",
@@ -44,11 +48,11 @@
44
48
  ],
45
49
  "license": "MIT",
46
50
  "dependencies": {
47
- "@clack/prompts": "^1.8.1",
51
+ "@clack/prompts": "^1.9.0",
48
52
  "@modelcontextprotocol/sdk": "^1.32.2",
49
53
  "ajv": "^8.20.0",
50
54
  "ajv-formats": "^3.0.1",
51
- "commander": "^15.0.0",
55
+ "commander": "^15.1.0",
52
56
  "jq-wasm": "3.0.0-jq-1.8.2",
53
57
  "picocolors": "^1.1.1",
54
58
  "yaml": "^2.9.1",
@@ -59,7 +63,7 @@
59
63
  "@types/node": "^26.6.6",
60
64
  "tsdown": "^0.23.7",
61
65
  "typescript": "^7.0.2",
62
- "vitest": "^5.1.0"
66
+ "vitest": "^5.1.1"
63
67
  },
64
68
  "engines": {
65
69
  "node": ">=20"