@kitman-sh/go-to-market 0.10.75 → 0.10.77

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/bundle.js CHANGED
@@ -18748,7 +18748,11 @@ var ArtifactRequest = Struct({
18748
18748
  files: optional2(ArraySchema(RunFile))
18749
18749
  });
18750
18750
  var ArtifactResult = Struct({ artifactId: String5 });
18751
- var NoteRequest = Struct({ text: String5, artifactId: optional2(String5) });
18751
+ var NoteRequest = Struct({
18752
+ text: String5,
18753
+ artifactId: optional2(String5),
18754
+ kind: optional2(Literals(["note", "blocker"]))
18755
+ });
18752
18756
  var CreateTasksRequest = Struct({
18753
18757
  tickets: ArraySchema(PlanTicket),
18754
18758
  projectId: optionalKey2(String5)
@@ -19696,10 +19700,17 @@ var scriptedHost = (script, engine, agentLaunches, childLaunches, waits, verifyL
19696
19700
  ...launch.mergeTarget === undefined ? undefined : { mergeTarget: launch.mergeTarget }
19697
19701
  })), resolve(agentDeferredNamed(launch.deferredName), launch.token, scriptedExit(script.outputs?.[launch.step], (reason) => new StepFailed({ step: launch.step, reason })))),
19698
19702
  putQuestion: (launch) => {
19699
- const answer = script.answers?.[launch.step] ?? (script.fullAuto === true ? launch.auto : undefined) ?? launch.default;
19703
+ const attended = script.attended === true;
19704
+ const auto = script.fullAuto === true ? launch.auto ?? (attended ? undefined : launch.unattendedAuto) : undefined;
19705
+ const answer = script.answers?.[launch.step] ?? auto ?? (attended ? undefined : launch.default);
19700
19706
  return resolve(answerDeferred(launch.step), launch.token, answer === undefined ? fail5(new StepFailed({ step: launch.step, reason: "no answer was scripted" })) : succeed4(answer));
19701
19707
  },
