skillar 0.2.1 → 0.3.1

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 (111) hide show
  1. package/NOTICE +280 -0
  2. package/README.md +37 -5
  3. package/dist/analysis/finding.js +8 -190
  4. package/dist/analysis/kernel.js +896 -0
  5. package/dist/analysis/tree.js +7 -154
  6. package/dist/analysis/usage.js +9 -394
  7. package/dist/api/flows.js +42 -212
  8. package/dist/api/report-kernel.js +1063 -0
  9. package/dist/api/routes.js +12 -2
  10. package/dist/catalog/fields.js +138 -146
  11. package/dist/catalog/watcher.js +7 -2
  12. package/dist/cli/init.js +45 -0
  13. package/dist/cli/main.js +76 -3
  14. package/dist/cli/private-skills.js +122 -0
  15. package/dist/cli/serve.js +15 -1
  16. package/dist/cli/sync.js +124 -0
  17. package/dist/dashboard/NOTICE +280 -0
  18. package/dist/dashboard/assets/app.js +737 -275
  19. package/dist/dashboard/assets/astryx-reset.css +407 -0
  20. package/dist/dashboard/assets/astryx.css +1077 -0
  21. package/dist/dashboard/assets/charts.css +54 -0
  22. package/dist/dashboard/assets/chunk-TPGDA2J4.js +1 -0
  23. package/dist/dashboard/assets/chunk-YLWHVDMP.js +36 -0
  24. package/dist/dashboard/assets/controls.css +207 -0
  25. package/dist/dashboard/assets/overlays.css +132 -0
  26. package/dist/dashboard/assets/p1.css +135 -0
  27. package/dist/dashboard/assets/shell.css +71 -0
  28. package/dist/dashboard/assets/skillar-theme.css +692 -0
  29. package/dist/dashboard/assets/styles.css +224 -121
  30. package/dist/dashboard/assets/tokens.css +278 -0
  31. package/dist/dashboard/assets/widgets.css +83 -0
  32. package/dist/dashboard/index.html +11 -2
  33. package/dist/dashboard/viewers/viewers.css +61 -0
  34. package/dist/ingest/attribution.js +5 -1
  35. package/dist/ingest/pipeline.js +2 -0
  36. package/dist/ingest/request-recorder.js +39 -0
  37. package/dist/mcp/dispatch.js +2 -2
  38. package/dist/mcp/http.js +43 -3
  39. package/dist/mcp/skills-extension.js +42 -15
  40. package/dist/mcp/stdio-proxy.js +24 -3
  41. package/dist/mcp/tools.js +38 -24
  42. package/dist/packs/claude-code.js +22 -11
  43. package/dist/packs/cursor.js +9 -4
  44. package/dist/packs/gemini.js +9 -4
  45. package/dist/packs/json-config.js +41 -0
  46. package/dist/packs/omo.js +15 -6
  47. package/dist/request-status.js +81 -0
  48. package/dist/search/fts.js +93 -58
  49. package/dist/search/fusion.js +49 -47
  50. package/dist/search/guidance.js +18 -6
  51. package/dist/search/index.js +291 -70
  52. package/dist/search/lexical.js +71 -63
  53. package/dist/server.js +12 -0
  54. package/dist/skills/apply.js +130 -0
  55. package/dist/skills/capture.js +54 -0
  56. package/dist/skills/cloud-plan.js +57 -0
  57. package/dist/skills/cloud.js +81 -0
  58. package/dist/skills/fs.js +133 -0
  59. package/dist/skills/package.js +734 -0
  60. package/dist/skills/plan.js +83 -0
  61. package/dist/skills/receipt.js +44 -0
  62. package/dist/skills/rollback.js +119 -0
  63. package/dist/skills/transfer.js +51 -0
  64. package/dist/store/db.js +7 -1
  65. package/dist/store/execution.js +2 -34
  66. package/dist/store/export.js +25 -4
  67. package/dist/store/migrations/007_sync.sql +49 -0
  68. package/dist/store/migrations/008_connector_commands.sql +12 -0
  69. package/dist/store/queries.js +33 -7
  70. package/dist/store/writes.js +38 -5
  71. package/dist/sync/cloud-blobs.js +175 -0
  72. package/dist/sync/cloud-commands.js +101 -0
  73. package/dist/sync/cloud-connection.js +105 -0
  74. package/dist/sync/cloud-delivery.js +114 -0
  75. package/dist/sync/cloud-documents.js +103 -0
  76. package/dist/sync/cloud-export.js +67 -0
  77. package/dist/sync/cloud-http.js +150 -0
  78. package/dist/sync/cloud-jobs.js +94 -0
  79. package/dist/sync/cloud-pending.js +143 -0
  80. package/dist/sync/cloud-prepare.js +101 -0
  81. package/dist/sync/cloud-restore.js +136 -0
  82. package/dist/sync/cloud-rollback.js +24 -0
  83. package/dist/sync/cloud-runner.js +86 -0
  84. package/dist/sync/cloud-runtime.js +293 -0
  85. package/dist/sync/cloud-schema.js +32 -0
  86. package/dist/sync/cloud-stage.js +112 -0
  87. package/dist/sync/cloud-wire.js +693 -0
  88. package/dist/sync/cloud-worker.js +57 -0
  89. package/dist/sync/cloud.js +157 -0
  90. package/dist/sync/command-apply.js +140 -0
  91. package/dist/sync/command-control.js +25 -0
  92. package/dist/sync/command-wire.js +437 -0
  93. package/dist/sync/consent.js +130 -0
  94. package/dist/sync/journal.js +43 -0
  95. package/dist/sync/outbox.js +134 -0
  96. package/dist/sync/restore-rows.js +125 -0
  97. package/dist/sync/restore.js +174 -0
  98. package/dist/sync/snapshot.js +78 -0
  99. package/dist/sync/spool-request.js +103 -0
  100. package/dist/sync/tables.js +27 -0
  101. package/dist/sync/triggers.js +34 -0
  102. package/dist/workflow/compare.js +3 -43
  103. package/docs/cloud-sync.md +94 -0
  104. package/docs/private-skills.md +75 -0
  105. package/docs/sync-p4.md +102 -0
  106. package/docs/sync-restore.md +167 -0
  107. package/package.json +18 -5
  108. package/src/store/migrations/007_sync.sql +49 -0
  109. package/src/store/migrations/008_connector_commands.sql +12 -0
  110. package/dist/dashboard/assets/chunk-5DFWNJC2.js +0 -1
  111. package/dist/dashboard/assets/chunk-S6B2HJQA.js +0 -17
