@onetaskgraph/sdk 0.14.14 → 0.14.15

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: 63;
1
+ export declare const SCHEMA_BUNDLE_VERSION: 64;
2
2
  export declare namespace GeneratedAsset {
3
3
  /**
4
4
  * One asset a record holds, as a read reports it.
@@ -6602,6 +6602,21 @@ export declare namespace GeneratedLinearConfig {
6602
6602
  * and writes one person, or none, as the issue's `assigneeId`.
6603
6603
  */
6604
6604
  assignees?: boolean;
6605
+ /**
6606
+ * Caller metadata values this source shows in one collapsed `Fields` section at the end
6607
+ * of each task's, project's and document's visible description, since Linear has no
6608
+ * custom fields and never renders the slot the metadata is kept in.
6609
+ *
6610
+ * Absent or empty, no section is written. Each entry names the `field` a value is shown
6611
+ * under, a top-level metadata `key` and an optional `path` of object keys walked inside
6612
+ * that key's value — the entries a `github-projects` source takes, refused at read for the
6613
+ * same reasons but for that source's own board field names. A string, an array of strings
6614
+ * and an object of string values are shown, an empty one or nothing not at all; any other
6615
+ * JSON type is refused before any mutation. The section is display only: the slot stays
6616
+ * the metadata's one home, every read gives back the caller's content without it, and
6617
+ * every write regenerates it. `docs/metadata.md` states its shape.
6618
+ */
6619
+ metadata_fields?: LinearMetadataField[];
6605
6620
  }
6606
6621
  /**
6607
6622
  * Which workflow state of the configured team a task's status category is, and which of
@@ -6627,6 +6642,26 @@ export declare namespace GeneratedLinearConfig {
6627
6642
  */
6628
6643
  native?: (string | null);
6629
6644
  }
6645
+ /**
6646
+ * One `metadata_fields` entry of a `linear` source's configuration: the same shape a
6647
+ * `github-projects` source takes.
6648
+ */
6649
+ interface LinearMetadataField {
6650
+ /**
6651
+ * The name the value is shown under, in bold, in the item's `Fields` section.
6652
+ */
6653
+ field: string;
6654
+ /**
6655
+ * The top-level metadata key the value is read from. A key under the reserved
6656
+ * `onetaskgraph.` prefix is refused.
6657
+ */
6658
+ key: string;
6659
+ /**
6660
+ * Object keys walked inside that key's value, outermost first. Absent or empty, the
6661
+ * key's own value is the one shown. Left out of a serialized entry when empty.
6662
+ */
6663
+ path?: string[];
6664
+ }
6630
6665
  }
6631
6666
  export type LinearConfig = GeneratedLinearConfig.LinearConfig;
6632
6667
  export declare namespace GeneratedLinkBatch {
@@ -19011,6 +19046,12 @@ export declare namespace GeneratedStatusNamesReport {
19011
19046
  * The create Linear refused, which stopped an `--apply`; absent when nothing was refused.
19012
19047
  */
19013
19048
  refused?: (RefusedCreate | null);
19049
+ /**
19050
+ * Each `metadata_fields` entry, in configuration order: each is shown in an item's
19051
+ * `Fields` section rather than in a field Linear holds, so none is ever missing and
19052
+ * `--apply` creates nothing for it. Absent when the source configures none.
19053
+ */
19054
+ metadata_fields?: SectionFieldReport[];
19014
19055
  [k: string]: any;
19015
19056
  }
19016
19057
  /**
@@ -19070,5 +19111,27 @@ export declare namespace GeneratedStatusNamesReport {
19070
19111
  message: string;
19071
19112
  [k: string]: any;
19072
19113
  }
19114
+ /**
19115
+ * One `metadata_fields` entry of a `linear` source, as `sources fields` reports it.
19116
+ */
19117
+ interface SectionFieldReport {
19118
+ /**
19119
+ * The name the value is shown under.
19120
+ */
19121
+ field: string;
19122
+ /**
19123
+ * The top-level metadata key the value is read from.
19124
+ */
19125
+ key: string;
19126
+ /**
19127
+ * Object keys walked inside that key's value; absent when the key's own value is shown.
19128
+ */
19129
+ path: string[];
19130
+ /**
19131
+ * Where the value is carried: always `section`, the item's `Fields` section.
19132
+ */
19133
+ carried: "section";
19134
+ [k: string]: any;
19135
+ }
19073
19136
  }
19074
19137
  export type StatusNamesReport = GeneratedStatusNamesReport.StatusNamesReport;
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.14";
9
+ export declare const VERSION = "0.14.15";
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 = 63;
7212
+ var SCHEMA_BUNDLE_VERSION = 64;
7213
7213
 
7214
7214
  // src/generated/schemas.ts
