@denizokcu/haze 0.0.1

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.
Files changed (69) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/LICENSE +21 -0
  3. package/README.md +153 -0
  4. package/bin/haze.js +2 -0
  5. package/dist/cli/commands/chat.d.ts +6 -0
  6. package/dist/cli/commands/chat.js +101 -0
  7. package/dist/cli/commands/commands.d.ts +15 -0
  8. package/dist/cli/commands/commands.js +46 -0
  9. package/dist/cli/commands/formatters.d.ts +8 -0
  10. package/dist/cli/commands/formatters.js +46 -0
  11. package/dist/cli/commands/skills.d.ts +4 -0
  12. package/dist/cli/commands/skills.js +35 -0
  13. package/dist/cli/commands/streaming.d.ts +19 -0
  14. package/dist/cli/commands/streaming.js +101 -0
  15. package/dist/cli/index.d.ts +2 -0
  16. package/dist/cli/index.js +31 -0
  17. package/dist/config/contextFiles.d.ts +5 -0
  18. package/dist/config/contextFiles.js +59 -0
  19. package/dist/config/inputHistory.d.ts +4 -0
  20. package/dist/config/inputHistory.js +29 -0
  21. package/dist/config/paths.d.ts +3 -0
  22. package/dist/config/paths.js +5 -0
  23. package/dist/config/settings.d.ts +10 -0
  24. package/dist/config/settings.js +16 -0
  25. package/dist/llm/client.d.ts +1 -0
  26. package/dist/llm/client.js +11 -0
  27. package/dist/llm/hazeTools.d.ts +82 -0
  28. package/dist/llm/hazeTools.js +226 -0
  29. package/dist/llm/initPrompt.d.ts +1 -0
  30. package/dist/llm/initPrompt.js +19 -0
  31. package/dist/llm/systemPrompt.d.ts +2 -0
  32. package/dist/llm/systemPrompt.js +33 -0
  33. package/dist/skills/SkillLoader.d.ts +2 -0
  34. package/dist/skills/SkillLoader.js +22 -0
  35. package/dist/skills/SkillRegistry.d.ts +6 -0
  36. package/dist/skills/SkillRegistry.js +28 -0
  37. package/dist/skills/builder/SkillBuilder.d.ts +1 -0
  38. package/dist/skills/builder/SkillBuilder.js +25 -0
  39. package/dist/skills/installer/SkillInstaller.d.ts +1 -0
  40. package/dist/skills/installer/SkillInstaller.js +48 -0
  41. package/dist/skills/manifestSchema.d.ts +31 -0
  42. package/dist/skills/manifestSchema.js +23 -0
  43. package/dist/skills/types.d.ts +60 -0
  44. package/dist/skills/types.js +1 -0
  45. package/dist/tools/ToolExecutor.d.ts +3 -0
  46. package/dist/tools/ToolExecutor.js +15 -0
  47. package/dist/tools/types.d.ts +9 -0
  48. package/dist/tools/types.js +1 -0
  49. package/dist/ui/components/ErrorView.d.ts +3 -0
  50. package/dist/ui/components/ErrorView.js +7 -0
  51. package/dist/ui/components/Header.d.ts +3 -0
  52. package/dist/ui/components/Header.js +6 -0
  53. package/dist/ui/components/MarkdownText.d.ts +3 -0
  54. package/dist/ui/components/MarkdownText.js +108 -0
  55. package/dist/ui/components/TextInput.d.ts +9 -0
  56. package/dist/ui/components/TextInput.js +120 -0
  57. package/dist/ui/theme.d.ts +11 -0
  58. package/dist/ui/theme.js +11 -0
  59. package/dist/utils/fs.d.ts +14 -0
  60. package/dist/utils/fs.js +36 -0
  61. package/dist/utils/path.d.ts +3 -0
  62. package/dist/utils/path.js +16 -0
  63. package/dist/utils/yaml.d.ts +2 -0
  64. package/dist/utils/yaml.js +8 -0
  65. package/examples/skills/files/prompts/file_tasks.md +1 -0
  66. package/examples/skills/files/skill.yaml +28 -0
  67. package/examples/skills/files/tools/list_files.ts +21 -0
  68. package/examples/skills/files/tools/read_file.ts +12 -0
  69. package/package.json +71 -0
package/package.json ADDED
@@ -0,0 +1,71 @@
1
+ {
2
+ "name": "@denizokcu/haze",
3
+ "version": "0.0.1",
4
+ "description": "A pragmatic agentic CLI for building apps from the terminal.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/DenizOkcu/haze.git"
10
+ },
11
+ "bugs": {
12
+ "url": "https://github.com/DenizOkcu/haze/issues"
13
+ },
14
+ "homepage": "https://github.com/DenizOkcu/haze#readme",
15
+ "publishConfig": {
16
+ "access": "public"
17
+ },
18
+ "engines": {
19
+ "node": ">=20"
20
+ },
21
+ "bin": {
22
+ "haze": "./bin/haze.js"
23
+ },
24
+ "files": [
25
+ "bin",
26
+ "dist",
27
+ "README.md",
28
+ "LICENSE",
29
+ "CHANGELOG.md",
30
+ "examples"
31
+ ],
32
+ "scripts": {
33
+ "dev": "tsx src/cli/index.ts",
34
+ "clean": "node -e \"require('node:fs').rmSync('dist', {recursive: true, force: true})\"",
35
+ "build": "npm run clean && tsc",
36
+ "start": "node dist/cli/index.js",
37
+ "test": "vitest run",
38
+ "test:watch": "vitest",
39
+ "lint": "eslint src/",
40
+ "lint:fix": "eslint src/ --fix",
41
+ "typecheck": "tsc --noEmit",
42
+ "haze": "tsx src/cli/index.ts",
43
+ "prepublishOnly": "npm run typecheck && npm run build"
44
+ },
45
+ "dependencies": {
46
+ "@ai-sdk/openai": "3.0.67",
47
+ "@inquirer/prompts": "8.5.1",
48
+ "ai": "6.0.193",
49
+ "cli-highlight": "2.1.11",
50
+ "commander": "15.0.0",
51
+ "fs-extra": "11.3.5",
52
+ "ink": "7.0.5",
53
+ "ink-spinner": "5.0.0",
54
+ "marked": "18.0.4",
55
+ "react": "19.2.6",
56
+ "strip-ansi": "7.2.0",
57
+ "yaml": "2.9.0",
58
+ "zod": "4.4.3"
59
+ },
60
+ "devDependencies": {
61
+ "@eslint/js": "^10.0.1",
62
+ "@types/fs-extra": "11.0.4",
63
+ "@types/node": "25.9.1",
64
+ "@types/react": "19.2.15",
65
+ "eslint": "^10.4.1",
66
+ "tsx": "4.22.3",
67
+ "typescript": "6.0.3",
68
+ "typescript-eslint": "^8.60.0",
69
+ "vitest": "^4.1.7"
70
+ }
71
+ }