@onetaskgraph/sdk 0.14.13 → 0.14.14

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/index.js CHANGED
@@ -7169,6 +7169,7 @@ var binaryCommands = [
7169
7169
  "task status reconcile",
7170
7170
  "task status complete",
7171
7171
  "task priority set",
7172
+ "task assignee set",
7172
7173
  "task content set",
7173
7174
  "task metadata set",
7174
7175
  "task attest",
@@ -7208,7 +7209,7 @@ var binaryCommands = [
7208
7209
  ];
7209
7210
 
7210
7211
  // src/generated/models.ts
7211
- var SCHEMA_BUNDLE_VERSION = 62;
7212
+ var SCHEMA_BUNDLE_VERSION = 63;
7212
7213
 
7213
7214
  // src/generated/schemas.ts
7214
7215
  var runtimeSchemas = {
@@ -8098,8 +8099,7 @@ say. Decided by the plugin, through
8098
8099
  const: "written"
8099
8100
  },
8100
8101
  {
8101
- description: `Its priority guard declined: the task held a priority the guard does not name, and
8102
- nothing of it was written.`,
8102
+ description: "Its guard declined: the task held a priority `when_priority` does not name, or not\nexactly the people `when_assignees` names, and nothing of it was written.",
8103
8103
  type: "string",
8104
8104
  const: "held"
8105
8105
  },
@@ -8271,6 +8271,11 @@ predates assets says nothing here and is never handed bytes it would drop.`,
8271
8271
  $ref: "#/$defs/Support",
8272
8272
  default: "unsupported"
8273
8273
  },
8274
+ assignees: {
8275
+ description: "Whether the source's tasks carry [`Task::assignees`](crate::Task::assignees): set by\nthe source's own `config.assignees: true`, and `unsupported` otherwise.\n\nRead exactly as [`priority`](Self::priority) is: it says what the source *holds*, not\nwhich predicate it applies. A source declaring `Unsupported` reports no assignees on\nany task and is never handed any: a write naming an assignee is refused before the\nsource is asked, naming the source and the setting, and a copy into it carries none.\n\nDefaulted to [`Support::Unsupported`] when a wire value omits it, and left out of the\nwire while unsupported, so a plugin that predates assignees — and every source that has\nnot opted in — reads and is read exactly as it was.",
8276
+ $ref: "#/$defs/Support",
8277
+ default: "unsupported"
8278
+ },
8274
8279
  filter_by_priority: {
8275
8280
  description: `Whether the source keeps only the tasks whose priority a query lists, itself.
8276
8281
 
@@ -9660,8 +9665,7 @@ interprets none of them, which is why the budget and unit names are open vocabul
9660
9665
  const: "written"
9661
9666
  },
9662
9667
  {
9663
- description: `Its priority guard declined: the task held a priority the guard does not name, and
9664
- nothing of it was written.`,
9668
+ description: "Its guard declined: the task held a priority `when_priority` does not name, or not\nexactly the people `when_assignees` names, and nothing of it was written.",
9665
9669
  type: "string",
9666
9670
  const: "held"
9667
9671
  },
@@ -10387,6 +10391,26 @@ where the task may be written, and nothing written here can loosen that. The pro
10387
10391
  a task is filed under never tightens it: a task's visibility is its own.`,
10388
10392
  $ref: "#/$defs/Classification",
10389
10393
  default: "public"
10394
+ },
10395
+ assignees: {
10396
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
10397
+ Linear display name, the string as given in a folder or in memory — in the order the
10398
+ source holds them; empty means unassigned.
10399
+
10400
+ **Present only for a source that opted in** with \`config.assignees: true\`
10401
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
10402
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
10403
+ source that has not opted in reads, and is written, exactly as it was before the field
10404
+ existed. On a write, absent leaves the item's assignees as they are, and present
10405
+ replaces them with exactly the people it names — the engine never hands a source more
10406
+ than one.`,
10407
+ type: [
10408
+ "array",
10409
+ "null"
10410
+ ],
10411
+ items: {
10412
+ type: "string"
10413
+ }
10390
10414
  }
10391
10415
  },
10392
10416
  required: [
@@ -11263,6 +11287,17 @@ read included.`,
11263
11287
  }
11264
11288
  ]
11265
11289
  },
11290
+ assignee_condition: {
11291
+ description: "What `--when-destination-assignees` found the counterpart's assignees at, and whether\nthat met it — present only when the copy was given the condition and this item was an\nupdate of a task.",
11292
+ anyOf: [
11293
+ {
11294
+ $ref: "#/$defs/AssigneeCondition"
11295
+ },
11296
+ {
11297
+ type: "null"
11298
+ }
11299
+ ]
11300
+ },
11266
11301
  held: {
11267
11302
  description: "What the counterpart held, as the copy's read of it before writing found it — present\nonly on an item the copy refused after that read, such as `destination-status`.",
11268
11303
  anyOf: [
@@ -12115,6 +12150,28 @@ interprets none of them, which is why the budget and unit names are open vocabul
12115
12150
  "held",
12116
12151
  "met"
12117
12152
  ]
12153
+ },
12154
+ AssigneeCondition: {
12155
+ description: "What a guarded copy found a counterpart's assignees at, and whether that met the condition.",
12156
+ type: "object",
12157
+ properties: {
12158
+ held: {
12159
+ description: `Every person the counterpart was assigned to, as the copy's own pre-write read held
12160
+ them — empty when it was unassigned.`,
12161
+ type: "array",
12162
+ items: {
12163
+ type: "string"
12164
+ }
12165
+ },
12166
+ met: {
12167
+ description: "Whether those are exactly the people the condition names.",
12168
+ type: "boolean"
12169
+ }
12170
+ },
12171
+ required: [
12172
+ "held",
12173
+ "met"
12174
+ ]
12118
12175
  }
12119
12176
  }
12120
12177
  },
@@ -12318,6 +12375,17 @@ read included.`,
12318
12375
  }
