@appilots/cli 0.11.3 → 0.13.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/dist/index.d.mts CHANGED
@@ -1,3 +1,4 @@
1
+ import { SourceControlCandidate } from './types/index.js';
1
2
  import * as t from '@babel/types';
2
3
 
3
4
  /**
@@ -18,6 +19,7 @@ interface ScreenDescriptor {
18
19
  filePath: string;
19
20
  title?: string;
20
21
  description?: string;
22
+ controlCandidates?: SourceControlCandidate[];
21
23
  components: ComponentDescriptor[];
22
24
  forms: FormDescriptor[];
23
25
  actions: ActionDescriptor[];
@@ -367,6 +369,7 @@ declare class ScreenAnalyzer {
367
369
  private routeTargetFiles;
368
370
  /** §D: Count of screens filtered out in strict mode (available after analyze()) */
369
371
  screensFilteredOut: number;
372
+ controlEvidenceFiles: Record<string, SourceControlCandidate[]>;
370
373
  constructor(config: AnalyzerConfig, options?: {
371
374
  strictScreens?: boolean;
372
375
  screenPatterns?: string[];
@@ -813,6 +816,7 @@ interface PlatformAnalyzerOptions {
813
816
  navigationExclude?: string[];
814
817
  }
815
818
  interface PlatformAnalyzerResult {
819
+ controlEvidenceFiles?: Record<string, SourceControlCandidate[]>;
816
820
  screens: ScreenDescriptor[];
817
821
  navigation: NavigationGraph;
818
822
  /** Number of source files matched by glob (before screen filtering). */
@@ -1330,6 +1334,14 @@ interface AppilotsConfig {
1330
1334
  manifestPath?: string;
1331
1335
  /** `appilots eval` settings — see docs: Testing your agent between releases. */
1332
1336
  eval?: EvalConfig;
1337
+ /** Knowledge base / RAG configuration — see docs: Knowledge base. */
1338
+ knowledge?: KnowledgeConfig;
1339
+ }
1340
+ interface KnowledgeConfig {
1341
+ /** Glob patterns for documentation files to index (e.g. "docs/*.md"). */
1342
+ sources?: string[];
1343
+ /** Glob patterns to exclude from indexing. */
1344
+ exclude?: string[];
1333
1345
  }
1334
1346
  interface EvalConfig {
1335
1347
  /** Directory of `*.json` scenario files. Default: `<outputDir>/scenarios`. */
@@ -1519,6 +1531,21 @@ interface StatusResult {
1519
1531
  };
1520
1532
  error?: string;
1521
1533
  }
1534
+ /**
1535
+ * Result from a knowledge sync operation
1536
+ */
1537
+ interface KnowledgeSyncResult {
1538
+ success: boolean;
1539
+ uploaded: number;
1540
+ skipped: number;
1541
+ errors: number;
1542
+ error?: string;
1543
+ details?: Array<{
1544
+ filename: string;
1545
+ status: 'uploaded' | 'skipped' | 'error';
1546
+ error?: string;
1547
+ }>;
1548
+ }
1522
1549
  /**
1523
1550
  * Appilots API client configuration
1524
1551
  */
@@ -1581,6 +1608,18 @@ declare class AppilotsAPIClient {
1581
1608
  * EVAL_MAX_SCENARIOS_PER_RUN (currently 20) as a cost guard.
1582
1609
  */
1583
1610
  evalRun(scenarios: EvalScenarioRequest[]): Promise<EvalRunResult>;
1611
+ /**
1612
+ * Syncs knowledge documents with the Appilots backend.
1613
+ *
1614
+ * @param documents Array of documents to sync (filename, base64 content, mimeType, checksum)
1615
+ * @returns KnowledgeSyncResult with counts of uploaded, skipped, and errored docs
1616
+ */
1617
+ knowledgeSync(documents: Array<{
1618
+ filename: string;
1619
+ content: string;
1620
+ mimeType: string;
1621
+ checksum: string;
1622
+ }>): Promise<KnowledgeSyncResult>;
1584
1623
  /**
1585
1624
  * Checks if the Appilots API server is healthy
1586
1625
  *
@@ -1596,6 +1635,6 @@ declare class AppilotsAPIClient {
1596
1635
  * banner. Kept identical to package.json by the release flow;
1597
1636
  * `version.test.ts` fails if the two ever disagree.
1598
1637
  */
1599
- declare const CLI_VERSION = "0.11.3";
1638
+ declare const CLI_VERSION = "0.13.0";
1600
1639
 
1601
1640
  export { type ActionDescriptor, type AnalyzerConfig, AppilotsAPIClient, type AppilotsConfig, type AppilotsManifest, CLI_VERSION, ComponentAnalyzer, type ComponentDescriptor, DEFAULT_MANIFEST_FILENAME, DEFAULT_WEB_SCREEN_PATTERNS, type EnvOverrides, type FlowDescriptor, type FlowStepDescriptor, FormAnalyzer, type FormDescriptor, type FormFieldDescriptor, GenericPlatformAnalyzer, type LoadManifestResult, type LocatorDescriptor, type MCPDocument, MCPGenerator, type MCPGeneratorConfig, type MCPGeneratorOptions, type MCPOutput, type MetadataLintWarning, NavigationAnalyzer, type NavigationGraph, type NavigationNode, type NavigatorDescriptor, type ParamDescriptor, type PlatformAnalyzer, type PlatformAnalyzerOptions, type PlatformAnalyzerResult, ReactNativePlatformAnalyzer, ReactWebPlatformAnalyzer, type ScreenAgentHints, ScreenAnalyzer, type ScreenDescriptor, type SignalDescriptor, type StatusResult, type SyncResult, type TargetDescriptor, type WaitPolicyDescriptor, WebNavigationAnalyzer, type WebNavigationResult, type WebRoute, WebScreenAnalyzer, formatMetadataWarnings, getConfigPath, getEnvOverrides, lintActionMetadata, loadConfig, loadManifest, mergeManifestNavigation, mergeManifestScreens, resolvePathToScreen, saveConfig, screenNameFromPath, validateConfig };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { SourceControlCandidate } from './types/index.js';
1
2
  import * as t from '@babel/types';
2
3
 
3
4
  /**
@@ -18,6 +19,7 @@ interface ScreenDescriptor {
18
19
  filePath: string;
19
20
  title?: string;
20
21
  description?: string;
22
+ controlCandidates?: SourceControlCandidate[];
21
23
  components: ComponentDescriptor[];
22
24
  forms: FormDescriptor[];
23
25
  actions: ActionDescriptor[];
@@ -367,6 +369,7 @@ declare class ScreenAnalyzer {
367
369
  private routeTargetFiles;
368
370
  /** §D: Count of screens filtered out in strict mode (available after analyze()) */
369
371
  screensFilteredOut: number;
372
+ controlEvidenceFiles: Record<string, SourceControlCandidate[]>;
370
373
  constructor(config: AnalyzerConfig, options?: {
371
374
  strictScreens?: boolean;
372
375
  screenPatterns?: string[];
@@ -813,6 +816,7 @@ interface PlatformAnalyzerOptions {
813
816
  navigationExclude?: string[];
814
817
  }
815
818
  interface PlatformAnalyzerResult {
819
+ controlEvidenceFiles?: Record<string, SourceControlCandidate[]>;
816
820
  screens: ScreenDescriptor[];
817
821
  navigation: NavigationGraph;
818
822
  /** Number of source files matched by glob (before screen filtering). */
@@ -1330,6 +1334,14 @@ interface AppilotsConfig {
1330
1334
  manifestPath?: string;
1331
1335
  /** `appilots eval` settings — see docs: Testing your agent between releases. */
1332
1336
  eval?: EvalConfig;
1337
+ /** Knowledge base / RAG configuration — see docs: Knowledge base. */
1338
+ knowledge?: KnowledgeConfig;
1339
+ }
1340
+ interface KnowledgeConfig {
1341
+ /** Glob patterns for documentation files to index (e.g. "docs/*.md"). */
1342
+ sources?: string[];
1343
+ /** Glob patterns to exclude from indexing. */
1344
+ exclude?: string[];
1333
1345
  }
1334
1346
  interface EvalConfig {
1335
1347
  /** Directory of `*.json` scenario files. Default: `<outputDir>/scenarios`. */
@@ -1519,6 +1531,21 @@ interface StatusResult {
1519
1531
  };
1520
1532
  error?: string;
1521
1533
  }
1534
+ /**
1535
+ * Result from a knowledge sync operation
1536
+ */
1537
+ interface KnowledgeSyncResult {
1538
+ success: boolean;
1539
+ uploaded: number;
1540
+ skipped: number;
1541
+ errors: number;
1542
+ error?: string;
1543
+ details?: Array<{
1544
+ filename: string;
1545
+ status: 'uploaded' | 'skipped' | 'error';
1546
+ error?: string;
1547
+ }>;
1548
+ }
1522
1549
  /**
1523
1550
  * Appilots API client configuration
1524
1551
  */
@@ -1581,6 +1608,18 @@ declare class AppilotsAPIClient {
1581
1608
  * EVAL_MAX_SCENARIOS_PER_RUN (currently 20) as a cost guard.
1582
1609
  */
1583
1610
  evalRun(scenarios: EvalScenarioRequest[]): Promise<EvalRunResult>;
1611
+ /**
1612
+ * Syncs knowledge documents with the Appilots backend.
1613
+ *
1614
+ * @param documents Array of documents to sync (filename, base64 content, mimeType, checksum)
1615
+ * @returns KnowledgeSyncResult with counts of uploaded, skipped, and errored docs
1616
+ */
1617
+ knowledgeSync(documents: Array<{
1618
+ filename: string;
1619
+ content: string;
1620
+ mimeType: string;
1621
+ checksum: string;
1622
+ }>): Promise<KnowledgeSyncResult>;
1584
1623
  /**
1585
1624
  * Checks if the Appilots API server is healthy
1586
1625
  *
@@ -1596,6 +1635,6 @@ declare class AppilotsAPIClient {
1596
1635
  * banner. Kept identical to package.json by the release flow;
1597
1636
  * `version.test.ts` fails if the two ever disagree.
1598
1637
  */
1599
- declare const CLI_VERSION = "0.11.3";
1638
+ declare const CLI_VERSION = "0.13.0";
1600
1639
 
1601
1640
  export { type ActionDescriptor, type AnalyzerConfig, AppilotsAPIClient, type AppilotsConfig, type AppilotsManifest, CLI_VERSION, ComponentAnalyzer, type ComponentDescriptor, DEFAULT_MANIFEST_FILENAME, DEFAULT_WEB_SCREEN_PATTERNS, type EnvOverrides, type FlowDescriptor, type FlowStepDescriptor, FormAnalyzer, type FormDescriptor, type FormFieldDescriptor, GenericPlatformAnalyzer, type LoadManifestResult, type LocatorDescriptor, type MCPDocument, MCPGenerator, type MCPGeneratorConfig, type MCPGeneratorOptions, type MCPOutput, type MetadataLintWarning, NavigationAnalyzer, type NavigationGraph, type NavigationNode, type NavigatorDescriptor, type ParamDescriptor, type PlatformAnalyzer, type PlatformAnalyzerOptions, type PlatformAnalyzerResult, ReactNativePlatformAnalyzer, ReactWebPlatformAnalyzer, type ScreenAgentHints, ScreenAnalyzer, type ScreenDescriptor, type SignalDescriptor, type StatusResult, type SyncResult, type TargetDescriptor, type WaitPolicyDescriptor, WebNavigationAnalyzer, type WebNavigationResult, type WebRoute, WebScreenAnalyzer, formatMetadataWarnings, getConfigPath, getEnvOverrides, lintActionMetadata, loadConfig, loadManifest, mergeManifestNavigation, mergeManifestScreens, resolvePathToScreen, saveConfig, screenNameFromPath, validateConfig };