codecane 1.0.181 → 1.0.184
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/checkpoint-file-manager.d.ts +25 -3
- package/dist/checkpoint-file-manager.js +64 -43
- package/dist/checkpoint-file-manager.js.map +1 -1
- package/dist/checkpoints.d.ts +3 -1
- package/dist/checkpoints.js +25 -27
- package/dist/checkpoints.js.map +1 -1
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +7 -2
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +8 -8
- package/dist/client.js +12 -20
- package/dist/client.js.map +1 -1
- package/dist/code-map/tsconfig.tsbuildinfo +1 -1
- package/dist/common/actions.d.ts +195 -195
- package/dist/common/browser-actions.d.ts +48 -48
- package/dist/common/constants.js +1 -8
- package/dist/common/constants.js.map +1 -1
- package/dist/common/types/agent-state.d.ts +20 -20
- package/dist/common/types/message.d.ts +16 -16
- package/dist/common/util/file.d.ts +4 -4
- package/dist/common/util/saxy.js +8 -5
- package/dist/common/util/saxy.js.map +1 -1
- package/dist/common/websockets/websocket-schema.d.ts +518 -518
- package/dist/config.js +1 -1
- package/dist/config.js.map +1 -1
- package/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/dist/project-files.d.ts +2 -2
- package/dist/update-codebuff.js +26 -26
- package/dist/utils/__tests__/xml-stream-parser.test.js +65 -6
- package/dist/utils/__tests__/xml-stream-parser.test.js.map +1 -1
- package/dist/utils/tool-renderers.d.ts +16 -0
- package/dist/utils/tool-renderers.js +105 -0
- package/dist/utils/tool-renderers.js.map +1 -0
- package/dist/utils/xml-stream-parser.d.ts +1 -16
- package/dist/utils/xml-stream-parser.js +3 -104
- package/dist/utils/xml-stream-parser.js.map +1 -1
- package/dist/web-scraper.js +4 -8
- package/dist/web-scraper.js.map +1 -1
- package/dist/worker-script-project-context.js +4 -0
- package/dist/worker-script-project-context.js.map +1 -1
- package/package.json +2 -2
package/dist/web-scraper.js
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.scrapeWebPage = scrapeWebPage;
|
|
7
4
|
exports.parseUrlsFromContent = parseUrlsFromContent;
|
|
8
5
|
exports.getScrapedContentBlocks = getScrapedContentBlocks;
|
|
9
|
-
const axios_1 = __importDefault(require("axios"));
|
|
10
6
|
const string_1 = require("./common/util/string");
|
|
11
7
|
// Global cache for scraped web pages
|
|
12
8
|
const scrapedPagesCache = {};
|
|
@@ -19,12 +15,12 @@ async function scrapeWebPage(url) {
|
|
|
19
15
|
let content = '';
|
|
20
16
|
const fullUrl = (0, string_1.ensureUrlProtocol)(url);
|
|
21
17
|
if (fullUrl.startsWith('https://raw.githubusercontent.com/')) {
|
|
22
|
-
const response = await
|
|
23
|
-
content = response.
|
|
18
|
+
const response = await fetch(url);
|
|
19
|
+
content = await response.text();
|
|
24
20
|
}
|
|
25
21
|
else {
|
|
26
|
-
const response = await
|
|
27
|
-
content = response.
|
|
22
|
+
const response = await fetch(`https://r.jina.ai/${url}`);
|
|
23
|
+
content = await response.text();
|
|
28
24
|
}
|
|
29
25
|
// Store the scraped content in the cache
|
|
30
26
|
scrapedPagesCache[url] = content;
|
package/dist/web-scraper.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web-scraper.js","sourceRoot":"","sources":["../src/web-scraper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"web-scraper.js","sourceRoot":"","sources":["../src/web-scraper.ts"],"names":[],"mappings":";;AAKA,sCA4BC;AAED,oDAGC;AAGD,0DAgBC;AAzDD,+CAAsD;AAEtD,qCAAqC;AACrC,MAAM,iBAAiB,GAA2B,EAAE,CAAA;AAE7C,KAAK,UAAU,aAAa,CAAC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aAAa,CAAC,GAAG,CAAC,CAAA;QAC/C,MAAM,uBAAuB,GAC3B,cAAc,CAAC,MAAM,GAAG,0BAA0B;YAChD,CAAC,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,EAAE,0BAA0B,CAAC;gBACnD,8CAA8C;YAChD,CAAC,CAAC,cAAc,CAAA;QACpB,IAAI,uBAAuB,EAAE,CAAC;YAC5B,MAAM,CAAC,IAAI,CACT,6BAA6B,GAAG,OAAO,uBAAuB,0BAA0B,CACzF,CAAA;QACH,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAA;AACf,CAAC"}
|
|
@@ -2,11 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const worker_threads_1 = require("worker_threads");
|
|
4
4
|
const project_files_1 = require("./project-files");
|
|
5
|
+
const checkpoint_file_manager_1 = require("./checkpoint-file-manager");
|
|
6
|
+
const project_file_tree_1 = require("./common/project-file-tree");
|
|
5
7
|
if (worker_threads_1.parentPort) {
|
|
6
8
|
const parentPort = worker_threads_1.parentPort;
|
|
7
9
|
parentPort.on('message', async ({ dir }) => {
|
|
8
10
|
(0, project_files_1.setProjectRoot)(dir);
|
|
9
11
|
const initFileContext = await (0, project_files_1.getProjectFileContext)(dir, {});
|
|
12
|
+
const relativeFilepaths = (0, project_file_tree_1.getAllFilePaths)(initFileContext.fileTree);
|
|
13
|
+
await (0, checkpoint_file_manager_1.initializeCheckpointFileManager)({ projectDir: dir, relativeFilepaths });
|
|
10
14
|
parentPort.postMessage(initFileContext);
|
|
11
15
|
});
|
|
12
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker-script-project-context.js","sourceRoot":"","sources":["../src/worker-script-project-context.ts"],"names":[],"mappings":";;AAAA,mDAA8D;AAC9D,mDAAuE;
|
|
1
|
+
{"version":3,"file":"worker-script-project-context.js","sourceRoot":"","sources":["../src/worker-script-project-context.ts"],"names":[],"mappings":";;AAAA,mDAA8D;AAC9D,mDAAuE;AACvE,uEAA2E;AAC3E,gEAA0D;AAE1D,IAAI,2BAAe,EAAE,CAAC;IACpB,MAAM,UAAU,GAAG,2BAAe,CAAA;IAElC,UAAU,CAAC,EAAE,CAAC,SAAS,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;QACzC,IAAA,8BAAc,EAAC,GAAG,CAAC,CAAA;QACnB,MAAM,eAAe,GAAG,MAAM,IAAA,qCAAqB,EAAC,GAAG,EAAE,EAAE,CAAC,CAAA;QAE5D,MAAM,iBAAiB,GAAG,IAAA,mCAAe,EAAC,eAAe,CAAC,QAAQ,CAAC,CAAA;QACnE,MAAM,IAAA,yDAA+B,EAAC,EAAE,UAAU,EAAE,GAAG,EAAE,iBAAiB,EAAE,CAAC,CAAA;QAE7E,UAAU,CAAC,WAAW,CAAC,eAAe,CAAC,CAAA;IACzC,CAAC,CAAC,CAAA;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codecane",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.184",
|
|
4
4
|
"description": "AI dev assistant",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"README.md"
|
|
36
36
|
],
|
|
37
37
|
"engines": {
|
|
38
|
-
"node": ">=
|
|
38
|
+
"node": ">=18"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@types/diff": "5.2.1",
|