@onetaskgraph/sdk 0.14.16 → 0.14.17

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: 64;
1
+ export declare const SCHEMA_BUNDLE_VERSION: 65;
2
2
  export declare namespace GeneratedAsset {
3
3
  /**
4
4
  * One asset a record holds, as a read reports it.
@@ -8744,6 +8744,27 @@ export declare namespace GeneratedProjectGraph {
8744
8744
  * `orchestrator.unit`.
8745
8745
  */
8746
8746
  type GroupKey = string;
8747
+ /**
8748
+ * Where an entity is, in the one form a consumer can act on without knowing the backend.
8749
+ *
8750
+ * Externally tagged with exactly two variants, so the JSON is `{"url": "https://…"}` or
8751
+ * `{"path": "/home/…"}` and a consumer tells them apart by which key is present. A reader
8752
+ * handed one of these knows what to *do* with it — open a link, or print a path and read
8753
+ * the file out — which is what a bare string could not have said.
8754
+ *
8755
+ * It carries no third case on purpose. `None` on the field is the third case, and it
8756
+ * means the source did not say where the entity is, which is not the same as saying it is
8757
+ * nowhere.
8758
+ *
8759
+ * This does **not** redefine, replace or derive from the `url` field of [`Task`],
8760
+ * [`Project`] or [`Document`]: a source that reports a web URL there goes on reporting
8761
+ * it, and every existing consumer sees exactly what it saw.
8762
+ */
8763
+ type Location = ({
8764
+ url: string;
8765
+ } | {
8766
+ path: string;
8767
+ });
8747
8768
  /**
8748
8769
  * One thing a dependency read could not ask.
8749
8770
  */
@@ -8816,6 +8837,12 @@ export declare namespace GeneratedProjectGraph {
8816
8837
  * external task, and for every task when no key was given.
8817
8838
  */
8818
8839
  group?: (string | null);
8840
+ /**
8841
+ * Where the task is, exactly as `task show` reports it: `{"path": …}`, `{"url": …}`,
8842
+ * or `null` when its source reports none — and for an external task whose source could
8843
+ * not be asked, of which nothing was read.
8844
+ */
8845
+ location?: (Location | null);
8819
8846
  [k: string]: any;
8820
8847
  }
8821
8848
  /**
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.14.16";
9
+ export declare const VERSION = "0.14.17";
10
10
  export * from "./client.ts";
11
11
  export type * from "./generated/models.ts";
package/dist/index.js CHANGED
@@ -7209,7 +7209,7 @@ var binaryCommands = [
7209
7209
  ];
7210
7210
 
7211
7211
  // src/generated/models.ts
7212
- var SCHEMA_BUNDLE_VERSION = 64;
7212
+ var SCHEMA_BUNDLE_VERSION = 65;
7213
7213
 
7214
7214
  // src/generated/schemas.ts
7215
7215
  var runtimeSchemas = {
@@ -24055,6 +24055,17 @@ so a native id may contain colons freely.`,
24055
24055
  "string",
24056
24056
  "null"
24057
24057
  ]
24058
+ },
24059
+ location: {
24060
+ description: 'Where the task is, exactly as `task show` reports it: `{"path": …}`, `{"url": …}`,\nor `null` when its source reports none — and for an external task whose source could\nnot be asked, of which nothing was read.',
24061
+ anyOf: [
24062
+ {
24063
+ $ref: "#/$defs/Location"
24064
+ },
24065
+ {
24066
+ type: "null"
24067
+ }
24068
+ ]
24058
24069
  }
24059
24070
  },
24060
24071
  required: [
@@ -24064,6 +24075,38 @@ so a native id may contain colons freely.`,
24064
24075
  "external"
24065
24076
  ]
24066
24077
  },
24078
+ Location: {
24079
+ description: 'Where an entity is, in the one form a consumer can act on without knowing the backend.\n\nExternally tagged with exactly two variants, so the JSON is `{"url": "https://…"}` or\n`{"path": "/home/…"}` and a consumer tells them apart by which key is present. A reader\nhanded one of these knows what to *do* with it — open a link, or print a path and read\nthe file out — which is what a bare string could not have said.\n\nIt carries no third case on purpose. `None` on the field is the third case, and it\nmeans the source did not say where the entity is, which is not the same as saying it is\nnowhere.\n\nThis does **not** redefine, replace or derive from the `url` field of [`Task`],\n[`Project`] or [`Document`]: a source that reports a web URL there goes on reporting\nit, and every existing consumer sees exactly what it saw.',
24080
+ oneOf: [
24081
+ {
24082
+ description: "The entity lives at an external website, and this is a link a reader can open.",
24083
+ type: "object",
24084
+ properties: {
24085
+ url: {
24086
+ type: "string"
24087
+ }
24088
+ },
24089
+ required: [
24090
+ "url"
24091
+ ],
24092
+ additionalProperties: false
24093
+ },
24094
+ {
24095
+ description: `The entity is a file on the machine the source runs on, and this is that file's
24096
+ absolute path, so a reader can print the path or read the contents out.`,
24097
+ type: "object",
24098
+ properties: {
24099
+ path: {
24100
+ type: "string"
24101
+ }
24102
+ },
24103
+ required: [
24104
+ "path"
24105
+ ],
24106
+ additionalProperties: false
24107
+ }
24108
+ ]
24109
+ },
24067
24110
  GraphEdge: {
24068
24111
  description: "One edge of a [`ProjectGraph`], pointing from the task depended on to the task that\ndepends on it.",
24069
24112
  type: "object",
@@ -46053,7 +46096,7 @@ function assertCompleteCommandSurface() {
46053
46096
  }
46054
46097
 
46055
46098
  // src/index.ts
46056
- var VERSION = "0.14.16";
46099
+ var VERSION = "0.14.17";
46057
46100
  export {
46058
46101
  taskUpdateOptionFlags,
46059
46102
  taskUpdateFlags,
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.14.16",
4
+ "version": "0.14.17",
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.14.16"
31
+ "@onetaskgraph/cli": "0.14.17"
32
32
  },
33
33
  "devDependencies": {
34
34
  "ajv": "8.17.1",