@ryuenn3123/agentic-senior-core 6.16.5 → 6.16.6
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/.agents/plugins/agentic-senior-core/.codex-plugin/plugin.json +1 -1
- package/.agents/plugins/agentic-senior-core/commands/asc-test.md +1 -1
- package/.agents/plugins/agentic-senior-core/commands/asc-ui.md +1 -1
- package/.agents/plugins/agentic-senior-core/hooks/lib/known-ui-slop-patterns.json +5 -0
- package/.agents/plugins/agentic-senior-core/plugin.json +1 -1
- package/.agents/plugins/agentic-senior-core/rules/agentic-senior-core.md +2 -1
- package/.agents/plugins/agentic-senior-core/skills/asc/references/writing-skills.md +1 -1
- package/.agents/plugins/agentic-senior-core/skills/asc-develop/SKILL.md +2 -2
- package/.agents/plugins/agentic-senior-core/skills/asc-pentest/references/fuzzing-dsl.md +1 -1
- package/.agents/plugins/agentic-senior-core/skills/asc-test/SKILL.md +2 -2
- package/.agents/plugins/agentic-senior-core/skills/asc-test/references/regression-proof.md +2 -2
- package/.agents/plugins/agentic-senior-core/skills/asc-test/references/tdd-cycle.md +2 -2
- package/.agents/plugins/agentic-senior-core/skills/asc-test/references/uat.md +1 -1
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/SKILL.md +25 -31
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/accessibility.md +2 -2
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/copy-i18n.md +24 -8
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/craft/color-surfaces.md +13 -6
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/craft/composition-patterns.md +299 -0
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/craft/themes-catalog.md +10 -9
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/divergence.md +51 -42
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/modes/experience.md +4 -0
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/modes/genre-calibration.md +10 -6
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/modes/operate.md +13 -9
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/modes/persuade.md +26 -17
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/modes/read.md +4 -0
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/redesign-audit.md +1 -1
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/states-feedback.md +2 -2
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-attio-dom.json +5 -0
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-attio.png +0 -0
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-cal-dom.json +5 -0
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-cal.png +0 -0
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-clerk-dom.json +5 -0
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-clerk.png +0 -0
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-dub-dom.json +5 -0
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-dub.png +0 -0
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-linear-dom.json +5 -0
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-linear.png +0 -0
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-marketplace-dom.json +5 -0
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-marketplace.png +0 -0
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-mintlify-dom.json +5 -0
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-mintlify.png +0 -0
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-raycast-dom.json +5 -0
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-raycast.png +0 -0
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-resend-dom.json +5 -0
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-resend.png +0 -0
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-stripe-dom.json +5 -0
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-stripe.png +0 -0
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-supabase-dom.json +5 -0
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-supabase.png +0 -0
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-tldraw-dom.json +5 -0
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-tldraw.png +0 -0
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-vercel-dom.json +5 -0
- package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-vercel.png +0 -0
- package/gemini-extension.json +1 -1
- package/lib/cli/commands/preview.mjs +22 -17
- package/package.json +1 -1
- package/plugin.yaml +1 -1
|
Binary file
|
package/gemini-extension.json
CHANGED
|
@@ -150,31 +150,36 @@ export function findBrowserExecutable() {
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
export async function runPreviewCommand(args = []) {
|
|
153
|
-
const
|
|
153
|
+
const target = args.find(a => !a.startsWith('-'));
|
|
154
154
|
const shouldOpen = args.includes('--open');
|
|
155
|
-
const
|
|
156
|
-
const
|
|
155
|
+
const isMobile = args.includes('--mobile');
|
|
156
|
+
const width = isMobile ? 390 : (args.includes('--desktop') ? 1440 : 1280);
|
|
157
|
+
const height = isMobile ? 844 : (args.includes('--desktop') ? 900 : 800);
|
|
157
158
|
|
|
158
|
-
if (!
|
|
159
|
-
console.error('Usage: asc preview <html-file> [--open]');
|
|
159
|
+
if (!target) {
|
|
160
|
+
console.error('Usage: asc preview <html-file-or-url> [--open] [--mobile] [--desktop]');
|
|
160
161
|
process.exit(1);
|
|
161
162
|
}
|
|
162
163
|
|
|
163
|
-
const
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
process.
|
|
164
|
+
const isHttpUrl = /^https?:\/\//i.test(target);
|
|
165
|
+
let resolvedTarget = target;
|
|
166
|
+
if (!isHttpUrl) {
|
|
167
|
+
resolvedTarget = path.resolve(process.cwd(), target);
|
|
168
|
+
if (!fs.existsSync(resolvedTarget)) {
|
|
169
|
+
console.error(`File not found: ${resolvedTarget}`);
|
|
170
|
+
process.exit(1);
|
|
171
|
+
}
|
|
167
172
|
}
|
|
168
173
|
|
|
169
174
|
// Single fixed reusable slot in OS temp directory
|
|
170
175
|
const tempDir = os.tmpdir();
|
|
171
|
-
const outputPng = path.join(tempDir, 'asc-preview-active.png');
|
|
176
|
+
const outputPng = path.join(tempDir, isMobile ? 'asc-preview-mobile.png' : 'asc-preview-active.png');
|
|
172
177
|
|
|
173
178
|
// Open in default OS browser if requested
|
|
174
179
|
if (shouldOpen) {
|
|
175
180
|
try {
|
|
176
|
-
openInDefaultBrowser(
|
|
177
|
-
console.log(`[asc preview] Opened in default browser: ${
|
|
181
|
+
openInDefaultBrowser(resolvedTarget);
|
|
182
|
+
console.log(`[asc preview] Opened in default browser: ${resolvedTarget}`);
|
|
178
183
|
return;
|
|
179
184
|
} catch (err) {
|
|
180
185
|
console.error(`Failed to open default browser: ${err.message}`);
|
|
@@ -185,17 +190,17 @@ export async function runPreviewCommand(args = []) {
|
|
|
185
190
|
const browser = findBrowserExecutable();
|
|
186
191
|
if (!browser) {
|
|
187
192
|
console.warn('[asc preview] No supported headless browser detected (Brave, Edge, Chrome, Firefox). Falling back to OS opener.');
|
|
188
|
-
openInDefaultBrowser(
|
|
193
|
+
openInDefaultBrowser(resolvedTarget);
|
|
189
194
|
return;
|
|
190
195
|
}
|
|
191
196
|
|
|
192
197
|
try {
|
|
193
|
-
const
|
|
198
|
+
const targetUrl = isHttpUrl ? target : pathToFileURL(resolvedTarget).href;
|
|
194
199
|
let command;
|
|
195
200
|
if (browser.family === 'chromium') {
|
|
196
|
-
command = `"${browser.path}" --headless=new --disable-gpu --screenshot="${outputPng}" --window-size=${width},${height} "${
|
|
201
|
+
command = `"${browser.path}" --headless=new --disable-gpu --screenshot="${outputPng}" --window-size=${width},${height} "${targetUrl}"`;
|
|
197
202
|
} else if (browser.family === 'firefox') {
|
|
198
|
-
command = `"${browser.path}" -headless -screenshot "${outputPng}" -window-size ${width},${height} "${
|
|
203
|
+
command = `"${browser.path}" -headless -screenshot "${outputPng}" -window-size ${width},${height} "${targetUrl}"`;
|
|
199
204
|
}
|
|
200
205
|
|
|
201
206
|
execSync(command, { stdio: 'pipe', timeout: 15000 });
|
|
@@ -209,7 +214,7 @@ export async function runPreviewCommand(args = []) {
|
|
|
209
214
|
}
|
|
210
215
|
} catch (err) {
|
|
211
216
|
console.warn(`[asc preview] Headless snapshot failed: ${err.message}. Falling back to OS opener.`);
|
|
212
|
-
openInDefaultBrowser(
|
|
217
|
+
openInDefaultBrowser(resolvedTarget);
|
|
213
218
|
}
|
|
214
219
|
}
|
|
215
220
|
|
package/package.json
CHANGED
package/plugin.yaml
CHANGED