@onetaskgraph/sdk 0.14.17 → 0.14.18

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 CHANGED
@@ -1,4 +1,4 @@
1
- import type { AttestationCheck, Attested, CacheCleared, Classification, CommentBatch, CommentList, CommentsAdded, CommentsSince, CommentWritten, CopyReport, DeletedComment, DocumentDetail, EffectiveConfig, FailureDocument, FieldsReport, FindRequest, FoundTasks, HumanTaskProjected, IssuesCompleted, LinkBatch, LinksWritten, LocateReport, MetadataSet, NativeId, ParentBatch, ParentsSet, PlannedProject, Priority, ProjectAttestationCheck, ProjectGraph, ProjectStatusSet, QueryResponseOfQualifiedDocument, QueryResponseOfQualifiedEdge, QueryResponseOfQualifiedLabel, QueryResponseOfQualifiedProject, QueryResponseOfQualifiedTask, QueryResponseOfSearchHit, Regenerated, RenderedTemplate, SanitizeDryRun, SourceListings, SourceRoute, StatusCategory, StatusesReconciled, StatusNamesReport, StatusOptionsReport, SweepReport, TaskAssetNames, TaskAssigneeSet, TaskContentSet, TaskDetail, TaskDetails, TaskPrioritySet, TaskRelations, TaskStatusSet, TasksUpdated, TaskUpdated, TemplateAnswers, TemplateVariables, UpdateBatch } from "./generated/models.ts";
1
+ import type { AttestationCheck, AttestationState, Attested, CacheCleared, Classification, CommentBatch, CommentList, CommentsAdded, CommentsSince, CommentWritten, CopyReport, DeletedComment, DocumentDetail, EffectiveConfig, FailureDocument, FieldsReport, FindRequest, FoundTasks, HumanTaskProjected, IssuesCompleted, LinkBatch, LinksWritten, LocateReport, MetadataSet, NativeId, ParentBatch, ParentsSet, PlannedProject, Priority, ProjectAttestationCheck, ProjectGraph, ProjectStatusSet, QueryResponseOfQualifiedDocument, QueryResponseOfQualifiedEdge, QueryResponseOfQualifiedLabel, QueryResponseOfQualifiedProject, QueryResponseOfQualifiedTask, QueryResponseOfSearchHit, Regenerated, RenderedTemplate, SanitizeDryRun, SourceListings, SourceRoute, StatusCategory, StatusesReconciled, StatusNamesReport, StatusOptionsReport, SweepReport, TaskAssetNames, TaskAssigneeSet, TaskContentDigest, TaskContentSet, TaskDetail, TaskDetails, TaskPrioritySet, TaskRelations, TaskStatusSet, TasksUpdated, TaskUpdated, TemplateAnswers, TemplateVariables, UpdateBatch } from "./generated/models.ts";
2
2
  import { runtimeSchemas } from "./generated/schemas.ts";
