fix imports
This commit is contained in:
parent
f2d72902cb
commit
1a9910f49e
6 changed files with 11 additions and 9 deletions
|
|
@ -1,3 +1 @@
|
|||
export * from "./createMarkdownRule";
|
||||
export * from "./loadMarkdownRules";
|
||||
export * from "./parseMarkdownRule";
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
import { BlockType } from "@continuedev/config-yaml";
|
||||
import { BlockType, RULE_FILE_EXTENSION } from "@continuedev/config-yaml";
|
||||
import { describe, expect, test } from "@jest/globals";
|
||||
import { RULE_FILE_EXTENSION } from "../markdown";
|
||||
import { findAvailableFilename, getFileContent } from "./workspaceBlocks";
|
||||
|
||||
describe("getFileContent", () => {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,12 @@
|
|||
import { BlockType, ConfigYaml } from "@continuedev/config-yaml";
|
||||
import {
|
||||
BlockType,
|
||||
ConfigYaml,
|
||||
createRuleMarkdown,
|
||||
RULE_FILE_EXTENSION,
|
||||
} from "@continuedev/config-yaml";
|
||||
import * as YAML from "yaml";
|
||||
import { IDE } from "../..";
|
||||
import { joinPathsToUri } from "../../util/uri";
|
||||
import { RULE_FILE_EXTENSION, createRuleMarkdown } from "../markdown";
|
||||
|
||||
const BLOCK_TYPE_CONFIG: Record<
|
||||
BlockType,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { parseMarkdownRule } from "@continuedev/config-yaml";
|
||||
import { jest } from "@jest/globals";
|
||||
import { parseMarkdownRule } from "../../config/markdown";
|
||||
import { createRuleBlockImpl } from "./createRuleBlock";
|
||||
|
||||
const mockIde = {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
import { createRuleMarkdown } from "@continuedev/config-yaml";
|
||||
import { ToolImpl } from ".";
|
||||
import { RuleWithSource } from "../..";
|
||||
import { createRuleFilePath, createRuleMarkdown } from "../../config/markdown";
|
||||
import { createRuleFilePath } from "../../config/markdown/utils";
|
||||
|
||||
export type CreateRuleBlockArgs = Pick<
|
||||
Required<RuleWithSource>,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { parseMarkdownRule } from "@continuedev/config-yaml";
|
||||
import { ToolImpl } from ".";
|
||||
import { parseMarkdownRule } from "../../config/markdown/parseMarkdownRule";
|
||||
|
||||
export const requestRuleImpl: ToolImpl = async (args, extras) => {
|
||||
// Find the rule by name in the config
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue