ente-cli 0.4.119 → 0.4.121

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
@@ -960,6 +960,18 @@ Inspect then acknowledge exact observations; grant/scope changes invalidate
960
960
  receipts. `selfAuthored` is relative to the assignment agent, not the delegate.
961
961
  Discussion/message/comment/claim/renew/release remain own-agent-only.
962
962
 
963
+ `ente agent tasks attention-feed --profile ente-operator --json` reads one bounded
964
+ own-plus-direct-grants attention snapshot `{items,truncated}`. It accepts no
965
+ selector/cursor/limit. If truncated, reconcile through paginated `list`; never
966
+ infer completion/deletion from disappearance. Deleted entries have no title.
967
+ The canonical REST/MCP operation is `attentionFeed`. Realtime clients subscribe
968
+ to `taskAgents:attentionFeed({})` using the official Convex client and the existing
969
+ 900-second `/cli/token` bridge. This release first permits owner-issued Personal
970
+ task-sync connection keys to mint that token; mail/generic connection grants do
971
+ not gain token eligibility. Refresh through the auth callback, never from feed
972
+ results. Every execution checks current authority; the query never acknowledges
973
+ or writes usage telemetry. Backend reruns can occur without changed callbacks.
974
+
963
975
  Canonical create/update/assignees writes accept JSON `onBehalfOfAgentId` or
964
976
  `--on-behalf-of-agent <id>` on `task sync`. Both live task scope and the direct
965
977
  grant are required. The authenticated delegate owns externalKey namespaces,
package/dist/cli.mjs CHANGED
@@ -28648,7 +28648,7 @@ function parseOperationAttrs(operation, pairs) {
28648
28648
  }
28649
28649
 
28650
28650
  // ente/version.ts
28651
- var VERSION = "0.4.119";
28651
+ var VERSION = "0.4.121";
28652
28652
 
28653
28653
  // ente/branding.ts
28654
28654
  var NPM_REGISTRY = "https://registry.npmjs.org";
@@ -33472,7 +33472,7 @@ function checked4(schema, raw) {
33472
33472
  var AGENT_TASK_PAGE_MAX = 100;
33473
33473
  var AGENT_TASK_TEXT_MAX = 5e4;
33474
33474
  var AGENT_TASK_CURSOR_MAX = 4096;
33475
- var AGENT_TASK_OPERATIONS = ["list", "inspect", "get", "discussion", "message", "comment", "acknowledge", "claim", "renew", "release"];
33475
+ var AGENT_TASK_OPERATIONS = ["list", "attentionFeed", "inspect", "get", "discussion", "message", "comment", "acknowledge", "claim", "renew", "release"];
33476
33476
  var agentTaskInputSchema = {
33477
33477
  type: "object",
33478
33478
  properties: {
@@ -33496,6 +33496,7 @@ var agentTaskInputSchema = {
33496
33496
  additionalProperties: false
33497
33497
  };
33498
33498
  var fields2 = {
33499
+ attentionFeed: [],
33499
33500
  list: ["view", "cursor", "limit", "principals", "forAgentIds"],
33500
33501
  inspect: ["assignmentId", "observationId", "limit"],
33501
33502
  get: ["assignmentId"],
@@ -33524,7 +33525,7 @@ function validateAgentTaskInput(raw) {
33524
33525
  if (input2.offset !== void 0 && (!Number.isSafeInteger(input2.offset) || input2.offset < 0)) return invalid4("offset must be a non-negative integer");
33525
33526
  if (input2.expectedUpdatedAt !== void 0 && (typeof input2.expectedUpdatedAt !== "number" || !Number.isFinite(input2.expectedUpdatedAt))) return invalid4("expectedUpdatedAt must be a finite number");
33526
33527
  if (operation === "message" && (input2.offset ?? 0) > 0 && input2.expectedUpdatedAt === void 0) return invalid4("Message continuation requires expectedUpdatedAt");
33527
- if (operation !== "list" && !input2.assignmentId) return invalid4("assignmentId is required");
33528
+ if (operation !== "list" && operation !== "attentionFeed" && !input2.assignmentId) return invalid4("assignmentId is required");
33528
33529
  if ((operation === "renew" || operation === "release") && !input2.claimToken) return invalid4("claimToken is required");
33529
33530
  if (operation === "acknowledge" && (!input2.observationId || !Number.isSafeInteger(input2.version) || input2.version < 0)) return invalid4("Acknowledgement requires observationId and exact version");
33530
33531
  if (input2.limit !== void 0 && (!Number.isInteger(input2.limit) || input2.limit < 1 || input2.limit > AGENT_TASK_PAGE_MAX)) return invalid4("limit must be an integer from 1 to 100");
@@ -33751,6 +33752,7 @@ var taskDetailValidator = v.object({
33751
33752
  });
33752
33753
  var taskClaimResultValidator = v.object({ claimed: v.boolean(), claimToken: v.optional(v.string()), expiresAt: v.optional(v.number()) });
33753
33754
  var taskCommandResults = {
33755
+ attentionFeed: v.object({ items: v.array(queueItemValidator), truncated: v.boolean() }),
33754
33756
  list: paginationResultValidator(queueItemValidator),
33755
33757
  inspect: v.object({
33756
33758
  task: queueItemValidator,
@@ -49481,6 +49483,7 @@ var AgentTasks = class extends ClientCommand {
49481
49483
  description: "Inspect assigned tasks, reply, acknowledge an exact version, or coordinate workers",
49482
49484
  details: "list includes undated tasks. Use --view attention for new input. inspect returns an observation and exact version; acknowledge only after processing it. Reading never acknowledges. Claims are optional and expire. comment requires a stable retry key. This uses the agent bound to your credential.",
49483
49485
  examples: [
49486
+ ["Read a bounded attention snapshot", "ente agent tasks attention-feed --json"],
49484
49487
  ["Inspect new task input", "ente agent tasks list --view attention --json"],
49485
49488
  ["Read events", "ente agent tasks inspect --assignment <assignment-id> --json"],
49486
49489
  ["Reply", 'ente agent tasks comment --assignment <assignment-id> --content "Working on it" --idempotency-key run-123 --json'],
@@ -49503,6 +49506,7 @@ var AgentTasks = class extends ClientCommand {
49503
49506
  content = options_exports.String("--content");
49504
49507
  idempotencyKey = options_exports.String("--idempotency-key");
49505
49508
  async run() {
49509
+ if (this.operation === "attention-feed") this.operation = "attentionFeed";
49506
49510
  if (!AGENT_TASK_OPERATIONS.includes(this.operation)) throw new Error("Unknown agent task operation");
49507
49511
  if (this.view !== void 0 && this.view !== "open" && this.view !== "attention") throw new Error("--view must be open or attention");
49508
49512
  const number5 = (raw, minimum, maximum, flag) => {