@agent-scope/cli 1.19.0 → 1.20.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.
package/dist/index.d.cts CHANGED
@@ -125,6 +125,22 @@ declare function createCiCommand(): Command;
125
125
 
126
126
  declare function createDoctorCommand(): Command;
127
127
 
128
+ /**
129
+ * get-skill-command.ts
130
+ *
131
+ * `scope get-skill` — print the Scope SKILL.md to stdout so an agent can
132
+ * load it directly into its context without knowing the file path.
133
+ *
134
+ * The skill content is embedded at build time by scripts/generate-skill-content.mjs
135
+ * so this works correctly in any install context (global npm, local node_modules, etc.)
136
+ *
137
+ * Usage:
138
+ * scope get-skill # print raw markdown to stdout
139
+ * scope get-skill --json # wrap in JSON { "skill": "<content>" }
140
+ */
141
+
142
+ declare function createGetSkillCommand(): Command;
143
+
128
144
  /**
129
145
  * @agent-scope/cli — `scope init` command implementation
130
146
  *
@@ -184,6 +200,9 @@ interface ReactScopeConfig {
184
200
  failOnConsoleErrors: boolean;
185
201
  baselinePath: string;
186
202
  };
203
+ icons?: {
204
+ patterns: string[];
205
+ };
187
206
  }
188
207
  interface InitOptions {
189
208
  /** Accept all defaults without prompting. */
