asyar-sdk 4.5.0 → 4.7.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.
- package/LICENSE +21 -661
- package/dist/ExtensionBridge.d.ts +1 -1
- package/dist/ExtensionBridge.d.ts.map +1 -1
- package/dist/ExtensionBridge.js +29 -3
- package/dist/ExtensionBridge.js.map +1 -1
- package/dist/ExtensionBridge.test.js +11 -0
- package/dist/ExtensionBridge.test.js.map +1 -1
- package/dist/ExtensionContext.d.ts.map +1 -1
- package/dist/ExtensionContext.js +2 -1
- package/dist/ExtensionContext.js.map +1 -1
- package/dist/cli/lib/gatedPermissions.d.ts +2 -0
- package/dist/cli/lib/gatedPermissions.d.ts.map +1 -0
- package/dist/cli/lib/gatedPermissions.js +58 -0
- package/dist/cli/lib/gatedPermissions.js.map +1 -0
- package/dist/cli/lib/knownRuntimes.d.ts +2 -0
- package/dist/cli/lib/knownRuntimes.d.ts.map +1 -0
- package/dist/cli/lib/knownRuntimes.js +15 -0
- package/dist/cli/lib/knownRuntimes.js.map +1 -0
- package/dist/cli/lib/manifest.d.ts +48 -3
- package/dist/cli/lib/manifest.d.ts.map +1 -1
- package/dist/cli/lib/manifest.js +134 -2
- package/dist/cli/lib/manifest.js.map +1 -1
- package/dist/contracts/walkthrough.d.ts +53 -0
- package/dist/contracts/walkthrough.d.ts.map +1 -0
- package/dist/contracts/walkthrough.js +11 -0
- package/dist/contracts/walkthrough.js.map +1 -0
- package/dist/contracts.d.ts +2 -1
- package/dist/contracts.d.ts.map +1 -1
- package/dist/contracts.js.map +1 -1
- package/dist/icons/iconData.d.ts.map +1 -1
- package/dist/icons/iconData.js +4 -0
- package/dist/icons/iconData.js.map +1 -1
- package/dist/ipc/namespaces.d.ts +1 -1
- package/dist/ipc/namespaces.d.ts.map +1 -1
- package/dist/ipc/namespaces.js +1 -0
- package/dist/ipc/namespaces.js.map +1 -1
- package/dist/ipc/namespaces.test.js +1 -0
- package/dist/ipc/namespaces.test.js.map +1 -1
- package/dist/services/BaseServiceProxy.d.ts +9 -0
- package/dist/services/BaseServiceProxy.d.ts.map +1 -1
- package/dist/services/BaseServiceProxy.js +10 -0
- package/dist/services/BaseServiceProxy.js.map +1 -1
- package/dist/services/BaseServiceProxy.test.d.ts +2 -0
- package/dist/services/BaseServiceProxy.test.d.ts.map +1 -0
- package/dist/services/BaseServiceProxy.test.js +30 -0
- package/dist/services/BaseServiceProxy.test.js.map +1 -0
- package/dist/services/FeedbackServiceProxy.d.ts.map +1 -1
- package/dist/services/FeedbackServiceProxy.js +5 -6
- package/dist/services/FeedbackServiceProxy.js.map +1 -1
- package/dist/services/INotesService.d.ts +37 -0
- package/dist/services/INotesService.d.ts.map +1 -0
- package/dist/services/INotesService.js +7 -0
- package/dist/services/INotesService.js.map +1 -0
- package/dist/services/NetworkServiceProxy.d.ts +2 -1
- package/dist/services/NetworkServiceProxy.d.ts.map +1 -1
- package/dist/services/NetworkServiceProxy.js +91 -0
- package/dist/services/NetworkServiceProxy.js.map +1 -1
- package/dist/services/NetworkServiceProxy.test.js +136 -3
- package/dist/services/NetworkServiceProxy.test.js.map +1 -1
- package/dist/services/NotesServiceProxy.d.ts +20 -0
- package/dist/services/NotesServiceProxy.d.ts.map +1 -0
- package/dist/services/NotesServiceProxy.js +42 -0
- package/dist/services/NotesServiceProxy.js.map +1 -0
- package/dist/services/NotesServiceProxy.test.d.ts +2 -0
- package/dist/services/NotesServiceProxy.test.d.ts.map +1 -0
- package/dist/services/NotesServiceProxy.test.js +85 -0
- package/dist/services/NotesServiceProxy.test.js.map +1 -0
- package/dist/services/RunServiceProxy.d.ts.map +1 -1
- package/dist/services/RunServiceProxy.js +8 -5
- package/dist/services/RunServiceProxy.js.map +1 -1
- package/dist/services/RunServiceProxy.test.js +15 -22
- package/dist/services/RunServiceProxy.test.js.map +1 -1
- package/dist/services/SnippetsServiceProxy.d.ts.map +1 -1
- package/dist/services/SnippetsServiceProxy.js +2 -4
- package/dist/services/SnippetsServiceProxy.js.map +1 -1
- package/dist/services/SnippetsServiceProxy.test.js +13 -6
- package/dist/services/SnippetsServiceProxy.test.js.map +1 -1
- package/dist/services/index.d.ts +2 -0
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/index.js +1 -0
- package/dist/services/index.js.map +1 -1
- package/dist/types/CommandType.d.ts +25 -0
- package/dist/types/CommandType.d.ts.map +1 -1
- package/dist/types/ExtensionType.d.ts +14 -0
- package/dist/types/ExtensionType.d.ts.map +1 -1
- package/dist/types/NetworkType.d.ts +16 -0
- package/dist/types/NetworkType.d.ts.map +1 -1
- package/dist/view.test.js +1 -0
- package/dist/view.test.js.map +1 -1
- package/dist/worker.d.ts.map +1 -1
- package/dist/worker.js +2 -0
- package/dist/worker.js.map +1 -1
- package/dist/worker.test.js +1 -0
- package/dist/worker.test.js.map +1 -1
- package/package.json +8 -3
- package/src/styles/tokens.css +112 -40
package/src/styles/tokens.css
CHANGED
|
@@ -12,49 +12,84 @@
|
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
:root {
|
|
15
|
-
/* Backgrounds
|
|
16
|
-
|
|
17
|
-
--bg-
|
|
18
|
-
--bg-
|
|
19
|
-
--bg-
|
|
20
|
-
--bg-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
/* Backgrounds. Deep navy rather than neutral grey, and translucent — an
|
|
16
|
+
Asyar surface lets the desktop read through it. */
|
|
17
|
+
--bg-primary: rgba(14, 16, 28, 0.72);
|
|
18
|
+
--bg-secondary: rgba(24, 27, 42, 0.7);
|
|
19
|
+
--bg-tertiary: rgba(32, 36, 54, 0.7);
|
|
20
|
+
--bg-hover: rgba(56, 63, 92, 0.5);
|
|
21
|
+
/* Selection carries chroma; hover does not. That difference is what keeps
|
|
22
|
+
the two apart at a glance. */
|
|
23
|
+
--bg-selected: rgba(61, 107, 245, 0.18);
|
|
24
|
+
--bg-popup: rgb(16, 18, 31);
|
|
25
|
+
--bg-secondary-full-opacity: rgb(24, 27, 42);
|
|
23
26
|
|
|
24
27
|
/* Text */
|
|
25
|
-
--text-primary: rgba(
|
|
26
|
-
--text-secondary: rgba(
|
|
27
|
-
--text-tertiary: rgba(
|
|
28
|
+
--text-primary: rgba(237, 240, 252, 0.96);
|
|
29
|
+
--text-secondary: rgba(196, 203, 227, 0.68);
|
|
30
|
+
--text-tertiary: rgba(170, 179, 209, 0.58);
|
|
31
|
+
/* Text/icons on any filled saturated surface. Constant across themes, and
|
|
32
|
+
guaranteed to reach 4.5:1 on every --accent-*-fill below. */
|
|
33
|
+
--text-on-accent: #ffffff;
|
|
28
34
|
|
|
29
35
|
/* Borders */
|
|
30
|
-
--border-color: rgba(
|
|
31
|
-
--separator: rgba(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
--accent-
|
|
37
|
-
--accent-
|
|
38
|
-
--accent-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
--
|
|
36
|
+
--border-color: rgba(140, 152, 200, 0.18);
|
|
37
|
+
--separator: rgba(140, 152, 200, 0.13);
|
|
38
|
+
--divider-soft: rgba(160, 172, 220, 0.06);
|
|
39
|
+
|
|
40
|
+
/* Accent — THE VOICE. Use for text, icons, strokes, and as the source for
|
|
41
|
+
a tinted background via color-mix. Reaches 4.5:1 on Asyar surfaces. */
|
|
42
|
+
--accent-primary: #7b9cff;
|
|
43
|
+
--accent-primary-rgb: 123, 156, 255;
|
|
44
|
+
--accent-success: #3ed18f;
|
|
45
|
+
--accent-warning: #e9a83f;
|
|
46
|
+
--accent-danger: #ff6b77;
|
|
47
|
+
|
|
48
|
+
/* Accent — THE GROUND. Use ONLY as the background of a filled surface that
|
|
49
|
+
carries --text-on-accent. A colour bright enough to read as text on a
|
|
50
|
+
dark surface is too bright to carry white text on top of it, so these are
|
|
51
|
+
deliberately deeper than the voice values above. */
|
|
52
|
+
--accent-primary-fill: #3d6bf5;
|
|
53
|
+
--accent-success-fill: #0f7f58;
|
|
54
|
+
--accent-warning-fill: #8f5d0a;
|
|
55
|
+
--accent-danger-fill: #c0303e;
|
|
56
|
+
|
|
57
|
+
/* Edge highlight and edge shade, used inside the launcher's popup shadow
|
|
58
|
+
and its filled-button gradients so a surface does not read as a flat
|
|
59
|
+
rectangle of colour. */
|
|
60
|
+
--rim-light: rgba(255, 255, 255, 0.1);
|
|
61
|
+
--rim-shade: rgba(0, 0, 0, 0.4);
|
|
62
|
+
|
|
63
|
+
/* Code colour — use these for anything syntax-highlighted. */
|
|
64
|
+
--syntax-comment: #637777;
|
|
65
|
+
--syntax-keyword: #c792ea;
|
|
66
|
+
--syntax-string: #c3e88d;
|
|
67
|
+
--syntax-number: #f07178;
|
|
68
|
+
--syntax-function: #82aaff;
|
|
69
|
+
|
|
70
|
+
/* Brand === accent. One identity colour, not two. */
|
|
71
|
+
--asyar-brand: #7b9cff;
|
|
72
|
+
--asyar-brand-hover: #9db4ff;
|
|
73
|
+
--asyar-brand-muted: rgba(123, 156, 255, 0.18);
|
|
74
|
+
--asyar-brand-subtle: rgba(123, 156, 255, 0.09);
|
|
75
|
+
|
|
76
|
+
/* Shadows. Every drop shadow casts straight down — `0 Ypx`, no horizontal
|
|
77
|
+
component — and height is carried by blur and negative spread rather
|
|
78
|
+
than by sliding the shadow sideways. Consistency, not physics: shadows
|
|
79
|
+
that disagree about direction read as a rendering mistake. */
|
|
80
|
+
--shadow-color: rgba(0, 0, 0, 0.4);
|
|
48
81
|
--shadow-xs: 0 1px 2px var(--shadow-color);
|
|
49
|
-
--shadow-sm: 0 2px
|
|
50
|
-
--shadow-md: 0
|
|
51
|
-
--shadow-lg: 0
|
|
52
|
-
--shadow-xl: 0 12px
|
|
53
|
-
--shadow-popup: 0 8px
|
|
82
|
+
--shadow-sm: 0 2px 6px var(--shadow-color);
|
|
83
|
+
--shadow-md: 0 6px 14px -2px var(--shadow-color);
|
|
84
|
+
--shadow-lg: 0 12px 28px -6px var(--shadow-color);
|
|
85
|
+
--shadow-xl: 0 24px 56px -12px var(--shadow-color);
|
|
86
|
+
--shadow-popup: 0 12px 40px -8px var(--shadow-color), 0 3px 10px -3px var(--shadow-color);
|
|
54
87
|
--shadow-focus: 0 0 0 2px var(--asyar-brand-muted);
|
|
55
88
|
|
|
56
89
|
/* Scrollbar */
|
|
57
|
-
--scrollbar-thumb: rgba(
|
|
90
|
+
--scrollbar-thumb: rgba(150, 162, 205, 0.4);
|
|
91
|
+
/* The moving part of a switch. */
|
|
92
|
+
--control-knob: #ffffff;
|
|
58
93
|
|
|
59
94
|
/* Border Radius */
|
|
60
95
|
--radius-xs: 4px;
|
|
@@ -65,18 +100,34 @@
|
|
|
65
100
|
--radius-full: 9999px;
|
|
66
101
|
|
|
67
102
|
/* Spacing */
|
|
103
|
+
--space-0-5: 2px;
|
|
68
104
|
--space-1: 4px;
|
|
105
|
+
--space-1-5: 5px;
|
|
69
106
|
--space-2: 6px;
|
|
107
|
+
--space-2-5: 11px;
|
|
70
108
|
--space-3: 8px;
|
|
71
109
|
--space-4: 10px;
|
|
72
110
|
--space-5: 12px;
|
|
111
|
+
--space-5-5: 13px;
|
|
73
112
|
--space-6: 16px;
|
|
74
113
|
--space-7: 20px;
|
|
114
|
+
--space-7-5: 23px;
|
|
75
115
|
--space-8: 24px;
|
|
76
116
|
--space-9: 32px;
|
|
77
117
|
--space-10: 40px;
|
|
78
118
|
--space-11: 48px;
|
|
79
119
|
|
|
120
|
+
/* Size — the dimensions of objects, as opposed to the gaps between them.
|
|
121
|
+
Space is the gap; size is the thing. Use these for icons, tiles, avatars
|
|
122
|
+
and glyphs rather than reaching into the spacing scale. */
|
|
123
|
+
--size-xs: 12px; /* a glyph inside a dense chip or badge */
|
|
124
|
+
--size-sm: 16px; /* the default inline icon, beside body text */
|
|
125
|
+
--size-md: 20px; /* a key chip, a small pill, a status pip */
|
|
126
|
+
--size-lg: 24px; /* the icon tile in a result row */
|
|
127
|
+
--size-xl: 32px; /* an extension avatar, a settings row icon */
|
|
128
|
+
--size-2xl: 48px; /* an empty-state or onboarding glyph */
|
|
129
|
+
--size-3xl: 64px; /* the largest object in the product */
|
|
130
|
+
|
|
80
131
|
/* Font Sizes */
|
|
81
132
|
--font-size-2xs: 10px;
|
|
82
133
|
--font-size-xs: 11px;
|
|
@@ -87,6 +138,7 @@
|
|
|
87
138
|
--font-size-xl: 17px;
|
|
88
139
|
--font-size-2xl: 20px;
|
|
89
140
|
--font-size-3xl: 22px;
|
|
141
|
+
--font-size-section: 16px;
|
|
90
142
|
--font-size-display: 2.25rem;
|
|
91
143
|
|
|
92
144
|
/* Font Families */
|
|
@@ -95,9 +147,29 @@
|
|
|
95
147
|
'Helvetica Neue', sans-serif;
|
|
96
148
|
--font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
|
|
97
149
|
|
|
98
|
-
/*
|
|
99
|
-
|
|
100
|
-
--
|
|
101
|
-
--
|
|
102
|
-
--
|
|
150
|
+
/* Tracking. Pair with the font sizes above; never set letter-spacing from
|
|
151
|
+
a raw em value. */
|
|
152
|
+
--tracking-display: -0.028em;
|
|
153
|
+
--tracking-tight: -0.014em;
|
|
154
|
+
--tracking-normal: 0em;
|
|
155
|
+
--tracking-wide: 0.06em;
|
|
156
|
+
|
|
157
|
+
/* Motion. Four durations and four curves; every animation in Asyar is one
|
|
158
|
+
of each. --ease-travel is the workhorse. --ease-settle is the only curve
|
|
159
|
+
allowed to overshoot, and only on scale. */
|
|
160
|
+
--dur-instant: 80ms;
|
|
161
|
+
--dur-quick: 140ms;
|
|
162
|
+
--dur-travel: 220ms;
|
|
163
|
+
--dur-emerge: 320ms;
|
|
164
|
+
|
|
165
|
+
--ease-travel: cubic-bezier(0.32, 0.72, 0, 1);
|
|
166
|
+
--ease-emerge: cubic-bezier(0.16, 1, 0.3, 1);
|
|
167
|
+
--ease-recede: cubic-bezier(0.7, 0, 0.84, 0);
|
|
168
|
+
--ease-settle: cubic-bezier(0.34, 1.4, 0.64, 1);
|
|
169
|
+
|
|
170
|
+
/* Transitions. Kept as shorthands over the motion primitives above. */
|
|
171
|
+
--transition-fast: var(--dur-instant) var(--ease-travel);
|
|
172
|
+
--transition-normal: var(--dur-quick) var(--ease-travel);
|
|
173
|
+
--transition-smooth: var(--dur-travel) var(--ease-travel);
|
|
174
|
+
--transition-slow: var(--dur-emerge) var(--ease-emerge);
|
|
103
175
|
}
|