@onetaskgraph/sdk 0.12.11 → 0.12.13
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/client.d.ts +2 -1
- package/dist/generated/commands.d.ts +1 -1
- package/dist/generated/models.d.ts +95 -1
- package/dist/generated/schemas.d.ts +166 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +225 -3
- package/package.json +2 -2
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CacheCleared, Classification, CommentList, CommentWritten, CopyReport, DeletedComment, DocumentDetail, EffectiveConfig, FailureDocument, FieldsReport, IssuesCompleted, LocateReport, MetadataSet, NativeId, Priority, ProjectGraph, ProjectStatusSet, QueryResponseOfQualifiedDocument, QueryResponseOfQualifiedEdge, QueryResponseOfQualifiedLabel, QueryResponseOfQualifiedProject, QueryResponseOfQualifiedTask, QueryResponseOfSearchHit, Regenerated, RenderedTemplate, SourceListings, SourceRoute, StatusCategory, StatusesReconciled, StatusNamesReport, StatusOptionsReport, TaskAssetNames, TaskContentSet, TaskDetail, TaskDetails, TaskPrioritySet, TaskStatusSet, TaskUpdated, TemplateAnswers, TemplateVariables } from "./generated/models.ts";
|
|
1
|
+
import type { CacheCleared, Classification, CommentList, CommentWritten, CopyReport, DeletedComment, DocumentDetail, EffectiveConfig, FailureDocument, FieldsReport, HumanTaskProjected, IssuesCompleted, LocateReport, MetadataSet, NativeId, Priority, ProjectGraph, ProjectStatusSet, QueryResponseOfQualifiedDocument, QueryResponseOfQualifiedEdge, QueryResponseOfQualifiedLabel, QueryResponseOfQualifiedProject, QueryResponseOfQualifiedTask, QueryResponseOfSearchHit, Regenerated, RenderedTemplate, SourceListings, SourceRoute, StatusCategory, StatusesReconciled, StatusNamesReport, StatusOptionsReport, TaskAssetNames, TaskContentSet, TaskDetail, TaskDetails, TaskPrioritySet, TaskStatusSet, TaskUpdated, TemplateAnswers, TemplateVariables } from "./generated/models.ts";
|
|
2
2
|
import { runtimeSchemas } from "./generated/schemas.ts";
|
|
3
3
|
export type QueryOptions = {
|
|
4
4
|
sources?: string[];
|
|
@@ -238,6 +238,7 @@ export declare class OnetaskgraphClient {
|
|
|
238
238
|
taskRender(id: string, options?: ItemRenderOptions): Promise<Regenerated>;
|
|
239
239
|
taskAnswers(id: string): Promise<TemplateAnswers>;
|
|
240
240
|
taskAssets(id: string, outputDir: string): Promise<TaskAssetNames>;
|
|
241
|
+
taskProjectHuman(input: string): Promise<HumanTaskProjected>;
|
|
241
242
|
projectCreate(source: string, id: NativeId, title: string, options?: ProjectCreateOptions): Promise<QueryResponseOfQualifiedProject>;
|
|
242
243
|
projectRender(id: string, options?: RenderOptions): Promise<Regenerated>;
|
|
243
244
|
projectAnswers(id: string): Promise<TemplateAnswers>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const binaryCommands: readonly ["schema", "config show", "sources list", "sources status-options", "sources fields", "sources route", "task list", "task show", "task show-many", "task deps", "task copy", "task locate", "task comment add", "task comment list", "task comment edit", "task comment delete", "task status set", "task status reconcile", "task status complete", "task priority set", "task content set", "task metadata set", "task update", "task create", "task render", "task answers", "task assets", "project list", "project show", "project deps", "project graph", "project copy", "project metadata set", "project status set", "project create", "project render", "project answers", "document list", "document show", "document copy", "document metadata set", "document create", "document render", "document answers", "label list", "search", "cache clear", "template variables", "template render"];
|
|
1
|
+
export declare const binaryCommands: readonly ["schema", "config show", "sources list", "sources status-options", "sources fields", "sources route", "task list", "task show", "task show-many", "task deps", "task copy", "task locate", "task comment add", "task comment list", "task comment edit", "task comment delete", "task status set", "task status reconcile", "task status complete", "task priority set", "task content set", "task metadata set", "task update", "task create", "task render", "task answers", "task assets", "task project-human", "project list", "project show", "project deps", "project graph", "project copy", "project metadata set", "project status set", "project create", "project render", "project answers", "document list", "document show", "document copy", "document metadata set", "document create", "document render", "document answers", "label list", "search", "cache clear", "template variables", "template render"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SCHEMA_BUNDLE_VERSION:
|
|
1
|
+
export declare const SCHEMA_BUNDLE_VERSION: 50;
|
|
2
2
|
export declare namespace GeneratedAsset {
|
|
3
3
|
/**
|
|
4
4
|
* One asset a record holds, as a read reports it.
|
|
@@ -4135,6 +4135,100 @@ export declare namespace GeneratedHeldTask {
|
|
|
4135
4135
|
}
|
|
4136
4136
|
}
|
|
4137
4137
|
export type HeldTask = GeneratedHeldTask.HeldTask;
|
|
4138
|
+
export declare namespace GeneratedHumanTaskProjected {
|
|
4139
|
+
/**
|
|
4140
|
+
* A durable projection's bound tracker identity, suitable for a directly clickable card.
|
|
4141
|
+
*/
|
|
4142
|
+
interface HumanTaskProjected {
|
|
4143
|
+
/**
|
|
4144
|
+
* The resolved destination project.
|
|
4145
|
+
*/
|
|
4146
|
+
project: string;
|
|
4147
|
+
/**
|
|
4148
|
+
* The resolved configured source.
|
|
4149
|
+
*/
|
|
4150
|
+
source: string;
|
|
4151
|
+
/**
|
|
4152
|
+
* The qualified task identity.
|
|
4153
|
+
*/
|
|
4154
|
+
task: string;
|
|
4155
|
+
/**
|
|
4156
|
+
* The canonical tracker issue URL.
|
|
4157
|
+
*/
|
|
4158
|
+
url: string;
|
|
4159
|
+
}
|
|
4160
|
+
}
|
|
4161
|
+
export type HumanTaskProjected = GeneratedHumanTaskProjected.HumanTaskProjected;
|
|
4162
|
+
export declare namespace GeneratedHumanTaskProjection {
|
|
4163
|
+
/**
|
|
4164
|
+
* A repository identified by its normalized origin, without a URL scheme or `.git` suffix.
|
|
4165
|
+
*/
|
|
4166
|
+
type Repository = string;
|
|
4167
|
+
/**
|
|
4168
|
+
* Version 1 of the general human task projection request.
|
|
4169
|
+
*/
|
|
4170
|
+
interface HumanTaskProjection {
|
|
4171
|
+
/**
|
|
4172
|
+
* The visible task content.
|
|
4173
|
+
*/
|
|
4174
|
+
body: string;
|
|
4175
|
+
/**
|
|
4176
|
+
* The external idempotency identity, stable across producer retries.
|
|
4177
|
+
*/
|
|
4178
|
+
item_id: string;
|
|
4179
|
+
owner: ProjectionOwner;
|
|
4180
|
+
/**
|
|
4181
|
+
* Its priority, using the existing plugin API serialization.
|
|
4182
|
+
*/
|
|
4183
|
+
priority: ("none" | "urgent" | "high" | "medium" | "low");
|
|
4184
|
+
/**
|
|
4185
|
+
* The plan's resolved destination project, or null for a configured human project.
|
|
4186
|
+
*/
|
|
4187
|
+
project: (string | null);
|
|
4188
|
+
/**
|
|
4189
|
+
* An optional dismissal reason. Omission and null both preserve absence.
|
|
4190
|
+
*/
|
|
4191
|
+
reason?: (string | null);
|
|
4192
|
+
/**
|
|
4193
|
+
* Normalized repository origins whose work this item concerns.
|
|
4194
|
+
*/
|
|
4195
|
+
repositories: Repository[];
|
|
4196
|
+
/**
|
|
4197
|
+
* The wire contract version, always 1.
|
|
4198
|
+
*/
|
|
4199
|
+
schema_version: 1;
|
|
4200
|
+
/**
|
|
4201
|
+
* The configured source through which placement is resolved.
|
|
4202
|
+
*/
|
|
4203
|
+
source: string;
|
|
4204
|
+
/**
|
|
4205
|
+
* The desired lifecycle.
|
|
4206
|
+
*/
|
|
4207
|
+
state: ("open" | "completed" | "dismissed");
|
|
4208
|
+
/**
|
|
4209
|
+
* The visible task title.
|
|
4210
|
+
*/
|
|
4211
|
+
title: string;
|
|
4212
|
+
}
|
|
4213
|
+
/**
|
|
4214
|
+
* The producer that owns the intent.
|
|
4215
|
+
*/
|
|
4216
|
+
interface ProjectionOwner {
|
|
4217
|
+
/**
|
|
4218
|
+
* The owning plan, when applicable.
|
|
4219
|
+
*/
|
|
4220
|
+
plan: (string | null);
|
|
4221
|
+
/**
|
|
4222
|
+
* The owning run, when applicable.
|
|
4223
|
+
*/
|
|
4224
|
+
run: (string | null);
|
|
4225
|
+
/**
|
|
4226
|
+
* The owning session.
|
|
4227
|
+
*/
|
|
4228
|
+
session: string;
|
|
4229
|
+
}
|
|
4230
|
+
}
|
|
4231
|
+
export type HumanTaskProjection = GeneratedHumanTaskProjection.HumanTaskProjection;
|
|
4138
4232
|
export declare namespace GeneratedIssueCompleted {
|
|
4139
4233
|
/**
|
|
4140
4234
|
* What keeping one delivered task in step with one deliverer came to.
|
|
@@ -5493,6 +5493,172 @@ export declare const runtimeSchemas: {
|
|
|
5493
5493
|
readonly title: "HeldTask";
|
|
5494
5494
|
readonly type: "object";
|
|
5495
5495
|
};
|
|
5496
|
+
readonly HumanTaskProjected: {
|
|
5497
|
+
readonly $defs: {
|
|
5498
|
+
readonly SourceName: {
|
|
5499
|
+
readonly description: "The name a configuration document gives one configured source.";
|
|
5500
|
+
readonly pattern: "^[a-z0-9][a-z0-9-]*$";
|
|
5501
|
+
readonly type: "string";
|
|
5502
|
+
};
|
|
5503
|
+
};
|
|
5504
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
5505
|
+
readonly additionalProperties: false;
|
|
5506
|
+
readonly description: "A durable projection's bound tracker identity, suitable for a directly clickable card.";
|
|
5507
|
+
readonly properties: {
|
|
5508
|
+
readonly project: {
|
|
5509
|
+
readonly description: "The resolved destination project.";
|
|
5510
|
+
readonly type: "string";
|
|
5511
|
+
};
|
|
5512
|
+
readonly source: {
|
|
5513
|
+
readonly $ref: "#/$defs/SourceName";
|
|
5514
|
+
readonly description: "The resolved configured source.";
|
|
5515
|
+
};
|
|
5516
|
+
readonly task: {
|
|
5517
|
+
readonly description: "The qualified task identity.";
|
|
5518
|
+
readonly type: "string";
|
|
5519
|
+
};
|
|
5520
|
+
readonly url: {
|
|
5521
|
+
readonly description: "The canonical tracker issue URL.";
|
|
5522
|
+
readonly type: "string";
|
|
5523
|
+
};
|
|
5524
|
+
};
|
|
5525
|
+
readonly required: readonly ["task", "url", "project", "source"];
|
|
5526
|
+
readonly title: "HumanTaskProjected";
|
|
5527
|
+
readonly type: "object";
|
|
5528
|
+
};
|
|
5529
|
+
readonly HumanTaskProjection: {
|
|
5530
|
+
readonly $defs: {
|
|
5531
|
+
readonly Priority: {
|
|
5532
|
+
readonly description: "How much a task matters, in the one vocabulary every source is normalised into.\n\nFive values, most pressing first after [`None`](Self::None): Linear's own priority has\nexactly these, and a source whose backend has none of its own maps its representation\nonto them. `none` is a value rather than an absent field, because \"no priority is set\" is\nsomething a person sets — writing `none` clears a priority — and a reader tells it apart\nfrom nothing by the value alone.";
|
|
5533
|
+
readonly oneOf: readonly [{
|
|
5534
|
+
readonly const: "none";
|
|
5535
|
+
readonly description: "No priority is set.";
|
|
5536
|
+
readonly type: "string";
|
|
5537
|
+
}, {
|
|
5538
|
+
readonly const: "urgent";
|
|
5539
|
+
readonly description: "Drop everything for it.";
|
|
5540
|
+
readonly type: "string";
|
|
5541
|
+
}, {
|
|
5542
|
+
readonly const: "high";
|
|
5543
|
+
readonly description: "Next, before the rest.";
|
|
5544
|
+
readonly type: "string";
|
|
5545
|
+
}, {
|
|
5546
|
+
readonly const: "medium";
|
|
5547
|
+
readonly description: "In its turn.";
|
|
5548
|
+
readonly type: "string";
|
|
5549
|
+
}, {
|
|
5550
|
+
readonly const: "low";
|
|
5551
|
+
readonly description: "When there is nothing more pressing.";
|
|
5552
|
+
readonly type: "string";
|
|
5553
|
+
}];
|
|
5554
|
+
};
|
|
5555
|
+
readonly ProjectionOwner: {
|
|
5556
|
+
readonly additionalProperties: false;
|
|
5557
|
+
readonly description: "The producer that owns the intent; nullable run and plan are explicit on the wire.";
|
|
5558
|
+
readonly properties: {
|
|
5559
|
+
readonly plan: {
|
|
5560
|
+
readonly description: "The owning plan, when applicable.";
|
|
5561
|
+
readonly type: readonly ["string", "null"];
|
|
5562
|
+
};
|
|
5563
|
+
readonly run: {
|
|
5564
|
+
readonly description: "The owning run, when applicable.";
|
|
5565
|
+
readonly type: readonly ["string", "null"];
|
|
5566
|
+
};
|
|
5567
|
+
readonly session: {
|
|
5568
|
+
readonly description: "The owning session.";
|
|
5569
|
+
readonly type: "string";
|
|
5570
|
+
};
|
|
5571
|
+
};
|
|
5572
|
+
readonly required: readonly ["session", "run", "plan"];
|
|
5573
|
+
readonly type: "object";
|
|
5574
|
+
};
|
|
5575
|
+
readonly ProjectionState: {
|
|
5576
|
+
readonly description: "The requested tracker lifecycle. Questions have no representation here.";
|
|
5577
|
+
readonly oneOf: readonly [{
|
|
5578
|
+
readonly const: "open";
|
|
5579
|
+
readonly description: "The operator has work to do.";
|
|
5580
|
+
readonly type: "string";
|
|
5581
|
+
}, {
|
|
5582
|
+
readonly const: "completed";
|
|
5583
|
+
readonly description: "The operator completed the work.";
|
|
5584
|
+
readonly type: "string";
|
|
5585
|
+
}, {
|
|
5586
|
+
readonly const: "dismissed";
|
|
5587
|
+
readonly description: "The operator dismissed the work, optionally recording a reason.";
|
|
5588
|
+
readonly type: "string";
|
|
5589
|
+
}];
|
|
5590
|
+
};
|
|
5591
|
+
readonly ProjectionVersion: {
|
|
5592
|
+
readonly const: 1;
|
|
5593
|
+
readonly type: "integer";
|
|
5594
|
+
};
|
|
5595
|
+
readonly Repository: {
|
|
5596
|
+
readonly description: "A repository identified by its normalized origin, without a URL scheme or `.git` suffix.";
|
|
5597
|
+
readonly type: "string";
|
|
5598
|
+
};
|
|
5599
|
+
readonly SourceName: {
|
|
5600
|
+
readonly description: "The name a configuration document gives one configured source.";
|
|
5601
|
+
readonly pattern: "^[a-z0-9][a-z0-9-]*$";
|
|
5602
|
+
readonly type: "string";
|
|
5603
|
+
};
|
|
5604
|
+
};
|
|
5605
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
5606
|
+
readonly additionalProperties: false;
|
|
5607
|
+
readonly description: "Version 1 of the general human task projection request.";
|
|
5608
|
+
readonly properties: {
|
|
5609
|
+
readonly body: {
|
|
5610
|
+
readonly description: "The visible task content.";
|
|
5611
|
+
readonly type: "string";
|
|
5612
|
+
};
|
|
5613
|
+
readonly item_id: {
|
|
5614
|
+
readonly description: "The external idempotency identity, stable across producer retries.";
|
|
5615
|
+
readonly type: "string";
|
|
5616
|
+
};
|
|
5617
|
+
readonly owner: {
|
|
5618
|
+
readonly $ref: "#/$defs/ProjectionOwner";
|
|
5619
|
+
readonly description: "The producer that owns the intent.";
|
|
5620
|
+
};
|
|
5621
|
+
readonly priority: {
|
|
5622
|
+
readonly $ref: "#/$defs/Priority";
|
|
5623
|
+
readonly description: "Its priority, using the existing plugin API serialization.";
|
|
5624
|
+
};
|
|
5625
|
+
readonly project: {
|
|
5626
|
+
readonly description: "The plan's resolved destination project, or null for a configured human project.";
|
|
5627
|
+
readonly type: readonly ["string", "null"];
|
|
5628
|
+
};
|
|
5629
|
+
readonly reason: {
|
|
5630
|
+
readonly default: null;
|
|
5631
|
+
readonly description: "An optional dismissal reason. Omission and null both preserve absence.";
|
|
5632
|
+
readonly type: readonly ["string", "null"];
|
|
5633
|
+
};
|
|
5634
|
+
readonly repositories: {
|
|
5635
|
+
readonly description: "Normalized repository origins whose work this item concerns.";
|
|
5636
|
+
readonly items: {
|
|
5637
|
+
readonly $ref: "#/$defs/Repository";
|
|
5638
|
+
};
|
|
5639
|
+
readonly type: "array";
|
|
5640
|
+
};
|
|
5641
|
+
readonly schema_version: {
|
|
5642
|
+
readonly $ref: "#/$defs/ProjectionVersion";
|
|
5643
|
+
readonly description: "The wire contract version, always 1.";
|
|
5644
|
+
};
|
|
5645
|
+
readonly source: {
|
|
5646
|
+
readonly $ref: "#/$defs/SourceName";
|
|
5647
|
+
readonly description: "The configured source through which placement is resolved.";
|
|
5648
|
+
};
|
|
5649
|
+
readonly state: {
|
|
5650
|
+
readonly $ref: "#/$defs/ProjectionState";
|
|
5651
|
+
readonly description: "The desired lifecycle.";
|
|
5652
|
+
};
|
|
5653
|
+
readonly title: {
|
|
5654
|
+
readonly description: "The visible task title.";
|
|
5655
|
+
readonly type: "string";
|
|
5656
|
+
};
|
|
5657
|
+
};
|
|
5658
|
+
readonly required: readonly ["schema_version", "item_id", "owner", "title", "body", "priority", "repositories", "project", "source", "state"];
|
|
5659
|
+
readonly title: "HumanTaskProjection";
|
|
5660
|
+
readonly type: "object";
|
|
5661
|
+
};
|
|
5496
5662
|
readonly IssueCompleted: {
|
|
5497
5663
|
readonly $defs: {
|
|
5498
5664
|
readonly CompleteAction: {
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
* implementation of the query semantics across the CLI and both SDKs.
|
|
7
7
|
*/
|
|
8
8
|
/** The version this package publishes. `package.json` must agree; see the tests. */
|
|
9
|
-
export declare const VERSION = "0.12.
|
|
9
|
+
export declare const VERSION = "0.12.13";
|
|
10
10
|
export * from "./client.ts";
|
|
11
11
|
export type * from "./generated/models.ts";
|
package/dist/index.js
CHANGED
|
@@ -7167,6 +7167,7 @@ var binaryCommands = [
|
|
|
7167
7167
|
"task render",
|
|
7168
7168
|
"task answers",
|
|
7169
7169
|
"task assets",
|
|
7170
|
+
"task project-human",
|
|
7170
7171
|
"project list",
|
|
7171
7172
|
"project show",
|
|
7172
7173
|
"project deps",
|
|
@@ -7192,7 +7193,7 @@ var binaryCommands = [
|
|
|
7192
7193
|
];
|
|
7193
7194
|
|
|
7194
7195
|
// src/generated/models.ts
|
|
7195
|
-
var SCHEMA_BUNDLE_VERSION =
|
|
7196
|
+
var SCHEMA_BUNDLE_VERSION = 50;
|
|
7196
7197
|
|
|
7197
7198
|
// src/generated/schemas.ts
|
|
7198
7199
|
var runtimeSchemas = {
|
|
@@ -14724,6 +14725,220 @@ at one.`,
|
|
|
14724
14725
|
title: "HeldTask",
|
|
14725
14726
|
type: "object"
|
|
14726
14727
|
},
|
|
14728
|
+
HumanTaskProjected: {
|
|
14729
|
+
$defs: {
|
|
14730
|
+
SourceName: {
|
|
14731
|
+
description: "The name a configuration document gives one configured source.",
|
|
14732
|
+
pattern: "^[a-z0-9][a-z0-9-]*$",
|
|
14733
|
+
type: "string"
|
|
14734
|
+
}
|
|
14735
|
+
},
|
|
14736
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
14737
|
+
additionalProperties: false,
|
|
14738
|
+
description: "A durable projection's bound tracker identity, suitable for a directly clickable card.",
|
|
14739
|
+
properties: {
|
|
14740
|
+
project: {
|
|
14741
|
+
description: "The resolved destination project.",
|
|
14742
|
+
type: "string"
|
|
14743
|
+
},
|
|
14744
|
+
source: {
|
|
14745
|
+
$ref: "#/$defs/SourceName",
|
|
14746
|
+
description: "The resolved configured source."
|
|
14747
|
+
},
|
|
14748
|
+
task: {
|
|
14749
|
+
description: "The qualified task identity.",
|
|
14750
|
+
type: "string"
|
|
14751
|
+
},
|
|
14752
|
+
url: {
|
|
14753
|
+
description: "The canonical tracker issue URL.",
|
|
14754
|
+
type: "string"
|
|
14755
|
+
}
|
|
14756
|
+
},
|
|
14757
|
+
required: [
|
|
14758
|
+
"task",
|
|
14759
|
+
"url",
|
|
14760
|
+
"project",
|
|
14761
|
+
"source"
|
|
14762
|
+
],
|
|
14763
|
+
title: "HumanTaskProjected",
|
|
14764
|
+
type: "object"
|
|
14765
|
+
},
|
|
14766
|
+
HumanTaskProjection: {
|
|
14767
|
+
$defs: {
|
|
14768
|
+
Priority: {
|
|
14769
|
+
description: `How much a task matters, in the one vocabulary every source is normalised into.
|
|
14770
|
+
|
|
14771
|
+
Five values, most pressing first after [\`None\`](Self::None): Linear's own priority has
|
|
14772
|
+
exactly these, and a source whose backend has none of its own maps its representation
|
|
14773
|
+
onto them. \`none\` is a value rather than an absent field, because "no priority is set" is
|
|
14774
|
+
something a person sets — writing \`none\` clears a priority — and a reader tells it apart
|
|
14775
|
+
from nothing by the value alone.`,
|
|
14776
|
+
oneOf: [
|
|
14777
|
+
{
|
|
14778
|
+
const: "none",
|
|
14779
|
+
description: "No priority is set.",
|
|
14780
|
+
type: "string"
|
|
14781
|
+
},
|
|
14782
|
+
{
|
|
14783
|
+
const: "urgent",
|
|
14784
|
+
description: "Drop everything for it.",
|
|
14785
|
+
type: "string"
|
|
14786
|
+
},
|
|
14787
|
+
{
|
|
14788
|
+
const: "high",
|
|
14789
|
+
description: "Next, before the rest.",
|
|
14790
|
+
type: "string"
|
|
14791
|
+
},
|
|
14792
|
+
{
|
|
14793
|
+
const: "medium",
|
|
14794
|
+
description: "In its turn.",
|
|
14795
|
+
type: "string"
|
|
14796
|
+
},
|
|
14797
|
+
{
|
|
14798
|
+
const: "low",
|
|
14799
|
+
description: "When there is nothing more pressing.",
|
|
14800
|
+
type: "string"
|
|
14801
|
+
}
|
|
14802
|
+
]
|
|
14803
|
+
},
|
|
14804
|
+
ProjectionOwner: {
|
|
14805
|
+
additionalProperties: false,
|
|
14806
|
+
description: "The producer that owns the intent; nullable run and plan are explicit on the wire.",
|
|
14807
|
+
properties: {
|
|
14808
|
+
plan: {
|
|
14809
|
+
description: "The owning plan, when applicable.",
|
|
14810
|
+
type: [
|
|
14811
|
+
"string",
|
|
14812
|
+
"null"
|
|
14813
|
+
]
|
|
14814
|
+
},
|
|
14815
|
+
run: {
|
|
14816
|
+
description: "The owning run, when applicable.",
|
|
14817
|
+
type: [
|
|
14818
|
+
"string",
|
|
14819
|
+
"null"
|
|
14820
|
+
]
|
|
14821
|
+
},
|
|
14822
|
+
session: {
|
|
14823
|
+
description: "The owning session.",
|
|
14824
|
+
type: "string"
|
|
14825
|
+
}
|
|
14826
|
+
},
|
|
14827
|
+
required: [
|
|
14828
|
+
"session",
|
|
14829
|
+
"run",
|
|
14830
|
+
"plan"
|
|
14831
|
+
],
|
|
14832
|
+
type: "object"
|
|
14833
|
+
},
|
|
14834
|
+
ProjectionState: {
|
|
14835
|
+
description: "The requested tracker lifecycle. Questions have no representation here.",
|
|
14836
|
+
oneOf: [
|
|
14837
|
+
{
|
|
14838
|
+
const: "open",
|
|
14839
|
+
description: "The operator has work to do.",
|
|
14840
|
+
type: "string"
|
|
14841
|
+
},
|
|
14842
|
+
{
|
|
14843
|
+
const: "completed",
|
|
14844
|
+
description: "The operator completed the work.",
|
|
14845
|
+
type: "string"
|
|
14846
|
+
},
|
|
14847
|
+
{
|
|
14848
|
+
const: "dismissed",
|
|
14849
|
+
description: "The operator dismissed the work, optionally recording a reason.",
|
|
14850
|
+
type: "string"
|
|
14851
|
+
}
|
|
14852
|
+
]
|
|
14853
|
+
},
|
|
14854
|
+
ProjectionVersion: {
|
|
14855
|
+
const: 1,
|
|
14856
|
+
type: "integer"
|
|
14857
|
+
},
|
|
14858
|
+
Repository: {
|
|
14859
|
+
description: "A repository identified by its normalized origin, without a URL scheme or `.git` suffix.",
|
|
14860
|
+
type: "string"
|
|
14861
|
+
},
|
|
14862
|
+
SourceName: {
|
|
14863
|
+
description: "The name a configuration document gives one configured source.",
|
|
14864
|
+
pattern: "^[a-z0-9][a-z0-9-]*$",
|
|
14865
|
+
type: "string"
|
|
14866
|
+
}
|
|
14867
|
+
},
|
|
14868
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
14869
|
+
additionalProperties: false,
|
|
14870
|
+
description: "Version 1 of the general human task projection request.",
|
|
14871
|
+
properties: {
|
|
14872
|
+
body: {
|
|
14873
|
+
description: "The visible task content.",
|
|
14874
|
+
type: "string"
|
|
14875
|
+
},
|
|
14876
|
+
item_id: {
|
|
14877
|
+
description: "The external idempotency identity, stable across producer retries.",
|
|
14878
|
+
type: "string"
|
|
14879
|
+
},
|
|
14880
|
+
owner: {
|
|
14881
|
+
$ref: "#/$defs/ProjectionOwner",
|
|
14882
|
+
description: "The producer that owns the intent."
|
|
14883
|
+
},
|
|
14884
|
+
priority: {
|
|
14885
|
+
$ref: "#/$defs/Priority",
|
|
14886
|
+
description: "Its priority, using the existing plugin API serialization."
|
|
14887
|
+
},
|
|
14888
|
+
project: {
|
|
14889
|
+
description: "The plan's resolved destination project, or null for a configured human project.",
|
|
14890
|
+
type: [
|
|
14891
|
+
"string",
|
|
14892
|
+
"null"
|
|
14893
|
+
]
|
|
14894
|
+
},
|
|
14895
|
+
reason: {
|
|
14896
|
+
default: null,
|
|
14897
|
+
description: "An optional dismissal reason. Omission and null both preserve absence.",
|
|
14898
|
+
type: [
|
|
14899
|
+
"string",
|
|
14900
|
+
"null"
|
|
14901
|
+
]
|
|
14902
|
+
},
|
|
14903
|
+
repositories: {
|
|
14904
|
+
description: "Normalized repository origins whose work this item concerns.",
|
|
14905
|
+
items: {
|
|
14906
|
+
$ref: "#/$defs/Repository"
|
|
14907
|
+
},
|
|
14908
|
+
type: "array"
|
|
14909
|
+
},
|
|
14910
|
+
schema_version: {
|
|
14911
|
+
$ref: "#/$defs/ProjectionVersion",
|
|
14912
|
+
description: "The wire contract version, always 1."
|
|
14913
|
+
},
|
|
14914
|
+
source: {
|
|
14915
|
+
$ref: "#/$defs/SourceName",
|
|
14916
|
+
description: "The configured source through which placement is resolved."
|
|
14917
|
+
},
|
|
14918
|
+
state: {
|
|
14919
|
+
$ref: "#/$defs/ProjectionState",
|
|
14920
|
+
description: "The desired lifecycle."
|
|
14921
|
+
},
|
|
14922
|
+
title: {
|
|
14923
|
+
description: "The visible task title.",
|
|
14924
|
+
type: "string"
|
|
14925
|
+
}
|
|
14926
|
+
},
|
|
14927
|
+
required: [
|
|
14928
|
+
"schema_version",
|
|
14929
|
+
"item_id",
|
|
14930
|
+
"owner",
|
|
14931
|
+
"title",
|
|
14932
|
+
"body",
|
|
14933
|
+
"priority",
|
|
14934
|
+
"repositories",
|
|
14935
|
+
"project",
|
|
14936
|
+
"source",
|
|
14937
|
+
"state"
|
|
14938
|
+
],
|
|
14939
|
+
title: "HumanTaskProjection",
|
|
14940
|
+
type: "object"
|
|
14941
|
+
},
|
|
14727
14942
|
IssueCompleted: {
|
|
14728
14943
|
$defs: {
|
|
14729
14944
|
CompleteAction: {
|
|
@@ -35312,6 +35527,7 @@ var commandResponseRoots = {
|
|
|
35312
35527
|
"task render": "Regenerated",
|
|
35313
35528
|
"task answers": "TemplateAnswers",
|
|
35314
35529
|
"task assets": "TaskAssetNames",
|
|
35530
|
+
"task project-human": "HumanTaskProjected",
|
|
35315
35531
|
"document create": "DocumentDetail",
|
|
35316
35532
|
"document render": "Regenerated",
|
|
35317
35533
|
"document answers": "TemplateAnswers"
|
|
@@ -35319,7 +35535,7 @@ var commandResponseRoots = {
|
|
|
35319
35535
|
var commandAlternateRoots = {
|
|
35320
35536
|
"sources fields": ["StatusNamesReport"]
|
|
35321
35537
|
};
|
|
35322
|
-
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 !== "project graph" && !command.startsWith("task comment ") && !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 !== "project create" && command !== "document create"));
|
|
35538
|
+
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 !== "project graph" && !command.startsWith("task comment ") && !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 project-human" && command !== "project create" && command !== "document create"));
|
|
35323
35539
|
function bodyArguments(options) {
|
|
35324
35540
|
return "bodyFile" in options ? { args: ["--body-file", options.bodyFile] } : { args: [], input: options.body };
|
|
35325
35541
|
}
|
|
@@ -36066,6 +36282,12 @@ class OnetaskgraphClient {
|
|
|
36066
36282
|
taskAssets(id, outputDir) {
|
|
36067
36283
|
return this.run("task assets", [id, "--output-dir", outputDir]);
|
|
36068
36284
|
}
|
|
36285
|
+
taskProjectHuman(input) {
|
|
36286
|
+
return this.run("task project-human", [
|
|
36287
|
+
"--input",
|
|
36288
|
+
stringOption("taskProjectHuman", "input", input)
|
|
36289
|
+
]);
|
|
36290
|
+
}
|
|
36069
36291
|
async projectCreate(source, id, title, options = {}) {
|
|
36070
36292
|
const { args, input } = createArguments("projectCreate", ["--id", id, "--title", title], options);
|
|
36071
36293
|
if (options.status !== undefined)
|
|
@@ -36157,7 +36379,7 @@ function assertCompleteCommandSurface() {
|
|
|
36157
36379
|
}
|
|
36158
36380
|
|
|
36159
36381
|
// src/index.ts
|
|
36160
|
-
var VERSION = "0.12.
|
|
36382
|
+
var VERSION = "0.12.13";
|
|
36161
36383
|
export {
|
|
36162
36384
|
taskUpdateOptionFlags,
|
|
36163
36385
|
taskUpdateFlags,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onetaskgraph/sdk",
|
|
3
3
|
"//": "llmlint: ignore-file[projects_stay_in_one_js_workspace] This package IS the JS workspace's one member; what the rule reads as a second is the optionalDependency below, which is the published launcher an end user installs beside the SDK and resolves from the registry at their own install. `workspace:*` names nothing there, and npm/cli is not a workspace member for the reason its own manifest records. scripts/set-version.sh writes this number and `--check` refuses any other, under distribution-check. JSON has no comment to scope this to the one line.",
|
|
4
|
-
"version": "0.12.
|
|
4
|
+
"version": "0.12.13",
|
|
5
5
|
"description": "The TypeScript SDK for onetaskgraph, generated from the binary's own JSON Schema bundle.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"generate:check": "bun scripts/generate.ts --check"
|
|
29
29
|
},
|
|
30
30
|
"optionalDependencies": {
|
|
31
|
-
"@onetaskgraph/cli": "0.12.
|
|
31
|
+
"@onetaskgraph/cli": "0.12.13"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"ajv": "8.17.1",
|