@kitman-sh/go-to-market 0.10.76 → 0.10.78

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)
@@ -18848,6 +18852,8 @@ var PipelineStatus = Struct({
18848
18852
  runnerChecks: optionalKey2(ArraySchema(String5)),
18849
18853
  approved: optionalKey2(String5),
18850
18854
  repository: optionalKey2(String5),
18855
+ conflicts: optionalKey2(Boolean3),
18856
+ needsRebase: optionalKey2(Boolean3),
18851
18857
  target: optionalKey2(Struct({ branch: String5, head: String5, jobs: ArraySchema(PipelineJob) }))
18852
18858
  });
18853
18859
  var ReviewThread = Struct({
@@ -19696,10 +19702,17 @@ var scriptedHost = (script, engine, agentLaunches, childLaunches, waits, verifyL
19696
19702
  ...launch.mergeTarget === undefined ? undefined : { mergeTarget: launch.mergeTarget }
19697
19703
  })), resolve(agentDeferredNamed(launch.deferredName), launch.token, scriptedExit(script.outputs?.[launch.step], (reason) => new StepFailed({ step: launch.step, reason })))),
19698
19704
  putQuestion: (launch) => {
19699
- const answer = script.answers?.[launch.step] ?? (script.fullAuto === true ? launch.auto : undefined) ?? launch.default;
19705
+ const attended = script.attended === true;
19706
+ const auto = script.fullAuto === true ? launch.auto ?? (attended ? undefined : launch.unattendedAuto) : undefined;
19707
+ const answer = script.answers?.[launch.step] ?? auto ?? (attended ? undefined : launch.default);
19700
19708
  return resolve(answerDeferred(launch.step), launch.token, answer === undefined ? fail5(new StepFailed({ step: launch.step, reason: "no answer was scripted" })) : succeed4(answer));
19701
19709
  },
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 })))),
19710
+ admitChild: (launch) => andThen2(sync2(() => childLaunches.push({
19711
+ step: launch.step,
19712
+ loop: launch.loop,
19713
+ input: launch.input,
19714
+ ...launch.constraints === undefined ? undefined : { constraints: launch.constraints }
19715
+ })), resolve(childDeferred(launch.step), launch.token, scriptedExit(script.children?.[launch.step], (reason) => new ChildFailed({ step: launch.step, loop: launch.loop, reason })))),
19703
19716
  awaitEvent: (launch) => {
19704
19717
  const event = script.events?.[launch.step];
19705
19718
  waits.push({
@@ -21840,6 +21853,7 @@ class RunnerCapabilityRpcs extends make29(make28("PutQuestion", {
21840
21853
  verification: optional2(SuggestedVerification),
21841
21854
  default: optional2(String5),
21842
21855
  auto: optional2(String5),
21856
+ unattendedAuto: optional2(String5),
21843
21857
  timeoutMillis: optional2(Finite),
21844
21858
  deferredName: String5
21845
21859
  },
@@ -21910,6 +21924,7 @@ class RunnerCapabilityRpcs extends make29(make28("PutQuestion", {
21910
21924
  step: String5,
21911
21925
  loop: String5,
21912
21926
  input: Json2,
21927
+ constraints: optional2(ArraySchema(String5)),
21913
21928
  deferredName: String5
21914
21929
  },
21915
21930
  success: Struct({ runId: String5 }),
@@ -21931,7 +21946,8 @@ class RunnerCapabilityRpcs extends make29(make28("PutQuestion", {
21931
21946
  lease: ProgramLease,
21932
21947
  step: String5,
21933
21948
  text: String5,
21934
- artifactId: optional2(String5)
21949
+ artifactId: optional2(String5),
21950
+ kind: optional2(Literals(["note", "blocker"]))
21935
21951
  },
21936
21952
  error: RunnerRpcError
21937
21953
  }), make28("PerformHostEffect", {
@@ -22014,6 +22030,8 @@ class RunnerCapabilityRpcs extends make29(make28("PutQuestion", {
22014
22030
  runnerChecks: optionalKey2(ArraySchema(String5)),
22015
22031
  approved: optionalKey2(String5),
22016
22032
  repository: optionalKey2(String5),
22033
+ conflicts: optionalKey2(Boolean3),
22034
+ needsRebase: optionalKey2(Boolean3),
22017
22035
  target: optionalKey2(Struct({
22018
22036
  branch: String5,
22019
22037
  head: String5,
@@ -22365,6 +22383,7 @@ var runnerHost = (capabilities) => ({
22365
22383
  ...launch.verification === undefined ? undefined : { verification: launch.verification },
22366
22384
  ...launch.default === undefined ? undefined : { default: launch.default },
22367
22385
  ...launch.auto === undefined ? undefined : { auto: launch.auto },
22386
+ ...launch.unattendedAuto === undefined ? undefined : { unattendedAuto: launch.unattendedAuto },
22368
22387
  ...launch.timeoutMillis === undefined ? undefined : { timeoutMillis: launch.timeoutMillis }
22369
22388
  })).pipe(asVoid2),
22370
22389
  startVerification: (launch) => requested(launch.step, capabilities.startVerification({
@@ -22392,6 +22411,7 @@ var runnerHost = (capabilities) => ({
22392
22411
  step: launch.step,
22393
22412
  loop: launch.loop,
22394
22413
  input: launch.input,
22414
+ ...launch.constraints === undefined ? undefined : { constraints: launch.constraints },
22395
22415
  deferredName: childDeferred(launch.step).name
22396
22416
  })).pipe(asVoid2),
22397
22417
  claimResource: (launch) => requested(launch.step, capabilities.claimResource({
@@ -22588,6 +22608,7 @@ var rpcProgramPorts = (rpc, work) => {
22588
22608
  ...question.verification === undefined ? undefined : { verification: question.verification },
22589
22609
  ...question.default === undefined ? undefined : { default: question.default },
22590
22610
  ...question.auto === undefined ? undefined : { auto: question.auto },
22611
+ ...question.unattendedAuto === undefined ? undefined : { unattendedAuto: question.unattendedAuto },
22591
22612
  ...question.timeoutMillis === undefined ? undefined : { timeoutMillis: question.timeoutMillis }
22592
22613
  }),
22593
22614
  startVerification: (verification) => rpc.startVerification({
@@ -22603,7 +22624,11 @@ var rpcProgramPorts = (rpc, work) => {
22603
22624
  startAgentStep: ({ secrets, ...step }) => rpc.startAgentStep({ lease, ...step, ...secrets === undefined ? undefined : { secrets: [...secrets] } }),
22604
22625
  awaitEvent: (wait) => rpc.awaitEvent({ lease, ...wait }),
22605
22626
  claimResource: (claim) => rpc.claimResource({ lease, ...claim }),
22606
- admitChild: (child) => rpc.admitChild({ lease, ...child }),
22627
+ admitChild: ({ constraints, ...child }) => rpc.admitChild({
22628
+ lease,
22629
+ ...child,
22630
+ ...constraints === undefined ? undefined : { constraints: [...constraints] }
22631
+ }),
22607
22632
  storeArtifact: ({ fileIds, ...artifact }) => rpc.storeArtifact({ lease, ...artifact, ...fileIds === undefined ? undefined : { fileIds: [...fileIds] } }),
22608
22633
  ...rpcRunFiles(rpc, lease),
22609
22634
  recordNote: (note) => rpc.recordNote({ lease, ...note }),
@@ -24890,4 +24915,4 @@ var runKit = (config, identity, packages) => {
24890
24915
  runMain2(program.pipe(flatMap3((code) => sync2(() => process.exit(code)))));
24891
24916
  };
24892
24917
  // .kitman-build-entry.ts
24893
- runKit(kitman_config_default, { name: "@kitman-sh/go-to-market", version: "0.10.76" }, []);
24918
+ runKit(kitman_config_default, { name: "@kitman-sh/go-to-market", version: "0.10.78" }, []);
@@ -4,7 +4,7 @@
4
4
  "carried": [
5
5
  {
6
6
  "name": "@kitman-sh/go-to-market",
7
- "version": "0.10.76",
7
+ "version": "0.10.78",
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.76",
3
+ "version": "0.10.78",
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.76"
17
+ "@kitman-sh/sdk": "0.10.78"
18
18
  },
19
19
  "kitman": {
20
20
  "bundle": "dist/bundle.js",
21
- "digest": "0104254979bdc8607b781738d69edf8bf9fe489c727e22470095b8e498c2fde3",
21
+ "digest": "6e3cee70a1568f63cff8322fecfd93511603876d6282db827df76ccbc51c3251",
22
22
  "protocolVersion": 5,
23
23
  "declarations": "dist/declarations.json",
24
24
  "setup": {