-
Notifications
You must be signed in to change notification settings - Fork 125
/
package.json
99 lines (99 loc) · 6.98 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"name": "genaiscript-workspace",
"version": "1.86.4",
"license": "MIT",
"private": true,
"workspaces": {
"packages": [
"packages/*"
]
},
"scripts": {
"localai": "docker run -p 8080:8080 --name local-ai -ti localai/localai:latest-aio-cpu",
"setup": "git submodule update --init --recursive",
"setup:az": "curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash",
"setup:bicep": "az bicep upgrade",
"az:login": "az login --scope api://trapi/.default",
"install:playwright": "yarn install playwright --with-deps",
"install:force": "rm yarn.lock && yarn install && yarn --cwd docs install:force && yarn --cwd slides install:force && yarn gen:licenses",
"compile-ext": "yarn --cwd packages/core run prompts:bundle && yarn --cwd packages/vscode run compile",
"compile-cli": "yarn --cwd packages/cli run compile",
"compile": "yarn compile-ext && yarn compile-cli && yarn test:fix",
"compile-debug": "yarn --cwd packages/cli run compile-debug",
"go": "cd packages/cli && yarn go",
"token": "cd packages/sample && yarn token",
"typecheck": "yarn --cwd packages/core run typecheck && yarn --cwd packages/vscode run typecheck && yarn --cwd packages/cli run typecheck",
"lint": "yarn --cwd packages/cli run lint",
"pretty": "prettier **.ts --write",
"package": "cd packages/vscode && yarn package",
"release:draft": "npx --yes release-it",
"release:vsix": "npx --yes release-it --no-increment --no-git --github.release --github.update --github.assets=packages/vscode/genaiscript.vsix --no-github.draft",
"release:npm": "cd packages/cli && npm publish",
"patch-versions": "npx --yes zx scripts/patch-version.mjs",
"commit-versions": "git add packages/**/package.json && git add docs/package.json && git add slides/package.json && git commit -m '[skip ci] updated version numbers' && git push",
"release": "yarn typecheck && yarn compile && yarn package && yarn release:draft && yarn patch-versions && yarn compile && yarn package && yarn release:vsix && yarn commit-versions",
"bump": "yarn release",
"test:core": "cd packages/core && yarn test",
"test:samples": "cd packages/sample && yarn test",
"test:cli": "node packages/cli/built/genaiscript.cjs run code-annotator packages/sample/src/counting.py -l Test -o .genaiscript/tmp/tests/cli -ot .genaiscript/tmp/tests/cli/outtrace.md -oa .genaiscript/tmp/tests/cli/diags.sarif",
"test:live": "node packages/cli/built/genaiscript.cjs run code-annotator packages/sample/src/counting.py -l Test -o .genaiscript/tmp/tests/cli --retry 1 --temperature 0.5 ",
"test:front-matter": "node packages/cli/built/genaiscript.cjs run front-matter SUPPORT.md ",
"test:summarize": "node packages/cli/built/genaiscript.cjs run summarize packages/sample/src/rag/markdown.md ",
"test:pdf": "node packages/cli/built/genaiscript.cjs parse pdf packages/sample/src/rag/loremipsum.pdf",
"test:docx": "node packages/cli/built/genaiscript.cjs parse docx packages/sample/src/rag/Document.docx",
"retrieval:index": "node packages/cli/built/genaiscript.cjs retrieval index \"packages/sample/src/rag/*\"",
"retrieval:search": "node packages/cli/built/genaiscript.cjs retrieval search lorem \"packages/sample/src/rag/*\"",
"retrieval:codequery": "node packages/cli/built/genaiscript.cjs code query packages/core/src/progress.ts \"(interface_declaration) @i\"",
"test:tokens": "node packages/cli/built/genaiscript.cjs retrieval tokens packages/sample/src/rag/*",
"test:system": "cd packages/core && node ../cli/built/genaiscript.cjs scripts compile",
"test:compile": "node packages/cli/built/genaiscript.cjs scripts compile",
"test:fix": "node packages/cli/built/genaiscript.cjs scripts fix",
"test:infomodel": "node packages/cli/built/genaiscript.cjs scripts model",
"test:phi3": "node packages/cli/built/genaiscript.cjs run summarize-ollama-phi3 packages/sample/src/rag/markdown.md",
"run:script": "cd packages/sample/ && yarn run:script",
"run:script:debug": "yarn compile-debug && cd packages/sample/ && yarn run:script",
"cache:clear": "cd packages/sample/ && yarn cache:clear",
"test:scripts": "cd packages/sample/ && yarn test:scripts",
"test:scripts:view": "cd packages/sample/ && yarn test:scripts:view",
"serve": "node packages/cli/built/genaiscript.cjs serve",
"docs": "cd docs && ./node_modules/.bin/astro telemetry disable && ./node_modules/.bin/astro dev --host",
"slides": "cd slides && yarn run dev",
"build:slides": "yarn --cwd slides install --frozen-lockfile --prefer-offline && yarn --cwd slides build",
"build:docs": "yarn --cwd docs install --frozen-lockfile --prefer-offline && yarn --cwd docs build && yarn --cwd docs build:asw",
"gen:licenses": "npx --yes generate-license-file --input ./package.json --output ./THIRD_PARTY_LICENSES.md --overwrite",
"genai:technical": "cd docs && yarn genai:technical",
"genai:frontmatter": "cd docs && yarn genai:frontmatter",
"genai:alt": "cd docs && yarn genai:alt-text",
"genai:test": "node packages/cli/built/genaiscript.cjs run test-gen",
"genai:blog-post": "node packages/cli/built/genaiscript.cjs run blog-generator",
"genai:readme": "node packages/cli/built/genaiscript.cjs run readme-updater",
"genai:blogify": "node packages/cli/built/genaiscript.cjs run blogify-sample",
"genai:tweetify": "node packages/cli/built/genaiscript.cjs run tweetify",
"genai:docify": "node packages/cli/built/genaiscript.cjs run docify",
"gcm": "node packages/cli/built/genaiscript.cjs run gcm --model github:gpt-4o",
"prd": "node packages/cli/built/genaiscript.cjs run prd -prd --model github:gpt-4o",
"genai": "node packages/cli/built/genaiscript.cjs run",
"genai:convert": "node packages/cli/built/genaiscript.cjs convert",
"genai:debug": "yarn compile-debug && node packages/cli/built/genaiscript.cjs run",
"upgrade:deps": "zx scripts/upgrade-deps.mjs",
"cli": "node packages/cli/built/genaiscript.cjs",
"ollama": "yarn ollama:stop && yarn ollama:start",
"ollama:start": "docker run -d -v ollama:/root/.ollama -p 11434:11434 --name ollama -e OLLAMA_FLASH_ATTENTION=1 -e OLLAMA_KV_CACHE_TYPE=q8_0 ollama/ollama",
"ollama:stop": "docker stop ollama && docker rm ollama"
},
"release-it": {
"github": {
"release": true,
"releaseName": "v${version}",
"draft": true,
"releaseNotes": "node packages/cli/built/genaiscript.cjs run git-release-notes --cache --cache-name releases --model github:gpt-4o"
}
},
"devDependencies": {
"@inquirer/prompts": "^7.2.1",
"glob": "^11.0.0",
"npm-check-updates": "^17.1.12",
"prettier": "^3.4.2",
"zx": "^8.2.4"
}
}