@grundy40/contextslice 0.4.1 → 0.4.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.
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * ctxslice-mcp.mjs — Global Multi-Language MCP Server v0.4.1
3
+ * ctxslice-mcp.mjs — Global Multi-Language MCP Server v0.4.2
4
4
  * Features: Embedded Base64 Tree-sitter WASM + Lazy Cache (~/.contextslice/parsers),
5
5
  * State-Machine Brace Matcher Fallback, True Call Graph (BFS), TF-IDF, subPath Sandbox, mtime Cache
6
6
  */
@@ -11,7 +11,7 @@ import readline from 'node:readline';
11
11
  import { createRequire } from 'node:module';
12
12
 
13
13
  if (process.argv.includes('--version') || process.argv.includes('-v')) {
14
- process.stdout.write('ctxslice-mcp v0.4.1\n');
14
+ process.stdout.write('ctxslice-mcp v0.4.2\n');
15
15
  process.exit(0);
16
16
  }
17
17
 
@@ -1350,7 +1350,7 @@ function expandQueryTerms(query) {
1350
1350
 
1351
1351
  const TOOL_DEF = {
1352
1352
  name: 'get_context_slice',
1353
- description: 'PRIMARY code-reading tool (v0.4.1) with Tree-sitter WASM / State-Machine structural parsing, True Call Graph, TF-IDF & Dual-State File Tree.',
1353
+ description: 'PRIMARY code-reading tool (v0.4.2) with Tree-sitter WASM / State-Machine structural parsing, True Call Graph, TF-IDF & Dual-State File Tree.',
1354
1354
  annotations: { readOnlyHint: true },
1355
1355
  inputSchema: {
1356
1356
  type: 'object',
@@ -2378,7 +2378,7 @@ async function sliceProject(query, projectPath, budget = 32768, autoExpand = tru
2378
2378
  maxHops: 2,
2379
2379
  autoExpand,
2380
2380
  rootAttr: root,
2381
- version: '0.4.1',
2381
+ version: '0.4.2',
2382
2382
  subPathTag,
2383
2383
  includeParserAttr: true,
2384
2384
  controlWords: CONTROL_WORDS,
@@ -2400,7 +2400,7 @@ async function sliceProject(query, projectPath, budget = 32768, autoExpand = tru
2400
2400
  maxHops: 2,
2401
2401
  autoExpand,
2402
2402
  rootAttr: root,
2403
- version: '0.4.1',
2403
+ version: '0.4.2',
2404
2404
  subPathTag,
2405
2405
  includeParserAttr: true,
2406
2406
  controlWords: CONTROL_WORDS,
@@ -2424,7 +2424,7 @@ rl.on('line', async (line) => {
2424
2424
  return send({
2425
2425
  protocolVersion: req.params?.protocolVersion || '2024-11-05',
2426
2426
  capabilities: { tools: {} },
2427
- serverInfo: { name: 'ctxslice-thin', version: '0.4.1' }
2427
+ serverInfo: { name: 'ctxslice-thin', version: '0.4.2' }
2428
2428
  });
2429
2429
  }
2430
2430
  if (req.method === 'ping') return send({});
package/bin/ctxslice.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * ctxslice.mjs — Zero-Config Multi-Language Local Structural Context Pre-Compiler (v0.4.1)
3
+ * ctxslice.mjs — Zero-Config Multi-Language Local Structural Context Pre-Compiler (v0.4.2)
4
4
  * Features: Multi-Language Structural Extractors, State-Machine Brace Matcher, True Call Graph (BFS), TF-IDF, Dual-State File Tree
5
5
  */
6
6
  import fs from 'node:fs';
@@ -1342,12 +1342,12 @@ function expandQueryTerms(query) {
1342
1342
 
1343
1343
  const args = process.argv.slice(2);
1344
1344
  if (args.includes('--version') || args.includes('-v')) {
1345
- process.stdout.write('ctxslice v0.4.1\n');
1345
+ process.stdout.write('ctxslice v0.4.2\n');
1346
1346
  process.exit(0);
1347
1347
  }
1348
1348
  if (args.includes('--help') || args.includes('-h')) {
1349
1349
  process.stdout.write(
1350
- 'ContextSlice CLI v0.4.1 — Zero-Config Multi-Language Structural Code Slicer\n\n' +
1350
+ 'ContextSlice CLI v0.4.2 — Zero-Config Multi-Language Structural Code Slicer\n\n' +
1351
1351
  'Usage:\n ctxslice "<query>" [--root <dir>] [--budget <tokens>]\n\n' +
1352
1352
  'Options:\n --root <dir> Target repository path (default: current directory)\n' +
1353
1353
  ' --budget <num> Max token budget (default: 32768)\n' +
@@ -1970,7 +1970,7 @@ const outputXml = assembleContextSliceXml({
1970
1970
  maxHops: 2,
1971
1971
  autoExpand: false,
1972
1972
  rootAttr: path.basename(targetRoot),
1973
- version: '0.4.1',
1973
+ version: '0.4.2',
1974
1974
  subPathTag: '',
1975
1975
  includeParserAttr: false,
1976
1976
  controlWords: CONTROL_WORDS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grundy40/contextslice",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Zero-dependency multi-language structural code slicer & 1-Tool MCP server for AI coding assistants (Claude Code, OpenCode, Pi Agent, Cursor).",
5
5
  "type": "module",
6
6
  "bin": {