ente-cli 0.4.144 → 0.4.145

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/SKILL.md CHANGED
@@ -1094,7 +1094,7 @@ Activity field definitions and layouts:
1094
1094
  - `ente activity fields get --space Personal --activity-type task --json` reads definitions, ordered `fieldIds`, `hiddenFieldIds`, and `canManage`.
1095
1095
  - `ente activity fields configure --space Personal --input '{"command":"create","label":"next","type":"text"}'` creates an empty plain-text activity definition. Use the same command with labels `gmail_thread` and `whatsapp_chat` to create those fields.
1096
1096
  - `ente activity fields layout --space Personal --activity-type task --field next --field gmail_thread --field whatsapp_chat --show-in-lists next` makes next first; omitted definitions follow. Repeat `--hide <label-or-id>` to hide fields without removing values.
1097
- - `configure --input` accepts exact REST `create`, `setLayout` and reviewed `copyLayout` commands. `get --input` accepts `get` and `previewCopy`. Copy uses exact source/target fingerprints; review again after any change, and pass `confirmOverwrite: true` for an existing destination. Type conflicts are returned and skipped.
1097
+ - `configure --input` accepts exact REST `create`, `setCardVisibility`, `setLayout` and reviewed `copyLayout` commands. `get --input` accepts `get` and `previewCopy`. Copy uses exact source/target fingerprints; review again after any change, and pass `confirmOverwrite: true` for an existing destination. Type conflicts are returned and skipped.
1098
1098
  - These are space configuration APIs: generic read/write scopes apply, writes also require owner/admin membership (Personal owner for Personal). Task-only sync keys and `agent:write` alone do not authorize them. Agent grants and live key policy still cap the space. Never widen permissions to make a command pass.
1099
1099
 
1100
1100
  `setLayout` requires `fieldIds`, `hiddenFieldIds` and `listFieldIds`. Repeat
@@ -1103,8 +1103,16 @@ follows layout order and is independent of editor visibility. Authorized task
1103
1103
  reads include optional `listFields: [{fieldId,label,type,values:string[]}]`.
1104
1104
  `next` is only a convention; it supersedes the earlier Personal waits_on setup.
1105
1105
 
1106
+ Task card visibility: `activity fields configure --space Personal --input
1107
+ '{"command":"setCardVisibility","spaceId":"<space-id>","activityType":"task","fieldId":"<field-id>","shown":true}'`
1108
+ changes only list visibility, preserving editor pins, hidden fields and line mode.
1109
+ Listed fields need not be pinned. `layout --show-in-lists` no longer pins them;
1110
+ use `--field` explicitly to set editor order. Listed unpinned fields follow
1111
+ pinned fields in list order. The command requires current space owner/admin access.
1112
+
1113
+
1106
1114
  Activity layouts order and hide existing values; they never create empty editor
1107
- rows. Definitions selected for list previews lead add-field suggestions.
1115
+ rows. Card visibility alone never pins a definition. Definitions selected for list previews lead add-field suggestions.
1108
1116
  Label and value pairs display inline by default, including full-screen and
1109
1117
  Personal tasks. Prose wraps and fades; identifiers and links stay on one line.
1110
1118
  The layout editor offers “One field per line” per space and activity type.
package/dist/cli.mjs CHANGED
@@ -28751,7 +28751,7 @@ function parseOperationFieldPairs(operation, pairs) {
28751
28751
  }
28752
28752
 
28753
28753
  // ente/version.ts
28754
- var VERSION = "0.4.144";
28754
+ var VERSION = "0.4.145";
28755
28755
 
28756
28756
  // ente/branding.ts
28757
28757
  var NPM_REGISTRY = "https://registry.npmjs.org";
@@ -41595,6 +41595,7 @@ var activityFieldReadInput = v2.union(
41595
41595
  v2.object({ command: v2.literal("previewCopy"), ...copySelector })
41596
41596
  );
