Skip to content

Commit 8f0d20c

Browse files
committed
Fix: Change name after update new version
1 parent 432c70b commit 8f0d20c

55 files changed

Lines changed: 179 additions & 232 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README-update-branches-tags.md

Lines changed: 0 additions & 52 deletions
This file was deleted.

binary/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ async function buildWithEsbuild() {
9393
{
9494
name: "binary",
9595
version: "1.0.0",
96-
author: "Rabiloo Co. LTD",
96+
author: "Rabiloo Co., Ltd",
9797
license: "Apache-2.0",
9898
},
9999
undefined,

binary/core-dev-server.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
const path = require("path");
22
process.env.CONTINUE_DEVELOPMENT = true;
33

4-
process.env.CONTINUE_GLOBAL_DIR = path.join(process.env.PROJECT_DIR, 'extensions', '.ethery-debug');
4+
process.env.CONTINUE_GLOBAL_DIR = path.join(
5+
process.env.PROJECT_DIR,
6+
"extensions",
7+
".ethery-debug",
8+
);
59

610
require("./out/index.js");

binary/package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

binary/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "binary",
33
"version": "1.0.0",
4-
"author": "Continue Dev, Inc",
4+
"author": "Rabiloo Co., Ltd",
55
"description": "",
66
"main": "out/index.js",
77
"bin": "out/index.js",

binary/prompt-logs.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
const fs = require("fs");
22
const path = require("path");
33

4-
const logDirPath = path.join(__dirname, '..', 'extensions', '.ethery-debug', 'logs');
4+
const logDirPath = path.join(
5+
__dirname,
6+
"..",
7+
"extensions",
8+
".ethery-debug",
9+
"logs",
10+
);
511
const logFilePath = path.join(logDirPath, "prompt.log");
612

713
// Ensure the log directory exists

core/autocomplete/templating/filtering.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -137,26 +137,6 @@ export const getSnippets = (
137137
}))
138138
.sort((a, b) => a.priority - b.priority);
139139

140-
// Log the snippet order for debugging - uncomment if needed
141-
/* console.log(
142-
'Snippet processing order:',
143-
snippetOrder
144-
.map(({ key, priority }) => `${key} (priority: ${priority})`).join("\n")
145-
); */
146-
147-
// Convert configs to prioritized snippets
148-
let prioritizedSnippets = snippetOrder
149-
.flatMap(({ key, priority }) =>
150-
snippets[key].map(snippet => ({ snippet, priority }))
151-
)
152-
.sort((a, b) => a.priority - b.priority)
153-
.map(({ snippet }) => snippet);
154-
155-
// Exclude Continue's own output as it makes it super-hard for users to test the autocomplete feature
156-
// while looking at the prompts in the Continue's output
157-
prioritizedSnippets = prioritizedSnippets.filter((snippet) =>
158-
!(snippet as AutocompleteCodeSnippet).filepath?.startsWith("output:extension-output-Rabiloo.ethery"));
159-
160140
const finalSnippets = [];
161141
let remainingTokenCount = getRemainingTokenCount(helper);
162142

core/config/loadLocalAssistants.vitest.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ describe("ASSISTANTS getAllDotContinueDefinitionFiles with fileExtType option",
1313

1414
// Add test files to the test directory
1515
addToTestDir([
16-
".continue/assistants/",
17-
[".continue/assistants/assistant1.yaml", "yaml content 1"],
18-
[".continue/assistants/assistant2.yml", "yaml content 2"],
19-
[".continue/assistants/assistant3.md", "markdown content 1"],
20-
[".continue/assistants/assistant4.txt", "txt content"],
16+
".ethery/assistants/",
17+
[".ethery/assistants/assistant1.yaml", "yaml content 1"],
18+
[".ethery/assistants/assistant2.yml", "yaml content 2"],
19+
[".ethery/assistants/assistant3.md", "markdown content 1"],
20+
[".ethery/assistants/assistant4.txt", "txt content"],
2121
]);
2222
});
2323

