driftseal 3.3.0 → 3.3.5

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 (2) hide show
  1. package/bin/driftseal.js +10 -2
  2. package/package.json +1 -1
package/bin/driftseal.js CHANGED
@@ -3132,6 +3132,14 @@ function previousDecisionProtocolBlock(version, language = DEFAULT_LOG_LANGUAGE,
3132
3132
  return v8.replace(' --driver "<decision driver>"', '');
3133
3133
  }
3134
3134
 
3135
+ function customizedProtocolBlockError(marker) {
3136
+ return (
3137
+ `cannot safely upgrade customized protocol block beginning with ${marker}; ` +
3138
+ 'the block may come from a newer DriftSeal release even when its protocol version matches ' +
3139
+ `(current client: ${PACKAGE_VERSION}); upgrade DriftSeal and retry`
3140
+ );
3141
+ }
3142
+
3135
3143
  function upgradeManagedBlock({
3136
3144
  content,
3137
3145
  marker,
@@ -3182,7 +3190,7 @@ function upgradeManagedBlock({
3182
3190
  key === protocolBlockKey(replacement) ||
3183
3191
  knownManagedBlocks.some((known) => key === protocolBlockKey(known));
3184
3192
  if (!recognized) {
3185
- fail(`cannot safely upgrade customized protocol block beginning with ${marker}`);
3193
+ fail(customizedProtocolBlockError(marker));
3186
3194
  }
3187
3195
  return {
3188
3196
  content: content.slice(0, start) + replacement + content.slice(after),
@@ -3197,7 +3205,7 @@ function upgradeManagedBlock({
3197
3205
  found: true,
3198
3206
  };
3199
3207
  }
3200
- fail(`cannot safely upgrade customized protocol block beginning with ${marker}`);
3208
+ fail(customizedProtocolBlockError(marker));
3201
3209
  }
3202
3210
 
3203
3211
  const MCP_TARGETS = ['codex', 'kimi-code', 'opencode', 'claude-code', 'cursor'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "driftseal",
3
- "version": "3.3.0",
3
+ "version": "3.3.5",
4
4
  "description": "Seal outcomes, verification, and decisions into an auditable workflow for agentic coding",
5
5
  "keywords": [
6
6
  "driftseal",