12319
12376
  ]
12320
12377
  },
12378
+ assignee_condition: {
12379
+ description: "What `--when-destination-assignees` found the counterpart's assignees at, and whether\nthat met it — present only when the copy was given the condition and this item was an\nupdate of a task.",
12380
+ anyOf: [
12381
+ {
12382
+ $ref: "#/$defs/AssigneeCondition"
12383
+ },
12384
+ {
12385
+ type: "null"
12386
+ }
12387
+ ]
12388
+ },
12321
12389
  held: {
12322
12390
  description: "What the counterpart held, as the copy's read of it before writing found it — present\nonly on an item the copy refused after that read, such as `destination-status`.",
12323
12391
  anyOf: [
@@ -13171,6 +13239,28 @@ interprets none of them, which is why the budget and unit names are open vocabul
13171
13239
  "met"
13172
13240
  ]
13173
13241
  },
13242
+ AssigneeCondition: {
13243
+ description: "What a guarded copy found a counterpart's assignees at, and whether that met the condition.",
13244
+ type: "object",
13245
+ properties: {
13246
+ held: {
13247
+ description: `Every person the counterpart was assigned to, as the copy's own pre-write read held
13248
+ them — empty when it was unassigned.`,
13249
+ type: "array",
13250
+ items: {
13251
+ type: "string"
13252
+ }
13253
+ },
13254
+ met: {
13255
+ description: "Whether those are exactly the people the condition names.",
13256
+ type: "boolean"
13257
+ }
13258
+ },
13259
+ required: [
13260
+ "held",
13261
+ "met"
13262
+ ]
13263
+ },
13174
13264
  Delivered: {
13175
13265
  description: "What keeping one delivered task in step with one deliverer came to.",
13176
13266
  type: "object",
@@ -17574,6 +17664,26 @@ where the task may be written, and nothing written here can loosen that. The pro
17574
17664
  a task is filed under never tightens it: a task's visibility is its own.`,
17575
17665
  $ref: "#/$defs/Classification",
17576
17666
  default: "public"
17667
+ },
17668
+ assignees: {
17669
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
17670
+ Linear display name, the string as given in a folder or in memory — in the order the
17671
+ source holds them; empty means unassigned.
17672
+
17673
+ **Present only for a source that opted in** with \`config.assignees: true\`
17674
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
17675
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
17676
+ source that has not opted in reads, and is written, exactly as it was before the field
17677
+ existed. On a write, absent leaves the item's assignees as they are, and present
17678
+ replaces them with exactly the people it names — the engine never hands a source more
17679
+ than one.`,
17680
+ type: [
17681
+ "array",
17682
+ "null"
17683
+ ],
17684
+ items: {
17685
+ type: "string"
17686
+ }
17577
17687
  }
17578
17688
  },
17579
17689
  required: [
@@ -19588,6 +19698,11 @@ source reads and writes team-wide.`,
19588
19698
  $ref: "#/$defs/LinkTypeConfig"
19589
19699
  },
19590
19700
  default: {}
19701
+ },
19702
+ assignees: {
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
+ type: "boolean",
19705
+ default: false
19591
19706
  }
19592
19707
  },
19593
19708
  additionalProperties: false,
@@ -22459,6 +22574,26 @@ where the task may be written, and nothing written here can loosen that. The pro
22459
22574
  a task is filed under never tightens it: a task's visibility is its own.`,
22460
22575
  $ref: "#/$defs/Classification",
22461
22576
  default: "public"
22577
+ },
22578
+ assignees: {
22579
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
22580
+ Linear display name, the string as given in a folder or in memory — in the order the
22581
+ source holds them; empty means unassigned.
22582
+
22583
+ **Present only for a source that opted in** with \`config.assignees: true\`
22584
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
22585
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
22586
+ source that has not opted in reads, and is written, exactly as it was before the field
22587
+ existed. On a write, absent leaves the item's assignees as they are, and present
22588
+ replaces them with exactly the people it names — the engine never hands a source more
22589
+ than one.`,
22590
+ type: [
22591
+ "array",
22592
+ "null"
22593
+ ],
22594
+ items: {
22595
+ type: "string"
22596
+ }
22462
22597
  }
22463
22598
  },
22464
22599
  required: [
@@ -25633,6 +25768,26 @@ where the task may be written, and nothing written here can loosen that. The pro
25633
25768
  a task is filed under never tightens it: a task's visibility is its own.`,
25634
25769
  $ref: "#/$defs/Classification",
25635
25770
  default: "public"
25771
+ },
25772
+ assignees: {
25773
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
25774
+ Linear display name, the string as given in a folder or in memory — in the order the
25775
+ source holds them; empty means unassigned.
25776
+
25777
+ **Present only for a source that opted in** with \`config.assignees: true\`
25778
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
25779
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
25780
+ source that has not opted in reads, and is written, exactly as it was before the field
25781
+ existed. On a write, absent leaves the item's assignees as they are, and present
25782
+ replaces them with exactly the people it names — the engine never hands a source more
25783
+ than one.`,
25784
+ type: [
25785
+ "array",
25786
+ "null"
25787
+ ],
25788
+ items: {
25789
+ type: "string"
25790
+ }
25636
25791
  }
25637
25792
  },
