Skip to content

Verified release 2.1.4

Latest

Choose a tag to compare

@github-actions github-actions released this 06 Nov 15:46
5483563

Source Diff (ruDevolution classification)

Metric v2.1.312 v2.1.318 Delta
Classified categories 47 49 +2
Function patterns (estimate) 151172 159240 +8068
Class patterns (estimate) 2532 2610 +78

Shipped JavaScript was recovered and syntax-checked without executing it. Every recovered executable JS module passed through ruDevolution's Node keyword classifier; all source and classified-content witness hashes were checked. Categories are source fragments, not independently runnable modules. Lexical counts are estimates, not recovered original symbol identities or proof of semantic equivalence.

  • v2.1.312: 2581 JavaScript modules, 49,893,174 source bytes, 2581 verified SHA-256 witness chains (bun-elf64-source); 232 non-executable assets inventoried separately
  • v2.1.318: 2857 JavaScript modules, 52,798,900 source bytes, 2857 verified SHA-256 witness chains (bun-elf64-source); 243 non-executable assets inventoried separately

New Categories

  • tools/todo (0 functions, 0 classes)
  • tools/web-search (0 functions, 0 classes)

Changed Categories (content hashes)

  • uncategorized: +3525230 bytes, +7472 functions
  • model-provider/anthropic: -558696 bytes, -8 functions
  • permissions/checker: -268914 bytes, -633 functions
  • telemetry/events: +63707 bytes, +138 functions
  • tools/mcp-dispatch: +50379 bytes, +163 functions
  • config/settings: +44072 bytes, +123 functions
  • config/env-vars: +34462 bytes, +176 functions
  • tools/bash: +28347 bytes, -69 functions
  • auth/oauth: +19157 bytes, +28 functions
  • core/session: +17863 bytes, +40 functions
  • core/agent-loop: -16392 bytes, +83 functions
  • permissions/sandbox: +16203 bytes, +22 functions
  • core/streaming: +16202 bytes, +20 functions
  • env-vars: +11755 bytes, +0 functions
  • core/context-manager: +11702 bytes, +55 functions

AI structural discovery

Model: openai/gpt-4.1-mini

This report compares two versions (2.1.312 → 2.1.318) of the @anthropic-ai/claude-code package and summarizes structural changes at the module and code level.


Measured Structural Changes

Overall

  • Modules increased from 47 to 49 (+2 new modules, no removals).
  • Functions increased from 151,172 to 159,240 (+8,068 functions).
  • Classes increased from 2,532 to 2,610 (+78 classes).
  • Changed modules: 47 (all previous 47 modules have changes).
  • Added modules named tools/todo and tools/web-search have 0 functions/classes, small sizes (209 and 232 bytes).

Specific notable module-level changes

  • auth/oauth: +19k bytes, +28 functions, +2 classes → substantial new code additions in OAuth authentication.
  • config/env-vars: +34k bytes, +176 functions, +1 class → large expansion in environment variable configuration.
  • config/settings: +44k bytes, +123 functions → significant growth in general configuration settings.
  • core/agent-loop: -16k bytes, +83 functions, -1 class → mixed change with code removal and added functions, possible refactoring.
  • core/context-manager: +11.7k bytes, +55 functions → more context management code.
  • model-provider/anthropic: -558k bytes, -8 functions, -2 classes → large code removal, possibly major refactor or reallocation.
  • permissions/checker: -268k bytes, -633 functions, -3 classes → major code removal in permissions checker.
  • Many modules related to telemetry, MCP (multi-client proxy?), and tools show increases in functions and code size, suggesting added features in telemetry and tooling.

Code metrics

  • Total lines and size for all modules combined increased considerably (+3.5 million bytes in "uncategorized" module alone, representing significant new or moved code).
  • Function counts increased broadly, with large counts of async and arrow functions across modules.
  • Classes generally increased except for some large removals (notably in model-provider/anthropic and permissions/checker).

Hypotheses Suggested by Changes

  • New Tooling: Addition of empty but named modules tools/todo and tools/web-search suggests groundwork for new tooling integrations, but no actual functions/classes yet.
  • Authentication Expansion: Significant increase in auth/oauth (functions and classes) may imply support for new OAuth flows or providers.
  • Configuration Enhancements: Large expansions in env-vars and settings modules likely indicate new configuration options or support for more environment-driven behaviors.
  • Refactoring or Code Reduction: Substantial reductions in model-provider/anthropic and permissions/checker modules point to major refactoring, possibly moving code elsewhere, removing deprecated features, or simplifying these subsystems.
  • Telemetry Improvements: Large increases in telemetry-related modules suggest enhanced monitoring, logging, or event capabilities.
  • Tooling Updates: Increased code in tools/mcp-dispatch, tools/bash, tools/read, and others indicates additions or improvements in CLI or automation tooling.
  • Core Functionality Adjustments: Mixed positive and negative size and function deltas in core modules, such as agent-loop and context-manager, hint at internal logic rewrites or performance improvements.

Unknowns / Unclear Areas

  • No explicit identification of new providers or permissions by count alone; this report does not list semantic capabilities or permissions explicitly.
  • Functional impact or behavioral changes are indeterminate without running or reviewing runtime behavior. Changes in function counts or sizes do not guarantee new features or behavioral alterations.
  • Whether removed code represents deprecated features fully removed, or relocated code, cannot be ascertained.
  • The content or specific functionality of added empty modules (tools/todo, tools/web-search) remains unknown.
  • Impact of large code changes on external integrations or backward compatibility is not addressed by structural data.
  • No direct evidence of new or modified permissions or security implications is present, despite code removals in permissions checker.
  • Metrics alone do not confirm if async or concurrency models have changed significantly, only that counts increased or decreased.
  • No direct correlation to version roadmap or release notes; hypotheses are inferred purely from structural deltas.

Recommendations for Behavioral Verification

  • Test Authentication Flows: Verify OAuth login workflows to confirm new OAuth module additions enable new providers or improved flows.
  • Configuration Validation: Check that all newly added environment variables and settings are recognized and behave as documented (if available).
  • Permission Enforcement Tests: Given heavy removal in permissions checker, conduct thorough permission validation and sandbox boundary testing to ensure no regressions in access control.
  • Telemetry Monitoring: Confirm enhanced telemetry data is collected and reported correctly, matching the expanded telemetry module code.
  • Tooling Functional Tests: Run functional tests on CLI tools (tools/bash, tools/mcp-dispatch, tools/read) to confirm intended new capabilities operate as expected.
  • Regression Tests in model-provider/anthropic: Given large code reduction, ensure existing model provider integrations continue operating correctly without regressions.
  • Performance and Stability Testing: Core module changes indicate possible performance improvements or logic refactoring; benchmark system behavior before and after upgrade.
  • Code Review of Removed Large Modules: Manually review removed or heavily reduced code to understand user impact or migration requirements.

Summary

This structural report shows a considerable codebase evolution between versions 2.1.312 and 2.1.318, featuring:

  • Introduction of two minimal placeholder tool modules.
  • Significant expansions in auth/oauth, configuration, telemetry, and tools.
  • Major removals and potential refactoring in the permissions checker and anthropic model provider modules.
  • Core modules show both reductions and increases, indicating active refactoring.

No definitive new capabilities, providers, or permissions can be identified solely from counts and byte deltas. Behavioral impact must be confirmed through targeted testing of authentication flows, permission enforcement, telemetry, and tooling features. This report should be combined with release notes and runtime tests for comprehensive upgrade validation.

AI interpretation is advisory; structural counts do not establish implemented capabilities.