@@ -136,9 +136,9 @@ describe("ASSISTANTS getAllDotContinueDefinitionFiles with fileExtType option",
136136
walkDirCache.invalidate();
137137
setUpTestDir();
138138
addToTestDir([
139-
".continue/assistants/",
140-
[".continue/assistants/nonmatch1.txt", "txt content"],
141-
[".continue/assistants/nonmatch2.json", "json content"],
139+
".ethery/assistants/",
140+
[".ethery/assistants/nonmatch1.txt", "txt content"],
141+
[".ethery/assistants/nonmatch2.json", "json content"],
142142
]);
143143

144144
const options: LoadAssistantFilesOptions = {
@@ -195,9 +195,9 @@ describe("ASSISTANTS getAllDotContinueDefinitionFiles with fileExtType option",
195195
it("should filter by file extension case sensitively", async () => {
196196
// Add files with uppercase extensions
197197
addToTestDir([
198-
[".continue/assistants/assistant5.YAML", "uppercase yaml"],
199-
[".continue/assistants/assistant6.YML", "uppercase yml"],
200-
[".continue/assistants/assistant7.MD", "uppercase md"],
198+
[".ethery/assistants/assistant5.YAML", "uppercase yaml"],
199+
[".ethery/assistants/assistant6.YML", "uppercase yml"],
200+
[".ethery/assistants/assistant7.MD", "uppercase md"],
201201
]);
202202

203203
const yamlOptions: LoadAssistantFilesOptions = {

core/config/markdown/loadCodebaseRules.vitest.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe("loadCodebaseRules", () => {
3636
"src/redux/rules.md",
3737
"src/components/rules.md",
3838
"src/utils/helper.ts", // Non-rules file
39-
".continue/rules.md", // This should also be loaded
39+
".ethery/rules.md", // This should also be loaded
4040
];
4141

4242
// Mock rule content
@@ -46,7 +46,7 @@ describe("loadCodebaseRules", () => {
4646
'---\nglobs: "**/*.{ts,tsx}"\n---\n# Redux Rules\nUse Redux Toolkit',
4747
"src/components/rules.md":
4848
'---\nglobs: ["**/*.tsx", "**/*.jsx"]\n---\n# Component Rules\nUse functional components',
49-
".continue/rules.md": "# Global Rules\nFollow project guidelines",
49+
".ethery/rules.md": "# Global Rules\nFollow project guidelines",
5050
};
5151

5252
// Mock converted rules
@@ -71,11 +71,11 @@ describe("loadCodebaseRules", () => {
7171
source: "colocated-markdown",
7272
ruleFile: "src/components/rules.md",
7373
},
74-
".continue/rules.md": {
74+
".ethery/rules.md": {
7575
name: "Global Rules",
7676
rule: "Follow project guidelines",
7777
source: "colocated-markdown",
78-
ruleFile: ".continue/rules.md",
78+
ruleFile: ".ethery/rules.md",
7979
},
8080
};
8181

@@ -126,7 +126,7 @@ describe("loadCodebaseRules", () => {
126126
expect(mockIde.readFile).toHaveBeenCalledWith("src/rules.md");
127127
expect(mockIde.readFile).toHaveBeenCalledWith("src/redux/rules.md");
128128
expect(mockIde.readFile).toHaveBeenCalledWith("src/components/rules.md");
129-
expect(mockIde.readFile).toHaveBeenCalledWith(".continue/rules.md");
129+
expect(mockIde.readFile).toHaveBeenCalledWith(".ethery/rules.md");
130130

131131
// Should convert all rules
132132
expect(markdownToRule).toHaveBeenCalledTimes(4);
@@ -136,7 +136,7 @@ describe("loadCodebaseRules", () => {
136136
expect(rules).toContainEqual(mockConvertedRules["src/rules.md"]);
137137
expect(rules).toContainEqual(mockConvertedRules["src/redux/rules.md"]);
138138
expect(rules).toContainEqual(mockConvertedRules["src/components/rules.md"]);
139-
expect(rules).toContainEqual(mockConvertedRules[".continue/rules.md"]);
139+
expect(rules).toContainEqual(mockConvertedRules[".ethery/rules.md"]);
140140

141141
// Should not have errors
142142
expect(errors).toHaveLength(0);
@@ -157,7 +157,7 @@ describe("loadCodebaseRules", () => {
157157
expect(rules).toHaveLength(3);
158158
expect(rules).toContainEqual(mockConvertedRules["src/rules.md"]);
159159
expect(rules).toContainEqual(mockConvertedRules["src/components/rules.md"]);
160-
expect(rules).toContainEqual(mockConvertedRules[".continue/rules.md"]);
160+
expect(rules).toContainEqual(mockConvertedRules[".ethery/rules.md"]);
161161

162162
// Should have one error
163163
expect(errors).toHaveLength(1);

core/config/markdown/loadMarkdownRules.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { findUriInDirs } from "../../util/uri";
77
import { getAllDotContinueDefinitionFiles } from "../loadLocalAssistants";
88

99
/**
10-
* Loads rules from markdown files in the .continue/rules directory
10+
* Loads rules from markdown files in the .ethery/rules directory
1111
*/
1212
export async function loadMarkdownRules(ide: IDE): Promise<{
1313
rules: RuleWithSource[];
@@ -17,7 +17,7 @@ export async function loadMarkdownRules(ide: IDE): Promise<{
1717
const rules: RuleWithSource[] = [];
1818

1919
try {
20-
// Get all .md files from .continue/rules
20+
// Get all .md files from .ethery/rules
2121
const markdownFiles = await getAllDotContinueDefinitionFiles(
2222
ide,
2323
{ includeGlobal: true, includeWorkspace: true, fileExtType: "markdown" },

0 commit comments

Comments
 (0)