25638
25793
  required: [
@@ -28918,6 +29073,26 @@ where the task may be written, and nothing written here can loosen that. The pro
28918
29073
  a task is filed under never tightens it: a task's visibility is its own.`,
28919
29074
  $ref: "#/$defs/Classification",
28920
29075
  default: "public"
29076
+ },
29077
+ assignees: {
29078
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
29079
+ Linear display name, the string as given in a folder or in memory — in the order the
29080
+ source holds them; empty means unassigned.
29081
+
29082
+ **Present only for a source that opted in** with \`config.assignees: true\`
29083
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
29084
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
29085
+ source that has not opted in reads, and is written, exactly as it was before the field
29086
+ existed. On a write, absent leaves the item's assignees as they are, and present
29087
+ replaces them with exactly the people it names — the engine never hands a source more
29088
+ than one.`,
29089
+ type: [
29090
+ "array",
29091
+ "null"
29092
+ ],
29093
+ items: {
29094
+ type: "string"
29095
+ }
28921
29096
  }
28922
29097
  },
28923
29098
  required: [
@@ -29796,6 +29971,26 @@ where the task may be written, and nothing written here can loosen that. The pro
29796
29971
  a task is filed under never tightens it: a task's visibility is its own.`,
29797
29972
  $ref: "#/$defs/Classification",
29798
29973
  default: "public"
29974
+ },
29975
+ assignees: {
29976
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
29977
+ Linear display name, the string as given in a folder or in memory — in the order the
29978
+ source holds them; empty means unassigned.
29979
+
29980
+ **Present only for a source that opted in** with \`config.assignees: true\`
29981
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
29982
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
29983
+ source that has not opted in reads, and is written, exactly as it was before the field
29984
+ existed. On a write, absent leaves the item's assignees as they are, and present
29985
+ replaces them with exactly the people it names — the engine never hands a source more
29986
+ than one.`,
29987
+ type: [
29988
+ "array",
29989
+ "null"
29990
+ ],
29991
+ items: {
29992
+ type: "string"
29993
+ }
29799
29994
  }
29800
29995
  },
29801
29996
  required: [
@@ -31613,6 +31808,26 @@ where the task may be written, and nothing written here can loosen that. The pro
31613
31808
  a task is filed under never tightens it: a task's visibility is its own.`,
31614
31809
  $ref: "#/$defs/Classification",
31615
31810
  default: "public"
31811
+ },
31812
+ assignees: {
31813
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
31814
+ Linear display name, the string as given in a folder or in memory — in the order the
31815
+ source holds them; empty means unassigned.
31816
+
31817
+ **Present only for a source that opted in** with \`config.assignees: true\`
31818
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
31819
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
31820
+ source that has not opted in reads, and is written, exactly as it was before the field
31821
+ existed. On a write, absent leaves the item's assignees as they are, and present
31822
+ replaces them with exactly the people it names — the engine never hands a source more
31823
+ than one.`,
31824
+ type: [
31825
+ "array",
31826
+ "null"
31827
+ ],
31828
+ items: {
31829
+ type: "string"
31830
+ }
31616
31831
  }
31617
31832
  },
31618
31833
  required: [
@@ -32646,6 +32861,11 @@ predates assets says nothing here and is never handed bytes it would drop.`,
32646
32861
  $ref: "#/$defs/Support",
32647
32862
  default: "unsupported"
32648
32863
  },
32864
+ assignees: {
32865
+ description: "Whether the source's tasks carry [`Task::assignees`](crate::Task::assignees): set by\nthe source's own `config.assignees: true`, and `unsupported` otherwise.\n\nRead exactly as [`priority`](Self::priority) is: it says what the source *holds*, not\nwhich predicate it applies. A source declaring `Unsupported` reports no assignees on\nany task and is never handed any: a write naming an assignee is refused before the\nsource is asked, naming the source and the setting, and a copy into it carries none.\n\nDefaulted to [`Support::Unsupported`] when a wire value omits it, and left out of the\nwire while unsupported, so a plugin that predates assignees — and every source that has\nnot opted in — reads and is read exactly as it was.",
32866
+ $ref: "#/$defs/Support",
32867
+ default: "unsupported"
32868
+ },
32649
32869
  filter_by_priority: {
32650
32870
  description: `Whether the source keeps only the tasks whose priority a query lists, itself.
32651
32871
 
@@ -33089,6 +33309,11 @@ predates assets says nothing here and is never handed bytes it would drop.`,
33089
33309
  $ref: "#/$defs/Support",
33090
33310
  default: "unsupported"
33091
33311
  },
33312
+ assignees: {
33313
+ description: "Whether the source's tasks carry [`Task::assignees`](crate::Task::assignees): set by\nthe source's own `config.assignees: true`, and `unsupported` otherwise.\n\nRead exactly as [`priority`](Self::priority) is: it says what the source *holds*, not\nwhich predicate it applies. A source declaring `Unsupported` reports no assignees on\nany task and is never handed any: a write naming an assignee is refused before the\nsource is asked, naming the source and the setting, and a copy into it carries none.\n\nDefaulted to [`Support::Unsupported`] when a wire value omits it, and left out of the\nwire while unsupported, so a plugin that predates assignees — and every source that has\nnot opted in — reads and is read exactly as it was.",
33314
+ $ref: "#/$defs/Support",
33315
+ default: "unsupported"
33316
+ },
33092
33317
  filter_by_priority: {
33093
33318
  description: `Whether the source keeps only the tasks whose priority a query lists, itself.
33094
33319
 
@@ -33943,6 +34168,26 @@ where the task may be written, and nothing written here can loosen that. The pro
33943
34168
  a task is filed under never tightens it: a task's visibility is its own.`,
33944
34169
  $ref: "#/$defs/Classification",
33945
34170
  default: "public"
34171
+ },
34172
+ assignees: {
34173
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
34174
+ Linear display name, the string as given in a folder or in memory — in the order the
34175
+ source holds them; empty means unassigned.
34176
+
34177
+ **Present only for a source that opted in** with \`config.assignees: true\`
34178
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
34179
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
34180
+ source that has not opted in reads, and is written, exactly as it was before the field
34181
+ existed. On a write, absent leaves the item's assignees as they are, and present
34182
+ replaces them with exactly the people it names — the engine never hands a source more
34183
+ than one.`,
34184
+ type: [
34185
+ "array",
34186
+ "null"
34187
+ ],
34188
+ items: {
34189
+ type: "string"
34190
+ }
33946
34191
  }
