@langadventurellc/task-trellis-mcp 0.1.0-rc.3 → 1.0.0-rc.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/README.md +60 -6
- package/dist/__tests__/e2e/configuration/activation.e2e.test.d.ts +2 -0
- package/dist/__tests__/e2e/configuration/activation.e2e.test.d.ts.map +1 -0
- package/dist/__tests__/e2e/configuration/activation.e2e.test.js +130 -0
- package/dist/__tests__/e2e/configuration/activation.e2e.test.js.map +1 -0
- package/dist/__tests__/e2e/configuration/commandLineArgs.e2e.test.d.ts +2 -0
- package/dist/__tests__/e2e/configuration/commandLineArgs.e2e.test.d.ts.map +1 -0
- package/dist/__tests__/e2e/configuration/commandLineArgs.e2e.test.js +125 -0
- package/dist/__tests__/e2e/configuration/commandLineArgs.e2e.test.js.map +1 -0
- package/dist/__tests__/e2e/configuration/directorySetup.e2e.test.d.ts +2 -0
- package/dist/__tests__/e2e/configuration/directorySetup.e2e.test.d.ts.map +1 -0
- package/dist/__tests__/e2e/configuration/directorySetup.e2e.test.js +262 -0
- package/dist/__tests__/e2e/configuration/directorySetup.e2e.test.js.map +1 -0
- package/dist/__tests__/e2e/configuration/invalidConfig.e2e.test.d.ts +2 -0
- package/dist/__tests__/e2e/configuration/invalidConfig.e2e.test.d.ts.map +1 -0
- package/dist/__tests__/e2e/configuration/invalidConfig.e2e.test.js +243 -0
- package/dist/__tests__/e2e/configuration/invalidConfig.e2e.test.js.map +1 -0
- package/dist/__tests__/e2e/configuration/preActivation.e2e.test.d.ts +2 -0
- package/dist/__tests__/e2e/configuration/preActivation.e2e.test.d.ts.map +1 -0
- package/dist/__tests__/e2e/configuration/preActivation.e2e.test.js +123 -0
- package/dist/__tests__/e2e/configuration/preActivation.e2e.test.js.map +1 -0
- package/dist/__tests__/e2e/crud/createObject.e2e.test.d.ts +2 -0
- package/dist/__tests__/e2e/crud/createObject.e2e.test.d.ts.map +1 -0
- package/dist/__tests__/e2e/crud/createObject.e2e.test.js +376 -0
- package/dist/__tests__/e2e/crud/createObject.e2e.test.js.map +1 -0
- package/dist/__tests__/e2e/crud/deleteObject.e2e.test.d.ts +2 -0
- package/dist/__tests__/e2e/crud/deleteObject.e2e.test.d.ts.map +1 -0
- package/dist/__tests__/e2e/crud/deleteObject.e2e.test.js +391 -0
- package/dist/__tests__/e2e/crud/deleteObject.e2e.test.js.map +1 -0
- package/dist/__tests__/e2e/crud/fileValidation.e2e.test.d.ts +2 -0
- package/dist/__tests__/e2e/crud/fileValidation.e2e.test.d.ts.map +1 -0
- package/dist/__tests__/e2e/crud/fileValidation.e2e.test.js +409 -0
- package/dist/__tests__/e2e/crud/fileValidation.e2e.test.js.map +1 -0
- package/dist/__tests__/e2e/crud/getObject.e2e.test.d.ts +2 -0
- package/dist/__tests__/e2e/crud/getObject.e2e.test.d.ts.map +1 -0
- package/dist/__tests__/e2e/crud/getObject.e2e.test.js +447 -0
- package/dist/__tests__/e2e/crud/getObject.e2e.test.js.map +1 -0
- package/dist/__tests__/e2e/crud/listObjects.e2e.test.d.ts +2 -0
- package/dist/__tests__/e2e/crud/listObjects.e2e.test.d.ts.map +1 -0
- package/dist/__tests__/e2e/crud/listObjects.e2e.test.js +593 -0
- package/dist/__tests__/e2e/crud/listObjects.e2e.test.js.map +1 -0
- package/dist/__tests__/e2e/crud/replaceObjectBodyRegex.e2e.test.d.ts +2 -0
- package/dist/__tests__/e2e/crud/replaceObjectBodyRegex.e2e.test.d.ts.map +1 -0
- package/dist/__tests__/e2e/crud/replaceObjectBodyRegex.e2e.test.js +693 -0
- package/dist/__tests__/e2e/crud/replaceObjectBodyRegex.e2e.test.js.map +1 -0
- package/dist/__tests__/e2e/crud/updateObject.e2e.test.d.ts +2 -0
- package/dist/__tests__/e2e/crud/updateObject.e2e.test.d.ts.map +1 -0
- package/dist/__tests__/e2e/crud/updateObject.e2e.test.js +662 -0
- package/dist/__tests__/e2e/crud/updateObject.e2e.test.js.map +1 -0
- package/dist/__tests__/e2e/infrastructure/client.e2e.test.d.ts +2 -0
- package/dist/__tests__/e2e/infrastructure/client.e2e.test.d.ts.map +1 -0
- package/dist/__tests__/e2e/infrastructure/client.e2e.test.js +68 -0
- package/dist/__tests__/e2e/infrastructure/client.e2e.test.js.map +1 -0
- package/dist/__tests__/e2e/infrastructure/server.e2e.test.d.ts +2 -0
- package/dist/__tests__/e2e/infrastructure/server.e2e.test.d.ts.map +1 -0
- package/dist/__tests__/e2e/infrastructure/server.e2e.test.js +37 -0
- package/dist/__tests__/e2e/infrastructure/server.e2e.test.js.map +1 -0
- package/dist/__tests__/e2e/utils/HierarchyOptions.d.ts +7 -0
- package/dist/__tests__/e2e/utils/HierarchyOptions.d.ts.map +1 -0
- package/dist/__tests__/e2e/utils/HierarchyOptions.js +3 -0
- package/dist/__tests__/e2e/utils/HierarchyOptions.js.map +1 -0
- package/dist/__tests__/e2e/utils/ObjectData.d.ts +17 -0
- package/dist/__tests__/e2e/utils/ObjectData.d.ts.map +1 -0
- package/dist/__tests__/e2e/utils/ObjectData.js +3 -0
- package/dist/__tests__/e2e/utils/ObjectData.js.map +1 -0
- package/dist/__tests__/e2e/utils/cleanup.d.ts +10 -0
- package/dist/__tests__/e2e/utils/cleanup.d.ts.map +1 -0
- package/dist/__tests__/e2e/utils/cleanup.js +99 -0
- package/dist/__tests__/e2e/utils/cleanup.js.map +1 -0
- package/dist/__tests__/e2e/utils/createObjectContent.d.ts +6 -0
- package/dist/__tests__/e2e/utils/createObjectContent.d.ts.map +1 -0
- package/dist/__tests__/e2e/utils/createObjectContent.js +34 -0
- package/dist/__tests__/e2e/utils/createObjectContent.js.map +1 -0
- package/dist/__tests__/e2e/utils/createObjectFile.d.ts +6 -0
- package/dist/__tests__/e2e/utils/createObjectFile.d.ts.map +1 -0
- package/dist/__tests__/e2e/utils/createObjectFile.js +88 -0
- package/dist/__tests__/e2e/utils/createObjectFile.js.map +1 -0
- package/dist/__tests__/e2e/utils/fileExists.d.ts +5 -0
- package/dist/__tests__/e2e/utils/fileExists.d.ts.map +1 -0
- package/dist/__tests__/e2e/utils/fileExists.js +52 -0
- package/dist/__tests__/e2e/utils/fileExists.js.map +1 -0
- package/dist/__tests__/e2e/utils/folderExists.d.ts +5 -0
- package/dist/__tests__/e2e/utils/folderExists.d.ts.map +1 -0
- package/dist/__tests__/e2e/utils/folderExists.js +52 -0
- package/dist/__tests__/e2e/utils/folderExists.js.map +1 -0
- package/dist/__tests__/e2e/utils/index.d.ts +15 -0
- package/dist/__tests__/e2e/utils/index.d.ts.map +1 -0
- package/dist/__tests__/e2e/utils/index.js +32 -0
- package/dist/__tests__/e2e/utils/index.js.map +1 -0
- package/dist/__tests__/e2e/utils/mcpTestClient.d.ts +13 -0
- package/dist/__tests__/e2e/utils/mcpTestClient.d.ts.map +1 -0
- package/dist/__tests__/e2e/utils/mcpTestClient.js +79 -0
- package/dist/__tests__/e2e/utils/mcpTestClient.js.map +1 -0
- package/dist/__tests__/e2e/utils/parseGetObjectResponse.d.ts +5 -0
- package/dist/__tests__/e2e/utils/parseGetObjectResponse.d.ts.map +1 -0
- package/dist/__tests__/e2e/utils/parseGetObjectResponse.js +15 -0
- package/dist/__tests__/e2e/utils/parseGetObjectResponse.js.map +1 -0
- package/dist/__tests__/e2e/utils/parseListObjectsResponse.d.ts +5 -0
- package/dist/__tests__/e2e/utils/parseListObjectsResponse.d.ts.map +1 -0
- package/dist/__tests__/e2e/utils/parseListObjectsResponse.js +15 -0
- package/dist/__tests__/e2e/utils/parseListObjectsResponse.js.map +1 -0
- package/dist/__tests__/e2e/utils/parseReplaceObjectBodyRegexResponse.d.ts +10 -0
- package/dist/__tests__/e2e/utils/parseReplaceObjectBodyRegexResponse.d.ts.map +1 -0
- package/dist/__tests__/e2e/utils/parseReplaceObjectBodyRegexResponse.js +40 -0
- package/dist/__tests__/e2e/utils/parseReplaceObjectBodyRegexResponse.js.map +1 -0
- package/dist/__tests__/e2e/utils/parseUpdateObjectResponse.d.ts +5 -0
- package/dist/__tests__/e2e/utils/parseUpdateObjectResponse.d.ts.map +1 -0
- package/dist/__tests__/e2e/utils/parseUpdateObjectResponse.js +15 -0
- package/dist/__tests__/e2e/utils/parseUpdateObjectResponse.js.map +1 -0
- package/dist/__tests__/e2e/utils/pathExists.d.ts +5 -0
- package/dist/__tests__/e2e/utils/pathExists.d.ts.map +1 -0
- package/dist/__tests__/e2e/utils/pathExists.js +50 -0
- package/dist/__tests__/e2e/utils/pathExists.js.map +1 -0
- package/dist/__tests__/e2e/utils/readObjectFile.d.ts +10 -0
- package/dist/__tests__/e2e/utils/readObjectFile.d.ts.map +1 -0
- package/dist/__tests__/e2e/utils/readObjectFile.js +54 -0
- package/dist/__tests__/e2e/utils/readObjectFile.js.map +1 -0
- package/dist/__tests__/e2e/utils/serverProcess.d.ts +11 -0
- package/dist/__tests__/e2e/utils/serverProcess.d.ts.map +1 -0
- package/dist/__tests__/e2e/utils/serverProcess.js +119 -0
- package/dist/__tests__/e2e/utils/serverProcess.js.map +1 -0
- package/dist/__tests__/e2e/utils/testEnvironment.d.ts +9 -0
- package/dist/__tests__/e2e/utils/testEnvironment.d.ts.map +1 -0
- package/dist/__tests__/e2e/utils/testEnvironment.js +74 -0
- package/dist/__tests__/e2e/utils/testEnvironment.js.map +1 -0
- package/dist/__tests__/e2e/workflow/appendLog.e2e.test.d.ts +2 -0
- package/dist/__tests__/e2e/workflow/appendLog.e2e.test.d.ts.map +1 -0
- package/dist/__tests__/e2e/workflow/appendLog.e2e.test.js +175 -0
- package/dist/__tests__/e2e/workflow/appendLog.e2e.test.js.map +1 -0
- package/dist/__tests__/e2e/workflow/claimTask.e2e.test.d.ts +2 -0
- package/dist/__tests__/e2e/workflow/claimTask.e2e.test.d.ts.map +1 -0
- package/dist/__tests__/e2e/workflow/claimTask.e2e.test.js +154 -0
- package/dist/__tests__/e2e/workflow/claimTask.e2e.test.js.map +1 -0
- package/dist/__tests__/e2e/workflow/completeTask.e2e.test.d.ts +2 -0
- package/dist/__tests__/e2e/workflow/completeTask.e2e.test.d.ts.map +1 -0
- package/dist/__tests__/e2e/workflow/completeTask.e2e.test.js +129 -0
- package/dist/__tests__/e2e/workflow/completeTask.e2e.test.js.map +1 -0
- package/dist/__tests__/e2e/workflow/prerequisites.e2e.test.d.ts +2 -0
- package/dist/__tests__/e2e/workflow/prerequisites.e2e.test.d.ts.map +1 -0
- package/dist/__tests__/e2e/workflow/prerequisites.e2e.test.js +547 -0
- package/dist/__tests__/e2e/workflow/prerequisites.e2e.test.js.map +1 -0
- package/dist/__tests__/e2e/workflow/pruneClosed.e2e.test.d.ts +2 -0
- package/dist/__tests__/e2e/workflow/pruneClosed.e2e.test.d.ts.map +1 -0
- package/dist/__tests__/e2e/workflow/pruneClosed.e2e.test.js +352 -0
- package/dist/__tests__/e2e/workflow/pruneClosed.e2e.test.js.map +1 -0
- package/dist/__tests__/e2e/workflow/taskLifecycle.e2e.test.d.ts +2 -0
- package/dist/__tests__/e2e/workflow/taskLifecycle.e2e.test.d.ts.map +1 -0
- package/dist/__tests__/e2e/workflow/taskLifecycle.e2e.test.js +385 -0
- package/dist/__tests__/e2e/workflow/taskLifecycle.e2e.test.js.map +1 -0
- package/dist/models/TrellisObject.d.ts +2 -0
- package/dist/models/TrellisObject.d.ts.map +1 -1
- package/dist/models/__tests__/isClaimable.test.js +8 -0
- package/dist/models/__tests__/isClaimable.test.js.map +1 -1
- package/dist/models/__tests__/isClosed.test.js +6 -0
- package/dist/models/__tests__/isClosed.test.js.map +1 -1
- package/dist/models/__tests__/isOpen.test.js +6 -0
- package/dist/models/__tests__/isOpen.test.js.map +1 -1
- package/dist/repositories/local/__tests__/getChildrenByFilePath.test.d.ts +2 -0
- package/dist/repositories/local/__tests__/getChildrenByFilePath.test.d.ts.map +1 -0
- package/dist/repositories/local/__tests__/getChildrenByFilePath.test.js +118 -0
- package/dist/repositories/local/__tests__/getChildrenByFilePath.test.js.map +1 -0
- package/dist/repositories/local/__tests__/getObjectByFilePath.test.js +13 -1
- package/dist/repositories/local/__tests__/getObjectByFilePath.test.js.map +1 -1
- package/dist/repositories/local/__tests__/getObjectById.test.js +2 -0
- package/dist/repositories/local/__tests__/getObjectById.test.js.map +1 -1
- package/dist/repositories/local/__tests__/getObjectFilePath.test.js +2 -0
- package/dist/repositories/local/__tests__/getObjectFilePath.test.js.map +1 -1
- package/dist/repositories/local/deleteObjectById.js +2 -2
- package/dist/repositories/local/deleteObjectById.js.map +1 -1
- package/dist/repositories/local/findMarkdownFiles.d.ts.map +1 -1
- package/dist/repositories/local/findMarkdownFiles.js +6 -1
- package/dist/repositories/local/findMarkdownFiles.js.map +1 -1
- package/dist/repositories/local/getChildrenByFilePath.d.ts +14 -0
- package/dist/repositories/local/getChildrenByFilePath.d.ts.map +1 -0
- package/dist/repositories/local/getChildrenByFilePath.js +93 -0
- package/dist/repositories/local/getChildrenByFilePath.js.map +1 -0
- package/dist/repositories/local/getObjectByFilePath.d.ts.map +1 -1
- package/dist/repositories/local/getObjectByFilePath.js +5 -1
- package/dist/repositories/local/getObjectByFilePath.js.map +1 -1
- package/dist/repositories/local/getObjectById.d.ts.map +1 -1
- package/dist/repositories/local/getObjectById.js +4 -1
- package/dist/repositories/local/getObjectById.js.map +1 -1
- package/dist/repositories/local/getObjects.js +1 -1
- package/dist/repositories/local/getObjects.js.map +1 -1
- package/dist/repositories/local/saveObject.d.ts +1 -0
- package/dist/repositories/local/saveObject.d.ts.map +1 -1
- package/dist/repositories/local/saveObject.js +46 -0
- package/dist/repositories/local/saveObject.js.map +1 -1
- package/dist/server.js +52 -17
- package/dist/server.js.map +1 -1
- package/dist/tools/__tests__/appendObjectLogTool.test.js +2 -0
- package/dist/tools/__tests__/appendObjectLogTool.test.js.map +1 -1
- package/dist/tools/__tests__/claimTaskTool.test.js +4 -0
- package/dist/tools/__tests__/claimTaskTool.test.js.map +1 -1
- package/dist/tools/__tests__/completeTaskTool.test.js +2 -0
- package/dist/tools/__tests__/completeTaskTool.test.js.map +1 -1
- package/dist/tools/__tests__/createObjectTool.test.js +18 -0
- package/dist/tools/__tests__/createObjectTool.test.js.map +1 -1
- package/dist/tools/__tests__/getObjectTool.test.js +4 -0
- package/dist/tools/__tests__/getObjectTool.test.js.map +1 -1
- package/dist/tools/__tests__/listObjectsTool.test.js +4 -0
- package/dist/tools/__tests__/listObjectsTool.test.js.map +1 -1
- package/dist/tools/__tests__/pruneClosedTool.test.d.ts +2 -0
- package/dist/tools/__tests__/pruneClosedTool.test.d.ts.map +1 -0
- package/dist/tools/__tests__/pruneClosedTool.test.js +171 -0
- package/dist/tools/__tests__/pruneClosedTool.test.js.map +1 -0
- package/dist/tools/__tests__/replaceObjectBodyRegexTool.test.d.ts +2 -0
- package/dist/tools/__tests__/replaceObjectBodyRegexTool.test.d.ts.map +1 -0
- package/dist/tools/__tests__/replaceObjectBodyRegexTool.test.js +258 -0
- package/dist/tools/__tests__/replaceObjectBodyRegexTool.test.js.map +1 -0
- package/dist/tools/__tests__/updateObjectTool.test.js +2 -0
- package/dist/tools/__tests__/updateObjectTool.test.js.map +1 -1
- package/dist/tools/activateTool.d.ts +1 -1
- package/dist/tools/activateTool.d.ts.map +1 -1
- package/dist/tools/activateTool.js +35 -1
- package/dist/tools/activateTool.js.map +1 -1
- package/dist/tools/appendObjectLogTool.d.ts +1 -1
- package/dist/tools/appendObjectLogTool.d.ts.map +1 -1
- package/dist/tools/appendObjectLogTool.js +27 -1
- package/dist/tools/appendObjectLogTool.js.map +1 -1
- package/dist/tools/claimTaskTool.d.ts +1 -1
- package/dist/tools/claimTaskTool.d.ts.map +1 -1
- package/dist/tools/claimTaskTool.js +34 -5
- package/dist/tools/claimTaskTool.js.map +1 -1
- package/dist/tools/completeTaskTool.d.ts +1 -1
- package/dist/tools/completeTaskTool.d.ts.map +1 -1
- package/dist/tools/completeTaskTool.js +30 -1
- package/dist/tools/completeTaskTool.js.map +1 -1
- package/dist/tools/createObjectTool.d.ts +1 -1
- package/dist/tools/createObjectTool.d.ts.map +1 -1
- package/dist/tools/createObjectTool.js +43 -2
- package/dist/tools/createObjectTool.js.map +1 -1
- package/dist/tools/deleteObjectTool.d.ts +1 -1
- package/dist/tools/deleteObjectTool.d.ts.map +1 -1
- package/dist/tools/deleteObjectTool.js +23 -1
- package/dist/tools/deleteObjectTool.js.map +1 -1
- package/dist/tools/getObjectTool.d.ts +1 -1
- package/dist/tools/getObjectTool.d.ts.map +1 -1
- package/dist/tools/getObjectTool.js +21 -1
- package/dist/tools/getObjectTool.js.map +1 -1
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +4 -1
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/listObjectsTool.d.ts +1 -1
- package/dist/tools/listObjectsTool.d.ts.map +1 -1
- package/dist/tools/listObjectsTool.js +37 -1
- package/dist/tools/listObjectsTool.js.map +1 -1
- package/dist/tools/pruneClosedTool.d.ts +3 -3
- package/dist/tools/pruneClosedTool.d.ts.map +1 -1
- package/dist/tools/pruneClosedTool.js +82 -11
- package/dist/tools/pruneClosedTool.js.map +1 -1
- package/dist/tools/replaceObjectBodyRegexTool.d.ts +35 -0
- package/dist/tools/replaceObjectBodyRegexTool.d.ts.map +1 -0
- package/dist/tools/replaceObjectBodyRegexTool.js +145 -0
- package/dist/tools/replaceObjectBodyRegexTool.js.map +1 -0
- package/dist/tools/updateObjectTool.d.ts +1 -1
- package/dist/tools/updateObjectTool.d.ts.map +1 -1
- package/dist/tools/updateObjectTool.js +35 -1
- package/dist/tools/updateObjectTool.js.map +1 -1
- package/dist/utils/MultipleMatchesError.d.ts +7 -0
- package/dist/utils/MultipleMatchesError.d.ts.map +1 -0
- package/dist/utils/MultipleMatchesError.js +15 -0
- package/dist/utils/MultipleMatchesError.js.map +1 -0
- package/dist/utils/ReplaceStringOptions.d.ts +12 -0
- package/dist/utils/ReplaceStringOptions.d.ts.map +1 -0
- package/dist/utils/ReplaceStringOptions.js +3 -0
- package/dist/utils/ReplaceStringOptions.js.map +1 -0
- package/dist/utils/__tests__/checkPrerequisitesComplete.test.js +2 -0
- package/dist/utils/__tests__/checkPrerequisitesComplete.test.js.map +1 -1
- package/dist/utils/__tests__/deserializeTrellisObject.test.js +48 -0
- package/dist/utils/__tests__/deserializeTrellisObject.test.js.map +1 -1
- package/dist/utils/__tests__/filterUnavailableObjects.test.js +11 -10
- package/dist/utils/__tests__/filterUnavailableObjects.test.js.map +1 -1
- package/dist/utils/__tests__/isRequiredForOtherObjects.test.js +2 -0
- package/dist/utils/__tests__/isRequiredForOtherObjects.test.js.map +1 -1
- package/dist/utils/__tests__/replaceStringWithRegex.test.d.ts +2 -0
- package/dist/utils/__tests__/replaceStringWithRegex.test.d.ts.map +1 -0
- package/dist/utils/__tests__/replaceStringWithRegex.test.js +263 -0
- package/dist/utils/__tests__/replaceStringWithRegex.test.js.map +1 -0
- package/dist/utils/__tests__/serializationRoundTrip.test.js +24 -0
- package/dist/utils/__tests__/serializationRoundTrip.test.js.map +1 -1
- package/dist/utils/__tests__/serializeTrellisObject.test.js +40 -0
- package/dist/utils/__tests__/serializeTrellisObject.test.js.map +1 -1
- package/dist/utils/__tests__/sortTrellisObjects.test.js +2 -0
- package/dist/utils/__tests__/sortTrellisObjects.test.js.map +1 -1
- package/dist/utils/checkPrerequisitesComplete.d.ts.map +1 -1
- package/dist/utils/checkPrerequisitesComplete.js +3 -4
- package/dist/utils/checkPrerequisitesComplete.js.map +1 -1
- package/dist/utils/deserializeTrellisObject.d.ts.map +1 -1
- package/dist/utils/deserializeTrellisObject.js +5 -0
- package/dist/utils/deserializeTrellisObject.js.map +1 -1
- package/dist/utils/filterUnavailableObjects.d.ts.map +1 -1
- package/dist/utils/filterUnavailableObjects.js +5 -6
- package/dist/utils/filterUnavailableObjects.js.map +1 -1
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +5 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/isRequiredForOtherObjects.d.ts.map +1 -1
- package/dist/utils/isRequiredForOtherObjects.js +2 -4
- package/dist/utils/isRequiredForOtherObjects.js.map +1 -1
- package/dist/utils/replaceStringWithRegex.d.ts +45 -0
- package/dist/utils/replaceStringWithRegex.d.ts.map +1 -0
- package/dist/utils/replaceStringWithRegex.js +82 -0
- package/dist/utils/replaceStringWithRegex.js.map +1 -0
- package/dist/utils/serializeTrellisObject.d.ts.map +1 -1
- package/dist/utils/serializeTrellisObject.js +3 -0
- package/dist/utils/serializeTrellisObject.js.map +1 -1
- package/dist/validation/__tests__/validateObjectCreation.test.js +2 -0
- package/dist/validation/__tests__/validateObjectCreation.test.js.map +1 -1
- package/dist/validation/__tests__/validateParentExists.test.js +2 -0
- package/dist/validation/__tests__/validateParentExists.test.js.map +1 -1
- package/dist/validation/__tests__/validateStatusTransition.test.js +2 -0
- package/dist/validation/__tests__/validateStatusTransition.test.js.map +1 -1
- package/package.json +8 -3
|
@@ -4,7 +4,33 @@ exports.appendObjectLogTool = void 0;
|
|
|
4
4
|
exports.handleAppendObjectLog = handleAppendObjectLog;
|
|
5
5
|
exports.appendObjectLogTool = {
|
|
6
6
|
name: "append_object_log",
|
|
7
|
-
description:
|
|
7
|
+
description: `Appends content to an object's log in the task trellis system
|
|
8
|
+
|
|
9
|
+
Use this tool to add progress updates, notes, or activity records to an object's audit trail. Essential for tracking work history, documenting decisions, and maintaining transparency in task execution.
|
|
10
|
+
|
|
11
|
+
Log entry purposes:
|
|
12
|
+
- Record progress milestones and status changes
|
|
13
|
+
- Document challenges encountered and solutions applied
|
|
14
|
+
- Note important decisions or changes in approach
|
|
15
|
+
- Track time spent or resources used
|
|
16
|
+
- Log external dependencies or blockers
|
|
17
|
+
- Record completion details and outcomes
|
|
18
|
+
|
|
19
|
+
Log content guidelines:
|
|
20
|
+
- Use clear, descriptive entries with context
|
|
21
|
+
- Include timestamps (automatically added by system)
|
|
22
|
+
- Reference specific files, commits, or external resources when relevant
|
|
23
|
+
- Note any changes to scope, requirements, or approach
|
|
24
|
+
- Document lessons learned or insights gained
|
|
25
|
+
|
|
26
|
+
Activity tracking patterns:
|
|
27
|
+
- Starting work: "Started implementation of feature X"
|
|
28
|
+
- Progress updates: "Completed database schema changes, moving to API layer"
|
|
29
|
+
- Blocking issues: "Blocked on external API access, contacted team"
|
|
30
|
+
- Problem resolution: "Resolved memory leak by optimizing data structure"
|
|
31
|
+
- Completion: "Task completed, all tests passing, PR submitted"
|
|
32
|
+
|
|
33
|
+
The log creates a permanent audit trail that helps with project retrospectives, debugging issues, and understanding work evolution over time.`,
|
|
8
34
|
inputSchema: {
|
|
9
35
|
type: "object",
|
|
10
36
|
properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appendObjectLogTool.js","sourceRoot":"","sources":["../../src/tools/appendObjectLogTool.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"appendObjectLogTool.js","sourceRoot":"","sources":["../../src/tools/appendObjectLogTool.ts"],"names":[],"mappings":";;;AA+CA,sDAsDC;AAnGY,QAAA,mBAAmB,GAAG;IACjC,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;8IA0B+H;IAC5I,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,EAAE,EAAE;gBACF,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,mCAAmC;aACjD;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+BAA+B;aAC7C;SACF;QACD,QAAQ,EAAE,CAAC,IAAI,EAAE,UAAU,CAAC;KAC7B;CACO,CAAC;AAEJ,KAAK,UAAU,qBAAqB,CACzC,UAAsB,EACtB,IAAa;IAEb,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,IAGxB,CAAC;IAEF,IAAI,CAAC;QACH,2BAA2B;QAC3B,MAAM,cAAc,GAAG,MAAM,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;QAC1D,IAAI,CAAC,cAAc,EAAE,CAAC;YACpB,OAAO;gBACL,OAAO,EAAE;oBACP;wBACE,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,0BAA0B,EAAE,aAAa;qBAChD;iBACF;aACF,CAAC;QACJ,CAAC;QAED,oDAAoD;QACpD,MAAM,aAAa,GAAG;YACpB,GAAG,cAAc;YACjB,GAAG,EAAE,CAAC,GAAG,cAAc,CAAC,GAAG,EAAE,QAAQ,CAAC;SACvC,CAAC;QAEF,0BAA0B;QAC1B,MAAM,UAAU,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;QAE3C,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,wCAAwC,IAAI,CAAC,SAAS,CAC1D,EAAE,EAAE,EAAE,QAAQ,EAAE,eAAe,EAAE,aAAa,CAAC,GAAG,CAAC,MAAM,EAAE,EAC3D,IAAI,EACJ,CAAC,CACF,EAAE;iBACJ;aACF;SACF,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,kCAAkC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;iBACjG;aACF;SACF,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Repository } from "../repositories";
|
|
2
2
|
export declare const claimTaskTool: {
|
|
3
3
|
readonly name: "claim_task";
|
|
4
|
-
readonly description: "Claims a task in the task trellis system";
|
|
4
|
+
readonly description: "Claims a task in the task trellis system\n\nUse this tool to assign yourself to available tasks for execution. Essential for AI agents to pick up work items from the task queue and begin execution.\n\nClaiming behavior:\n- Without 'taskId': Claims the next available task based on priority and readiness\n- With 'taskId': Claims a specific task by ID if available and ready\n- 'scope': Limits claiming to tasks within a specific project or area\n- 'force': Overrides normal claiming restrictions (use with caution)\n\nTask readiness criteria:\n- Task status allows claiming (typically 'draft' or 'open' states)\n- All prerequisites are satisfied (prerequisite tasks completed)\n- Task is not already claimed by another agent\n- Task falls within specified scope if provided\n\nClaiming workflow:\n1. System evaluates available tasks against readiness criteria\n2. Selects highest priority task that meets requirements\n3. Updates task status to 'in-progress\n4. Associates task with the claiming agent\n5. Returns claimed task details for execution\n\nCommon patterns:\n- Claim any ready task: (no parameters)\n- Claim from project: scope='P-project-name'\n- Claim specific task: taskId='T-specific-task-id'\n- Force claim blocked task: taskId='T-task-id', force=true\n\nEssential for autonomous task execution workflows where agents need to discover and claim work items dynamically.";
|
|
5
5
|
readonly inputSchema: {
|
|
6
6
|
readonly type: "object";
|
|
7
7
|
readonly properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claimTaskTool.d.ts","sourceRoot":"","sources":["../../src/tools/claimTaskTool.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"claimTaskTool.d.ts","sourceRoot":"","sources":["../../src/tools/claimTaskTool.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAK7C,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;CAkDhB,CAAC;AAEX,wBAAsB,eAAe,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO;;;;;GAwC1E"}
|
|
@@ -2,14 +2,44 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.claimTaskTool = void 0;
|
|
4
4
|
exports.handleClaimTask = handleClaimTask;
|
|
5
|
-
const
|
|
5
|
+
const models_1 = require("../models");
|
|
6
6
|
const TrellisObjectStatus_1 = require("../models/TrellisObjectStatus");
|
|
7
|
+
const TrellisObjectType_1 = require("../models/TrellisObjectType");
|
|
8
|
+
const checkPrerequisitesComplete_1 = require("../utils/checkPrerequisitesComplete");
|
|
7
9
|
const filterUnavailableObjects_1 = require("../utils/filterUnavailableObjects");
|
|
8
10
|
const sortTrellisObjects_1 = require("../utils/sortTrellisObjects");
|
|
9
|
-
const checkPrerequisitesComplete_1 = require("../utils/checkPrerequisitesComplete");
|
|
10
11
|
exports.claimTaskTool = {
|
|
11
12
|
name: "claim_task",
|
|
12
|
-
description:
|
|
13
|
+
description: `Claims a task in the task trellis system
|
|
14
|
+
|
|
15
|
+
Use this tool to assign yourself to available tasks for execution. Essential for AI agents to pick up work items from the task queue and begin execution.
|
|
16
|
+
|
|
17
|
+
Claiming behavior:
|
|
18
|
+
- Without 'taskId': Claims the next available task based on priority and readiness
|
|
19
|
+
- With 'taskId': Claims a specific task by ID if available and ready
|
|
20
|
+
- 'scope': Limits claiming to tasks within a specific project or area
|
|
21
|
+
- 'force': Overrides normal claiming restrictions (use with caution)
|
|
22
|
+
|
|
23
|
+
Task readiness criteria:
|
|
24
|
+
- Task status allows claiming (typically 'draft' or 'open' states)
|
|
25
|
+
- All prerequisites are satisfied (prerequisite tasks completed)
|
|
26
|
+
- Task is not already claimed by another agent
|
|
27
|
+
- Task falls within specified scope if provided
|
|
28
|
+
|
|
29
|
+
Claiming workflow:
|
|
30
|
+
1. System evaluates available tasks against readiness criteria
|
|
31
|
+
2. Selects highest priority task that meets requirements
|
|
32
|
+
3. Updates task status to 'in-progress
|
|
33
|
+
4. Associates task with the claiming agent
|
|
34
|
+
5. Returns claimed task details for execution
|
|
35
|
+
|
|
36
|
+
Common patterns:
|
|
37
|
+
- Claim any ready task: (no parameters)
|
|
38
|
+
- Claim from project: scope='P-project-name'
|
|
39
|
+
- Claim specific task: taskId='T-specific-task-id'
|
|
40
|
+
- Force claim blocked task: taskId='T-task-id', force=true
|
|
41
|
+
|
|
42
|
+
Essential for autonomous task execution workflows where agents need to discover and claim work items dynamically.`,
|
|
13
43
|
inputSchema: {
|
|
14
44
|
type: "object",
|
|
15
45
|
properties: {
|
|
@@ -67,8 +97,7 @@ async function validateTaskForClaiming(task, taskId, force, repository) {
|
|
|
67
97
|
}
|
|
68
98
|
if (!force) {
|
|
69
99
|
// Validate status is draft or open
|
|
70
|
-
if (
|
|
71
|
-
task.status !== TrellisObjectStatus_1.TrellisObjectStatus.OPEN) {
|
|
100
|
+
if (!(0, models_1.isClaimable)(task)) {
|
|
72
101
|
throw new Error(`Task "${taskId}" cannot be claimed (status: ${task.status}). Task must be in draft or open status.`);
|
|
73
102
|
}
|
|
74
103
|
// Validate all prerequisites are complete
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claimTaskTool.js","sourceRoot":"","sources":["../../src/tools/claimTaskTool.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"claimTaskTool.js","sourceRoot":"","sources":["../../src/tools/claimTaskTool.ts"],"names":[],"mappings":";;;AA6DA,0CAwCC;AArGD,sCAAwC;AAExC,uEAAoE;AACpE,mEAAgE;AAEhE,oFAAiF;AACjF,gFAA6E;AAC7E,oEAAiE;AAEpD,QAAA,aAAa,GAAG;IAC3B,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kHA6BmG;IAChH,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,qCAAqC;aACnD;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,sCAAsC;aACpD;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,sCAAsC;gBACnD,OAAO,EAAE,KAAK;aACf;SACF;KACF;CACO,CAAC;AAEJ,KAAK,UAAU,eAAe,CAAC,UAAsB,EAAE,IAAa;IACzE,MAAM,EACJ,KAAK,EACL,MAAM,EACN,KAAK,GAAG,KAAK,GACd,GAAG,IAIH,CAAC;IAEF,IAAI,CAAC;QACH,IAAI,WAA0B,CA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AM,UAAU,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;IACzC,OAAO,WAAW,CAAC;AACrB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Repository } from "../repositories";
|
|
2
2
|
export declare const completeTaskTool: {
|
|
3
3
|
readonly name: "complete_task";
|
|
4
|
-
readonly description: "Completes a task in the task trellis system";
|
|
4
|
+
readonly description: "Completes a task in the task trellis system\n\nUse this tool to mark a task as finished and record completion details. Critical for task lifecycle management and maintaining accurate project status.\n\nRequired completion data:\n- 'taskId': Unique identifier of the task being completed\n- 'summary': Concise description of what was accomplished\n- 'filesChanged': Map of modified files with descriptions of changes made\n\nCompletion process:\n1. Validates task is in a completable state ('in-progress')\n2. Updates task status to 'done'\n3. Records completion timestamp and summary\n4. Associates file changes with the task for traceability\n5. Updates parent-child relationships and dependency chains\n6. Triggers any dependent tasks that were waiting for this completion\n\nFile change tracking:\n- Key: relative file path from project root\n- Value: description of changes made to that file\n- Example: {'src/api/users.ts': 'Added user authentication endpoints', 'tests/auth.test.ts': 'Added comprehensive auth test coverage'}\n\nBest practices:\n- Provide clear, actionable summaries that explain the outcome\n- Document all meaningful file changes for future reference \n- Complete tasks only when all acceptance criteria are met\n- Verify dependent tasks can now proceed before completion\n- Include any important notes or lessons learned in the summary\n\nTask completion automatically notifies dependent tasks and may trigger workflow progression for related work items.";
|
|
5
5
|
readonly inputSchema: {
|
|
6
6
|
readonly type: "object";
|
|
7
7
|
readonly properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"completeTaskTool.d.ts","sourceRoot":"","sources":["../../src/tools/completeTaskTool.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"completeTaskTool.d.ts","sourceRoot":"","sources":["../../src/tools/completeTaskTool.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;CAqDnB,CAAC;AAEX,wBAAsB,kBAAkB,CACtC,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,OAAO;;;;;GA2Cd"}
|
|
@@ -5,7 +5,36 @@ exports.handleCompleteTask = handleCompleteTask;
|
|
|
5
5
|
const models_1 = require("../models");
|
|
6
6
|
exports.completeTaskTool = {
|
|
7
7
|
name: "complete_task",
|
|
8
|
-
description:
|
|
8
|
+
description: `Completes a task in the task trellis system
|
|
9
|
+
|
|
10
|
+
Use this tool to mark a task as finished and record completion details. Critical for task lifecycle management and maintaining accurate project status.
|
|
11
|
+
|
|
12
|
+
Required completion data:
|
|
13
|
+
- 'taskId': Unique identifier of the task being completed
|
|
14
|
+
- 'summary': Concise description of what was accomplished
|
|
15
|
+
- 'filesChanged': Map of modified files with descriptions of changes made
|
|
16
|
+
|
|
17
|
+
Completion process:
|
|
18
|
+
1. Validates task is in a completable state ('in-progress')
|
|
19
|
+
2. Updates task status to 'done'
|
|
20
|
+
3. Records completion timestamp and summary
|
|
21
|
+
4. Associates file changes with the task for traceability
|
|
22
|
+
5. Updates parent-child relationships and dependency chains
|
|
23
|
+
6. Triggers any dependent tasks that were waiting for this completion
|
|
24
|
+
|
|
25
|
+
File change tracking:
|
|
26
|
+
- Key: relative file path from project root
|
|
27
|
+
- Value: description of changes made to that file
|
|
28
|
+
- Example: {'src/api/users.ts': 'Added user authentication endpoints', 'tests/auth.test.ts': 'Added comprehensive auth test coverage'}
|
|
29
|
+
|
|
30
|
+
Best practices:
|
|
31
|
+
- Provide clear, actionable summaries that explain the outcome
|
|
32
|
+
- Document all meaningful file changes for future reference
|
|
33
|
+
- Complete tasks only when all acceptance criteria are met
|
|
34
|
+
- Verify dependent tasks can now proceed before completion
|
|
35
|
+
- Include any important notes or lessons learned in the summary
|
|
36
|
+
|
|
37
|
+
Task completion automatically notifies dependent tasks and may trigger workflow progression for related work items.`,
|
|
9
38
|
inputSchema: {
|
|
10
39
|
type: "object",
|
|
11
40
|
properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"completeTaskTool.js","sourceRoot":"","sources":["../../src/tools/completeTaskTool.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"completeTaskTool.js","sourceRoot":"","sources":["../../src/tools/completeTaskTool.ts"],"names":[],"mappings":";;;AA0DA,gDA6CC;AAvGD,sCAAgD;AAGnC,QAAA,gBAAgB,GAAG;IAC9B,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oHA6BqG;IAClH,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,4BAA4B;aAC1C;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+BAA+B;aAC7C;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE;oBACpB,IAAI,EAAE,QAAQ;iBACf;gBACD,WAAW,EAAE,8CAA8C;aAC5D;SACF;QACD,QAAQ,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,cAAc,CAAC;KAChD;CACO,CAAC;AAEJ,KAAK,UAAU,kBAAkB,CACtC,UAAsB,EACtB,IAAa;IAEb,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,IAIzC,CAAC;IAEF,sCAAsC;IACtC,MAAM,IAAI,GAAG,MAAM,UAAU,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IACpD,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,MAAM,IAAI,KAAK,CAAC,iBAAiB,MAAM,aAAa,CAAC,CAAC;IACxD,CAAC;IAED,+BAA+B;IAC/B,IAAI,IAAI,CAAC,MAAM,KAAK,4BAAmB,CAAC,WAAW,EAAE,CAAC;QACpD,MAAM,IAAI,KAAK,CACb,SAAS,MAAM,yCAAyC,IAAI,CAAC,MAAM,GAAG,CACvE,CAAC;IACJ,CAAC;IAED,6BAA6B;IAC7B,IAAI,CAAC,MAAM,GAAG,4BAAmB,CAAC,IAAI,CAAC;IAEvC,+BAA+B;IAC/B,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE,WAAW,CAAC,EAAE,EAAE;QAC/D,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;IAEH,wBAAwB;IACxB,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAEvB,wBAAwB;IACxB,MAAM,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAElC,OAAO;QACL,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,SAAS,MAAM,qCAAqC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,MAAM,kBAAkB;aAC7G;SACF;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Repository } from "../repositories";
|
|
2
2
|
export declare const createObjectTool: {
|
|
3
3
|
readonly name: "create_object";
|
|
4
|
-
readonly description: "Creates a new object in the task trellis system";
|
|
4
|
+
readonly description: "Creates a new object in the task trellis system\n\nUse this tool to create new objects such as tasks, projects, or other work items within the task management hierarchy. Objects can have parent-child relationships and dependencies through prerequisites.\n\nAvailable object types and hierarchy requirements:\n- 'project': Top-level containers, cannot have a parent\n- 'epic': Must have a project as a parent\n- 'feature': Can have no parent or an epic as a parent\n- 'task': Can have no parent or a feature as a parent\n\nSupported hierarchy structures:\n- Full hierarchy: project → epic → feature → task\n- Simplified: feature → task \n- Standalone: task\n\nAvailable status values:\n- 'draft': Initial state for new objects (default)\n- 'open': Ready to begin work\n- 'in-progress': Currently being worked on\n- 'done': Completed successfully\n- 'wont-do': Cancelled or decided against\n\nAvailable priority values:\n- 'high': Critical or urgent work\n- 'medium': Standard priority (default)\n- 'low': Nice-to-have or future work\n\nKey aspects:\n- Objects support hierarchical organization via parent relationships\n- Prerequisites define execution order dependencies between objects\n- Parent-child relationships must follow the hierarchy rules above\n- The system validates parent types during creation\n\nBest practices:\n- Use descriptive titles that clearly indicate the work to be done\n- Follow the hierarchy constraints for proper organization\n- Set appropriate status based on current work state\n- Define prerequisites to ensure proper task ordering\n- Include detailed descriptions to provide context for the work";
|
|
5
5
|
readonly inputSchema: {
|
|
6
6
|
readonly type: "object";
|
|
7
7
|
readonly properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createObjectTool.d.ts","sourceRoot":"","sources":["../../src/tools/createObjectTool.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAI7C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"createObjectTool.d.ts","sourceRoot":"","sources":["../../src/tools/createObjectTool.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAI7C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkFnB,CAAC;AAEX,wBAAsB,kBAAkB,CACtC,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,OAAO;;;;;GA6Dd"}
|
|
@@ -6,7 +6,45 @@ const utils_1 = require("../utils");
|
|
|
6
6
|
const validateObjectCreation_js_1 = require("../validation/validateObjectCreation.js");
|
|
7
7
|
exports.createObjectTool = {
|
|
8
8
|
name: "create_object",
|
|
9
|
-
description:
|
|
9
|
+
description: `Creates a new object in the task trellis system
|
|
10
|
+
|
|
11
|
+
Use this tool to create new objects such as tasks, projects, or other work items within the task management hierarchy. Objects can have parent-child relationships and dependencies through prerequisites.
|
|
12
|
+
|
|
13
|
+
Available object types and hierarchy requirements:
|
|
14
|
+
- 'project': Top-level containers, cannot have a parent
|
|
15
|
+
- 'epic': Must have a project as a parent
|
|
16
|
+
- 'feature': Can have no parent or an epic as a parent
|
|
17
|
+
- 'task': Can have no parent or a feature as a parent
|
|
18
|
+
|
|
19
|
+
Supported hierarchy structures:
|
|
20
|
+
- Full hierarchy: project → epic → feature → task
|
|
21
|
+
- Simplified: feature → task
|
|
22
|
+
- Standalone: task
|
|
23
|
+
|
|
24
|
+
Available status values:
|
|
25
|
+
- 'draft': Initial state for new objects (default)
|
|
26
|
+
- 'open': Ready to begin work
|
|
27
|
+
- 'in-progress': Currently being worked on
|
|
28
|
+
- 'done': Completed successfully
|
|
29
|
+
- 'wont-do': Cancelled or decided against
|
|
30
|
+
|
|
31
|
+
Available priority values:
|
|
32
|
+
- 'high': Critical or urgent work
|
|
33
|
+
- 'medium': Standard priority (default)
|
|
34
|
+
- 'low': Nice-to-have or future work
|
|
35
|
+
|
|
36
|
+
Key aspects:
|
|
37
|
+
- Objects support hierarchical organization via parent relationships
|
|
38
|
+
- Prerequisites define execution order dependencies between objects
|
|
39
|
+
- Parent-child relationships must follow the hierarchy rules above
|
|
40
|
+
- The system validates parent types during creation
|
|
41
|
+
|
|
42
|
+
Best practices:
|
|
43
|
+
- Use descriptive titles that clearly indicate the work to be done
|
|
44
|
+
- Follow the hierarchy constraints for proper organization
|
|
45
|
+
- Set appropriate status based on current work state
|
|
46
|
+
- Define prerequisites to ensure proper task ordering
|
|
47
|
+
- Include detailed descriptions to provide context for the work`,
|
|
10
48
|
inputSchema: {
|
|
11
49
|
type: "object",
|
|
12
50
|
properties: {
|
|
@@ -56,7 +94,8 @@ async function handleCreateObject(repository, args) {
|
|
|
56
94
|
// Generate unique ID
|
|
57
95
|
const objectType = type;
|
|
58
96
|
const id = (0, utils_1.generateUniqueId)(title, objectType, existingIds);
|
|
59
|
-
// Create TrellisObject
|
|
97
|
+
// Create TrellisObject with current timestamp
|
|
98
|
+
const now = new Date().toISOString();
|
|
60
99
|
const trellisObject = {
|
|
61
100
|
id,
|
|
62
101
|
type: objectType,
|
|
@@ -69,6 +108,8 @@ async function handleCreateObject(repository, args) {
|
|
|
69
108
|
log: [],
|
|
70
109
|
schema: "v1.0",
|
|
71
110
|
childrenIds: [],
|
|
111
|
+
created: now,
|
|
112
|
+
updated: now,
|
|
72
113
|
body: description,
|
|
73
114
|
};
|
|
74
115
|
// Validate object before saving
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createObjectTool.js","sourceRoot":"","sources":["../../src/tools/createObjectTool.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"createObjectTool.js","sourceRoot":"","sources":["../../src/tools/createObjectTool.ts"],"names":[],"mappings":";;;AA8FA,gDA+DC;AAtJD,oCAA4C;AAC5C,uFAAiF;AAEpE,QAAA,gBAAgB,GAAG;IAC9B,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gEAsCiD;IAC9D,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,0BAA0B;aACxC;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,qBAAqB;aACnC;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,6BAA6B;aAC3C;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,uCAAuC;gBACpD,OAAO,EAAE,QAAQ;aAClB;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,4CAA4C;gBACzD,OAAO,EAAE,OAAO;aACjB;YACD,aAAa,EAAE;gBACb,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;iBACf;gBACD,WAA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AU,CAAC,CAAC;IAExD,0BAA0B;IAC1B,MAAM,UAAU,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IAE3C,OAAO;QACL,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,2BAA2B,EAAE,EAAE;aACtC;SACF;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Repository } from "../repositories";
|
|
2
2
|
export declare const deleteObjectTool: {
|
|
3
3
|
readonly name: "delete_object";
|
|
4
|
-
readonly description: "Deletes an object from the task trellis system";
|
|
4
|
+
readonly description: "Deletes an object from the task trellis system\n\nUse this tool to permanently remove objects from the task hierarchy. Exercise caution as deletion affects related objects and cannot be easily undone.\n\nSafety considerations:\n- Standard deletion validates relationships and prevents deletion of objects with dependencies\n- Objects with children or that serve as prerequisites for other objects may be protected\n- Use 'force=true' to bypass safety checks for administrative cleanup\n- Consider updating status to 'cancelled' instead of deletion for audit trail preservation\n\nDeletion impacts:\n- Removes object and all associated metadata permanently\n- Updates parent-child relationships by removing deleted object from parent's children list\n- Other objects referencing this as a prerequisite may become invalid\n- Historical references in logs and activity trails are preserved but point to non-existent object\n\nBest practices:\n- Verify object has no active dependencies before deletion\n- Use list/get tools to understand relationships before deletion\n- Prefer status updates to 'cancelled' over deletion for important work items\n- Use force deletion only for cleanup of test data or administrative maintenance\n\nThis operation is irreversible - ensure you have the correct object ID before proceeding.";
|
|
5
5
|
readonly inputSchema: {
|
|
6
6
|
readonly type: "object";
|
|
7
7
|
readonly properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deleteObjectTool.d.ts","sourceRoot":"","sources":["../../src/tools/deleteObjectTool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"deleteObjectTool.d.ts","sourceRoot":"","sources":["../../src/tools/deleteObjectTool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;CAwCnB,CAAC;AAEX,wBAAsB,kBAAkB,CACtC,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,OAAO;;;;;GA4Bd"}
|
|
@@ -4,7 +4,29 @@ exports.deleteObjectTool = void 0;
|
|
|
4
4
|
exports.handleDeleteObject = handleDeleteObject;
|
|
5
5
|
exports.deleteObjectTool = {
|
|
6
6
|
name: "delete_object",
|
|
7
|
-
description:
|
|
7
|
+
description: `Deletes an object from the task trellis system
|
|
8
|
+
|
|
9
|
+
Use this tool to permanently remove objects from the task hierarchy. Exercise caution as deletion affects related objects and cannot be easily undone.
|
|
10
|
+
|
|
11
|
+
Safety considerations:
|
|
12
|
+
- Standard deletion validates relationships and prevents deletion of objects with dependencies
|
|
13
|
+
- Objects with children or that serve as prerequisites for other objects may be protected
|
|
14
|
+
- Use 'force=true' to bypass safety checks for administrative cleanup
|
|
15
|
+
- Consider updating status to 'cancelled' instead of deletion for audit trail preservation
|
|
16
|
+
|
|
17
|
+
Deletion impacts:
|
|
18
|
+
- Removes object and all associated metadata permanently
|
|
19
|
+
- Updates parent-child relationships by removing deleted object from parent's children list
|
|
20
|
+
- Other objects referencing this as a prerequisite may become invalid
|
|
21
|
+
- Historical references in logs and activity trails are preserved but point to non-existent object
|
|
22
|
+
|
|
23
|
+
Best practices:
|
|
24
|
+
- Verify object has no active dependencies before deletion
|
|
25
|
+
- Use list/get tools to understand relationships before deletion
|
|
26
|
+
- Prefer status updates to 'cancelled' over deletion for important work items
|
|
27
|
+
- Use force deletion only for cleanup of test data or administrative maintenance
|
|
28
|
+
|
|
29
|
+
This operation is irreversible - ensure you have the correct object ID before proceeding.`,
|
|
8
30
|
inputSchema: {
|
|
9
31
|
type: "object",
|
|
10
32
|
properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deleteObjectTool.js","sourceRoot":"","sources":["../../src/tools/deleteObjectTool.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"deleteObjectTool.js","sourceRoot":"","sources":["../../src/tools/deleteObjectTool.ts"],"names":[],"mappings":";;;AA4CA,gDA8BC;AAxEY,QAAA,gBAAgB,GAAG;IAC9B,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;0FAsB2E;IACxF,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,EAAE,EAAE;gBACF,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,4BAA4B;aAC1C;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,uCAAuC;gBACpD,OAAO,EAAE,KAAK;aACf;SACF;QACD,QAAQ,EAAE,CAAC,IAAI,CAAC;KACjB;CACO,CAAC;AAEJ,KAAK,UAAU,kBAAkB,CACtC,UAAsB,EACtB,IAAa;IAEb,MAAM,EAAE,EAAE,EAAE,KAAK,GAAG,KAAK,EAAE,GAAG,IAG7B,CAAC;IAEF,IAAI,CAAC;QACH,MAAM,UAAU,CAAC,YAAY,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;QAEzC,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,gCAAgC,EAAE,EAAE;iBAC3C;aACF;SACF,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,kCAAkC,EAAE,MAAM,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;iBACzG;aACF;SACF,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Repository } from "../repositories";
|
|
2
2
|
export declare const getObjectTool: {
|
|
3
3
|
readonly name: "get_object";
|
|
4
|
-
readonly description: "Gets an object from the task trellis system";
|
|
4
|
+
readonly description: "Gets an object from the task trellis system\n\nUse this tool to retrieve detailed information about a specific object by its unique ID. Returns the complete object data including metadata, relationships, content, and activity history.\n\nKey information retrieved:\n- Object metadata (type, title, status, priority, timestamps)\n- Hierarchical relationships (parent, children, prerequisites)\n- Content body and description\n- Activity log and change history\n- File associations and modifications\n- Current state and progress indicators\n\nUsage scenarios:\n- Review task details before starting work\n- Check object status and dependencies\n- Examine change history and activity logs\n- Understand parent-child relationships\n- Verify prerequisite completion\n- Access associated file changes\n\nEssential for understanding the full context of a work item before making modifications or planning next steps.";
|
|
5
5
|
readonly inputSchema: {
|
|
6
6
|
readonly type: "object";
|
|
7
7
|
readonly properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getObjectTool.d.ts","sourceRoot":"","sources":["../../src/tools/getObjectTool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,eAAO,MAAM,aAAa;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"getObjectTool.d.ts","sourceRoot":"","sources":["../../src/tools/getObjectTool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,eAAO,MAAM,aAAa;;;;;;;;;;;;;CAiChB,CAAC;AAEX,wBAAsB,eAAe,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO;;;;;GAqC1E"}
|
|
@@ -4,7 +4,27 @@ exports.getObjectTool = void 0;
|
|
|
4
4
|
exports.handleGetObject = handleGetObject;
|
|
5
5
|
exports.getObjectTool = {
|
|
6
6
|
name: "get_object",
|
|
7
|
-
description:
|
|
7
|
+
description: `Gets an object from the task trellis system
|
|
8
|
+
|
|
9
|
+
Use this tool to retrieve detailed information about a specific object by its unique ID. Returns the complete object data including metadata, relationships, content, and activity history.
|
|
10
|
+
|
|
11
|
+
Key information retrieved:
|
|
12
|
+
- Object metadata (type, title, status, priority, timestamps)
|
|
13
|
+
- Hierarchical relationships (parent, children, prerequisites)
|
|
14
|
+
- Content body and description
|
|
15
|
+
- Activity log and change history
|
|
16
|
+
- File associations and modifications
|
|
17
|
+
- Current state and progress indicators
|
|
18
|
+
|
|
19
|
+
Usage scenarios:
|
|
20
|
+
- Review task details before starting work
|
|
21
|
+
- Check object status and dependencies
|
|
22
|
+
- Examine change history and activity logs
|
|
23
|
+
- Understand parent-child relationships
|
|
24
|
+
- Verify prerequisite completion
|
|
25
|
+
- Access associated file changes
|
|
26
|
+
|
|
27
|
+
Essential for understanding the full context of a work item before making modifications or planning next steps.`,
|
|
8
28
|
inputSchema: {
|
|
9
29
|
type: "object",
|
|
10
30
|
properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getObjectTool.js","sourceRoot":"","sources":["../../src/tools/getObjectTool.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"getObjectTool.js","sourceRoot":"","sources":["../../src/tools/getObjectTool.ts"],"names":[],"mappings":";;;AAqCA,0CAqCC;AAxEY,QAAA,aAAa,GAAG;IAC3B,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;gHAoBiG;IAC9G,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,EAAE,EAAE;gBACF,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,8BAA8B;aAC5C;SACF;QACD,QAAQ,EAAE,CAAC,IAAI,CAAC;KACjB;CACO,CAAC;AAEJ,KAAK,UAAU,eAAe,CAAC,UAAsB,EAAE,IAAa;IACzE,MAAM,EAAE,EAAE,EAAE,GAAG,IAEd,CAAC;IAEF,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;QAElD,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,OAAO;gBACL,OAAO,EAAE;oBACP;wBACE,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,mBAAmB,EAAE,aAAa;qBACzC;iBACF;aACF,CAAC;QACJ,CAAC;QAED,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,qBAAqB,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE;iBAC7D;aACF;SACF,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,oCAAoC,EAAE,MAAM,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;iBAC3G;aACF;SACF,CAAC;IACJ,CAAC;AACH,CAAC"}
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -8,4 +8,5 @@ export { claimTaskTool, handleClaimTask } from "./claimTaskTool.js";
|
|
|
8
8
|
export { completeTaskTool, handleCompleteTask } from "./completeTaskTool.js";
|
|
9
9
|
export { pruneClosedTool, handlePruneClosed } from "./pruneClosedTool.js";
|
|
10
10
|
export { activateTool, handleActivate } from "./activateTool.js";
|
|
11
|
+
export { replaceObjectBodyRegexTool, handleReplaceObjectBodyRegex, } from "./replaceObjectBodyRegexTool.js";
|
|
11
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,gBAAgB,E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B,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,EACL,0BAA0B,EAC1B,4BAA4B,GAC7B,MAAM,iCAAiC,CAAC"}
|
package/dist/tools/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.handleActivate = exports.activateTool = exports.handlePruneClosed = exports.pruneClosedTool = exports.handleCompleteTask = exports.completeTaskTool = exports.handleClaimTask = exports.claimTaskTool = exports.handleAppendObjectLog = exports.appendObjectLogTool = exports.handleListObjects = exports.listObjectsTool = exports.handleDeleteObject = exports.deleteObjectTool = exports.handleGetObject = exports.getObjectTool = exports.handleUpdateObject = exports.updateObjectTool = exports.handleCreateObject = exports.createObjectTool = void 0;
|
|
3
|
+
exports.handleReplaceObjectBodyRegex = exports.replaceObjectBodyRegexTool = exports.handleActivate = exports.activateTool = exports.handlePruneClosed = exports.pruneClosedTool = exports.handleCompleteTask = exports.completeTaskTool = exports.handleClaimTask = exports.claimTaskTool = exports.handleAppendObjectLog = exports.appendObjectLogTool = exports.handleListObjects = exports.listObjectsTool = exports.handleDeleteObject = exports.deleteObjectTool = exports.handleGetObject = exports.getObjectTool = exports.handleUpdateObject = exports.updateObjectTool = exports.handleCreateObject = exports.createObjectTool = void 0;
|
|
4
4
|
var createObjectTool_js_1 = require("./createObjectTool.js");
|
|
5
5
|
Object.defineProperty(exports, "createObjectTool", { enumerable: true, get: function () { return createObjectTool_js_1.createObjectTool; } });
|
|
6
6
|
Object.defineProperty(exports, "handleCreateObject", { enumerable: true, get: function () { return createObjectTool_js_1.handleCreateObject; } });
|
|
@@ -31,4 +31,7 @@ Object.defineProperty(exports, "handlePruneClosed", { enumerable: true, get: fun
|
|
|
31
31
|
var activateTool_js_1 = require("./activateTool.js");
|
|
32
32
|
Object.defineProperty(exports, "activateTool", { enumerable: true, get: function () { return activateTool_js_1.activateTool; } });
|
|
33
33
|
Object.defineProperty(exports, "handleActivate", { enumerable: true, get: function () { return activateTool_js_1.handleActivate; } });
|
|
34
|
+
var replaceObjectBodyRegexTool_js_1 = require("./replaceObjectBodyRegexTool.js");
|
|
35
|
+
Object.defineProperty(exports, "replaceObjectBodyRegexTool", { enumerable: true, get: function () { return replaceObjectBodyRegexTool_js_1.replaceObjectBodyRegexTool; } });
|
|
36
|
+
Object.defineProperty(exports, "handleReplaceObjectBodyRegex", { enumerable: true, get: function () { return replaceObjectBodyRegexTool_js_1.handleReplaceObjectBodyRegex; } });
|
|
34
37
|
//# sourceMappingURL=index.js.map
|
package/dist/tools/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":";;;AAAA,6DAA6E;AAApE,uHAAA,gBAAgB,OAAA;AAAE,yHAAA,kBAAkB,OAAA;AAC7C,6DAA6E;AAApE,uHAAA,gBAAgB,OAAA;AAAE,yHAAA,kBAAkB,OAAA;AAC7C,uDAAoE;AAA3D,iHAAA,aAAa,OAAA;AAAE,mHAAA,eAAe,OAAA;AACvC,6DAA6E;AAApE,uHAAA,gBAAgB,OAAA;AAAE,yHAAA,kBAAkB,OAAA;AAC7C,2DAA0E;AAAjE,qHAAA,eAAe,OAAA;AAAE,uHAAA,iBAAiB,OAAA;AAC3C,mEAGkC;AAFhC,6HAAA,mBAAmB,OAAA;AACnB,+HAAA,qBAAqB,OAAA;AAEvB,uDAAoE;AAA3D,iHAAA,aAAa,OAAA;AAAE,mHAAA,eAAe,OAAA;AACvC,6DAA6E;AAApE,uHAAA,gBAAgB,OAAA;AAAE,yHAAA,kBAAkB,OAAA;AAC7C,2DAA0E;AAAjE,qHAAA,eAAe,OAAA;AAAE,uHAAA,iBAAiB,OAAA;AAC3C,qDAAiE;AAAxD,+GAAA,YAAY,OAAA;AAAE,iHAAA,cAAc,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":";;;AAAA,6DAA6E;AAApE,uHAAA,gBAAgB,OAAA;AAAE,yHAAA,kBAAkB,OAAA;AAC7C,6DAA6E;AAApE,uHAAA,gBAAgB,OAAA;AAAE,yHAAA,kBAAkB,OAAA;AAC7C,uDAAoE;AAA3D,iHAAA,aAAa,OAAA;AAAE,mHAAA,eAAe,OAAA;AACvC,6DAA6E;AAApE,uHAAA,gBAAgB,OAAA;AAAE,yHAAA,kBAAkB,OAAA;AAC7C,2DAA0E;AAAjE,qHAAA,eAAe,OAAA;AAAE,uHAAA,iBAAiB,OAAA;AAC3C,mEAGkC;AAFhC,6HAAA,mBAAmB,OAAA;AACnB,+HAAA,qBAAqB,OAAA;AAEvB,uDAAoE;AAA3D,iHAAA,aAAa,OAAA;AAAE,mHAAA,eAAe,OAAA;AACvC,6DAA6E;AAApE,uHAAA,gBAAgB,OAAA;AAAE,yHAAA,kBAAkB,OAAA;AAC7C,2DAA0E;AAAjE,qHAAA,eAAe,OAAA;AAAE,uHAAA,iBAAiB,OAAA;AAC3C,qDAAiE;AAAxD,+GAAA,YAAY,OAAA;AAAE,iHAAA,cAAc,OAAA;AACrC,iFAGyC;AAFvC,2IAAA,0BAA0B,OAAA;AAC1B,6IAAA,4BAA4B,OAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Repository } from "../repositories";
|
|
2
2
|
export declare const listObjectsTool: {
|
|
3
3
|
readonly name: "list_objects";
|
|
4
|
-
readonly description: "Lists objects from the task trellis system";
|
|
4
|
+
readonly description: "Lists objects from the task trellis system\n\nUse this tool to retrieve and filter objects based on various criteria. Essential for discovering existing work items, understanding project structure, and finding objects that need attention.\n\nAvailable object types:\n- 'project': Top-level containers\n- 'epic': Large features within projects \n- 'feature': Specific functionality within epics\n- 'task': Individual work items\n\nAvailable status values:\n- 'draft': Initial state for new objects\n- 'open': Ready to begin work\n- 'in-progress': Currently being worked on\n- 'done': Completed successfully\n- 'wont-do': Cancelled or decided against\n\nAvailable priority values:\n- 'high': Critical or urgent work\n- 'medium': Standard priority\n- 'low': Nice-to-have or future work\n\nKey filtering options:\n- 'type': Filter by object category (project, epic, feature, task)\n- 'scope': Limit results to a specific project or area of work\n- 'status': Find objects in particular states (draft, open, in-progress, done, wont-do)\n- 'priority': Filter by importance level (high, medium, low)\n- 'includeClosed': Whether to show completed/archived objects (defaults to false)\n\nUsage patterns:\n- List all tasks in progress: type='task', status='in-progress'\n- Find high priority work: priority='high', includeClosed=false\n- Review project scope: type='project', scope='specific-project'\n- Audit completed work: includeClosed=true, status='done'\n- Find cancelled items: status='wont-do', includeClosed=true\n\nThe results provide object metadata including IDs, titles, relationships, and current status to help navigate the work hierarchy effectively.";
|
|
5
5
|
readonly inputSchema: {
|
|
6
6
|
readonly type: "object";
|
|
7
7
|
readonly properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listObjectsTool.d.ts","sourceRoot":"","sources":["../../src/tools/listObjectsTool.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"listObjectsTool.d.ts","sourceRoot":"","sources":["../../src/tools/listObjectsTool.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkElB,CAAC;AAEX,wBAAsB,iBAAiB,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO;;;;;GAkF5E"}
|
|
@@ -5,7 +5,43 @@ exports.handleListObjects = handleListObjects;
|
|
|
5
5
|
const models_1 = require("../models");
|
|
6
6
|
exports.listObjectsTool = {
|
|
7
7
|
name: "list_objects",
|
|
8
|
-
description:
|
|
8
|
+
description: `Lists objects from the task trellis system
|
|
9
|
+
|
|
10
|
+
Use this tool to retrieve and filter objects based on various criteria. Essential for discovering existing work items, understanding project structure, and finding objects that need attention.
|
|
11
|
+
|
|
12
|
+
Available object types:
|
|
13
|
+
- 'project': Top-level containers
|
|
14
|
+
- 'epic': Large features within projects
|
|
15
|
+
- 'feature': Specific functionality within epics
|
|
16
|
+
- 'task': Individual work items
|
|
17
|
+
|
|
18
|
+
Available status values:
|
|
19
|
+
- 'draft': Initial state for new objects
|
|
20
|
+
- 'open': Ready to begin work
|
|
21
|
+
- 'in-progress': Currently being worked on
|
|
22
|
+
- 'done': Completed successfully
|
|
23
|
+
- 'wont-do': Cancelled or decided against
|
|
24
|
+
|
|
25
|
+
Available priority values:
|
|
26
|
+
- 'high': Critical or urgent work
|
|
27
|
+
- 'medium': Standard priority
|
|
28
|
+
- 'low': Nice-to-have or future work
|
|
29
|
+
|
|
30
|
+
Key filtering options:
|
|
31
|
+
- 'type': Filter by object category (project, epic, feature, task)
|
|
32
|
+
- 'scope': Limit results to a specific project or area of work
|
|
33
|
+
- 'status': Find objects in particular states (draft, open, in-progress, done, wont-do)
|
|
34
|
+
- 'priority': Filter by importance level (high, medium, low)
|
|
35
|
+
- 'includeClosed': Whether to show completed/archived objects (defaults to false)
|
|
36
|
+
|
|
37
|
+
Usage patterns:
|
|
38
|
+
- List all tasks in progress: type='task', status='in-progress'
|
|
39
|
+
- Find high priority work: priority='high', includeClosed=false
|
|
40
|
+
- Review project scope: type='project', scope='specific-project'
|
|
41
|
+
- Audit completed work: includeClosed=true, status='done'
|
|
42
|
+
- Find cancelled items: status='wont-do', includeClosed=true
|
|
43
|
+
|
|
44
|
+
The results provide object metadata including IDs, titles, relationships, and current status to help navigate the work hierarchy effectively.`,
|
|
9
45
|
inputSchema: {
|
|
10
46
|
type: "object",
|
|
11
47
|
properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listObjectsTool.js","sourceRoot":"","sources":["../../src/tools/listObjectsTool.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"listObjectsTool.js","sourceRoot":"","sources":["../../src/tools/listObjectsTool.ts"],"names":[],"mappings":";;;AA2EA,8CAkFC;AA7JD,sCAImB;AAGN,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8IAoC+H;IAC5I,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,yBAAyB;aACvC;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,oCAAoC;aAClD;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,qCAAqC;aACnD;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,uCAAuC;aACrD;YACD,aAAa,EAAE;gBACb,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,4CAA4C;gBACzD,OAAO,EAAE,KAAK;aACf;SACF;QACD,QAAQ,EAAE,CAAC,MAAM,CAAC;KACnB;CACO,CAAC;AAEJ,KAAK,UAAU,iBAAiB,CAAC,UAAsB,EAAE,IAAa;IAC3E,MAAM,EACJ,IAAI,EACJ,KAAK,EACL,MAAM,EACN,QAAQ,EACR,aAAa,GAAG,KAAK,GACtB,GAAG,IAMH,CAAC;IAEF,iDAAiD;IACjD,MAAM,MAAM,GAAG,CAAC,UAAkB,EAAqB,EAAE;QACvD,IACE,MAAM,CAAC,MAAM,CAAC,0BAAiB,CAAC,CAAC,QAAQ,CAAC,UAA+B,CAAC,EAC1E,CAAC;YACD,OAAO,UAA+B,CAAC;QACzC,CAAC;QACD,MAAM,IAAI,KAAK,CAAC,uBAAuB,UAAU,EAAE,CAAC,CAAC;IACvD,CAAC,CAAC;IAEF,mDAAmD;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ACZ,IAAI,EAAE,0BAA0B,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;iBACzF;aACF;SACF,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Repository } from "../repositories";
|
|
2
2
|
export declare const pruneClosedTool: {
|
|
3
3
|
readonly name: "prune_closed";
|
|
4
|
-
readonly description: "Prunes closed objects from the task trellis system";
|
|
4
|
+
readonly description: "Prunes closed objects from the task trellis system\n\nUse this tool for maintenance and cleanup of completed, cancelled, or otherwise closed objects that are no longer needed. Essential for system hygiene and performance optimization.\n\nPruning criteria:\n- 'age': Minimum age in minutes since object closure (required)\n- 'scope': Limit pruning to specific project or area (optional)\n- Objects must be in closed states (completed, cancelled, archived)\n- Objects must not have active dependencies or relationships\n\nSafety mechanisms:\n- Only removes truly closed objects (completed, cancelled, etc.)\n- Validates no active objects depend on pruned items\n- Preserves objects referenced by active work\n- Maintains referential integrity of remaining system\n\nCommon usage patterns:\n- Daily cleanup: age=1440 (24 hours)\n- Weekly maintenance: age=10080 (7 days) \n- Project closure: scope='project-name', age=4320 (3 days)\n- System cleanup: age=43200 (30 days)\n\nPruning benefits:\n- Reduces database size and improves query performance\n- Removes clutter from active task views\n- Prevents accumulation of obsolete work items\n- Maintains focus on current and relevant tasks\n\nUse regularly as part of system maintenance to keep the task trellis clean and performant. Consider project lifecycles and audit requirements when setting age thresholds.\n\nThis operation is permanent - pruned objects cannot be recovered.";
|
|
5
5
|
readonly inputSchema: {
|
|
6
6
|
readonly type: "object";
|
|
7
7
|
readonly properties: {
|
|
@@ -17,10 +17,10 @@ export declare const pruneClosedTool: {
|
|
|
17
17
|
readonly required: readonly ["age"];
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
-
export declare function handlePruneClosed(repository: Repository, args: unknown): {
|
|
20
|
+
export declare function handlePruneClosed(repository: Repository, args: unknown): Promise<{
|
|
21
21
|
content: {
|
|
22
22
|
type: string;
|
|
23
23
|
text: string;
|
|
24
24
|
}[];
|
|
25
|
-
}
|
|
25
|
+
}>;
|
|
26
26
|
//# sourceMappingURL=pruneClosedTool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pruneClosedTool.d.ts","sourceRoot":"","sources":["../../src/tools/pruneClosedTool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"pruneClosedTool.d.ts","sourceRoot":"","sources":["../../src/tools/pruneClosedTool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG7C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;CA+ClB,CAAC;AAEX,wBAAsB,iBAAiB,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO;;;;;GA6D5E"}
|