Skip to content

Commit

Permalink
refactor: update package and dir naming
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-bo-davis committed Mar 1, 2024
1 parent f798b11 commit 92a7f62
Show file tree
Hide file tree
Showing 74 changed files with 681 additions and 590 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ module.exports = {
},
],
'@typescript-eslint/dot-notation': 'off',
'import/extensions': 'off',
},
settings: {
'import/resolver': {
Expand Down
6 changes: 3 additions & 3 deletions cli/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ cacheDir: ../.cache

tools:
codeSummaryQuery:
module: '@interrobangc/codellm-tool-code-summary-query'
module: '@codellm/codellm-tool-code-summary-query'
config:
vectorDbName: chromadb
docSummaryQuery:
module: '@interrobangc/codellm-tool-doc-summary-query'
module: '@codellm/codellm-tool-doc-summary-query'
config:
vectorDbName: chromadb
jsDependencyTree:
module: '@interrobangc/codellm-tool-js-dependency-tree'
module: '@codellm/codellm-tool-js-dependency-tree'

# The configuration for individual providers can be set here. You probably want to use
# the OPEN_AI_API_KEY or MISTRAL_API_KEY environment variable instead of hardcoding your key here
Expand Down
10 changes: 5 additions & 5 deletions cli/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@interrobangc/codellm-cli",
"name": "@codellm/codellm-cli",
"version": "0.0.1",
"description": "cli interface for code-llm",
"author": "bo@interrobang.consulting",
Expand All @@ -14,10 +14,10 @@
"test:unit": "jest --coverage '.*\\.test\\.ts'"
},
"dependencies": {
"@interrobangc/codellm": "^0.0.1",
"@interrobangc/codellm-tool-code-summary-query": "^0.0.1",
"@interrobangc/codellm-tool-js-dependency-tree": "^0.0.1",
"@interrobangc/codellm-vectordb-chromadb": "^0.0.1",
"@codellm/core": "^0.0.1",
"@codellm/codellm-tool-code-summary-query": "^0.0.1",
"@codellm/codellm-tool-js-dependency-tree": "^0.0.1",
"@codellm/codellm-vectordb-chromadb": "^0.0.1",
"@langchain/openai": "^0.0.15",
"js-yaml": "^4.1.0",
"lodash": "^4.17.21",
Expand Down
2 changes: 1 addition & 1 deletion cli/src/bin/codellm-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import yargs from 'yargs';
import { hideBin } from 'yargs/helpers';
import { log, newAgent, newImporter } from '@interrobangc/codellm';
import { log, newAgent, newImporter } from '@codellm/core';

import { addCliOptions, getConfig } from '@cli/config/index.js';
import { interactiveLoop } from '@cli/interactiveLoop/index.js';
Expand Down
2 changes: 1 addition & 1 deletion cli/src/config/getConfig.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { PartialConfig } from '@interrobangc/codellm';
import type { PartialConfig } from '@codellm/core';
import pick from 'lodash/pick.js';
import merge from 'lodash/merge.js';

Expand Down
4 changes: 2 additions & 2 deletions cli/src/interactiveLoop/interactiveLoop.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Agent } from '@interrobangc/codellm';
import type { Agent } from '@codellm/core';
import ora from 'ora';
import { log } from '@interrobangc/codellm';
import { log } from '@codellm/core';

import { promptUser } from './promptUser.js';

Expand Down
File renamed without changes.
5 changes: 2 additions & 3 deletions codellm/package.json → core/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@interrobangc/codellm",
"type": "module",
"name": "@codellm/core",
"version": "0.0.1",
"description": "cli interface for code-llm",
"author": "bo@interrobang.consulting",
"license": "MIT",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
Expand All @@ -15,7 +15,6 @@
},
"dependencies": {
"@langchain/core": "^0.1.40",
"chromadb-default-embed": "^2.13.2",
"crypto": "^1.0.1",
"globby": "^14.0.1",
"lodash": "^4.17.21",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions codellm/src/config/constants.ts → core/src/config/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,28 +73,28 @@ export const DEFAULTS = {
llmProvider: 'ollama',
providers: {
mistral: {
module: '@interrobangc/codellm-provider-mistral',
module: '@codellm/codellm-provider-mistral',
config: {
apiKey: '',
endpoint: 'https://api.mistral.ai',
},
},
ollama: {
module: '@interrobangc/codellm-provider-ollama',
module: '@codellm/codellm-provider-ollama',
config: {
host: 'http://localhost:11434',
},
},
openai: {
module: '@interrobangc/codellm-provider-openai',
module: '@codellm/codellm-provider-openai',
config: {
apiKey: '',
},
},
},
tools: {
codeSummaryQuery: {
module: '@interrobangc/codellm-tool-code-summary-query',
module: '@codellm/codellm-tool-code-summary-query',
config: {
vectorDbName: 'chromadb',
},
Expand All @@ -103,7 +103,7 @@ export const DEFAULTS = {

vectorDbs: {
chromadb: {
module: '@interrobangc/codellm-vectordb-chromadb',
module: '@codellm/codellm-vectordb-chromadb',
},
},
} as const;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 92a7f62

Please sign in to comment.