@onetaskgraph/sdk 0.14.13 → 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.
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 = 64;
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,19 @@ 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
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: []
19591
19714
  }
19592
19715
  },
19593
19716
  additionalProperties: false,
@@ -19732,6 +19855,34 @@ source reads and writes team-wide.`,
19732
19855
  }
19733
19856
  },
19734
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
+ ]
19735
19886
  }
19736
19887
  }
19737
19888
  },
@@ -22459,6 +22610,26 @@ where the task may be written, and nothing written here can loosen that. The pro
22459
22610
  a task is filed under never tightens it: a task's visibility is its own.`,
22460
22611
  $ref: "#/$defs/Classification",
22461
22612
  default: "public"
22613
+ },
22614
+ assignees: {
22615
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
22616
+ Linear display name, the string as given in a folder or in memory — in the order the
22617
+ source holds them; empty means unassigned.
22618
+
22619
+ **Present only for a source that opted in** with \`config.assignees: true\`
22620
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
22621
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
22622
+ source that has not opted in reads, and is written, exactly as it was before the field
22623
+ existed. On a write, absent leaves the item's assignees as they are, and present
22624
+ replaces them with exactly the people it names — the engine never hands a source more
22625
+ than one.`,
22626
+ type: [
22627
+ "array",
22628
+ "null"
22629
+ ],
22630
+ items: {
22631
+ type: "string"
22632
+ }
22462
22633
  }
22463
22634
  },
22464
22635
  required: [
@@ -25633,6 +25804,26 @@ where the task may be written, and nothing written here can loosen that. The pro
25633
25804
  a task is filed under never tightens it: a task's visibility is its own.`,
25634
25805
  $ref: "#/$defs/Classification",
25635
25806
  default: "public"
25807
+ },
25808
+ assignees: {
25809
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
25810
+ Linear display name, the string as given in a folder or in memory — in the order the
25811
+ source holds them; empty means unassigned.
25812
+
25813
+ **Present only for a source that opted in** with \`config.assignees: true\`
25814
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
25815
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
25816
+ source that has not opted in reads, and is written, exactly as it was before the field
25817
+ existed. On a write, absent leaves the item's assignees as they are, and present
25818
+ replaces them with exactly the people it names — the engine never hands a source more
25819
+ than one.`,
25820
+ type: [
25821
+ "array",
25822
+ "null"
25823
+ ],
25824
+ items: {
25825
+ type: "string"
25826
+ }
25636
25827
  }
25637
25828
  },
25638
25829
  required: [
@@ -28918,6 +29109,26 @@ where the task may be written, and nothing written here can loosen that. The pro
28918
29109
  a task is filed under never tightens it: a task's visibility is its own.`,
28919
29110
  $ref: "#/$defs/Classification",
28920
29111
  default: "public"
29112
+ },
29113
+ assignees: {
29114
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
29115
+ Linear display name, the string as given in a folder or in memory — in the order the
29116
+ source holds them; empty means unassigned.
29117
+
29118
+ **Present only for a source that opted in** with \`config.assignees: true\`
29119
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
29120
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
29121
+ source that has not opted in reads, and is written, exactly as it was before the field
29122
+ existed. On a write, absent leaves the item's assignees as they are, and present
29123
+ replaces them with exactly the people it names — the engine never hands a source more
29124
+ than one.`,
29125
+ type: [
29126
+ "array",
29127
+ "null"
29128
+ ],
29129
+ items: {
29130
+ type: "string"
29131
+ }
28921
29132
  }
28922
29133
  },
28923
29134
  required: [
@@ -29796,6 +30007,26 @@ where the task may be written, and nothing written here can loosen that. The pro
29796
30007
  a task is filed under never tightens it: a task's visibility is its own.`,
29797
30008
  $ref: "#/$defs/Classification",
29798
30009
  default: "public"
30010
+ },
30011
+ assignees: {
30012
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
30013
+ Linear display name, the string as given in a folder or in memory — in the order the
30014
+ source holds them; empty means unassigned.
30015
+
30016
+ **Present only for a source that opted in** with \`config.assignees: true\`
30017
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
30018
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
30019
+ source that has not opted in reads, and is written, exactly as it was before the field
30020
+ existed. On a write, absent leaves the item's assignees as they are, and present
30021
+ replaces them with exactly the people it names — the engine never hands a source more
30022
+ than one.`,
30023
+ type: [
30024
+ "array",
30025
+ "null"
30026
+ ],
30027
+ items: {
30028
+ type: "string"
30029
+ }
29799
30030
  }
29800
30031
  },
29801
30032
  required: [
@@ -31613,6 +31844,26 @@ where the task may be written, and nothing written here can loosen that. The pro
31613
31844
  a task is filed under never tightens it: a task's visibility is its own.`,
31614
31845
  $ref: "#/$defs/Classification",
31615
31846
  default: "public"
31847
+ },
31848
+ assignees: {
31849
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
31850
+ Linear display name, the string as given in a folder or in memory — in the order the
31851
+ source holds them; empty means unassigned.
31852
+
31853
+ **Present only for a source that opted in** with \`config.assignees: true\`
31854
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
31855
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
31856
+ source that has not opted in reads, and is written, exactly as it was before the field
31857
+ existed. On a write, absent leaves the item's assignees as they are, and present
31858
+ replaces them with exactly the people it names — the engine never hands a source more
31859
+ than one.`,
31860
+ type: [
31861
+ "array",
31862
+ "null"
31863
+ ],
31864
+ items: {
31865
+ type: "string"
31866
+ }
31616
31867
  }