3
3
  export type QueryOptions = {
4
4
  sources?: string[];
@@ -37,6 +37,21 @@ export type AttestOptions = WriteOptions & {
37
37
  export type AttestationCheckOptions = {
38
38
  bar?: string;
39
39
  };
40
+ export type ProjectAttestationTaskFilters = {
41
+ statuses?: StatusCategory[];
42
+ notStatuses?: StatusCategory[];
43
+ states?: AttestationState[];
44
+ };
45
+ export declare const updateFieldChoices: readonly ["status"];
46
+ export type UpdateFields = (typeof updateFieldChoices)[number];
47
+ export type ProjectCopyOptions = CopyOptions & StatusCopyOptions & {
48
+ noTasks?: boolean;
49
+ documents?: boolean;
50
+ members?: string[];
51
+ membersOnly?: boolean;
52
+ updateFields?: UpdateFields;
53
+ metadata?: string[];
54
+ };
40
55
  export type ExpectOptions = {
41
56
  expect?: string;
42
57
  };
@@ -172,12 +187,7 @@ export type TaskCommentsOptions = {
172
187
  export declare const taskCommentsOptionFlags: Readonly<Record<keyof TaskCommentsOptions, string>>;
173
188
  export declare function taskCommentsFlags(since: string, options: unknown): string[];
174
189
  export declare function taskCopyFlags(options: TaskCopyOptions): string[];
175
- export declare function projectCopyFlags(options: CopyOptions & StatusCopyOptions & {
176
- noTasks?: boolean;
177
- documents?: boolean;
178
- members?: string[];
179
- membersOnly?: boolean;
180
- }): string[];
190
+ export declare function projectCopyFlags(options: ProjectCopyOptions): string[];
181
191
  export declare class OnetaskgraphClient {
182
192
  readonly binaryPath: string;
183
193
  readonly cwd: string | undefined;
@@ -209,6 +219,7 @@ export declare class OnetaskgraphClient {
209
219
  metadata?: string[];
210
220
  origin?: string;
211
221
  members?: boolean;
222
+ notStatuses?: StatusCategory[];
212
223
  }): Promise<QueryResponseOfQualifiedTask>;
213
224
  taskShow(id: string, options?: Pick<QueryOptions, "allowPartial"> & {
214
225
  noComments?: boolean;
@@ -289,20 +300,10 @@ export declare class OnetaskgraphClient {
289
300
  }): Promise<QueryResponseOfQualifiedProject>;
290
301
  projectDeps(id: string, options?: DependencyOptions): Promise<QueryResponseOfQualifiedEdge>;
291
302
  projectGraph(id: string, options?: ProjectGraphOptions): Promise<ProjectGraph>;
292
- projectCopy(id: string, to: string, options?: (CopyOptions & StatusCopyOptions & {
293
- noTasks?: boolean;
294
- documents?: boolean;
295
- members?: string[];
296
- membersOnly?: boolean;
297
- }) & {
303
+ projectCopy(id: string, to: string, options?: ProjectCopyOptions & {
298
304
  sanitizeDryRun?: false;
299
305
  }): Promise<CopyReport>;
300
- projectCopy(id: string, to: string, options?: CopyOptions & StatusCopyOptions & {
301
- noTasks?: boolean;
302
- documents?: boolean;
303
- members?: string[];
304
- membersOnly?: boolean;
305
- }): Promise<CopyReport | SanitizeDryRun>;
306
+ projectCopy(id: string, to: string, options?: ProjectCopyOptions): Promise<CopyReport | SanitizeDryRun>;
306
307
  projectMetadataSet(id: string, key: string, value: string, options?: WriteOptions & {
307
308
  sanitizeDryRun?: false;
308
309
  }): Promise<MetadataSet>;
@@ -339,8 +340,11 @@ export declare class OnetaskgraphClient {
339
340
  }): Promise<Attested>;
340
341
  documentAttest(id: string, kind: string, by: string, bar: string, options?: AttestOptions): Promise<Attested | SanitizeDryRun>;
341
342
  taskAttestationCheck(id: string, kind: string, options?: AttestationCheckOptions): Promise<AttestationCheck>;
343
+ taskDigest(id: string, options?: {
344
+ exclude?: string[];
345
+ }): Promise<TaskContentDigest>;
342
346
  documentAttestationCheck(id: string, kind: string, options?: AttestationCheckOptions): Promise<AttestationCheck>;
343
- projectAttestationCheck(id: string, kind: string, options?: AttestationCheckOptions & {
347
+ projectAttestationCheck(id: string, kind: string, options?: AttestationCheckOptions & ProjectAttestationTaskFilters & {
344
348
  tasks?: boolean;
345
349
  }): Promise<AttestationCheck | ProjectAttestationCheck>;
346
350
  labelList(options?: QueryOptions): Promise<QueryResponseOfQualifiedLabel>;
@@ -1 +1 @@
1
- export declare const binaryCommands: readonly ["schema", "config show", "sources list", "sources status-options", "sources fields", "sources route", "sources sanitize", "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 comment add-many", "task comments", "task find", "task update-many", "task parent set-many", "task link add-many", "task link remove-many", "task relations", "task status set", "task status reconcile", "task status complete", "task priority set", "task assignee set", "task content set", "task metadata set", "task attest", "task attestation check", "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 attest", "project attestation check", "project status set", "project create", "project render", "project answers", "document list", "document show", "document copy", "document metadata set", "document attest", "document attestation check", "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", "sources sanitize", "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 comment add-many", "task comments", "task find", "task update-many", "task parent set-many", "task link add-many", "task link remove-many", "task relations", "task status set", "task status reconcile", "task status complete", "task priority set", "task assignee set", "task content set", "task metadata set", "task attest", "task attestation check", "task digest", "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 attest", "project attestation check", "project status set", "project create", "project render", "project answers", "document list", "document show", "document copy", "document metadata set", "document attest", "document attestation check", "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: 65;
1
+ export declare const SCHEMA_BUNDLE_VERSION: 66;
2
2
  export declare namespace GeneratedAsset {
3
3
  /**
4
4
  * One asset a record holds, as a read reports it.
@@ -14669,6 +14669,41 @@ export declare namespace GeneratedTaskAssigneeSet {
14669
14669
  }
14670
14670
  }
14671
14671
  export type TaskAssigneeSet = GeneratedTaskAssigneeSet.TaskAssigneeSet;
14672
+ export declare namespace GeneratedTaskContentDigest {
14673
+ /**
14674
+ * One caller-owned metadata key: `<namespace>.<name>`, at least two non-empty segments
14675
+ * separated by dots, whose first segment is not [`MetadataKey::RESERVED_NAMESPACE`].
14676
+ *
14677
+ * Validated wherever one is built, deserialized included, so a plugin handed one never has
14678
+ * to ask whether it names a key this product owns.
14679
+ */
14680
+ type MetadataKey = string;
14681
+ /**
14682
+ * What `task digest` answers: the digest of one task's authored content, the one an
14683
+ * attestation records as its `content_digest` for the same content and the same `excludes`.
14684
+ *
14685
+ * A caller holding a settlement, a review or any other decision taken against a task's
14686
+ * content records this, and a later read of it says whether the content is still the one the
14687
+ * decision was taken against, without reaching into the attestation record.
14688
+ */
14689
+ interface TaskContentDigest {
14690
+ /**
14691
+ * The task, by qualified id.
14692
+ */
14693
+ id: string;
14694
+ /**
14695
+ * `sha256:<hex>` over the task's title, content, repositories, caller-owned metadata
14696
+ * not excluded and forward dependency edges.
14697
+ */
14698
+ content_digest: string;
14699
+ /**
14700
+ * The caller-owned metadata keys left out of it, sorted and without repeats.
14701
+ */
14702
+ excludes: MetadataKey[];
14703
+ [k: string]: any;
14704
+ }
14705
+ }
14706
+ export type TaskContentDigest = GeneratedTaskContentDigest.TaskContentDigest;
14672
14707
  export declare namespace GeneratedTaskContentSet {
14673
14708
  /**
14674
14709
  * One mutation of an expected write.
@@ -7,7 +7,7 @@ export type JsonSchemaDocument = {
7
7
  readonly [key: string]: JsonSchemaValue;
8
8
  };
9
9
  /** Every root name the binary emitted, so a validator selects only an emitted root. */
10
- export type RuntimeSchemaRoot = "Asset" | "AssetContentType" | "AssetName" | "AssetPayload" | "AssetUpload" | "AssetUploads" | "AssetWrite" | "AssetsWritten" | "Attestation" | "AttestationCheck" | "AttestationState" | "Attested" | "AuthorKind" | "BatchOutcome" | "CacheCleared" | "CacheUse" | "Capabilities" | "Classification" | "ClosedAs" | "Comment" | "CommentActivity" | "CommentBatch" | "CommentList" | "CommentWritten" | "CommentsAdded" | "CommentsSince" | "CompleteAction" | "Completion" | "ContradictedItem" | "CopyAction" | "CopyLink" | "CopyOutcome" | "CopyReport" | "CopyVia" | "CreateSettings" | "CredentialLayer" | "DeletedComment" | "Delivered" | "DeliveryOutcome" | "DependencyEdge" | "DependencyEndpoint" | "DependencyKind" | "Direction" | "Document" | "DocumentDetail" | "DocumentQuery" | "EffectiveConfig" | "ExpectedWrite" | "Failure" | "FailureClass" | "FailureDocument" | "FindRequest" | "FoundTasks" | "GlobalId" | "Health" | "HeldTask" | "HumanTaskProjected" | "HumanTaskProjection" | "IssueCompleted" | "IssueHolding" | "IssueRef" | "IssuesCompleted" | "ItemKind" | "ItemType" | "Label" | "LinearConfig" | "LinkBatch" | "LinkOutcome" | "LinksWritten" | "LocateReport" | "Located" | "Location" | "MemberDeclaration" | "MetadataSet" | "NativeId" | "NewComment" | "Origin" | "OtherEnd" | "OutputFormat" | "PageOfComment" | "PageOfDependencyEdge" | "PageOfDocument" | "PageOfLabel" | "PageOfProject" | "PageOfTask" | "PageRequest" | "PageToken" | "ParentBatch" | "ParentOutcome" | "ParentsSet" | "Placement" | "PlannedProject" | "Predicate" | "Priority" | "Project" | "ProjectAttestationCheck" | "ProjectGraph" | "ProjectQuery" | "ProjectStatusSet" | "PublicProjections" | "PublicWriteInput" | "QualifiedDocument" | "QualifiedEdge" | "QualifiedEndpoint" | "QualifiedLabel" | "QualifiedProject" | "QualifiedTask" | "QueryPlan" | "QueryResponseOfQualifiedDocument" | "QueryResponseOfQualifiedEdge" | "QueryResponseOfQualifiedLabel" | "QueryResponseOfQualifiedProject" | "QueryResponseOfQualifiedTask" | "QueryResponseOfSearchHit" | "ReadLink" | "ReconcileOutcome" | "Regenerated" | "RelationsItem" | "RenderedTemplate" | "Repository" | "RepositoryVisibility" | "ResolvedCredential" | "Sanitization" | "SanitizeDryRun" | "SearchHit" | "SearchKind" | "SecretsReport" | "Setting" | "SourceCacheConfig" | "SourceError" | "SourceFailure" | "SourceListing" | "SourceListings" | "SourceName" | "SourcePlan" | "SourceRoute" | "SourceVisibility" | "Status" | "StatusCategory" | "StatusContradiction" | "StatusMapping" | "StatusReconciled" | "StatusesReconciled" | "SweepReport" | "Task" | "TaskAssetNames" | "TaskAssigneeSet" | "TaskContentSet" | "TaskDetail" | "TaskDetails" | "TaskLink" | "TaskPrioritySet" | "TaskQuery" | "TaskRef" | "TaskRelations" | "TaskStatusSet" | "TaskUpdate" | "TaskUpdateOutcome" | "TaskUpdated" | "TasksUpdated" | "TemplateAnswers" | "TemplateProvenance" | "TemplateVariable" | "TemplateVariables" | "TextFields" | "UpdateBatch" | "UpdatedField" | "VariableType" | "VoidReason" | "WritePolicyConfig" | "WriteVerdict" | "StatusOptionsReport" | "FieldsReport" | "StatusNamesReport";
10
+ export type RuntimeSchemaRoot = "Asset" | "AssetContentType" | "AssetName" | "AssetPayload" | "AssetUpload" | "AssetUploads" | "AssetWrite" | "AssetsWritten" | "Attestation" | "AttestationCheck" | "AttestationState" | "Attested" | "AuthorKind" | "BatchOutcome" | "CacheCleared" | "CacheUse" | "Capabilities" | "Classification" | "ClosedAs" | "Comment" | "CommentActivity" | "CommentBatch" | "CommentList" | "CommentWritten" | "CommentsAdded" | "CommentsSince" | "CompleteAction" | "Completion" | "ContradictedItem" | "CopyAction" | "CopyLink" | "CopyOutcome" | "CopyReport" | "CopyVia" | "CreateSettings" | "CredentialLayer" | "DeletedComment" | "Delivered" | "DeliveryOutcome" | "DependencyEdge" | "DependencyEndpoint" | "DependencyKind" | "Direction" | "Document" | "DocumentDetail" | "DocumentQuery" | "EffectiveConfig" | "ExpectedWrite" | "Failure" | "FailureClass" | "FailureDocument" | "FindRequest" | "FoundTasks" | "GlobalId" | "Health" | "HeldTask" | "HumanTaskProjected" | "HumanTaskProjection" | "IssueCompleted" | "IssueHolding" | "IssueRef" | "IssuesCompleted" | "ItemKind" | "ItemType" | "Label" | "LinearConfig" | "LinkBatch" | "LinkOutcome" | "LinksWritten" | "LocateReport" | "Located" | "Location" | "MemberDeclaration" | "MetadataSet" | "NativeId" | "NewComment" | "Origin" | "OtherEnd" | "OutputFormat" | "PageOfComment" | "PageOfDependencyEdge" | "PageOfDocument" | "PageOfLabel" | "PageOfProject" | "PageOfTask" | "PageRequest" | "PageToken" | "ParentBatch" | "ParentOutcome" | "ParentsSet" | "Placement" | "PlannedProject" | "Predicate" | "Priority" | "Project" | "ProjectAttestationCheck" | "ProjectGraph" | "ProjectQuery" | "ProjectStatusSet" | "PublicProjections" | "PublicWriteInput" | "QualifiedDocument" | "QualifiedEdge" | "QualifiedEndpoint" | "QualifiedLabel" | "QualifiedProject" | "QualifiedTask" | "QueryPlan" | "QueryResponseOfQualifiedDocument" | "QueryResponseOfQualifiedEdge" | "QueryResponseOfQualifiedLabel" | "QueryResponseOfQualifiedProject" | "QueryResponseOfQualifiedTask" | "QueryResponseOfSearchHit" | "ReadLink" | "ReconcileOutcome" | "Regenerated" | "RelationsItem" | "RenderedTemplate" | "Repository" | "RepositoryVisibility" | "ResolvedCredential" | "Sanitization" | "SanitizeDryRun" | "SearchHit" | "SearchKind" | "SecretsReport" | "Setting" | "SourceCacheConfig" | "SourceError" | "SourceFailure" | "SourceListing" | "SourceListings" | "SourceName" | "SourcePlan" | "SourceRoute" | "SourceVisibility" | "Status" | "StatusCategory" | "StatusContradiction" | "StatusMapping" | "StatusReconciled" | "StatusesReconciled" | "SweepReport" | "Task" | "TaskAssetNames" | "TaskAssigneeSet" | "TaskContentDigest" | "TaskContentSet" | "TaskDetail" | "TaskDetails" | "TaskLink" | "TaskPrioritySet" | "TaskQuery" | "TaskRef" | "TaskRelations" | "TaskStatusSet" | "TaskUpdate" | "TaskUpdateOutcome" | "TaskUpdated" | "TasksUpdated" | "TemplateAnswers" | "TemplateProvenance" | "TemplateVariable" | "TemplateVariables" | "TextFields" | "UpdateBatch" | "UpdatedField" | "VariableType" | "VoidReason" | "WritePolicyConfig" | "WriteVerdict" | "StatusOptionsReport" | "FieldsReport" | "StatusNamesReport";
11
11
  export declare const runtimeSchemas: {
12
12
  readonly [Root in RuntimeSchemaRoot]: JsonSchemaDocument;
13
13
  };
package/dist/index.d.ts CHANGED
@@ -6,6 +6,6 @@
6
6
  * implementation of the query semantics across the CLI and both SDKs.
7
7
  */
8
8
  /** The version this package publishes. `package.json` must agree; see the tests. */
9
- export declare const VERSION = "0.14.17";
9
+ export declare const VERSION = "0.14.18";
10
10
  export * from "./client.ts";
11
11
  export type * from "./generated/models.ts";
package/dist/index.js CHANGED
@@ -7174,6 +7174,7 @@ var binaryCommands = [
7174
7174
  "task metadata set",
7175
7175
  "task attest",
7176
7176
  "task attestation check",
7177
+ "task digest",
7177
7178
  "task update",
7178
7179
  "task create",
7179
7180
  "task render",
@@ -7209,7 +7210,7 @@ var binaryCommands = [
7209
7210
  ];
7210
7211
 
7211
7212
  // src/generated/models.ts
7212
- var SCHEMA_BUNDLE_VERSION = 65;
7213
+ var SCHEMA_BUNDLE_VERSION = 66;
7213
7214
 
7214
7215
  // src/generated/schemas.ts
7215
7216
  var runtimeSchemas = {
@@ -36470,6 +36471,52 @@ from nothing by the value alone.`,
36470
36471
  }
36471
36472
  }
36472
36473
  },
36474
+ TaskContentDigest: {
36475
+ $schema: "https://json-schema.org/draft/2020-12/schema",
36476
+ title: "TaskContentDigest",
36477
+ description: "What `task digest` answers: the digest of one task's authored content, the one an\nattestation records as its `content_digest` for the same content and the same `excludes`.\n\nA caller holding a settlement, a review or any other decision taken against a task's\ncontent records this, and a later read of it says whether the content is still the one the\ndecision was taken against, without reaching into the attestation record.",
36478
+ type: "object",
36479
+ properties: {
36480
+ id: {
36481
+ description: "The task, by qualified id.",
36482
+ $ref: "#/$defs/GlobalId"
36483
+ },
36484
+ content_digest: {
36485
+ description: "`sha256:<hex>` over the task's title, content, repositories, caller-owned metadata\nnot excluded and forward dependency edges.",
36486
+ $ref: "#/$defs/Sha256Digest"
36487
+ },
36488
+ excludes: {
36489
+ description: "The caller-owned metadata keys left out of it, sorted and without repeats.",
36490
+ type: "array",
36491
+ items: {
36492
+ $ref: "#/$defs/MetadataKey"
36493
+ }
36494
+ }
36495
+ },
36496
+ required: [
36497
+ "id",
36498
+ "content_digest",
36499
+ "excludes"
36500
+ ],
36501
+ $defs: {
36502
+ GlobalId: {
36503
+ description: `One item, qualified by the source it came from.
36504
+
36505
+ Rendered \`<source>:<native>\` and parsed by splitting on the **first** colon,
36506
+ so a native id may contain colons freely.`,
36507
+ type: "string"
36508
+ },
36509
+ Sha256Digest: {
36510
+ description: "`sha256:` and 64 lowercase hex digits.",
36511
+ type: "string",
36512
+ pattern: "^sha256:[0-9a-f]{64}$"
36513
+ },
36514
+ MetadataKey: {
36515
+ description: "One caller-owned metadata key: `<namespace>.<name>`, at least two non-empty segments\nseparated by dots, whose first segment is not [`MetadataKey::RESERVED_NAMESPACE`].\n\nValidated wherever one is built, deserialized included, so a plugin handed one never has\nto ask whether it names a key this product owns.",
36516
+ type: "string"
36517
+ }
36518
+ }
36519
+ },
36473
36520
  TaskContentSet: {
36474
36521
  $schema: "https://json-schema.org/draft/2020-12/schema",
36475
36522
  title: "TaskContentSet",
@@ -44962,6 +45009,7 @@ it is; absent — and left out of the JSON — when there is none.`,
44962
45009
 
44963
45010
  // src/client.ts
44964
45011
  var projectGraphDirections = ["auto", "td", "lr"];
45012
+ var updateFieldChoices = ["status"];
44965
45013
  var statusPolicies = ["source", "preserve-destination"];
44966
45014
  var otherwiseChoices = ["refuse", "preserve-destination"];
44967
45015
 
@@ -45017,6 +45065,7 @@ var commandResponseRoots = {
45017
45065
  "task metadata set": "MetadataSet",
45018
45066
  "task attest": "Attested",
45019
45067
  "task attestation check": "AttestationCheck",
45068
+ "task digest": "TaskContentDigest",
45020
45069
  "task update": "TaskUpdated",
45021
45070
  "task find": "FoundTasks",
45022
45071
  "task update-many": "TasksUpdated",
@@ -45061,7 +45110,7 @@ var commandAlternateRoots = {
45061
45110
  "project attestation check": ["ProjectAttestationCheck"],
45062
45111
  "project create": ["PlannedProject"]
45063
45112
  };
45064
- 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"));
45113
+ 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 !== "task digest" && command !== "project create" && command !== "document create"));
45065
45114
  function bodyArguments(options) {
45066
45115
  return "bodyFile" in options ? { args: ["--body-file", options.bodyFile] } : { args: [], input: options.body };
45067
45116
  }
@@ -45526,6 +45575,12 @@ function taskCopyFlags(options) {
45526
45575
  }
45527
45576
  function projectCopyFlags(options) {
45528
45577
  const args = copyFlags("projectCopy", options);
45578
+ if (options.updateFields !== undefined) {
45579
+ if (!updateFieldChoices.some((choice) => choice === options.updateFields)) {
45580
+ throw new TypeError(`projectCopy: updateFields must be ${updateFieldChoices.join(" or ")}`);
45581
+ }
45582
+ args.push("--update-fields", options.updateFields);
45583
+ }
45529
45584
  if (options.noTasks)
45530
45585
  args.push("--no-tasks");
45531
45586
  if (options.documents !== undefined && typeof options.documents !== "boolean") {
@@ -45658,6 +45713,9 @@ class OnetaskgraphClient {
45658
45713
  args.push("--no-project");
45659
45714
  if (options.members)
45660
45715
  args.push("--members");
45716
+ for (const status of stringList("taskList", "notStatuses", options.notStatuses)) {
45717
+ args.push("--not-status", status);
45718
+ }
45661
45719
  for (const priority of options.priorities ?? [])
45662
45720
  args.push("--priority", priority);
45663
45721
  if (options.commentedSince !== undefined) {
@@ -45897,6 +45955,16 @@ class OnetaskgraphClient {
45897
45955
  ...checkFlags("taskAttestationCheck", kind, options)
45898
45956
  ]);
45899
45957
  }
45958
+ taskDigest(id, options = {}) {
45959
+ if (!isPlainObject(options)) {
45960
+ throw new TypeError("taskDigest: options is not an object; next: pass them as a plain object");
45961
+ }
45962
+ const args = [stringOption("taskDigest", "id", id)];
45963
+ for (const key of stringList("taskDigest", "exclude", options.exclude)) {
45964
+ args.push("--exclude", key);
45965
+ }
45966
+ return this.run("task digest", args);
45967
+ }
45900
45968
  documentAttestationCheck(id, kind, options = {}) {
45901
45969
  return this.run("document attestation check", [
45902
45970
  id,
@@ -45904,9 +45972,18 @@ class OnetaskgraphClient {
45904
45972
  ]);
45905
45973
  }
45906
45974
  projectAttestationCheck(id, kind, options = {}) {
45907
- const args = [id, ...checkFlags("projectAttestationCheck", kind, options)];
45908
- if (flagOption("projectAttestationCheck", "tasks", options.tasks))
45975
+ const method = "projectAttestationCheck";
45976
+ const args = [id, ...checkFlags(method, kind, options)];
45977
+ if (flagOption(method, "tasks", options.tasks))
45909
45978
  args.push("--tasks");
45979
+ for (const status of stringList(method, "statuses", options.statuses)) {
45980
+ args.push("--status", status);
45981
+ }
45982
+ for (const status of stringList(method, "notStatuses", options.notStatuses)) {
45983
+ args.push("--not-status", status);
45984
+ }
45985
+ for (const state of stringList(method, "states", options.states))
45986
+ args.push("--state", state);
45910
45987
  return this.run("project attestation check", args);
45911
45988
  }
45912
45989
  labelList(options = {}) {
@@ -46096,8 +46173,9 @@ function assertCompleteCommandSurface() {
46096
46173
  }
46097
46174
 
46098
46175
  // src/index.ts
46099
- var VERSION = "0.14.17";
46176
+ var VERSION = "0.14.18";
46100
46177
  export {
46178
+ updateFieldChoices,
46101
46179
  taskUpdateOptionFlags,
46102
46180
  taskUpdateFlags,
46103
46181
  taskCopyFlags,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@onetaskgraph/sdk",
3
3
  "//": "llmlint: ignore-file[projects_stay_in_one_js_workspace] This package IS the JS workspace's one member; what the rule reads as a second is the optionalDependency below, which is the published launcher an end user installs beside the SDK and resolves from the registry at their own install. `workspace:*` names nothing there, and npm/cli is not a workspace member for the reason its own manifest records. scripts/set-version.sh writes this number and `--check` refuses any other, under distribution-check. JSON has no comment to scope this to the one line.",
4
- "version": "0.14.17",
4
+ "version": "0.14.18",
5
5
  "description": "The TypeScript SDK for onetaskgraph, generated from the binary's own JSON Schema bundle.",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -28,7 +28,7 @@
28
28
  "generate:check": "bun scripts/generate.ts --check"
29
29
  },
30
30
  "optionalDependencies": {
31
- "@onetaskgraph/cli": "0.14.17"
31
+ "@onetaskgraph/cli": "0.14.18"
32
32
  },
33
33
  "devDependencies": {
34
34
  "ajv": "8.17.1",