@appilots/cli 0.13.0 → 0.14.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
@@ -60,6 +60,8 @@ interface ScreenPermissionDescriptor {
60
60
  requiresConfirmation?: boolean;
61
61
  blockedActions?: string[];
62
62
  isPii?: boolean;
63
+ /** Graded assessment: the relay blocks every write on this screen. */
64
+ assessment?: boolean;
63
65
  }
64
66
  /**
65
67
  * O que a varredura alcançou — para o relatório do CLI, não para o agente.
@@ -1635,6 +1637,6 @@ declare class AppilotsAPIClient {
1635
1637
  * banner. Kept identical to package.json by the release flow;
1636
1638
  * `version.test.ts` fails if the two ever disagree.
1637
1639
  */
1638
- declare const CLI_VERSION = "0.13.0";
1640
+ declare const CLI_VERSION = "0.14.0";
1639
1641
 
1640
1642
  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
@@ -60,6 +60,8 @@ interface ScreenPermissionDescriptor {
60
60
  requiresConfirmation?: boolean;
61
61
  blockedActions?: string[];
62
62
  isPii?: boolean;
63
+ /** Graded assessment: the relay blocks every write on this screen. */
64
+ assessment?: boolean;
63
65
  }
64
66
  /**
65
67
  * O que a varredura alcançou — para o relatório do CLI, não para o agente.
@@ -1635,6 +1637,6 @@ declare class AppilotsAPIClient {
1635
1637
  * banner. Kept identical to package.json by the release flow;
1636
1638
  * `version.test.ts` fails if the two ever disagree.
1637
1639
  */
1638
- declare const CLI_VERSION = "0.13.0";
1640
+ declare const CLI_VERSION = "0.14.0";
1639
1641
 
1640
1642
  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.js CHANGED
