-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
139 lines (139 loc) · 3.82 KB
/
Copy pathpackage.json
File metadata and controls
139 lines (139 loc) · 3.82 KB
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
{
"name": "@contextos/cli",
"displayName": "ContextOS",
"description": "Local-first context scheduler for AI coding agents. Token budgeting, AST-aware compression, and transparent context preview.",
"version": "0.1.0",
"license": "MIT",
"author": "Connor White",
"repository": {
"type": "git",
"url": "https://github.com/ConnorWhite9/contextos.git"
},
"homepage": "https://github.com/ConnorWhite9/contextos#readme",
"bugs": {
"url": "https://github.com/ConnorWhite9/contextos/issues"
},
"publisher": "contextos",
"engines": {
"node": ">=18",
"vscode": "^1.85.0"
},
"files": [
"out",
"LICENSE",
"README.md",
"CHANGELOG.md",
"PIPELINES.md"
],
"categories": [
"Other",
"Machine Learning",
"Programming Languages"
],
"keywords": [
"ai",
"llm",
"context",
"token",
"prompt",
"copilot"
],
"main": "./out/extension.js",
"bin": {
"contextos": "./out/cli/index.js"
},
"activationEvents": [
"onStartupFinished"
],
"contributes": {
"commands": [
{
"command": "contextos.generate",
"title": "ContextOS: Generate with Optimized Context"
},
{
"command": "contextos.preview",
"title": "ContextOS: Preview Context"
},
{
"command": "contextos.setApiKey",
"title": "ContextOS: Set API Key"
},
{
"command": "contextos.clearCache",
"title": "ContextOS: Clear AST Cache"
}
],
"configuration": {
"title": "ContextOS",
"properties": {
"contextos.maxTokens": {
"type": "number",
"default": 8000,
"description": "Maximum token budget for the assembled context."
},
"contextos.budgetSplit": {
"type": "object",
"default": {
"activeFile": 0.35,
"dependencies": 0.3,
"summaries": 0.2,
"history": 0.15
},
"description": "Proportional token budget across context categories (must sum to 1.0)."
},
"contextos.provider": {
"type": "string",
"enum": [
"openai",
"anthropic",
"dryrun"
],
"default": "dryrun",
"description": "LLM provider to use. Use 'dryrun' to skip network calls."
},
"contextos.model": {
"type": "string",
"default": "gpt-4o-mini",
"description": "Model identifier (provider-specific)."
},
"contextos.maxDependencyDepth": {
"type": "number",
"default": 2,
"description": "Max transitive import depth to consider as dependencies."
},
"contextos.maxFilesScanned": {
"type": "number",
"default": 200,
"description": "Cap on files scanned per request (avoids full repo scans)."
},
"contextos.dryRun": {
"type": "boolean",
"default": false,
"description": "Always preview context; never send to provider."
}
}
}
},
"scripts": {
"prepublishOnly": "npm run compile && npm test && npm run strip:test-artifacts",
"strip:test-artifacts": "find out -name '*.test.js' -delete && find out -name '*.test.js.map' -delete",
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./ && chmod +x ./out/cli/index.js",
"watch": "tsc -watch -p ./",
"lint": "tsc --noEmit",
"test": "vitest run",
"test:watch": "vitest",
"coverage": "vitest run --coverage",
"bench:tokens": "node ./bench/token-savings.js",
"ctx": "node ./out/cli/index.js",
"ctx:send": "node ./out/cli/index.js --send"
},
"devDependencies": {
"@types/node": "^20.11.0",
"@types/vscode": "^1.85.0",
"@vitest/coverage-v8": "^3.2.4",
"typescript": "^5.9.3",
"vitest": "^3.2.4"
}
}