@@ -303,7 +322,7 @@ interface HooksProfilingResult {
303
322
  *
304
323
  * - totalRenders — total commit count during the interaction window
305
324
  * - uniqueComponents — distinct component names that re-rendered
306
- * - wastedRenders — re-renders where output was identical (heuristic)
325
+ * - wastedRenders — deprecated heuristic, always null in JSON output
307
326
  * - timing.js — JS execution time (ms) measured via Performance API
308
327
  * - timing.layout — Layout/reflow time (ms) measured via PerformanceObserver
309
328
  * - timing.paint — Paint time (ms) measured via PerformanceObserver
@@ -352,8 +371,14 @@ interface InteractionProfile {
352
371
  totalRenders: number;
353
372
  /** Number of distinct component names that re-rendered during the window. */
354
373
  uniqueComponents: number;
355
- /** Estimated number of "wasted" renders (components that re-rendered without output change). */
356
- wastedRenders: number;
374
+ /** Deprecated heuristic field retained for compatibility; always null because it is not directly measured. */
375
+ wastedRenders: number | null;
376
+ /** Explicit machine-readable note that wasted render counts are not directly measured. */
377
+ wastedRendersHeuristic: {
378
+ measured: false;
379
+ value: null;
380
+ note: string;
381
+ };
357
382
  /** Timing breakdown in ms. */
358
383
  timing: InteractionTiming;
359
384
  /** Layout shift metrics. */
@@ -465,6 +490,8 @@ interface ListRow {
465
490
  complexityClass: ComplexityClass;
466
491
  hookCount: number;
467
492
  contextCount: number;
493
+ collection?: string;
494
+ internal: boolean;
468
495
  }
469
496
  interface QueryRow {
470
497
  name: string;
@@ -472,6 +499,8 @@ interface QueryRow {
472
499
  complexityClass: ComplexityClass;
473
500
  hooks: string;
474
501
  contexts: string;
502
+ collection?: string;
503
+ internal: boolean;
475
504
  }
476
505
  /**
477
506
  * Minimal glob matcher supporting `*` (any chars except `/`) and `**` (any chars).
@@ -542,4 +571,4 @@ declare function resolveTokenFilePath(fileFlag?: string): string;
542
571
  */
543
572
  declare function createTokensExportCommand(): Command;
544
573
 
545
- export { CI_EXIT, type CausalityLink, type CiCheckName, type CiCheckResult, type CiExitCode, type CiOptions, type CiResult, type ComponentHookProfile, type HookHeuristicFlag, type HookProfile, type HooksProfilingResult, type InitOptions, type InitResult, type InteractionProfile, type InteractionStep$1 as InteractionStep, type InteractionTiming, type LayoutShiftData, type ListRow, type ProfileHeuristicFlag, type QueryRow, type ReactScopeConfig, type RenderEvent, type RenderTrigger, type RendersAnalysisResult, type ScopeCLIOptions, createCiCommand, createDoctorCommand, createInitCommand, createInstrumentCommand, createManifestCommand, createProgram, createTokensCommand, createTokensExportCommand, formatCiReport, isTTY, matchGlob, resolveTokenFilePath, runCi, runInit };
574
+ export { CI_EXIT, type CausalityLink, type CiCheckName, type CiCheckResult, type CiExitCode, type CiOptions, type CiResult, type ComponentHookProfile, type HookHeuristicFlag, type HookProfile, type HooksProfilingResult, type InitOptions, type InitResult, type InteractionProfile, type InteractionStep$1 as InteractionStep, type InteractionTiming, type LayoutShiftData, type ListRow, type ProfileHeuristicFlag, type QueryRow, type ReactScopeConfig, type RenderEvent, type RenderTrigger, type RendersAnalysisResult, type ScopeCLIOptions, createCiCommand, createDoctorCommand, createGetSkillCommand, createInitCommand, createInstrumentCommand, createManifestCommand, createProgram, createTokensCommand, createTokensExportCommand, formatCiReport, isTTY, matchGlob, resolveTokenFilePath, runCi, runInit };
package/dist/index.d.ts CHANGED
@@ -125,6 +125,22 @@ declare function createCiCommand(): Command;
125
125
 
126
126
  declare function createDoctorCommand(): Command;
127
127
 
128
+ /**
129
+ * get-skill-command.ts
130
+ *
131
+ * `scope get-skill` — print the Scope SKILL.md to stdout so an agent can
132
+ * load it directly into its context without knowing the file path.
133
+ *
134
+ * The skill content is embedded at build time by scripts/generate-skill-content.mjs
135
+ * so this works correctly in any install context (global npm, local node_modules, etc.)
136
+ *
137
+ * Usage:
138
+ * scope get-skill # print raw markdown to stdout
139
+ * scope get-skill --json # wrap in JSON { "skill": "<content>" }
140
+ */
141
+
142
+ declare function createGetSkillCommand(): Command;
143
+
128
144
  /**
129
145
  * @agent-scope/cli — `scope init` command implementation
130
146
  *
@@ -184,6 +200,9 @@ interface ReactScopeConfig {
184
200
  failOnConsoleErrors: boolean;
185
201
  baselinePath: string;
186
202
  };
203
+ icons?: {
204
+ patterns: string[];
205
+ };
187
206
  }
188
207
  interface InitOptions {
189
208
  /** Accept all defaults without prompting. */
@@ -303,7 +322,7 @@ interface HooksProfilingResult {
303
322
  *
304
323
  * - totalRenders — total commit count during the interaction window
305
324
  * - uniqueComponents — distinct component names that re-rendered
306
- * - wastedRenders — re-renders where output was identical (heuristic)
325
+ * - wastedRenders — deprecated heuristic, always null in JSON output
307
326
  * - timing.js — JS execution time (ms) measured via Performance API
308
327
  * - timing.layout — Layout/reflow time (ms) measured via PerformanceObserver
309
328
  * - timing.paint — Paint time (ms) measured via PerformanceObserver
@@ -352,8 +371,14 @@ interface InteractionProfile {
352
371
  totalRenders: number;
353
372
  /** Number of distinct component names that re-rendered during the window. */
354
373
  uniqueComponents: number;
355
- /** Estimated number of "wasted" renders (components that re-rendered without output change). */
356
- wastedRenders: number;
374
+ /** Deprecated heuristic field retained for compatibility; always null because it is not directly measured. */
375
+ wastedRenders: number | null;
376
+ /** Explicit machine-readable note that wasted render counts are not directly measured. */
377
+ wastedRendersHeuristic: {
378
+ measured: false;
379
+ value: null;
380
+ note: string;
381
+ };
357
382
  /** Timing breakdown in ms. */
358
383
  timing: InteractionTiming;
359
384
  /** Layout shift metrics. */
@@ -465,6 +490,8 @@ interface ListRow {
465
490
  complexityClass: ComplexityClass;
466
491
  hookCount: number;
467
492
  contextCount: number;
493
+ collection?: string;
494
+ internal: boolean;
468
495
  }
469
496
  interface QueryRow {
470
497
  name: string;
@@ -472,6 +499,8 @@ interface QueryRow {
472
499
  complexityClass: ComplexityClass;
473
500
  hooks: string;
474
501
  contexts: string;
502
+ collection?: string;
503
+ internal: boolean;
475
504
  }
476
505
  /**
477
506
  * Minimal glob matcher supporting `*` (any chars except `/`) and `**` (any chars).
@@ -542,4 +571,4 @@ declare function resolveTokenFilePath(fileFlag?: string): string;
542
571
  */
543
572
  declare function createTokensExportCommand(): Command;
544
573
 
545
- export { CI_EXIT, type CausalityLink, type CiCheckName, type CiCheckResult, type CiExitCode, type CiOptions, type CiResult, type ComponentHookProfile, type HookHeuristicFlag, type HookProfile, type HooksProfilingResult, type InitOptions, type InitResult, type InteractionProfile, type InteractionStep$1 as InteractionStep, type InteractionTiming, type LayoutShiftData, type ListRow, type ProfileHeuristicFlag, type QueryRow, type ReactScopeConfig, type RenderEvent, type RenderTrigger, type RendersAnalysisResult, type ScopeCLIOptions, createCiCommand, createDoctorCommand, createInitCommand, createInstrumentCommand, createManifestCommand, createProgram, createTokensCommand, createTokensExportCommand, formatCiReport, isTTY, matchGlob, resolveTokenFilePath, runCi, runInit };
574
+ export { CI_EXIT, type CausalityLink, type CiCheckName, type CiCheckResult, type CiExitCode, type CiOptions, type CiResult, type ComponentHookProfile, type HookHeuristicFlag, type HookProfile, type HooksProfilingResult, type InitOptions, type InitResult, type InteractionProfile, type InteractionStep$1 as InteractionStep, type InteractionTiming, type LayoutShiftData, type ListRow, type ProfileHeuristicFlag, type QueryRow, type ReactScopeConfig, type RenderEvent, type RenderTrigger, type RendersAnalysisResult, type ScopeCLIOptions, createCiCommand, createDoctorCommand, createGetSkillCommand, createInitCommand, createInstrumentCommand, createManifestCommand, createProgram, createTokensCommand, createTokensExportCommand, formatCiReport, isTTY, matchGlob, resolveTokenFilePath, runCi, runInit };