@dipoleml/dcode-cli 1.2.3 → 1.2.4

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.
package/dist/dcode.cjs CHANGED
@@ -55566,10 +55566,10 @@ var init_mcp_port = __esm({
55566
55566
  }
55567
55567
  });
55568
55568
 
55569
- // ../contracts/node_modules/zod/v3/helpers/util.js
55569
+ // ../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/helpers/util.js
55570
55570
  var util, objectUtil, ZodParsedType, getParsedType2;
55571
55571
  var init_util2 = __esm({
55572
- "../contracts/node_modules/zod/v3/helpers/util.js"() {
55572
+ "../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/helpers/util.js"() {
55573
55573
  (function(util3) {
55574
55574
  util3.assertEqual = (_2) => {
55575
55575
  };
@@ -55703,10 +55703,10 @@ var init_util2 = __esm({
55703
55703
  }
55704
55704
  });
55705
55705
 
55706
- // ../contracts/node_modules/zod/v3/ZodError.js
55706
+ // ../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/ZodError.js
55707
55707
  var ZodIssueCode2, quotelessJson, ZodError2;
55708
55708
  var init_ZodError = __esm({
55709
- "../contracts/node_modules/zod/v3/ZodError.js"() {
55709
+ "../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/ZodError.js"() {
55710
55710
  init_util2();
55711
55711
  ZodIssueCode2 = util.arrayToEnum([
55712
55712
  "invalid_type",
@@ -55827,10 +55827,10 @@ var init_ZodError = __esm({
55827
55827
  }
55828
55828
  });
55829
55829
 
55830
- // ../contracts/node_modules/zod/v3/locales/en.js
55830
+ // ../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/locales/en.js
55831
55831
  var errorMap, en_default2;
55832
55832
  var init_en2 = __esm({
55833
- "../contracts/node_modules/zod/v3/locales/en.js"() {
55833
+ "../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/locales/en.js"() {
55834
55834
  init_ZodError();
55835
55835
  init_util2();
55836
55836
  errorMap = (issue3, _ctx) => {
@@ -55937,7 +55937,7 @@ var init_en2 = __esm({
55937
55937
  }
55938
55938
  });
55939
55939
 
55940
- // ../contracts/node_modules/zod/v3/errors.js
55940
+ // ../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/errors.js
55941
55941
  function setErrorMap2(map2) {
55942
55942
  overrideErrorMap = map2;
55943
55943
  }
@@ -55946,13 +55946,13 @@ function getErrorMap2() {
55946
55946
  }
55947
55947
  var overrideErrorMap;
55948
55948
  var init_errors4 = __esm({
55949
- "../contracts/node_modules/zod/v3/errors.js"() {
55949
+ "../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/errors.js"() {
55950
55950
  init_en2();
55951
55951
  overrideErrorMap = en_default2;
55952
55952
  }
55953
55953
  });
55954
55954
 
55955
- // ../contracts/node_modules/zod/v3/helpers/parseUtil.js
55955
+ // ../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/helpers/parseUtil.js
55956
55956
  function addIssueToContext(ctx, issueData) {
55957
55957
  const overrideMap = getErrorMap2();
55958
55958
  const issue3 = makeIssue({
@@ -55974,7 +55974,7 @@ function addIssueToContext(ctx, issueData) {
55974
55974
  }
55975
55975
  var makeIssue, EMPTY_PATH, ParseStatus, INVALID2, DIRTY, OK, isAborted, isDirty, isValid, isAsync;
55976
55976
  var init_parseUtil = __esm({
55977
- "../contracts/node_modules/zod/v3/helpers/parseUtil.js"() {
55977
+ "../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/helpers/parseUtil.js"() {
55978
55978
  init_errors4();
55979
55979
  init_en2();
55980
55980
  makeIssue = (params) => {
@@ -56069,16 +56069,16 @@ var init_parseUtil = __esm({
56069
56069
  }
56070
56070
  });
56071
56071
 
56072
- // ../contracts/node_modules/zod/v3/helpers/typeAliases.js
56072
+ // ../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/helpers/typeAliases.js
56073
56073
  var init_typeAliases = __esm({
56074
- "../contracts/node_modules/zod/v3/helpers/typeAliases.js"() {
56074
+ "../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/helpers/typeAliases.js"() {
56075
56075
  }
56076
56076
  });
56077
56077
 
56078
- // ../contracts/node_modules/zod/v3/helpers/errorUtil.js
56078
+ // ../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/helpers/errorUtil.js
56079
56079
  var errorUtil;
56080
56080
  var init_errorUtil = __esm({
56081
- "../contracts/node_modules/zod/v3/helpers/errorUtil.js"() {
56081
+ "../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/helpers/errorUtil.js"() {
56082
56082
  (function(errorUtil3) {
56083
56083
  errorUtil3.errToObj = (message) => typeof message === "string" ? { message } : message || {};
56084
56084
  errorUtil3.toString = (message) => typeof message === "string" ? message : message?.message;
@@ -56086,7 +56086,7 @@ var init_errorUtil = __esm({
56086
56086
  }
56087
56087
  });
56088
56088
 
56089
- // ../contracts/node_modules/zod/v3/types.js
56089
+ // ../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/types.js
56090
56090
  function processCreateParams(params) {
56091
56091
  if (!params)
56092
56092
  return {};
@@ -56280,7 +56280,7 @@ function custom2(check3, _params = {}, fatal) {
56280
56280
  }
56281
56281
  var ParseInputLazyPath, handleResult, ZodType2, cuidRegex, cuid2Regex, ulidRegex, uuidRegex, nanoidRegex, jwtRegex, durationRegex, emailRegex, _emojiRegex, emojiRegex, ipv4Regex, ipv4CidrRegex, ipv6Regex, ipv6CidrRegex, base64Regex, base64urlRegex, dateRegexSource, dateRegex, ZodString2, ZodNumber2, ZodBigInt2, ZodBoolean2, ZodDate2, ZodSymbol2, ZodUndefined2, ZodNull2, ZodAny2, ZodUnknown2, ZodNever2, ZodVoid2, ZodArray2, ZodObject2, ZodUnion2, getDiscriminator, ZodDiscriminatedUnion2, ZodIntersection2, ZodTuple2, ZodRecord2, ZodMap2, ZodSet2, ZodFunction2, ZodLazy2, ZodLiteral2, ZodEnum2, ZodNativeEnum, ZodPromise2, ZodEffects, ZodOptional2, ZodNullable2, ZodDefault2, ZodCatch2, ZodNaN2, BRAND, ZodBranded, ZodPipeline, ZodReadonly2, late, ZodFirstPartyTypeKind2, instanceOfType, stringType, numberType, nanType, bigIntType, booleanType, dateType, symbolType, undefinedType, nullType, anyType, unknownType, neverType, voidType, arrayType, objectType, strictObjectType, unionType, discriminatedUnionType, intersectionType, tupleType, recordType, mapType, setType, functionType, lazyType, literalType, enumType, nativeEnumType, promiseType, effectsType, optionalType, nullableType, preprocessType, pipelineType, ostring, onumber, oboolean, coerce, NEVER2;
56282
56282
  var init_types2 = __esm({
56283
- "../contracts/node_modules/zod/v3/types.js"() {
56283
+ "../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/types.js"() {
56284
56284
  init_ZodError();
56285
56285
  init_errors4();
56286
56286
  init_errorUtil();
@@ -59542,7 +59542,7 @@ var init_types2 = __esm({
59542
59542
  }
59543
59543
  });
59544
59544
 
59545
- // ../contracts/node_modules/zod/v3/external.js
59545
+ // ../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/external.js
59546
59546
  var external_exports2 = {};
59547
59547
  __export(external_exports2, {
59548
59548
  BRAND: () => BRAND,
@@ -59654,7 +59654,7 @@ __export(external_exports2, {
59654
59654
  void: () => voidType
59655
59655
  });
59656
59656
  var init_external2 = __esm({
59657
- "../contracts/node_modules/zod/v3/external.js"() {
59657
+ "../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/external.js"() {
59658
59658
  init_errors4();
59659
59659
  init_parseUtil();
59660
59660
  init_typeAliases();
@@ -59664,10 +59664,10 @@ var init_external2 = __esm({
59664
59664
  }
59665
59665
  });
59666
59666
 
59667
- // ../contracts/node_modules/zod/index.js
59667
+ // ../../../../node_modules/@jimp/plugin-flip/node_modules/zod/index.js
59668
59668
  var zod_default;
59669
59669
  var init_zod2 = __esm({
59670
- "../contracts/node_modules/zod/index.js"() {
59670
+ "../../../../node_modules/@jimp/plugin-flip/node_modules/zod/index.js"() {
59671
59671
  init_external2();
59672
59672
  init_external2();
59673
59673
  zod_default = external_exports2;
@@ -60710,9 +60710,9 @@ var init_getRelativePath = __esm({
60710
60710
  }
60711
60711
  });
60712
60712
 
60713
- // ../contracts/node_modules/zod/v3/index.js
60713
+ // ../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/index.js
60714
60714
  var init_v3 = __esm({
60715
- "../contracts/node_modules/zod/v3/index.js"() {
60715
+ "../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/index.js"() {
60716
60716
  init_external2();
60717
60717
  }
60718
60718
  });
@@ -70913,12 +70913,34 @@ function readAppliedMigration(db, id3) {
70913
70913
  function migrationChecksum(sql) {
70914
70914
  return (0, import_node_crypto11.createHash)("sha256").update(sql.replace(/\r\n/g, "\n").trim()).digest("hex");
70915
70915
  }
70916
+ function migrationChecksumVariants(sql) {
70917
+ const normalized = sql.replace(/\r\n/g, "\n").trim();
70918
+ let unscrambled = normalized;
70919
+ for (const [scrubbed, source] of MODEL_ID_SCRUB_PAIRS) {
70920
+ unscrambled = unscrambled.replaceAll(scrubbed, source);
70921
+ }
70922
+ const collapsed = (value3) => value3.replace(/\b(?:glm|raven)(?:[-_ ]?(?:[0-9][0-9a-z.-]*|max|flash))?/giu, "MODEL-ID");
70923
+ return [normalized, unscrambled, collapsed(normalized), collapsed(unscrambled)].map((value3) => (0, import_node_crypto11.createHash)("sha256").update(value3).digest("hex"));
70924
+ }
70925
+ function migrationChecksumAccepts(applied, sql) {
70926
+ if (applied === migrationChecksum(sql))
70927
+ return true;
70928
+ if (applied === forwardScrubbedChecksum(sql))
70929
+ return true;
70930
+ return migrationChecksumVariants(sql).includes(applied);
70931
+ }
70932
+ function forwardScrubbedChecksum(sql) {
70933
+ const scrubbed = sql.replaceAll("Raven Flash", "Raven Flash").replaceAll("Raven Max", "Raven Max");
70934
+ return migrationChecksum(scrubbed);
70935
+ }
70916
70936
  function ensureMigrationChecksum(id3, applied, sql, dbPath) {
70917
70937
  if (applied === migrationChecksum(sql))
70918
70938
  return;
70919
70939
  const crlfFlavor = (0, import_node_crypto11.createHash)("sha256").update(sql.replace(/\r\n/g, "\n").replace(/\n/g, "\r\n").trim()).digest("hex");
70920
70940
  if (applied === crlfFlavor)
70921
70941
  return;
70942
+ if (migrationChecksumAccepts(applied, sql))
70943
+ return;
70922
70944
  if (MIGRATION_ALIAS_CHECKSUMS[id3]?.includes(applied))
70923
70945
  return;
70924
70946
  throw new SqliteSessionMigrationError(`SQLite migration checksum mismatch for ${id3}. Historical migrations are immutable; add a new migration instead.`, {
@@ -70942,7 +70964,7 @@ function inspectMigrationKind(db, dbPath) {
70942
70964
  const hasDataTables = db.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name NOT IN ('schema_migration', 'sqlite_sequence') LIMIT 1").get();
70943
70965
  return hasDataTables ? "upgrade" : "initialize";
70944
70966
  }
70945
- var import_node_crypto11, DEFAULT_SQLITE_STARTUP_LOCK_TIMEOUT_MS, SQLITE_BUSY, WAL_RETRY_INITIAL_DELAY_MS, WAL_RETRY_MAX_DELAY_MS, waitBuffer, DEFAULT_SQLITE_MIGRATION_WAIT_MS, ASYNC_NATIVE_BUSY_TIMEOUT_MS, MIGRATION_ALIAS_CHECKSUMS;
70967
+ var import_node_crypto11, DEFAULT_SQLITE_STARTUP_LOCK_TIMEOUT_MS, SQLITE_BUSY, WAL_RETRY_INITIAL_DELAY_MS, WAL_RETRY_MAX_DELAY_MS, waitBuffer, DEFAULT_SQLITE_MIGRATION_WAIT_MS, ASYNC_NATIVE_BUSY_TIMEOUT_MS, MODEL_ID_SCRUB_PAIRS, MIGRATION_ALIAS_CHECKSUMS;
70946
70968
  var init_migration_runner = __esm({
70947
70969
  "../adapters/dist/storage/session-store/migration-runner.js"() {
70948
70970
  "use strict";
@@ -70957,6 +70979,12 @@ var init_migration_runner = __esm({
70957
70979
  waitBuffer = new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT));
70958
70980
  DEFAULT_SQLITE_MIGRATION_WAIT_MS = 60 * 6e4;
70959
70981
  ASYNC_NATIVE_BUSY_TIMEOUT_MS = 25;
70982
+ MODEL_ID_SCRUB_PAIRS = [
70983
+ ["Raven Flash", "Raven Flash"],
70984
+ ["Raven Max", "Raven Max"],
70985
+ ["raven-flash", "raven-flash"],
70986
+ ["raven-max", "raven-max"]
70987
+ ];
70960
70988
  MIGRATION_ALIAS_CHECKSUMS = {
70961
70989
  "0021_official_glm_selection": [
70962
70990
  "bb57ac77da3babad5821eb4346f9ea9c964f42f66e004a4d3f5550906b0f3d46",
@@ -633553,7 +633581,7 @@ async function ensureSeaPlaywrightRuntime(sea) {
633553
633581
  const manifest = readManifest3(sea);
633554
633582
  const cacheDirectory = (0, import_node_path129.join)(
633555
633583
  cacheBaseDirectory(),
633556
- "1.2.3",
633584
+ "1.2.4",
633557
633585
  manifest.target,
633558
633586
  `playwright-${manifest.packageVersion}-${manifest.hash}`
633559
633587
  );
@@ -636168,7 +636196,7 @@ var init_tui_runtime_loader = __esm({
636168
636196
  const manifest = readManifest4(sea);
636169
636197
  const cacheDirectory = (0, import_node_path132.join)(
636170
636198
  cacheBaseDirectory2(),
636171
- "1.2.3",
636199
+ "1.2.4",
636172
636200
  manifest.target,
636173
636201
  manifest.hash
636174
636202
  );
@@ -636612,7 +636640,7 @@ var init_run = __esm({
636612
636640
  init_skills_command();
636613
636641
  init_tui_command();
636614
636642
  init_workflow_mode();
636615
- version3 = true ? "1.2.3" : "0.0.0";
636643
+ version3 = true ? "1.2.4" : "0.0.0";
636616
636644
  EMPTY_TARGET_ERROR = "--target requires non-empty text.";
636617
636645
  DEFAULT_HEADLESS_PROMPT_MODE = "yolo";
636618
636646
  FORCE_MCS_SCOPE_ERROR = "--force-mcs can only be used with --prompt, --target, or tui.";
@@ -637624,7 +637652,7 @@ init_arguments();
637624
637652
 
637625
637653
  // src/self-update.ts
637626
637654
  var import_node_child_process = require("node:child_process");
637627
- var CLI_VERSION = true ? "1.2.3" : "0.0.0";
637655
+ var CLI_VERSION = true ? "1.2.4" : "0.0.0";
637628
637656
  var PACKAGE = "@dipoleml/dcode-cli";
637629
637657
  var DIST_TAGS_URL = "https://registry.npmjs.org/-/package/@dipoleml%2Fdcode-cli/dist-tags";
637630
637658
  var CHECK_TIMEOUT_MS = 1500;
@@ -5,5 +5,5 @@
5
5
  "exports": {
6
6
  ".": "./dist/index.js"
7
7
  },
8
- "version": "1.2.3"
8
+ "version": "1.2.4"
9
9
  }
@@ -30,5 +30,5 @@
30
30
  "@dcode/model-option-map": "workspace:*",
31
31
  "zod": "4.6.5"
32
32
  },
33
- "version": "1.2.3"
33
+ "version": "1.2.4"
34
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dipoleml/dcode-cli",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "DCode: the agentic coding CLI from DipoleML, powered by the raven model family.",
5
5
  "keywords": [
6
6
  "dcode",
@@ -122,8 +122,8 @@
122
122
  "dependencies": {
123
123
  "@dcode/contracts": "0.1.0",
124
124
  "@dcode/i18n": "0.1.0",
125
- "@dcode/model-option-map": "1.2.3",
126
- "@dcode/shared": "1.2.3",
125
+ "@dcode/model-option-map": "1.2.4",
126
+ "@dcode/shared": "1.2.4",
127
127
  "@dcode/tui": "0.1.0",
128
128
  "@mbears/opentui-core": "0.2.15",
129
129
  "@mbears/opentui-core-darwin-arm64": "0.2.15",