rhachet 1.12.1 → 1.12.2
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/contract/cli/invoke.js +1 -1
- package/dist/contract/cli/invoke.js.map +1 -1
- package/dist/contract/cli/invokeAsk.d.ts +3 -3
- package/dist/contract/cli/invokeBriefs.d.ts +2 -2
- package/dist/contract/cli/invokeBriefsBoot.d.ts +1 -1
- package/dist/contract/cli/invokeBriefsBoot.js +2 -2
- package/dist/contract/cli/invokeBriefsBoot.js.map +1 -1
- package/dist/contract/cli/invokeBriefsLink.d.ts +2 -2
- package/dist/contract/cli/invokeBriefsLink.js +1 -1
- package/dist/contract/cli/invokeBriefsLink.js.map +1 -1
- package/dist/contract/cli/invokeChoose.d.ts +1 -1
- package/dist/contract/cli/invokeInit.d.ts +1 -1
- package/dist/contract/cli/invokeInit.js +1 -1
- package/dist/contract/cli/invokeInit.js.map +1 -1
- package/dist/contract/cli/invokeList.d.ts +2 -2
- package/dist/contract/cli/invokeReadme.d.ts +2 -2
- package/dist/contract/cli/invokeRoles.d.ts +2 -2
- package/dist/contract/cli/invokeRolesBoot.d.ts +1 -1
- package/dist/contract/cli/invokeRolesBoot.js +2 -2
- package/dist/contract/cli/invokeRolesBoot.js.map +1 -1
- package/dist/contract/cli/invokeRolesLink.d.ts +2 -2
- package/dist/contract/cli/invokeRolesLink.js +1 -1
- package/dist/contract/cli/invokeRolesLink.js.map +1 -1
- package/dist/contract/sdk.d.ts +13 -13
- package/dist/contract/sdk.js +25 -25
- package/dist/contract/sdk.js.map +1 -1
- package/dist/domain/constants.d.ts +3 -0
- package/dist/domain/constants.js +5 -0
- package/dist/domain/constants.js.map +1 -0
- package/dist/domain/objects/InvokeHooks.d.ts +1 -1
- package/dist/domain/objects/InvokeOpts.d.ts +1 -1
- package/dist/domain/objects/Role.d.ts +2 -2
- package/dist/domain/objects/RoleContext.d.ts +1 -1
- package/dist/domain/objects/RoleSkill.d.ts +2 -2
- package/dist/domain/objects/RoleSkillArgGetter.d.ts +3 -3
- package/dist/domain/objects/RoleTrait.d.ts +2 -2
- package/dist/domain/objects/Stitch.d.ts +4 -4
- package/dist/domain/objects/Stitch.js.map +1 -1
- package/dist/domain/objects/StitchChoice.d.ts +2 -2
- package/dist/domain/objects/StitchChoice.js.map +1 -1
- package/dist/domain/objects/StitchCycle.d.ts +4 -4
- package/dist/domain/objects/StitchCycle.js.map +1 -1
- package/dist/domain/objects/StitchFanout.d.ts +4 -4
- package/dist/domain/objects/StitchFanout.js.map +1 -1
- package/dist/domain/objects/StitchRoute.d.ts +1 -1
- package/dist/domain/objects/StitchRoute.js.map +1 -1
- package/dist/domain/objects/StitchSetEvent.d.ts +3 -3
- package/dist/domain/objects/StitchStep.d.ts +3 -3
- package/dist/domain/objects/Stitcher.d.ts +9 -9
- package/dist/domain/objects/Stitcher.js.map +1 -1
- package/dist/domain/objects/Template.d.ts +2 -2
- package/dist/domain/objects/Template.js.map +1 -1
- package/dist/domain/objects/Thread.d.ts +2 -2
- package/dist/domain/objects/Threads.d.ts +2 -2
- package/dist/domain/objects/Threads.js.map +1 -1
- package/dist/domain/objects/index.d.ts +2 -2
- package/dist/domain/objects/index.js +2 -2
- package/dist/domain/objects/index.js.map +1 -1
- package/dist/logic/context/genContextStitchTrail.d.ts +1 -1
- package/dist/logic/context/genContextStitchTrail.js.map +1 -1
- package/dist/logic/invoke/assureFindRole.d.ts +2 -2
- package/dist/logic/invoke/assureUniqueRoles.d.ts +1 -1
- package/dist/logic/invoke/getInvokeHooksByOpts.d.ts +2 -2
- package/dist/logic/invoke/getRegistriesByOpts.d.ts +2 -2
- package/dist/logic/invoke/getSkillContext.d.ts +3 -3
- package/dist/logic/invoke/getSkillThreads.d.ts +4 -4
- package/dist/logic/invoke/hooks/onInvokeAskInput.d.ts +2 -2
- package/dist/logic/invoke/performInCurrentThread.d.ts +2 -2
- package/dist/logic/invoke/performInIsolatedThread.execute.d.ts +1 -1
- package/dist/logic/invoke/performInIsolatedThread.invoke.d.ts +2 -2
- package/dist/logic/invoke/performInIsolatedThread.invoke.js +3 -3
- package/dist/logic/invoke/performInIsolatedThread.invoke.js.map +1 -1
- package/dist/logic/invoke/performInIsolatedThreads.d.ts +1 -1
- package/dist/logic/role/addRoleTraits.d.ts +5 -5
- package/dist/logic/role/enrollThread.d.ts +4 -4
- package/dist/logic/role/genRoleSkill.d.ts +1 -1
- package/dist/logic/stitch/adapters/imagineViaOpenAI.d.ts +1 -1
- package/dist/logic/stitch/enstitch.d.ts +3 -3
- package/dist/logic/stitch/enstitch.js +1 -1
- package/dist/logic/stitch/enstitch.js.map +1 -1
- package/dist/logic/stitch/invokeImagineStitcher.d.ts +3 -3
- package/dist/logic/stitch/withStitchTrail.d.ts +4 -4
- package/dist/logic/stitch/withStitchTrail.js +1 -1
- package/dist/logic/stitch/withStitchTrail.js.map +1 -1
- package/dist/logic/template/genStepImagineViaTemplate.d.ts +2 -2
- package/dist/logic/template/genStepImagineViaTemplate.js.map +1 -1
- package/dist/logic/template/genTemplate.d.ts +3 -3
- package/dist/logic/template/getTemplatePathByCallerPath.d.ts +1 -1
- package/dist/logic/template/getTemplatePathByCallerPath.js +2 -2
- package/dist/logic/template/getTemplatePathByCallerPath.js.map +1 -1
- package/dist/logic/template/getTemplateValFromArtifacts.d.ts +2 -2
- package/dist/logic/template/getTemplateValFromArtifacts.js.map +1 -1
- package/dist/logic/template/getTemplateVarsFromInheritance.d.ts +1 -1
- package/dist/logic/template/useTemplate.d.ts +2 -2
- package/dist/logic/thread/getStitch.d.ts +1 -1
- package/dist/logic/weave/compose/GStitcherInferredFromChoice.generic.d.ts +3 -3
- package/dist/logic/weave/compose/GStitcherInferredFromCycle.generic.d.ts +4 -4
- package/dist/logic/weave/compose/GStitcherInferredFromFanout.generic.d.ts +6 -6
- package/dist/logic/weave/compose/GStitcherInferredFromRoute.generic.d.ts +4 -4
- package/dist/logic/weave/compose/ProcedureContextMerged.generic.d.ts +1 -1
- package/dist/logic/weave/compose/ThreadsMerged.generic.d.ts +4 -4
- package/dist/logic/weave/compose/asStitcher.d.ts +3 -3
- package/dist/logic/weave/compose/asStitcherFlat.d.ts +2 -2
- package/dist/logic/weave/compose/genStitchChoice.d.ts +3 -3
- package/dist/logic/weave/compose/genStitchCycle.d.ts +5 -5
- package/dist/logic/weave/compose/genStitchFanout.d.ts +5 -5
- package/dist/logic/weave/compose/genStitchFanout.js.map +1 -1
- package/dist/logic/weave/compose/genStitchRoute.d.ts +3 -3
- package/dist/logic/weave/compose/genStitchRoute.js.map +1 -1
- package/dist/logic/weave/enweaveOneChoice.d.ts +2 -2
- package/dist/logic/weave/enweaveOneChoice.js.map +1 -1
- package/dist/logic/weave/enweaveOneCycle.d.ts +2 -2
- package/dist/logic/weave/enweaveOneCycle.js.map +1 -1
- package/dist/logic/weave/enweaveOneFanout.d.ts +2 -2
- package/dist/logic/weave/enweaveOneFanout.js.map +1 -1
- package/dist/logic/weave/enweaveOneRoute.d.ts +2 -2
- package/dist/logic/weave/enweaveOneRoute.js.map +1 -1
- package/dist/logic/weave/enweaveOneStitcher.d.ts +2 -2
- package/dist/logic/weave/enweaveOneStitcher.js.map +1 -1
- package/license.md +21 -0
- package/package.json +36 -36
- package/dist/.test/directory.d.ts +0 -2
- package/dist/.test/directory.js +0 -6
- package/dist/.test/directory.js.map +0 -1
- package/dist/.test/example.use.repo/example.echoRegistry.d.ts +0 -2
- package/dist/.test/example.use.repo/example.echoRegistry.js +0 -108
- package/dist/.test/example.use.repo/example.echoRegistry.js.map +0 -1
- package/dist/.test/genContextLogTrail.d.ts +0 -2
- package/dist/.test/genContextLogTrail.js +0 -12
- package/dist/.test/genContextLogTrail.js.map +0 -1
- package/dist/.test/getContextOpenAI.d.ts +0 -2
- package/dist/.test/getContextOpenAI.js +0 -18
- package/dist/.test/getContextOpenAI.js.map +0 -1
- package/dist/.test/stitchers/genStitcherCodeFileRead.d.ts +0 -14
- package/dist/.test/stitchers/genStitcherCodeFileRead.js +0 -23
- package/dist/.test/stitchers/genStitcherCodeFileRead.js.map +0 -1
- package/dist/.test/stitchers/genStitcherCodeFileWrite.d.ts +0 -16
- package/dist/.test/stitchers/genStitcherCodeFileWrite.js +0 -29
- package/dist/.test/stitchers/genStitcherCodeFileWrite.js.map +0 -1
- package/dist/.test/stitchers/genStitcherCodeReviewImagine.d.ts +0 -15
- package/dist/.test/stitchers/genStitcherCodeReviewImagine.js +0 -97
- package/dist/.test/stitchers/genStitcherCodeReviewImagine.js.map +0 -1
- package/dist/.test/stitchers/stitcherCodeDiffImagine.d.ts +0 -13
- package/dist/.test/stitchers/stitcherCodeDiffImagine.js +0 -33
- package/dist/.test/stitchers/stitcherCodeDiffImagine.js.map +0 -1
- package/dist/.test/stitchers/stitcherFanoutRandomSum.d.ts +0 -13
- package/dist/.test/stitchers/stitcherFanoutRandomSum.js +0 -45
- package/dist/.test/stitchers/stitcherFanoutRandomSum.js.map +0 -1
- package/dist/.test/stitchers/stitcherFanoutSubroutes.d.ts +0 -35
- package/dist/.test/stitchers/stitcherFanoutSubroutes.js +0 -76
- package/dist/.test/stitchers/stitcherFanoutSubroutes.js.map +0 -1
- package/dist/.test/threads/codeArtist.d.ts +0 -6
- package/dist/.test/threads/codeArtist.js +0 -26
- package/dist/.test/threads/codeArtist.js.map +0 -1
- package/dist/.test/threads/codeCritic.d.ts +0 -6
- package/dist/.test/threads/codeCritic.js +0 -21
- package/dist/.test/threads/codeCritic.js.map +0 -1
- package/dist/.test/threads/director.d.ts +0 -6
- package/dist/.test/threads/director.js +0 -14
- package/dist/.test/threads/director.js.map +0 -1
- package/dist/contract/cli/invoke.integration.test.d.ts +0 -1
- package/dist/contract/cli/invoke.integration.test.js +0 -39
- package/dist/contract/cli/invoke.integration.test.js.map +0 -1
- package/dist/contract/cli/invokeAsk.integration.test.d.ts +0 -1
- package/dist/contract/cli/invokeAsk.integration.test.js +0 -69
- package/dist/contract/cli/invokeAsk.integration.test.js.map +0 -1
- package/dist/contract/cli/invokeBriefsBoot.integration.test.d.ts +0 -1
- package/dist/contract/cli/invokeBriefsBoot.integration.test.js +0 -159
- package/dist/contract/cli/invokeBriefsBoot.integration.test.js.map +0 -1
- package/dist/contract/cli/invokeBriefsLink.integration.test.d.ts +0 -1
- package/dist/contract/cli/invokeBriefsLink.integration.test.js +0 -100
- package/dist/contract/cli/invokeBriefsLink.integration.test.js.map +0 -1
- package/dist/contract/cli/invokeChoose.integration.test.d.ts +0 -1
- package/dist/contract/cli/invokeChoose.integration.test.js +0 -111
- package/dist/contract/cli/invokeChoose.integration.test.js.map +0 -1
- package/dist/contract/cli/invokeInit.integration.test.d.ts +0 -1
- package/dist/contract/cli/invokeInit.integration.test.js +0 -123
- package/dist/contract/cli/invokeInit.integration.test.js.map +0 -1
- package/dist/contract/cli/invokeReadme.integration.test.d.ts +0 -1
- package/dist/contract/cli/invokeReadme.integration.test.js +0 -62
- package/dist/contract/cli/invokeReadme.integration.test.js.map +0 -1
- package/dist/contract/cli/invokeRolesBoot.integration.test.d.ts +0 -1
- package/dist/contract/cli/invokeRolesBoot.integration.test.js +0 -152
- package/dist/contract/cli/invokeRolesBoot.integration.test.js.map +0 -1
- package/dist/contract/cli/invokeRolesLink.integration.test.d.ts +0 -1
- package/dist/contract/cli/invokeRolesLink.integration.test.js +0 -117
- package/dist/contract/cli/invokeRolesLink.integration.test.js.map +0 -1
- package/dist/domain/objects/InvokeOpts.test.d.ts +0 -1
- package/dist/domain/objects/InvokeOpts.test.js +0 -41
- package/dist/domain/objects/InvokeOpts.test.js.map +0 -1
- package/dist/domain/objects/Stitcher.test.d.ts +0 -1
- package/dist/domain/objects/Stitcher.test.js +0 -78
- package/dist/domain/objects/Stitcher.test.js.map +0 -1
- package/dist/domain/objects/Template.test.d.ts +0 -1
- package/dist/domain/objects/Template.test.js +0 -48
- package/dist/domain/objects/Template.test.js.map +0 -1
- package/dist/logic/init/generateRhachetConfig.test.d.ts +0 -1
- package/dist/logic/init/generateRhachetConfig.test.js +0 -35
- package/dist/logic/init/generateRhachetConfig.test.js.map +0 -1
- package/dist/logic/invoke/addAttemptQualifierToOutputPath.test.d.ts +0 -1
- package/dist/logic/invoke/addAttemptQualifierToOutputPath.test.js +0 -130
- package/dist/logic/invoke/addAttemptQualifierToOutputPath.test.js.map +0 -1
- package/dist/logic/invoke/getPeerQualifiersOfOutputChoice.test.d.ts +0 -1
- package/dist/logic/invoke/getPeerQualifiersOfOutputChoice.test.js +0 -77
- package/dist/logic/invoke/getPeerQualifiersOfOutputChoice.test.js.map +0 -1
- package/dist/logic/invoke/getSkillContext.test.d.ts +0 -1
- package/dist/logic/invoke/getSkillContext.test.js +0 -85
- package/dist/logic/invoke/getSkillContext.test.js.map +0 -1
- package/dist/logic/invoke/getSkillThread.test.d.ts +0 -1
- package/dist/logic/invoke/getSkillThread.test.js +0 -115
- package/dist/logic/invoke/getSkillThread.test.js.map +0 -1
- package/dist/logic/invoke/performInIsolatedThread.invoke.integration.test.d.ts +0 -1
- package/dist/logic/invoke/performInIsolatedThread.invoke.integration.test.js +0 -74
- package/dist/logic/invoke/performInIsolatedThread.invoke.integration.test.js.map +0 -1
- package/dist/logic/invoke/performInIsolatedThreads.integration.test.d.ts +0 -1
- package/dist/logic/invoke/performInIsolatedThreads.integration.test.js +0 -75
- package/dist/logic/invoke/performInIsolatedThreads.integration.test.js.map +0 -1
- package/dist/logic/role/addRoleTraits.test.d.ts +0 -1
- package/dist/logic/role/addRoleTraits.test.js +0 -93
- package/dist/logic/role/addRoleTraits.test.js.map +0 -1
- package/dist/logic/role/enrollThread.integration.test.d.ts +0 -1
- package/dist/logic/role/enrollThread.integration.test.js +0 -79
- package/dist/logic/role/enrollThread.integration.test.js.map +0 -1
- package/dist/logic/role/genRoleSkill.test.d.ts +0 -1
- package/dist/logic/role/genRoleSkill.test.js +0 -79
- package/dist/logic/role/genRoleSkill.test.js.map +0 -1
- package/dist/logic/stitch/enstitch.test.d.ts +0 -1
- package/dist/logic/stitch/enstitch.test.js +0 -112
- package/dist/logic/stitch/enstitch.test.js.map +0 -1
- package/dist/logic/stitch/invokeImagineStitcher.integration.test.d.ts +0 -1
- package/dist/logic/stitch/invokeImagineStitcher.integration.test.js +0 -195
- package/dist/logic/stitch/invokeImagineStitcher.integration.test.js.map +0 -1
- package/dist/logic/template/genStepImagineViaTemplate.test.d.ts +0 -1
- package/dist/logic/template/genStepImagineViaTemplate.test.js +0 -126
- package/dist/logic/template/genStepImagineViaTemplate.test.js.map +0 -1
- package/dist/logic/template/genTemplate.test.d.ts +0 -1
- package/dist/logic/template/genTemplate.test.js +0 -118
- package/dist/logic/template/genTemplate.test.js.map +0 -1
- package/dist/logic/template/useTemplate.integration.test.d.ts +0 -1
- package/dist/logic/template/useTemplate.integration.test.js +0 -28
- package/dist/logic/template/useTemplate.integration.test.js.map +0 -1
- package/dist/logic/thread/getStitch.test.d.ts +0 -1
- package/dist/logic/thread/getStitch.test.js +0 -73
- package/dist/logic/thread/getStitch.test.js.map +0 -1
- package/dist/logic/weave/compose/GStitcherInferredFromChoice.generic.test.d.ts +0 -1
- package/dist/logic/weave/compose/GStitcherInferredFromChoice.generic.test.js +0 -67
- package/dist/logic/weave/compose/GStitcherInferredFromChoice.generic.test.js.map +0 -1
- package/dist/logic/weave/compose/GStitcherInferredFromCycle.generic.test.d.ts +0 -1
- package/dist/logic/weave/compose/GStitcherInferredFromCycle.generic.test.js +0 -132
- package/dist/logic/weave/compose/GStitcherInferredFromCycle.generic.test.js.map +0 -1
- package/dist/logic/weave/compose/GStitcherInferredFromFanout.generic.test.d.ts +0 -1
- package/dist/logic/weave/compose/GStitcherInferredFromFanout.generic.test.js +0 -74
- package/dist/logic/weave/compose/GStitcherInferredFromFanout.generic.test.js.map +0 -1
- package/dist/logic/weave/compose/GStitcherInferredFromRoute.generic.test.d.ts +0 -1
- package/dist/logic/weave/compose/GStitcherInferredFromRoute.generic.test.js +0 -190
- package/dist/logic/weave/compose/GStitcherInferredFromRoute.generic.test.js.map +0 -1
- package/dist/logic/weave/compose/ProcedureContextMerged.generic.test.d.ts +0 -1
- package/dist/logic/weave/compose/ProcedureContextMerged.generic.test.js +0 -29
- package/dist/logic/weave/compose/ProcedureContextMerged.generic.test.js.map +0 -1
- package/dist/logic/weave/compose/ThreadsMerged.generic.test.d.ts +0 -1
- package/dist/logic/weave/compose/ThreadsMerged.generic.test.js +0 -420
- package/dist/logic/weave/compose/ThreadsMerged.generic.test.js.map +0 -1
- package/dist/logic/weave/compose/asStitcher.test.d.ts +0 -1
- package/dist/logic/weave/compose/asStitcher.test.js +0 -95
- package/dist/logic/weave/compose/asStitcher.test.js.map +0 -1
- package/dist/logic/weave/compose/asStitcherFlat.test.d.ts +0 -1
- package/dist/logic/weave/compose/asStitcherFlat.test.js +0 -96
- package/dist/logic/weave/compose/asStitcherFlat.test.js.map +0 -1
- package/dist/logic/weave/compose/genStitchChoice.test.d.ts +0 -1
- package/dist/logic/weave/compose/genStitchChoice.test.js +0 -200
- package/dist/logic/weave/compose/genStitchChoice.test.js.map +0 -1
- package/dist/logic/weave/compose/genStitchCycle.test.d.ts +0 -1
- package/dist/logic/weave/compose/genStitchCycle.test.js +0 -267
- package/dist/logic/weave/compose/genStitchCycle.test.js.map +0 -1
- package/dist/logic/weave/compose/genStitchFanout.test.d.ts +0 -1
- package/dist/logic/weave/compose/genStitchFanout.test.js +0 -79
- package/dist/logic/weave/compose/genStitchFanout.test.js.map +0 -1
- package/dist/logic/weave/compose/genStitchRoute.test.d.ts +0 -1
- package/dist/logic/weave/compose/genStitchRoute.test.js +0 -120
- package/dist/logic/weave/compose/genStitchRoute.test.js.map +0 -1
- package/dist/logic/weave/enweaveOneChoice.test.d.ts +0 -1
- package/dist/logic/weave/enweaveOneChoice.test.js +0 -181
- package/dist/logic/weave/enweaveOneChoice.test.js.map +0 -1
- package/dist/logic/weave/enweaveOneCycle.test.d.ts +0 -1
- package/dist/logic/weave/enweaveOneCycle.test.js +0 -180
- package/dist/logic/weave/enweaveOneCycle.test.js.map +0 -1
- package/dist/logic/weave/enweaveOneFanout.integration.test.d.ts +0 -1
- package/dist/logic/weave/enweaveOneFanout.integration.test.js +0 -166
- package/dist/logic/weave/enweaveOneFanout.integration.test.js.map +0 -1
- package/dist/logic/weave/enweaveOneRoute.integration.test.d.ts +0 -1
- package/dist/logic/weave/enweaveOneRoute.integration.test.js +0 -159
- package/dist/logic/weave/enweaveOneRoute.integration.test.js.map +0 -1
- package/dist/logic/weave/enweaveOneStitcher.integration.test.d.ts +0 -2
- package/dist/logic/weave/enweaveOneStitcher.integration.test.js +0 -258
- package/dist/logic/weave/enweaveOneStitcher.integration.test.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StitchRoute.js","sourceRoot":"","sources":["../../../src/domain/objects/StitchRoute.ts"],"names":[],"mappings":";;;AAAA,mDAA+C;
|
|
1
|
+
{"version":3,"file":"StitchRoute.js","sourceRoot":"","sources":["../../../src/domain/objects/StitchRoute.ts"],"names":[],"mappings":";;;AAAA,mDAA+C;AAwC/C,MAAa,WACX,SAAQ,8BAAqC;CACT;AAFtC,kCAEsC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { UniDateTime } from '@ehmpathy/uni-time';
|
|
1
|
+
import type { UniDateTime } from '@ehmpathy/uni-time';
|
|
2
2
|
import { DomainLiteral } from 'domain-objects';
|
|
3
|
-
import { Stitch } from './Stitch';
|
|
4
|
-
import { Threads } from './Threads';
|
|
3
|
+
import type { Stitch } from './Stitch';
|
|
4
|
+
import type { Threads } from './Threads';
|
|
5
5
|
/**
|
|
6
6
|
* .what = an event that describes the occurrence of a stich being set
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DomainLiteral } from 'domain-objects';
|
|
2
|
-
import { Stitch } from './Stitch';
|
|
3
|
-
import { GStitcher, StitcherBase, StitcherForm } from './Stitcher';
|
|
4
|
-
import { Threads } from './Threads';
|
|
2
|
+
import type { Stitch } from './Stitch';
|
|
3
|
+
import type { GStitcher, StitcherBase, StitcherForm } from './Stitcher';
|
|
4
|
+
import type { Threads } from './Threads';
|
|
5
5
|
/**
|
|
6
6
|
* .what = a step by which to stitch, via computation
|
|
7
7
|
*/
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ContextLogTrail } from 'as-procedure';
|
|
2
|
-
import { Literalize } from 'type-fns';
|
|
3
|
-
import { ContextStitchTrail } from '../../logic/stitch/withStitchTrail';
|
|
4
|
-
import { StitchChoice } from './StitchChoice';
|
|
5
|
-
import { StitchCycle } from './StitchCycle';
|
|
6
|
-
import { StitchFanout } from './StitchFanout';
|
|
7
|
-
import { StitchRoute } from './StitchRoute';
|
|
8
|
-
import { StitchStep } from './StitchStep';
|
|
9
|
-
import { Threads } from './Threads';
|
|
1
|
+
import type { ContextLogTrail } from 'as-procedure';
|
|
2
|
+
import { type Literalize } from 'type-fns';
|
|
3
|
+
import type { ContextStitchTrail } from '../../logic/stitch/withStitchTrail';
|
|
4
|
+
import type { StitchChoice } from './StitchChoice';
|
|
5
|
+
import type { StitchCycle } from './StitchCycle';
|
|
6
|
+
import type { StitchFanout } from './StitchFanout';
|
|
7
|
+
import type { StitchRoute } from './StitchRoute';
|
|
8
|
+
import type { StitchStep } from './StitchStep';
|
|
9
|
+
import type { Threads } from './Threads';
|
|
10
10
|
/**
|
|
11
11
|
* .what = the common generics of a stitcher
|
|
12
12
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stitcher.js","sourceRoot":"","sources":["../../../src/domain/objects/Stitcher.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"Stitcher.js","sourceRoot":"","sources":["../../../src/domain/objects/Stitcher.ts"],"names":[],"mappings":";;;AACA,uCAA2D;AAwB3D;;GAEG;AACH,IAAY,YAmCX;AAnCD,WAAY,YAAY;IACtB;;OAEG;IACH,mCAAmB,CAAA;IAEnB;;OAEG;IACH,mCAAmB,CAAA;IAEnB;;OAEG;IACH,+BAAe,CAAA;IAEf;;OAEG;IACH,iCAAiB,CAAA;IAEjB;;OAEG;IACH,iCAAiB,CAAA;IAEjB;;OAEG;IACH,+BAAe,CAAA;IAEf;;OAEG;IACH,+BAAe,CAAA;AACjB,CAAC,EAnCW,YAAY,4BAAZ,YAAY,QAmCvB;AACY,QAAA,gBAAgB,GAAG,IAAA,yBAAc,EAAC,YAAY,CAAC,CAAC;AA8D7D;;;GAGG;AACI,MAAM,cAAc,GAAG,CAAsC,KAEnE,EAAmC,EAAE;IACpC,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC,QAAQ,CAAC;IAC9C,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;AAChC,CAAC,CAAC;AALW,QAAA,cAAc,kBAKzB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DomainEntity, RefByUnique } from 'domain-objects';
|
|
2
|
-
import { GitFile } from 'rhachet-artifact-git';
|
|
1
|
+
import { DomainEntity, type RefByUnique } from 'domain-objects';
|
|
2
|
+
import type { GitFile } from 'rhachet-artifact-git';
|
|
3
3
|
/**
|
|
4
4
|
* .what = a template reference that can be hydrated with variables
|
|
5
5
|
* .why = enables rendering reusable text templates with custom input
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Template.js","sourceRoot":"","sources":["../../../src/domain/objects/Template.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"Template.js","sourceRoot":"","sources":["../../../src/domain/objects/Template.ts"],"names":[],"mappings":";;;AAAA,mDAAgE;AAsBhE,MAAa,QACX,SAAQ,6BAAkC;CACR;AAFpC,4BAEoC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DomainLiteral } from 'domain-objects';
|
|
2
|
-
import { Stitch } from './Stitch';
|
|
3
|
-
import { StitchSetEvent } from './StitchSetEvent';
|
|
2
|
+
import type { Stitch } from './Stitch';
|
|
3
|
+
import type { StitchSetEvent } from './StitchSetEvent';
|
|
4
4
|
/**
|
|
5
5
|
* .what = a declaration of a thought thread
|
|
6
6
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Empty } from 'type-fns';
|
|
2
|
-
import { Thread, ThreadOmitHistory } from './Thread';
|
|
1
|
+
import type { Empty } from 'type-fns';
|
|
2
|
+
import { type Thread, type ThreadOmitHistory } from './Thread';
|
|
3
3
|
/**
|
|
4
4
|
* .what = a slug that uniquely identifies a role a thread can have
|
|
5
5
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Threads.js","sourceRoot":"","sources":["../../../src/domain/objects/Threads.ts"],"names":[],"mappings":";;;AAEA,
|
|
1
|
+
{"version":3,"file":"Threads.js","sourceRoot":"","sources":["../../../src/domain/objects/Threads.ts"],"names":[],"mappings":";;;AAEA,qCAIkB;AA2ElB;;GAEG;AACI,MAAM,kBAAkB,GAAG,CAAqC,KAEtE,EAAgC,EAAE;IACjC,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAC/B,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,EAAE;QAClD,IAAI,MAAM,IAAI,KAAK,IAAI,OAAO,IAAI,KAAK,EAAE,CAAC;YACxC,OAAO;gBACL,IAAI;gBACJ;oBACE,IAAI,EAAE,IAAA,0BAAiB,EAAC,KAAK,CAAC,IAAI,CAAC;oBACnC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,0BAAiB,CAAC;iBAC1C;aACF,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,IAAI,EAAE,IAAA,0BAAiB,EAAC,KAAoB,CAAC,CAAC,CAAC;QACzD,CAAC;IACH,CAAC,CAAC,CACH,CAAC;IAEF,OAAO,MAAsC,CAAC;AAChD,CAAC,CAAC;AApBW,QAAA,kBAAkB,sBAoB7B"}
|
|
@@ -9,6 +9,8 @@ export * from './StitchStep';
|
|
|
9
9
|
export * from './StitchTrail';
|
|
10
10
|
export * from './Thread';
|
|
11
11
|
export * from './Threads';
|
|
12
|
+
export * from './InvokeHooks';
|
|
13
|
+
export * from './InvokeOpts';
|
|
12
14
|
export * from './Role';
|
|
13
15
|
export * from './RoleContext';
|
|
14
16
|
export * from './RoleRegistry';
|
|
@@ -16,5 +18,3 @@ export * from './RoleSkill';
|
|
|
16
18
|
export * from './RoleSkillArgGetter';
|
|
17
19
|
export * from './RoleTrait';
|
|
18
20
|
export * from './Template';
|
|
19
|
-
export * from './InvokeOpts';
|
|
20
|
-
export * from './InvokeHooks';
|
|
@@ -27,6 +27,8 @@ __exportStar(require("./Thread"), exports);
|
|
|
27
27
|
__exportStar(require("./Threads"), exports);
|
|
28
28
|
// export * from './Weave';
|
|
29
29
|
// export * from './Weaver';
|
|
30
|
+
__exportStar(require("./InvokeHooks"), exports);
|
|
31
|
+
__exportStar(require("./InvokeOpts"), exports);
|
|
30
32
|
__exportStar(require("./Role"), exports);
|
|
31
33
|
__exportStar(require("./RoleContext"), exports);
|
|
32
34
|
__exportStar(require("./RoleRegistry"), exports);
|
|
@@ -34,6 +36,4 @@ __exportStar(require("./RoleSkill"), exports);
|
|
|
34
36
|
__exportStar(require("./RoleSkillArgGetter"), exports);
|
|
35
37
|
__exportStar(require("./RoleTrait"), exports);
|
|
36
38
|
__exportStar(require("./Template"), exports);
|
|
37
|
-
__exportStar(require("./InvokeOpts"), exports);
|
|
38
|
-
__exportStar(require("./InvokeHooks"), exports);
|
|
39
39
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domain/objects/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,iDAA+B;AAC/B,gDAA8B;AAC9B,6CAA2B;AAC3B,iDAA+B;AAC/B,gDAA8B;AAC9B,mDAAiC;AACjC,+CAA6B;AAC7B,gDAA8B;AAC9B,2CAAyB;AACzB,4CAA0B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domain/objects/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,iDAA+B;AAC/B,gDAA8B;AAC9B,6CAA2B;AAC3B,iDAA+B;AAC/B,gDAA8B;AAC9B,mDAAiC;AACjC,+CAA6B;AAC7B,gDAA8B;AAC9B,2CAAyB;AACzB,4CAA0B;AAE1B,2BAA2B;AAC3B,4BAA4B;AAE5B,gDAA8B;AAC9B,+CAA6B;AAC7B,yCAAuB;AACvB,gDAA8B;AAC9B,iDAA+B;AAC/B,8CAA4B;AAC5B,uDAAqC;AACrC,8CAA4B;AAC5B,6CAA2B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"genContextStitchTrail.js","sourceRoot":"","sources":["../../../src/logic/context/genContextStitchTrail.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACI,MAAM,qBAAqB,GAAG,CACnC,
|
|
1
|
+
{"version":3,"file":"genContextStitchTrail.js","sourceRoot":"","sources":["../../../src/logic/context/genContextStitchTrail.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACI,MAAM,qBAAqB,GAAG,CACnC,QAA6D,EAAE,EAC3C,EAAE,CAAC,CAAC;IACxB,MAAM,EAAE;QACN,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,KAAK,CAAC,MAAM;KACrB;CACF,CAAC,CAAC;AAPU,QAAA,qBAAqB,yBAO/B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Role } from '../../domain/objects/Role';
|
|
2
|
-
import { RoleRegistry } from '../../domain/objects/RoleRegistry';
|
|
1
|
+
import type { Role } from '../../domain/objects/Role';
|
|
2
|
+
import type { RoleRegistry } from '../../domain/objects/RoleRegistry';
|
|
3
3
|
/**
|
|
4
4
|
* .what = finds the first matching role across registries
|
|
5
5
|
* .why = ensures there is exactly one role match; fails if ambiguous or missing
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InvokeHooks } from '../../domain/objects/InvokeHooks';
|
|
2
|
-
import { InvokeOpts } from '../../domain/objects/InvokeOpts';
|
|
1
|
+
import type { InvokeHooks } from '../../domain/objects/InvokeHooks';
|
|
2
|
+
import type { InvokeOpts } from '../../domain/objects/InvokeOpts';
|
|
3
3
|
/**
|
|
4
4
|
* .what = get invoke hooks from the invocation options declared
|
|
5
5
|
* .how =
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RoleRegistry } from '../../domain/objects';
|
|
2
|
-
import { InvokeOpts } from '../../domain/objects/InvokeOpts';
|
|
1
|
+
import type { RoleRegistry } from '../../domain/objects';
|
|
2
|
+
import type { InvokeOpts } from '../../domain/objects/InvokeOpts';
|
|
3
3
|
/**
|
|
4
4
|
* .what = get registries from the invocation options declared
|
|
5
5
|
* .how =
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { PickOne } from 'type-fns';
|
|
2
|
-
import { RoleSkillContextGetter } from '../../domain/objects/RoleSkillArgGetter';
|
|
1
|
+
import type { PickOne } from 'type-fns';
|
|
2
|
+
import type { RoleSkillContextGetter } from '../../domain/objects/RoleSkillArgGetter';
|
|
3
3
|
/**
|
|
4
4
|
* .what = hydrates skill context using either passin or lookup mode
|
|
5
5
|
* .why =
|
|
6
6
|
* - supports flexible skill execution via CLI, tests, or runtime composition
|
|
7
7
|
* - ensures all required env inputs are present and valid
|
|
8
8
|
*/
|
|
9
|
-
export declare const getSkillContext: <TOutput extends import("
|
|
9
|
+
export declare const getSkillContext: <TOutput extends import("as-procedure").ContextLogTrail & import("../..").ContextStitchTrail, TVars extends Record<string, any>>(input: {
|
|
10
10
|
getter: RoleSkillContextGetter<TOutput, TVars>;
|
|
11
11
|
from: PickOne<{
|
|
12
12
|
passin: TVars;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PickOne } from 'type-fns';
|
|
2
|
-
import { Threads } from '../../domain/objects';
|
|
3
|
-
import { InvokeOpts } from '../../domain/objects/InvokeOpts';
|
|
4
|
-
import { RoleSkillThreadsGetter } from '../../domain/objects/RoleSkillArgGetter';
|
|
1
|
+
import type { PickOne } from 'type-fns';
|
|
2
|
+
import type { Threads } from '../../domain/objects';
|
|
3
|
+
import type { InvokeOpts } from '../../domain/objects/InvokeOpts';
|
|
4
|
+
import type { RoleSkillThreadsGetter } from '../../domain/objects/RoleSkillArgGetter';
|
|
5
5
|
/**
|
|
6
6
|
* .what = hydrates skill threads using either passin or lookup mode
|
|
7
7
|
* .why = enables flexible runtime use from CLI or direct invocation
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InvokeOpts } from '../../../domain/objects';
|
|
2
|
-
import { InvokeHooks } from '../../../domain/objects/InvokeHooks';
|
|
1
|
+
import type { InvokeOpts } from '../../../domain/objects';
|
|
2
|
+
import type { InvokeHooks } from '../../../domain/objects/InvokeHooks';
|
|
3
3
|
/**
|
|
4
4
|
* .what = hooks to call onInvokeAskInput
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RoleRegistry } from '../../domain/objects';
|
|
2
|
-
import { InvokeOpts } from '../../domain/objects/InvokeOpts';
|
|
1
|
+
import type { RoleRegistry } from '../../domain/objects';
|
|
2
|
+
import type { InvokeOpts } from '../../domain/objects/InvokeOpts';
|
|
3
3
|
/**
|
|
4
4
|
* .what = perform a skill within the current thread
|
|
5
5
|
* .why =
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UniDateTimeRange, UniDuration } from '@ehmpathy/uni-time';
|
|
2
|
-
import { InvokeOpts } from '../../domain/objects/InvokeOpts';
|
|
1
|
+
import { type UniDateTimeRange, type UniDuration } from '@ehmpathy/uni-time';
|
|
2
|
+
import type { InvokeOpts } from '../../domain/objects/InvokeOpts';
|
|
3
3
|
/**
|
|
4
4
|
* .what = perform a single skill execution in an isolated child thread (subprocess)
|
|
5
5
|
* .why =
|
|
@@ -4,12 +4,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.performInIsolatedThread = exports.invokePerformInIsolatedThread = void 0;
|
|
7
|
-
const uni_time_1 = require("@ehmpathy/uni-time");
|
|
8
|
-
const chalk_1 = __importDefault(require("chalk"));
|
|
9
|
-
const helpful_errors_1 = require("helpful-errors");
|
|
10
7
|
const node_child_process_1 = require("node:child_process");
|
|
11
8
|
const node_path_1 = __importDefault(require("node:path"));
|
|
12
9
|
const node_readline_1 = __importDefault(require("node:readline"));
|
|
10
|
+
const uni_time_1 = require("@ehmpathy/uni-time");
|
|
11
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
12
|
+
const helpful_errors_1 = require("helpful-errors");
|
|
13
13
|
const serde_fns_1 = require("serde-fns");
|
|
14
14
|
/**
|
|
15
15
|
* .what = gets the standard output prefix for this attempt
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"performInIsolatedThread.invoke.js","sourceRoot":"","sources":["../../../src/logic/invoke/performInIsolatedThread.invoke.ts"],"names":[],"mappings":";;;;;;AAAA,iDAK4B;AAC5B,kDAA0B;AAC1B,mDAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"performInIsolatedThread.invoke.js","sourceRoot":"","sources":["../../../src/logic/invoke/performInIsolatedThread.invoke.ts"],"names":[],"mappings":";;;;;;AAAA,2DAA2C;AAC3C,0DAA6B;AAC7B,kEAAqC;AACrC,iDAK4B;AAC5B,kDAA0B;AAC1B,mDAAyD;AACzD,yCAA4E;AAI5E;;;;GAIG;AACH,MAAM,sBAAsB,GAAG,CAAC,KAAyC,EAAE,EAAE;IAC3E,MAAM,OAAO,GAAG;QACd,eAAK,CAAC,IAAI;QACV,eAAK,CAAC,KAAK;QACX,eAAK,CAAC,OAAO;QACb,eAAK,CAAC,MAAM;QACZ,eAAK,CAAC,IAAI;QACV,eAAK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AAC,CAAC;QAE3D,2CAA2C;QAC3C,MAAM,OAAO,GAAG,IAAA,wBAAa,EAAC,IAAI,IAAI,EAAE,CAAC,CAAC;QAC1C,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;YAC1B,MAAM,KAAK,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,IAAA,wBAAa,EAAC,IAAI,IAAI,EAAE,CAAC,EAAE,CAAC;YACnE,OAAO,CAAC;gBACN,OAAO;gBACP,IAAI;gBACJ,KAAK,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAA,sBAAW,EAAC,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE;aAC3D,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AA3EW,QAAA,6BAA6B,iCA2ExC;AAGwC,kCA9E7B,qCAA6B,CA8EuB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Artifact } from 'rhachet-artifact';
|
|
2
|
-
import { GitFile } from 'rhachet-artifact-git';
|
|
3
|
-
import { PickAny } from 'type-fns';
|
|
4
|
-
import { Thread } from '../../domain/objects';
|
|
5
|
-
import { RoleContext, RoleContextTrait } from '../../domain/objects/RoleContext';
|
|
1
|
+
import type { Artifact } from 'rhachet-artifact';
|
|
2
|
+
import type { GitFile } from 'rhachet-artifact-git';
|
|
3
|
+
import type { PickAny } from 'type-fns';
|
|
4
|
+
import type { Thread } from '../../domain/objects';
|
|
5
|
+
import type { RoleContext, RoleContextTrait } from '../../domain/objects/RoleContext';
|
|
6
6
|
/**
|
|
7
7
|
* .what = injects new RoleTrait(s) into a thread's context
|
|
8
8
|
* .why = enables dynamic role adaptation from inline traits or artifact sources
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Artifact } from 'rhachet-artifact';
|
|
2
|
-
import { GitFile } from 'rhachet-artifact-git';
|
|
3
|
-
import { Thread } from '../../domain/objects';
|
|
4
|
-
import { RoleContext } from '../../domain/objects/RoleContext';
|
|
1
|
+
import type { Artifact } from 'rhachet-artifact';
|
|
2
|
+
import type { GitFile } from 'rhachet-artifact-git';
|
|
3
|
+
import type { Thread } from '../../domain/objects';
|
|
4
|
+
import type { RoleContext } from '../../domain/objects/RoleContext';
|
|
5
5
|
/**
|
|
6
6
|
* .what = creates a thread for a given role, with optional inherited traits and skills
|
|
7
7
|
* .why = eliminates boilerplate around thread setup, including `as const`, trait/skill injection, and context composition
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GStitcher,
|
|
1
|
+
import { type GStitcher, RoleSkill, type RoleSkillContextGetter, type RoleSkillThreadsGetter, type Stitcher } from '../../domain/objects';
|
|
2
2
|
/**
|
|
3
3
|
* .what = factory for role skills
|
|
4
4
|
* .why = ensures narrow type coupling between getter inputs
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { type GStitcher } from '../../domain/objects/Stitcher';
|
|
1
2
|
import { StitchSetEvent } from '../../domain/objects/StitchSetEvent';
|
|
2
|
-
import { StitchStep } from '../../domain/objects/StitchStep';
|
|
3
|
-
import { GStitcher } from '../../domain/objects/Stitcher';
|
|
3
|
+
import type { StitchStep } from '../../domain/objects/StitchStep';
|
|
4
4
|
import { Thread } from '../../domain/objects/Thread';
|
|
5
|
-
import { Threads } from '../../domain/objects/Threads';
|
|
5
|
+
import type { Threads } from '../../domain/objects/Threads';
|
|
6
6
|
/**
|
|
7
7
|
* .what = extracts the base thread to stitch into
|
|
8
8
|
* .why = handles both single and multiple thread formats
|
|
@@ -5,9 +5,9 @@ const uni_time_1 = require("@ehmpathy/uni-time");
|
|
|
5
5
|
const helpful_errors_1 = require("helpful-errors");
|
|
6
6
|
const uuid_fns_1 = require("uuid-fns");
|
|
7
7
|
const Stitch_1 = require("../../domain/objects/Stitch");
|
|
8
|
+
const Stitcher_1 = require("../../domain/objects/Stitcher");
|
|
8
9
|
const StitchSetEvent_1 = require("../../domain/objects/StitchSetEvent");
|
|
9
10
|
const StitchTrail_1 = require("../../domain/objects/StitchTrail");
|
|
10
|
-
const Stitcher_1 = require("../../domain/objects/Stitcher");
|
|
11
11
|
const Thread_1 = require("../../domain/objects/Thread");
|
|
12
12
|
const invokeImagineStitcher_1 = require("./invokeImagineStitcher");
|
|
13
13
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enstitch.js","sourceRoot":"","sources":["../../../src/logic/stitch/enstitch.ts"],"names":[],"mappings":";;;AAAA,iDAAmD;AACnD,mDAAyD;AACzD,uCAAmC;AAEnC,wDAAqD;AACrD,wEAAqE;AAErE,kEAG0C;AAC1C,
|
|
1
|
+
{"version":3,"file":"enstitch.js","sourceRoot":"","sources":["../../../src/logic/stitch/enstitch.ts"],"names":[],"mappings":";;;AAAA,iDAAmD;AACnD,mDAAyD;AACzD,uCAAmC;AAEnC,wDAAqD;AACrD,4DAA+E;AAC/E,wEAAqE;AAErE,kEAG0C;AAC1C,wDAAqD;AAErD,mEAAgE;AAEhE;;;GAGG;AACI,MAAM,WAAW,GAAG,CACzB,MAA2D,EAChD,EAAE;IACb,IAAI,MAAM,IAAI,MAAM,IAAI,OAAO,IAAI,MAAM,EAAE,CAAC;QAC1C,OAAO,MAAM,CAAC,IAAI,CAAC;IACrB,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAPW,QAAA,WAAW,eAOtB;AAEF;;;GAGG;AACI,MAAM,mBAAmB,GAAG,CACjC,KAAe,EACa,EAAE;IAC9B,MAAM,MAAM,GAAG,EAAgC,CAAC;IAChD,KAAK,MAAM,GAAG,IAAI,KAAK,EAAE,CAAC;QACxB,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,CAAE,CAAC;QACzB,MAAc,CAAC,GAAG,CAAC;YAClB,MAAM,IAAI,KAAK,IAAI,OAAO,IAAI,KAAK;gBACjC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,0BAA0B;gB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itch';
|
|
2
|
+
import type { GStitcher } from '../../domain/objects/Stitcher';
|
|
3
|
+
import type { StitchStepImagine } from '../../domain/objects/StitchStep';
|
|
4
4
|
/**
|
|
5
5
|
* .what = invokes the imagine stitcher by invocation of stitcher mechanisms
|
|
6
6
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Procedure } from 'as-procedure';
|
|
2
|
-
import { StitchSetEvent } from '../../domain/objects';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import type { Procedure } from 'as-procedure';
|
|
2
|
+
import type { StitchSetEvent } from '../../domain/objects';
|
|
3
|
+
import { type Stitcher } from '../../domain/objects/Stitcher';
|
|
4
|
+
import { type StitchTrail } from '../../domain/objects/StitchTrail';
|
|
5
5
|
export interface ContextStitchTrail {
|
|
6
6
|
stitch: {
|
|
7
7
|
/**
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.withStitchTrail = exports.isStitcher = void 0;
|
|
4
4
|
const type_fns_1 = require("type-fns");
|
|
5
5
|
const uuid_fns_1 = require("uuid-fns");
|
|
6
|
-
const StitchTrail_1 = require("../../domain/objects/StitchTrail");
|
|
7
6
|
const Stitcher_1 = require("../../domain/objects/Stitcher");
|
|
7
|
+
const StitchTrail_1 = require("../../domain/objects/StitchTrail");
|
|
8
8
|
exports.isStitcher = (0, type_fns_1.withAssure)((input) => !!input &&
|
|
9
9
|
'form' in input &&
|
|
10
10
|
'slug' in input &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withStitchTrail.js","sourceRoot":"","sources":["../../../src/logic/stitch/withStitchTrail.ts"],"names":[],"mappings":";;;AAMA,uCAAsC;AACtC,uCAAmC;AAGnC,
|
|
1
|
+
{"version":3,"file":"withStitchTrail.js","sourceRoot":"","sources":["../../../src/logic/stitch/withStitchTrail.ts"],"names":[],"mappings":";;;AAMA,uCAAsC;AACtC,uCAAmC;AAGnC,4DAAgF;AAChF,kEAG0C;AAkB7B,QAAA,UAAU,GAAG,IAAA,qBAAU,EAClC,CAAC,KAAU,EAAqB,EAAE,CAChC,CAAC,CAAC,KAAK;IACP,MAAM,IAAI,KAAK;IACf,MAAM,IAAI,KAAK;IACf,IAAA,2BAAgB,EAAC,KAAK,CAAC,IAAI,CAAC,CAC/B,CAAC;AAEF;;;;;GAKG;AACI,MAAM,eAAe,GAAG,CAC7B,KAAa,EACC,EAAE;IAChB,OAAO,CAAC,KAAK,EACX,KAAmC,EACnC,OAAuC,EACC,EAAE;QAC1C,0EAA0E;QAC1E,MAAM,QAAQ,GAAG,kBAAU,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAEnD,yDAAyD;QACzD,MAAM,iBAAiB,GAAG,+BAAiB,CAAC,KAAK,CAAC;YAChD,YAAY,EAAE,QAAQ,CAAC,IAAI;YAC3B,UAAU,EAAE,IAAA,kBAAO,GAAE,EAAE,8CAA8C;SACtE,CAAC,CAAC;QACH,MAAM,qBAAqB,GAAuB;YAChD,MAAM,EAAE;gBACN,KAAK,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,EAAE,iBAAiB,CAAC,EAAE,0BAA0B;gBACvF,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,wCAAwC;aACxE;SACF,CAAC;QAEF,mEAAmE;QACnE,OAAO,MAAM,KAAK,CAAC,KAAK,EAAE;YACxB,GAAG,OAAO;YACV,GAAG,qBAAqB;SACzB,CAAC,CAAC;IACL,CAAC,CAAiB,CAAC;AACrB,CAAC,CAAC;AA5BW,QAAA,eAAe,mBA4B1B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GStitcher, StitchStepImagine } from '../../domain/objects';
|
|
2
|
-
import { Template } from '../../domain/objects/Template';
|
|
1
|
+
import { type GStitcher, StitchStepImagine } from '../../domain/objects';
|
|
2
|
+
import type { Template } from '../../domain/objects/Template';
|
|
3
3
|
/**
|
|
4
4
|
* .what = creates a typed StitchStepImagine from a prompt template and AI imagine function
|
|
5
5
|
* .why = enables reusable, type-safe imagine steps with minimal boilerplate
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"genStepImagineViaTemplate.js","sourceRoot":"","sources":["../../../src/logic/template/genStepImagineViaTemplate.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"genStepImagineViaTemplate.js","sourceRoot":"","sources":["../../../src/logic/template/genStepImagineViaTemplate.ts"],"names":[],"mappings":";;;AAAA,kDAAyE;AAGzE;;;GAGG;AACI,MAAM,yBAAyB,GAAG,CAEvC,KAUD,EAAgC,EAAE,CACjC,IAAI,2BAAiB,CAAY;IAC/B,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,KAAK,CAAC,IAAI;IAChB,MAAM,EAAE,KAAK,CAAC,MAAM;IACpB,QAAQ,EAAE,KAAK,CAAC,QAAkB;IAClC,QAAQ,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,CAAC;IAChE,OAAO,EAAE,KAAK,CAAC,OAAO;IACtB,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE,CACpC,KAAK,CAAC,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,IAAI;QAC1D,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;QAC3B,MAAM,EAAE,EAAE,OAAO,EAAE,SAAS,EAAyB;KACtD;CACJ,CAAC,CAAC;AAzBQ,QAAA,yBAAyB,6BAyBjC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Serializable } from 'serde-fns';
|
|
2
|
-
import { Threads } from '../../domain/objects';
|
|
3
|
-
import { Template } from '../../domain/objects/Template';
|
|
1
|
+
import type { Serializable } from 'serde-fns';
|
|
2
|
+
import type { Threads } from '../../domain/objects';
|
|
3
|
+
import type { Template } from '../../domain/objects/Template';
|
|
4
4
|
/**
|
|
5
5
|
* .what = creates a Template that hydrates from a thread context
|
|
6
6
|
* .why = enables loading + variable projection in one step
|
|
@@ -38,8 +38,8 @@ exports.getCallerFilePath = getCallerFilePath;
|
|
|
38
38
|
const getTemplatePathByCallerPath = (input) => {
|
|
39
39
|
// grab the path; support "auto" for auto detection
|
|
40
40
|
const path = input.auto === true
|
|
41
|
-
? (0, exports.getCallerFilePath)({ depth: 2 }) ??
|
|
42
|
-
helpful_errors_1.UnexpectedCodePathError.throw('should have been able to get caller file path')
|
|
41
|
+
? ((0, exports.getCallerFilePath)({ depth: 2 }) ??
|
|
42
|
+
helpful_errors_1.UnexpectedCodePathError.throw('should have been able to get caller file path'))
|
|
43
43
|
: input.path;
|
|
44
44
|
// parse dir, name, and ext separately
|
|
45
45
|
const { dir, name } = path_1.default.parse(path);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTemplatePathByCallerPath.js","sourceRoot":"","sources":["../../../src/logic/template/getTemplatePathByCallerPath.ts"],"names":[],"mappings":";;;;;;AAAA,mDAAyD;AACzD,gDAA2B;AAG3B;;;;GAIG;AACI,MAAM,iBAAiB,GAAG,CAC/B,QAMI,EAAE,KAAK,EAAE,CAAC,EAAE,EACD,EAAE;IACjB,MAAM,eAAe,GAAG,KAAK,CAAC,iBAAiB,CAAC;IAChD,IAAI,CAAC;QACH,KAAK,CAAC,iBAAiB,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC;QAC9C,MAAM,GAAG,GAAG,IAAI,KAAK,EAAE,CAAC;QACxB,MAAM,KAAK,GAAG,GAAG,CAAC,KAAqC,CAAC;QAExD,yDAAyD;QACzD,MAAM,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,2FAA2F;QAC9H,IAAI,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC;QACzB,MAAM,cAAc,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC;QAC5C,OAAO,cAAc,CAAC,CAAC,CAAC,cAAO,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACjE,CAAC;YAAS,CAAC;QACT,KAAK,CAAC,iBAAiB,GAAG,eAAe,CAAC;IAC5C,CAAC;AACH,CAAC,CAAC;AAvBW,QAAA,iBAAiB,qBAuB5B;AAEF;;;;;GAKG;AACI,MAAM,2BAA2B,GAAG,CACzC,KAUE,EACM,EAAE;IACV,mDAAmD;IACnD,MAAM,IAAI,GACR,KAAK,CAAC,IAAI,KAAK,IAAI;QACjB,CAAC,CAAC,IAAA,yBAAiB,EAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"getTemplatePathByCallerPath.js","sourceRoot":"","sources":["../../../src/logic/template/getTemplatePathByCallerPath.ts"],"names":[],"mappings":";;;;;;AAAA,mDAAyD;AACzD,gDAA2B;AAG3B;;;;GAIG;AACI,MAAM,iBAAiB,GAAG,CAC/B,QAMI,EAAE,KAAK,EAAE,CAAC,EAAE,EACD,EAAE;IACjB,MAAM,eAAe,GAAG,KAAK,CAAC,iBAAiB,CAAC;IAChD,IAAI,CAAC;QACH,KAAK,CAAC,iBAAiB,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC;QAC9C,MAAM,GAAG,GAAG,IAAI,KAAK,EAAE,CAAC;QACxB,MAAM,KAAK,GAAG,GAAG,CAAC,KAAqC,CAAC;QAExD,yDAAyD;QACzD,MAAM,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,2FAA2F;QAC9H,IAAI,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC;QACzB,MAAM,cAAc,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC;QAC5C,OAAO,cAAc,CAAC,CAAC,CAAC,cAAO,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACjE,CAAC;YAAS,CAAC;QACT,KAAK,CAAC,iBAAiB,GAAG,eAAe,CAAC;IAC5C,CAAC;AACH,CAAC,CAAC;AAvBW,QAAA,iBAAiB,qBAuB5B;AAEF;;;;;GAKG;AACI,MAAM,2BAA2B,GAAG,CACzC,KAUE,EACM,EAAE;IACV,mDAAmD;IACnD,MAAM,IAAI,GACR,KAAK,CAAC,IAAI,KAAK,IAAI;QACjB,CAAC,CAAC,CAAC,IAAA,yBAAiB,EAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;YAChC,wCAAuB,CAAC,KAAK,CAC3B,+CAA+C,CAChD,CAAC;QACJ,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC;IAEjB,sCAAsC;IACtC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,cAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAE1C,yCAAyC;IACzC,OAAO,cAAO,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,cAAc,CAAC,CAAC;AAClD,CAAC,CAAC;AA3BW,QAAA,2BAA2B,+BA2BtC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Artifact } from 'rhachet-artifact';
|
|
2
|
-
import { GitFile } from 'rhachet-artifact-git';
|
|
1
|
+
import type { Artifact } from 'rhachet-artifact';
|
|
2
|
+
import { type GitFile } from 'rhachet-artifact-git';
|
|
3
3
|
/**
|
|
4
4
|
* .what = reads the artifacts given and returns a string for use in a template val
|
|
5
5
|
* .why = makes it easy to execute this common usecase
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTemplateValFromArtifacts.js","sourceRoot":"","sources":["../../../src/logic/template/getTemplateValFromArtifacts.ts"],"names":[],"mappings":";;;AAAA,mDAAyD;AAEzD,+
|
|
1
|
+
{"version":3,"file":"getTemplateValFromArtifacts.js","sourceRoot":"","sources":["../../../src/logic/template/getTemplateValFromArtifacts.ts"],"names":[],"mappings":";;;AAAA,mDAAyD;AAEzD,+DAAoE;AAEpE;;;GAGG;AACI,MAAM,2BAA2B,GAAG,KAAK,EAAE,KAEjD,EAAmB,EAAE;IACpB,MAAM,IAAI,GAAG,MAAM,IAAA,qCAAc,EAAC,EAAE,IAAI,EAAE,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;IAE3D,OAAO,CACL,MAAM,OAAO,CAAC,GAAG,CACf,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,OAAO,GACX,CAAC,MAAM,GAAG,CAAC,GAAG,EAAE,CAAC,EAAE,OAAO;YAC1B,wCAAuB,CAAC,KAAK,CAAC,yBAAyB,EAAE;gBACvD,GAAG;aACJ,CAAC,CAAC;QACL,OAAO;YACL,EAAE;YACF,WAAW;YACX,UAAU,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,UAAU,CAAC,EAAE;YACjD,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,IAAI,EAAE,CAAC,EAAE,qBAAqB;YAC1E,SAAS;SACV,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACf,CAAC,CAAC,CACH,CACF,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACjB,CAAC,CAAC;AAvBW,QAAA,2BAA2B,+BAuBtC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Serializable } from 'serde-fns';
|
|
2
|
-
import { Template } from '../../domain/objects/Template';
|
|
1
|
+
import type { Serializable } from 'serde-fns';
|
|
2
|
+
import type { Template } from '../../domain/objects/Template';
|
|
3
3
|
/**
|
|
4
4
|
* .what = hydrates a template file with given variables
|
|
5
5
|
* .why = reusable interpolation engine for Template<T>.use(...)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { GStitcher, Stitcher } from '../../../domain/objects/Stitcher';
|
|
2
|
-
import { ProcedureContextMerged, ProcedureContextSpread } from './ProcedureContextMerged.generic';
|
|
3
|
-
import { ThreadsMerged, ThreadsSpread } from './ThreadsMerged.generic';
|
|
1
|
+
import type { GStitcher, Stitcher } from '../../../domain/objects/Stitcher';
|
|
2
|
+
import type { ProcedureContextMerged, ProcedureContextSpread } from './ProcedureContextMerged.generic';
|
|
3
|
+
import type { ThreadsMerged, ThreadsSpread } from './ThreadsMerged.generic';
|
|
4
4
|
/**
|
|
5
5
|
* .what = infers a composite GStitcher from a StitchChoice config
|
|
6
6
|
* .how =
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { GStitcher, GStitcherOf, Stitcher } from '../../../domain/objects/Stitcher';
|
|
2
|
-
import { Threads } from '../../../domain/objects/Threads';
|
|
3
|
-
import { ProcedureContextMerged } from './ProcedureContextMerged.generic';
|
|
4
|
-
import { ThreadsMerged } from './ThreadsMerged.generic';
|
|
1
|
+
import type { GStitcher, GStitcherOf, Stitcher } from '../../../domain/objects/Stitcher';
|
|
2
|
+
import type { Threads } from '../../../domain/objects/Threads';
|
|
3
|
+
import type { ProcedureContextMerged } from './ProcedureContextMerged.generic';
|
|
4
|
+
import type { ThreadsMerged } from './ThreadsMerged.generic';
|
|
5
5
|
/**
|
|
6
6
|
* .what = infers a composite GStitcher from a StitchCycle config
|
|
7
7
|
* .how =
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { GStitcherInferredFromRoute } from './GStitcherInferredFromRoute.generic';
|
|
5
|
-
import { ProcedureContextMerged, ProcedureContextSpread } from './ProcedureContextMerged.generic';
|
|
6
|
-
import { ThreadsMerged } from './ThreadsMerged.generic';
|
|
1
|
+
import type { GStitcher, Stitcher } from '../../../domain/objects/Stitcher';
|
|
2
|
+
import type { ThreadsFromFanout } from '../../../domain/objects/StitchFanout';
|
|
3
|
+
import type { StitchStep } from '../../../domain/objects/StitchStep';
|
|
4
|
+
import type { GStitcherInferredFromRoute } from './GStitcherInferredFromRoute.generic';
|
|
5
|
+
import type { ProcedureContextMerged, ProcedureContextSpread } from './ProcedureContextMerged.generic';
|
|
6
|
+
import type { ThreadsMerged } from './ThreadsMerged.generic';
|
|
7
7
|
/**
|
|
8
8
|
* .what = a mech to infer a GStitcher from a StitchFanout setup
|
|
9
9
|
* - i.e., infers the composite stitcher for StitchFanout
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { GStitcher, Stitcher } from '../../../domain/objects/Stitcher';
|
|
2
|
-
import { Threads } from '../../../domain/objects/Threads';
|
|
3
|
-
import { ProcedureContextMerged } from './ProcedureContextMerged.generic';
|
|
4
|
-
import { ThreadsMerged } from './ThreadsMerged.generic';
|
|
1
|
+
import type { GStitcher, Stitcher } from '../../../domain/objects/Stitcher';
|
|
2
|
+
import type { Threads } from '../../../domain/objects/Threads';
|
|
3
|
+
import type { ProcedureContextMerged } from './ProcedureContextMerged.generic';
|
|
4
|
+
import type { ThreadsMerged } from './ThreadsMerged.generic';
|
|
5
5
|
type Last<T extends readonly any[]> = T extends readonly [...any[], infer L] ? L : never;
|
|
6
6
|
/**
|
|
7
7
|
* .what = a mech to infer a GStitcher from a StitchRoute.Sequence
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GStitcher, Stitcher } from '../../../domain/objects/Stitcher';
|
|
1
|
+
import type { GStitcher, Stitcher } from '../../../domain/objects/Stitcher';
|
|
2
2
|
/**
|
|
3
3
|
* .what = transforms a union into an intersection of its members
|
|
4
4
|
* .why = needed to merge multiple object types into one composite type (e.g. { foo } | { bar } → { foo } & { bar })
|