41597
41597
  var activityFieldConfigureInput = v2.union(
41598
+ v2.object({ command: v2.literal("setCardVisibility"), spaceId: v2.string(), activityType: v2.literal("task"), fieldId: v2.string(), shown: v2.boolean() }),
41598
41599
  v2.object({ command: v2.literal("create"), spaceId: v2.string(), label: v2.string(), type: activityFieldTypeValidator, options: v2.optional(v2.array(activityFieldOptionValidator)) }),
41599
41600
  v2.object({ command: v2.literal("setLayout"), ...selector, fieldIds: v2.array(v2.string()), hiddenFieldIds: v2.array(v2.string()), listFieldIds: v2.array(v2.string()), perFieldLine: v2.optional(v2.boolean()) }),
41600
41601
  v2.object({ command: v2.literal("copyLayout"), ...copySelector, sourceFingerprint: v2.string(), targetFingerprint: v2.string(), confirmOverwrite: v2.boolean() })
@@ -41606,6 +41607,7 @@ var activityFieldReadResult = v2.union(
41606
41607
  v2.object({ command: v2.literal("previewCopy"), sourceFingerprint: v2.string(), targetFingerprint: v2.string(), requiresConfirmation: v2.boolean(), conflicts: v2.array(conflict) })
41607
41608
  );
41608
41609
  var activityFieldConfigureResult = v2.union(
41610
+ v2.object({ command: v2.literal("setCardVisibility") }),
41609
41611
  v2.object({ command: v2.literal("create"), fieldId: v2.id("fields") }),
41610
41612
  v2.object({ command: v2.literal("setLayout") }),
41611
41613
  v2.object({ command: v2.literal("copyLayout"), copied: v2.number(), conflicts: v2.array(conflict) })
@@ -41623,7 +41625,7 @@ function definition3(name4) {
41623
41625
  aliases: [...operationAliases(activityFieldAliases, name4), { name: read ? "ente_activity_fields_get" : "ente_activity_fields_configure", profile: "mounted-view" }],
41624
41626
  actor: "agent",
41625
41627
  title: read ? "Read activity fields and layouts" : "Configure activity fields and layouts",
41626
- description: read ? "Read space activity definitions and the ordered field layout for one activity type, or preview copying a layout. Hidden fields retain their values. Requires generic read scope; task-only credentials are excluded." : "Create an empty typed activity field, replace a per-space/activity-type field layout (fieldIds order; hiddenFieldIds controls editor visibility; listFieldIds enables list previews in fieldIds order; perFieldLine opts into one field per line, default false), or copy a reviewed layout with exact source/target fingerprints. Hidden fields retain values and stay readable by API. Requires generic write scope and space owner/admin; Personal requires its owner. Task-only credentials are excluded. Copy fails if either reviewed layout changed; confirmOverwrite is required for an existing destination.",
41628
+ description: read ? "Get activity definitions/layout or preview copy. Generic read scope and membership required; excludes task-only keys." : "Owner/admin with generic write scope required (Personal: owner); excludes task-only keys. Create field; setLayout orders pins, hides editor fields, lists card fields; perFieldLine defaults false. Task card fields may be unpinned. setCardVisibility changes only card visibility. Hidden values remain readable. Copy requires unchanged fingerprints and confirmOverwrite for existing layout.",
41627
41629
  inputSchema: operationInputObjectSchema(operationResultSchema(read ? activityFieldReadInput : activityFieldConfigureInput)),
41628
41630
  resultSchema: resultSchema3,
41629
41631
  outputSchema: operationDataOutputSchema(resultSchema3),
@@ -41681,7 +41683,7 @@ var ActivityFieldsGet = class extends ProfileCommand {
41681
41683
  };
41682
41684
  var ActivityFieldsConfigure = class extends ProfileCommand {
41683
41685
  static paths = [["activity", "fields", "configure"]];
41684
- static usage = Command.Usage({ category: "Activity", description: "Create definitions, replace layouts, or copy a reviewed layout using exact JSON input" });
41686
+ static usage = Command.Usage({ category: "Activity", description: "Create definitions, toggle task card fields, replace layouts, or copy a reviewed layout using exact JSON input" });
41685
41687
  space = options_exports.String("--space");
41686
41688
  input = options_exports.String("--input", { required: true });
41687
41689
  async run() {
@@ -41715,7 +41717,7 @@ var ActivityFieldsLayout = class extends ProfileCommand {
41715
41717
  return matches[0].fieldId;
41716
41718
  };
41717
41719
  const fieldIds = this.fields.map(resolve2), hiddenFieldIds = this.hidden.map(resolve2), listFieldIds = this.listed.map(resolve2);
41718
- for (const hidden of [...hiddenFieldIds, ...listFieldIds]) if (!fieldIds.includes(hidden)) fieldIds.push(hidden);
41720
+ for (const hidden of [...hiddenFieldIds, ...this.activityType === "task" ? [] : listFieldIds]) if (!fieldIds.includes(hidden)) fieldIds.push(hidden);
41719
41721
  const input2 = parseActivityFieldRequest("configureActivityFields", activityFieldConfigureInput, { command: "setLayout", spaceId: spaceId2, activityType: this.activityType, fieldIds, hiddenFieldIds, listFieldIds, perFieldLine: this.perFieldLine });
41720
41722
  const data = parseOperationResult("configureActivityFields", activityFieldConfigureResult, await caller.mutation(activityFieldConfigure, { input: input2 }));
41721
41723
  this.emitText({ data }, () => JSON.stringify(data, null, 2));