
Research
/Security News
jscrambler npm Package Compromised in Supply Chain Attack
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.
@archships/dim-plugin-auto-compact
Advanced tools
Official supported auto compaction plugin for dim-agent-sdk.
context.compact.beforesummaryModel instead of the session modelassistant / tooluser message, and injects one lightweight auto-compact context user message ahead of the retained anchor querysession.messages intact for UI and restorepluginState['auto-compact'], including rolling checkpoint entries (checkpointId, createdAt) plus semantic lastAttempt diagnosticscompaction: {} or an explicit safetyRatio) on the agentModelCapabilities.contextWindow on the model adapter so the gate can derive threshold = contextWindow − plannedOutput − contextWindow × safetyRatiocompaction.compactorPluginId: 'auto-compact'import { createAgent, createModel } from '@archships/dim-agent-sdk'
import { createAutoCompactPlugin } from '@archships/dim-plugin-auto-compact'
const agent = createAgent({
model: createModel(adapter),
plugins: [
createAutoCompactPlugin({
summaryModel: { provider: 'openai', modelId: 'gpt-4.1-mini' },
retainMessages: 6,
compaction: {
auto: true,
prune: true,
reserved: 10_000,
},
}),
],
compaction: {
safetyRatio: 0.2,
compactorPluginId: 'auto-compact',
},
})
summaryModel is optional; the plugin defaults to context.status.modelmaxSummaryTokens is optional; the plugin defaults summary requests to 1024context.compact.before after SDK core budget detection firescontext_compaction_requiredauto_compaction, and session.compact() summary calls record manual_compaction<continuation_summary>...</continuation_summary> block before replay, including wrapped blocks, merged multi-block outputs, and malformed-tag fragments that still yield a non-empty semantic bodyinvalid_summary_contractlastAttempt is updated on every threshold-triggered compaction pass with planned / skipped / compacted / failed, budget metadata, estimator-based estimatedInputTokensAfter / estimatedSavedTokens, reason codes such as missing_summary_model, nothing_to_compact, empty_summary_preserved_previous, summary_generation_failed, or compaction_owner_required, and optional summaryNormalization values (plain_text, wrapped_block, extracted_block) when the summary output was inspectedpluginStatecontext.compacted notifications now include compacted / retained message counts plus estimator-based before / after / saved token fields when budgeting is enabledretainMessages remains a preferred target, but the planner can keep compacting down to the newest real user boundary when neededuser messages for the auto-compact environment note and the compaction summary around the retained anchor querypnpm run demo:auto-compact in the repo for the scripted walkthroughFAQs
Official auto compaction plugin for dim-agent-sdk.
We found that @archships/dim-plugin-auto-compact demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.

Research
/Security News
A malicious .NET package is typosquatting the Braintree SDK to steal live payment card data, merchant API keys, and host secrets from production apps.

Security News
/Research
Compromised Injective SDK npm version 1.20.21 exfiltrates wallet private keys and mnemonics through fake telemetry functionality.