33947
34192
  },
33948
34193
  required: [
@@ -35494,6 +35739,26 @@ where the task may be written, and nothing written here can loosen that. The pro
35494
35739
  a task is filed under never tightens it: a task's visibility is its own.`,
35495
35740
  $ref: "#/$defs/Classification",
35496
35741
  default: "public"
35742
+ },
35743
+ assignees: {
35744
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
35745
+ Linear display name, the string as given in a folder or in memory — in the order the
35746
+ source holds them; empty means unassigned.
35747
+
35748
+ **Present only for a source that opted in** with \`config.assignees: true\`
35749
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
35750
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
35751
+ source that has not opted in reads, and is written, exactly as it was before the field
35752
+ existed. On a write, absent leaves the item's assignees as they are, and present
35753
+ replaces them with exactly the people it names — the engine never hands a source more
35754
+ than one.`,
35755
+ type: [
35756
+ "array",
35757
+ "null"
35758
+ ],
35759
+ items: {
35760
+ type: "string"
35761
+ }
35497
35762
  }
35498
35763
  },
35499
35764
  required: [
@@ -35722,6 +35987,410 @@ reach a public one.`,
35722
35987
  }
35723
35988
  }
35724
35989
  },
35990
+ TaskAssigneeSet: {
35991
+ $schema: "https://json-schema.org/draft/2020-12/schema",
35992
+ title: "TaskAssigneeSet",
35993
+ description: "What `task assignee set` answers with.",
35994
+ type: "object",
35995
+ properties: {
35996
+ id: {
35997
+ description: "The task whose assignee was set.",
35998
+ $ref: "#/$defs/GlobalId"
35999
+ },
36000
+ assignees: {
36001
+ description: `Every person the task is assigned to as its source reads it back after the write —
36002
+ the one person named, or none.`,
36003
+ type: "array",
36004
+ items: {
36005
+ type: "string"
36006
+ }
36007
+ },
36008
+ result: {
36009
+ description: `What the task holds after the write — its version where the write's own answers
36010
+ determine it.`,
36011
+ anyOf: [
36012
+ {
36013
+ $ref: "#/$defs/WriteResult"
36014
+ },
36015
+ {
36016
+ type: "null"
36017
+ }
36018
+ ]
36019
+ },
36020
+ sanitization: {
36021
+ anyOf: [
36022
+ {
36023
+ $ref: "#/$defs/Sanitization"
36024
+ },
36025
+ {
36026
+ type: "null"
36027
+ }
36028
+ ]
36029
+ }
36030
+ },
36031
+ required: [
36032
+ "id",
36033
+ "assignees"
36034
+ ],
36035
+ $defs: {
36036
+ GlobalId: {
36037
+ description: `One item, qualified by the source it came from.
36038
+
36039
+ Rendered \`<source>:<native>\` and parsed by splitting on the **first** colon,
36040
+ so a native id may contain colons freely.`,
36041
+ type: "string"
36042
+ },
36043
+ WriteResult: {
36044
+ description: `What an item holds once a write is done, read off the write's own responses — and, for an
36045
+ expected write, what each mutation it sent came to.
36046
+
36047
+ Every write verb and every item a copy lands answers one, with no request added for it: a
36048
+ field the write kept is what the read before it held. \`version\` is \`null\` where the source
36049
+ cannot vouch for a token from its write's responses — a GitHub board for an item it has just
36050
+ written, a stdio-hosted plugin, an in-memory source — and otherwise the token a read would
36051
+ then give.`,
36052
+ type: "object",
36053
+ properties: {
36054
+ version: {
36055
+ description: "The item's version after the write, where the write's responses determine it.",
36056
+ type: [
36057
+ "string",
36058
+ "null"
36059
+ ]
36060
+ },
36061
+ parts: {
36062
+ description: "One per mutation an expected write sent, in the order sent — absent for a write made\nwithout `--expect`.",
36063
+ type: [
36064
+ "array",
36065
+ "null"
36066
+ ],
36067
+ items: {
36068
+ $ref: "#/$defs/WritePart"
36069
+ }
36070
+ },
36071
+ status: {
36072
+ description: "The item's status after the write, exactly as `task show` spells it — `null` for a\ndocument, which has none, and where an expected write that failed cannot say.",
36073
+ anyOf: [
36074
+ {
36075
+ $ref: "#/$defs/Status"
36076
+ },
36077
+ {
36078
+ type: "null"
36079
+ }
36080
+ ],
36081
+ default: null
36082
+ },
36083
+ priority: {
36084
+ description: "A task's priority after the write — `null` for a project or a document, which carry\nnone, and where an expected write that failed cannot say.",
36085
+ anyOf: [
36086
+ {
36087
+ $ref: "#/$defs/Priority"
36088
+ },
36089
+ {
36090
+ type: "null"
36091
+ }
36092
+ ],
36093
+ default: null
36094
+ }
36095
+ }
36096
+ },
36097
+ WritePart: {
36098
+ description: "One mutation of an expected write.",
36099
+ type: "object",
36100
+ properties: {
36101
+ part: {
36102
+ description: "Which part it was, in the source's words: `fields`, `issue`, `comment`.",
36103
+ type: "string"
36104
+ },
36105
+ fields: {
36106
+ description: "Each field it set, with the value the response shows.",
36107
+ type: "object",
36108
+ additionalProperties: true
36109
+ }
36110
+ },
36111
+ required: [
36112
+ "part",
36113
+ "fields"
36114
+ ],
36115
+ oneOf: [
36116
+ {
36117
+ description: "The backend answered that it was applied.",
36118
+ type: "object",
36119
+ properties: {
36120
+ outcome: {
36121
+ type: "string",
36122
+ const: "landed"
36123
+ }
36124
+ },
36125
+ required: [
36126
+ "outcome"
36127
+ ]
36128
+ },
36129
+ {
36130
+ description: "The backend answered that it was refused.",
36131
+ type: "object",
36132
+ properties: {
36133
+ error: {
36134
+ description: "What the backend said.",
36135
+ type: "string"
36136
+ },
36137
+ stale: {
36138
+ description: `Whether it was refused because an id the write took from a primed context — an
36139
+ item's node id, a field's or an option's — no longer resolves. Such a part is
36140
+ sent again once, after one read.`,
36141
+ type: "boolean",
36142
+ default: false
36143
+ },
36144
+ outcome: {
36145
+ type: "string",
36146
+ const: "rejected"
36147
+ }
36148
+ },
36149
+ required: [
36150
+ "outcome",
36151
+ "error"
36152
+ ]
36153
+ },
36154
+ {
36155
+ description: `The request left and no answer came back, so whether it was applied cannot be known.
36156
+ Never sent again: doing so could apply it twice.`,
36157
+ type: "object",
36158
+ properties: {
36159
+ error: {
36160
+ description: "What went wrong.",
36161
+ type: "string"
36162
+ },
36163
+ outcome: {
36164
+ type: "string",
36165
+ const: "unknown"
36166
+ }
36167
+ },
36168
+ required: [
36169
+ "outcome",
36170
+ "error"
36171
+ ]
36172
+ }
36173
+ ]
36174
+ },
36175
+ Status: {
36176
+ description: `A source's status, kept in both normalised and original form.
36177
+
36178
+ \`category\` is what every filter compares against; \`name\` is the source's own
36179
+ wording, preserved so display never flattens "In Review" into "In Progress".`,
36180
+ type: "object",
36181
+ properties: {
36182
+ category: {
36183
+ description: "The normalised value filters compare against.",
36184
+ $ref: "#/$defs/StatusCategory"
36185
+ },
36186
+ name: {
36187
+ description: "The source's own label for this status.",
36188
+ type: "string"
36189
+ }
36190
+ },
36191
+ required: [
36192
+ "category",
36193
+ "name"
36194
+ ]
36195
+ },
36196
+ StatusCategory: {
36197
+ description: "The normalised status vocabulary shared across every source.",
36198
+ oneOf: [
36199
+ {
36200
+ description: "Written down but not yet committed to as work.",
36201
+ type: "string",
36202
+ const: "draft"
36203
+ },
36204
+ {
36205
+ description: "Known about, not yet accepted as ready to work.",
36206
+ type: "string",
36207
+ const: "backlog"
36208
+ },
36209
+ {
36210
+ description: "Accepted and ready to be picked up, and nothing has claimed it.",
36211
+ type: "string",
36212
+ const: "todo"
36213
+ },
36214
+ {
36215
+ description: "Claimed by work that will do it, and not yet started.",
36216
+ type: "string",
36217
+ const: "queued"
36218
+ },
36219
+ {
36220
+ description: "Being worked on.",
36221
+ type: "string",
36222
+ const: "in-progress"
36223
+ },
36224
+ {
36225
+ description: "Finished.",
36226
+ type: "string",
36227
+ const: "done"
36228
+ },
36229
+ {
36230
+ description: "Abandoned.",
36231
+ type: "string",
36232
+ const: "cancelled"
36233
+ },
36234
+ {
36235
+ description: "The source reported a status this vocabulary cannot place.",
36236
+ type: "string",
36237
+ const: "unknown"
36238
+ }
36239
+ ]
36240
+ },
36241
+ Priority: {
36242
+ description: `How much a task matters, in the one vocabulary every source is normalised into.
36243
+
36244
+ Five values, most pressing first after [\`None\`](Self::None): Linear's own priority has
36245
+ exactly these, and a source whose backend has none of its own maps its representation
36246
+ onto them. \`none\` is a value rather than an absent field, because "no priority is set" is
36247
+ something a person sets — writing \`none\` clears a priority — and a reader tells it apart
36248
+ from nothing by the value alone.`,
36249
+ oneOf: [
36250
+ {
36251
+ description: "No priority is set.",
36252
+ type: "string",
36253
+ const: "none"
36254
+ },
36255
+ {
36256
+ description: "Drop everything for it.",
36257
+ type: "string",
36258
+ const: "urgent"
36259
+ },
36260
+ {
36261
+ description: "Next, before the rest.",
36262
+ type: "string",
36263
+ const: "high"
36264
+ },
36265
+ {
36266
+ description: "In its turn.",
36267
+ type: "string",
36268
+ const: "medium"
36269
+ },
36270
+ {
36271
+ description: "When there is nothing more pressing.",
36272
+ type: "string",
36273
+ const: "low"
36274
+ }
36275
+ ]
36276
+ },
36277
+ Sanitization: {
36278
+ description: "What the screened writes of one command replaced, and what sanitise-on-refusal changed:\nthe `sanitization` member a write's answer carries when it is not empty.",
36279
+ type: "object",
36280
+ properties: {
36281
+ replaced: {
36282
+ description: "Spans the writes' own sanitisations rewrote.",
36283
+ type: "integer",
36284
+ format: "uint32",
36285
+ minimum: 0
36286
+ },
36287
+ side_effect: {
36288
+ description: "Each field or comment of an item sanitisation changed beyond the write itself.",
36289
+ type: "array",
36290
+ items: {
36291
+ $ref: "#/$defs/SideEffect"
36292
+ }
36293
+ },
36294
+ dry_run: {
36295
+ description: "Whether nothing was written, the changes only reported.",
36296
+ type: "boolean"
36297
+ }
36298
+ },
36299
+ required: [
36300
+ "replaced",
36301
+ "side_effect",
36302
+ "dry_run"
36303
+ ]
36304
+ },
36305
+ SideEffect: {
36306
+ description: "One field or comment of an item a sanitisation changed, named by screened locators.",
36307
+ type: "object",
36308
+ properties: {
36309
+ item: {
36310
+ description: "The item, by its qualified id as screened.",
36311
+ $ref: "#/$defs/Locator"
36312
+ },
36313
+ field: {
36314
+ description: "The field — `content`, `title`, `label`, `metadata:<key>` — or `comment:<id>`.",
36315
+ $ref: "#/$defs/Locator"
36316
+ }
36317
+ },
36318
+ required: [
36319
+ "item",
36320
+ "field"
36321
+ ]
36322
+ },
36323
+ Locator: {
36324
+ description: "A screened locator: the string verbatim, or its redacted form.",
36325
+ oneOf: [
36326
+ {
36327
+ type: "string"
36328
+ },
36329
+ {
36330
+ type: "object",
36331
+ properties: {
36332
+ redacted: {
36333
+ const: true
36334
+ },
36335
+ kind: {
36336
+ $ref: "#/$defs/LocatorKind"
36337
+ },
36338
+ ordinal: {
36339
+ type: "integer",
36340
+ minimum: 1
36341
+ }
36342
+ },
36343
+ required: [
36344
+ "redacted",
36345
+ "kind",
36346
+ "ordinal"
36347
+ ],
36348
+ additionalProperties: false
36349
+ }
36350
+ ]
36351
+ },
36352
+ LocatorKind: {
36353
+ description: "What a locator names.",
36354
+ oneOf: [
36355
+ {
36356
+ description: "A source name.",
36357
+ type: "string",
36358
+ const: "source"
36359
+ },
36360
+ {
36361
+ description: "An item id.",
36362
+ type: "string",
36363
+ const: "item"
36364
+ },
36365
+ {
36366
+ description: "A user-defined field name.",
36367
+ type: "string",
36368
+ const: "field"
36369
+ },
36370
+ {
36371
+ description: "A metadata key.",
36372
+ type: "string",
36373
+ const: "metadata-key"
36374
+ },
36375
+ {
36376
+ description: "A comment id.",
36377
+ type: "string",
36378
+ const: "comment"
36379
+ },
36380
+ {
36381
+ description: "A file path.",
36382
+ type: "string",
36383
+ const: "path"
36384
+ },
36385
+ {
36386
+ description: "A repository identity.",
36387
+ type: "string",
36388
+ const: "identity"
36389
+ }
36390
+ ]
36391
+ }
36392
+ }
36393
+ },
35725
36394
  TaskContentSet: {
35726
36395
  $schema: "https://json-schema.org/draft/2020-12/schema",
35727
36396
  title: "TaskContentSet",
@@ -36527,6 +37196,26 @@ where the task may be written, and nothing written here can loosen that. The pro
36527
37196
  a task is filed under never tightens it: a task's visibility is its own.`,
36528
37197
  $ref: "#/$defs/Classification",
36529
37198
  default: "public"
37199
+ },
37200
+ assignees: {
37201
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
37202
+ Linear display name, the string as given in a folder or in memory — in the order the
37203
+ source holds them; empty means unassigned.
37204
+
37205
+ **Present only for a source that opted in** with \`config.assignees: true\`
37206
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
37207
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
37208
+ source that has not opted in reads, and is written, exactly as it was before the field
37209
+ existed. On a write, absent leaves the item's assignees as they are, and present
37210
+ replaces them with exactly the people it names — the engine never hands a source more
37211
+ than one.`,
37212
+ type: [
37213
+ "array",
37214
+ "null"
37215
+ ],
37216
+ items: {
37217
+ type: "string"
37218
+ }
36530
37219
  }
