@ornexus/neocortex 4.0.1 → 4.0.2

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 (62) hide show
  1. package/install.ps1 +92 -33
  2. package/install.sh +15 -1
  3. package/package.json +3 -3
  4. package/packages/client/dist/adapters/adapter-registry.js +1 -106
  5. package/packages/client/dist/adapters/antigravity-adapter.js +2 -77
  6. package/packages/client/dist/adapters/claude-code-adapter.js +3 -79
  7. package/packages/client/dist/adapters/codex-adapter.js +2 -80
  8. package/packages/client/dist/adapters/cursor-adapter.js +4 -115
  9. package/packages/client/dist/adapters/gemini-adapter.js +2 -71
  10. package/packages/client/dist/adapters/index.js +1 -21
  11. package/packages/client/dist/adapters/platform-detector.js +1 -106
  12. package/packages/client/dist/adapters/target-adapter.js +0 -12
  13. package/packages/client/dist/adapters/vscode-adapter.js +2 -72
  14. package/packages/client/dist/agent/refresh-stubs.js +2 -234
  15. package/packages/client/dist/agent/update-agent-yaml.js +1 -102
  16. package/packages/client/dist/agent/update-description.js +1 -251
  17. package/packages/client/dist/cache/crypto-utils.js +1 -76
  18. package/packages/client/dist/cache/encrypted-cache.js +1 -94
  19. package/packages/client/dist/cache/in-memory-asset-cache.js +1 -70
  20. package/packages/client/dist/cache/index.js +1 -13
  21. package/packages/client/dist/cli.js +2 -163
  22. package/packages/client/dist/commands/activate.js +8 -390
  23. package/packages/client/dist/commands/cache-status.js +2 -112
  24. package/packages/client/dist/commands/invoke.js +28 -490
  25. package/packages/client/dist/config/resolver-selection.js +1 -278
  26. package/packages/client/dist/config/secure-config.js +12 -269
  27. package/packages/client/dist/constants.js +1 -25
  28. package/packages/client/dist/context/context-collector.js +2 -222
  29. package/packages/client/dist/context/context-sanitizer.js +1 -145
  30. package/packages/client/dist/index.js +1 -38
  31. package/packages/client/dist/license/index.js +1 -5
  32. package/packages/client/dist/license/license-client.js +1 -257
  33. package/packages/client/dist/machine/fingerprint.js +2 -160
  34. package/packages/client/dist/machine/index.js +1 -5
  35. package/packages/client/dist/resilience/circuit-breaker.js +1 -170
  36. package/packages/client/dist/resilience/degradation-manager.js +1 -164
  37. package/packages/client/dist/resilience/freshness-indicator.js +1 -100
  38. package/packages/client/dist/resilience/index.js +1 -8
  39. package/packages/client/dist/resilience/recovery-detector.js +1 -74
  40. package/packages/client/dist/resolvers/asset-resolver.js +0 -13
  41. package/packages/client/dist/resolvers/local-resolver.js +8 -218
  42. package/packages/client/dist/resolvers/remote-resolver.js +1 -282
  43. package/packages/client/dist/telemetry/index.js +1 -5
  44. package/packages/client/dist/telemetry/offline-queue.js +1 -131
  45. package/packages/client/dist/tier/index.js +1 -5
  46. package/packages/client/dist/tier/tier-aware-client.js +1 -260
  47. package/packages/client/dist/types/index.js +1 -38
  48. package/targets-stubs/antigravity/gemini.md +1 -1
  49. package/targets-stubs/antigravity/install-antigravity.sh +49 -3
  50. package/targets-stubs/antigravity/skill/SKILL.md +23 -4
  51. package/targets-stubs/claude-code/neocortex.agent.yaml +19 -1
  52. package/targets-stubs/claude-code/neocortex.md +64 -29
  53. package/targets-stubs/codex/agents.md +20 -3
  54. package/targets-stubs/codex/config-mcp.toml +5 -0
  55. package/targets-stubs/cursor/agent.md +23 -5
  56. package/targets-stubs/cursor/install-cursor.sh +51 -3
  57. package/targets-stubs/cursor/mcp.json +7 -0
  58. package/targets-stubs/gemini-cli/agent.md +37 -6
  59. package/targets-stubs/gemini-cli/install-gemini.sh +50 -17
  60. package/targets-stubs/vscode/agent.md +47 -10
  61. package/targets-stubs/vscode/install-vscode.sh +50 -3
  62. package/targets-stubs/vscode/mcp.json +8 -0
