@kode-ai-tools/cli 0.1.8 → 0.2.0
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/.omc/state/idle-notif-cooldown.json +3 -0
- package/dist/_commonjsHelpers-DNC4dNPI.js +7 -0
- package/dist/bin.js +15450 -0
- package/dist/index-fXz8Zb01.js +6 -0
- package/dist/index-wIktJUq_.js +13198 -0
- package/dist/package.json +14 -0
- package/package.json +25 -4
- package/src/cli/run.ts +13 -0
- package/src/globals.d.ts +13 -0
- package/tsconfig.json +17 -0
- package/vite.config.ts +16 -0
- package/bin.js +0 -8953
- /package/{prompt-C1_FgRkG.js → dist/prompt-C1_FgRkG.js} +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kode-ai-tools/cli",
|
|
3
|
+
"description": "Self-contained CLI for Kode AI Tools",
|
|
4
|
+
"version": "0.2.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public",
|
|
8
|
+
"directory": "dist"
|
|
9
|
+
},
|
|
10
|
+
"bin": {
|
|
11
|
+
"ai-tools": "./bin.js",
|
|
12
|
+
"kat": "./bin.js"
|
|
13
|
+
}
|
|
14
|
+
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kode-ai-tools/cli",
|
|
3
3
|
"description": "Self-contained CLI for Kode AI Tools",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public",
|
|
8
8
|
"directory": "dist"
|
|
9
9
|
},
|
|
10
10
|
"bin": {
|
|
11
|
-
"ai-tools": "./bin.js",
|
|
12
|
-
"kat": "./bin.js"
|
|
11
|
+
"ai-tools": "./dist/bin.js",
|
|
12
|
+
"kat": "./dist/bin.js"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"lint": "biome lint ./src",
|
|
16
|
+
"format": "biome format ./src",
|
|
17
|
+
"build": "tsc && vite --configLoader runner build",
|
|
18
|
+
"dev": "vite --configLoader runner dev",
|
|
19
|
+
"test": "vitest"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"commander": "catalog:cli",
|
|
23
|
+
"consola": "^3.4.2",
|
|
24
|
+
"yaml": "catalog:shared",
|
|
25
|
+
"zod": "catalog:shared",
|
|
26
|
+
"@kode-ai-tools/ba-agent": "workspace:*",
|
|
27
|
+
"@kode-ai-tools/openapi": "workspace:*",
|
|
28
|
+
"@kode-ai-tools/config": "workspace:*",
|
|
29
|
+
"@kode-ai-tools/confluence-adapter": "workspace:*"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@types/node": "catalog:toolchain",
|
|
33
|
+
"type-fest": "catalog:toolchain"
|
|
13
34
|
}
|
|
14
|
-
}
|
|
35
|
+
}
|
package/src/cli/run.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { baCommand } from '@kode-ai-tools/ba-agent/cli'
|
|
2
|
+
import { confluenceAdapterCommand } from '@kode-ai-tools/confluence-adapter/cli'
|
|
3
|
+
import { openapiCommand } from '@kode-ai-tools/openapi/cli'
|
|
4
|
+
import { Command } from 'commander'
|
|
5
|
+
|
|
6
|
+
new Command()
|
|
7
|
+
.name('ai-tools')
|
|
8
|
+
.description('Kode AI Tools CLI')
|
|
9
|
+
.version('0.0.0')
|
|
10
|
+
.addCommand(openapiCommand)
|
|
11
|
+
.addCommand(confluenceAdapterCommand)
|
|
12
|
+
.addCommand(baCommand)
|
|
13
|
+
.parse()
|
package/src/globals.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare module '*.md?raw' {
|
|
2
|
+
const content: string
|
|
3
|
+
export default content
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
declare module 'turndown-plugin-gfm' {
|
|
7
|
+
import TurndownService from 'turndown'
|
|
8
|
+
export const gfm: TurndownService.Plugin
|
|
9
|
+
export const tables: TurndownService.Plugin
|
|
10
|
+
export const strikethrough: TurndownService.Plugin
|
|
11
|
+
export const taskListItems: TurndownService.Plugin
|
|
12
|
+
export const highlightedCodeBlock: TurndownService.Plugin
|
|
13
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "@kode-ai-tools/toolchain-tsconfig",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"baseUrl": "./",
|
|
5
|
+
"rootDir": "./src",
|
|
6
|
+
"outDir": "./dist",
|
|
7
|
+
"paths": {
|
|
8
|
+
"~/instance-cli/*": ["./src/*"],
|
|
9
|
+
"~/openapi/*": ["./node_modules/@kode-ai-tools/openapi/src/*"],
|
|
10
|
+
"~/confluence-adapter/*": ["./node_modules/@kode-ai-tools/confluence-adapter/src/*"],
|
|
11
|
+
"~/config/*": ["./node_modules/@kode-ai-tools/config/src/*"],
|
|
12
|
+
"~/ba-agent/*": ["./node_modules/@kode-ai-tools/ba-agent/src/*"]
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"include": ["src"],
|
|
16
|
+
"exclude": ["dist", "node_modules"]
|
|
17
|
+
}
|
package/vite.config.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { cliBundlePlugin, createCliConfig } from '@kode-ai-tools/toolchain-vite'
|
|
2
|
+
import { defineConfig, mergeConfig, type UserConfig } from 'vite'
|
|
3
|
+
|
|
4
|
+
export default defineConfig((env) =>
|
|
5
|
+
mergeConfig(createCliConfig(import.meta.dirname, env), {
|
|
6
|
+
build: {
|
|
7
|
+
lib: {
|
|
8
|
+
entry: {
|
|
9
|
+
bin: './src/cli/run.ts',
|
|
10
|
+
},
|
|
11
|
+
formats: ['es'],
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
plugins: [cliBundlePlugin()],
|
|
15
|
+
} satisfies UserConfig),
|
|
16
|
+
)
|