@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.
Files changed (57) hide show
  1. package/.agents/plugins/agentic-senior-core/.codex-plugin/plugin.json +1 -1
  2. package/.agents/plugins/agentic-senior-core/commands/asc-test.md +1 -1
  3. package/.agents/plugins/agentic-senior-core/commands/asc-ui.md +1 -1
  4. package/.agents/plugins/agentic-senior-core/hooks/lib/known-ui-slop-patterns.json +5 -0
  5. package/.agents/plugins/agentic-senior-core/plugin.json +1 -1
  6. package/.agents/plugins/agentic-senior-core/rules/agentic-senior-core.md +2 -1
  7. package/.agents/plugins/agentic-senior-core/skills/asc/references/writing-skills.md +1 -1
  8. package/.agents/plugins/agentic-senior-core/skills/asc-develop/SKILL.md +2 -2
  9. package/.agents/plugins/agentic-senior-core/skills/asc-pentest/references/fuzzing-dsl.md +1 -1
  10. package/.agents/plugins/agentic-senior-core/skills/asc-test/SKILL.md +2 -2
  11. package/.agents/plugins/agentic-senior-core/skills/asc-test/references/regression-proof.md +2 -2
  12. package/.agents/plugins/agentic-senior-core/skills/asc-test/references/tdd-cycle.md +2 -2
  13. package/.agents/plugins/agentic-senior-core/skills/asc-test/references/uat.md +1 -1
  14. package/.agents/plugins/agentic-senior-core/skills/asc-ui/SKILL.md +25 -31
  15. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/accessibility.md +2 -2
  16. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/copy-i18n.md +24 -8
  17. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/craft/color-surfaces.md +13 -6
  18. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/craft/composition-patterns.md +299 -0
  19. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/craft/themes-catalog.md +10 -9
  20. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/divergence.md +51 -42
  21. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/modes/experience.md +4 -0
  22. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/modes/genre-calibration.md +10 -6
  23. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/modes/operate.md +13 -9
  24. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/modes/persuade.md +26 -17
  25. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/modes/read.md +4 -0
  26. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/redesign-audit.md +1 -1
  27. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/states-feedback.md +2 -2
  28. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-attio-dom.json +5 -0
  29. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-attio.png +0 -0
  30. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-cal-dom.json +5 -0
  31. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-cal.png +0 -0
  32. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-clerk-dom.json +5 -0
  33. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-clerk.png +0 -0
  34. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-dub-dom.json +5 -0
  35. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-dub.png +0 -0
  36. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-linear-dom.json +5 -0
  37. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-linear.png +0 -0
  38. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-marketplace-dom.json +5 -0
  39. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-marketplace.png +0 -0
  40. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-mintlify-dom.json +5 -0
  41. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-mintlify.png +0 -0
  42. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-raycast-dom.json +5 -0
  43. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-raycast.png +0 -0
  44. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-resend-dom.json +5 -0
  45. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-resend.png +0 -0
  46. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-stripe-dom.json +5 -0
  47. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-stripe.png +0 -0
  48. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-supabase-dom.json +5 -0
  49. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-supabase.png +0 -0
  50. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-tldraw-dom.json +5 -0
  51. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-tldraw.png +0 -0
  52. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-vercel-dom.json +5 -0
  53. package/.agents/plugins/agentic-senior-core/skills/asc-ui/references/visuals/real-vercel.png +0 -0
  54. package/gemini-extension.json +1 -1
  55. package/lib/cli/commands/preview.mjs +22 -17
  56. package/package.json +1 -1
  57. package/plugin.yaml +1 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-senior-core",
3
- "version": "6.16.5",
3
+ "version": "6.16.6",
4
4
  "description": "Universal AI coding rules. Write code like a staff engineer.",
5
5
  "author": "fatidaprilian",
6
6
  "license": "MIT",
@@ -150,31 +150,36 @@ export function findBrowserExecutable() {
150
150
  }
151
151
 
152
152
  export async function runPreviewCommand(args = []) {
153
- const targetFile = args.find(a => !a.startsWith('-'));
153
+ const target = args.find(a => !a.startsWith('-'));
154
154
  const shouldOpen = args.includes('--open');
155
- const width = 1280;
156
- const height = 800;
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 (!targetFile) {
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 resolvedHtmlPath = path.resolve(process.cwd(), targetFile);
164
- if (!fs.existsSync(resolvedHtmlPath)) {
165
- console.error(`File not found: ${resolvedHtmlPath}`);
166
- process.exit(1);
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(resolvedHtmlPath);
177
- console.log(`[asc preview] Opened in default browser: ${resolvedHtmlPath}`);
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(resolvedHtmlPath);
193
+ openInDefaultBrowser(resolvedTarget);
189
194
  return;
190
195
  }
191
196
 
192
197
  try {
193
- const fileUrl = pathToFileURL(resolvedHtmlPath).href;
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} "${fileUrl}"`;
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} "${fileUrl}"`;
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(resolvedHtmlPath);
217
+ openInDefaultBrowser(resolvedTarget);
213
218
  }
214
219
  }
215
220
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ryuenn3123/agentic-senior-core",
3
- "version": "6.16.5",
3
+ "version": "6.16.6",
4
4
  "type": "module",
5
5
  "description": "Agentic Senior Core: Universal AI coding rules and workflows. Write code like a staff engineer, not a junior.",
6
6
  "bin": {
package/plugin.yaml CHANGED
@@ -1,5 +1,5 @@
1
1
  name: agentic-senior-core
2
- version: 6.16.5
2
+ version: 6.16.6
3
3
  description: Universal AI coding rules. Write code like a staff engineer.
4
4
  author: fatidaprilian
5
5
  provides_hooks: