@sjawhar/claude-envoy 4.13.0 → 4.14.1

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/dispatch.js CHANGED
@@ -15363,10 +15363,24 @@ var CONTENT_IS_MARKDOWN = "content is stored as a Markdown document, which rewri
15363
15363
  var DOCUMENT_IS_MARKDOWN = "a document holds Markdown, which rewrites other text (a JSONL file's lines come back joined into one paragraph)";
15364
15364
  var PATH_KEEPS_BYTES = "path (--path <file>), which stores a file whose path does not end in .md or .markdown as its bytes, unchanged";
15365
15365
  var ARTIFACT_CONTENT_NAME_RULE = `${CONTENT_IS_MARKDOWN}, so a document's name ends in .md or .markdown or has no extension, under content and under neither flag alike; upload any other file (.jsonl, .tsv, .json, .txt) with ${PATH_KEEPS_BYTES}.`;
15366
- var ARTIFACT_NAME_EXISTS_RULE = "An upload under the name of a document the owner already holds is refused: it writes that document's next version, over the text it holds. Change a document with dispatch doc-edit. Send the upload again with force (--force) to write the next version.";
15366
+ var ARTIFACT_NAME_EXISTS_RULE = `An upload under the name of a document the owner already holds is refused: it writes that document's next version, over the text it holds. Change a document with dispatch doc-edit. To write the next version, send the upload again with force (--force) and the token of the version it replaces (--precondition-json '{"document":"sha256:\u2026"}', the token dispatch doc-read prints).`;
15367
15367
  var ARTIFACT_STORED_TEXT_RULE = `content and content-file hold text Dispatch stores as Markdown, and a text the store would write under another spelling is refused. The refusal prints the text Dispatch stores: send that text. A name that does not end in .md or .markdown has a second way out, which keeps the text as it was written: send it as a file with ${PATH_KEEPS_BYTES}.`;
15368
15368
  var NAME_EXTENSION = /\.([^\s.]+)$/u;
15369
15369
  var MARKDOWN_EXTENSION = /^(md|markdown)$/i;
15370
+ function preconditionArgument(z) {
15371
+ return z.object({
15372
+ document: z.string({ min: 1 }).describe("Token for the exact canonical document returned by dispatch doc-read.").optional(),
15373
+ blocks: z.array(z.object({
15374
+ id: z.string({ min: 1 }).describe("Stable block id dispatch doc-read --blocks lists."),
15375
+ token: z.string({ min: 1 }).describe("That block's full-state token, including inline marks.")
15376
+ }), { min: 1 }).describe("Every content block this batch changes, each with the token dispatch doc-read --blocks lists.").optional()
15377
+ }).describe("Optional optimistic-concurrency guard; select exactly one of document or blocks.").optional();
15378
+ }
15379
+ function uploadPreconditionArgument(z) {
15380
+ return z.object({
15381
+ document: z.string({ min: 1 }).describe("Token for the exact canonical document returned by dispatch doc-read.")
15382
+ }).describe("The token of the version this upload replaces, which an upload over a document the owner already holds must name; a first upload under a name replaces nothing and names none.").optional();
15383
+ }
15370
15384
  function pathKeepsBytesOf(name) {
15371
15385
  const extension = NAME_EXTENSION.exec(name.trim())?.[1];
15372
15386
  return extension === undefined || !MARKDOWN_EXTENSION.test(extension);
@@ -15861,13 +15875,7 @@ var dispatchToolSpecs = [
15861
15875
  type: z.string().describe("Typed block name for retype.").optional(),
15862
15876
  attributes: z.unknown().describe("Typed block attributes for retype; a CR LF or a lone carriage return in a string value is written as a line feed.").optional()
15863
15877
  }, { strict: true })).describe("Flat tagged edits; an operation takes only the keys below, a misspelled one is refused rather than ignored, and the server validates the fields its op requires."),
15864
- precondition: z.object({
15865
- document: z.string({ min: 1 }).describe("Token for the exact canonical document returned by dispatch doc-read.").optional(),
15866
- blocks: z.array(z.object({
15867
- id: z.string({ min: 1 }).describe("Stable block id dispatch doc-read --blocks lists."),
15868
- token: z.string({ min: 1 }).describe("That block's full-state token, including inline marks.")
15869
- }), { min: 1 }).describe("Every content block this batch changes, each with the token dispatch doc-read --blocks lists.").optional()
15870
- }).describe("Optional optimistic-concurrency guard; select exactly one of document or blocks.").optional(),
15878
+ precondition: preconditionArgument(z),
15871
15879
  summary: z.string().describe("Optional named-version summary.").optional()