36531
37220
  },
36532
37221
  required: [
@@ -37860,6 +38549,26 @@ where the task may be written, and nothing written here can loosen that. The pro
37860
38549
  a task is filed under never tightens it: a task's visibility is its own.`,
37861
38550
  $ref: "#/$defs/Classification",
37862
38551
  default: "public"
38552
+ },
38553
+ assignees: {
38554
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
38555
+ Linear display name, the string as given in a folder or in memory — in the order the
38556
+ source holds them; empty means unassigned.
38557
+
38558
+ **Present only for a source that opted in** with \`config.assignees: true\`
38559
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
38560
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
38561
+ source that has not opted in reads, and is written, exactly as it was before the field
38562
+ existed. On a write, absent leaves the item's assignees as they are, and present
38563
+ replaces them with exactly the people it names — the engine never hands a source more
38564
+ than one.`,
38565
+ type: [
38566
+ "array",
38567
+ "null"
38568
+ ],
38569
+ items: {
38570
+ type: "string"
38571
+ }
37863
38572
  }
37864
38573
  },
37865
38574
  required: [
@@ -40620,6 +41329,19 @@ moved, and no caller writes labels this way — and so is creation, which is a c
40620
41329
  items: {
40621
41330
  $ref: "#/$defs/Repository"
40622
41331
  }
41332
+ },
41333
+ assignees: {
41334
+ description: `Replaces every person the task is assigned to with exactly these — empty unassigns.
41335
+ The engine names at most one, and only to a source declaring
41336
+ [\`Capabilities::assignees\`](crate::Capabilities::assignees). A source refuses a person
41337
+ it cannot assign, naming them, rather than writing the rest without them.`,
41338
+ type: [
41339
+ "array",
41340
+ "null"
41341
+ ],
41342
+ items: {
41343
+ type: "string"
41344
+ }
40623
41345
  }
