@intentius/plywood 0.3.5 → 0.3.7

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.
@@ -1,4 +1,4 @@
1
1
  {
2
- "ghcr.io/intentius/plywood-pulumi:0.3.5-pulumi3.272.0": "sha256:a1288d42eaba8ec556ed3ea40a24cfda94a8413576b7f0129b30ab7620639f07",
3
- "ghcr.io/intentius/plywood-plunge:0.3.5-plunge0.2.0": "sha256:4384ee4b92c8b0cb00c4833bc0118a820a0c3620ad78dc50d9e21fb0d9fff370"
2
+ "ghcr.io/intentius/plywood-pulumi:0.3.7-pulumi3.272.0": "sha256:ff819081aef5d941e04ad168650bb5c4bd91a4e08e180d81c2525522f2b98988",
3
+ "ghcr.io/intentius/plywood-plunge:0.3.7-plunge0.2.0": "sha256:4e4e1feb34948f96683d8a3187ca6478d48feeddf060914fb517d3e06faa67d5"
4
4
  }
package/dist/plywood.mjs CHANGED
@@ -20,7 +20,7 @@ var __export = (target, all) => {
20
20
  var define_PLYWOOD_IMAGE_DIGESTS_default;
21
21
  var init_define_PLYWOOD_IMAGE_DIGESTS = __esm({
22
22
  "<define:__PLYWOOD_IMAGE_DIGESTS__>"() {
23
- define_PLYWOOD_IMAGE_DIGESTS_default = { "ghcr.io/intentius/plywood-pulumi:0.3.5-pulumi3.272.0": "sha256:a1288d42eaba8ec556ed3ea40a24cfda94a8413576b7f0129b30ab7620639f07", "ghcr.io/intentius/plywood-plunge:0.3.5-plunge0.2.0": "sha256:4384ee4b92c8b0cb00c4833bc0118a820a0c3620ad78dc50d9e21fb0d9fff370" };
23
+ define_PLYWOOD_IMAGE_DIGESTS_default = { "ghcr.io/intentius/plywood-pulumi:0.3.7-pulumi3.272.0": "sha256:ff819081aef5d941e04ad168650bb5c4bd91a4e08e180d81c2525522f2b98988", "ghcr.io/intentius/plywood-plunge:0.3.7-plunge0.2.0": "sha256:4e4e1feb34948f96683d8a3187ca6478d48feeddf060914fb517d3e06faa67d5" };
24
24
  }
25
25
  });
26
26
 
@@ -618,13 +618,13 @@ var init_control = __esm({
618
618
  var version, dependencies;
619
619
  var init_package = __esm({
620
620
  "package.json"() {
621
- version = "0.3.5";
621
+ version = "0.3.7";
622
622
  dependencies = {
623
- "@intentius/chant": "0.124.79",
624
- "@intentius/chant-lexicon-forgejo": "0.124.79",
625
- "@intentius/chant-lexicon-github": "0.124.79",
626
- "@intentius/chant-lexicon-gitlab": "0.124.79",
627
- "@intentius/chant-lexicon-pulumi": "0.124.79"
623
+ "@intentius/chant": "0.124.84",
624
+ "@intentius/chant-lexicon-forgejo": "0.124.84",
625
+ "@intentius/chant-lexicon-github": "0.124.84",
626
+ "@intentius/chant-lexicon-gitlab": "0.124.84",
627
+ "@intentius/chant-lexicon-pulumi": "0.124.84"
628
628
  };
629
629
  }
630
630
  });
@@ -4533,14 +4533,12 @@ function chantReferenceReader() {
4533
4533
  }
4534
4534
  async function exportOf(reader, root, s) {
4535
4535
  const dir = join9(root, s.dir);
4536
- if (reader.memberExportOf) {
4537
- try {
4538
- const found = await reader.memberExportOf(dir, { stack: s.stack });
4539
- if (found !== void 0) return found;
4540
- } catch {
4541
- }
4536
+ try {
4537
+ const found = await reader.memberExportOf(dir, { stack: s.stack });
4538
+ if (found !== void 0) return found;
4539
+ } catch {
4542
4540
  }
4543
- return reader.readMemberExport?.(dir);
4541
+ return reader.readMemberExport(dir);
4544
4542
  }
4545
4543
  async function stackOrder(root, stacks2, after = {}) {
4546
4544
  const edges = [];
@@ -5647,9 +5645,7 @@ __export(control_exports, {
5647
5645
  wavesControl: () => wavesControl
5648
5646
  });
5649
5647
  import { existsSync as existsSync11, readFileSync as readFileSync13, writeFileSync as writeFileSync7 } from "node:fs";
5650
- import { createRequire } from "node:module";
5651
5648
  import { dirname as dirname10, join as join14 } from "node:path";
5652
- import { pathToFileURL } from "node:url";
5653
5649
  import { emitYAMLEntry as emitYAMLEntry3, parseYAML as parseYAML4 } from "@intentius/chant/yaml";
5654
5650
  async function wavesControl(cwd) {
5655
5651
  const file = findConfig(cwd);
@@ -5744,14 +5740,14 @@ async function control2(args, json, table, io) {
5744
5740
  return table.failed;
5745
5741
  }
5746
5742
  }
5747
- async function forgeControlPipeline(cwd, forge) {
5748
- const name = `@intentius/chant-lexicon-${forge}/components/control-pipeline`;
5749
- try {
5750
- const require2 = createRequire(join14(cwd, "package.json"));
5751
- const m = await import(pathToFileURL(require2.resolve(name)).href);
5752
- return typeof m.generateControlPipeline === "function" ? m.generateControlPipeline : void 0;
5753
- } catch {
5754
- return void 0;
5743
+ async function forgeControlPipeline(forge) {
5744
+ switch (forge) {
5745
+ case "github":
5746
+ return (await import("@intentius/chant-lexicon-github/components/control-pipeline")).generateControlPipeline;
5747
+ case "gitlab":
5748
+ return (await import("@intentius/chant-lexicon-gitlab/components/control-pipeline")).generateControlPipeline;
5749
+ case "forgejo":
5750
+ return (await import("@intentius/chant-lexicon-forgejo/components/control-pipeline")).generateControlPipeline;
5755
5751
  }
5756
5752
  }
5757
5753
  async function controlInit(chant, args, emit, table, io) {
@@ -5762,10 +5758,7 @@ async function controlInit(chant, args, emit, table, io) {
5762
5758
  const dryRun = forgeFlag.rest.includes("--dry-run");
5763
5759
  const forge = forgeFlag.value ?? "github";
5764
5760
  if (!FORGES.includes(forge)) return usage(`--forge ${forge} is not one of ${FORGES.join(", ")}`, table, io);
5765
- const generate = await forgeControlPipeline(io.cwd, forge);
5766
- if (!generate) {
5767
- return usage(`control init writes the control repo's workflow with @intentius/chant-lexicon-${forge}'s generateControlPipeline (chant#4568); install it in the control repo at the chant release that has it`, table, io);
5768
- }
5761
+ const generate = await forgeControlPipeline(forge);
5769
5762
  const file = generate({ words: PRODUCT_WORDS });
5770
5763
  const path = join14(io.cwd, file.path);
5771
5764
  const before = existsSync11(path) ? readFileSync13(path, "utf8") : void 0;
@@ -6168,7 +6161,9 @@ function workflowPlan(chant, doc, forge, env, waves, extra = [], opts = {}) {
6168
6161
  staleNotes: true,
6169
6162
  ...respond.options,
6170
6163
  ...applyMerge ? { applyMerge } : {},
6171
- ...actionJob ? { actionJob: true } : {}
6164
+ ...actionJob ? { actionJob: true } : {},
6165
+ // chant#4785: GitLab starts no pipeline on a note, so a scheduled note-commands job answers the comments.
6166
+ ...forge === "gitlab" ? { noteCommands: true } : {}
6172
6167
  });
6173
6168
  const prWords = shape.applyBeforeMerge ? words : wordsForJobs(jobsWanted.filter((j) => j !== "apply"));
6174
6169
  const argv = [
@@ -6188,6 +6183,7 @@ function workflowPlan(chant, doc, forge, env, waves, extra = [], opts = {}) {
6188
6183
  "--preview-comment",
6189
6184
  "--stale-notes",
6190
6185
  ...actionJob ? ["--action-job"] : [],
6186
+ ...forge === "gitlab" ? ["--note-commands"] : [],
6191
6187
  // Review stacks (plywood#15): chant's pr-env jobs.
6192
6188
  ...doc.review_stacks !== void 0 ? ["--pr-env"] : [],
6193
6189
  ...opts.prJobs?.flags ?? [],
@@ -6264,7 +6260,7 @@ var init_stages = __esm({
6264
6260
  forgejo: ".forgejo/workflows/plywood.yml",
6265
6261
  gitlab: ".gitlab-ci.yml"
6266
6262
  };
6267
- ACTIONS_NOT_ON_GITLAB = "plywood.yml declares actions, and a GitLab pipeline starts on no comment or dispatch with inputs, so it has no action job; run 'plywood action <stack> <name>' from a pipeline of your own";
6263
+ ACTIONS_NOT_ON_GITLAB = "plywood.yml declares actions, and chant's GitLab pipeline has no action job: GitLab has no dispatch with inputs, and the note-commands job answers no /plywood action; run 'plywood action <stack> <name>' from a pipeline of your own";
6268
6264
  CHANT_RESPOND_DEFAULTS = Object.freeze({ "wave-refused": "diff", "apply-failed": "triage", description: "off" });
6269
6265
  DECIDE_LEFT_OFF = "decide is set and respond.description is not check, so plywood leaves the decide service off the pull request jobs";
6270
6266
  }
@@ -7363,7 +7359,7 @@ var execChild = (bin, args, opts) => new Promise((done) => {
7363
7359
 
7364
7360
  // src/cli.ts
7365
7361
  init_words();
7366
- var VERSION3 = true ? "0.3.5" : "0.0.0-dev";
7362
+ var VERSION3 = true ? "0.3.7" : "0.0.0-dev";
7367
7363
  var stdio = {
7368
7364
  out: (s) => process.stdout.write(s + "\n"),
7369
7365
  err: (s) => process.stderr.write(s + "\n")