15872
15880
  }),
15873
15881
  validation: documentEditValidation
@@ -15970,7 +15978,7 @@ var dispatchToolSpecs = [
15970
15978
  name: "dispatch_artifact",
15971
15979
  example: { issue: "DSP-1", name: "design.md", content: `# Design
15972
15980
  ` },
15973
- description: "Attach a local file or inline text as an issue artifact or project document, or make an empty document from its name alone. Do not use it to edit a live document; use " + "dispatch doc-edit instead. Never upload a document's own name to change it (spec.md replaces the spec whole); edit it with dispatch doc-edit. " + `${ARTIFACT_SOURCE_RULE} ` + `${ARTIFACT_NAME_EXISTS_RULE} A call that stores nothing - no path, and content absent or blank - is refused under a held name even with force, so a title typed twice never empties the document that holds it. ` + "A markdown document is at most 1 MiB and any other file at most 25 MiB. " + `${ARTIFACT_CONTENT_NAME_RULE} ${ARTIFACT_STORED_TEXT_RULE} ` + "Markdown is also refused with 413 CAP_EXCEEDED when it makes more than 65,536 elements (a block weighs 3, and an empty list item, quote, footnote definition or typed block 3 more for the empty paragraph it holds; a table cell 4, a hard line break 3, an image 3, a piece of inline HTML 2, an autolink 2, a footnote reference 2; inline syntax, marks, lines of text and backslash escapes or character references 1 each), or when a new version would leave the document's stored markdown (what its text reads back as) longer than 1 MiB or making more than 65,536 elements, and longer or heavier than before; shorten it or split it across documents. " + "In a table row, write every | in a cell as \\|, in code too: a | after two backslashes ends the cell, and a row with more cells than its table is refused. " + "Markdown holding an ask block whose body breaks its content rule (one or more question paragraphs, then at most one bullet list of options, last) is refused with 400 INVALID_ASK_BLOCK; a new version of a document is held to it only for the asks it writes or changes. " + `${CI_CHECK_RULE} ` + `${OWNER_REFERENCE}`,
15981
+ description: "Attach a local file or inline text as an issue artifact or project document, or make an empty document from its name alone. Do not use it to edit a live document; use " + "dispatch doc-edit instead. Never upload a document's own name to change it (spec.md replaces the spec whole); edit it with dispatch doc-edit. " + `${ARTIFACT_SOURCE_RULE} ` + `${ARTIFACT_NAME_EXISTS_RULE} A call that stores nothing - no path, and content absent or blank - is refused under a held name even with force and a token, so a title typed twice never empties the document that holds it; that refusal names no token, since no token makes such a call one Dispatch takes. ` + "A markdown document is at most 1 MiB and any other file at most 25 MiB. " + "An upload that replaces a document the owner already holds under that name says which version it replaces: precondition.document takes the document token dispatch doc-read prints as `Document token: sha256:\u2026`, and an upload that names none is refused with 400 PRECONDITION_REQUIRED. A token behind the live document is refused with 409 PRECONDITION_FAILED. The refusal tells you to read the document again with dispatch doc-read, which prints the token the document carries now, and to upload again naming that token. A first upload under a name replaces no version, and a file that is not a document holds no token, so neither names one. " + `${ARTIFACT_CONTENT_NAME_RULE} ${ARTIFACT_STORED_TEXT_RULE} ` + "Markdown is also refused with 413 CAP_EXCEEDED when it makes more than 65,536 elements (a block weighs 3, and an empty list item, quote, footnote definition or typed block 3 more for the empty paragraph it holds; a table cell 4, a hard line break 3, an image 3, a piece of inline HTML 2, an autolink 2, a footnote reference 2; inline syntax, marks, lines of text and backslash escapes or character references 1 each), or when a new version would leave the document's stored markdown (what its text reads back as) longer than 1 MiB or making more than 65,536 elements, and longer or heavier than before; shorten it or split it across documents. " + "In a table row, write every | in a cell as \\|, in code too: a | after two backslashes ends the cell, and a row with more cells than its table is refused. " + "Markdown holding an ask block whose body breaks its content rule (one or more question paragraphs, then at most one bullet list of options, last) is refused with 400 INVALID_ASK_BLOCK; a new version of a document is held to it only for the asks it writes or changes. " + `${CI_CHECK_RULE} ` + `${OWNER_REFERENCE}`,
15974
15982
  arguments: (z) => ({
15975
15983
  issue: z.string().describe(ISSUE_REFERENCE).optional(),
15976
15984
  project: z.string().describe("Project key for an unlinked document.").optional(),
@@ -15978,6 +15986,7 @@ var dispatchToolSpecs = [
15978
15986
  path: z.string().describe("Local path to the file to upload.").optional(),
15979
15987
  content: z.string().describe("Inline text to store as a Markdown document, under a name ending in .md or .markdown or with no extension. The command refuses a text the store would write under another spelling, a CR LF or a lone carriage return among them, which Dispatch stores as a line feed. A missing line feed at the end is not such a text: Dispatch adds one, and the upload goes on. The refusal prints the text Dispatch stores, which is the text to send.").optional(),
15980
15988
  force: z.boolean().describe("Write the next version of a document the owner already holds under this name; without it the upload of a name that exists is refused.").optional(),
15989
+ precondition: uploadPreconditionArgument(z),
15981
15990
  summary: z.string().describe("Optional version summary.").optional()
15982
15991
  }),
15983
15992
  validation: {
@@ -20686,6 +20695,8 @@ class DispatchClient {
20686
20695
  form.set("name", input.name);
20687
20696
  if (input.summary !== undefined)
20688
20697
  form.set("summary", input.summary);
20698
+ if (input.precondition !== undefined)
20699
+ form.set("precondition", JSON.stringify(input.precondition));
20689
20700
  if (input.actor !== undefined)
20690
20701
  form.set("actor", JSON.stringify(input.actor));
20691
20702
  form.set("file", input.file, input.name);
@@ -21187,6 +21198,10 @@ function optionalNumber(args, name) {
21187
21198
  const value = args[name];
21188
21199
  return typeof value === "number" ? value : undefined;
21189
21200
  }
21201
+ function optionalPrecondition(args) {
21202
+ const { precondition } = args;
21203
+ return precondition;
21204
+ }
21190
21205
  function defined(name, value) {
21191
21206
  return value === undefined ? {} : { [name]: value };
21192
21207
  }
@@ -24359,6 +24374,25 @@ function movedApprovalClauses(documents) {
24359
24374
  function movedApprovalDocuments(documents) {
24360
24375
  return documents.filter((document) => document.requested_version < document.version);
24361
24376
  }
24377
+ function standingReviewLines(advice) {
24378
+ const review = advice?.standing_review;
24379
+ if (review === undefined)
24380
+ return [];
24381
+ const carriedFrom = review.carried_from_version;
24382
+ if (carriedFrom !== undefined) {
24383
+ return [
24384
+ `${review.by}'s approval of this issue's spec was carried forward from the approval of version ${carriedFrom}, and Dispatch recorded that carry on ${review.at}.`,
24385
+ "Say what changed since that review in a reply on this ask."
24386
+ ];
24387
+ }
24388
+ const verb = review.state === "approved" ? "approved" : "asked for changes on";
24389
+ const opening = `${review.by} ${verb} this issue's spec at version ${review.version} on ${review.at}`;
24390
+ const reason = review.reason ?? "";
24391
+ return [
24392
+ reason === "" ? `${opening}, and gave no reason.` : `${opening}: ${JSON.stringify(reason)}`,
24393
+ "Say what changed since that review in a reply on this ask."
24394
+ ];
24395
+ }
24362
24396
  function renderAdvice(tool, key, advice, opts) {
24363
24397
  if (advice === undefined)
24364
24398
  return [];
@@ -25988,6 +26022,7 @@ async function askCommand(context) {
25988
26022
  text: stringArg(args, "question"),
25989
26023
  linkBase
25990
26024
  });
26025
+ const reviewLines = await otherAdviceLines(() => standingReviewLines(ask.advice));
25991
26026
  const declinedLines = ask.issue_key === null ? [] : declinedAskLines(ask.advice, ask.issue_key, linkBase);
25992
26027
  const adviceLines = await otherAdviceLines(() => renderAdvice(input.tool, askOwner.label, ask.advice, {}));
25993
26028
  const asked = waitsOnPerson(ask);
@@ -25995,6 +26030,7 @@ async function askCommand(context) {
25995
26030
  text: [
25996
26031
  `Asked ${ask.id} on ${askOwner.label} (urgency ${ask.urgency})${asked === undefined ? "" : `, waiting on ${asked}`}: ${ask.question}`,
25997
26032
  ...checkLines,
26033
+ ...reviewLines,
25998
26034
  ...declinedLines,
25999
26035
  await followsAsk(askOwner, input.subscriptions),
26000
26036
  ...adviceLines
@@ -26269,6 +26305,91 @@ import { resolve as resolvePath2 } from "path";
26269
26305
  // ../contracts/src/go-blank.ts
26270
26306
  var goBlankPattern = /^[\t\n\v\f\r \u0085\u00A0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]*$/u;
26271
26307
 
26308
+ // ../envoy-client/src/dispatch-commands/upload-checks.ts
26309
+ function artifactUnderName(artifacts, name) {
26310
+ const written = name.trim();
26311
+ return artifacts.find((held) => held.slug === written) ?? artifacts.find((held) => held.name === written);
26312
+ }
26313
+ function artifactNameExistsProblem(held, owner) {
26314
+ const versions = held.versions ?? [];
26315
+ const newest = versions[versions.length - 1];
26316
+ if (newest === undefined) {
26317
+ return `${owner} already holds ${held.name} (slug ${held.slug}, kind ${held.kind}), which has no version yet and which ${actorText(held.created_by)} created. ${ARTIFACT_NAME_EXISTS_RULE}`;
26318
+ }
26319
+ const authors = (newest.authors ?? []).map(actorText);
26320
+ const wroteIt = authors.length === 0 ? actorText(held.created_by) : authors.join(" and ");
26321
+ return `${owner} already holds ${held.name} (slug ${held.slug}, kind ${held.kind}) at version ${newest.number}, which ${wroteIt} wrote. ${ARTIFACT_NAME_EXISTS_RULE}`;
26322
+ }
26323
+ var STORED_LINE_QUOTED = 200;
26324
+ function quotedStoredLine(line) {
26325
+ if (line.length <= STORED_LINE_QUOTED)
26326
+ return JSON.stringify(line);
26327
+ const head = JSON.stringify(line.slice(0, STORED_LINE_QUOTED));
26328
+ return `${head} (cut after ${STORED_LINE_QUOTED} of its ${line.length} characters)`;
26329
+ }
26330
+ function firstStoredDifference(given, stored) {
26331
+ const written = given.split(`
26332
+ `);
26333
+ const holds = stored.split(`
26334
+ `);
26335
+ for (let line = 0;line < Math.max(written.length, holds.length); line += 1) {
26336
+ const wrote = written[line];
26337
+ const held = holds[line];
26338
+ if (wrote === held)
26339
+ continue;
26340
+ if (wrote === undefined && held !== undefined) {
26341
+ return `the store writes a line ${line + 1}, ${quotedStoredLine(held)}`;
26342
+ }
26343
+ if (held === undefined && wrote !== undefined) {
26344
+ return `the store drops line ${line + 1}, ${quotedStoredLine(wrote)}`;
26345
+ }
26346
+ if (wrote !== undefined && held !== undefined) {
26347
+ return `line ${line + 1} reads ${quotedStoredLine(wrote)} and is stored as ${quotedStoredLine(held)}`;
26348
+ }
26349
+ }
26350
+ return "the stored text differs from the text given";
26351
+ }
26352
+ var STORED_TEXT_PRINTED = 2000;
26353
+ function storedTextPrinted(stored) {
26354
+ if (stored.length <= STORED_TEXT_PRINTED)
26355
+ return { text: stored, cut: "" };
26356
+ const head = stored.slice(0, STORED_TEXT_PRINTED);
26357
+ const lastLineFeed = head.lastIndexOf(`
26358
+ `);
26359
+ const text = lastLineFeed === -1 ? head : head.slice(0, lastLineFeed + 1);
26360
+ return {
26361
+ text,
26362
+ cut: ` The text below is cut after ${text.length} of its ${stored.length} characters: change the line named above and send the text again.`
26363
+ };
26364
+ }
26365
+ function storedTextProblem(given, stored, name) {
26366
+ const asBytes = pathKeepsBytesOf(name) ? ` To keep the text as you wrote it, send it as a file with ${PATH_KEEPS_BYTES}.` : "";
26367
+ const printed = storedTextPrinted(stored);
26368
+ return [
26369
+ `Dispatch stores this text under another spelling: ${firstStoredDifference(given, stored)}.`,
26370
+ ` Send the text Dispatch stores, which is between the two marker lines below.${asBytes}`,
26371
+ `${printed.cut}
26372
+ --- the text Dispatch stores ---
26373
+ ${printed.text}`,
26374
+ "--- end of the text Dispatch stores ---"
26375
+ ].join("");
26376
+ }
26377
+ function storedTextCheckFailed(error, name) {
26378
+ const failure = `Dispatch could not say how it would store this text, so nothing was uploaded: POST /api/v1/markdown/round-trip failed with ${messageFor(error)}.`;
26379
+ if (!dispatchAnswered(error, 413)) {
26380
+ return `${failure} Send the upload again once that call is answered.`;
26381
+ }
26382
+ const asBytes = pathKeepsBytesOf(name) ? ` Send it as a file with ${PATH_KEEPS_BYTES}, which asks this check nothing.` : "";
26383
+ return `${failure} This text is longer than the check reads, and sending the upload again does not change that: a markdown document is at most 1 MiB, so shorten it or split it across documents of at most that.${asBytes}`;
26384
+ }
26385
+ function roundTripRouteAbsent(error) {
26386
+ return dispatchAnswered(error, 404) || dispatchAnswered(error, 405);
26387
+ }
26388
+ function withoutFinalLineFeed(text) {
26389
+ return text.endsWith(`
26390
+ `) ? text.slice(0, -1) : text;
26391
+ }
26392
+
26272
26393
  // ../envoy-client/src/dispatch-commands/documents.ts
26273
26394
  async function blockAsks(client, resolved, state) {
26274
26395
  const asks = await (resolved.issue === undefined ? client.getArtifactAsks(resolved.artifact.id, state) : client.listIssueAsks(resolved.issue.key, state));
@@ -26448,8 +26569,7 @@ async function docEditCommand(context) {
26448
26569
  const resolved = await resolveDocument(documentOwner(), optionalString(args, "artifact"));
26449
26570
  const ops = args.ops;
26450
26571
  const summary = optionalString(args, "summary");
26451
- const { precondition: rawPrecondition } = args;
26452
- const precondition = rawPrecondition;
26572
+ const precondition = optionalPrecondition(args);
26453
26573
  await refuseRemovingOpenDecisionBlocks(client, input.tool, resolved, ops);
26454
26574
  const edited = await client.docEdit(resolved.artifact.id, {
26455
26575
  ops,
@@ -26629,96 +26749,19 @@ async function planApproveCommand(context) {
26629
26749
  }
26630
26750
  };
26631
26751
  }
26632
- function artifactUnderName(artifacts, name) {
26633
- const written = name.trim();
26634
- return artifacts.find((held) => held.slug === written) ?? artifacts.find((held) => held.name === written);
26635
- }
26636
- function artifactNameExistsProblem(held, owner) {
26637
- const versions = held.versions ?? [];
26638
- const newest = versions[versions.length - 1];
26639
- if (newest === undefined) {
26640
- return `${owner} already holds ${held.name} (slug ${held.slug}, kind ${held.kind}), which has no version yet and which ${actorText(held.created_by)} created. ${ARTIFACT_NAME_EXISTS_RULE}`;
26641
- }
26642
- const authors = (newest.authors ?? []).map(actorText);
26643
- const wroteIt = authors.length === 0 ? actorText(held.created_by) : authors.join(" and ");
26644
- return `${owner} already holds ${held.name} (slug ${held.slug}, kind ${held.kind}) at version ${newest.number}, which ${wroteIt} wrote. ${ARTIFACT_NAME_EXISTS_RULE}`;
26645
- }
26646
- var STORED_LINE_QUOTED = 200;
26647
- function quotedStoredLine(line) {
26648
- if (line.length <= STORED_LINE_QUOTED)
26649
- return JSON.stringify(line);
26650
- const head = JSON.stringify(line.slice(0, STORED_LINE_QUOTED));
26651
- return `${head} (cut after ${STORED_LINE_QUOTED} of its ${line.length} characters)`;
26652
- }
26653
- function firstStoredDifference(given, stored) {
26654
- const written = given.split(`
26655
- `);
26656
- const holds = stored.split(`
26657
- `);
26658
- for (let line = 0;line < Math.max(written.length, holds.length); line += 1) {
26659
- const wrote = written[line];
26660
- const held = holds[line];
26661
- if (wrote === held)
26662
- continue;
26663
- if (wrote === undefined && held !== undefined) {
26664
- return `the store writes a line ${line + 1}, ${quotedStoredLine(held)}`;
26665
- }
26666
- if (held === undefined && wrote !== undefined) {
26667
- return `the store drops line ${line + 1}, ${quotedStoredLine(wrote)}`;
26668
- }
26669
- if (wrote !== undefined && held !== undefined) {
26670
- return `line ${line + 1} reads ${quotedStoredLine(wrote)} and is stored as ${quotedStoredLine(held)}`;
26671
- }
26672
- }
26673
- return "the stored text differs from the text given";
26674
- }
26675
- var STORED_TEXT_PRINTED = 2000;
26676
- function storedTextPrinted(stored) {
26677
- if (stored.length <= STORED_TEXT_PRINTED)
26678
- return { text: stored, cut: "" };
26679
- const head = stored.slice(0, STORED_TEXT_PRINTED);
26680
- const lastLineFeed = head.lastIndexOf(`
26681
- `);
26682
- const text = lastLineFeed === -1 ? head : head.slice(0, lastLineFeed + 1);
26683
- return {
26684
- text,
26685
- cut: ` The text below is cut after ${text.length} of its ${stored.length} characters: change the line named above and send the text again.`
26686
- };
26687
- }
26688
- function storedTextProblem(given, stored, name) {
26689
- const asBytes = pathKeepsBytesOf(name) ? ` To keep the text as you wrote it, send it as a file with ${PATH_KEEPS_BYTES}.` : "";
26690
- const printed = storedTextPrinted(stored);
26691
- return [
26692
- `Dispatch stores this text under another spelling: ${firstStoredDifference(given, stored)}.`,
26693
- ` Send the text Dispatch stores, which is between the two marker lines below.${asBytes}`,
26694
- `${printed.cut}
26695
- --- the text Dispatch stores ---
26696
- ${printed.text}`,
26697
- "--- end of the text Dispatch stores ---"
26698
- ].join("");
26699
- }
26700
- function storedTextCheckFailed(error, name) {
26701
- const failure = `Dispatch could not say how it would store this text, so nothing was uploaded: POST /api/v1/markdown/round-trip failed with ${messageFor(error)}.`;
26702
- if (!dispatchAnswered(error, 413)) {
26703
- return `${failure} Send the upload again once that call is answered.`;
26704
- }
26705
- const asBytes = pathKeepsBytesOf(name) ? ` Send it as a file with ${PATH_KEEPS_BYTES}, which asks this check nothing.` : "";
26706
- return `${failure} This text is longer than the check reads, and sending the upload again does not change that: a markdown document is at most 1 MiB, so shorten it or split it across documents of at most that.${asBytes}`;
26707
- }
26708
- function roundTripRouteAbsent(error) {
26709
- return dispatchAnswered(error, 404) || dispatchAnswered(error, 405);
26710
- }
26711
- function withoutFinalLineFeed(text) {
26712
- return text.endsWith(`
26713
- `) ? text.slice(0, -1) : text;
26714
- }
26715
26752
  async function artifactCommand(context) {
26716
26753
  const { args, client, actor, input, documentOwner, issue } = context;
26717
26754
  const summary = optionalString(args, "summary");
26718
26755
  const name = stringArg(args, "name");
26719
26756
  const content = optionalString(args, "content");
26720
26757
  const path = optionalString(args, "path");
26721
- const options = { name, ...summary === undefined ? {} : { summary }, actor };
26758
+ const precondition = optionalPrecondition(args);
26759
+ const options = {
26760
+ name,
26761
+ ...summary === undefined ? {} : { summary },
26762
+ ...precondition === undefined ? {} : { precondition },
26763
+ actor
26764
+ };
26722
26765
  const artifactOwner = documentOwner();
26723
26766
  const blank = content === undefined || goBlankPattern.test(content);
26724
26767
  if ((path !== undefined || !blank) && optionalBoolean(args, "force") !== true) {