rhachet 1.11.0 → 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 +10 -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 +9 -47
- 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 +9 -0
- package/dist/contract/cli/invokeInit.js +57 -0
- package/dist/contract/cli/invokeInit.js.map +1 -0
- 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 +17 -96
- 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/init/discoverRolePackages.d.ts +8 -0
- package/dist/logic/init/discoverRolePackages.js +20 -0
- package/dist/logic/init/discoverRolePackages.js.map +1 -0
- package/dist/logic/init/generateRhachetConfig.d.ts +8 -0
- package/dist/logic/init/generateRhachetConfig.js +40 -0
- package/dist/logic/init/generateRhachetConfig.js.map +1 -0
- package/dist/logic/invoke/assureFindRole.d.ts +2 -2
- package/dist/logic/invoke/assureUniqueRoles.d.ts +1 -1
- package/dist/logic/invoke/getAgentReadmeTemplates.js +1 -1
- package/dist/logic/invoke/getInvokeHooksByOpts.d.ts +4 -3
- package/dist/logic/invoke/getInvokeHooksByOpts.js +11 -3
- package/dist/logic/invoke/getInvokeHooksByOpts.js.map +1 -1
- 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/link/findsertFile.d.ts +9 -0
- package/dist/logic/invoke/link/findsertFile.js +29 -0
- package/dist/logic/invoke/link/findsertFile.js.map +1 -0
- package/dist/logic/invoke/link/symlinkResourceDirectories.d.ts +12 -0
- package/dist/logic/invoke/link/symlinkResourceDirectories.js +81 -0
- package/dist/logic/invoke/link/symlinkResourceDirectories.js.map +1 -0
- 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 -97
- 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/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/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/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
package/dist/contract/sdk.js
CHANGED
|
@@ -14,40 +14,40 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
17
|
+
exports.enweaveOneStitcher = exports.genStitchRoute = exports.genStitchFanout = exports.genStitchCycle = exports.genStitchChoice = exports.asStitcherFlat = exports.asStitcher = exports.getStitch = exports.useTemplate = exports.getTemplateVarsFromRoleInherit = exports.getTemplateValFromArtifacts = exports.getTemplatePathByCallerPath = exports.genTemplate = exports.genStepImagineViaTemplate = exports.genRoleSkill = exports.enrollThread = exports.genContextStitchTrail = void 0;
|
|
18
18
|
__exportStar(require("../domain/objects"), exports);
|
|
19
|
-
var
|
|
20
|
-
Object.defineProperty(exports, "
|
|
21
|
-
var
|
|
22
|
-
Object.defineProperty(exports, "
|
|
23
|
-
var
|
|
24
|
-
Object.defineProperty(exports, "
|
|
25
|
-
var
|
|
26
|
-
Object.defineProperty(exports, "
|
|
27
|
-
var enweaveOneStitcher_1 = require("../logic/weave/enweaveOneStitcher");
|
|
28
|
-
Object.defineProperty(exports, "enweaveOneStitcher", { enumerable: true, get: function () { return enweaveOneStitcher_1.enweaveOneStitcher; } });
|
|
29
|
-
var asStitcher_1 = require("../logic/weave/compose/asStitcher");
|
|
30
|
-
Object.defineProperty(exports, "asStitcher", { enumerable: true, get: function () { return asStitcher_1.asStitcher; } });
|
|
31
|
-
var asStitcherFlat_1 = require("../logic/weave/compose/asStitcherFlat");
|
|
32
|
-
Object.defineProperty(exports, "asStitcherFlat", { enumerable: true, get: function () { return asStitcherFlat_1.asStitcherFlat; } });
|
|
19
|
+
var genContextStitchTrail_1 = require("../logic/context/genContextStitchTrail");
|
|
20
|
+
Object.defineProperty(exports, "genContextStitchTrail", { enumerable: true, get: function () { return genContextStitchTrail_1.genContextStitchTrail; } });
|
|
21
|
+
var enrollThread_1 = require("../logic/role/enrollThread");
|
|
22
|
+
Object.defineProperty(exports, "enrollThread", { enumerable: true, get: function () { return enrollThread_1.enrollThread; } });
|
|
23
|
+
var genRoleSkill_1 = require("../logic/role/genRoleSkill");
|
|
24
|
+
Object.defineProperty(exports, "genRoleSkill", { enumerable: true, get: function () { return genRoleSkill_1.genRoleSkill; } });
|
|
25
|
+
var genStepImagineViaTemplate_1 = require("../logic/template/genStepImagineViaTemplate");
|
|
26
|
+
Object.defineProperty(exports, "genStepImagineViaTemplate", { enumerable: true, get: function () { return genStepImagineViaTemplate_1.genStepImagineViaTemplate; } });
|
|
33
27
|
var genTemplate_1 = require("../logic/template/genTemplate");
|
|
34
28
|
Object.defineProperty(exports, "genTemplate", { enumerable: true, get: function () { return genTemplate_1.genTemplate; } });
|
|
29
|
+
var getTemplatePathByCallerPath_1 = require("../logic/template/getTemplatePathByCallerPath");
|
|
30
|
+
Object.defineProperty(exports, "getTemplatePathByCallerPath", { enumerable: true, get: function () { return getTemplatePathByCallerPath_1.getTemplatePathByCallerPath; } });
|
|
35
31
|
var getTemplateValFromArtifacts_1 = require("../logic/template/getTemplateValFromArtifacts");
|
|
36
32
|
Object.defineProperty(exports, "getTemplateValFromArtifacts", { enumerable: true, get: function () { return getTemplateValFromArtifacts_1.getTemplateValFromArtifacts; } });
|
|
37
33
|
var getTemplateVarsFromInheritance_1 = require("../logic/template/getTemplateVarsFromInheritance");
|
|
38
34
|
Object.defineProperty(exports, "getTemplateVarsFromRoleInherit", { enumerable: true, get: function () { return getTemplateVarsFromInheritance_1.getTemplateVarsFromRoleInherit; } });
|
|
39
35
|
var useTemplate_1 = require("../logic/template/useTemplate");
|
|
40
36
|
Object.defineProperty(exports, "useTemplate", { enumerable: true, get: function () { return useTemplate_1.useTemplate; } });
|
|
41
|
-
var genStepImagineViaTemplate_1 = require("../logic/template/genStepImagineViaTemplate");
|
|
42
|
-
Object.defineProperty(exports, "genStepImagineViaTemplate", { enumerable: true, get: function () { return genStepImagineViaTemplate_1.genStepImagineViaTemplate; } });
|
|
43
37
|
var getStitch_1 = require("../logic/thread/getStitch");
|
|
44
38
|
Object.defineProperty(exports, "getStitch", { enumerable: true, get: function () { return getStitch_1.getStitch; } });
|
|
45
|
-
var
|
|
46
|
-
Object.defineProperty(exports, "
|
|
47
|
-
var
|
|
48
|
-
Object.defineProperty(exports, "
|
|
49
|
-
var
|
|
50
|
-
Object.defineProperty(exports, "
|
|
51
|
-
var
|
|
52
|
-
Object.defineProperty(exports, "
|
|
39
|
+
var asStitcher_1 = require("../logic/weave/compose/asStitcher");
|
|
40
|
+
Object.defineProperty(exports, "asStitcher", { enumerable: true, get: function () { return asStitcher_1.asStitcher; } });
|
|
41
|
+
var asStitcherFlat_1 = require("../logic/weave/compose/asStitcherFlat");
|
|
42
|
+
Object.defineProperty(exports, "asStitcherFlat", { enumerable: true, get: function () { return asStitcherFlat_1.asStitcherFlat; } });
|
|
43
|
+
var genStitchChoice_1 = require("../logic/weave/compose/genStitchChoice");
|
|
44
|
+
Object.defineProperty(exports, "genStitchChoice", { enumerable: true, get: function () { return genStitchChoice_1.genStitchChoice; } });
|
|
45
|
+
var genStitchCycle_1 = require("../logic/weave/compose/genStitchCycle");
|
|
46
|
+
Object.defineProperty(exports, "genStitchCycle", { enumerable: true, get: function () { return genStitchCycle_1.genStitchCycle; } });
|
|
47
|
+
var genStitchFanout_1 = require("../logic/weave/compose/genStitchFanout");
|
|
48
|
+
Object.defineProperty(exports, "genStitchFanout", { enumerable: true, get: function () { return genStitchFanout_1.genStitchFanout; } });
|
|
49
|
+
var genStitchRoute_1 = require("../logic/weave/compose/genStitchRoute");
|
|
50
|
+
Object.defineProperty(exports, "genStitchRoute", { enumerable: true, get: function () { return genStitchRoute_1.genStitchRoute; } });
|
|
51
|
+
var enweaveOneStitcher_1 = require("../logic/weave/enweaveOneStitcher");
|
|
52
|
+
Object.defineProperty(exports, "enweaveOneStitcher", { enumerable: true, get: function () { return enweaveOneStitcher_1.enweaveOneStitcher; } });
|
|
53
53
|
//# sourceMappingURL=sdk.js.map
|
package/dist/contract/sdk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.js","sourceRoot":"","sources":["../../src/contract/sdk.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,oDAAkC;
|
|
1
|
+
{"version":3,"file":"sdk.js","sourceRoot":"","sources":["../../src/contract/sdk.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,gFAA+E;AAAtE,8HAAA,qBAAqB,OAAA;AAC9B,2DAA0D;AAAjD,4GAAA,YAAY,OAAA;AACrB,2DAA0D;AAAjD,4GAAA,YAAY,OAAA;AAErB,yFAAwF;AAA/E,sIAAA,yBAAyB,OAAA;AAClC,6DAA4D;AAAnD,0GAAA,WAAW,OAAA;AACpB,6FAA4F;AAAnF,0IAAA,2BAA2B,OAAA;AACpC,6FAA4F;AAAnF,0IAAA,2BAA2B,OAAA;AACpC,mGAAkG;AAAzF,gJAAA,8BAA8B,OAAA;AACvC,6DAA4D;AAAnD,0GAAA,WAAW,OAAA;AACpB,uDAAsD;AAA7C,sGAAA,SAAS,OAAA;AAClB,gEAA+D;AAAtD,wGAAA,UAAU,OAAA;AACnB,wEAAuE;AAA9D,gHAAA,cAAc,OAAA;AACvB,0EAAyE;AAAhE,kHAAA,eAAe,OAAA;AACxB,wEAAuE;AAA9D,gHAAA,cAAc,OAAA;AACvB,0EAAyE;AAAhE,kHAAA,eAAe,OAAA;AACxB,wEAAuE;AAA9D,gHAAA,cAAc,OAAA;AACvB,wEAAuE;AAA9D,wHAAA,kBAAkB,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/domain/constants.ts"],"names":[],"mappings":";AAAA;;GAEG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DomainEntity } from 'domain-objects';
|
|
2
|
-
import { RoleSkill } from './RoleSkill';
|
|
3
|
-
import { RoleTrait } from './RoleTrait';
|
|
2
|
+
import type { RoleSkill } from './RoleSkill';
|
|
3
|
+
import type { RoleTrait } from './RoleTrait';
|
|
4
4
|
/**
|
|
5
5
|
* .what = defines a role that can have traits, know skills, and be instantiated across thread.context
|
|
6
6
|
* .why =
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ThreadContextRole, ThreadRole } from './Threads';
|
|
1
|
+
import type { ThreadContextRole, ThreadRole } from './Threads';
|
|
2
2
|
/**
|
|
3
3
|
* .what = a resolved RoleTrait, accessible in a thread's context
|
|
4
4
|
* .why = defines the default mindset or behavioral axioms that persist across all tasks performed in the role
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DomainEntity } from 'domain-objects';
|
|
2
|
-
import { RoleSkillContextGetter, RoleSkillThreadsGetter } from './RoleSkillArgGetter';
|
|
3
|
-
import { GStitcher, Stitcher } from './Stitcher';
|
|
2
|
+
import type { RoleSkillContextGetter, RoleSkillThreadsGetter } from './RoleSkillArgGetter';
|
|
3
|
+
import type { GStitcher, Stitcher } from './Stitcher';
|
|
4
4
|
/**
|
|
5
5
|
* .what = a skill is an action a role can perform; a route it can weave
|
|
6
6
|
* .why =
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DomainLiteral } from 'domain-objects';
|
|
2
|
-
import { Empty } from 'type-fns';
|
|
3
|
-
import { GStitcher } from './Stitcher';
|
|
4
|
-
import { Threads } from './Threads';
|
|
2
|
+
import type { Empty } from 'type-fns';
|
|
3
|
+
import type { GStitcher } from './Stitcher';
|
|
4
|
+
import type { Threads } from './Threads';
|
|
5
5
|
type WithOptionPrefix<T extends string> = T | `?${T}`;
|
|
6
6
|
/**
|
|
7
7
|
* .what = a generic specification for how to collect, verify, and instantiate skill arguments
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DomainEntity } from 'domain-objects';
|
|
2
|
-
import { Artifact } from 'rhachet-artifact';
|
|
3
|
-
import { GitFile } from 'rhachet-artifact-git';
|
|
2
|
+
import type { Artifact } from 'rhachet-artifact';
|
|
3
|
+
import type { GitFile } from 'rhachet-artifact-git';
|
|
4
4
|
/**
|
|
5
5
|
* .what = a trait is a reusable behavioral modifier for a role
|
|
6
6
|
* - it's adopted as an inherent truth of any actor which assumes the role
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { UniDateTime } from '@ehmpathy/uni-time';
|
|
1
|
+
import type { UniDateTime } from '@ehmpathy/uni-time';
|
|
2
2
|
import { DomainEntity } from 'domain-objects';
|
|
3
|
-
import { Uuid } from 'uuid-fns';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import type { Uuid } from 'uuid-fns';
|
|
4
|
+
import type { StitcherDesc } from './Stitcher';
|
|
5
|
+
import type { StitchTrail, StitchTrailDesc } from './StitchTrail';
|
|
6
6
|
export interface Stitch<TOutput> {
|
|
7
7
|
/**
|
|
8
8
|
* .what = a unique identifier for the stitch
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stitch.js","sourceRoot":"","sources":["../../../src/domain/objects/Stitch.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"Stitch.js","sourceRoot":"","sources":["../../../src/domain/objects/Stitch.ts"],"names":[],"mappings":";;;AACA,mDAA8C;AA4C9C,MAAa,MACX,SAAQ,6BAA6B;;AADvC,wBAKC;AADe,cAAO,GAAG,CAAC,MAAM,CAAU,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DomainLiteral } from 'domain-objects';
|
|
2
|
-
import { GStitcher, Stitcher, StitcherBase, StitcherForm } from './Stitcher';
|
|
3
|
-
import { Threads } from './Threads';
|
|
2
|
+
import type { GStitcher, Stitcher, StitcherBase, StitcherForm } from './Stitcher';
|
|
3
|
+
import type { Threads } from './Threads';
|
|
4
4
|
/**
|
|
5
5
|
* .what = fork+choose composite stitcher
|
|
6
6
|
* .how =
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StitchChoice.js","sourceRoot":"","sources":["../../../src/domain/objects/StitchChoice.ts"],"names":[],"mappings":";;;AAAA,mDAA+C;
|
|
1
|
+
{"version":3,"file":"StitchChoice.js","sourceRoot":"","sources":["../../../src/domain/objects/StitchChoice.ts"],"names":[],"mappings":";;;AAAA,mDAA+C;AAwC/C,MAAa,YAGX,SAAQ,8BAAsC;CACT;AAJvC,oCAIuC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { UniDuration } from '@ehmpathy/uni-time';
|
|
1
|
+
import type { UniDuration } from '@ehmpathy/uni-time';
|
|
2
2
|
import { DomainLiteral } from 'domain-objects';
|
|
3
|
-
import { PickAny } from 'type-fns';
|
|
4
|
-
import { GStitcher, Stitcher, StitcherBase, StitcherForm } from './Stitcher';
|
|
5
|
-
import { Threads } from './Threads';
|
|
3
|
+
import type { PickAny } from 'type-fns';
|
|
4
|
+
import type { GStitcher, Stitcher, StitcherBase, StitcherForm } from './Stitcher';
|
|
5
|
+
import type { Threads } from './Threads';
|
|
6
6
|
/**
|
|
7
7
|
* .what = repeater composite stitcher
|
|
8
8
|
* .how =
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StitchCycle.js","sourceRoot":"","sources":["../../../src/domain/objects/StitchCycle.ts"],"names":[],"mappings":";;;AACA,mDAA+C;
|
|
1
|
+
{"version":3,"file":"StitchCycle.js","sourceRoot":"","sources":["../../../src/domain/objects/StitchCycle.ts"],"names":[],"mappings":";;;AACA,mDAA+C;AA4D/C,MAAa,WAGX,SAAQ,8BAAqC;CACT;AAJtC,kCAIsC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DomainLiteral } from 'domain-objects';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { Thread } from './Thread';
|
|
5
|
-
import { Threads } from './Threads';
|
|
2
|
+
import type { GStitcher, Stitcher, StitcherBase, StitcherForm } from './Stitcher';
|
|
3
|
+
import type { StitchStep } from './StitchStep';
|
|
4
|
+
import type { Thread } from './Thread';
|
|
5
|
+
import type { Threads } from './Threads';
|
|
6
6
|
/**
|
|
7
7
|
* .what = parallel composite stitcher
|
|
8
8
|
* .how =
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StitchFanout.js","sourceRoot":"","sources":["../../../src/domain/objects/StitchFanout.ts"],"names":[],"mappings":";;;AAAA,mDAA+C;
|
|
1
|
+
{"version":3,"file":"StitchFanout.js","sourceRoot":"","sources":["../../../src/domain/objects/StitchFanout.ts"],"names":[],"mappings":";;;AAAA,mDAA+C;AA0C/C,MAAa,YAGX,SAAQ,8BAAsC;CACT;AAJvC,oCAIuC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DomainLiteral } from 'domain-objects';
|
|
2
|
-
import { GStitcher, Stitcher, StitcherBase, StitcherForm } from './Stitcher';
|
|
2
|
+
import type { GStitcher, Stitcher, StitcherBase, StitcherForm } from './Stitcher';
|
|
3
3
|
/**
|
|
4
4
|
* .what = a route of stitchers to enstich in sequence; a composed tactic
|
|
5
5
|
* .note = a StitchRoute is really just a composite Stitcher
|
|
@@ -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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* .what = discovers rhachet role packages from package.json
|
|
3
|
+
* .why = enables auto-initialization of rhachet.use.ts config
|
|
4
|
+
* .how = scans dependencies + devDependencies for packages matching `rhachet-roles-*`
|
|
5
|
+
*/
|
|
6
|
+
export declare const discoverRolePackages: (input: {
|
|
7
|
+
from: string;
|
|
8
|
+
}) => Promise<string[]>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.discoverRolePackages = void 0;
|
|
4
|
+
const node_fs_1 = require("node:fs");
|
|
5
|
+
const node_path_1 = require("node:path");
|
|
6
|
+
const rhachet_artifact_git_1 = require("rhachet-artifact-git");
|
|
7
|
+
/**
|
|
8
|
+
* .what = discovers rhachet role packages from package.json
|
|
9
|
+
* .why = enables auto-initialization of rhachet.use.ts config
|
|
10
|
+
* .how = scans dependencies + devDependencies for packages matching `rhachet-roles-*`
|
|
11
|
+
*/
|
|
12
|
+
const discoverRolePackages = async (input) => {
|
|
13
|
+
const root = await (0, rhachet_artifact_git_1.getGitRepoRoot)({ from: input.from });
|
|
14
|
+
const pkgPath = (0, node_path_1.resolve)(root, 'package.json');
|
|
15
|
+
const pkg = JSON.parse((0, node_fs_1.readFileSync)(pkgPath, 'utf8'));
|
|
16
|
+
const allDeps = { ...pkg.dependencies, ...pkg.devDependencies };
|
|
17
|
+
return Object.keys(allDeps).filter((name) => name.startsWith('rhachet-roles-'));
|
|
18
|
+
};
|
|
19
|
+
exports.discoverRolePackages = discoverRolePackages;
|
|
20
|
+
//# sourceMappingURL=discoverRolePackages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discoverRolePackages.js","sourceRoot":"","sources":["../../../src/logic/init/discoverRolePackages.ts"],"names":[],"mappings":";;;AAAA,qCAAuC;AACvC,yCAAoC;AACpC,+DAAsD;AAEtD;;;;GAIG;AACI,MAAM,oBAAoB,GAAG,KAAK,EAAE,KAE1C,EAAqB,EAAE;IACtB,MAAM,IAAI,GAAG,MAAM,IAAA,qCAAc,EAAC,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;IACxD,MAAM,OAAO,GAAG,IAAA,mBAAO,EAAC,IAAI,EAAE,cAAc,CAAC,CAAC;IAC9C,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAA,sBAAY,EAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;IACtD,MAAM,OAAO,GAAG,EAAE,GAAG,GAAG,CAAC,YAAY,EAAE,GAAG,GAAG,CAAC,eAAe,EAAE,CAAC;IAChE,OAAO,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAC1C,IAAI,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAClC,CAAC;AACJ,CAAC,CAAC;AAVW,QAAA,oBAAoB,wBAU/B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* .what = generates rhachet.use.ts config file content
|
|
3
|
+
* .why = enables auto-initialization from discovered role packages
|
|
4
|
+
* .how = creates aliased imports and exports for registries and hooks
|
|
5
|
+
*/
|
|
6
|
+
export declare const generateRhachetConfig: (input: {
|
|
7
|
+
packages: string[];
|
|
8
|
+
}) => string;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generateRhachetConfig = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* .what = converts a package name suffix to PascalCase
|
|
6
|
+
* .why = generates valid TypeScript identifier suffixes for aliased imports
|
|
7
|
+
*/
|
|
8
|
+
const toPascalCase = (str) => str
|
|
9
|
+
.split('-')
|
|
10
|
+
.map((part) => part.charAt(0).toUpperCase() + part.slice(1))
|
|
11
|
+
.join('');
|
|
12
|
+
/**
|
|
13
|
+
* .what = generates rhachet.use.ts config file content
|
|
14
|
+
* .why = enables auto-initialization from discovered role packages
|
|
15
|
+
* .how = creates aliased imports and exports for registries and hooks
|
|
16
|
+
*/
|
|
17
|
+
const generateRhachetConfig = (input) => {
|
|
18
|
+
// Always use aliased imports for consistency
|
|
19
|
+
const imports = input.packages
|
|
20
|
+
.map((pkg) => {
|
|
21
|
+
const suffix = toPascalCase(pkg.replace('rhachet-roles-', ''));
|
|
22
|
+
return `import { getRoleRegistry as getRoleRegistry${suffix}, getInvokeHooks as getInvokeHooks${suffix} } from '${pkg}';`;
|
|
23
|
+
})
|
|
24
|
+
.join('\n');
|
|
25
|
+
const registries = input.packages
|
|
26
|
+
.map((pkg) => `getRoleRegistry${toPascalCase(pkg.replace('rhachet-roles-', ''))}()`)
|
|
27
|
+
.join(', ');
|
|
28
|
+
const hooks = input.packages
|
|
29
|
+
.map((pkg) => `getInvokeHooks${toPascalCase(pkg.replace('rhachet-roles-', ''))}()`)
|
|
30
|
+
.join(', ');
|
|
31
|
+
return `import { InvokeHooks, RoleRegistry } from 'rhachet';
|
|
32
|
+
|
|
33
|
+
${imports}
|
|
34
|
+
|
|
35
|
+
export const getRoleRegistries = (): RoleRegistry[] => [${registries}];
|
|
36
|
+
export const getInvokeHooks = (): InvokeHooks[] => [${hooks}];
|
|
37
|
+
`;
|
|
38
|
+
};
|
|
39
|
+
exports.generateRhachetConfig = generateRhachetConfig;
|
|
40
|
+
//# sourceMappingURL=generateRhachetConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generateRhachetConfig.js","sourceRoot":"","sources":["../../../src/logic/init/generateRhachetConfig.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,MAAM,YAAY,GAAG,CAAC,GAAW,EAAU,EAAE,CAC3C,GAAG;KACA,KAAK,CAAC,GAAG,CAAC;KACV,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KAC3D,IAAI,CAAC,EAAE,CAAC,CAAC;AAEd;;;;GAIG;AACI,MAAM,qBAAqB,GAAG,CAAC,KAErC,EAAU,EAAE;IACX,6CAA6C;IAC7C,MAAM,OAAO,GAAG,KAAK,CAAC,QAAQ;SAC3B,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;QACX,MAAM,MAAM,GAAG,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC,CAAC;QAC/D,OAAO,8CAA8C,MAAM,qCAAqC,MAAM,YAAY,GAAG,IAAI,CAAC;IAC5H,CAAC,CAAC;SACD,IAAI,CAAC,IAAI,CAAC,CAAC;IAEd,MAAM,UAAU,GAAG,KAAK,CAAC,QAAQ;SAC9B,GAAG,CACF,CAAC,GAAG,EAAE,EAAE,CACN,kBAAkB,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC,IAAI,CACxE;SACA,IAAI,CAAC,IAAI,CAAC,CAAC;IAEd,MAAM,KAAK,GAAG,KAAK,CAAC,QAAQ;SACzB,GAAG,CACF,CAAC,GAAG,EAAE,EAAE,CACN,iBAAiB,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC,IAAI,CACvE;SACA,IAAI,CAAC,IAAI,CAAC,CAAC;IAEd,OAAO;;EAEP,OAAO;;0DAEiD,UAAU;sDACd,KAAK;CAC1D,CAAC;AACF,CAAC,CAAC;AAhCW,QAAA,qBAAqB,yBAgChC"}
|
|
@@ -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,10 +1,11 @@
|
|
|
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 =
|
|
6
6
|
* - lookup the config based on the options
|
|
7
|
-
* - grab the hooks from the config
|
|
7
|
+
* - grab the hooks from the config (supports array of InvokeHooks)
|
|
8
|
+
* - merge hooks from all sources
|
|
8
9
|
*/
|
|
9
10
|
export declare const getInvokeHooksByOpts: (input: {
|
|
10
11
|
opts: InvokeOpts<{
|
|
@@ -28,13 +28,21 @@ exports.getInvokeHooksByOpts = void 0;
|
|
|
28
28
|
* .what = get invoke hooks from the invocation options declared
|
|
29
29
|
* .how =
|
|
30
30
|
* - lookup the config based on the options
|
|
31
|
-
* - grab the hooks from the config
|
|
31
|
+
* - grab the hooks from the config (supports array of InvokeHooks)
|
|
32
|
+
* - merge hooks from all sources
|
|
32
33
|
*/
|
|
33
34
|
const getInvokeHooksByOpts = async (input) => {
|
|
34
35
|
// import the config
|
|
35
36
|
const config = await Promise.resolve(`${input.opts.config}`).then(s => __importStar(require(s)));
|
|
36
|
-
// grab the
|
|
37
|
-
|
|
37
|
+
// grab the hooks (may be single or array)
|
|
38
|
+
const hooksResult = await config.getInvokeHooks?.();
|
|
39
|
+
if (!hooksResult)
|
|
40
|
+
return null;
|
|
41
|
+
// normalize to array and merge
|
|
42
|
+
const hooksList = Array.isArray(hooksResult) ? hooksResult : [hooksResult];
|
|
43
|
+
return {
|
|
44
|
+
onInvokeAskInput: hooksList.flatMap((h) => h?.onInvokeAskInput ?? []),
|
|
45
|
+
};
|
|
38
46
|
};
|
|
39
47
|
exports.getInvokeHooksByOpts = getInvokeHooksByOpts;
|
|
40
48
|
//# sourceMappingURL=getInvokeHooksByOpts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getInvokeHooksByOpts.js","sourceRoot":"","sources":["../../../src/logic/invoke/getInvokeHooksByOpts.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAGA
|
|
1
|
+
{"version":3,"file":"getInvokeHooksByOpts.js","sourceRoot":"","sources":["../../../src/logic/invoke/getInvokeHooksByOpts.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAGA;;;;;;GAMG;AACI,MAAM,oBAAoB,GAAG,KAAK,EAAE,KAE1C,EAA+B,EAAE;IAChC,oBAAoB;IACpB,MAAM,MAAM,GAKR,yBAAa,KAAK,CAAC,IAAI,CAAC,MAAM,uCAAC,CAAC;IAEpC,0CAA0C;IAC1C,MAAM,WAAW,GAAG,MAAM,MAAM,CAAC,cAAc,EAAE,EAAE,CAAC;IACpD,IAAI,CAAC,WAAW;QAAE,OAAO,IAAI,CAAC;IAE9B,+BAA+B;IAC/B,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;IAC3E,OAAO;QACL,gBAAgB,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,gBAAgB,IAAI,EAAE,CAAC;KACtE,CAAC;AACJ,CAAC,CAAC;AApBW,QAAA,oBAAoB,wBAoB/B"}
|
|
@@ -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;
|