@kitman-sh/go-to-market 0.10.68 → 0.10.70
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 +43 -10
- package/dist/declarations.json +1 -1
- package/package.json +3 -3
package/dist/bundle.js
CHANGED
|
@@ -5612,6 +5612,7 @@ var succeedSome2 = succeedSome;
|
|
|
5612
5612
|
var suspend2 = suspend;
|
|
5613
5613
|
var sync2 = sync;
|
|
5614
5614
|
var void_3 = void_;
|
|
5615
|
+
var undefined_2 = undefined_;
|
|
5615
5616
|
var callback2 = callback;
|
|
5616
5617
|
var never2 = never;
|
|
5617
5618
|
var gen2 = gen;
|
|
@@ -7091,7 +7092,7 @@ var Undefined = class extends ASTNodeImpl {
|
|
|
7091
7092
|
var undefinedToNull = /* @__PURE__ */ new Link(null_, /* @__PURE__ */ new Transformation(/* @__PURE__ */ transform(() => {
|
|
7092
7093
|
return;
|
|
7093
7094
|
}), /* @__PURE__ */ transform(() => null)));
|
|
7094
|
-
var
|
|
7095
|
+
var undefined_3 = /* @__PURE__ */ new Undefined;
|
|
7095
7096
|
var Void = class extends ASTNodeImpl {
|
|
7096
7097
|
_tag = "Void";
|
|
7097
7098
|
getParser() {
|
|
@@ -8433,7 +8434,7 @@ var optionalKey = /* @__PURE__ */ memoizeIdempotent((ast) => {
|
|
|
8433
8434
|
return optionalKeyLastLink(replaceContext(ast, context));
|
|
8434
8435
|
});
|
|
8435
8436
|
var optionalKeyLastLink = /* @__PURE__ */ applyToLastLink(optionalKey);
|
|
8436
|
-
var optional = /* @__PURE__ */ memoize((ast) => optionalKey(new Union([ast,
|
|
8437
|
+
var optional = /* @__PURE__ */ memoize((ast) => optionalKey(new Union([ast, undefined_3])));
|
|
8437
8438
|
function withConstructorDefault(ast, defaultValue) {
|
|
8438
8439
|
const context = ast.context ? new Context(ast.context.isOptional, ast.context.isMutable, defaultValue, ast.context.annotations) : new Context(false, false, defaultValue);
|
|
8439
8440
|
return replaceContext(ast, context);
|
|
@@ -11000,7 +11001,7 @@ function Literal2(literal) {
|
|
|
11000
11001
|
var Never2 = /* @__PURE__ */ make12(never3);
|
|
11001
11002
|
var Unknown2 = /* @__PURE__ */ make12(unknown);
|
|
11002
11003
|
var Null2 = /* @__PURE__ */ make12(null_);
|
|
11003
|
-
var Undefined2 = /* @__PURE__ */ make12(
|
|
11004
|
+
var Undefined2 = /* @__PURE__ */ make12(undefined_3);
|
|
11004
11005
|
var String5 = /* @__PURE__ */ make12(string2);
|
|
11005
11006
|
var Number5 = /* @__PURE__ */ make12(number2);
|
|
11006
11007
|
var Boolean3 = /* @__PURE__ */ make12(boolean);
|
|
@@ -13708,6 +13709,12 @@ var RunWaiting = Union2([
|
|
|
13708
13709
|
name: String5.check(isMinLength(1)),
|
|
13709
13710
|
verificationId: Id
|
|
13710
13711
|
}),
|
|
13712
|
+
Struct({
|
|
13713
|
+
kind: Literal2("claim"),
|
|
13714
|
+
name: String5.check(isMinLength(1)),
|
|
13715
|
+
resource: String5.check(isMinLength(1)),
|
|
13716
|
+
holder: optionalKey2(Struct({ runId: Id, loopId: String5 }))
|
|
13717
|
+
}),
|
|
13711
13718
|
Struct({
|
|
13712
13719
|
kind: Literal2("queue"),
|
|
13713
13720
|
name: String5.check(isMinLength(1)),
|
|
@@ -18834,7 +18841,10 @@ var PipelineStatus = Struct({
|
|
|
18834
18841
|
source: Literals(["forge", "reported"]),
|
|
18835
18842
|
jobs: ArraySchema(PipelineJob),
|
|
18836
18843
|
readAt: optionalKey2(String5),
|
|
18837
|
-
runnerChecks: optionalKey2(ArraySchema(String5))
|
|
18844
|
+
runnerChecks: optionalKey2(ArraySchema(String5)),
|
|
18845
|
+
approved: optionalKey2(String5),
|
|
18846
|
+
repository: optionalKey2(String5),
|
|
18847
|
+
target: optionalKey2(Struct({ branch: String5, head: String5, jobs: ArraySchema(PipelineJob) }))
|
|
18838
18848
|
});
|
|
18839
18849
|
var ReviewThread = Struct({
|
|
18840
18850
|
id: String5,
|
|
@@ -19644,7 +19654,7 @@ var journaled = (engine, journal, ran) => ({
|
|
|
19644
19654
|
})
|
|
19645
19655
|
});
|
|
19646
19656
|
var scriptedExit = (scripted, failure) => scripted === undefined ? fail5(failure("nothing was scripted for this Step")) : scripted instanceof ScriptedFailure ? fail5(failure(scripted.reason)) : succeed4(scripted);
|
|
19647
|
-
var scriptedHost = (script, engine, agentLaunches, childLaunches, waits) => {
|
|
19657
|
+
var scriptedHost = (script, engine, agentLaunches, childLaunches, waits, verifyLaunches) => {
|
|
19648
19658
|
const resolve = (deferred, token, exit) => done4(deferred, { token, exit }).pipe(provideService2(WorkflowEngine, engine));
|
|
19649
19659
|
return {
|
|
19650
19660
|
startAgentWork: (launch) => andThen2(sync2(() => agentLaunches.push({
|
|
@@ -19671,9 +19681,16 @@ var scriptedHost = (script, engine, agentLaunches, childLaunches, waits) => {
|
|
|
19671
19681
|
});
|
|
19672
19682
|
return resolve(eventDeferred(launch.step), launch.token, event === undefined ? fail5(new WaitTimedOut({ step: launch.step, event: launch.event })) : succeed4(event));
|
|
19673
19683
|
},
|
|
19674
|
-
claimResource: (launch) => launch.action === "let_go" ? resolve(letGoDeferred(launch.step), launch.token, succeed4(null)) : resolve(claimDeferred(launch.step), launch.token, succeed4(script.claims?.[launch.step] ?? { status: "granted", resource: launch.resource })),
|
|
19684
|
+
claimResource: (launch) => flatMap3(script.claimed?.({ step: launch.step, resource: launch.resource, action: launch.action }) ?? undefined_2, (settled) => launch.action === "let_go" ? resolve(letGoDeferred(launch.step), launch.token, succeed4(null)) : resolve(claimDeferred(launch.step), launch.token, succeed4(settled ?? script.claims?.[launch.step] ?? { status: "granted", resource: launch.resource }))),
|
|
19675
19685
|
startVerification: (launch) => {
|
|
19676
19686
|
const scripted = script.verifications?.[launch.step];
|
|
19687
|
+
if (launch.measure === undefined)
|
|
19688
|
+
verifyLaunches.push({
|
|
19689
|
+
step: launch.step,
|
|
19690
|
+
...launch.revision === undefined ? undefined : { revision: launch.revision },
|
|
19691
|
+
...launch.checks === undefined ? undefined : { checks: launch.checks },
|
|
19692
|
+
...launch.rerunFailed === undefined ? undefined : { rerunFailed: launch.rerunFailed }
|
|
19693
|
+
});
|
|
19677
19694
|
if (launch.measure !== undefined) {
|
|
19678
19695
|
const measured = script.measurements?.[launch.step];
|
|
19679
19696
|
const flat = Array.from({ length: launch.measure.samples }, () => Object.fromEntries(launch.measure?.plan.metrics.map((metric) => [metric.name, 100]) ?? []));
|
|
@@ -19724,6 +19741,7 @@ var testLoop = (loop, script) => {
|
|
|
19724
19741
|
const agentLaunches = [];
|
|
19725
19742
|
const childLaunches = [];
|
|
19726
19743
|
const waits = [];
|
|
19744
|
+
const verifyLaunches = [];
|
|
19727
19745
|
let latestSteps = [];
|
|
19728
19746
|
const declared = capabilitiesOf(loop);
|
|
19729
19747
|
const granted = new Set((script.grant ?? declared).filter((capability) => declared.includes(capability)));
|
|
@@ -19736,7 +19754,7 @@ var testLoop = (loop, script) => {
|
|
|
19736
19754
|
const execute = (payload) => gen2(function* () {
|
|
19737
19755
|
const engine = yield* WorkflowEngine;
|
|
19738
19756
|
return yield* executeLoop(loop, {
|
|
19739
|
-
host: scriptedHost(script, engine, agentLaunches, childLaunches, waits),
|
|
19757
|
+
host: scriptedHost(script, engine, agentLaunches, childLaunches, waits, verifyLaunches),
|
|
19740
19758
|
activities,
|
|
19741
19759
|
granted,
|
|
19742
19760
|
onRun: (run) => {
|
|
@@ -19746,7 +19764,7 @@ var testLoop = (loop, script) => {
|
|
|
19746
19764
|
});
|
|
19747
19765
|
return gen2(function* () {
|
|
19748
19766
|
const result = yield* exit2(workflow.execute({ input: script.input }).pipe(provideService2(ConfigProvider, fromUnknown(script.secrets ?? {}))));
|
|
19749
|
-
return { result, steps: latestSteps, journal, activities: ran, agentLaunches, childLaunches, waits };
|
|
19767
|
+
return { result, steps: latestSteps, journal, activities: ran, agentLaunches, childLaunches, waits, verifyLaunches };
|
|
19750
19768
|
}).pipe(provide4(workflow.toLayer(execute).pipe(provideMerge(layerMemory))));
|
|
19751
19769
|
};
|
|
19752
19770
|
// ../../packages/sdk/src/loop/review.ts
|
|
@@ -21821,6 +21839,7 @@ class RunnerCapabilityRpcs extends make29(make28("PutQuestion", {
|
|
|
21821
21839
|
revision: optionalKey2(String5),
|
|
21822
21840
|
checks: optional2(ArraySchema(String5)),
|
|
21823
21841
|
suggested: optionalKey2(ArraySchema(ApprovedCheck)),
|
|
21842
|
+
rerunFailed: optionalKey2(Boolean3),
|
|
21824
21843
|
measure: optionalKey2(Struct({
|
|
21825
21844
|
base: optionalKey2(String5),
|
|
21826
21845
|
plan: MeasurePlan,
|
|
@@ -21962,7 +21981,19 @@ class RunnerCapabilityRpcs extends make29(make28("PutQuestion", {
|
|
|
21962
21981
|
logTail: optionalKey2(String5)
|
|
21963
21982
|
})),
|
|
21964
21983
|
readAt: optionalKey2(String5),
|
|
21965
|
-
runnerChecks: optionalKey2(ArraySchema(String5))
|
|
21984
|
+
runnerChecks: optionalKey2(ArraySchema(String5)),
|
|
21985
|
+
approved: optionalKey2(String5),
|
|
21986
|
+
repository: optionalKey2(String5),
|
|
21987
|
+
target: optionalKey2(Struct({
|
|
21988
|
+
branch: String5,
|
|
21989
|
+
head: String5,
|
|
21990
|
+
jobs: ArraySchema(Struct({
|
|
21991
|
+
name: String5,
|
|
21992
|
+
status: Literals(["running", "success", "failed", "skipped"]),
|
|
21993
|
+
url: optionalKey2(String5),
|
|
21994
|
+
logTail: optionalKey2(String5)
|
|
21995
|
+
}))
|
|
21996
|
+
}))
|
|
21966
21997
|
}),
|
|
21967
21998
|
error: RunnerRpcError
|
|
21968
21999
|
}), make28("ReportPipeline", {
|
|
@@ -22312,6 +22343,7 @@ var runnerHost = (capabilities) => ({
|
|
|
22312
22343
|
...launch.revision === undefined ? undefined : { revision: launch.revision },
|
|
22313
22344
|
...launch.checks === undefined ? undefined : { checks: launch.checks },
|
|
22314
22345
|
...launch.suggested === undefined ? undefined : { suggested: launch.suggested },
|
|
22346
|
+
...launch.rerunFailed === undefined ? undefined : { rerunFailed: launch.rerunFailed },
|
|
22315
22347
|
...launch.measure === undefined ? undefined : { measure: launch.measure }
|
|
22316
22348
|
})).pipe(asVoid2),
|
|
22317
22349
|
startAgentWork: (launch) => requested(launch.step, capabilities.startAgentStep({
|
|
@@ -22535,6 +22567,7 @@ var rpcProgramPorts = (rpc, work) => {
|
|
|
22535
22567
|
...verification.revision === undefined ? undefined : { revision: verification.revision },
|
|
22536
22568
|
...verification.checks === undefined ? undefined : { checks: [...verification.checks] },
|
|
22537
22569
|
...verification.suggested === undefined ? undefined : { suggested: [...verification.suggested] },
|
|
22570
|
+
...verification.rerunFailed === undefined ? undefined : { rerunFailed: verification.rerunFailed },
|
|
22538
22571
|
...verification.measure === undefined ? undefined : { measure: verification.measure }
|
|
22539
22572
|
}),
|
|
22540
22573
|
startAgentStep: ({ secrets, ...step }) => rpc.startAgentStep({ lease, ...step, ...secrets === undefined ? undefined : { secrets: [...secrets] } }),
|
|
@@ -24827,4 +24860,4 @@ var runKit = (config, identity, packages) => {
|
|
|
24827
24860
|
runMain2(program.pipe(flatMap3((code) => sync2(() => process.exit(code)))));
|
|
24828
24861
|
};
|
|
24829
24862
|
// .kitman-build-entry.ts
|
|
24830
|
-
runKit(kitman_config_default, { name: "@kitman-sh/go-to-market", version: "0.10.
|
|
24863
|
+
runKit(kitman_config_default, { name: "@kitman-sh/go-to-market", version: "0.10.70" }, []);
|
package/dist/declarations.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitman-sh/go-to-market",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.70",
|
|
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.
|
|
17
|
+
"@kitman-sh/sdk": "0.10.70"
|
|
18
18
|
},
|
|
19
19
|
"kitman": {
|
|
20
20
|
"bundle": "dist/bundle.js",
|
|
21
|
-
"digest": "
|
|
21
|
+
"digest": "996c8f23e19a4772fcd2fe706f5b034274efb27fb45ad57c4881ec7a7ff4edd1",
|
|
22
22
|
"protocolVersion": 5,
|
|
23
23
|
"declarations": "dist/declarations.json",
|
|
24
24
|
"setup": {
|