31617
31868
  },
31618
31869
  required: [
@@ -32646,6 +32897,11 @@ predates assets says nothing here and is never handed bytes it would drop.`,
32646
32897
  $ref: "#/$defs/Support",
32647
32898
  default: "unsupported"
32648
32899
  },
32900
+ assignees: {
32901
+ 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.",
32902
+ $ref: "#/$defs/Support",
32903
+ default: "unsupported"
32904
+ },
32649
32905
  filter_by_priority: {
32650
32906
  description: `Whether the source keeps only the tasks whose priority a query lists, itself.
32651
32907
 
@@ -33089,6 +33345,11 @@ predates assets says nothing here and is never handed bytes it would drop.`,
33089
33345
  $ref: "#/$defs/Support",
33090
33346
  default: "unsupported"
33091
33347
  },
33348
+ assignees: {
33349
+ 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.",
33350
+ $ref: "#/$defs/Support",
33351
+ default: "unsupported"
33352
+ },
33092
33353
  filter_by_priority: {
33093
33354
  description: `Whether the source keeps only the tasks whose priority a query lists, itself.
33094
33355
 
@@ -33943,6 +34204,26 @@ where the task may be written, and nothing written here can loosen that. The pro
33943
34204
  a task is filed under never tightens it: a task's visibility is its own.`,
33944
34205
  $ref: "#/$defs/Classification",
33945
34206
  default: "public"
34207
+ },
34208
+ assignees: {
34209
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
34210
+ Linear display name, the string as given in a folder or in memory — in the order the
34211
+ source holds them; empty means unassigned.
34212
+
34213
+ **Present only for a source that opted in** with \`config.assignees: true\`
34214
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
34215
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
34216
+ source that has not opted in reads, and is written, exactly as it was before the field
34217
+ existed. On a write, absent leaves the item's assignees as they are, and present
34218
+ replaces them with exactly the people it names — the engine never hands a source more
34219
+ than one.`,
34220
+ type: [
34221
+ "array",
34222
+ "null"
34223
+ ],
34224
+ items: {
34225
+ type: "string"
34226
+ }
33946
34227
  }
33947
34228
  },
33948
34229
  required: [
@@ -35494,6 +35775,26 @@ where the task may be written, and nothing written here can loosen that. The pro
35494
35775
  a task is filed under never tightens it: a task's visibility is its own.`,
35495
35776
  $ref: "#/$defs/Classification",
35496
35777
  default: "public"
35778
+ },
35779
+ assignees: {
35780
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
35781
+ Linear display name, the string as given in a folder or in memory — in the order the
35782
+ source holds them; empty means unassigned.
35783
+
35784
+ **Present only for a source that opted in** with \`config.assignees: true\`
35785
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
35786
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
35787
+ source that has not opted in reads, and is written, exactly as it was before the field
35788
+ existed. On a write, absent leaves the item's assignees as they are, and present
35789
+ replaces them with exactly the people it names — the engine never hands a source more
35790
+ than one.`,
35791
+ type: [
35792
+ "array",
35793
+ "null"
35794
+ ],
35795
+ items: {
35796
+ type: "string"
35797
+ }
35497
35798
  }
35498
35799
  },