@@ -754,6 +754,9 @@ function sanitisePermissionsObject(obj) {
754
754
  if (typeof obj.isPii === "boolean") {
755
755
  out.isPii = obj.isPii;
756
756
  }
757
+ if (typeof obj.assessment === "boolean") {
758
+ out.assessment = obj.assessment;
759
+ }
757
760
  if (Array.isArray(obj.blockedActions)) {
758
761
  const ids = obj.blockedActions.filter((x) => typeof x === "string" && !!x);
759
762
  if (ids.length > 0) out.blockedActions = ids;
@@ -9582,7 +9585,7 @@ function isSafeImageUrl(value) {
9582
9585
  // ../shared/dist/chunk-KUMPS6RH.mjs
9583
9586
  var SUPPORTED_APPILOTS_LOCALES = ["pt-BR", "en", "es", "fr"];
9584
9587
 
9585
- // ../shared/dist/chunk-2GTRKNPJ.mjs
9588
+ // ../shared/dist/chunk-4RYPNBBY.mjs
9586
9589
  var symbols = external_exports.array(external_exports.string().max(240)).max(12);
9587
9590
  var controlEvidenceSchema = external_exports.object({
9588
9591
  version: external_exports.literal(1),
@@ -9799,7 +9802,9 @@ var screenPermissionDescriptorSchema = external_exports.object({
9799
9802
  agentAccess: external_exports.enum(["read", "write", "none"]).optional(),
9800
9803
  requiresConfirmation: external_exports.boolean().optional(),
9801
9804
  blockedActions: external_exports.array(external_exports.string()).optional(),
9802
- isPii: external_exports.boolean().optional()
9805
+ isPii: external_exports.boolean().optional(),
9806
+ /** Graded assessment — see `screenPermissionSchema.assessment`. */
9807
+ assessment: external_exports.boolean().optional()
9803
9808
  }).passthrough();
9804
9809
  var screenDescriptorSchema = external_exports.object({
9805
9810
  name: external_exports.string(),
@@ -10258,6 +10263,12 @@ var agentContextSchema = external_exports.object({
10258
10263
  missionId: boundedString(160).optional(),
10259
10264
  /** Preferred supported device language, reported by the SDK independently of map/UI labels. */
10260
10265
  deviceLocale: external_exports.enum(SUPPORTED_APPILOTS_LOCALES).optional(),
10266
+ /**
10267
+ * Per-session plain-language override (short sentences, no jargon,
10268
+ * numbered steps). Absent → the project's `plainLanguage` setting.
10269
+ * Changes how the reply is WORDED only — see `PLAIN_LANGUAGE_PROMPT`.
10270
+ */
10271
+ plainLanguage: external_exports.boolean().optional(),
10261
10272
  /**
10262
10273
  * Client platform this observation was captured on. Optional and
10263
10274
  * additive (see `clientPlatformSchema`) — absent means
@@ -10580,7 +10591,14 @@ var screenPermissionSchema = external_exports.object({
10580
10591
  agentAccess: agentAccessLevelSchema.optional(),
10581
10592
  requiresConfirmation: external_exports.boolean().optional(),
10582
10593
  blockedActions: external_exports.array(external_exports.string().min(1)).optional(),
10583
- isPii: external_exports.boolean().optional()
10594
+ isPii: external_exports.boolean().optional(),
10595
+ /**
10596
+ * Graded assessment (exam, quiz, graded activity). The agent may
10597
+ * explain the screen and navigate away, never write: every action
10598
+ * except navigate/scroll is blocked server-side, and the model is told
10599
+ * to refuse up front instead of trying. Wins over `agentAccess: 'write'`.
10600
+ */
10601
+ assessment: external_exports.boolean().optional()
10584
10602
  }).strict();
10585
10603
  external_exports.object({
10586
10604
  agentCanWrite: external_exports.boolean(),
@@ -10588,6 +10606,10 @@ external_exports.object({
10588
10606
  confirmDestructive: external_exports.boolean(),
10589
10607
  /**
10590
10608
  * Map of screenName → override. Keys must be non-empty strings.
10609
+ * A key containing `*` or starting with `/` is a PATTERN, matched
10610
+ * case-insensitively against the screen name and the navigation path
10611
+ * (`*Quiz*`; a path key uses `*` per segment, see docs/permissions).
10612
+ * An exact key beats patterns.
10591
10613
  * Limited to 200 entries to keep the JSON column small and editable
10592
10614
  * in the dashboard table view.
10593
10615
  */
@@ -10685,6 +10707,13 @@ var imageSourceField = external_exports.string().max(500).refine(isSafeImageUrl,
10685
10707
  external_exports.object({
10686
10708
  /** Tone / persona instructions appended to the system prompt. */
10687
10709
  personaPrompt: external_exports.string().max(2048).nullable(),
10710
+ /**
10711
+ * Accessibility: reply in plain language (short sentences, everyday
10712
+ * words, numbered steps, one question at a time). Server-side only,
10713
+ * like `personaPrompt`; a session can override it via
10714
+ * `context.plainLanguage`.
10715
+ */
10716
+ plainLanguage: external_exports.boolean(),
10688
10717
  /** Display name in the chat header (e.g. "Aria"). */
10689
10718
  assistantName: external_exports.string().max(60).nullable(),
10690
10719
  /** URL or remote asset id for the avatar shown next to assistant turns. */
@@ -10708,6 +10737,7 @@ external_exports.object({
10708
10737
  });
10709
10738
  external_exports.object({
10710
10739
  personaPrompt: external_exports.string().max(2048).nullable().optional(),
10740
+ plainLanguage: external_exports.boolean().optional(),
10711
10741
  assistantName: external_exports.string().max(60).nullable().optional(),
10712
10742
  assistantAvatar: imageSourceField.nullable().optional(),
10713
10743
  emptyStateIcon: imageSourceField.nullable().optional(),
@@ -10865,6 +10895,8 @@ external_exports.object({
10865
10895
  * the dev doesn't want their tokens metered.
10866
10896
  */
10867
10897
  silent: external_exports.boolean().optional(),
10898
+ /** Run with the plain-language reply style on/off, overriding the project. */
10899
+ plainLanguage: external_exports.boolean().optional(),
10868
10900
  /**
10869
10901
  * Prior turns of the conversation, in order, that precede `prompt`.
10870
10902
  * Lets a driver run the agent loop hop-by-hop headlessly (the multi-
@@ -12325,7 +12357,7 @@ var AppilotsAPIClient = class {
12325
12357
  };
12326
12358
 
12327
12359
  // src/version.ts
12328
- var CLI_VERSION = "0.13.0";
12360
+ var CLI_VERSION = "0.14.0";
12329
12361
 
12330
12362
  exports.AppilotsAPIClient = AppilotsAPIClient;
12331
12363
  exports.CLI_VERSION = CLI_VERSION;