@onetaskgraph/sdk 0.16.0 → 0.17.1

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.
@@ -1,4 +1,4 @@
1
- export declare const SCHEMA_BUNDLE_VERSION: 70;
1
+ export declare const SCHEMA_BUNDLE_VERSION: 71;
2
2
  export declare namespace GeneratedAsset {
3
3
  /**
4
4
  * One asset a record holds, as a read reports it.
@@ -5292,7 +5292,8 @@ export declare namespace GeneratedFindRequest {
5292
5292
  * One search of a [`FindRequest`]: every task matching all it names.
5293
5293
  *
5294
5294
  * It must be narrowed by at least one of `text`, `metadata` and `origin`; one narrowed by none
5295
- * would answer the whole source, and is refused naming its key.
5295
+ * would answer the whole source, and is refused naming its key. A `limit` of `0` is refused
5296
+ * as it is read, naming the key, so a request holding one reads nothing.
5296
5297
  */
5297
5298
  interface FindQuery {
5298
5299
  /**
@@ -5323,6 +5324,12 @@ export declare namespace GeneratedFindRequest {
5323
5324
  * The status categories to keep; empty keeps every one.
5324
5325
  */
5325
5326
  status?: StatusCategory[];
5327
+ /**
5328
+ * The most matches to answer: the walk stops once it holds this many, answering the first
5329
+ * `limit` of the matches an unlimited search lists, in that order. Absent or `null`
5330
+ * answers every match; `0` is refused, naming the key.
5331
+ */
5332
+ limit?: (number | null);
5326
5333
  }
5327
5334
  }
5328
5335
  export type FindRequest = GeneratedFindRequest.FindRequest;
@@ -5393,18 +5400,26 @@ export declare namespace GeneratedFoundTasks {
5393
5400
  */
5394
5401
  key: string;
5395
5402
  /**
5396
- * Every task it matched, across every page, each as `task list` reports it.
5403
+ * Every task it matched, across every page, each as `task list` reports it — or, for a
5404
+ * search naming a `limit`, the first `limit` of them.
5397
5405
  */
5398
5406
  items: Qualified[];
5399
5407
  /**
5400
- * Whether `items` is every match: `false` when a page of this search could not be read,
5401
- * and `items` holds what the pages before it answered.
5408
+ * Whether `items` is every match, or the first `limit` of them: `false` when a page of
5409
+ * this search could not be read, and `items` holds what the pages before it answered.
5402
5410
  */
5403
5411
  complete: boolean;
5404
5412
  /**
5405
5413
  * Why the answer is incomplete, naming the page refused — `null` when it is complete.
5406
5414
  */
5407
5415
  reason?: (string | null);
5416
+ /**
5417
+ * Whether the walk stopped because `items` reached the search's `limit` while the source
5418
+ * still offered a next page, so more tasks may match. `false` for a search naming no
5419
+ * limit, and for one whose walk ran out before reaching it; an answer written before
5420
+ * this member existed reads `false`.
5421
+ */
5422
+ limited?: boolean;
5408
5423
  [k: string]: any;
5409
5424
  }
5410
5425
  /**
package/dist/index.d.ts CHANGED
@@ -6,6 +6,6 @@
6
6
  * implementation of the query semantics across the CLI and both SDKs.
7
7
  */
8
8
  /** The version this package publishes. `package.json` must agree; see the tests. */
9
- export declare const VERSION = "0.16.0";
9
+ export declare const VERSION = "0.17.1";
10
10
  export * from "./client.ts";
11
11
  export type * from "./generated/models.ts";
package/dist/index.js CHANGED
@@ -7212,7 +7212,7 @@ var binaryCommands = [
7212
7212
  ];
7213
7213
 
7214
7214
  // src/generated/models.ts
7215
- var SCHEMA_BUNDLE_VERSION = 70;
7215
+ var SCHEMA_BUNDLE_VERSION = 71;
7216
7216
 
7217
7217
  // src/generated/schemas.ts