40624
41346
  },
40625
41347
  $defs: {
@@ -41038,6 +41760,26 @@ where the task may be written, and nothing written here can loosen that. The pro
41038
41760
  a task is filed under never tightens it: a task's visibility is its own.`,
41039
41761
  $ref: "#/$defs/Classification",
41040
41762
  default: "public"
41763
+ },
41764
+ assignees: {
41765
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
41766
+ Linear display name, the string as given in a folder or in memory — in the order the
41767
+ source holds them; empty means unassigned.
41768
+
41769
+ **Present only for a source that opted in** with \`config.assignees: true\`
41770
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
41771
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
41772
+ source that has not opted in reads, and is written, exactly as it was before the field
41773
+ existed. On a write, absent leaves the item's assignees as they are, and present
41774
+ replaces them with exactly the people it names — the engine never hands a source more
41775
+ than one.`,
41776
+ type: [
41777
+ "array",
41778
+ "null"
41779
+ ],
41780
+ items: {
41781
+ type: "string"
41782
+ }
41041
41783
  }
41042
41784
  },
41043
41785
  required: [
@@ -41291,6 +42033,11 @@ reach a public one.`,
41291
42033
  description: "[`TaskUpdate::repositories`].",
41292
42034
  type: "string",
41293
42035
  const: "repositories"
42036
+ },
42037
+ {
42038
+ description: "[`TaskUpdate::assignees`].",
42039
+ type: "string",
42040
+ const: "assignees"
41294
42041
  }
41295
42042
  ]
41296
42043
  }
@@ -41566,6 +42313,26 @@ where the task may be written, and nothing written here can loosen that. The pro
41566
42313
  a task is filed under never tightens it: a task's visibility is its own.`,
41567
42314
  $ref: "#/$defs/Classification",
41568
42315
  default: "public"
42316
+ },
42317
+ assignees: {
42318
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
42319
+ Linear display name, the string as given in a folder or in memory — in the order the
42320
+ source holds them; empty means unassigned.
42321
+
42322
+ **Present only for a source that opted in** with \`config.assignees: true\`
42323
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
42324
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
42325
+ source that has not opted in reads, and is written, exactly as it was before the field
42326
+ existed. On a write, absent leaves the item's assignees as they are, and present
42327
+ replaces them with exactly the people it names — the engine never hands a source more
42328
+ than one.`,
42329
+ type: [
42330
+ "array",
42331
+ "null"
42332
+ ],
42333
+ items: {
42334
+ type: "string"
42335
+ }
41569
42336
  }
