@nimblebrain/mpak 0.1.0 → 0.3.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/README.md +50 -383
- package/dist/index.d.ts +0 -2
- package/dist/index.js +2117 -4
- package/dist/index.js.map +1 -1
- package/package.json +26 -23
- package/.claude/settings.local.json +0 -19
- package/.env.example +0 -13
- package/.github/workflows/ci.yml +0 -27
- package/CLAUDE.md +0 -283
- package/LICENSE +0 -201
- package/dist/commands/config.d.ts +0 -31
- package/dist/commands/config.d.ts.map +0 -1
- package/dist/commands/config.js +0 -129
- package/dist/commands/config.js.map +0 -1
- package/dist/commands/packages/pull.d.ts +0 -11
- package/dist/commands/packages/pull.d.ts.map +0 -1
- package/dist/commands/packages/pull.js +0 -72
- package/dist/commands/packages/pull.js.map +0 -1
- package/dist/commands/packages/run.d.ts +0 -47
- package/dist/commands/packages/run.d.ts.map +0 -1
- package/dist/commands/packages/run.js +0 -419
- package/dist/commands/packages/run.js.map +0 -1
- package/dist/commands/packages/search.d.ts +0 -12
- package/dist/commands/packages/search.d.ts.map +0 -1
- package/dist/commands/packages/search.js +0 -63
- package/dist/commands/packages/search.js.map +0 -1
- package/dist/commands/packages/show.d.ts +0 -8
- package/dist/commands/packages/show.d.ts.map +0 -1
- package/dist/commands/packages/show.js +0 -109
- package/dist/commands/packages/show.js.map +0 -1
- package/dist/commands/search.d.ts +0 -12
- package/dist/commands/search.d.ts.map +0 -1
- package/dist/commands/search.js +0 -144
- package/dist/commands/search.js.map +0 -1
- package/dist/commands/skills/index.d.ts +0 -8
- package/dist/commands/skills/index.d.ts.map +0 -1
- package/dist/commands/skills/index.js +0 -8
- package/dist/commands/skills/index.js.map +0 -1
- package/dist/commands/skills/install.d.ts +0 -9
- package/dist/commands/skills/install.d.ts.map +0 -1
- package/dist/commands/skills/install.js +0 -110
- package/dist/commands/skills/install.js.map +0 -1
- package/dist/commands/skills/list.d.ts +0 -8
- package/dist/commands/skills/list.d.ts.map +0 -1
- package/dist/commands/skills/list.js +0 -89
- package/dist/commands/skills/list.js.map +0 -1
- package/dist/commands/skills/pack.d.ts +0 -22
- package/dist/commands/skills/pack.d.ts.map +0 -1
- package/dist/commands/skills/pack.js +0 -116
- package/dist/commands/skills/pack.js.map +0 -1
- package/dist/commands/skills/pull.d.ts +0 -9
- package/dist/commands/skills/pull.d.ts.map +0 -1
- package/dist/commands/skills/pull.js +0 -68
- package/dist/commands/skills/pull.js.map +0 -1
- package/dist/commands/skills/search.d.ts +0 -14
- package/dist/commands/skills/search.d.ts.map +0 -1
- package/dist/commands/skills/search.js +0 -53
- package/dist/commands/skills/search.js.map +0 -1
- package/dist/commands/skills/show.d.ts +0 -8
- package/dist/commands/skills/show.d.ts.map +0 -1
- package/dist/commands/skills/show.js +0 -64
- package/dist/commands/skills/show.js.map +0 -1
- package/dist/commands/skills/validate.d.ts +0 -25
- package/dist/commands/skills/validate.d.ts.map +0 -1
- package/dist/commands/skills/validate.js +0 -191
- package/dist/commands/skills/validate.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/lib/api/registry-client.d.ts +0 -63
- package/dist/lib/api/registry-client.d.ts.map +0 -1
- package/dist/lib/api/registry-client.js +0 -167
- package/dist/lib/api/registry-client.js.map +0 -1
- package/dist/lib/api/skills-client.d.ts +0 -30
- package/dist/lib/api/skills-client.d.ts.map +0 -1
- package/dist/lib/api/skills-client.js +0 -110
- package/dist/lib/api/skills-client.js.map +0 -1
- package/dist/program.d.ts +0 -12
- package/dist/program.d.ts.map +0 -1
- package/dist/program.js +0 -186
- package/dist/program.js.map +0 -1
- package/dist/schemas/generated/api-responses.d.ts +0 -541
- package/dist/schemas/generated/api-responses.d.ts.map +0 -1
- package/dist/schemas/generated/api-responses.js +0 -313
- package/dist/schemas/generated/api-responses.js.map +0 -1
- package/dist/schemas/generated/auth.d.ts +0 -18
- package/dist/schemas/generated/auth.d.ts.map +0 -1
- package/dist/schemas/generated/auth.js +0 -18
- package/dist/schemas/generated/auth.js.map +0 -1
- package/dist/schemas/generated/index.d.ts +0 -5
- package/dist/schemas/generated/index.d.ts.map +0 -1
- package/dist/schemas/generated/index.js +0 -6
- package/dist/schemas/generated/index.js.map +0 -1
- package/dist/schemas/generated/package.d.ts +0 -43
- package/dist/schemas/generated/package.d.ts.map +0 -1
- package/dist/schemas/generated/package.js +0 -20
- package/dist/schemas/generated/package.js.map +0 -1
- package/dist/schemas/generated/skill.d.ts +0 -381
- package/dist/schemas/generated/skill.d.ts.map +0 -1
- package/dist/schemas/generated/skill.js +0 -216
- package/dist/schemas/generated/skill.js.map +0 -1
- package/dist/utils/config-manager.d.ts +0 -66
- package/dist/utils/config-manager.d.ts.map +0 -1
- package/dist/utils/config-manager.js +0 -193
- package/dist/utils/config-manager.js.map +0 -1
- package/dist/utils/errors.d.ts +0 -12
- package/dist/utils/errors.d.ts.map +0 -1
- package/dist/utils/errors.js +0 -27
- package/dist/utils/errors.js.map +0 -1
- package/dist/utils/version.d.ts +0 -5
- package/dist/utils/version.d.ts.map +0 -1
- package/dist/utils/version.js +0 -19
- package/dist/utils/version.js.map +0 -1
- package/eslint.config.js +0 -63
- package/src/commands/config.ts +0 -162
- package/src/commands/packages/pull.ts +0 -96
- package/src/commands/packages/run.test.ts +0 -261
- package/src/commands/packages/run.ts +0 -536
- package/src/commands/packages/search.ts +0 -83
- package/src/commands/packages/show.ts +0 -128
- package/src/commands/search.ts +0 -191
- package/src/commands/skills/index.ts +0 -7
- package/src/commands/skills/install.ts +0 -129
- package/src/commands/skills/list.ts +0 -116
- package/src/commands/skills/pack.test.ts +0 -260
- package/src/commands/skills/pack.ts +0 -145
- package/src/commands/skills/pull.ts +0 -88
- package/src/commands/skills/search.ts +0 -73
- package/src/commands/skills/show.ts +0 -72
- package/src/commands/skills/validate.test.ts +0 -466
- package/src/commands/skills/validate.ts +0 -227
- package/src/index.ts +0 -11
- package/src/lib/api/registry-client.ts +0 -223
- package/src/lib/api/schema.d.ts +0 -520
- package/src/lib/api/skills-client.ts +0 -148
- package/src/program.test.ts +0 -22
- package/src/program.ts +0 -226
- package/src/schemas/config.v1.schema.json +0 -37
- package/src/schemas/generated/api-responses.ts +0 -386
- package/src/schemas/generated/auth.ts +0 -21
- package/src/schemas/generated/index.ts +0 -5
- package/src/schemas/generated/package.ts +0 -29
- package/src/schemas/generated/skill.ts +0 -271
- package/src/utils/config-manager.test.ts +0 -330
- package/src/utils/config-manager.ts +0 -272
- package/src/utils/errors.test.ts +0 -25
- package/src/utils/errors.ts +0 -33
- package/src/utils/version.test.ts +0 -16
- package/src/utils/version.ts +0 -18
- package/test/integration/registry-client.test.ts +0 -180
- package/tsconfig.check.json +0 -9
- package/tsconfig.json +0 -25
- package/vitest.config.ts +0 -14
package/CLAUDE.md
DELETED
|
@@ -1,283 +0,0 @@
|
|
|
1
|
-
# mpak CLI
|
|
2
|
-
|
|
3
|
-
CLI for MCP bundles and Agent Skills.
|
|
4
|
-
|
|
5
|
-
## Architecture
|
|
6
|
-
|
|
7
|
-
This is a standalone CLI that uses only the public v1 API. It has no dependencies on the server or client packages and generates its TypeScript types from the server's OpenAPI spec.
|
|
8
|
-
|
|
9
|
-
### Key Files
|
|
10
|
-
|
|
11
|
-
| File | Purpose |
|
|
12
|
-
|------|---------|
|
|
13
|
-
| `src/program.ts` | Commander program setup with all commands |
|
|
14
|
-
| `src/lib/api/registry-client.ts` | API client for bundle endpoints |
|
|
15
|
-
| `src/lib/api/skills-client.ts` | API client for skill endpoints |
|
|
16
|
-
| `src/lib/api/schema.d.ts` | Generated types from OpenAPI spec |
|
|
17
|
-
| `src/commands/packages/*.ts` | Bundle commands (search, show, pull, run) |
|
|
18
|
-
| `src/commands/skills/*.ts` | Skill commands (validate, pack, search, show, pull, install, list) |
|
|
19
|
-
| `src/commands/config.ts` | Config commands (set, get, list, clear) |
|
|
20
|
-
| `src/schemas/generated/skill.ts` | Skill validation schemas (Zod) |
|
|
21
|
-
| `src/utils/config-manager.ts` | Config file handling (~/.mpak/config.json) |
|
|
22
|
-
|
|
23
|
-
### Command Structure
|
|
24
|
-
|
|
25
|
-
```
|
|
26
|
-
mpak search <query> # Unified search (bundles + skills)
|
|
27
|
-
mpak bundle <command> # MCP bundle operations
|
|
28
|
-
mpak skill <command> # Agent skill operations
|
|
29
|
-
mpak config <command> # Configuration management
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
### Type Generation
|
|
33
|
-
|
|
34
|
-
Types are generated from the server's OpenAPI spec using `openapi-typescript`:
|
|
35
|
-
|
|
36
|
-
```bash
|
|
37
|
-
# Requires server running locally on port 3200
|
|
38
|
-
npm run generate:types
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
This generates `src/lib/api/schema.d.ts` from `http://localhost:3200/documentation/json`.
|
|
42
|
-
|
|
43
|
-
The `registry-client.ts` uses helper types to extract response types:
|
|
44
|
-
|
|
45
|
-
```typescript
|
|
46
|
-
import type { paths } from './schema.js';
|
|
47
|
-
|
|
48
|
-
type ResponseOf<T> = T extends { responses: { 200: { content: { 'application/json': infer R } } } } ? R : never;
|
|
49
|
-
|
|
50
|
-
export type BundleSearchResponse = ResponseOf<paths['/v1/bundles/search']['get']>;
|
|
51
|
-
export type Bundle = BundleSearchResponse['bundles'][number];
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
## v1 API Endpoints
|
|
55
|
-
|
|
56
|
-
### Bundle Endpoints
|
|
57
|
-
|
|
58
|
-
| Endpoint | Description |
|
|
59
|
-
|----------|-------------|
|
|
60
|
-
| `GET /v1/bundles/search` | Search bundles by query, type, sort |
|
|
61
|
-
| `GET /v1/bundles/@{scope}/{package}` | Get bundle details (metadata, readme) |
|
|
62
|
-
| `GET /v1/bundles/@{scope}/{package}/versions` | List versions with platform availability |
|
|
63
|
-
| `GET /v1/bundles/@{scope}/{package}/versions/{version}/download` | Get download URL for specific version/platform |
|
|
64
|
-
|
|
65
|
-
### Skill Endpoints
|
|
66
|
-
|
|
67
|
-
| Endpoint | Description |
|
|
68
|
-
|----------|-------------|
|
|
69
|
-
| `GET /v1/skills/search` | Search skills by query, tags, category |
|
|
70
|
-
| `GET /v1/skills/@{scope}/{name}` | Get skill details |
|
|
71
|
-
| `GET /v1/skills/@{scope}/{name}/download` | Get download URL for latest version |
|
|
72
|
-
| `GET /v1/skills/@{scope}/{name}/versions/{version}/download` | Get download URL for specific version |
|
|
73
|
-
| `POST /v1/skills/announce` | Announce skill version (OIDC auth) |
|
|
74
|
-
|
|
75
|
-
### Platform Selection (Bundles)
|
|
76
|
-
|
|
77
|
-
Download endpoints accept `os` and `arch` query parameters:
|
|
78
|
-
- `os`: darwin, linux, win32, any
|
|
79
|
-
- `arch`: x64, arm64, any
|
|
80
|
-
|
|
81
|
-
The server returns the best matching artifact using this priority:
|
|
82
|
-
1. Exact match (requested os + arch)
|
|
83
|
-
2. OS match with `any` arch
|
|
84
|
-
3. `any` OS with exact arch
|
|
85
|
-
4. Universal (`any` + `any`)
|
|
86
|
-
|
|
87
|
-
## Local Development
|
|
88
|
-
|
|
89
|
-
### Setup
|
|
90
|
-
|
|
91
|
-
```bash
|
|
92
|
-
npm install
|
|
93
|
-
npm run build
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
### Testing with Local Server
|
|
97
|
-
|
|
98
|
-
The CLI defaults to `https://api.mpak.dev`. For local development:
|
|
99
|
-
|
|
100
|
-
```bash
|
|
101
|
-
# Start the server (from ../mpak/server)
|
|
102
|
-
cd ../mpak/server && npm run dev
|
|
103
|
-
|
|
104
|
-
# Run CLI commands with local registry
|
|
105
|
-
MPAK_REGISTRY_URL=http://localhost:3200 npm run dev -- bundle search echo
|
|
106
|
-
MPAK_REGISTRY_URL=http://localhost:3200 node dist/index.js skill search strategy
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
### Verification
|
|
110
|
-
|
|
111
|
-
```bash
|
|
112
|
-
npm run build
|
|
113
|
-
npm run typecheck
|
|
114
|
-
npm run test:all
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
### Publishing
|
|
118
|
-
|
|
119
|
-
Prereleases (beta):
|
|
120
|
-
```bash
|
|
121
|
-
npm version 0.0.1-beta.X
|
|
122
|
-
npm run build
|
|
123
|
-
npm publish --tag beta --otp=<code>
|
|
124
|
-
git push && git push --tags
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
Stable releases:
|
|
128
|
-
```bash
|
|
129
|
-
npm version X.X.X
|
|
130
|
-
npm run build
|
|
131
|
-
npm publish --otp=<code>
|
|
132
|
-
git push && git push --tags
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
## Commands
|
|
136
|
-
|
|
137
|
-
### Unified Search
|
|
138
|
-
|
|
139
|
-
| Command | Description |
|
|
140
|
-
|---------|-------------|
|
|
141
|
-
| `mpak search <query>` | Search bundles and skills |
|
|
142
|
-
| `mpak search <query> --type bundle` | Search bundles only |
|
|
143
|
-
| `mpak search <query> --type skill` | Search skills only |
|
|
144
|
-
|
|
145
|
-
### Run (Top-Level Alias)
|
|
146
|
-
|
|
147
|
-
| Command | Description |
|
|
148
|
-
|---------|-------------|
|
|
149
|
-
| `mpak run <package>` | Run an MCP server (alias for `bundle run`) |
|
|
150
|
-
|
|
151
|
-
This is the recommended way to integrate with Claude Code:
|
|
152
|
-
|
|
153
|
-
```bash
|
|
154
|
-
claude mcp add --transport stdio echo -- mpak run @nimblebraininc/echo
|
|
155
|
-
```
|
|
156
|
-
|
|
157
|
-
### Bundle Commands
|
|
158
|
-
|
|
159
|
-
| Command | Description |
|
|
160
|
-
|---------|-------------|
|
|
161
|
-
| `mpak bundle search <query>` | Search public bundles |
|
|
162
|
-
| `mpak bundle show <package>` | Show bundle details with platforms |
|
|
163
|
-
| `mpak bundle pull <package>` | Download a bundle |
|
|
164
|
-
| `mpak bundle run <package>` | Run an MCP server (pulls, caches, executes) |
|
|
165
|
-
|
|
166
|
-
### Skill Commands
|
|
167
|
-
|
|
168
|
-
| Command | Description |
|
|
169
|
-
|---------|-------------|
|
|
170
|
-
| `mpak skill validate <path>` | Validate skill directory against Agent Skills spec |
|
|
171
|
-
| `mpak skill pack <path>` | Create a .skill bundle |
|
|
172
|
-
| `mpak skill search <query>` | Search skills in registry |
|
|
173
|
-
| `mpak skill show <name>` | Show skill details |
|
|
174
|
-
| `mpak skill pull <name>` | Download a .skill bundle |
|
|
175
|
-
| `mpak skill install <name>` | Install to ~/.claude/skills/ |
|
|
176
|
-
| `mpak skill list` | List installed skills |
|
|
177
|
-
|
|
178
|
-
### Config Commands
|
|
179
|
-
|
|
180
|
-
| Command | Description |
|
|
181
|
-
|---------|-------------|
|
|
182
|
-
| `mpak config set <pkg> <k=v...>` | Store config values for a package |
|
|
183
|
-
| `mpak config get <pkg>` | Show stored config (values masked) |
|
|
184
|
-
| `mpak config list` | List packages with stored config |
|
|
185
|
-
| `mpak config clear <pkg> [key]` | Clear stored config |
|
|
186
|
-
|
|
187
|
-
## User Config (MCPB v0.3)
|
|
188
|
-
|
|
189
|
-
Packages can declare `user_config` in their manifest for values like API keys:
|
|
190
|
-
|
|
191
|
-
```json
|
|
192
|
-
{
|
|
193
|
-
"user_config": {
|
|
194
|
-
"api_key": {
|
|
195
|
-
"type": "string",
|
|
196
|
-
"title": "API Token",
|
|
197
|
-
"sensitive": true,
|
|
198
|
-
"required": false
|
|
199
|
-
}
|
|
200
|
-
},
|
|
201
|
-
"server": {
|
|
202
|
-
"mcp_config": {
|
|
203
|
-
"env": {
|
|
204
|
-
"API_TOKEN": "${user_config.api_key}"
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
```
|
|
210
|
-
|
|
211
|
-
When `mpak bundle run` executes, it substitutes `${user_config.*}` placeholders with actual values.
|
|
212
|
-
|
|
213
|
-
### Two Ways to Provide Config
|
|
214
|
-
|
|
215
|
-
#### Option 1: mpak config (recommended for CLI use)
|
|
216
|
-
|
|
217
|
-
Use `mpak config set` with keys matching the manifest's `user_config` field names (not the env var names):
|
|
218
|
-
|
|
219
|
-
```bash
|
|
220
|
-
# Key is "api_key" (from manifest.user_config.api_key), NOT "IPINFO_API_TOKEN"
|
|
221
|
-
mpak config set @nimblebraininc/ipinfo api_key=your_token
|
|
222
|
-
|
|
223
|
-
# Run uses stored config automatically
|
|
224
|
-
mpak bundle run @nimblebraininc/ipinfo
|
|
225
|
-
|
|
226
|
-
# View stored config (values masked)
|
|
227
|
-
mpak config get @nimblebraininc/ipinfo
|
|
228
|
-
```
|
|
229
|
-
|
|
230
|
-
#### Option 2: Claude Desktop config (recommended for Claude Desktop)
|
|
231
|
-
|
|
232
|
-
Set the actual environment variable directly in your Claude Desktop config:
|
|
233
|
-
|
|
234
|
-
```json
|
|
235
|
-
{
|
|
236
|
-
"mcpServers": {
|
|
237
|
-
"ipinfo": {
|
|
238
|
-
"command": "mpak",
|
|
239
|
-
"args": ["bundle", "run", "@nimblebraininc/ipinfo"],
|
|
240
|
-
"env": {
|
|
241
|
-
"IPINFO_API_TOKEN": "your_token"
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
```
|
|
247
|
-
|
|
248
|
-
This bypasses user_config substitution entirely since the env var is already set.
|
|
249
|
-
|
|
250
|
-
### Value Resolution Priority
|
|
251
|
-
|
|
252
|
-
1. **Process environment** (highest): Env vars set by parent (e.g., Claude Desktop config)
|
|
253
|
-
2. **Stored config**: `~/.mpak/config.json` (set via `mpak config set`)
|
|
254
|
-
3. **Default value**: From manifest's `user_config.*.default`
|
|
255
|
-
4. **Interactive prompt**: If TTY and value is required
|
|
256
|
-
|
|
257
|
-
Claude Desktop env vars always take priority over `mpak config` values.
|
|
258
|
-
|
|
259
|
-
### Important: Config Key Names
|
|
260
|
-
|
|
261
|
-
The `mpak config set` key must match the `user_config` field name in the manifest:
|
|
262
|
-
|
|
263
|
-
```
|
|
264
|
-
manifest.user_config.api_key → mpak config set ... api_key=xxx → env IPINFO_API_TOKEN
|
|
265
|
-
^^^^^^^ ^^^^^^^
|
|
266
|
-
Field name = config key (NOT the env var name)
|
|
267
|
-
```
|
|
268
|
-
|
|
269
|
-
## Design Decisions
|
|
270
|
-
|
|
271
|
-
1. **Standalone**: No shared dependencies with server/client. Types generated from OpenAPI.
|
|
272
|
-
2. **Public API only**: Uses v1 API. Publishing requires OIDC via GitHub Actions.
|
|
273
|
-
3. **Platform detection**: Auto-detects OS/arch, allows explicit override for cross-platform downloads.
|
|
274
|
-
4. **Config file**: Stores registry URL in `~/.mpak/config.json`, overridable via `MPAK_REGISTRY_URL`.
|
|
275
|
-
5. **Skill schemas**: Uses Zod schemas in `src/schemas/generated/skill.ts` for validation.
|
|
276
|
-
|
|
277
|
-
## Gotchas
|
|
278
|
-
|
|
279
|
-
- **No dotenv**: Removed due to v17 banner output breaking Claude Desktop MCP integration
|
|
280
|
-
- **Type generation**: Requires server running locally (`npm run generate:types` hits localhost:3200)
|
|
281
|
-
- **Schema changes**: May introduce breaking type changes; always run full verification after regenerating
|
|
282
|
-
- **Env merge order**: Use `{ ...substitutedEnv, ...process.env }` so parent env vars (Claude Desktop) take priority over manifest substitutions
|
|
283
|
-
- **Skill endpoints**: Currently implemented in server code but may not be deployed to production yet
|
package/LICENSE
DELETED
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
Apache License
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
4
|
-
|
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
-
|
|
7
|
-
1. Definitions.
|
|
8
|
-
|
|
9
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
-
|
|
12
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
-
the copyright owner that is granting the License.
|
|
14
|
-
|
|
15
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
-
other entities that control, are controlled by, or are under common
|
|
17
|
-
control with that entity. For the purposes of this definition,
|
|
18
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
-
direction or management of such entity, whether by contract or
|
|
20
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
-
exercising permissions granted by this License.
|
|
25
|
-
|
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
-
including but not limited to software source code, documentation
|
|
28
|
-
source, and configuration files.
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
-
(an example is provided in the Appendix below).
|
|
39
|
-
|
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
-
the Work and Derivative Works thereof.
|
|
47
|
-
|
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
|
49
|
-
the original version of the Work and any modifications or additions
|
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
-
means any form of electronic, verbal, or written communication sent
|
|
55
|
-
to the Licensor or its representatives, including but not limited to
|
|
56
|
-
communication on electronic mailing lists, source code control systems,
|
|
57
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
-
excluding communication that is conspicuously marked or otherwise
|
|
60
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
-
|
|
62
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
-
subsequently incorporated within the Work.
|
|
65
|
-
|
|
66
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
-
Work and such Derivative Works in Source or Object form.
|
|
72
|
-
|
|
73
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
-
(except as stated in this section) patent license to make, have made,
|
|
77
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
-
where such license applies only to those patent claims licensable
|
|
79
|
-
by such Contributor that are necessarily infringed by their
|
|
80
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
-
institute patent litigation against any entity (including a
|
|
83
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
-
or contributory patent infringement, then any patent licenses
|
|
86
|
-
granted to You under this License for that Work shall terminate
|
|
87
|
-
as of the date such litigation is filed.
|
|
88
|
-
|
|
89
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
-
modifications, and in Source or Object form, provided that You
|
|
92
|
-
meet the following conditions:
|
|
93
|
-
|
|
94
|
-
(a) You must give any other recipients of the Work or
|
|
95
|
-
Derivative Works a copy of this License; and
|
|
96
|
-
|
|
97
|
-
(b) You must cause any modified files to carry prominent notices
|
|
98
|
-
stating that You changed the files; and
|
|
99
|
-
|
|
100
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
-
that You distribute, all copyright, patent, trademark, and
|
|
102
|
-
attribution notices from the Source form of the Work,
|
|
103
|
-
excluding those notices that do not pertain to any part of
|
|
104
|
-
the Derivative Works; and
|
|
105
|
-
|
|
106
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
-
distribution, then any Derivative Works that You distribute must
|
|
108
|
-
include a readable copy of the attribution notices contained
|
|
109
|
-
within such NOTICE file, excluding those notices that do not
|
|
110
|
-
pertain to any part of the Derivative Works, in at least one
|
|
111
|
-
of the following places: within a NOTICE text file distributed
|
|
112
|
-
as part of the Derivative Works; within the Source form or
|
|
113
|
-
documentation, if provided along with the Derivative Works; or,
|
|
114
|
-
within a display generated by the Derivative Works, if and
|
|
115
|
-
wherever such third-party notices normally appear. The contents
|
|
116
|
-
of the NOTICE file are for informational purposes only and
|
|
117
|
-
do not modify the License. You may add Your own attribution
|
|
118
|
-
notices within Derivative Works that You distribute, alongside
|
|
119
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
-
that such additional attribution notices cannot be construed
|
|
121
|
-
as modifying the License.
|
|
122
|
-
|
|
123
|
-
You may add Your own copyright statement to Your modifications and
|
|
124
|
-
may provide additional or different license terms and conditions
|
|
125
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
-
the conditions stated in this License.
|
|
129
|
-
|
|
130
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
-
this License, without any additional terms or conditions.
|
|
134
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
-
the terms of any separate license agreement you may have executed
|
|
136
|
-
with Licensor regarding such Contributions.
|
|
137
|
-
|
|
138
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
-
except as required for reasonable and customary use in describing the
|
|
141
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
-
|
|
143
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
-
implied, including, without limitation, any warranties or conditions
|
|
148
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
-
appropriateness of using or redistributing the Work and assume any
|
|
151
|
-
risks associated with Your exercise of permissions under this License.
|
|
152
|
-
|
|
153
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
-
unless required by applicable law (such as deliberate and grossly
|
|
156
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
-
liable to You for damages, including any direct, indirect, special,
|
|
158
|
-
incidental, or consequential damages of any character arising as a
|
|
159
|
-
result of this License or out of the use or inability to use the
|
|
160
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
-
other commercial damages or losses), even if such Contributor
|
|
163
|
-
has been advised of the possibility of such damages.
|
|
164
|
-
|
|
165
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
-
or other liability obligations and/or rights consistent with this
|
|
169
|
-
License. However, in accepting such obligations, You may act only
|
|
170
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
-
defend, and hold each Contributor harmless for any liability
|
|
173
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
-
of your accepting any such warranty or additional liability.
|
|
175
|
-
|
|
176
|
-
END OF TERMS AND CONDITIONS
|
|
177
|
-
|
|
178
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
-
|
|
180
|
-
To apply the Apache License to your work, attach the following
|
|
181
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
-
replaced with your own identifying information. (Don't include
|
|
183
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
-
comment syntax for the file format. We also recommend that a
|
|
185
|
-
file or class name and description of purpose be included on the
|
|
186
|
-
same "printed page" as the copyright notice for easier
|
|
187
|
-
identification within third-party archives.
|
|
188
|
-
|
|
189
|
-
Copyright 2025 NimbleBrain, Inc.
|
|
190
|
-
|
|
191
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
-
you may not use this file except in compliance with the License.
|
|
193
|
-
You may obtain a copy of the License at
|
|
194
|
-
|
|
195
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
-
|
|
197
|
-
Unless required by applicable law or agreed to in writing, software
|
|
198
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
-
See the License for the specific language governing permissions and
|
|
201
|
-
limitations under the License.
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export interface ConfigSetOptions {
|
|
2
|
-
}
|
|
3
|
-
export interface ConfigGetOptions {
|
|
4
|
-
json?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export interface ConfigClearOptions {
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Set config value(s) for a package
|
|
10
|
-
* @example mpak config set @scope/name api_key=xxx
|
|
11
|
-
* @example mpak config set @scope/name api_key=xxx other_key=yyy
|
|
12
|
-
*/
|
|
13
|
-
export declare function handleConfigSet(packageName: string, keyValuePairs: string[], _options?: ConfigSetOptions): Promise<void>;
|
|
14
|
-
/**
|
|
15
|
-
* Get config values for a package
|
|
16
|
-
* @example mpak config get @scope/name
|
|
17
|
-
* @example mpak config get @scope/name --json
|
|
18
|
-
*/
|
|
19
|
-
export declare function handleConfigGet(packageName: string, options?: ConfigGetOptions): Promise<void>;
|
|
20
|
-
/**
|
|
21
|
-
* List all packages with stored config
|
|
22
|
-
* @example mpak config list
|
|
23
|
-
*/
|
|
24
|
-
export declare function handleConfigList(options?: ConfigGetOptions): Promise<void>;
|
|
25
|
-
/**
|
|
26
|
-
* Clear config for a package
|
|
27
|
-
* @example mpak config clear @scope/name # clears all
|
|
28
|
-
* @example mpak config clear @scope/name api_key # clears specific key
|
|
29
|
-
*/
|
|
30
|
-
export declare function handleConfigClear(packageName: string, key?: string, _options?: ConfigClearOptions): Promise<void>;
|
|
31
|
-
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/commands/config.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,gBAAgB;CAEhC;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;CAElC;AAYD;;;;GAIG;AACH,wBAAsB,eAAe,CACnC,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,EAAE,EACvB,QAAQ,GAAE,gBAAqB,GAC9B,OAAO,CAAC,IAAI,CAAC,CA8Bf;AAED;;;;GAIG;AACH,wBAAsB,eAAe,CACnC,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,IAAI,CAAC,CA0Bf;AAED;;;GAGG;AACH,wBAAsB,gBAAgB,CACpC,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,IAAI,CAAC,CAuBf;AAED;;;;GAIG;AACH,wBAAsB,iBAAiB,CACrC,WAAW,EAAE,MAAM,EACnB,GAAG,CAAC,EAAE,MAAM,EACZ,QAAQ,GAAE,kBAAuB,GAChC,OAAO,CAAC,IAAI,CAAC,CAoBf"}
|
package/dist/commands/config.js
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import { ConfigManager } from '../utils/config-manager.js';
|
|
2
|
-
/**
|
|
3
|
-
* Mask sensitive values for display (show first 4 chars, rest as *)
|
|
4
|
-
*/
|
|
5
|
-
function maskValue(value) {
|
|
6
|
-
if (value.length <= 4) {
|
|
7
|
-
return '*'.repeat(value.length);
|
|
8
|
-
}
|
|
9
|
-
return value.substring(0, 4) + '*'.repeat(value.length - 4);
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Set config value(s) for a package
|
|
13
|
-
* @example mpak config set @scope/name api_key=xxx
|
|
14
|
-
* @example mpak config set @scope/name api_key=xxx other_key=yyy
|
|
15
|
-
*/
|
|
16
|
-
export async function handleConfigSet(packageName, keyValuePairs, _options = {}) {
|
|
17
|
-
if (keyValuePairs.length === 0) {
|
|
18
|
-
process.stderr.write('Error: At least one key=value pair is required\n');
|
|
19
|
-
process.stderr.write('Usage: mpak config set <package> <key>=<value> [<key>=<value>...]\n');
|
|
20
|
-
process.exit(1);
|
|
21
|
-
}
|
|
22
|
-
const configManager = new ConfigManager();
|
|
23
|
-
let setCount = 0;
|
|
24
|
-
for (const pair of keyValuePairs) {
|
|
25
|
-
const eqIndex = pair.indexOf('=');
|
|
26
|
-
if (eqIndex === -1) {
|
|
27
|
-
process.stderr.write(`Error: Invalid format "${pair}". Expected key=value\n`);
|
|
28
|
-
process.exit(1);
|
|
29
|
-
}
|
|
30
|
-
const key = pair.substring(0, eqIndex);
|
|
31
|
-
const value = pair.substring(eqIndex + 1);
|
|
32
|
-
if (!key) {
|
|
33
|
-
process.stderr.write(`Error: Empty key in "${pair}"\n`);
|
|
34
|
-
process.exit(1);
|
|
35
|
-
}
|
|
36
|
-
configManager.setPackageConfigValue(packageName, key, value);
|
|
37
|
-
setCount++;
|
|
38
|
-
}
|
|
39
|
-
console.log(`Set ${setCount} config value(s) for ${packageName}`);
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Get config values for a package
|
|
43
|
-
* @example mpak config get @scope/name
|
|
44
|
-
* @example mpak config get @scope/name --json
|
|
45
|
-
*/
|
|
46
|
-
export async function handleConfigGet(packageName, options = {}) {
|
|
47
|
-
const configManager = new ConfigManager();
|
|
48
|
-
const config = configManager.getPackageConfig(packageName);
|
|
49
|
-
if (!config || Object.keys(config).length === 0) {
|
|
50
|
-
if (options.json) {
|
|
51
|
-
console.log(JSON.stringify({}, null, 2));
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
console.log(`No config stored for ${packageName}`);
|
|
55
|
-
}
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
if (options.json) {
|
|
59
|
-
// Mask values in JSON output too
|
|
60
|
-
const masked = {};
|
|
61
|
-
for (const [key, value] of Object.entries(config)) {
|
|
62
|
-
masked[key] = maskValue(value);
|
|
63
|
-
}
|
|
64
|
-
console.log(JSON.stringify(masked, null, 2));
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
console.log(`Config for ${packageName}:`);
|
|
68
|
-
for (const [key, value] of Object.entries(config)) {
|
|
69
|
-
console.log(` ${key}: ${maskValue(value)}`);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* List all packages with stored config
|
|
75
|
-
* @example mpak config list
|
|
76
|
-
*/
|
|
77
|
-
export async function handleConfigList(options = {}) {
|
|
78
|
-
const configManager = new ConfigManager();
|
|
79
|
-
const packages = configManager.listPackagesWithConfig();
|
|
80
|
-
if (packages.length === 0) {
|
|
81
|
-
if (options.json) {
|
|
82
|
-
console.log(JSON.stringify([], null, 2));
|
|
83
|
-
}
|
|
84
|
-
else {
|
|
85
|
-
console.log('No packages have stored config');
|
|
86
|
-
}
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
if (options.json) {
|
|
90
|
-
console.log(JSON.stringify(packages, null, 2));
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
console.log('Packages with stored config:');
|
|
94
|
-
for (const pkg of packages) {
|
|
95
|
-
const config = configManager.getPackageConfig(pkg);
|
|
96
|
-
const keyCount = config ? Object.keys(config).length : 0;
|
|
97
|
-
console.log(` ${pkg} (${keyCount} value${keyCount === 1 ? '' : 's'})`);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Clear config for a package
|
|
103
|
-
* @example mpak config clear @scope/name # clears all
|
|
104
|
-
* @example mpak config clear @scope/name api_key # clears specific key
|
|
105
|
-
*/
|
|
106
|
-
export async function handleConfigClear(packageName, key, _options = {}) {
|
|
107
|
-
const configManager = new ConfigManager();
|
|
108
|
-
if (key) {
|
|
109
|
-
// Clear specific key
|
|
110
|
-
const cleared = configManager.clearPackageConfigValue(packageName, key);
|
|
111
|
-
if (cleared) {
|
|
112
|
-
console.log(`Cleared ${key} for ${packageName}`);
|
|
113
|
-
}
|
|
114
|
-
else {
|
|
115
|
-
console.log(`No value found for ${key} in ${packageName}`);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
else {
|
|
119
|
-
// Clear all config for package
|
|
120
|
-
const cleared = configManager.clearPackageConfig(packageName);
|
|
121
|
-
if (cleared) {
|
|
122
|
-
console.log(`Cleared all config for ${packageName}`);
|
|
123
|
-
}
|
|
124
|
-
else {
|
|
125
|
-
console.log(`No config found for ${packageName}`);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
//# sourceMappingURL=config.js.map
|
|
@@ -1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
|
|
|
1
|
-
export interface PullOptions {
|
|
2
|
-
output?: string;
|
|
3
|
-
json?: boolean;
|
|
4
|
-
os?: string;
|
|
5
|
-
arch?: string;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Pull (download) a package from the registry
|
|
9
|
-
*/
|
|
10
|
-
export declare function handlePull(packageSpec: string, options?: PullOptions): Promise<void>;
|
|
11
|
-
//# sourceMappingURL=pull.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pull.d.ts","sourceRoot":"","sources":["../../../src/commands/packages/pull.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AA8BD;;GAEG;AACH,wBAAsB,UAAU,CAC9B,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,WAAgB,GACxB,OAAO,CAAC,IAAI,CAAC,CAmDf"}
|