@@ -1,222 +1,2 @@
1
- /**
2
- * @license FSL-1.1
3
- * Copyright (c) 2026 OrNexus AI
4
- *
5
- * This file is part of Neocortex CLI, licensed under the
6
- * Functional Source License, Version 1.1 (FSL-1.1).
7
- *
8
- * Change Date: February 20, 2029
9
- * Change License: MIT
10
- *
11
- * See the LICENSE file in the project root for full license text.
12
- */
13
- /**
14
- * @neocortex/client - Context Collector
15
- *
16
- * Collects pipeline context from state.json, package.json, and story files.
17
- * Sanitizes all sensitive data before returning the context.
18
- */
19
- import { readFile } from 'node:fs/promises';
20
- import { join } from 'node:path';
21
- import { sanitizeObject } from './context-sanitizer.js';
22
- // ── Frontmatter extraction (reused from local-resolver) ──────────────────
23
- const FRONTMATTER_REGEX = /^---\n([\s\S]*?)\n---/;
24
- function extractFrontmatter(content) {
25
- const match = content.match(FRONTMATTER_REGEX);
26
- if (!match)
27
- return {};
28
- const result = {};
29
- for (const line of match[1].split('\n')) {
30
- const colonIndex = line.indexOf(':');
31
- if (colonIndex === -1)
32
- continue;
33
- const key = line.slice(0, colonIndex).trim().replace(/^['"]|['"]$/g, '');
34
- const value = line.slice(colonIndex + 1).trim().replace(/^['"]|['"]$/g, '');
35
- result[key] = value;
36
- }
37
- return result;
38
- }
39
- // ── Acceptance Criteria Extraction ───────────────────────────────────────
40
- function extractAcceptanceCriteria(content) {
41
- const criteria = [];
42
- const acPattern = /\*\*AC\d+:?\s*([^*]+)\*\*/g;
43
- let match;
44
- while ((match = acPattern.exec(content)) !== null) {
45
- criteria.push(match[1].trim());
46
- }
47
- return criteria;
48
- }
49
- // ── Framework Detection ──────────────────────────────────────────────────
50
- const FRAMEWORK_INDICATORS = {
51
- react: 'React',
52
- next: 'Next.js',
53
- vue: 'Vue',
54
- nuxt: 'Nuxt',
55
- angular: 'Angular',
56
- svelte: 'Svelte',
57
- express: 'Express',
58
- fastify: 'Fastify',
59
- nest: 'NestJS',
60
- koa: 'Koa',
61
- hapi: 'Hapi',
62
- };
63
- function detectFrameworks(deps) {
64
- const frameworks = [];
65
- for (const [dep, name] of Object.entries(FRAMEWORK_INDICATORS)) {
66
- if (dep in deps) {
67
- frameworks.push(name);
68
- }
69
- }
70
- return frameworks;
71
- }
72
- // ── Language Detection ───────────────────────────────────────────────────
73
- function detectLanguages(deps) {
74
- const languages = new Set();
75
- languages.add('JavaScript'); // Always present in Node.js projects
76
- if ('typescript' in deps || Object.keys(deps).some((d) => d.includes('ts-'))) {
77
- languages.add('TypeScript');
78
- }
79
- return [...languages];
80
- }
81
- /**
82
- * Collect complete pipeline context.
83
- *
84
- * Reads state.json, package.json, and story file to build
85
- * a sanitized PipelineContext for the remote server.
86
- */
87
- export async function collectContext(options) {
88
- const { projectRoot, storyFilePath, storyId, stepId, platformTarget } = options;
89
- // Collect state context
90
- const stateContext = await collectStateContext(projectRoot, storyId);
91
- // Collect codebase metadata
92
- const codebaseMetadata = await collectCodebaseMetadata(projectRoot);
93
- // Collect story metadata
94
- const storyMetadata = await collectStoryMetadata(storyFilePath);
95
- // Build context
96
- const context = {
97
- storyId,
98
- stepId,
99
- epicId: storyMetadata.epicId || stateContext.epicId || '',
100
- storyTitle: storyMetadata.title,
101
- currentStatus: stateContext.status,
102
- stepsCompleted: stateContext.stepsCompleted,
103
- branchName: stateContext.branchName,
104
- platformTarget: platformTarget || detectPlatform(),
105
- codebaseMetadata,
106
- storyMetadata,
107
- };
108
- // Sanitize before returning
109
- return sanitizeObject(context, projectRoot);
110
- }
111
- /**
112
- * Collect state context from state.json.
113
- */
114
- async function collectStateContext(projectRoot, storyId) {
115
- try {
116
- const statePath = join(projectRoot, '.neocortex', 'state.json');
117
- const raw = await readFile(statePath, 'utf-8');
118
- const state = JSON.parse(raw);
119
- const story = state.stories?.[storyId];
120
- return {
121
- status: story?.status || 'unknown',
122
- stepsCompleted: story?.steps_completed || [],
123
- branchName: story?.branch_name || '',
124
- epicId: story?.epic_id || '',
125
- };
126
- }
127
- catch {
128
- return {
129
- status: 'unknown',
130
- stepsCompleted: [],
131
- branchName: '',
132
- epicId: '',
133
- };
134
- }
135
- }
136
- /**
137
- * Collect codebase metadata from package.json.
138
- */
139
- async function collectCodebaseMetadata(projectRoot) {
140
- try {
141
- const pkgPath = join(projectRoot, 'package.json');
142
- const raw = await readFile(pkgPath, 'utf-8');
143
- const pkg = JSON.parse(raw);
144
- const allDeps = {
145
- ...(pkg.dependencies || {}),
146
- ...(pkg.devDependencies || {}),
147
- };
148
- return {
149
- projectName: pkg.name || 'unknown',
150
- languages: detectLanguages(allDeps),
151
- frameworks: detectFrameworks(allDeps),
152
- dependencies: pkg.dependencies || {},
153
- nodeVersion: process.version,
154
- };
155
- }
156
- catch {
157
- return {
158
- projectName: 'unknown',
159
- languages: ['JavaScript'],
160
- frameworks: [],
161
- dependencies: {},
162
- nodeVersion: process.version,
163
- };
164
- }
165
- }
166
- /**
167
- * Collect story metadata from the story file.
168
- */
169
- async function collectStoryMetadata(storyFilePath) {
170
- try {
171
- const raw = await readFile(storyFilePath, 'utf-8');
172
- const fm = extractFrontmatter(raw);
173
- const acs = extractAcceptanceCriteria(raw);
174
- // Parse dependencies array from frontmatter
175
- let deps = [];
176
- const depsStr = fm['dependencies'];
177
- if (depsStr) {
178
- try {
179
- deps = JSON.parse(depsStr.replace(/'/g, '"'));
180
- }
181
- catch {
182
- deps = depsStr.split(',').map((d) => d.trim().replace(/[[\]"']/g, ''));
183
- }
184
- }
185
- return {
186
- id: fm['id'] || '',
187
- epicId: fm['epic_id'] || '',
188
- title: fm['title'] || '',
189
- status: fm['status'] || fm['currentStatus'] || '',
190
- dependencies: deps,
191
- acceptanceCriteria: acs,
192
- };
193
- }
194
- catch {
195
- return {
196
- id: '',
197
- epicId: '',
198
- title: '',
199
- status: '',
200
- dependencies: [],
201
- acceptanceCriteria: [],
202
- };
203
- }
204
- }
205
- /**
206
- * Detect the platform target from environment.
207
- */
208
- function detectPlatform() {
209
- if (process.env['CLAUDE_CODE'] || process.env['CLAUDE_AGENT']) {
210
- return 'claude-code';
211
- }
212
- if (process.env['CURSOR_SESSION_ID']) {
213
- return 'cursor';
214
- }
215
- if (process.env['VSCODE_PID']) {
216
- return 'vscode';
217
- }
218
- if (process.env['GEMINI_CLI']) {
219
- return 'gemini-cli';
220
- }
221
- return 'unknown';
222
- }
1
+ import{readFile as i}from"node:fs/promises";import{join as p}from"node:path";import{sanitizeObject as l}from"./context-sanitizer.js";const f=/^---\n([\s\S]*?)\n---/;function m(s){const e=s.match(f);if(!e)return{};const t={};for(const n of e[1].split(`
2
+ `)){const c=n.indexOf(":");if(c===-1)continue;const a=n.slice(0,c).trim().replace(/^['"]|['"]$/g,""),r=n.slice(c+1).trim().replace(/^['"]|['"]$/g,"");t[a]=r}return t}function g(s){const e=[],t=/\*\*AC\d+:?\s*([^*]+)\*\*/g;let n;for(;(n=t.exec(s))!==null;)e.push(n[1].trim());return e}const S={react:"React",next:"Next.js",vue:"Vue",nuxt:"Nuxt",angular:"Angular",svelte:"Svelte",express:"Express",fastify:"Fastify",nest:"NestJS",koa:"Koa",hapi:"Hapi"};function w(s){const e=[];for(const[t,n]of Object.entries(S))t in s&&e.push(n);return e}function y(s){const e=new Set;return e.add("JavaScript"),("typescript"in s||Object.keys(s).some(t=>t.includes("ts-")))&&e.add("TypeScript"),[...e]}async function O(s){const{projectRoot:e,storyFilePath:t,storyId:n,stepId:c,platformTarget:a}=s,r=await h(e,n),u=await C(e),o=await I(t),d={storyId:n,stepId:c,epicId:o.epicId||r.epicId||"",storyTitle:o.title,currentStatus:r.status,stepsCompleted:r.stepsCompleted,branchName:r.branchName,platformTarget:a||x(),codebaseMetadata:u,storyMetadata:o};return l(d,e)}async function h(s,e){try{const t=p(s,".neocortex","state.json"),n=await i(t,"utf-8"),a=JSON.parse(n).stories?.[e];return{status:a?.status||"unknown",stepsCompleted:a?.steps_completed||[],branchName:a?.branch_name||"",epicId:a?.epic_id||""}}catch{return{status:"unknown",stepsCompleted:[],branchName:"",epicId:""}}}async function C(s){try{const e=p(s,"package.json"),t=await i(e,"utf-8"),n=JSON.parse(t),c={...n.dependencies||{},...n.devDependencies||{}};return{projectName:n.name||"unknown",languages:y(c),frameworks:w(c),dependencies:n.dependencies||{},nodeVersion:process.version}}catch{return{projectName:"unknown",languages:["JavaScript"],frameworks:[],dependencies:{},nodeVersion:process.version}}}async function I(s){try{const e=await i(s,"utf-8"),t=m(e),n=g(e);let c=[];const a=t.dependencies;if(a)try{c=JSON.parse(a.replace(/'/g,'"'))}catch{c=a.split(",").map(r=>r.trim().replace(/[[\]"']/g,""))}return{id:t.id||"",epicId:t.epic_id||"",title:t.title||"",status:t.status||t.currentStatus||"",dependencies:c,acceptanceCriteria:n}}catch{return{id:"",epicId:"",title:"",status:"",dependencies:[],acceptanceCriteria:[]}}}function x(){return process.env.CLAUDE_CODE||process.env.CLAUDE_AGENT?"claude-code":process.env.CURSOR_SESSION_ID?"cursor":process.env.VSCODE_PID?"vscode":process.env.GEMINI_CLI?"gemini-cli":"unknown"}export{O as collectContext};
@@ -1,145 +1 @@
1
- /**
2
- * @license FSL-1.1
3
- * Copyright (c) 2026 OrNexus AI
4
- *
5
- * This file is part of Neocortex CLI, licensed under the
6
- * Functional Source License, Version 1.1 (FSL-1.1).
7
- *
8
- * Change Date: February 20, 2029
9
- * Change License: MIT
10
- *
11
- * See the LICENSE file in the project root for full license text.
12
- */
13
- /**
14
- * @neocortex/client - Context Sanitizer
15
- *
16
- * Removes sensitive data from pipeline context before sending
17
- * to the remote server. Strips absolute paths, tokens, credentials,
18
- * and other sensitive information.
19
- */
20
- import { homedir } from 'node:os';
21
- // ── Sensitive Patterns ───────────────────────────────────────────────────
22
- /** Environment variable name patterns that indicate sensitive values */
23
- const SENSITIVE_ENV_PATTERNS = [
24
- /token/i,
25
- /key/i,
26
- /secret/i,
27
- /password/i,
28
- /credential/i,
29
- /auth/i,
30
- /github_pat_/i,
31
- /npm_token/i,
32
- /api_key/i,
33
- ];
34
- /** Regex patterns for sensitive values in strings */
35
- const SENSITIVE_VALUE_PATTERNS = [
36
- /github_pat_[A-Za-z0-9_]{36,}/g,
37
- /ghp_[A-Za-z0-9]{36,}/g,
38
- /gho_[A-Za-z0-9]{36,}/g,
39
- /sk-[A-Za-z0-9]{32,}/g,
40
- /Bearer\s+[A-Za-z0-9._\-]+/g,
41
- /-----BEGIN\s+(RSA\s+)?PRIVATE\s+KEY-----[\s\S]*?-----END/g,
42
- ];
43
- /** Maximum allowed string length before truncation */
44
- const MAX_VALUE_LENGTH = 1000;
45
- // ── Sanitization Functions ───────────────────────────────────────────────
46
- /**
47
- * Replace absolute paths with relative ones.
48
- *
49
- * Converts paths like /Users/john/projects/neocortex/src/file.ts
50
- * to ./src/file.ts based on the project root.
51
- */
52
- function sanitizePaths(value, projectRoot) {
53
- let result = value;
54
- // Replace project root path with ./
55
- if (projectRoot) {
56
- const escapedRoot = projectRoot.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
57
- result = result.replace(new RegExp(escapedRoot, 'g'), '.');
58
- }
59
- // Replace home directory with ~
60
- const home = homedir();
61
- if (home) {
62
- const escapedHome = home.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
63
- result = result.replace(new RegExp(escapedHome, 'g'), '~');
64
- }
65
- return result;
66
- }
67
- /**
68
- * Remove sensitive tokens and credentials from a string.
69
- */
70
- function sanitizeTokens(value) {
71
- let result = value;
72
- for (const pattern of SENSITIVE_VALUE_PATTERNS) {
73
- result = result.replace(pattern, '[REDACTED]');
74
- }
75
- return result;
76
- }
77
- /**
78
- * Truncate a string value if it exceeds the maximum length.
79
- */
80
- function truncateValue(value) {
81
- if (value.length <= MAX_VALUE_LENGTH) {
82
- return value;
83
- }
84
- return `${value.slice(0, MAX_VALUE_LENGTH)}...[truncated, ${value.length} chars total]`;
85
- }
86
- /**
87
- * Check if an environment variable name indicates a sensitive value.
88
- */
89
- function isSensitiveKey(key) {
90
- return SENSITIVE_ENV_PATTERNS.some((pattern) => pattern.test(key));
91
- }
92
- // ── Public API ───────────────────────────────────────────────────────────
93
- /**
94
- * Sanitize a single string value.
95
- *
96
- * Applies path sanitization, token removal, and truncation.
97
- */
98
- export function sanitizeValue(value, projectRoot) {
99
- let result = sanitizePaths(value, projectRoot);
100
- result = sanitizeTokens(result);
101
- result = truncateValue(result);
102
- return result;
103
- }
104
- /**
105
- * Sanitize a record of key-value pairs.
106
- *
107
- * Removes entries with sensitive keys and sanitizes remaining values.
108
- */
109
- export function sanitizeRecord(record, projectRoot) {
110
- const sanitized = {};
111
- for (const [key, value] of Object.entries(record)) {
112
- if (isSensitiveKey(key)) {
113
- continue; // Drop sensitive keys entirely
114
- }
115
- sanitized[key] = sanitizeValue(value, projectRoot);
116
- }
117
- return sanitized;
118
- }
119
- /**
120
- * Deep sanitize an object, processing all string values recursively.
121
- */
122
- export function sanitizeObject(obj, projectRoot) {
123
- if (obj === null || obj === undefined) {
124
- return obj;
125
- }
126
- if (typeof obj === 'string') {
127
- return sanitizeValue(obj, projectRoot);
128
- }
129
- if (Array.isArray(obj)) {
130
- return obj.map((item) => sanitizeObject(item, projectRoot));
131
- }
132
- if (typeof obj === 'object') {
133
- const result = {};
134
- for (const [key, value] of Object.entries(obj)) {
135
- if (isSensitiveKey(key) && typeof value === 'string') {
136
- result[key] = '[REDACTED]';
137
- }
138
- else {
139
- result[key] = sanitizeObject(value, projectRoot);
140
- }
141
- }
142
- return result;
143
- }
144
- return obj;
145
- }
1
+ import{homedir as o}from"node:os";const f=[/token/i,/key/i,/secret/i,/password/i,/credential/i,/auth/i,/github_pat_/i,/npm_token/i,/api_key/i],l=[/github_pat_[A-Za-z0-9_]{36,}/g,/ghp_[A-Za-z0-9]{36,}/g,/gho_[A-Za-z0-9]{36,}/g,/sk-[A-Za-z0-9]{32,}/g,/Bearer\s+[A-Za-z0-9._\-]+/g,/-----BEGIN\s+(RSA\s+)?PRIVATE\s+KEY-----[\s\S]*?-----END/g],s=1e3;function p(e,n){let t=e;if(n){const i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp(i,"g"),".")}const r=o();if(r){const i=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp(i,"g"),"~")}return t}function g(e){let n=e;for(const t of l)n=n.replace(t,"[REDACTED]");return n}function E(e){return e.length<=s?e:`${e.slice(0,s)}...[truncated, ${e.length} chars total]`}function a(e){return f.some(n=>n.test(e))}function c(e,n){let t=p(e,n);return t=g(t),t=E(t),t}function _(e,n){const t={};for(const[r,i]of Object.entries(e))a(r)||(t[r]=c(i,n));return t}function u(e,n){if(e==null)return e;if(typeof e=="string")return c(e,n);if(Array.isArray(e))return e.map(t=>u(t,n));if(typeof e=="object"){const t={};for(const[r,i]of Object.entries(e))a(r)&&typeof i=="string"?t[r]="[REDACTED]":t[r]=u(i,n);return t}return e}export{u as sanitizeObject,_ as sanitizeRecord,c as sanitizeValue};
@@ -1,38 +1 @@
1
- /**
2
- * @license FSL-1.1
3
- * Copyright (c) 2026 OrNexus AI
4
- *
5
- * This file is part of Neocortex CLI, licensed under the
6
- * Functional Source License, Version 1.1 (FSL-1.1).
7
- *
8
- * Change Date: February 20, 2029
9
- * Change License: MIT
10
- *
11
- * See the LICENSE file in the project root for full license text.
12
- */
13
- export { ResolverMode, NoOpCache } from './types/index.js';
14
- // ── Implementations ─────────────────────────────────────────────────────
15
- export { LocalResolver } from './resolvers/local-resolver.js';
16
- export { RemoteResolver, RemoteResolverError } from './resolvers/remote-resolver.js';
17
- // ── Cache ──────────────────────────────────────────────────────────────
18
- export { EncryptedCache } from './cache/index.js';
19
- // ── Factory ─────────────────────────────────────────────────────────────
20
- export { createResolver, selectResolver, } from './config/resolver-selection.js';
21
- // ── Context ─────────────────────────────────────────────────────────────
22
- export { collectContext, } from './context/context-collector.js';
23
- export { sanitizeValue, sanitizeRecord, sanitizeObject, } from './context/context-sanitizer.js';
24
- // ── Machine ──────────────────────────────────────────────────────────────
25
- export { getMachineFingerprint } from './machine/index.js';
26
- // ── License ──────────────────────────────────────────────────────────────
27
- export { LicenseClient } from './license/index.js';
28
- export { ClaudeCodeAdapter, CursorAdapter, VSCodeAdapter, GeminiAdapter, CodexAdapter, AntigravityAdapter, AdapterRegistry, UnknownTargetError, createDefaultRegistry, detectPlatform, isValidTargetId, } from './adapters/index.js';
29
- // ── Resilience (Story 42.9) ──────────────────────────────────────────────
30
- export { ClientCircuitBreaker, DegradationManager, DegradationLevel, FreshnessIndicator, RecoveryDetector, } from './resilience/index.js';
31
- // ── Telemetry (Story 42.9) ──────────────────────────────────────────────
32
- export { OfflineTelemetryQueue, } from './telemetry/index.js';
33
- // ── Commands (Story 42.9) ───────────────────────────────────────────────
34
- export { getCacheStatus, formatCacheStatus, } from './commands/cache-status.js';
35
- // ── Invoke Command (Story 45.2) ────────────────────────────────────────
36
- export { invoke, invokeCliHandler, collectStateSnapshot, } from './commands/invoke.js';
37
- // ── Tier Awareness (Epic 60) ─────────────────────────────────────────
38
- export { TierAwareClient, } from './tier/index.js';
1
+ import{ResolverMode as t,NoOpCache as o}from"./types/index.js";import{LocalResolver as i}from"./resolvers/local-resolver.js";import{RemoteResolver as p,RemoteResolverError as l}from"./resolvers/remote-resolver.js";import{EncryptedCache as d}from"./cache/index.js";import{createResolver as s,selectResolver as f}from"./config/resolver-selection.js";import{collectContext as C}from"./context/context-collector.js";import{sanitizeValue as g,sanitizeRecord as v,sanitizeObject as u}from"./context/context-sanitizer.js";import{getMachineFingerprint as h}from"./machine/index.js";import{LicenseClient as S}from"./license/index.js";import{ClaudeCodeAdapter as D,CursorAdapter as T,VSCodeAdapter as z,GeminiAdapter as E,CodexAdapter as L,AntigravityAdapter as M,AdapterRegistry as O,UnknownTargetError as V,createDefaultRegistry as w,detectPlatform as F,isValidTargetId as I}from"./adapters/index.js";import{ClientCircuitBreaker as j,DegradationManager as B,DegradationLevel as G,FreshnessIndicator as H,RecoveryDetector as N}from"./resilience/index.js";import{OfflineTelemetryQueue as Q}from"./telemetry/index.js";import{getCacheStatus as q,formatCacheStatus as J}from"./commands/cache-status.js";import{invoke as W,invokeCliHandler as X,collectStateSnapshot as Y}from"./commands/invoke.js";import{TierAwareClient as _}from"./tier/index.js";export{O as AdapterRegistry,M as AntigravityAdapter,D as ClaudeCodeAdapter,j as ClientCircuitBreaker,L as CodexAdapter,T as CursorAdapter,G as DegradationLevel,B as DegradationManager,d as EncryptedCache,H as FreshnessIndicator,E as GeminiAdapter,S as LicenseClient,i as LocalResolver,o as NoOpCache,Q as OfflineTelemetryQueue,N as RecoveryDetector,p as RemoteResolver,l as RemoteResolverError,t as ResolverMode,_ as TierAwareClient,V as UnknownTargetError,z as VSCodeAdapter,C as collectContext,Y as collectStateSnapshot,w as createDefaultRegistry,s as createResolver,F as detectPlatform,J as formatCacheStatus,q as getCacheStatus,h as getMachineFingerprint,W as invoke,X as invokeCliHandler,I as isValidTargetId,u as sanitizeObject,v as sanitizeRecord,g as sanitizeValue,f as selectResolver};
@@ -1,5 +1 @@
1
- /**
2
- * @license FSL-1.1
3
- * Copyright (c) 2026 OrNexus AI
4
- */
5
- export { LicenseClient } from './license-client.js';
1
+ import{LicenseClient as n}from"./license-client.js";export{n as LicenseClient};