41570
42337
  },
41571
42338
  required: [
@@ -41819,6 +42586,11 @@ reach a public one.`,
41819
42586
  description: "[`TaskUpdate::repositories`].",
41820
42587
  type: "string",
41821
42588
  const: "repositories"
42589
+ },
42590
+ {
42591
+ description: "[`TaskUpdate::assignees`].",
42592
+ type: "string",
42593
+ const: "assignees"
41822
42594
  }
41823
42595
  ]
41824
42596
  },
@@ -42477,8 +43249,7 @@ Never sent again: doing so could apply it twice.`,
42477
43249
  const: "written"
42478
43250
  },
42479
43251
  {
42480
- description: `Its priority guard declined: the task held a priority the guard does not name, and
42481
- nothing of it was written.`,
43252
+ description: "Its guard declined: the task held a priority `when_priority` does not name, or not\nexactly the people `when_assignees` names, and nothing of it was written.",
42482
43253
  type: "string",
42483
43254
  const: "held"
42484
43255
  },
@@ -43030,6 +43801,24 @@ no insignificant whitespace, UTF-8.`,
43030
43801
  $ref: "#/$defs/Repository"
43031
43802
  },
43032
43803
  default: null
43804
+ },
43805
+ assignee: {
43806
+ description: "The one person it is assigned to, replacing every person it holds — `null` unassigns\nit, and leaving the member out leaves its assignees as they are. Only for a source that\nopted in with `config.assignees: true`.",
43807
+ type: [
43808
+ "string",
43809
+ "null"
43810
+ ],
43811
+ "x-null-unsets": true
43812
+ },
43813
+ when_assignees: {
43814
+ description: "Write only while the task is assigned to exactly these people, whatever their order —\n`[]` only while it is unassigned. Otherwise nothing of the update is written and it\nanswers `held`. Left out, it sets no guard.",
43815
+ type: [
43816
+ "array",
43817
+ "null"
43818
+ ],
43819
+ items: {
43820
+ type: "string"
43821
+ }
43033
43822
  }
43034
43823
  },
43035
43824
  additionalProperties: false,
@@ -43168,6 +43957,11 @@ from nothing by the value alone.`,
43168
43957
  description: "[`TaskUpdate::repositories`].",