7215
7215
  var runtimeSchemas = {
@@ -19703,6 +19703,14 @@ source reads and writes team-wide.`,
19703
19703
  description: "Whether this source's tasks carry their assignee: `false`, the default, reads every task\nwithout an `assignees` member, refuses every write naming one and sends Linear exactly\nthe documents it sent before assignees existed; `true` reads each issue's\n`assignee{displayName}` — a Linear user's display name, unique within its workspace —\nand writes one person, or none, as the issue's `assigneeId`.",
19704
19704
  type: "boolean",
19705
19705
  default: false
19706
+ },
19707
+ metadata_fields: {
19708
+ description: "Caller metadata values this source shows in one collapsed `Fields` section at the end\nof each task's, project's and document's visible description, since Linear has no\ncustom fields and never renders the slot the metadata is kept in.\n\nAbsent or empty, no section is written. Each entry names the `field` a value is shown\nunder, a top-level metadata `key` and an optional `path` of object keys walked inside\nthat key's value — the entries a `github-projects` source takes, refused at read for the\nsame reasons but for that source's own board field names. A string, an array of strings\nand an object of string values are shown, an empty one or nothing not at all; any other\nJSON type is refused before any mutation. The section is display only: the slot stays\nthe metadata's one home, every read gives back the caller's content without it, and\nevery write regenerates it. `docs/metadata.md` states its shape.",
19709
+ type: "array",
19710
+ items: {
19711
+ $ref: "#/$defs/LinearMetadataField"
19712
+ },
19713
+ default: []
19706
19714
  }
19707
19715
  },
19708
19716
  additionalProperties: false,
@@ -19847,6 +19855,34 @@ source reads and writes team-wide.`,
19847
19855
  }
19848
19856
  },
19849
19857
  additionalProperties: false
19858
+ },
19859
+ LinearMetadataField: {
19860
+ description: "One `metadata_fields` entry of a `linear` source's configuration: the same shape a\n`github-projects` source takes.",
19861
+ type: "object",
19862
+ properties: {
19863
+ field: {
19864
+ description: "The name the value is shown under, in bold, in the item's `Fields` section.",
19865
+ type: "string"
19866
+ },
19867
+ key: {
19868
+ description: "The top-level metadata key the value is read from. A key under the reserved\n`onetaskgraph.` prefix is refused.",
19869
+ type: "string"
19870
+ },
19871
+ path: {
19872
+ description: `Object keys walked inside that key's value, outermost first. Absent or empty, the
19873
+ key's own value is the one shown. Left out of a serialized entry when empty.`,
19874
+ type: "array",
19875
+ items: {
19876
+ type: "string"
19877
+ },
19878
+ default: []
19879
+ }
19880
+ },
19881
+ additionalProperties: false,
19882
+ required: [
19883
+ "field",
19884
+ "key"
19885
+ ]
19850
19886
  }
19851
19887
  }
19852
19888
  },
@@ -44676,6 +44712,14 @@ it is; absent — and left out of the JSON — when there is none.`,
44676
44712
  type: "null"
44677
44713
  }
44678
44714
  ]
44715
+ },
44716
+ metadata_fields: {
44717
+ description: "Each `metadata_fields` entry, in configuration order: each is shown in an item's\n`Fields` section rather than in a field Linear holds, so none is ever missing and\n`--apply` creates nothing for it. Absent when the source configures none.",
44718
+ type: "array",
44719
+ items: {
44720
+ $ref: "#/$defs/SectionFieldReport"
44721
+ },
44722
+ default: []
44679
44723
  }
44680
44724
  },
44681
44725
  required: [
@@ -44827,6 +44871,47 @@ it is; absent — and left out of the JSON — when there is none.`,
44827
44871
  "name",
44828
44872
  "message"
44829
44873
  ]
44874
+ },
44875
+ SectionFieldReport: {
44876
+ description: "One `metadata_fields` entry of a `linear` source, as `sources fields` reports it.",
44877
+ type: "object",
44878
+ properties: {
44879
+ field: {
44880
+ description: "The name the value is shown under.",
44881
+ type: "string"
44882
+ },
44883
+ key: {
44884
+ description: "The top-level metadata key the value is read from.",
44885
+ type: "string"
44886
+ },
44887
+ path: {
44888
+ description: "Object keys walked inside that key's value; absent when the key's own value is shown.",
44889
+ type: "array",
44890
+ items: {
44891
+ type: "string"
44892
+ }
44893
+ },
44894
+ carried: {
44895
+ description: "Where the value is carried: always `section`, the item's `Fields` section.",
44896
+ $ref: "#/$defs/SectionCarried"
44897
+ }
44898
+ },
44899
+ required: [
44900
+ "field",
44901
+ "key",
44902
+ "path",
44903
+ "carried"
44904
+ ]
44905
+ },
44906
+ SectionCarried: {
44907
+ description: "Where a `linear` source carries a `metadata_fields` value.",
44908
+ oneOf: [
44909
+ {
44910
+ description: "In the collapsed `Fields` section at the end of the item's description.",
44911
+ type: "string",
44912
+ const: "section"
44913
+ }
44914
+ ]
44830
44915
  }
44831
44916
  }
44832
44917
  }
@@ -45968,7 +46053,7 @@ function assertCompleteCommandSurface() {
45968
46053
  }
45969
46054
 
45970
46055
  // src/index.ts
45971
- var VERSION = "0.14.14";
46056
+ var VERSION = "0.14.15";
45972
46057
  export {
45973
46058
  taskUpdateOptionFlags,
45974
46059
  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.14",
4
+ "version": "0.14.15",
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.14"
31
+ "@onetaskgraph/cli": "0.14.15"
32
32
  },
33
33
  "devDependencies": {
34
34
  "ajv": "8.17.1",