@@ -0,0 +1,407 @@
1
+ /*! Vendored from @astryxdesign/core@0.7.16 (src/reset.css), MIT License (c) Meta Platforms, Inc.
2
+ * Copied into the repo because the packed CLI build runs build-dashboard.mjs
3
+ * without node_modules. Refresh on Astryx upgrades. */
4
+
5
+ /* Copyright (c) Meta Platforms, Inc. and affiliates. */
6
+
7
+ /**
8
+ * Astryx Reset Stylesheet
9
+ *
10
+ * An opinionated CSS reset that provides a clean, predictable base for
11
+ * Astryx applications. Built on the same principles as Tailwind Preflight
12
+ * and modern-normalize, adapted for the Astryx design system.
13
+ *
14
+ * This reset:
15
+ * - Normalizes cross-browser inconsistencies
16
+ * - Sets box-sizing: border-box universally
17
+ * - Removes default margins, padding, and list styles
18
+ * - Makes images block-level and responsive
19
+ * - Resets form elements to inherit font styles
20
+ * - Uses :where() for zero specificity (pseudo-elements go outside it)
21
+ *
22
+ * Usage:
23
+ *
24
+ * 1. Import directly (global reset):
25
+ * import '@astryxdesign/core/reset.css';
26
+ *
27
+ * 2. Combine with base styles and theme:
28
+ * import '@astryxdesign/core/reset.css'; // @layer reset — clean slate
29
+ * import '@astryxdesign/core/astryx.css'; // @layer astryx-base — component styles
30
+ * import '@astryxdesign/theme-neutral/theme.css'; // @layer astryx-theme — theme overrides
31
+ *
32
+ * Layer order: reset → astryx-base → astryx-theme. This file registers that
33
+ * order itself, like every Astryx stylesheet, so it holds in any load order.
34
+ * Consumer styles (unlayered) always override all Astryx layers.
35
+ * The reset has the lowest priority and can be overridden by any other layer.
36
+ *
37
+ * Similar to:
38
+ * - Tailwind CSS Preflight
39
+ * - Chakra UI's preflight (v3)
40
+ * - Bootstrap Reboot
41
+ * - modern-normalize
42
+ */
43
+
44
+ @layer reset, astryx-base, astryx-theme;
45
+
46
+ @layer reset {
47
+
48
+ /* ===========================================================================
49
+ Box Model
50
+ =========================================================================== */
51
+
52
+ /*
53
+ * Use border-box globally. Prevents padding/border from affecting
54
+ * element dimensions — the single most impactful reset.
55
+ */
56
+ :where(*), :where(*)::before, :where(*)::after {
57
+ box-sizing: border-box;
58
+ }
59
+
60
+ /*
61
+ * Reset borders to 0-width solid. This lets you add a border by just
62
+ * setting border-width — no need to also specify border-style.
63
+ */
64
+ :where(*), :where(*)::before, :where(*)::after {
65
+ border-width: 0;
66
+ border-style: solid;
67
+ border-color: currentColor;
68
+ }
69
+
70
+ /* ===========================================================================
71
+ Document
72
+ =========================================================================== */
73
+
74
+ /*
75
+ * Consistent line-height, prevent text size adjustment on orientation
76
+ * change in iOS, and set a readable tab size.
77
+ *
78
+ * color-scheme: light dark — declares that this page supports both modes,
79
+ * enabling CSS light-dark() to resolve correctly. Also ensures that CSS
80
+ * tools (e.g. LightningCSS) which polyfill light-dark() for older browsers
81
+ * inject their toggle-variable initialization in the same CSS bundle.
82
+ * XDSTheme overrides color-scheme per-wrapper as needed.
83
+ */
84
+ :where(html) {
85
+ line-height: 1.5;
86
+ -webkit-text-size-adjust: 100%;
87
+ tab-size: 4;
88
+ color-scheme: light dark;
89
+ }
90
+
91
+ /*
92
+ * Remove default body margin and set font smoothing for sharper text
93
+ * rendering on macOS/iOS.
94
+ */
95
+ :where(body) {
96
+ margin: 0;
97
+ line-height: inherit;
98
+ -webkit-font-smoothing: antialiased;
99
+ -moz-osx-font-smoothing: grayscale;
100
+ }
101
+
102
+ /* ===========================================================================
103
+ Typography
104
+ =========================================================================== */
105
+
106
+ /*
107
+ * Reset headings to inherit size and weight. Headings should be styled
108
+ * intentionally — not rely on browser defaults that vary across browsers.
109
+ */
110
+ :where(h1, h2, h3, h4, h5, h6) {
111
+ font-size: inherit;
112
+ font-weight: inherit;
113
+ }
114
+
115
+ /*
116
+ * Remove default margins on all block-level text elements.
117
+ */
118
+ :where(h1, h2, h3, h4, h5, h6, p, blockquote, figure, pre, dl, dd) {
119
+ margin: 0;
120
+ }
121
+
122
+ /*
123
+ * Links inherit color and text-decoration. Style them intentionally
124
+ * rather than relying on browser-default blue/purple.
125
+ */
126
+ :where(a) {
127
+ color: inherit;
128
+ text-decoration: inherit;
129
+ }
130
+
131
+ /*
132
+ * Correct font-weight rendering in Chrome and Safari.
133
+ */
134
+ :where(b, strong) {
135
+ font-weight: bolder;
136
+ }
137
+
138
+ /*
139
+ * Use the configured monospace font stack and fix the odd em sizing
140
+ * that browsers apply to code elements.
141
+ */
142
+ :where(code, kbd, samp, pre) {
143
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
144
+ 'Liberation Mono', 'Courier New', monospace;
145
+ font-size: 1em;
146
+ }
147
+
148
+ /*
149
+ * Correct font-size for small elements.
150
+ */
151
+ :where(small) {
152
+ font-size: 80%;
153
+ }
154
+
155
+ /*
156
+ * Prevent sub and sup from affecting line-height.
157
+ */
158
+ :where(sub, sup) {
159
+ font-size: 75%;
160
+ line-height: 0;
161
+ position: relative;
162
+ vertical-align: baseline;
163
+ }
164
+
165
+ :where(sub) {
166
+ bottom: -0.25em;
167
+ }
168
+
169
+ :where(sup) {
170
+ top: -0.5em;
171
+ }
172
+
173
+ /* ===========================================================================
174
+ Lists
175
+ =========================================================================== */
176
+
177
+ /*
178
+ * Remove default list styles, margin, and padding. Lists used for
179
+ * navigation or layout shouldn't carry prose styling by default.
180
+ * Use explicit styles for prose lists.
181
+ */
182
+ :where(ol, ul, menu) {
183
+ list-style: none;
184
+ margin: 0;
185
+ padding: 0;
186
+ }
187
+
188
+ /* ===========================================================================
189
+ Media
190
+ =========================================================================== */
191
+
192
+ /*
193
+ * Make replaced elements block-level. Eliminates the "mystery gap"
194
+ * below inline images and aligns with how these elements are
195
+ * actually used in modern layouts.
196
+ */
197
+ :where(img, svg, video, canvas, audio, iframe, embed, object) {
198
+ display: block;
199
+ vertical-align: middle;
200
+ }
201
+
202
+ /*
203
+ * Constrain images and video to their container. Responsive by default.
204
+ */
205
+ :where(img, video) {
206
+ max-width: 100%;
207
+ height: auto;
208
+ }
209
+
210
+ /* ===========================================================================
211
+ Forms
212
+ =========================================================================== */
213
+
214
+ /*
215
+ * Form elements should inherit font styles from their parent rather
216
+ * than using the browser's default font stack.
217
+ */
218
+ :where(button, input, optgroup, select, textarea) {
219
+ font: inherit;
220
+ color: inherit;
221
+ margin: 0;
222
+ padding: 0;
223
+ }
224
+
225
+ /*
226
+ * Remove default button styling. Buttons should be styled intentionally.
227
+ */
228
+ :where(button, [type='button'], [type='reset'], [type='submit']) {
229
+ -webkit-appearance: button;
230
+ appearance: button;
231
+ background-color: transparent;
232
+ background-image: none;
233
+ }
234
+
235
+ /*
236
+ * Pointer cursor for interactive elements.
237
+ */
238
+ :where(button, [role='button']) {
239
+ cursor: pointer;
240
+ }
241
+
242
+ /*
243
+ * Disabled elements take back any interactive cursor: a control that will
244
+ * not respond must not answer the pointer as though it will. `default`
245
+ * rather than `not-allowed` — a disabled control sealed behind
246
+ * `pointer-events: none` shows whatever its ancestor shows, and one cursor
247
+ * everywhere beats a stronger one we can only paint on half of them.
248
+ * Covers [aria-disabled] too: astryx keeps a disabled control focusable
249
+ * that way wherever its reason must stay discoverable (Button with a
250
+ * tooltip, Selector's trigger, SideNavItem).
251
+ */
252
+ :where(:disabled, [aria-disabled='true']) {
253
+ cursor: default;
254
+ }
255
+
256
+ /*
257
+ * Only allow vertical resizing of textareas to prevent layout breakage.
258
+ */
259
+ :where(textarea) {
260
+ resize: vertical;
261
+ }
262
+
263
+ /*
264
+ * Normalize placeholder opacity (Firefox renders at reduced opacity)
265
+ * and color it with the --color-text-secondary token, or its default.
266
+ */
267
+ :where(input, textarea)::placeholder {
268
+ opacity: 1;
269
+ color: var(--color-text-secondary, light-dark(#4E606F, #AAAFB5));
270
+ }
271
+
272
+ /*
273
+ * Chromium draws the dropdown marker of a field with a `list` as a glyph
274
+ * set on the line-height the field inherits, so with any line-height above
275
+ * 1 the marker sits below the middle of the field.
276
+ */
277
+ :where([list])::-webkit-calendar-picker-indicator {
278
+ line-height: 1;
279
+ }
280
+
281
+ /*
282
+ * Remove the inner padding and cancel buttons in search inputs
283
+ * for Chrome and Safari.
284
+ */
285
+ :where([type='search'])::-webkit-search-decoration,
286
+ :where([type='search'])::-webkit-search-cancel-button {
287
+ -webkit-appearance: none;
288
+ }
289
+
290
+ /*
291
+ * Remove default fieldset styles.
292
+ */
293
+ :where(fieldset) {
294
+ margin: 0;
295
+ padding: 0;
296
+ }
297
+
298
+ :where(legend) {
299
+ padding: 0;
300
+ }
301
+
302
+ /* ===========================================================================
303
+ Tables
304
+ =========================================================================== */
305
+
306
+ /*
307
+ * Collapse table borders and fix text-indent/border-color inheritance.
308
+ */
309
+ :where(table) {
310
+ text-indent: 0;
311
+ border-color: inherit;
312
+ border-collapse: collapse;
313
+ }
314
+
315
+ /* ===========================================================================
316
+ Misc
317
+ =========================================================================== */
318
+
319
+ /*
320
+ * Simplify hr to a single border-top line.
321
+ */
322
+ :where(hr) {
323
+ height: 0;
324
+ color: inherit;
325
+ border-top-width: 1px;
326
+ }
327
+
328
+ /*
329
+ * Correct display for summary elements.
330
+ */
331
+ :where(summary) {
332
+ display: list-item;
333
+ }
334
+
335
+ /*
336
+ * Reset dialog padding and outline.
337
+ */
338
+ :where(dialog) {
339
+ padding: 0;
340
+ outline: none;
341
+ }
342
+
343
+ /*
344
+ * Ensure hidden elements are actually hidden. `hidden="until-found"` keeps
345
+ * the browser's own rendering, `content-visibility: hidden`, so find in page
346
+ * and text fragment links can still find its content and reveal it.
347
+ */
348
+ :where([hidden]:not([hidden='until-found' i])) {
349
+ display: none;
350
+ }
351
+
352
+ /*
353
+ * Remove tap highlight on iOS.
354
+ */
355
+ :where(html) {
356
+ -webkit-tap-highlight-color: transparent;
357
+ }
358
+
359
+ /* ===========================================================================
360
+ Color Scheme
361
+ =========================================================================== */
362
+
363
+ /*
364
+ * Map data-theme attribute to CSS color-scheme.
365
+ *
366
+ * Setting data-theme on <html> tells the browser which color scheme
367
+ * to use for native UI elements (scrollbars, form controls, date
368
+ * pickers) and enables CSS light-dark() to resolve correctly.
369
+ *
370
+ * XDSTheme auto-detects when it's the root provider and syncs this
371
+ * attribute on the client. For RSC / SSR, set it on <html> in your
372
+ * root layout to avoid a flash of wrong theme:
373
+ *
374
+ * <html lang="en" data-theme="dark">
375
+ *
376
+ * Values: "light" | "dark" | omitted (defaults to light dark = system)
377
+ */
378
+ :where(html[data-theme="light"]) {
379
+ color-scheme: light;
380
+ }
381
+
382
+ :where(html[data-theme="dark"]) {
383
+ color-scheme: dark;
384
+ }
385
+
386
+ :where(html:not([data-theme])) {
387
+ color-scheme: light dark;
388
+ }
389
+
390
+ /* ===========================================================================
391
+ Media Theme Baseline
392
+ =========================================================================== */
393
+
394
+ /*
395
+ * color-scheme flip for [data-*-media] — makes light-dark() base
396
+ * tokens resolve correctly on inverted surfaces without a theme.
397
+ * Token overrides (text/icon/accent) are theme-level (generateOnMediaCSS).
398
+ * Dual-prefix (astryx + legacy xds) during the compat window.
399
+ */
400
+ :where([data-astryx-media="dark"]) {
401
+ color-scheme: dark;
402
+ }
403
+
404
+ :where([data-astryx-media="light"]) {
405
+ color-scheme: light;
406
+ }
407
+ }