7218
7218
  var runtimeSchemas = {
@@ -17364,7 +17364,7 @@ so a native id may contain colons freely.`,
17364
17364
  ],
17365
17365
  $defs: {
17366
17366
  FindQuery: {
17367
- description: "One search of a [`FindRequest`]: every task matching all it names.\n\nIt must be narrowed by at least one of `text`, `metadata` and `origin`; one narrowed by none\nwould answer the whole source, and is refused naming its key.",
17367
+ description: "One search of a [`FindRequest`]: every task matching all it names.\n\nIt must be narrowed by at least one of `text`, `metadata` and `origin`; one narrowed by none\nwould answer the whole source, and is refused naming its key. A `limit` of `0` is refused\nas it is read, naming the key, so a request holding one reads nothing.",
17368
17368
  type: "object",
17369
17369
  properties: {
17370
17370
  key: {
@@ -17412,6 +17412,15 @@ request.`,
17412
17412
  $ref: "#/$defs/StatusCategory"
17413
17413
  },
17414
17414
  default: []
17415
+ },
17416
+ limit: {
17417
+ description: "The most matches to answer: the walk stops once it holds this many, answering the first\n`limit` of the matches an unlimited search lists, in that order. Absent or `null`\nanswers every match; `0` is refused, naming the key.",
17418
+ type: [
17419
+ "integer",
17420
+ "null"
17421
+ ],
17422
+ format: "uint32",
17423
+ minimum: 1
17415
17424
  }
17416
17425
  },
17417
17426
  additionalProperties: false,
@@ -17535,14 +17544,14 @@ No source ships a default name for it: a source writes and reads it only at the
17535
17544
  type: "string"
17536
17545
  },
17537
17546
  items: {
17538
- description: "Every task it matched, across every page, each as `task list` reports it.",
17547
+ description: "Every task it matched, across every page, each as `task list` reports it — or, for a\nsearch naming a `limit`, the first `limit` of them.",
17539
17548
  type: "array",
17540
17549
  items: {
17541
17550
  $ref: "#/$defs/Qualified"
17542
17551
  }
17543
17552
  },
17544
17553
  complete: {
17545
- description: "Whether `items` is every match: `false` when a page of this search could not be read,\nand `items` holds what the pages before it answered.",
17554
+ description: "Whether `items` is every match, or the first `limit` of them: `false` when a page of\nthis search could not be read, and `items` holds what the pages before it answered.",
17546
17555
  type: "boolean"
17547
17556
  },
17548
17557
  reason: {
@@ -17551,6 +17560,11 @@ No source ships a default name for it: a source writes and reads it only at the
17551
17560
  "string",
17552
17561
  "null"
17553
17562
  ]
17563
+ },
17564
+ limited: {
17565
+ description: "Whether the walk stopped because `items` reached the search's `limit` while the source\nstill offered a next page, so more tasks may match. `false` for a search naming no\nlimit, and for one whose walk ran out before reaching it; an answer written before\nthis member existed reads `false`.",
17566
+ type: "boolean",
17567
+ default: false
17554
17568
  }
17555
17569
  },
17556
17570
  required: [
@@ -46848,7 +46862,7 @@ function assertCompleteCommandSurface() {
46848
46862
  }
46849
46863
 
46850
46864
  // src/index.ts
46851
- var VERSION = "0.16.0";
46865
+ var VERSION = "0.17.1";
46852
46866
  export {
46853
46867
  updateFieldChoices,
46854
46868
  taskUpdateOptionFlags,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@onetaskgraph/sdk",
3
3
  "//": "llmlint: ignore-file[projects_stay_in_one_js_workspace] This package IS the JS workspace's one member; what the rule reads as a second is the optionalDependency below, which is the published launcher an end user installs beside the SDK and resolves from the registry at their own install. `workspace:*` names nothing there, and npm/cli is not a workspace member for the reason its own manifest records. scripts/set-version.sh writes this number and `--check` refuses any other, under distribution-check. JSON has no comment to scope this to the one line.",
4
- "version": "0.16.0",
4
+ "version": "0.17.1",
5
5
  "description": "The TypeScript SDK for onetaskgraph, generated from the binary's own JSON Schema bundle.",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -28,7 +28,7 @@
28
28
  "generate:check": "bun scripts/generate.ts --check"
29
29
  },
30
30
  "optionalDependencies": {
31
- "@onetaskgraph/cli": "0.16.0"
31
+ "@onetaskgraph/cli": "0.17.1"
32
32
  },
33
33
  "devDependencies": {
34
34
  "ajv": "8.17.1",