@neural-tools/core 0.1.5 → 0.1.6
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/LICENSE.md +21 -80
- package/README.md +236 -0
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/LICENSE.md
CHANGED
|
@@ -1,80 +1,21 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Luke Amy
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
### 2. Pro/Enterprise License (Proprietary)
|
|
24
|
-
|
|
25
|
-
The following features require a valid Pro or Enterprise license:
|
|
26
|
-
|
|
27
|
-
**Pro Features:**
|
|
28
|
-
- Vector database integration
|
|
29
|
-
- Semantic caching
|
|
30
|
-
- Fine-tuning workflows
|
|
31
|
-
- Cloud deployment templates (AWS/GCP)
|
|
32
|
-
- Premium templates and examples
|
|
33
|
-
- GitHub automation features
|
|
34
|
-
|
|
35
|
-
**Enterprise Features:**
|
|
36
|
-
- White-label support
|
|
37
|
-
- Custom integrations
|
|
38
|
-
- Priority support
|
|
39
|
-
- SLA guarantees
|
|
40
|
-
- Team collaboration features
|
|
41
|
-
|
|
42
|
-
These features are proprietary and may not be used without a valid license key purchased from neural-tools.dev.
|
|
43
|
-
|
|
44
|
-
### License Terms
|
|
45
|
-
|
|
46
|
-
1. **Free Tier**: You may use the free tier features for any purpose, including commercial use, under the MIT License terms.
|
|
47
|
-
|
|
48
|
-
2. **Pro/Enterprise**: You must purchase a license to access Pro or Enterprise features. Each license is:
|
|
49
|
-
- Per-user for individual licenses
|
|
50
|
-
- Per-organization for team/enterprise licenses
|
|
51
|
-
- Non-transferable without written consent
|
|
52
|
-
- Subject to the terms at neural-tools.dev/terms
|
|
53
|
-
|
|
54
|
-
3. **Source Code**: This repository is private. You may not:
|
|
55
|
-
- Redistribute the source code
|
|
56
|
-
- Create derivative works for redistribution
|
|
57
|
-
- Reverse engineer Pro/Enterprise features
|
|
58
|
-
- Remove or circumvent license checks
|
|
59
|
-
|
|
60
|
-
4. **Support**: Support is provided based on your license tier:
|
|
61
|
-
- Free: Community support only
|
|
62
|
-
- Pro: Email support (48-hour response)
|
|
63
|
-
- Enterprise: Priority support with SLA
|
|
64
|
-
|
|
65
|
-
### Warranty Disclaimer
|
|
66
|
-
|
|
67
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
68
|
-
|
|
69
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
70
|
-
|
|
71
|
-
### Contact
|
|
72
|
-
|
|
73
|
-
For licensing inquiries:
|
|
74
|
-
- Email: licensing@neural-tools.dev
|
|
75
|
-
- Website: https://neural-tools.dev/pricing
|
|
76
|
-
- Support: support@neural-tools.dev
|
|
77
|
-
|
|
78
|
-
---
|
|
79
|
-
|
|
80
|
-
**Last Updated:** January 2025
|
|
1
|
+
# MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Luke Amy
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
# @neural-tools/core
|
|
2
|
+
|
|
3
|
+
> Core utilities and types for Neural Tools
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@neural-tools/core)
|
|
6
|
+
[](../../LICENSE.md)
|
|
7
|
+
|
|
8
|
+
Shared utilities, types, and functions used across all Neural Tools packages.
|
|
9
|
+
|
|
10
|
+
## Installation
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npm install @neural-tools/core
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Features
|
|
17
|
+
|
|
18
|
+
- **Logger** - Beautiful CLI logging with colors and spinners
|
|
19
|
+
- **Types** - TypeScript types and Zod schemas
|
|
20
|
+
- **License Management** - Feature checking and validation
|
|
21
|
+
- **Utilities** - Common helper functions
|
|
22
|
+
|
|
23
|
+
## Usage
|
|
24
|
+
|
|
25
|
+
### Logger
|
|
26
|
+
|
|
27
|
+
Formatted console output with colors and loading indicators.
|
|
28
|
+
|
|
29
|
+
```typescript
|
|
30
|
+
import { logger } from '@neural-tools/core';
|
|
31
|
+
|
|
32
|
+
// Headers and sections
|
|
33
|
+
logger.header('My Application');
|
|
34
|
+
logger.section('Configuration', [
|
|
35
|
+
'Environment: production',
|
|
36
|
+
'Region: us-east-1'
|
|
37
|
+
]);
|
|
38
|
+
|
|
39
|
+
// Status messages
|
|
40
|
+
logger.success('Operation completed!');
|
|
41
|
+
logger.error('Something went wrong');
|
|
42
|
+
logger.warning('This is a warning');
|
|
43
|
+
logger.info('Informational message');
|
|
44
|
+
|
|
45
|
+
// Spinners
|
|
46
|
+
logger.startSpinner('Processing...');
|
|
47
|
+
// ... do work ...
|
|
48
|
+
logger.succeedSpinner('Done!');
|
|
49
|
+
// or
|
|
50
|
+
logger.failSpinner('Failed');
|
|
51
|
+
|
|
52
|
+
// New lines
|
|
53
|
+
logger.newline();
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Types
|
|
57
|
+
|
|
58
|
+
TypeScript types and Zod schemas for validation.
|
|
59
|
+
|
|
60
|
+
```typescript
|
|
61
|
+
import {
|
|
62
|
+
License,
|
|
63
|
+
LicenseTier,
|
|
64
|
+
MCPConfig,
|
|
65
|
+
ClaudeCommandConfig
|
|
66
|
+
} from '@neural-tools/core';
|
|
67
|
+
|
|
68
|
+
// License types
|
|
69
|
+
const license: License = {
|
|
70
|
+
tier: LicenseTier.FREE,
|
|
71
|
+
features: ['mcp-generation', 'claude-commands']
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
// MCP configuration
|
|
75
|
+
const mcpConfig: MCPConfig = {
|
|
76
|
+
name: 'my-mcp',
|
|
77
|
+
description: 'My MCP server',
|
|
78
|
+
version: '1.0.0',
|
|
79
|
+
license: 'MIT'
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
// Claude command configuration
|
|
83
|
+
const commandConfig: ClaudeCommandConfig = {
|
|
84
|
+
name: 'my-command',
|
|
85
|
+
description: 'My command',
|
|
86
|
+
content: 'Command prompt content...'
|
|
87
|
+
};
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### License Management
|
|
91
|
+
|
|
92
|
+
Check feature availability (all features are enabled by default).
|
|
93
|
+
|
|
94
|
+
```typescript
|
|
95
|
+
import {
|
|
96
|
+
checkFeature,
|
|
97
|
+
requireFeature,
|
|
98
|
+
licenseManager
|
|
99
|
+
} from '@neural-tools/core';
|
|
100
|
+
|
|
101
|
+
// Check if a feature is available
|
|
102
|
+
const hasVectorDB = await checkFeature('vector-db');
|
|
103
|
+
// Returns: true (all features are free)
|
|
104
|
+
|
|
105
|
+
// Require a feature (throws if not available)
|
|
106
|
+
await requireFeature('cloud-deployment', 'Cloud Deployment');
|
|
107
|
+
// Does not throw - all features are available
|
|
108
|
+
|
|
109
|
+
// Get current tier
|
|
110
|
+
const tier = await licenseManager.getTier();
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
## API Reference
|
|
114
|
+
|
|
115
|
+
### Logger Methods
|
|
116
|
+
|
|
117
|
+
| Method | Description |
|
|
118
|
+
|--------|-------------|
|
|
119
|
+
| `header(text)` | Display a large header |
|
|
120
|
+
| `section(title, items)` | Display a titled section with items |
|
|
121
|
+
| `success(message)` | Green success message |
|
|
122
|
+
| `error(message)` | Red error message |
|
|
123
|
+
| `warning(message)` | Yellow warning message |
|
|
124
|
+
| `info(message)` | Blue info message |
|
|
125
|
+
| `startSpinner(text)` | Start loading spinner |
|
|
126
|
+
| `succeedSpinner(text?)` | Complete spinner with success |
|
|
127
|
+
| `failSpinner(text?)` | Complete spinner with failure |
|
|
128
|
+
| `newline()` | Add blank line |
|
|
129
|
+
|
|
130
|
+
### Type Exports
|
|
131
|
+
|
|
132
|
+
```typescript
|
|
133
|
+
// License types
|
|
134
|
+
export enum LicenseTier {
|
|
135
|
+
FREE = 'free',
|
|
136
|
+
PRO = 'pro',
|
|
137
|
+
ENTERPRISE = 'enterprise'
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export interface License {
|
|
141
|
+
tier: LicenseTier;
|
|
142
|
+
email?: string;
|
|
143
|
+
key?: string;
|
|
144
|
+
expiresAt?: string;
|
|
145
|
+
features: string[];
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
// Configuration types
|
|
149
|
+
export interface MCPConfig {
|
|
150
|
+
name: string;
|
|
151
|
+
description: string;
|
|
152
|
+
version: string;
|
|
153
|
+
author?: string;
|
|
154
|
+
homepage?: string;
|
|
155
|
+
repository?: string;
|
|
156
|
+
license: string;
|
|
157
|
+
fastmcp?: {
|
|
158
|
+
tools: string[];
|
|
159
|
+
prompts: string[];
|
|
160
|
+
resources: string[];
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export interface ClaudeCommandConfig {
|
|
165
|
+
name: string;
|
|
166
|
+
description: string;
|
|
167
|
+
argumentHint?: string;
|
|
168
|
+
allowedTools?: string[];
|
|
169
|
+
content: string;
|
|
170
|
+
}
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
### License Manager
|
|
174
|
+
|
|
175
|
+
```typescript
|
|
176
|
+
class LicenseManager {
|
|
177
|
+
// Load license from disk
|
|
178
|
+
async loadLicense(): Promise<License>
|
|
179
|
+
|
|
180
|
+
// Save license to disk
|
|
181
|
+
async saveLicense(license: License): Promise<void>
|
|
182
|
+
|
|
183
|
+
// Check if feature is available (always returns true)
|
|
184
|
+
async checkFeature(feature: string): Promise<boolean>
|
|
185
|
+
|
|
186
|
+
// Require feature (no-op, all features available)
|
|
187
|
+
async requireFeature(feature: string, featureName?: string): Promise<void>
|
|
188
|
+
|
|
189
|
+
// Get current license tier
|
|
190
|
+
async getTier(): Promise<LicenseTier>
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
// Singleton instance
|
|
194
|
+
export const licenseManager: LicenseManager
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
## Dependencies
|
|
198
|
+
|
|
199
|
+
- **zod** - Schema validation
|
|
200
|
+
- **chalk** - Terminal colors
|
|
201
|
+
- **ora** - Terminal spinners
|
|
202
|
+
|
|
203
|
+
## Development
|
|
204
|
+
|
|
205
|
+
```bash
|
|
206
|
+
# Install dependencies
|
|
207
|
+
pnpm install
|
|
208
|
+
|
|
209
|
+
# Build
|
|
210
|
+
pnpm build
|
|
211
|
+
|
|
212
|
+
# Watch mode
|
|
213
|
+
pnpm dev
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
## Used By
|
|
217
|
+
|
|
218
|
+
- [@neural-tools/cli](../cli) - Main CLI tool
|
|
219
|
+
- [@neural-tools/create](../create-ai-toolkit) - Project scaffolding
|
|
220
|
+
- [@neural-tools/vector-db](../vector-db) - Vector database utilities
|
|
221
|
+
- [@neural-tools/semantic-cache](../semantic-cache) - Semantic caching
|
|
222
|
+
- [@neural-tools/fine-tune](../fine-tune) - Fine-tuning utilities
|
|
223
|
+
|
|
224
|
+
## Contributing
|
|
225
|
+
|
|
226
|
+
Contributions are welcome! See the [main repository](https://github.com/MacLeanLuke/neural-tools) for guidelines.
|
|
227
|
+
|
|
228
|
+
## License
|
|
229
|
+
|
|
230
|
+
MIT - See [LICENSE.md](../../LICENSE.md) for details.
|
|
231
|
+
|
|
232
|
+
## Links
|
|
233
|
+
|
|
234
|
+
- [Documentation](https://neural-tools.com/docs/core.html)
|
|
235
|
+
- [GitHub](https://github.com/MacLeanLuke/neural-tools)
|
|
236
|
+
- [npm](https://www.npmjs.com/package/@neural-tools/core)
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var C=Object.create;var l=Object.defineProperty;var
|
|
2
|
-
Visit https://ai-toolkit.dev/pricing to upgrade.`)}}async getTier(){return(await this.loadLicense()).tier}},m=d.getInstance();async function
|
|
1
|
+
"use strict";var C=Object.create;var l=Object.defineProperty;var w=Object.getOwnPropertyDescriptor;var L=Object.getOwnPropertyNames;var S=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty;var F=(t,e)=>{for(var i in e)l(t,i,{get:e[i],enumerable:!0})},y=(t,e,i,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of L(e))!E.call(t,s)&&s!==i&&l(t,s,{get:()=>e[s],enumerable:!(r=w(e,s))||r.enumerable});return t};var a=(t,e,i)=>(i=t!=null?C(S(t)):{},y(e||!t||!t.__esModule?l(i,"default",{value:t,enumerable:!0}):i,t)),P=t=>y(l({},"__esModule",{value:!0}),t);var R={};F(R,{ClaudeCommandConfigSchema:()=>O,LicenseManager:()=>d,LicenseSchema:()=>g,LicenseTier:()=>p,Logger:()=>c,MCPConfigSchema:()=>k,checkFeature:()=>G,checkLicense:()=>D,licenseManager:()=>m,logger:()=>b,requireFeature:()=>M});module.exports=P(R);var n=require("zod"),p=(r=>(r.FREE="free",r.PRO="pro",r.ENTERPRISE="enterprise",r))(p||{}),g=n.z.object({tier:n.z.nativeEnum(p),email:n.z.string().email().optional(),key:n.z.string().optional(),expiresAt:n.z.string().datetime().optional(),features:n.z.array(n.z.string()).default([])}),k=n.z.object({name:n.z.string(),description:n.z.string(),version:n.z.string(),author:n.z.string().optional(),homepage:n.z.string().url().optional(),repository:n.z.string().url().optional(),license:n.z.string().default("MIT"),fastmcp:n.z.object({tools:n.z.array(n.z.string()).default([]),prompts:n.z.array(n.z.string()).default([]),resources:n.z.array(n.z.string()).default([])}).optional()}),O=n.z.object({name:n.z.string(),description:n.z.string(),argumentHint:n.z.string().optional(),allowedTools:n.z.array(n.z.string()).optional(),content:n.z.string()});var u=a(require("fs/promises")),h=a(require("path")),x=a(require("os"));var f=h.default.join(x.default.homedir(),".ai-toolkit","license.json"),d=class t{static instance;license=null;constructor(){}static getInstance(){return t.instance||(t.instance=new t),t.instance}async loadLicense(){if(this.license)return this.license;try{let e=await u.default.readFile(f,"utf-8"),i=JSON.parse(e);if(this.license=g.parse(i),this.license.expiresAt&&new Date(this.license.expiresAt)<new Date)throw new Error("License has expired");return this.license}catch{return this.license={tier:"free",features:["mcp-generation","claude-commands","basic-templates"]},this.license}}async saveLicense(e){let i=g.parse(e),r=h.default.dirname(f);await u.default.mkdir(r,{recursive:!0}),await u.default.writeFile(f,JSON.stringify(i,null,2),"utf-8"),this.license=i}async checkFeature(e){return!0}async requireFeature(e,i){if(!await this.checkFeature(e)){let s=i||e;throw new Error(`Feature "${s}" requires a Pro or Enterprise license.
|
|
2
|
+
Visit https://ai-toolkit.dev/pricing to upgrade.`)}}async getTier(){return(await this.loadLicense()).tier}},m=d.getInstance();async function D(){return m.loadLicense()}async function G(t){return m.checkFeature(t)}async function M(t,e){return m.requireFeature(t,e)}var o=a(require("chalk")),v=a(require("ora")),c=class{spinner=null;info(e){console.log(o.default.blue("\u2139"),e)}success(e){console.log(o.default.green("\u2713"),e)}warn(e){console.log(o.default.yellow("\u26A0"),e)}error(e){console.log(o.default.red("\u2717"),e)}debug(e){process.env.DEBUG&&console.log(o.default.gray("\u2192"),e)}startSpinner(e){this.spinner=(0,v.default)(e).start()}succeedSpinner(e){this.spinner&&(this.spinner.succeed(e),this.spinner=null)}failSpinner(e){this.spinner&&(this.spinner.fail(e),this.spinner=null)}updateSpinner(e){this.spinner&&(this.spinner.text=e)}log(e){console.log(e)}newline(){console.log()}header(e){console.log(),console.log(o.default.bold.cyan(e)),console.log(o.default.cyan("\u2500".repeat(e.length)))}section(e,i){this.header(e),i.forEach(r=>this.log(` ${r}`)),this.newline()}},b=new c;0&&(module.exports={ClaudeCommandConfigSchema,LicenseManager,LicenseSchema,LicenseTier,Logger,MCPConfigSchema,checkFeature,checkLicense,licenseManager,logger,requireFeature});
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{z as n}from"zod";var
|
|
2
|
-
Visit https://ai-toolkit.dev/pricing to upgrade.`)}}async getTier(){return(await this.loadLicense()).tier}},
|
|
1
|
+
import{z as n}from"zod";var a=(i=>(i.FREE="free",i.PRO="pro",i.ENTERPRISE="enterprise",i))(a||{}),c=n.object({tier:n.nativeEnum(a),email:n.string().email().optional(),key:n.string().optional(),expiresAt:n.string().datetime().optional(),features:n.array(n.string()).default([])}),v=n.object({name:n.string(),description:n.string(),version:n.string(),author:n.string().optional(),homepage:n.string().url().optional(),repository:n.string().url().optional(),license:n.string().default("MIT"),fastmcp:n.object({tools:n.array(n.string()).default([]),prompts:n.array(n.string()).default([]),resources:n.array(n.string()).default([])}).optional()}),b=n.object({name:n.string(),description:n.string(),argumentHint:n.string().optional(),allowedTools:n.array(n.string()).optional(),content:n.string()});import l from"fs/promises";import d from"path";import f from"os";var p=d.join(f.homedir(),".ai-toolkit","license.json"),g=class t{static instance;license=null;constructor(){}static getInstance(){return t.instance||(t.instance=new t),t.instance}async loadLicense(){if(this.license)return this.license;try{let e=await l.readFile(p,"utf-8"),r=JSON.parse(e);if(this.license=c.parse(r),this.license.expiresAt&&new Date(this.license.expiresAt)<new Date)throw new Error("License has expired");return this.license}catch{return this.license={tier:"free",features:["mcp-generation","claude-commands","basic-templates"]},this.license}}async saveLicense(e){let r=c.parse(e),i=d.dirname(p);await l.mkdir(i,{recursive:!0}),await l.writeFile(p,JSON.stringify(r,null,2),"utf-8"),this.license=r}async checkFeature(e){return!0}async requireFeature(e,r){if(!await this.checkFeature(e)){let m=r||e;throw new Error(`Feature "${m}" requires a Pro or Enterprise license.
|
|
2
|
+
Visit https://ai-toolkit.dev/pricing to upgrade.`)}}async getTier(){return(await this.loadLicense()).tier}},u=g.getInstance();async function P(){return u.loadLicense()}async function k(t){return u.checkFeature(t)}async function O(t,e){return u.requireFeature(t,e)}import o from"chalk";import h from"ora";var s=class{spinner=null;info(e){console.log(o.blue("\u2139"),e)}success(e){console.log(o.green("\u2713"),e)}warn(e){console.log(o.yellow("\u26A0"),e)}error(e){console.log(o.red("\u2717"),e)}debug(e){process.env.DEBUG&&console.log(o.gray("\u2192"),e)}startSpinner(e){this.spinner=h(e).start()}succeedSpinner(e){this.spinner&&(this.spinner.succeed(e),this.spinner=null)}failSpinner(e){this.spinner&&(this.spinner.fail(e),this.spinner=null)}updateSpinner(e){this.spinner&&(this.spinner.text=e)}log(e){console.log(e)}newline(){console.log()}header(e){console.log(),console.log(o.bold.cyan(e)),console.log(o.cyan("\u2500".repeat(e.length)))}section(e,r){this.header(e),r.forEach(i=>this.log(` ${i}`)),this.newline()}},y=new s;export{b as ClaudeCommandConfigSchema,g as LicenseManager,c as LicenseSchema,a as LicenseTier,s as Logger,v as MCPConfigSchema,k as checkFeature,P as checkLicense,u as licenseManager,y as logger,O as requireFeature};
|