@tyvm/knowhow 0.0.93 → 0.0.94
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/package.json +3 -2
- package/ts_build/package.json +3 -2
- package/ts_build/src/cli.js +0 -0
- package/ts_build/src/agents/tools/asana/definitions.d.ts +0 -202
- package/ts_build/src/agents/tools/asana/definitions.js +0 -197
- package/ts_build/src/agents/tools/asana/definitions.js.map +0 -1
- package/ts_build/src/agents/tools/asana/index.d.ts +0 -8
- package/ts_build/src/agents/tools/asana/index.js +0 -98
- package/ts_build/src/agents/tools/asana/index.js.map +0 -1
- package/ts_build/src/agents/tools/ast/astAppendNode.d.ts +0 -1
- package/ts_build/src/agents/tools/ast/astAppendNode.js +0 -8
- package/ts_build/src/agents/tools/ast/astAppendNode.js.map +0 -1
- package/ts_build/src/agents/tools/ast/astDeleteNode.d.ts +0 -1
- package/ts_build/src/agents/tools/ast/astDeleteNode.js +0 -8
- package/ts_build/src/agents/tools/ast/astDeleteNode.js.map +0 -1
- package/ts_build/src/agents/tools/ast/astEditNode.d.ts +0 -1
- package/ts_build/src/agents/tools/ast/astEditNode.js +0 -8
- package/ts_build/src/agents/tools/ast/astEditNode.js.map +0 -1
- package/ts_build/src/agents/tools/ast/astGetPathForLine.d.ts +0 -1
- package/ts_build/src/agents/tools/ast/astGetPathForLine.js +0 -8
- package/ts_build/src/agents/tools/ast/astGetPathForLine.js.map +0 -1
- package/ts_build/src/agents/tools/ast/astListPaths.d.ts +0 -1
- package/ts_build/src/agents/tools/ast/astListPaths.js +0 -8
- package/ts_build/src/agents/tools/ast/astListPaths.js.map +0 -1
- package/ts_build/src/agents/tools/ast/index.d.ts +0 -5
- package/ts_build/src/agents/tools/ast/index.js +0 -14
- package/ts_build/src/agents/tools/ast/index.js.map +0 -1
- package/ts_build/src/agents/tools/astAppendNode.d.ts +0 -1
- package/ts_build/src/agents/tools/astAppendNode.js +0 -98
- package/ts_build/src/agents/tools/astAppendNode.js.map +0 -1
- package/ts_build/src/agents/tools/astDeleteNode.d.ts +0 -1
- package/ts_build/src/agents/tools/astDeleteNode.js +0 -95
- package/ts_build/src/agents/tools/astDeleteNode.js.map +0 -1
- package/ts_build/src/agents/tools/astEditNode.d.ts +0 -1
- package/ts_build/src/agents/tools/astEditNode.js +0 -98
- package/ts_build/src/agents/tools/astEditNode.js.map +0 -1
- package/ts_build/src/agents/tools/astGetPathForLine.d.ts +0 -1
- package/ts_build/src/agents/tools/astGetPathForLine.js +0 -89
- package/ts_build/src/agents/tools/astGetPathForLine.js.map +0 -1
- package/ts_build/src/agents/tools/astListPaths.d.ts +0 -1
- package/ts_build/src/agents/tools/astListPaths.js +0 -82
- package/ts_build/src/agents/tools/astListPaths.js.map +0 -1
- package/ts_build/src/agents/tools/github/definitions.d.ts +0 -47
- package/ts_build/src/agents/tools/github/definitions.js +0 -86
- package/ts_build/src/agents/tools/github/definitions.js.map +0 -1
- package/ts_build/src/agents/tools/github/index.d.ts +0 -789
- package/ts_build/src/agents/tools/github/index.js +0 -56
- package/ts_build/src/agents/tools/github/index.js.map +0 -1
- package/ts_build/src/agents/tools/startChatTask.d.ts +0 -13
- package/ts_build/src/agents/tools/startChatTask.js +0 -73
- package/ts_build/src/agents/tools/startChatTask.js.map +0 -1
- package/ts_build/src/agents/vim/vim.d.ts +0 -13
- package/ts_build/src/agents/vim/vim.js +0 -170
- package/ts_build/src/agents/vim/vim.js.map +0 -1
- package/ts_build/src/chat/ChatCommandHandler.d.ts +0 -36
- package/ts_build/src/chat/ChatCommandHandler.js +0 -268
- package/ts_build/src/chat/ChatCommandHandler.js.map +0 -1
- package/ts_build/src/chat/ChatInputManager.d.ts +0 -22
- package/ts_build/src/chat/ChatInputManager.js +0 -85
- package/ts_build/src/chat/ChatInputManager.js.map +0 -1
- package/ts_build/src/chat/ChatManager.d.ts +0 -49
- package/ts_build/src/chat/ChatManager.js +0 -271
- package/ts_build/src/chat/ChatManager.js.map +0 -1
- package/ts_build/src/chat/ChatSession.d.ts +0 -32
- package/ts_build/src/chat/ChatSession.js +0 -3
- package/ts_build/src/chat/ChatSession.js.map +0 -1
- package/ts_build/src/chat/ChatSessionManager.d.ts +0 -19
- package/ts_build/src/chat/ChatSessionManager.js +0 -188
- package/ts_build/src/chat/ChatSessionManager.js.map +0 -1
- package/ts_build/src/chat/ChatStateManager.d.ts +0 -58
- package/ts_build/src/chat/ChatStateManager.js +0 -156
- package/ts_build/src/chat/ChatStateManager.js.map +0 -1
- package/ts_build/src/chat/InterruptibleInput.d.ts +0 -20
- package/ts_build/src/chat/InterruptibleInput.js +0 -109
- package/ts_build/src/chat/InterruptibleInput.js.map +0 -1
- package/ts_build/src/chat/interfaces/ChatModule.d.ts +0 -6
- package/ts_build/src/chat/interfaces/ChatModule.js +0 -3
- package/ts_build/src/chat/interfaces/ChatModule.js.map +0 -1
- package/ts_build/src/chat-old.d.ts +0 -13
- package/ts_build/src/chat-old.js +0 -340
- package/ts_build/src/chat-old.js.map +0 -1
- package/ts_build/src/chat2.d.ts +0 -3
- package/ts_build/src/chat2.js +0 -47
- package/ts_build/src/chat2.js.map +0 -1
- package/ts_build/src/dockerWorker.d.ts +0 -22
- package/ts_build/src/dockerWorker.js +0 -210
- package/ts_build/src/dockerWorker.js.map +0 -1
- package/ts_build/src/plugins/asana.d.ts +0 -19
- package/ts_build/src/plugins/asana.js +0 -124
- package/ts_build/src/plugins/asana.js.map +0 -1
- package/ts_build/src/plugins/downloader/downloader.d.ts +0 -26
- package/ts_build/src/plugins/downloader/downloader.js +0 -324
- package/ts_build/src/plugins/downloader/downloader.js.map +0 -1
- package/ts_build/src/plugins/downloader/plugin.d.ts +0 -12
- package/ts_build/src/plugins/downloader/plugin.js +0 -98
- package/ts_build/src/plugins/downloader/plugin.js.map +0 -1
- package/ts_build/src/plugins/downloader/types.d.ts +0 -88
- package/ts_build/src/plugins/downloader/types.js +0 -79
- package/ts_build/src/plugins/downloader/types.js.map +0 -1
- package/ts_build/src/plugins/figma.d.ts +0 -25
- package/ts_build/src/plugins/figma.js +0 -134
- package/ts_build/src/plugins/figma.js.map +0 -1
- package/ts_build/src/plugins/github.d.ts +0 -1227
- package/ts_build/src/plugins/github.js +0 -182
- package/ts_build/src/plugins/github.js.map +0 -1
- package/ts_build/src/plugins/jira.d.ts +0 -18
- package/ts_build/src/plugins/jira.js +0 -104
- package/ts_build/src/plugins/jira.js.map +0 -1
- package/ts_build/src/plugins/linear.d.ts +0 -26
- package/ts_build/src/plugins/linear.js +0 -194
- package/ts_build/src/plugins/linear.js.map +0 -1
- package/ts_build/src/plugins/notion.d.ts +0 -35
- package/ts_build/src/plugins/notion.js +0 -141
- package/ts_build/src/plugins/notion.js.map +0 -1
- package/ts_build/src/plugins/tree-sitter/editor.d.ts +0 -5
- package/ts_build/src/plugins/tree-sitter/editor.js +0 -16
- package/ts_build/src/plugins/tree-sitter/editor.js.map +0 -1
- package/ts_build/src/plugins/tree-sitter/human-readable-paths-new.d.ts +0 -29
- package/ts_build/src/plugins/tree-sitter/human-readable-paths-new.js +0 -538
- package/ts_build/src/plugins/tree-sitter/human-readable-paths-new.js.map +0 -1
- package/ts_build/src/plugins/tree-sitter/human-readable-paths.d.ts +0 -22
- package/ts_build/src/plugins/tree-sitter/human-readable-paths.js +0 -332
- package/ts_build/src/plugins/tree-sitter/human-readable-paths.js.map +0 -1
- package/ts_build/src/plugins/tree-sitter/lang-packs/index.d.ts +0 -8
- package/ts_build/src/plugins/tree-sitter/lang-packs/index.js +0 -26
- package/ts_build/src/plugins/tree-sitter/lang-packs/index.js.map +0 -1
- package/ts_build/src/plugins/tree-sitter/lang-packs/java.d.ts +0 -2
- package/ts_build/src/plugins/tree-sitter/lang-packs/java.js +0 -61
- package/ts_build/src/plugins/tree-sitter/lang-packs/java.js.map +0 -1
- package/ts_build/src/plugins/tree-sitter/lang-packs/javascript.d.ts +0 -2
- package/ts_build/src/plugins/tree-sitter/lang-packs/javascript.js +0 -59
- package/ts_build/src/plugins/tree-sitter/lang-packs/javascript.js.map +0 -1
- package/ts_build/src/plugins/tree-sitter/lang-packs/python.d.ts +0 -2
- package/ts_build/src/plugins/tree-sitter/lang-packs/python.js +0 -47
- package/ts_build/src/plugins/tree-sitter/lang-packs/python.js.map +0 -1
- package/ts_build/src/plugins/tree-sitter/lang-packs/types.d.ts +0 -43
- package/ts_build/src/plugins/tree-sitter/lang-packs/types.js +0 -3
- package/ts_build/src/plugins/tree-sitter/lang-packs/types.js.map +0 -1
- package/ts_build/src/plugins/tree-sitter/lang-packs/typescript.d.ts +0 -2
- package/ts_build/src/plugins/tree-sitter/lang-packs/typescript.js +0 -50
- package/ts_build/src/plugins/tree-sitter/lang-packs/typescript.js.map +0 -1
- package/ts_build/src/plugins/tree-sitter/parser.d.ts +0 -40
- package/ts_build/src/plugins/tree-sitter/parser.js +0 -36
- package/ts_build/src/plugins/tree-sitter/parser.js.map +0 -1
- package/ts_build/src/plugins/tree-sitter/simple-paths.d.ts +0 -9
- package/ts_build/src/plugins/tree-sitter/simple-paths.js +0 -10
- package/ts_build/src/plugins/tree-sitter/simple-paths.js.map +0 -1
- package/ts_build/src/services/AgentSynchronization.d.ts +0 -29
- package/ts_build/src/services/AgentSynchronization.js +0 -178
- package/ts_build/src/services/AgentSynchronization.js.map +0 -1
- package/ts_build/src/services/GitHub.d.ts +0 -10
- package/ts_build/src/services/GitHub.js +0 -51
- package/ts_build/src/services/GitHub.js.map +0 -1
- package/ts_build/src/utils/PersistentInputManager.d.ts +0 -28
- package/ts_build/src/utils/PersistentInputManager.js +0 -293
- package/ts_build/src/utils/PersistentInputManager.js.map +0 -1
- package/ts_build/src/worker/handlers/proxyHandler.d.ts +0 -2
- package/ts_build/src/worker/handlers/proxyHandler.js +0 -41
- package/ts_build/src/worker/handlers/proxyHandler.js.map +0 -1
- package/ts_build/src/worker/tools/index.d.ts +0 -1
- package/ts_build/src/worker/tools/index.js +0 -18
- package/ts_build/src/worker/tools/index.js.map +0 -1
- package/ts_build/src/worker/tools/portForwarding.d.ts +0 -49
- package/ts_build/src/worker/tools/portForwarding.js +0 -173
- package/ts_build/src/worker/tools/portForwarding.js.map +0 -1
- package/ts_build/src/worker/types/proxy.d.ts +0 -18
- package/ts_build/src/worker/types/proxy.js +0 -3
- package/ts_build/src/worker/types/proxy.js.map +0 -1
- package/ts_build/src/worker-entrypoint.d.ts +0 -2
- package/ts_build/src/worker-entrypoint.js +0 -39
- package/ts_build/src/worker-entrypoint.js.map +0 -1
- package/ts_build/src/workerSync.d.ts +0 -8
- package/ts_build/src/workerSync.js +0 -120
- package/ts_build/src/workerSync.js.map +0 -1
- package/ts_build/src/workers/tools/listForwardedPorts.d.ts +0 -10
- package/ts_build/src/workers/tools/listForwardedPorts.js +0 -22
- package/ts_build/src/workers/tools/listForwardedPorts.js.map +0 -1
- package/ts_build/tests/integration/figma.test.d.ts +0 -1
- package/ts_build/tests/integration/figma.test.js +0 -47
- package/ts_build/tests/integration/figma.test.js.map +0 -1
- package/ts_build/tests/integration/fileblocks/readwrite.test.d.ts +0 -1
- package/ts_build/tests/integration/fileblocks/readwrite.test.js +0 -96
- package/ts_build/tests/integration/fileblocks/readwrite.test.js.map +0 -1
- package/ts_build/tests/integration/patching.test.d.ts +0 -1
- package/ts_build/tests/integration/patching.test.js +0 -116
- package/ts_build/tests/integration/patching.test.js.map +0 -1
- package/ts_build/tests/languagePlugin.test.d.ts +0 -1
- package/ts_build/tests/languagePlugin.test.js +0 -284
- package/ts_build/tests/languagePlugin.test.js.map +0 -1
- package/ts_build/tests/manual/agent-events/event-handler-reliability.test.d.ts +0 -1
- package/ts_build/tests/manual/agent-events/event-handler-reliability.test.js +0 -315
- package/ts_build/tests/manual/agent-events/event-handler-reliability.test.js.map +0 -1
- package/ts_build/tests/manual/persistent-input-test.d.ts +0 -1
- package/ts_build/tests/manual/persistent-input-test.js +0 -35
- package/ts_build/tests/manual/persistent-input-test.js.map +0 -1
- package/ts_build/tests/services/Plugins/plugin-event-integration.test.d.ts +0 -1
- package/ts_build/tests/services/Plugins/plugin-event-integration.test.js +0 -232
- package/ts_build/tests/services/Plugins/plugin-event-integration.test.js.map +0 -1
- package/ts_build/tests/tree-sitter/editor.test.d.ts +0 -1
- package/ts_build/tests/tree-sitter/editor.test.js +0 -85
- package/ts_build/tests/tree-sitter/editor.test.js.map +0 -1
- package/ts_build/tests/tree-sitter/invalid.test.d.ts +0 -1
- package/ts_build/tests/tree-sitter/invalid.test.js +0 -198
- package/ts_build/tests/tree-sitter/invalid.test.js.map +0 -1
- package/ts_build/tests/tree-sitter/paths/common-edits.test.d.ts +0 -1
- package/ts_build/tests/tree-sitter/paths/common-edits.test.js +0 -347
- package/ts_build/tests/tree-sitter/paths/common-edits.test.js.map +0 -1
- package/ts_build/tests/tree-sitter/paths/debug-exact-position.test.d.ts +0 -1
- package/ts_build/tests/tree-sitter/paths/debug-exact-position.test.js +0 -35
- package/ts_build/tests/tree-sitter/paths/debug-exact-position.test.js.map +0 -1
- package/ts_build/tests/tree-sitter/paths/debug-line-indexing.test.d.ts +0 -1
- package/ts_build/tests/tree-sitter/paths/debug-line-indexing.test.js +0 -38
- package/ts_build/tests/tree-sitter/paths/debug-line-indexing.test.js.map +0 -1
- package/ts_build/tests/tree-sitter/paths/debug-paths.test.d.ts +0 -1
- package/ts_build/tests/tree-sitter/paths/debug-paths.test.js +0 -74
- package/ts_build/tests/tree-sitter/paths/debug-paths.test.js.map +0 -1
- package/ts_build/tests/tree-sitter/paths/human-readable-paths.test.d.ts +0 -1
- package/ts_build/tests/tree-sitter/paths/human-readable-paths.test.js +0 -302
- package/ts_build/tests/tree-sitter/paths/human-readable-paths.test.js.map +0 -1
- package/ts_build/tests/tree-sitter/paths/paths.test.d.ts +0 -1
- package/ts_build/tests/tree-sitter/paths/paths.test.js +0 -116
- package/ts_build/tests/tree-sitter/paths/paths.test.js.map +0 -1
- package/ts_build/tests/tree-sitter/paths/simple-paths.test.d.ts +0 -1
- package/ts_build/tests/tree-sitter/paths/simple-paths.test.js +0 -302
- package/ts_build/tests/tree-sitter/paths/simple-paths.test.js.map +0 -1
- package/ts_build/tests/tree-sitter/sample-after.d.ts +0 -11
- package/ts_build/tests/tree-sitter/sample-after.js +0 -44
- package/ts_build/tests/tree-sitter/sample-after.js.map +0 -1
- package/ts_build/tests/tree-sitter/sample-before.d.ts +0 -9
- package/ts_build/tests/tree-sitter/sample-before.js +0 -28
- package/ts_build/tests/tree-sitter/sample-before.js.map +0 -1
- package/ts_build/tests/tree-sitter/test-files/completely-broken.d.ts +0 -2
- package/ts_build/tests/tree-sitter/test-files/completely-broken.js +0 -17
- package/ts_build/tests/tree-sitter/test-files/completely-broken.js.map +0 -1
- package/ts_build/tests/tree-sitter/test-files/duplicate-braces.d.ts +0 -8
- package/ts_build/tests/tree-sitter/test-files/duplicate-braces.js +0 -38
- package/ts_build/tests/tree-sitter/test-files/duplicate-braces.js.map +0 -1
- package/ts_build/tests/tree-sitter/test-files/invalid-nesting.d.ts +0 -8
- package/ts_build/tests/tree-sitter/test-files/invalid-nesting.js +0 -38
- package/ts_build/tests/tree-sitter/test-files/invalid-nesting.js.map +0 -1
- package/ts_build/tests/tree-sitter/test-files/malformed-signature.d.ts +0 -8
- package/ts_build/tests/tree-sitter/test-files/malformed-signature.js +0 -38
- package/ts_build/tests/tree-sitter/test-files/malformed-signature.js.map +0 -1
- package/ts_build/tests/tree-sitter/test-files/mismatched-parens.d.ts +0 -10
- package/ts_build/tests/tree-sitter/test-files/mismatched-parens.js +0 -38
- package/ts_build/tests/tree-sitter/test-files/mismatched-parens.js.map +0 -1
- package/ts_build/tests/tree-sitter/test-files/missing-semicolon.d.ts +0 -8
- package/ts_build/tests/tree-sitter/test-files/missing-semicolon.js +0 -38
- package/ts_build/tests/tree-sitter/test-files/missing-semicolon.js.map +0 -1
- package/ts_build/tests/tree-sitter/test-files/partially-broken.d.ts +0 -6
- package/ts_build/tests/tree-sitter/test-files/partially-broken.js +0 -20
- package/ts_build/tests/tree-sitter/test-files/partially-broken.js.map +0 -1
- package/ts_build/tests/tree-sitter/test-files/specific-errors.d.ts +0 -7
- package/ts_build/tests/tree-sitter/test-files/specific-errors.js +0 -14
- package/ts_build/tests/tree-sitter/test-files/specific-errors.js.map +0 -1
- package/ts_build/tests/tree-sitter/test-files/unclosed-string.d.ts +0 -8
- package/ts_build/tests/tree-sitter/test-files/unclosed-string.js +0 -38
- package/ts_build/tests/tree-sitter/test-files/unclosed-string.js.map +0 -1
- package/ts_build/tests/tree-sitter/tree-sitter.test.d.ts +0 -0
- package/ts_build/tests/tree-sitter/tree-sitter.test.js +0 -4
- package/ts_build/tests/tree-sitter/tree-sitter.test.js.map +0 -1
- package/ts_build/tests/worker/handlers/proxyHandler.test.d.ts +0 -1
- package/ts_build/tests/worker/handlers/proxyHandler.test.js +0 -170
- package/ts_build/tests/worker/handlers/proxyHandler.test.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tyvm/knowhow",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.94",
|
|
4
4
|
"description": "ai cli with plugins and agents",
|
|
5
5
|
"main": "ts_build/src/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
"scripts": {
|
|
10
10
|
"test": "jest --testTimeout 300000",
|
|
11
11
|
"test:debug": "node --inspect-brk ../../node_modules/jest/bin/jest.js --detectOpenHandles --forceExit --testTimeout 300000",
|
|
12
|
-
"compile": "tsc",
|
|
12
|
+
"compile": "npm run clean && tsc",
|
|
13
|
+
"clean": "rm -rf ts_build",
|
|
13
14
|
"start": "npm run compile && node --no-node-snapshot ts_build/src/server/index.js",
|
|
14
15
|
"dataset:diffs:generate": "ts-node src/dataset/diffs/generate.ts",
|
|
15
16
|
"dataset:diffs:jsonl": "ts-node src/dataset/diffs/jsonl.ts",
|
package/ts_build/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tyvm/knowhow",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.94",
|
|
4
4
|
"description": "ai cli with plugins and agents",
|
|
5
5
|
"main": "ts_build/src/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
"scripts": {
|
|
10
10
|
"test": "jest --testTimeout 300000",
|
|
11
11
|
"test:debug": "node --inspect-brk ../../node_modules/jest/bin/jest.js --detectOpenHandles --forceExit --testTimeout 300000",
|
|
12
|
-
"compile": "tsc",
|
|
12
|
+
"compile": "npm run clean && tsc",
|
|
13
|
+
"clean": "rm -rf ts_build",
|
|
13
14
|
"start": "npm run compile && node --no-node-snapshot ts_build/src/server/index.js",
|
|
14
15
|
"dataset:diffs:generate": "ts-node src/dataset/diffs/generate.ts",
|
|
15
16
|
"dataset:diffs:jsonl": "ts-node src/dataset/diffs/jsonl.ts",
|
package/ts_build/src/cli.js
CHANGED
|
File without changes
|
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
export declare const definitions: ({
|
|
2
|
-
type: string;
|
|
3
|
-
function: {
|
|
4
|
-
name: string;
|
|
5
|
-
description: string;
|
|
6
|
-
parameters: {
|
|
7
|
-
type: string;
|
|
8
|
-
positional: boolean;
|
|
9
|
-
properties: {
|
|
10
|
-
projectId: {
|
|
11
|
-
type: string;
|
|
12
|
-
description: string;
|
|
13
|
-
};
|
|
14
|
-
taskName: {
|
|
15
|
-
type: string;
|
|
16
|
-
description: string;
|
|
17
|
-
};
|
|
18
|
-
taskNotes: {
|
|
19
|
-
type: string;
|
|
20
|
-
description: string;
|
|
21
|
-
};
|
|
22
|
-
taskId?: undefined;
|
|
23
|
-
updates?: undefined;
|
|
24
|
-
searchTerm?: undefined;
|
|
25
|
-
project?: undefined;
|
|
26
|
-
};
|
|
27
|
-
required: string[];
|
|
28
|
-
};
|
|
29
|
-
returns: {
|
|
30
|
-
type: string;
|
|
31
|
-
description: string;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
} | {
|
|
35
|
-
type: string;
|
|
36
|
-
function: {
|
|
37
|
-
name: string;
|
|
38
|
-
description: string;
|
|
39
|
-
parameters: {
|
|
40
|
-
type: string;
|
|
41
|
-
positional: boolean;
|
|
42
|
-
properties: {
|
|
43
|
-
taskId: {
|
|
44
|
-
type: string;
|
|
45
|
-
description: string;
|
|
46
|
-
};
|
|
47
|
-
updates: {
|
|
48
|
-
type: string;
|
|
49
|
-
description: string;
|
|
50
|
-
};
|
|
51
|
-
projectId?: undefined;
|
|
52
|
-
taskName?: undefined;
|
|
53
|
-
taskNotes?: undefined;
|
|
54
|
-
searchTerm?: undefined;
|
|
55
|
-
project?: undefined;
|
|
56
|
-
};
|
|
57
|
-
required: string[];
|
|
58
|
-
};
|
|
59
|
-
returns: {
|
|
60
|
-
type: string;
|
|
61
|
-
description: string;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
} | {
|
|
65
|
-
type: string;
|
|
66
|
-
function: {
|
|
67
|
-
name: string;
|
|
68
|
-
description: string;
|
|
69
|
-
parameters: {
|
|
70
|
-
type: string;
|
|
71
|
-
positional: boolean;
|
|
72
|
-
properties: {
|
|
73
|
-
searchTerm: {
|
|
74
|
-
type: string;
|
|
75
|
-
description: string;
|
|
76
|
-
};
|
|
77
|
-
projectId?: undefined;
|
|
78
|
-
taskName?: undefined;
|
|
79
|
-
taskNotes?: undefined;
|
|
80
|
-
taskId?: undefined;
|
|
81
|
-
updates?: undefined;
|
|
82
|
-
project?: undefined;
|
|
83
|
-
};
|
|
84
|
-
required: string[];
|
|
85
|
-
};
|
|
86
|
-
returns: {
|
|
87
|
-
type: string;
|
|
88
|
-
description: string;
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
} | {
|
|
92
|
-
type: string;
|
|
93
|
-
function: {
|
|
94
|
-
name: string;
|
|
95
|
-
description: string;
|
|
96
|
-
parameters: {
|
|
97
|
-
type: string;
|
|
98
|
-
positional: boolean;
|
|
99
|
-
properties: {
|
|
100
|
-
projectId?: undefined;
|
|
101
|
-
taskName?: undefined;
|
|
102
|
-
taskNotes?: undefined;
|
|
103
|
-
taskId?: undefined;
|
|
104
|
-
updates?: undefined;
|
|
105
|
-
searchTerm?: undefined;
|
|
106
|
-
project?: undefined;
|
|
107
|
-
};
|
|
108
|
-
required: any[];
|
|
109
|
-
};
|
|
110
|
-
returns: {
|
|
111
|
-
type: string;
|
|
112
|
-
description: string;
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
} | {
|
|
116
|
-
type: string;
|
|
117
|
-
function: {
|
|
118
|
-
name: string;
|
|
119
|
-
description: string;
|
|
120
|
-
parameters: {
|
|
121
|
-
type: string;
|
|
122
|
-
positional: boolean;
|
|
123
|
-
properties: {
|
|
124
|
-
taskId: {
|
|
125
|
-
type: string;
|
|
126
|
-
description: string;
|
|
127
|
-
};
|
|
128
|
-
projectId?: undefined;
|
|
129
|
-
taskName?: undefined;
|
|
130
|
-
taskNotes?: undefined;
|
|
131
|
-
updates?: undefined;
|
|
132
|
-
searchTerm?: undefined;
|
|
133
|
-
project?: undefined;
|
|
134
|
-
};
|
|
135
|
-
required: string[];
|
|
136
|
-
};
|
|
137
|
-
returns: {
|
|
138
|
-
type: string;
|
|
139
|
-
description: string;
|
|
140
|
-
};
|
|
141
|
-
};
|
|
142
|
-
} | {
|
|
143
|
-
type: string;
|
|
144
|
-
function: {
|
|
145
|
-
name: string;
|
|
146
|
-
description: string;
|
|
147
|
-
parameters: {
|
|
148
|
-
type: string;
|
|
149
|
-
positional: boolean;
|
|
150
|
-
properties: {
|
|
151
|
-
project: {
|
|
152
|
-
type: string;
|
|
153
|
-
description: string;
|
|
154
|
-
};
|
|
155
|
-
projectId?: undefined;
|
|
156
|
-
taskName?: undefined;
|
|
157
|
-
taskNotes?: undefined;
|
|
158
|
-
taskId?: undefined;
|
|
159
|
-
updates?: undefined;
|
|
160
|
-
searchTerm?: undefined;
|
|
161
|
-
};
|
|
162
|
-
required: any[];
|
|
163
|
-
};
|
|
164
|
-
returns: {
|
|
165
|
-
type: string;
|
|
166
|
-
description: string;
|
|
167
|
-
};
|
|
168
|
-
};
|
|
169
|
-
} | {
|
|
170
|
-
type: string;
|
|
171
|
-
function: {
|
|
172
|
-
name: string;
|
|
173
|
-
description: string;
|
|
174
|
-
parameters: {
|
|
175
|
-
type: string;
|
|
176
|
-
positional: boolean;
|
|
177
|
-
properties: {
|
|
178
|
-
taskId: {
|
|
179
|
-
type: string;
|
|
180
|
-
description: string;
|
|
181
|
-
};
|
|
182
|
-
taskName: {
|
|
183
|
-
type: string;
|
|
184
|
-
description: string;
|
|
185
|
-
};
|
|
186
|
-
taskNotes: {
|
|
187
|
-
type: string;
|
|
188
|
-
description: string;
|
|
189
|
-
};
|
|
190
|
-
projectId?: undefined;
|
|
191
|
-
updates?: undefined;
|
|
192
|
-
searchTerm?: undefined;
|
|
193
|
-
project?: undefined;
|
|
194
|
-
};
|
|
195
|
-
required: string[];
|
|
196
|
-
};
|
|
197
|
-
returns: {
|
|
198
|
-
type: string;
|
|
199
|
-
description: string;
|
|
200
|
-
};
|
|
201
|
-
};
|
|
202
|
-
})[];
|
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.definitions = void 0;
|
|
4
|
-
exports.definitions = [
|
|
5
|
-
{
|
|
6
|
-
type: "function",
|
|
7
|
-
function: {
|
|
8
|
-
name: "createTask",
|
|
9
|
-
description: "Create a new task in Asana",
|
|
10
|
-
parameters: {
|
|
11
|
-
type: "object",
|
|
12
|
-
positional: true,
|
|
13
|
-
properties: {
|
|
14
|
-
projectId: {
|
|
15
|
-
type: "string",
|
|
16
|
-
description: "The ID of the project where the task will be created",
|
|
17
|
-
},
|
|
18
|
-
taskName: {
|
|
19
|
-
type: "string",
|
|
20
|
-
description: "The name of the task to be created",
|
|
21
|
-
},
|
|
22
|
-
taskNotes: {
|
|
23
|
-
type: "string",
|
|
24
|
-
description: "The notes or description of the task",
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
required: ["projectId", "taskName", "taskNotes"],
|
|
28
|
-
},
|
|
29
|
-
returns: {
|
|
30
|
-
type: "object",
|
|
31
|
-
description: "The created task object",
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
type: "function",
|
|
37
|
-
function: {
|
|
38
|
-
name: "updateTask",
|
|
39
|
-
description: "Update an existing task in Asana",
|
|
40
|
-
parameters: {
|
|
41
|
-
type: "object",
|
|
42
|
-
positional: true,
|
|
43
|
-
properties: {
|
|
44
|
-
taskId: {
|
|
45
|
-
type: "string",
|
|
46
|
-
description: "The ID of the task to be updated",
|
|
47
|
-
},
|
|
48
|
-
updates: {
|
|
49
|
-
type: "object",
|
|
50
|
-
description: "An object containing the updates to be applied to the task",
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
required: ["taskId", "updates"],
|
|
54
|
-
},
|
|
55
|
-
returns: {
|
|
56
|
-
type: "object",
|
|
57
|
-
description: "The updated task object",
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
type: "function",
|
|
63
|
-
function: {
|
|
64
|
-
name: "searchTasks",
|
|
65
|
-
description: "Search for tasks in Asana based on a search term",
|
|
66
|
-
parameters: {
|
|
67
|
-
type: "object",
|
|
68
|
-
positional: true,
|
|
69
|
-
properties: {
|
|
70
|
-
searchTerm: {
|
|
71
|
-
type: "string",
|
|
72
|
-
description: "The term to search for in task names and notes",
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
required: ["searchTerm"],
|
|
76
|
-
},
|
|
77
|
-
returns: {
|
|
78
|
-
type: "array",
|
|
79
|
-
description: "An array of tasks that match the search term",
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
type: "function",
|
|
85
|
-
function: {
|
|
86
|
-
name: "listProjects",
|
|
87
|
-
description: "List all projects in Asana",
|
|
88
|
-
parameters: {
|
|
89
|
-
type: "object",
|
|
90
|
-
positional: true,
|
|
91
|
-
properties: {},
|
|
92
|
-
required: [],
|
|
93
|
-
},
|
|
94
|
-
returns: {
|
|
95
|
-
type: "array",
|
|
96
|
-
description: "An array of project objects",
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
type: "function",
|
|
102
|
-
function: {
|
|
103
|
-
name: "findTask",
|
|
104
|
-
description: "Find a specific task in Asana by its ID",
|
|
105
|
-
parameters: {
|
|
106
|
-
type: "object",
|
|
107
|
-
positional: true,
|
|
108
|
-
properties: {
|
|
109
|
-
taskId: {
|
|
110
|
-
type: "string",
|
|
111
|
-
description: "The ID of the task to be found",
|
|
112
|
-
},
|
|
113
|
-
},
|
|
114
|
-
required: ["taskId"],
|
|
115
|
-
},
|
|
116
|
-
returns: {
|
|
117
|
-
type: "object",
|
|
118
|
-
description: "The task object that matches the given ID",
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
type: "function",
|
|
124
|
-
function: {
|
|
125
|
-
name: "myTasks",
|
|
126
|
-
description: "Retrieve tasks assigned to the current user in Asana, only shows the uncompleted ones",
|
|
127
|
-
parameters: {
|
|
128
|
-
type: "object",
|
|
129
|
-
positional: true,
|
|
130
|
-
properties: {
|
|
131
|
-
project: {
|
|
132
|
-
type: "string",
|
|
133
|
-
description: "The ID of the project to filter tasks by (optional)",
|
|
134
|
-
},
|
|
135
|
-
},
|
|
136
|
-
required: [],
|
|
137
|
-
},
|
|
138
|
-
returns: {
|
|
139
|
-
type: "array",
|
|
140
|
-
description: "An array of tasks assigned to the current user",
|
|
141
|
-
},
|
|
142
|
-
},
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
type: "function",
|
|
146
|
-
function: {
|
|
147
|
-
name: "getSubtasks",
|
|
148
|
-
description: "Retrieve all subtasks for a given Asana task.",
|
|
149
|
-
parameters: {
|
|
150
|
-
type: "object",
|
|
151
|
-
positional: true,
|
|
152
|
-
properties: {
|
|
153
|
-
taskId: {
|
|
154
|
-
type: "string",
|
|
155
|
-
description: "The ID of the parent task for which to retrieve subtasks.",
|
|
156
|
-
},
|
|
157
|
-
},
|
|
158
|
-
required: ["taskId"],
|
|
159
|
-
},
|
|
160
|
-
returns: {
|
|
161
|
-
type: "array",
|
|
162
|
-
description: "An array of subtasks associated with the specified parent task.",
|
|
163
|
-
},
|
|
164
|
-
},
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
type: "function",
|
|
168
|
-
function: {
|
|
169
|
-
name: "createSubtask",
|
|
170
|
-
description: "Create a new subtask under a given Asana task.",
|
|
171
|
-
parameters: {
|
|
172
|
-
type: "object",
|
|
173
|
-
positional: true,
|
|
174
|
-
properties: {
|
|
175
|
-
taskId: {
|
|
176
|
-
type: "string",
|
|
177
|
-
description: "The ID of the parent task under which the subtask will be created.",
|
|
178
|
-
},
|
|
179
|
-
taskName: {
|
|
180
|
-
type: "string",
|
|
181
|
-
description: "The name of the subtask to be created.",
|
|
182
|
-
},
|
|
183
|
-
taskNotes: {
|
|
184
|
-
type: "string",
|
|
185
|
-
description: "The optional notes or description of the subtask.",
|
|
186
|
-
},
|
|
187
|
-
},
|
|
188
|
-
required: ["taskId", "taskName"],
|
|
189
|
-
},
|
|
190
|
-
returns: {
|
|
191
|
-
type: "object",
|
|
192
|
-
description: "The created subtask object.",
|
|
193
|
-
},
|
|
194
|
-
},
|
|
195
|
-
},
|
|
196
|
-
];
|
|
197
|
-
//# sourceMappingURL=definitions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../../../../src/agents/tools/asana/definitions.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG;IACzB;QACE,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE;YACR,IAAI,EAAE,YAAY;YACl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E,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE;YACR,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,+CAA+C;YAC5D,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE,IAAI;gBAChB,UAAU,EAAE;oBACV,MAAM,EAAE;wBACN,IAAI,EAAE,QAAQ;wBACd,WAAW,EACT,2DAA2D;qBAC9D;iBACF;gBACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;aACrB;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,OAAO;gBACb,WAAW,EACT,iEAAiE;aACpE;SACF;KACF;IACD;QACE,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE;YACR,IAAI,EAAE,eAAe;YACrB,WAAW,EAAE,gDAAgD;YAC7D,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE,IAAI;gBAChB,UAAU,EAAE;oBACV,MAAM,EAAE;wBACN,IAAI,EAAE,QAAQ;wBACd,WAAW,EACT,oEAAoE;qBACvE;oBACD,QAAQ,EAAE;wBACR,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,wCAAwC;qBACtD;oBACD,SAAS,EAAE;wBACT,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,mDAAmD;qBACjE;iBACF;gBACD,QAAQ,EAAE,CAAC,QAAQ,EAAE,UAAU,CAAC;aACjC;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,6BAA6B;aAC3C;SACF;KACF;CACF,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const createTask: any;
|
|
2
|
-
export declare const updateTask: any;
|
|
3
|
-
export declare const searchTasks: any;
|
|
4
|
-
export declare const findTask: any;
|
|
5
|
-
export declare const getSubtasks: any;
|
|
6
|
-
export declare const createSubtask: any;
|
|
7
|
-
export declare const myTasks: any;
|
|
8
|
-
export declare const listProjects: any;
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.listProjects = exports.myTasks = exports.createSubtask = exports.getSubtasks = exports.findTask = exports.searchTasks = exports.updateTask = exports.createTask = void 0;
|
|
4
|
-
const workspace = process.env.ASANA_WORKSPACE;
|
|
5
|
-
class AsanaTools {
|
|
6
|
-
accessToken;
|
|
7
|
-
client = require("asana").ApiClient.instance;
|
|
8
|
-
constructor(accessToken) {
|
|
9
|
-
this.accessToken = accessToken;
|
|
10
|
-
this.client.authentications.token = process.env.ASANA_TOKEN;
|
|
11
|
-
this.client.defaultHeaders = {
|
|
12
|
-
"Asana-Enable": "new_user_task_lists,new_goal_memberships",
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
async createTask(projectId, taskName, taskNotes) {
|
|
16
|
-
if (!workspace) {
|
|
17
|
-
throw new Error("Need to set ENV Variable ASANA Workspace");
|
|
18
|
-
}
|
|
19
|
-
const task = await this.client.tasks.create({
|
|
20
|
-
workspace,
|
|
21
|
-
projects: [projectId],
|
|
22
|
-
name: taskName,
|
|
23
|
-
notes: taskNotes,
|
|
24
|
-
});
|
|
25
|
-
console.log(`Task created: ${task.permalink_url}`);
|
|
26
|
-
return task;
|
|
27
|
-
}
|
|
28
|
-
async updateTask(taskId, updates) {
|
|
29
|
-
const task = await this.client.tasks.updateTask(taskId, updates);
|
|
30
|
-
console.log(`Task updated: ${task.permalink_url}`);
|
|
31
|
-
return task;
|
|
32
|
-
}
|
|
33
|
-
async searchTasks(searchTerm) {
|
|
34
|
-
if (!workspace) {
|
|
35
|
-
throw new Error("Need to set ENV Variable ASANA Workspace");
|
|
36
|
-
}
|
|
37
|
-
searchTerm = searchTerm.toLowerCase();
|
|
38
|
-
const allTasks = await this.client.tasks.findAll({
|
|
39
|
-
opt_expand: "notes",
|
|
40
|
-
workspace,
|
|
41
|
-
});
|
|
42
|
-
const found = allTasks.data.filter((t) => t.notes.toLowerCase().includes(searchTerm) ||
|
|
43
|
-
t.name.toLowerCase().includes(searchTerm));
|
|
44
|
-
console.log("Found", found.length, "tasks");
|
|
45
|
-
return found;
|
|
46
|
-
}
|
|
47
|
-
async findTask(taskId) {
|
|
48
|
-
const task = await this.client.tasks.findById(taskId);
|
|
49
|
-
console.log(`Task found: ${task.permalink_url}`);
|
|
50
|
-
return task;
|
|
51
|
-
}
|
|
52
|
-
async getSubtasks(taskId) {
|
|
53
|
-
const tasks = await this.client.tasks.subtasks(taskId);
|
|
54
|
-
return tasks.data;
|
|
55
|
-
}
|
|
56
|
-
async createSubtask(taskId, taskName, taskNotes = "") {
|
|
57
|
-
const task = await this.client.tasks.addSubtask(taskId, {
|
|
58
|
-
name: taskName,
|
|
59
|
-
notes: taskNotes,
|
|
60
|
-
});
|
|
61
|
-
return task;
|
|
62
|
-
}
|
|
63
|
-
async myTasks(project) {
|
|
64
|
-
const me = await this.client.users.me();
|
|
65
|
-
const tasks = await this.client.tasks.findAll({
|
|
66
|
-
assignee: Number(me.gid),
|
|
67
|
-
project,
|
|
68
|
-
workspace,
|
|
69
|
-
opt_expand: "completed",
|
|
70
|
-
});
|
|
71
|
-
return tasks.data.filter((t) => !t.completed);
|
|
72
|
-
}
|
|
73
|
-
async listProjects() {
|
|
74
|
-
if (!workspace) {
|
|
75
|
-
throw new Error("Need to set ENV Variable ASANA Workspace");
|
|
76
|
-
}
|
|
77
|
-
const allData = [];
|
|
78
|
-
let projects = await this.client.projects.findAll({
|
|
79
|
-
workspace,
|
|
80
|
-
archived: false,
|
|
81
|
-
});
|
|
82
|
-
do {
|
|
83
|
-
allData.push(...projects.data);
|
|
84
|
-
projects = await projects.nextPage();
|
|
85
|
-
} while (projects && projects?.data?.length);
|
|
86
|
-
return allData;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
const asana = new AsanaTools(process.env.ASANA_TOKEN);
|
|
90
|
-
exports.createTask = asana.createTask.bind(asana);
|
|
91
|
-
exports.updateTask = asana.updateTask.bind(asana);
|
|
92
|
-
exports.searchTasks = asana.searchTasks.bind(asana);
|
|
93
|
-
exports.findTask = asana.findTask.bind(asana);
|
|
94
|
-
exports.getSubtasks = asana.getSubtasks.bind(asana);
|
|
95
|
-
exports.createSubtask = asana.createSubtask.bind(asana);
|
|
96
|
-
exports.myTasks = asana.myTasks.bind(asana);
|
|
97
|
-
exports.listProjects = asana.listProjects.bind(asana);
|
|
98
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/agents/tools/asana/index.ts"],"names":[],"mappings":";;;AAAA,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC;AAC9C,MAAM,UAAU;IAGM;IAFZ,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC;IAErD,YAAoB,WAAmB;QAAnB,gBAAW,GAAX,WAAW,CAAQ;QACrC,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC;QAC5D,IAAI,CAAC,MAAM,CAAC,cAAc,GAAG;YAC3B,cAAc,EAAE,0CAA0C;SAC3D,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,SAAiB,EAAE,QAAgB,EAAE,SAAiB;QACrE,IAAI,CAAC,SAAS,EAAE;YACd,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;SAC7D;QAED,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC;YAC1C,SAAS;YACT,QAAQ,EAAE,CAAC,SAAS,CAAC;YACrB,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,SAAS;SACjB,CAAC,CAAC;QACH,OAAO,CAAC,GAAG,CAAC,iBAAiB,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC;QACnD,OAAO,IAAI,CAAC;IACd,CAA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QAAQ,EAAE,CAAC;SACtC,QAAQ,QAAQ,IAAI,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE;QAE7C,OAAO,OAAO,CAAC;IACjB,CAAC;CACF;AAED,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;AACzC,QAAA,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC1C,QAAA,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC1C,QAAA,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC5C,QAAA,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACtC,QAAA,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC5C,QAAA,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAChD,QAAA,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACpC,QAAA,YAAY,GAAG,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function astAppendNode(...args: any[]): Promise<string>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.astAppendNode = void 0;
|
|
4
|
-
async function astAppendNode(...args) {
|
|
5
|
-
throw new Error("AST tools require @tyvm/knowhow-module-ast to be installed and configured in knowhow.json modules.");
|
|
6
|
-
}
|
|
7
|
-
exports.astAppendNode = astAppendNode;
|
|
8
|
-
//# sourceMappingURL=astAppendNode.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"astAppendNode.js","sourceRoot":"","sources":["../../../../../src/agents/tools/ast/astAppendNode.ts"],"names":[],"mappings":";;;AAIO,KAAK,UAAU,aAAa,CAAC,GAAG,IAAW;IAChD,MAAM,IAAI,KAAK,CACb,oGAAoG,CACrG,CAAC;AACJ,CAAC;AAJD,sCAIC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function astDeleteNode(...args: any[]): Promise<string>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.astDeleteNode = void 0;
|
|
4
|
-
async function astDeleteNode(...args) {
|
|
5
|
-
throw new Error("AST tools require @tyvm/knowhow-module-ast to be installed and configured in knowhow.json modules.");
|
|
6
|
-
}
|
|
7
|
-
exports.astDeleteNode = astDeleteNode;
|
|
8
|
-
//# sourceMappingURL=astDeleteNode.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"astDeleteNode.js","sourceRoot":"","sources":["../../../../../src/agents/tools/ast/astDeleteNode.ts"],"names":[],"mappings":";;;AAIO,KAAK,UAAU,aAAa,CAAC,GAAG,IAAW;IAChD,MAAM,IAAI,KAAK,CACb,oGAAoG,CACrG,CAAC;AACJ,CAAC;AAJD,sCAIC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function astEditNode(...args: any[]): Promise<string>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.astEditNode = void 0;
|
|
4
|
-
async function astEditNode(...args) {
|
|
5
|
-
throw new Error("AST tools require @tyvm/knowhow-module-ast to be installed and configured in knowhow.json modules.");
|
|
6
|
-
}
|
|
7
|
-
exports.astEditNode = astEditNode;
|
|
8
|
-
//# sourceMappingURL=astEditNode.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"astEditNode.js","sourceRoot":"","sources":["../../../../../src/agents/tools/ast/astEditNode.ts"],"names":[],"mappings":";;;AAIO,KAAK,UAAU,WAAW,CAAC,GAAG,IAAW;IAC9C,MAAM,IAAI,KAAK,CACb,oGAAoG,CACrG,CAAC;AACJ,CAAC;AAJD,kCAIC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function astGetPathForLine(...args: any[]): Promise<string>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.astGetPathForLine = void 0;
|
|
4
|
-
async function astGetPathForLine(...args) {
|
|
5
|
-
throw new Error("AST tools require @tyvm/knowhow-module-ast to be installed and configured in knowhow.json modules.");
|
|
6
|
-
}
|
|
7
|
-
exports.astGetPathForLine = astGetPathForLine;
|
|
8
|
-
//# sourceMappingURL=astGetPathForLine.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"astGetPathForLine.js","sourceRoot":"","sources":["../../../../../src/agents/tools/ast/astGetPathForLine.ts"],"names":[],"mappings":";;;AAIO,KAAK,UAAU,iBAAiB,CAAC,GAAG,IAAW;IACpD,MAAM,IAAI,KAAK,CACb,oGAAoG,CACrG,CAAC;AACJ,CAAC;AAJD,8CAIC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function astListPaths(...args: any[]): Promise<string>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.astListPaths = void 0;
|
|
4
|
-
async function astListPaths(...args) {
|
|
5
|
-
throw new Error("AST tools require @tyvm/knowhow-module-ast to be installed and configured in knowhow.json modules.");
|
|
6
|
-
}
|
|
7
|
-
exports.astListPaths = astListPaths;
|
|
8
|
-
//# sourceMappingURL=astListPaths.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"astListPaths.js","sourceRoot":"","sources":["../../../../../src/agents/tools/ast/astListPaths.ts"],"names":[],"mappings":";;;AAIO,KAAK,UAAU,YAAY,CAAC,GAAG,IAAW;IAC/C,MAAM,IAAI,KAAK,CACb,oGAAoG,CACrG,CAAC;AACJ,CAAC;AAJD,oCAIC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.astGetPathForLine = exports.astListPaths = exports.astDeleteNode = exports.astAppendNode = exports.astEditNode = void 0;
|
|
4
|
-
var astEditNode_1 = require("./astEditNode");
|
|
5
|
-
Object.defineProperty(exports, "astEditNode", { enumerable: true, get: function () { return astEditNode_1.astEditNode; } });
|
|
6
|
-
var astAppendNode_1 = require("./astAppendNode");
|
|
7
|
-
Object.defineProperty(exports, "astAppendNode", { enumerable: true, get: function () { return astAppendNode_1.astAppendNode; } });
|
|
8
|
-
var astDeleteNode_1 = require("./astDeleteNode");
|
|
9
|
-
Object.defineProperty(exports, "astDeleteNode", { enumerable: true, get: function () { return astDeleteNode_1.astDeleteNode; } });
|
|
10
|
-
var astListPaths_1 = require("./astListPaths");
|
|
11
|
-
Object.defineProperty(exports, "astListPaths", { enumerable: true, get: function () { return astListPaths_1.astListPaths; } });
|
|
12
|
-
var astGetPathForLine_1 = require("./astGetPathForLine");
|
|
13
|
-
Object.defineProperty(exports, "astGetPathForLine", { enumerable: true, get: function () { return astGetPathForLine_1.astGetPathForLine; } });
|
|
14
|
-
//# sourceMappingURL=index.js.map
|