35499
35800
  required: [
@@ -35613,115 +35914,519 @@ from nothing by the value alone.`,
35613
35914
  }
35614
35915
  ]
35615
35916
  },
35616
- Label: {
35617
- description: "A tag a source attaches to work.",
35917
+ Label: {
35918
+ description: "A tag a source attaches to work.",
35919
+ type: "object",
35920
+ properties: {
35921
+ id: {
35922
+ description: "The source's own opaque identifier.",
35923
+ $ref: "#/$defs/NativeId"
35924
+ },
35925
+ name: {
35926
+ description: "What a user filtering across sources actually types.",
35927
+ type: "string"
35928
+ },
35929
+ color: {
35930
+ description: "The source's own colour for the label, when it has one.",
35931
+ type: [
35932
+ "string",
35933
+ "null"
35934
+ ]
35935
+ }
35936
+ },
35937
+ required: [
35938
+ "id",
35939
+ "name"
35940
+ ]
35941
+ },
35942
+ Location: {
35943
+ 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.',
35944
+ oneOf: [
35945
+ {
35946
+ description: "The entity lives at an external website, and this is a link a reader can open.",
35947
+ type: "object",
35948
+ properties: {
35949
+ url: {
35950
+ type: "string"
35951
+ }
35952
+ },
35953
+ required: [
35954
+ "url"
35955
+ ],
35956
+ additionalProperties: false
35957
+ },
35958
+ {
35959
+ description: `The entity is a file on the machine the source runs on, and this is that file's
35960
+ absolute path, so a reader can print the path or read the contents out.`,
35961
+ type: "object",
35962
+ properties: {
35963
+ path: {
35964
+ type: "string"
35965
+ }
35966
+ },
35967
+ required: [
35968
+ "path"
35969
+ ],
35970
+ additionalProperties: false
35971
+ }
35972
+ ]
35973
+ },
35974
+ Repository: {
35975
+ description: "A repository identified by its normalized origin, without a URL scheme or `.git` suffix.",
35976
+ type: "string"
35977
+ },
35978
+ TaskRef: {
35979
+ description: "One task named by another task's [`Task::delivers`] or [`Task::delivered_by`].\n\nA string with one of two spellings, decided the way a [`DependencyEndpoint`] decides it:\none holding a colon is `<source>:<native>` and names a task of any source, and one\nwithout is a bare native id naming a task of the source that holds the list. So a\nnative id holding a colon cannot be named bare, exactly as it cannot in\n`onetaskgraph.depends_on`.",
35980
+ type: "string"
35981
+ },
35982
+ Classification: {
35983
+ description: `Who may read an item: anybody, or only those who may read where it is kept.
35984
+
35985
+ Two values, ordered so the stricter is the greater: [\`strictest\`](Self::strictest) of
35986
+ any two is the one an item they both describe carries. Nothing combines them any other
35987
+ way, which is what makes an explicit \`public\` unable to loosen a private repository, or
35988
+ a document's private project — a classification only ever tightens. A task's project
35989
+ never tightens the task.
35990
+
35991
+ It is recorded on the item and travels with it. A source whose backend has no notion of
35992
+ its own records it under [\`Self::METADATA_KEY\`], exactly as it records
35993
+ [\`Repository::METADATA_KEY\`], and only while it is \`private\`: an item without it is
35994
+ public, so every item written before this existed reads as it did.`,
35995
+ oneOf: [
35996
+ {
35997
+ description: "Anybody who may read the destination may read it.",
35998
+ type: "string",
35999
+ const: "public"
36000
+ },
36001
+ {
36002
+ description: `It may be written only to a destination verified private, and nothing of it may
36003
+ reach a public one.`,
36004
+ type: "string",
36005
+ const: "private"
36006
+ }
36007
+ ]
36008
+ }
36009
+ }
36010
+ },
36011
+ TaskAssetNames: {
36012
+ $schema: "https://json-schema.org/draft/2020-12/schema",
36013
+ title: "TaskAssetNames",
36014
+ description: "What `task assets` answers with under `--json`: the name of every image asset it wrote, in\nthe order the task's content first references them — `[]` for a task holding none.",
36015
+ type: "array",
36016
+ items: {
36017
+ $ref: "#/$defs/AssetName"
36018
+ },
36019
+ $defs: {
36020
+ AssetName: {
36021
+ description: "One asset's name: a bare file name ending in an accepted image extension.\n\nValidated wherever one is built, deserialized included: non-empty, no `/`, no `\\`, no\n`..`, no whitespace, control character or parenthesis — none of which a bare Markdown link\ntarget can hold — and ending, case-insensitively, in `.png`, `.jpg`, `.jpeg`, `.gif` or\n`.webp` after a non-empty stem. The name is kept exactly as written, case included: it is\nthe text a reference names and the file name a source stores the bytes under.",
36022
+ type: "string"
36023
+ }
36024
+ }
36025
+ },
36026
+ TaskAssigneeSet: {
36027
+ $schema: "https://json-schema.org/draft/2020-12/schema",
36028
+ title: "TaskAssigneeSet",
36029
+ description: "What `task assignee set` answers with.",
36030
+ type: "object",
36031
+ properties: {
36032
+ id: {
36033
+ description: "The task whose assignee was set.",
36034
+ $ref: "#/$defs/GlobalId"
36035
+ },
36036
+ assignees: {
36037
+ description: `Every person the task is assigned to as its source reads it back after the write —
36038
+ the one person named, or none.`,
36039
+ type: "array",
36040
+ items: {
36041
+ type: "string"
36042
+ }
36043
+ },
36044
+ result: {
36045
+ description: `What the task holds after the write — its version where the write's own answers
36046
+ determine it.`,
36047
+ anyOf: [
36048
+ {
36049
+ $ref: "#/$defs/WriteResult"
36050
+ },
36051
+ {
36052
+ type: "null"
36053
+ }
36054
+ ]
36055
+ },
36056
+ sanitization: {
36057
+ anyOf: [
36058
+ {
36059
+ $ref: "#/$defs/Sanitization"
36060
+ },
36061
+ {
36062
+ type: "null"
36063
+ }
36064
+ ]
36065
+ }
36066
+ },
36067
+ required: [
36068
+ "id",
36069
+ "assignees"
36070
+ ],
36071
+ $defs: {
36072
+ GlobalId: {
36073
+ description: `One item, qualified by the source it came from.
36074
+
36075
+ Rendered \`<source>:<native>\` and parsed by splitting on the **first** colon,
36076
+ so a native id may contain colons freely.`,
36077
+ type: "string"
36078
+ },
36079
+ WriteResult: {
36080
+ description: `What an item holds once a write is done, read off the write's own responses — and, for an
36081
+ expected write, what each mutation it sent came to.
36082
+
36083
+ Every write verb and every item a copy lands answers one, with no request added for it: a
36084
+ field the write kept is what the read before it held. \`version\` is \`null\` where the source
36085
+ cannot vouch for a token from its write's responses — a GitHub board for an item it has just
36086
+ written, a stdio-hosted plugin, an in-memory source — and otherwise the token a read would
36087
+ then give.`,
36088
+ type: "object",
36089
+ properties: {
36090
+ version: {
36091
+ description: "The item's version after the write, where the write's responses determine it.",
36092
+ type: [
36093
+ "string",
36094
+ "null"
36095
+ ]
36096
+ },
36097
+ parts: {
36098
+ description: "One per mutation an expected write sent, in the order sent — absent for a write made\nwithout `--expect`.",
36099
+ type: [
36100
+ "array",
36101
+ "null"
36102
+ ],
36103
+ items: {
36104
+ $ref: "#/$defs/WritePart"
36105
+ }
36106
+ },
36107
+ status: {
36108
+ 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.",
36109
+ anyOf: [
36110
+ {
36111
+ $ref: "#/$defs/Status"
36112
+ },
36113
+ {
36114
+ type: "null"
36115
+ }
36116
+ ],
36117
+ default: null
36118
+ },
36119
+ priority: {
36120
+ 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.",
36121
+ anyOf: [
36122
+ {
36123
+ $ref: "#/$defs/Priority"
36124
+ },
36125
+ {
36126
+ type: "null"
36127
+ }
36128
+ ],
36129
+ default: null
36130
+ }
36131
+ }
36132
+ },
36133
+ WritePart: {
36134
+ description: "One mutation of an expected write.",
36135
+ type: "object",
36136
+ properties: {
36137
+ part: {
36138
+ description: "Which part it was, in the source's words: `fields`, `issue`, `comment`.",
36139
+ type: "string"
36140
+ },
36141
+ fields: {
36142
+ description: "Each field it set, with the value the response shows.",
36143
+ type: "object",
36144
+ additionalProperties: true
36145
+ }
36146
+ },
36147
+ required: [
36148
+ "part",
36149
+ "fields"
36150
+ ],
36151
+ oneOf: [
36152
+ {
36153
+ description: "The backend answered that it was applied.",
36154
+ type: "object",
36155
+ properties: {
36156
+ outcome: {
36157
+ type: "string",
36158
+ const: "landed"
36159
+ }
36160
+ },
36161
+ required: [
36162
+ "outcome"
36163
+ ]
36164
+ },
36165
+ {
36166
+ description: "The backend answered that it was refused.",
36167
+ type: "object",
36168
+ properties: {
36169
+ error: {
36170
+ description: "What the backend said.",
36171
+ type: "string"
36172
+ },
36173
+ stale: {
36174
+ description: `Whether it was refused because an id the write took from a primed context — an
36175
+ item's node id, a field's or an option's — no longer resolves. Such a part is
36176
+ sent again once, after one read.`,
36177
+ type: "boolean",
36178
+ default: false
36179
+ },
36180
+ outcome: {
36181
+ type: "string",
36182
+ const: "rejected"
36183
+ }
36184
+ },
36185
+ required: [
36186
+ "outcome",
36187
+ "error"
36188
+ ]
36189
+ },
36190
+ {
36191
+ description: `The request left and no answer came back, so whether it was applied cannot be known.
36192
+ Never sent again: doing so could apply it twice.`,
36193
+ type: "object",
36194
+ properties: {
36195
+ error: {
36196
+ description: "What went wrong.",
36197
+ type: "string"
36198
+ },
36199
+ outcome: {
36200
+ type: "string",
36201
+ const: "unknown"
36202
+ }
36203
+ },
36204
+ required: [
36205
+ "outcome",
36206
+ "error"
36207
+ ]
36208
+ }
36209
+ ]
36210
+ },
36211
+ Status: {
36212
+ description: `A source's status, kept in both normalised and original form.
36213
+
36214
+ \`category\` is what every filter compares against; \`name\` is the source's own
36215
+ wording, preserved so display never flattens "In Review" into "In Progress".`,
36216
+ type: "object",
36217
+ properties: {
36218
+ category: {
36219
+ description: "The normalised value filters compare against.",
36220
+ $ref: "#/$defs/StatusCategory"
36221
+ },
36222
+ name: {
36223
+ description: "The source's own label for this status.",
36224
+ type: "string"
36225
+ }
36226
+ },
36227
+ required: [
36228
+ "category",
36229
+ "name"
36230
+ ]
36231
+ },
36232
+ StatusCategory: {
36233
+ description: "The normalised status vocabulary shared across every source.",
36234
+ oneOf: [
36235
+ {
36236
+ description: "Written down but not yet committed to as work.",
36237
+ type: "string",
36238
+ const: "draft"
36239
+ },
36240
+ {
36241
+ description: "Known about, not yet accepted as ready to work.",
36242
+ type: "string",
36243
+ const: "backlog"
36244
+ },
36245
+ {
36246
+ description: "Accepted and ready to be picked up, and nothing has claimed it.",
36247
+ type: "string",
36248
+ const: "todo"
36249
+ },
36250
+ {
36251
+ description: "Claimed by work that will do it, and not yet started.",
36252
+ type: "string",
36253
+ const: "queued"
36254
+ },
36255
+ {
36256
+ description: "Being worked on.",
36257
+ type: "string",
36258
+ const: "in-progress"
36259
+ },
36260
+ {
36261
+ description: "Finished.",
36262
+ type: "string",
36263
+ const: "done"
36264
+ },
36265
+ {
36266
+ description: "Abandoned.",
36267
+ type: "string",
36268
+ const: "cancelled"
36269
+ },
36270
+ {
36271
+ description: "The source reported a status this vocabulary cannot place.",
36272
+ type: "string",
36273
+ const: "unknown"
36274
+ }
36275
+ ]
36276
+ },
36277
+ Priority: {
36278
+ description: `How much a task matters, in the one vocabulary every source is normalised into.
36279
+
36280
+ Five values, most pressing first after [\`None\`](Self::None): Linear's own priority has
36281
+ exactly these, and a source whose backend has none of its own maps its representation
36282
+ onto them. \`none\` is a value rather than an absent field, because "no priority is set" is
36283
+ something a person sets — writing \`none\` clears a priority — and a reader tells it apart
36284
+ from nothing by the value alone.`,
36285
+ oneOf: [
36286
+ {
36287
+ description: "No priority is set.",
36288
+ type: "string",
36289
+ const: "none"
36290
+ },
36291
+ {
36292
+ description: "Drop everything for it.",
36293
+ type: "string",
36294
+ const: "urgent"
36295
+ },
36296
+ {
36297
+ description: "Next, before the rest.",
36298
+ type: "string",
36299
+ const: "high"
36300
+ },
36301
+ {
36302
+ description: "In its turn.",
36303
+ type: "string",
36304
+ const: "medium"
36305
+ },
36306
+ {
36307
+ description: "When there is nothing more pressing.",
36308
+ type: "string",
36309
+ const: "low"
36310
+ }
36311
+ ]
36312
+ },
36313
+ Sanitization: {
36314
+ 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.",
35618
36315
  type: "object",
35619
36316
  properties: {
35620
- id: {
35621
- description: "The source's own opaque identifier.",
35622
- $ref: "#/$defs/NativeId"
36317
+ replaced: {
36318
+ description: "Spans the writes' own sanitisations rewrote.",
36319
+ type: "integer",
36320
+ format: "uint32",
36321
+ minimum: 0
35623
36322
  },
35624
- name: {
35625
- description: "What a user filtering across sources actually types.",
35626
- type: "string"
36323
+ side_effect: {
36324
+ description: "Each field or comment of an item sanitisation changed beyond the write itself.",
36325
+ type: "array",
36326
+ items: {
36327
+ $ref: "#/$defs/SideEffect"
36328
+ }
35627
36329
  },
35628
- color: {
35629
- description: "The source's own colour for the label, when it has one.",
35630
- type: [
35631
- "string",
35632
- "null"
35633
- ]
36330
+ dry_run: {
36331
+ description: "Whether nothing was written, the changes only reported.",
36332
+ type: "boolean"
35634
36333
  }
35635
36334
  },
35636
36335
  required: [
35637
- "id",
35638
- "name"
36336
+ "replaced",
36337
+ "side_effect",
36338
+ "dry_run"
35639
36339
  ]
35640
36340
  },
35641
- Location: {
35642
- 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.',
36341
+ SideEffect: {
36342
+ description: "One field or comment of an item a sanitisation changed, named by screened locators.",
36343
+ type: "object",
36344
+ properties: {
36345
+ item: {
36346
+ description: "The item, by its qualified id as screened.",
36347
+ $ref: "#/$defs/Locator"
36348
+ },
36349
+ field: {
36350
+ description: "The field — `content`, `title`, `label`, `metadata:<key>` — or `comment:<id>`.",
36351
+ $ref: "#/$defs/Locator"
36352
+ }
36353
+ },
36354
+ required: [
36355
+ "item",
36356
+ "field"
36357
+ ]
36358
+ },
36359
+ Locator: {
36360
+ description: "A screened locator: the string verbatim, or its redacted form.",
35643
36361
  oneOf: [
35644
36362
  {
35645
- description: "The entity lives at an external website, and this is a link a reader can open.",
35646
- type: "object",
35647
- properties: {
35648
- url: {
35649
- type: "string"
35650
- }
35651
- },
35652
- required: [
35653
- "url"
35654
- ],
35655
- additionalProperties: false
36363
+ type: "string"
35656
36364
  },
35657
36365
  {
35658
- description: `The entity is a file on the machine the source runs on, and this is that file's
35659
- absolute path, so a reader can print the path or read the contents out.`,
35660
36366
  type: "object",
35661
36367
  properties: {
35662
- path: {
35663
- type: "string"
36368
+ redacted: {
36369
+ const: true
36370
+ },
36371
+ kind: {
36372
+ $ref: "#/$defs/LocatorKind"
36373
+ },
36374
+ ordinal: {
36375
+ type: "integer",
36376
+ minimum: 1
35664
36377
  }
35665
36378
  },
35666
36379
  required: [
35667
- "path"
36380
+ "redacted",
36381
+ "kind",
36382
+ "ordinal"
35668
36383
  ],
35669
36384
  additionalProperties: false
35670
36385
  }
35671
36386
  ]
35672
36387
  },
35673
- Repository: {
35674
- description: "A repository identified by its normalized origin, without a URL scheme or `.git` suffix.",
35675
- type: "string"
35676
- },
35677
- TaskRef: {
35678
- description: "One task named by another task's [`Task::delivers`] or [`Task::delivered_by`].\n\nA string with one of two spellings, decided the way a [`DependencyEndpoint`] decides it:\none holding a colon is `<source>:<native>` and names a task of any source, and one\nwithout is a bare native id naming a task of the source that holds the list. So a\nnative id holding a colon cannot be named bare, exactly as it cannot in\n`onetaskgraph.depends_on`.",
35679
- type: "string"
35680
- },
35681
- Classification: {
35682
- description: `Who may read an item: anybody, or only those who may read where it is kept.
35683
-
35684
- Two values, ordered so the stricter is the greater: [\`strictest\`](Self::strictest) of
35685
- any two is the one an item they both describe carries. Nothing combines them any other
35686
- way, which is what makes an explicit \`public\` unable to loosen a private repository, or
35687
- a document's private project — a classification only ever tightens. A task's project
35688
- never tightens the task.
35689
-
35690
- It is recorded on the item and travels with it. A source whose backend has no notion of
35691
- its own records it under [\`Self::METADATA_KEY\`], exactly as it records
35692
- [\`Repository::METADATA_KEY\`], and only while it is \`private\`: an item without it is
35693
- public, so every item written before this existed reads as it did.`,
36388
+ LocatorKind: {
36389
+ description: "What a locator names.",
35694
36390
  oneOf: [
35695
36391
  {
35696
- description: "Anybody who may read the destination may read it.",
36392
+ description: "A source name.",
35697
36393
  type: "string",
35698
- const: "public"
36394
+ const: "source"
35699
36395
  },
35700
36396
  {
35701
- description: `It may be written only to a destination verified private, and nothing of it may
35702
- reach a public one.`,
36397
+ description: "An item id.",
35703
36398
  type: "string",
35704
- const: "private"
36399
+ const: "item"
36400
+ },
36401
+ {
36402
+ description: "A user-defined field name.",
36403
+ type: "string",
36404
+ const: "field"
36405
+ },
36406
+ {
36407
+ description: "A metadata key.",
36408
+ type: "string",
36409
+ const: "metadata-key"
36410
+ },
36411
+ {
36412
+ description: "A comment id.",
36413
+ type: "string",
36414
+ const: "comment"
36415
+ },
36416
+ {
36417
+ description: "A file path.",
36418
+ type: "string",
36419
+ const: "path"
36420
+ },
36421
+ {
36422
+ description: "A repository identity.",
36423
+ type: "string",
36424
+ const: "identity"
35705
36425
  }
35706
36426
  ]
35707
36427
  }
35708
36428
  }
35709
36429
  },
35710
- TaskAssetNames: {
35711
- $schema: "https://json-schema.org/draft/2020-12/schema",
35712
- title: "TaskAssetNames",
35713
- description: "What `task assets` answers with under `--json`: the name of every image asset it wrote, in\nthe order the task's content first references them — `[]` for a task holding none.",
35714
- type: "array",
35715
- items: {
35716
- $ref: "#/$defs/AssetName"
35717
- },
35718
- $defs: {
35719
- AssetName: {
35720
- description: "One asset's name: a bare file name ending in an accepted image extension.\n\nValidated wherever one is built, deserialized included: non-empty, no `/`, no `\\`, no\n`..`, no whitespace, control character or parenthesis — none of which a bare Markdown link\ntarget can hold — and ending, case-insensitively, in `.png`, `.jpg`, `.jpeg`, `.gif` or\n`.webp` after a non-empty stem. The name is kept exactly as written, case included: it is\nthe text a reference names and the file name a source stores the bytes under.",
35721
- type: "string"
35722
- }
35723
- }
35724
- },
35725
36430
  TaskContentSet: {
35726
36431
  $schema: "https://json-schema.org/draft/2020-12/schema",
35727
36432
  title: "TaskContentSet",
@@ -36527,6 +37232,26 @@ where the task may be written, and nothing written here can loosen that. The pro
36527
37232
  a task is filed under never tightens it: a task's visibility is its own.`,
36528
37233
  $ref: "#/$defs/Classification",
36529
37234
  default: "public"
37235
+ },
37236
+ assignees: {
37237
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
37238
+ Linear display name, the string as given in a folder or in memory — in the order the
37239
+ source holds them; empty means unassigned.
37240
+
37241
+ **Present only for a source that opted in** with \`config.assignees: true\`
37242
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
37243
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
37244
+ source that has not opted in reads, and is written, exactly as it was before the field
37245
+ existed. On a write, absent leaves the item's assignees as they are, and present
37246
+ replaces them with exactly the people it names — the engine never hands a source more
37247
+ than one.`,
37248
+ type: [
37249
+ "array",
37250
+ "null"
37251
+ ],
37252
+ items: {
37253
+ type: "string"
37254
+ }
36530
37255
  }
36531
37256
  },
36532
37257
  required: [
@@ -37860,6 +38585,26 @@ where the task may be written, and nothing written here can loosen that. The pro
37860
38585
  a task is filed under never tightens it: a task's visibility is its own.`,
37861
38586
  $ref: "#/$defs/Classification",
37862
38587
  default: "public"
38588
+ },
38589
+ assignees: {
38590
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
38591
+ Linear display name, the string as given in a folder or in memory — in the order the
38592
+ source holds them; empty means unassigned.
38593
+
38594
+ **Present only for a source that opted in** with \`config.assignees: true\`
38595
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
38596
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
38597
+ source that has not opted in reads, and is written, exactly as it was before the field
38598
+ existed. On a write, absent leaves the item's assignees as they are, and present
38599
+ replaces them with exactly the people it names — the engine never hands a source more
38600
+ than one.`,
38601
+ type: [
38602
+ "array",
38603
+ "null"
38604
+ ],
38605
+ items: {
38606
+ type: "string"
38607
+ }
37863
38608
  }
37864
38609
  },
37865
38610
  required: [
@@ -40620,6 +41365,19 @@ moved, and no caller writes labels this way — and so is creation, which is a c
40620
41365
  items: {
40621
41366
  $ref: "#/$defs/Repository"
40622
41367
  }
41368
+ },
41369
+ assignees: {
41370
+ description: `Replaces every person the task is assigned to with exactly these — empty unassigns.
41371
+ The engine names at most one, and only to a source declaring
41372
+ [\`Capabilities::assignees\`](crate::Capabilities::assignees). A source refuses a person
41373
+ it cannot assign, naming them, rather than writing the rest without them.`,
41374
+ type: [
41375
+ "array",
41376
+ "null"
41377
+ ],
41378
+ items: {
41379
+ type: "string"
41380
+ }
40623
41381
  }
40624
41382
  },
40625
41383
  $defs: {
@@ -41038,6 +41796,26 @@ where the task may be written, and nothing written here can loosen that. The pro
41038
41796
  a task is filed under never tightens it: a task's visibility is its own.`,
41039
41797
  $ref: "#/$defs/Classification",
41040
41798
  default: "public"
41799
+ },
41800
+ assignees: {
41801
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
41802
+ Linear display name, the string as given in a folder or in memory — in the order the
41803
+ source holds them; empty means unassigned.
41804
+
41805
+ **Present only for a source that opted in** with \`config.assignees: true\`
41806
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
41807
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
41808
+ source that has not opted in reads, and is written, exactly as it was before the field
41809
+ existed. On a write, absent leaves the item's assignees as they are, and present
41810
+ replaces them with exactly the people it names — the engine never hands a source more
41811
+ than one.`,
41812
+ type: [
41813
+ "array",
41814
+ "null"
41815
+ ],
41816
+ items: {
41817
+ type: "string"
41818
+ }
41041
41819
  }
41042
41820
  },
41043
41821
  required: [
@@ -41291,6 +42069,11 @@ reach a public one.`,
41291
42069
  description: "[`TaskUpdate::repositories`].",
41292
42070
  type: "string",
41293
42071
  const: "repositories"
42072
+ },
42073
+ {
42074
+ description: "[`TaskUpdate::assignees`].",
42075
+ type: "string",
42076
+ const: "assignees"
41294
42077
  }
41295
42078
  ]
41296
42079
  }
@@ -41566,6 +42349,26 @@ where the task may be written, and nothing written here can loosen that. The pro
41566
42349
  a task is filed under never tightens it: a task's visibility is its own.`,
41567
42350
  $ref: "#/$defs/Classification",
41568
42351
  default: "public"
42352
+ },
42353
+ assignees: {
42354
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
42355
+ Linear display name, the string as given in a folder or in memory — in the order the
42356
+ source holds them; empty means unassigned.
42357
+
42358
+ **Present only for a source that opted in** with \`config.assignees: true\`
42359
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
42360
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
42361
+ source that has not opted in reads, and is written, exactly as it was before the field
42362
+ existed. On a write, absent leaves the item's assignees as they are, and present
42363
+ replaces them with exactly the people it names — the engine never hands a source more
42364
+ than one.`,
42365
+ type: [
42366
+ "array",
42367
+ "null"
42368
+ ],
42369
+ items: {
42370
+ type: "string"
42371
+ }
41569
42372
  }
41570
42373
  },
41571
42374
  required: [
@@ -41819,6 +42622,11 @@ reach a public one.`,
41819
42622
  description: "[`TaskUpdate::repositories`].",
41820
42623
  type: "string",
41821
42624
  const: "repositories"
42625
+ },
42626
+ {
42627
+ description: "[`TaskUpdate::assignees`].",
42628
+ type: "string",
42629
+ const: "assignees"
41822
42630
  }
41823
42631
  ]
41824
42632
  },
@@ -42477,8 +43285,7 @@ Never sent again: doing so could apply it twice.`,
42477
43285
  const: "written"
42478
43286
  },
42479
43287
  {
42480
- description: `Its priority guard declined: the task held a priority the guard does not name, and
42481
- nothing of it was written.`,
43288
+ 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
43289
  type: "string",
42483
43290
  const: "held"
42484
43291
  },
@@ -43030,6 +43837,24 @@ no insignificant whitespace, UTF-8.`,
43030
43837
  $ref: "#/$defs/Repository"
43031
43838
  },
43032
43839
  default: null
43840
+ },
43841
+ assignee: {
43842
+ 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`.",
43843
+ type: [
43844
+ "string",
43845
+ "null"
43846
+ ],
43847
+ "x-null-unsets": true
43848
+ },
43849
+ when_assignees: {
43850
+ 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.",
43851
+ type: [
43852
+ "array",
43853
+ "null"
43854
+ ],
43855
+ items: {
43856
+ type: "string"
43857
+ }
43033
43858
  }
