@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/cli/index.js CHANGED
@@ -31,7 +31,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
31
31
  var import_commander9 = require("commander");
32
32
 
33
33
  // src/version.ts
34
- var CLI_VERSION = "0.13.0";
34
+ var CLI_VERSION = "0.14.0";
35
35
 
36
36
  // src/config/index.ts
37
37
  var import_fs = require("fs");
@@ -1830,6 +1830,9 @@ function sanitisePermissionsObject(obj) {
1830
1830
  if (typeof obj.isPii === "boolean") {
1831
1831
  out.isPii = obj.isPii;
1832
1832
  }
1833
+ if (typeof obj.assessment === "boolean") {
1834
+ out.assessment = obj.assessment;
1835
+ }
1833
1836
  if (Array.isArray(obj.blockedActions)) {
1834
1837
  const ids = obj.blockedActions.filter((x) => typeof x === "string" && !!x);
1835
1838
  if (ids.length > 0) out.blockedActions = ids;
@@ -10712,7 +10715,7 @@ function isSafeImageUrl(value) {
10712
10715
  // ../shared/dist/chunk-KUMPS6RH.mjs
10713
10716
  var SUPPORTED_APPILOTS_LOCALES = ["pt-BR", "en", "es", "fr"];
10714
10717
 
10715
- // ../shared/dist/chunk-2GTRKNPJ.mjs
10718
+ // ../shared/dist/chunk-4RYPNBBY.mjs
10716
10719
  var symbols = external_exports.array(external_exports.string().max(240)).max(12);
10717
10720
  var controlEvidenceSchema = external_exports.object({
10718
10721
  version: external_exports.literal(1),
@@ -10929,7 +10932,9 @@ var screenPermissionDescriptorSchema = external_exports.object({
10929
10932
  agentAccess: external_exports.enum(["read", "write", "none"]).optional(),
10930
10933
  requiresConfirmation: external_exports.boolean().optional(),
10931
10934
  blockedActions: external_exports.array(external_exports.string()).optional(),
10932
- isPii: external_exports.boolean().optional()
10935
+ isPii: external_exports.boolean().optional(),
10936
+ /** Graded assessment — see `screenPermissionSchema.assessment`. */
10937
+ assessment: external_exports.boolean().optional()
10933
10938
  }).passthrough();
10934
10939
  var screenDescriptorSchema = external_exports.object({
10935
10940
  name: external_exports.string(),
@@ -11388,6 +11393,12 @@ var agentContextSchema = external_exports.object({
11388
11393
  missionId: boundedString(160).optional(),
11389
11394
  /** Preferred supported device language, reported by the SDK independently of map/UI labels. */
11390
11395
  deviceLocale: external_exports.enum(SUPPORTED_APPILOTS_LOCALES).optional(),
11396
+ /**
11397
+ * Per-session plain-language override (short sentences, no jargon,
11398
+ * numbered steps). Absent → the project's `plainLanguage` setting.
11399
+ * Changes how the reply is WORDED only — see `PLAIN_LANGUAGE_PROMPT`.
11400
+ */
11401
+ plainLanguage: external_exports.boolean().optional(),
11391
11402
  /**
11392
11403
  * Client platform this observation was captured on. Optional and
11393
11404
  * additive (see `clientPlatformSchema`) — absent means
@@ -11710,7 +11721,14 @@ var screenPermissionSchema = external_exports.object({
11710
11721
  agentAccess: agentAccessLevelSchema.optional(),
11711
11722
  requiresConfirmation: external_exports.boolean().optional(),
11712
11723
  blockedActions: external_exports.array(external_exports.string().min(1)).optional(),
11713
- isPii: external_exports.boolean().optional()
11724
+ isPii: external_exports.boolean().optional(),
11725
+ /**
11726
+ * Graded assessment (exam, quiz, graded activity). The agent may
11727
+ * explain the screen and navigate away, never write: every action
11728
+ * except navigate/scroll is blocked server-side, and the model is told
11729
+ * to refuse up front instead of trying. Wins over `agentAccess: 'write'`.
11730
+ */
11731
+ assessment: external_exports.boolean().optional()
11714
11732
  }).strict();
11715
11733
  var projectPermissionsSchema = external_exports.object({
11716
11734
  agentCanWrite: external_exports.boolean(),
@@ -11718,6 +11736,10 @@ var projectPermissionsSchema = external_exports.object({
11718
11736
  confirmDestructive: external_exports.boolean(),
11719
11737
  /**
11720
11738
  * Map of screenName → override. Keys must be non-empty strings.
11739
+ * A key containing `*` or starting with `/` is a PATTERN, matched
11740
+ * case-insensitively against the screen name and the navigation path
11741
+ * (`*Quiz*`; a path key uses `*` per segment, see docs/permissions).
11742
+ * An exact key beats patterns.
11721
11743
  * Limited to 200 entries to keep the JSON column small and editable
11722
11744
  * in the dashboard table view.
11723
11745
  */
@@ -11815,6 +11837,13 @@ var imageSourceField = external_exports.string().max(500).refine(isSafeImageUrl,
11815
11837
  var projectPersonalizationSchema = external_exports.object({
11816
11838
  /** Tone / persona instructions appended to the system prompt. */
11817
11839
  personaPrompt: external_exports.string().max(2048).nullable(),
11840
+ /**
11841
+ * Accessibility: reply in plain language (short sentences, everyday
11842
+ * words, numbered steps, one question at a time). Server-side only,
11843
+ * like `personaPrompt`; a session can override it via
11844
+ * `context.plainLanguage`.
11845
+ */
11846
+ plainLanguage: external_exports.boolean(),
11818
11847
  /** Display name in the chat header (e.g. "Aria"). */
11819
11848
  assistantName: external_exports.string().max(60).nullable(),
11820
11849
  /** URL or remote asset id for the avatar shown next to assistant turns. */
@@ -11838,6 +11867,7 @@ var projectPersonalizationSchema = external_exports.object({
11838
11867
  });
11839
11868
  var updateProjectPersonalizationSchema = external_exports.object({
11840
11869
  personaPrompt: external_exports.string().max(2048).nullable().optional(),
11870
+ plainLanguage: external_exports.boolean().optional(),
11841
11871
  assistantName: external_exports.string().max(60).nullable().optional(),
11842
11872
  assistantAvatar: imageSourceField.nullable().optional(),
11843
11873
  emptyStateIcon: imageSourceField.nullable().optional(),
@@ -11995,6 +12025,8 @@ var sandboxRunRequestSchema = external_exports.object({
11995
12025
  * the dev doesn't want their tokens metered.
11996
12026
  */
11997
12027
  silent: external_exports.boolean().optional(),
12028
+ /** Run with the plain-language reply style on/off, overriding the project. */
12029
+ plainLanguage: external_exports.boolean().optional(),
11998
12030
  /**
11999
12031
  * Prior turns of the conversation, in order, that precede `prompt`.
12000
12032
  * Lets a driver run the agent loop hop-by-hop headlessly (the multi-