19702
- admitChild: (launch) => andThen2(sync2(() => childLaunches.push({ step: launch.step, loop: launch.loop, input: launch.input })), resolve(childDeferred(launch.step), launch.token, scriptedExit(script.children?.[launch.step], (reason) => new ChildFailed({ step: launch.step, loop: launch.loop, reason })))),
19708
+ admitChild: (launch) => andThen2(sync2(() => childLaunches.push({
19709
+ step: launch.step,
19710
+ loop: launch.loop,
19711
+ input: launch.input,
19712
+ ...launch.constraints === undefined ? undefined : { constraints: launch.constraints }
19713
+ })), resolve(childDeferred(launch.step), launch.token, scriptedExit(script.children?.[launch.step], (reason) => new ChildFailed({ step: launch.step, loop: launch.loop, reason })))),
19703
19714
  awaitEvent: (launch) => {
19704
19715
  const event = script.events?.[launch.step];
19705
19716
  waits.push({
@@ -21840,6 +21851,7 @@ class RunnerCapabilityRpcs extends make29(make28("PutQuestion", {
21840
21851
  verification: optional2(SuggestedVerification),
21841
21852
  default: optional2(String5),
21842
21853
  auto: optional2(String5),
21854
+ unattendedAuto: optional2(String5),
21843
21855
  timeoutMillis: optional2(Finite),
21844
21856
  deferredName: String5
21845
21857
  },
@@ -21910,6 +21922,7 @@ class RunnerCapabilityRpcs extends make29(make28("PutQuestion", {
21910
21922
  step: String5,
21911
21923
  loop: String5,
21912
21924
  input: Json2,
21925
+ constraints: optional2(ArraySchema(String5)),
21913
21926
  deferredName: String5
21914
21927
  },
21915
21928
  success: Struct({ runId: String5 }),
@@ -21931,7 +21944,8 @@ class RunnerCapabilityRpcs extends make29(make28("PutQuestion", {
21931
21944
  lease: ProgramLease,
21932
21945
  step: String5,
21933
21946
  text: String5,
21934
- artifactId: optional2(String5)
21947
+ artifactId: optional2(String5),
21948
+ kind: optional2(Literals(["note", "blocker"]))
21935
21949
  },
21936
21950
  error: RunnerRpcError
21937
21951
  }), make28("PerformHostEffect", {
@@ -22365,6 +22379,7 @@ var runnerHost = (capabilities) => ({
22365
22379
  ...launch.verification === undefined ? undefined : { verification: launch.verification },
22366
22380
  ...launch.default === undefined ? undefined : { default: launch.default },
22367
22381
  ...launch.auto === undefined ? undefined : { auto: launch.auto },
22382
+ ...launch.unattendedAuto === undefined ? undefined : { unattendedAuto: launch.unattendedAuto },
22368
22383
  ...launch.timeoutMillis === undefined ? undefined : { timeoutMillis: launch.timeoutMillis }
22369
22384
  })).pipe(asVoid2),
22370
22385
  startVerification: (launch) => requested(launch.step, capabilities.startVerification({
@@ -22392,6 +22407,7 @@ var runnerHost = (capabilities) => ({
22392
22407
  step: launch.step,
22393
22408
  loop: launch.loop,
22394
22409
  input: launch.input,
22410
+ ...launch.constraints === undefined ? undefined : { constraints: launch.constraints },
22395
22411
  deferredName: childDeferred(launch.step).name
22396
22412
  })).pipe(asVoid2),
22397
22413
  claimResource: (launch) => requested(launch.step, capabilities.claimResource({
@@ -22588,6 +22604,7 @@ var rpcProgramPorts = (rpc, work) => {
22588
22604
  ...question.verification === undefined ? undefined : { verification: question.verification },
22589
22605
  ...question.default === undefined ? undefined : { default: question.default },
22590
22606
  ...question.auto === undefined ? undefined : { auto: question.auto },
22607
+ ...question.unattendedAuto === undefined ? undefined : { unattendedAuto: question.unattendedAuto },
22591
22608
  ...question.timeoutMillis === undefined ? undefined : { timeoutMillis: question.timeoutMillis }
22592
22609
  }),
22593
22610
  startVerification: (verification) => rpc.startVerification({
@@ -22603,7 +22620,11 @@ var rpcProgramPorts = (rpc, work) => {
22603
22620
  startAgentStep: ({ secrets, ...step }) => rpc.startAgentStep({ lease, ...step, ...secrets === undefined ? undefined : { secrets: [...secrets] } }),
22604
22621
  awaitEvent: (wait) => rpc.awaitEvent({ lease, ...wait }),
22605
22622
  claimResource: (claim) => rpc.claimResource({ lease, ...claim }),
22606
- admitChild: (child) => rpc.admitChild({ lease, ...child }),
22623
+ admitChild: ({ constraints, ...child }) => rpc.admitChild({
22624
+ lease,
22625
+ ...child,
22626
+ ...constraints === undefined ? undefined : { constraints: [...constraints] }
22627
+ }),
22607
22628
  storeArtifact: ({ fileIds, ...artifact }) => rpc.storeArtifact({ lease, ...artifact, ...fileIds === undefined ? undefined : { fileIds: [...fileIds] } }),
22608
22629
  ...rpcRunFiles(rpc, lease),
22609
22630
  recordNote: (note) => rpc.recordNote({ lease, ...note }),
@@ -24890,4 +24911,4 @@ var runKit = (config, identity, packages) => {
24890
24911
  runMain2(program.pipe(flatMap3((code) => sync2(() => process.exit(code)))));
24891
24912
  };
24892
24913
  // .kitman-build-entry.ts
24893
- runKit(kitman_config_default, { name: "@kitman-sh/go-to-market", version: "0.10.75" }, []);
24914
+ runKit(kitman_config_default, { name: "@kitman-sh/go-to-market", version: "0.10.77" }, []);
@@ -4,7 +4,7 @@
4
4
  "carried": [
5
5
  {
6
6
  "name": "@kitman-sh/go-to-market",
7
- "version": "0.10.75",
7
+ "version": "0.10.77",
8
8
  "setup": "0270b1c80a2c382c905693fede77fcb29c404d97404546c95d45de274fa6b087",
9
9
  "loops": [],
10
10
  "agents": []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitman-sh/go-to-market",
3
- "version": "0.10.75",
3
+ "version": "0.10.77",
4
4
  "description": "Copywriting, marketing psychology and SEO audits.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -14,11 +14,11 @@
14
14
  "kitman.config.ts"
15
15
  ],
16
16
  "dependencies": {
17
- "@kitman-sh/sdk": "0.10.75"
17
+ "@kitman-sh/sdk": "0.10.77"
18
18
  },
19
19
  "kitman": {
20
20
  "bundle": "dist/bundle.js",
21
- "digest": "8a4f81f560949201a8eb711fc7daa2c39afa3252eeaf2553f439e8e715a4c808",
21
+ "digest": "5ed84725bdff71bb99656b75f2e3f41dd83be9165272936de1e04e9940024a22",
22
22
  "protocolVersion": 5,
23
23
  "declarations": "dist/declarations.json",
24
24
  "setup": {