@kitman-sh/go-to-market 0.52.0 → 0.53.0
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 +29 -2
- package/dist/declarations.json +1 -1
- package/package.json +3 -3
package/dist/bundle.js
CHANGED
|
@@ -15507,6 +15507,13 @@ var resolvedLocalDateTimes = new Map;
|
|
|
15507
15507
|
var eventWhenClauseName = (event) => event.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
15508
15508
|
|
|
15509
15509
|
// ../../packages/core/src/kit-declarations.ts
|
|
15510
|
+
var LoopIntent = Union2([
|
|
15511
|
+
Literal2("task"),
|
|
15512
|
+
Struct({
|
|
15513
|
+
goal: String5.check(makeFilter2((goal) => goal.trim() !== "" || "a non-blank goal")),
|
|
15514
|
+
doneWhen: ArraySchema(String5)
|
|
15515
|
+
})
|
|
15516
|
+
]);
|
|
15510
15517
|
var LoopCapabilities = [
|
|
15511
15518
|
"agent_work",
|
|
15512
15519
|
"ask",
|
|
@@ -15566,6 +15573,7 @@ var LoopManifest = Struct({
|
|
|
15566
15573
|
secrets: optionalKey2(ArraySchema(SecretName2)),
|
|
15567
15574
|
network: optionalKey2(AgentSandboxNetwork),
|
|
15568
15575
|
schedule: optionalKey2(Struct({ rule: ScheduleRule, timezone: String5 })),
|
|
15576
|
+
intent: optionalKey2(LoopIntent),
|
|
15569
15577
|
outline: optionalKey2(LoopOutline)
|
|
15570
15578
|
});
|
|
15571
15579
|
var ProgramLoopListing = Struct({ ...ProgramLoop.fields, schedule: LoopManifest.fields.schedule });
|
|
@@ -15867,6 +15875,21 @@ var carriesRole = (loop, role, declared) => gen2(function* () {
|
|
|
15867
15875
|
});
|
|
15868
15876
|
}
|
|
15869
15877
|
});
|
|
15878
|
+
var IntentDeclaration = Union2([
|
|
15879
|
+
Literal2("task"),
|
|
15880
|
+
Struct({ goal: String5, doneWhen: optionalKey2(ArraySchema(String5)) })
|
|
15881
|
+
]);
|
|
15882
|
+
var declaredIntent = (definition) => gen2(function* () {
|
|
15883
|
+
if (definition.intent === undefined)
|
|
15884
|
+
return { goal: `Run the ${definition.id} Loop`, doneWhen: [] };
|
|
15885
|
+
const invalid = (reason) => new ManifestInvalid({ loop: definition.id, message: `Loop "${definition.id}": ${reason}` });
|
|
15886
|
+
const declared = yield* decodeEffect2(IntentDeclaration)(definition.intent).pipe(mapError3((error) => invalid(`intent must be 'task' or a goal with a list of strings: ${error.message}`)));
|
|
15887
|
+
if (declared === "task")
|
|
15888
|
+
return declared;
|
|
15889
|
+
if (declared.goal.trim() === "")
|
|
15890
|
+
return yield* invalid("intent goal must not be blank");
|
|
15891
|
+
return { goal: declared.goal.trim(), doneWhen: [...declared.doneWhen ?? []] };
|
|
15892
|
+
});
|
|
15870
15893
|
var loopManifest = (definition) => gen2(function* () {
|
|
15871
15894
|
yield* declarationsAreData(definition);
|
|
15872
15895
|
if (definition.version !== undefined && !is2(LoopVersion)(definition.version))
|
|
@@ -15879,6 +15902,7 @@ var loopManifest = (definition) => gen2(function* () {
|
|
|
15879
15902
|
loop: definition.id,
|
|
15880
15903
|
message: "description must be one line of 1 to 160 characters"
|
|
15881
15904
|
});
|
|
15905
|
+
const intent = yield* declaredIntent(definition);
|
|
15882
15906
|
const input = yield* jsonSchemaOf(definition.id, definition.input);
|
|
15883
15907
|
const output = yield* jsonSchemaOf(definition.id, definition.output);
|
|
15884
15908
|
if (definition.role !== undefined)
|
|
@@ -15892,6 +15916,7 @@ var loopManifest = (definition) => gen2(function* () {
|
|
|
15892
15916
|
output,
|
|
15893
15917
|
...definition.outcome === undefined ? undefined : { outcome: definition.outcome },
|
|
15894
15918
|
...definition.role === undefined ? undefined : { role: definition.role },
|
|
15919
|
+
intent,
|
|
15895
15920
|
agents: definition.agents,
|
|
15896
15921
|
checkout: definition.checkout,
|
|
15897
15922
|
when: yield* namedWhenClauses(definition.id, definition.when ?? []),
|
|
@@ -23018,7 +23043,9 @@ var scriptedHost = (script, engine, agentLaunches, childLaunches, waits, verifyL
|
|
|
23018
23043
|
return andThen2(sync2(() => questions.push({
|
|
23019
23044
|
step: launch.step,
|
|
23020
23045
|
prompt: launch.prompt,
|
|
23021
|
-
...launch.answerSchema === undefined ? undefined : { answerSchema: launch.answerSchema }
|
|
23046
|
+
...launch.answerSchema === undefined ? undefined : { answerSchema: launch.answerSchema },
|
|
23047
|
+
...launch.default === undefined ? undefined : { default: launch.default },
|
|
23048
|
+
...launch.unattendedAuto === undefined ? undefined : { unattendedAuto: launch.unattendedAuto }
|
|
23022
23049
|
})), answer === undefined ? resolve(answerDeferred(launch.step), launch.token, fail5(new StepFailed({ step: launch.step, reason: "no answer was scripted" }))) : launch.answerSchema === undefined ? resolve(answerDeferred(launch.step), launch.token, succeed4(answer)) : resolve(structuredAnswerDeferred(launch.step), launch.token, succeed4({
|
|
23023
23050
|
answer,
|
|
23024
23051
|
by: scripted !== undefined ? "person" : auto !== undefined ? "auto" : "default"
|
|
@@ -28883,4 +28910,4 @@ var runKit = (config, identity, packages) => {
|
|
|
28883
28910
|
runMain2(program.pipe(flatMap3((code) => sync2(() => process.exit(code)))));
|
|
28884
28911
|
};
|
|
28885
28912
|
// .kitman-build-entry.ts
|
|
28886
|
-
runKit(kitman_config_default, { name: "@kitman-sh/go-to-market", version: "0.
|
|
28913
|
+
runKit(kitman_config_default, { name: "@kitman-sh/go-to-market", version: "0.53.0" }, []);
|
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.
|
|
3
|
+
"version": "0.53.0",
|
|
4
4
|
"description": "Copywriting, marketing psychology and SEO audits.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"LICENSE.md"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@kitman-sh/sdk": "0.
|
|
18
|
+
"@kitman-sh/sdk": "0.53.0"
|
|
19
19
|
},
|
|
20
20
|
"kitman": {
|
|
21
21
|
"bundle": "dist/bundle.js",
|
|
22
|
-
"digest": "
|
|
22
|
+
"digest": "3ce50e3bd07aba6ae9345c532b7c8f7ad4ef98c457cf26d9bfd0f08c2e27558c",
|
|
23
23
|
"protocolVersion": 5,
|
|
24
24
|
"declarations": "dist/declarations.json",
|
|
25
25
|
"setup": {
|