43169
43958
  type: "string",
43170
43959
  const: "repositories"
43960
+ },
43961
+ {
43962
+ description: "[`TaskUpdate::assignees`].",
43963
+ type: "string",
43964
+ const: "assignees"
43171
43965
  }
43172
43966
  ]
43173
43967
  },
@@ -44090,6 +44884,7 @@ var commandResponseRoots = {
44090
44884
  "task status reconcile": "StatusesReconciled",
44091
44885
  "task status complete": "IssuesCompleted",
44092
44886
  "task priority set": "TaskPrioritySet",
44887
+ "task assignee set": "TaskAssigneeSet",
44093
44888
  "task content set": "TaskContentSet",
44094
44889
  "task metadata set": "MetadataSet",
44095
44890
  "task attest": "Attested",
@@ -44138,7 +44933,7 @@ var commandAlternateRoots = {
44138
44933
  "project attestation check": ["ProjectAttestationCheck"],
44139
44934
  "project create": ["PlannedProject"]
44140
44935
  };
44141
- var partialResponseCommands = new Set(Object.keys(commandResponseRoots).filter((command) => command !== "config show" && command !== "cache clear" && command !== "sources list" && command !== "sources fields" && command !== "sources route" && command !== "sources sanitize" && command !== "project graph" && (!command.startsWith("task comment ") || command === "task comment add-many") && !command.endsWith(" metadata set") && !command.endsWith(" priority set") && !command.endsWith(" content set") && !command.startsWith("template ") && !command.endsWith(" render") && !command.endsWith(" answers") && command !== "task assets" && command !== "task relations" && command !== "task project-human" && !command.endsWith(" attest") && !command.endsWith(" attestation check") && command !== "project create" && command !== "document create"));
44936
+ var partialResponseCommands = new Set(Object.keys(commandResponseRoots).filter((command) => command !== "config show" && command !== "cache clear" && command !== "sources list" && command !== "sources fields" && command !== "sources route" && command !== "sources sanitize" && command !== "project graph" && (!command.startsWith("task comment ") || command === "task comment add-many") && !command.endsWith(" metadata set") && !command.endsWith(" priority set") && command !== "task assignee set" && !command.endsWith(" content set") && !command.startsWith("template ") && !command.endsWith(" render") && !command.endsWith(" answers") && command !== "task assets" && command !== "task relations" && command !== "task project-human" && !command.endsWith(" attest") && !command.endsWith(" attestation check") && command !== "project create" && command !== "document create"));
44142
44937
  function bodyArguments(options) {
44143
44938
  return "bodyFile" in options ? { args: ["--body-file", options.bodyFile] } : { args: [], input: options.body };
44144
44939
  }
@@ -44586,6 +45381,9 @@ function taskCopyFlags(options) {
44586
45381
  for (const priority of stringList("taskCopy", "whenDestinationPriority", options.whenDestinationPriority)) {
44587
45382
  conditions.push("--when-destination-priority", priority);
44588
45383
  }
45384
+ for (const person of stringList("taskCopy", "whenDestinationAssignees", options.whenDestinationAssignees)) {
45385
+ conditions.push("--when-destination-assignees", person);
45386
+ }
44589
45387
  return [
44590
45388
  ...copyFlags("taskCopy", options),
44591
45389
  ...conditions,
@@ -44858,6 +45656,14 @@ class OnetaskgraphClient {
44858
45656
  ...expectFlags("taskMetadataSet", options)
44859
45657
  ], undefined, options.sanitizeDryRun === true);
44860
45658
  }
45659
+ taskAssigneeSet(id, person, options = {}) {
45660
+ return this.run("task assignee set", [
45661
+ id,
45662
+ ...person === undefined ? [] : [stringOption("taskAssigneeSet", "person", person)],
45663
+ ...options.ifVersion === undefined ? [] : ["--if-version", stringOption("taskAssigneeSet", "ifVersion", options.ifVersion)],
45664
+ ...writePolicyFlags("taskAssigneeSet", options)
45665
+ ], undefined, options.sanitizeDryRun === true);
45666
+ }
44861
45667
  taskUpdate(id, options) {
44862
45668
  return this.run("task update", [id, ...taskUpdateFlags(options)], undefined, options.sanitizeDryRun === true);
44863
45669
  }
@@ -45019,6 +45825,9 @@ class OnetaskgraphClient {
45019
45825
  for (const id of stringList("taskCreate", "delivers", options.delivers)) {
45020
45826
  args.push("--delivers", id);
45021
45827
  }
45828
+ if (options.assignee !== undefined) {
45829
+ args.push("--assignee", stringOption("taskCreate", "assignee", options.assignee));
45830
+ }
45022
45831
  args.push(...assetFlags("taskCreate", options));
45023
45832
  return this.run("task create", [source, ...args], input, options.sanitizeDryRun === true);
45024
45833
  }
@@ -45159,7 +45968,7 @@ function assertCompleteCommandSurface() {
45159
45968
  }
45160
45969
 
45161
45970
  // src/index.ts
45162
- var VERSION = "0.14.13";
45971
+ var VERSION = "0.14.14";
45163
45972
  export {
45164
45973
  taskUpdateOptionFlags,
45165
45974
  taskUpdateFlags,