43034
43859
  },
43035
43860
  additionalProperties: false,
@@ -43168,6 +43993,11 @@ from nothing by the value alone.`,
43168
43993
  description: "[`TaskUpdate::repositories`].",
43169
43994
  type: "string",
43170
43995
  const: "repositories"
43996
+ },
43997
+ {
43998
+ description: "[`TaskUpdate::assignees`].",
43999
+ type: "string",
44000
+ const: "assignees"
43171
44001
  }
43172
44002
  ]
43173
44003
  },
@@ -43882,6 +44712,14 @@ it is; absent — and left out of the JSON — when there is none.`,
43882
44712
  type: "null"
43883
44713
  }
43884
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: []
43885
44723
  }
43886
44724
  },
43887
44725
  required: [
@@ -44033,6 +44871,47 @@ it is; absent — and left out of the JSON — when there is none.`,
44033
44871
  "name",
44034
44872
  "message"
44035
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
+ ]
44036
44915
  }
44037
44916
  }
44038
44917
  }
@@ -44090,6 +44969,7 @@ var commandResponseRoots = {
44090
44969
  "task status reconcile": "StatusesReconciled",
44091
44970
  "task status complete": "IssuesCompleted",
44092
44971
  "task priority set": "TaskPrioritySet",
44972
+ "task assignee set": "TaskAssigneeSet",
44093
44973
  "task content set": "TaskContentSet",
44094
44974
  "task metadata set": "MetadataSet",
44095
44975
  "task attest": "Attested",
@@ -44138,7 +45018,7 @@ var commandAlternateRoots = {
44138
45018
  "project attestation check": ["ProjectAttestationCheck"],
44139
45019
  "project create": ["PlannedProject"]
44140
45020
  };
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"));
45021
+ 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
45022
  function bodyArguments(options) {
44143
45023
  return "bodyFile" in options ? { args: ["--body-file", options.bodyFile] } : { args: [], input: options.body };
44144
45024
  }
@@ -44586,6 +45466,9 @@ function taskCopyFlags(options) {
44586
45466
  for (const priority of stringList("taskCopy", "whenDestinationPriority", options.whenDestinationPriority)) {
44587
45467
  conditions.push("--when-destination-priority", priority);
44588
45468
  }
45469
+ for (const person of stringList("taskCopy", "whenDestinationAssignees", options.whenDestinationAssignees)) {
45470
+ conditions.push("--when-destination-assignees", person);
45471
+ }
44589
45472
  return [
44590
45473
  ...copyFlags("taskCopy", options),
44591
45474
  ...conditions,
@@ -44858,6 +45741,14 @@ class OnetaskgraphClient {
44858
45741
  ...expectFlags("taskMetadataSet", options)
44859
45742
  ], undefined, options.sanitizeDryRun === true);
44860
45743
  }
45744
+ taskAssigneeSet(id, person, options = {}) {
45745
+ return this.run("task assignee set", [
45746
+ id,
45747
+ ...person === undefined ? [] : [stringOption("taskAssigneeSet", "person", person)],
45748
+ ...options.ifVersion === undefined ? [] : ["--if-version", stringOption("taskAssigneeSet", "ifVersion", options.ifVersion)],
45749
+ ...writePolicyFlags("taskAssigneeSet", options)
45750
+ ], undefined, options.sanitizeDryRun === true);
45751
+ }
44861
45752
  taskUpdate(id, options) {
44862
45753
  return this.run("task update", [id, ...taskUpdateFlags(options)], undefined, options.sanitizeDryRun === true);
44863
45754
  }
@@ -45019,6 +45910,9 @@ class OnetaskgraphClient {
45019
45910
  for (const id of stringList("taskCreate", "delivers", options.delivers)) {
45020
45911
  args.push("--delivers", id);
45021
45912
  }
45913
+ if (options.assignee !== undefined) {
45914
+ args.push("--assignee", stringOption("taskCreate", "assignee", options.assignee));
45915
+ }
45022
45916
  args.push(...assetFlags("taskCreate", options));
45023
45917
  return this.run("task create", [source, ...args], input, options.sanitizeDryRun === true);
45024
45918
  }
@@ -45159,7 +46053,7 @@ function assertCompleteCommandSurface() {
45159
46053
  }
45160
46054
 
45161
46055
  // src/index.ts
45162
- var VERSION = "0.14.13";
46056
+ var VERSION = "0.14.15";
45163
46057
  export {
45164
46058
  taskUpdateOptionFlags,
45165
46059
  taskUpdateFlags,