@dipoleml/dcode-cli 1.2.1 → 1.2.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.
package/dist/dcode.cjs CHANGED
@@ -55553,10 +55553,10 @@ var init_mcp_port = __esm({
55553
55553
  }
55554
55554
  });
55555
55555
 
55556
- // ../../../../node_modules/@jimp/plugin-circle/node_modules/zod/v3/helpers/util.js
55556
+ // ../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/helpers/util.js
55557
55557
  var util, objectUtil, ZodParsedType, getParsedType2;
55558
55558
  var init_util2 = __esm({
55559
- "../../../../node_modules/@jimp/plugin-circle/node_modules/zod/v3/helpers/util.js"() {
55559
+ "../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/helpers/util.js"() {
55560
55560
  (function(util3) {
55561
55561
  util3.assertEqual = (_2) => {
55562
55562
  };
@@ -55690,10 +55690,10 @@ var init_util2 = __esm({
55690
55690
  }
55691
55691
  });
55692
55692
 
55693
- // ../../../../node_modules/@jimp/plugin-circle/node_modules/zod/v3/ZodError.js
55693
+ // ../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/ZodError.js
55694
55694
  var ZodIssueCode2, quotelessJson, ZodError2;
55695
55695
  var init_ZodError = __esm({
55696
- "../../../../node_modules/@jimp/plugin-circle/node_modules/zod/v3/ZodError.js"() {
55696
+ "../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/ZodError.js"() {
55697
55697
  init_util2();
55698
55698
  ZodIssueCode2 = util.arrayToEnum([
55699
55699
  "invalid_type",
@@ -55814,10 +55814,10 @@ var init_ZodError = __esm({
55814
55814
  }
55815
55815
  });
55816
55816
 
55817
- // ../../../../node_modules/@jimp/plugin-circle/node_modules/zod/v3/locales/en.js
55817
+ // ../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/locales/en.js
55818
55818
  var errorMap, en_default2;
55819
55819
  var init_en2 = __esm({
55820
- "../../../../node_modules/@jimp/plugin-circle/node_modules/zod/v3/locales/en.js"() {
55820
+ "../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/locales/en.js"() {
55821
55821
  init_ZodError();
55822
55822
  init_util2();
55823
55823
  errorMap = (issue3, _ctx) => {
@@ -55924,7 +55924,7 @@ var init_en2 = __esm({
55924
55924
  }
55925
55925
  });
55926
55926
 
55927
- // ../../../../node_modules/@jimp/plugin-circle/node_modules/zod/v3/errors.js
55927
+ // ../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/errors.js
55928
55928
  function setErrorMap2(map2) {
55929
55929
  overrideErrorMap = map2;
55930
55930
  }
@@ -55933,13 +55933,13 @@ function getErrorMap2() {
55933
55933
  }
55934
55934
  var overrideErrorMap;
55935
55935
  var init_errors4 = __esm({
55936
- "../../../../node_modules/@jimp/plugin-circle/node_modules/zod/v3/errors.js"() {
55936
+ "../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/errors.js"() {
55937
55937
  init_en2();
55938
55938
  overrideErrorMap = en_default2;
55939
55939
  }
55940
55940
  });
55941
55941
 
55942
- // ../../../../node_modules/@jimp/plugin-circle/node_modules/zod/v3/helpers/parseUtil.js
55942
+ // ../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/helpers/parseUtil.js
55943
55943
  function addIssueToContext(ctx, issueData) {
55944
55944
  const overrideMap = getErrorMap2();
55945
55945
  const issue3 = makeIssue({
@@ -55961,7 +55961,7 @@ function addIssueToContext(ctx, issueData) {
55961
55961
  }
55962
55962
  var makeIssue, EMPTY_PATH, ParseStatus, INVALID2, DIRTY, OK, isAborted, isDirty, isValid, isAsync;
55963
55963
  var init_parseUtil = __esm({
55964
- "../../../../node_modules/@jimp/plugin-circle/node_modules/zod/v3/helpers/parseUtil.js"() {
55964
+ "../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/helpers/parseUtil.js"() {
55965
55965
  init_errors4();
55966
55966
  init_en2();
55967
55967
  makeIssue = (params) => {
@@ -56056,16 +56056,16 @@ var init_parseUtil = __esm({
56056
56056
  }
56057
56057
  });
56058
56058
 
56059
- // ../../../../node_modules/@jimp/plugin-circle/node_modules/zod/v3/helpers/typeAliases.js
56059
+ // ../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/helpers/typeAliases.js
56060
56060
  var init_typeAliases = __esm({
56061
- "../../../../node_modules/@jimp/plugin-circle/node_modules/zod/v3/helpers/typeAliases.js"() {
56061
+ "../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/helpers/typeAliases.js"() {
56062
56062
  }
56063
56063
  });
56064
56064
 
56065
- // ../../../../node_modules/@jimp/plugin-circle/node_modules/zod/v3/helpers/errorUtil.js
56065
+ // ../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/helpers/errorUtil.js
56066
56066
  var errorUtil;
56067
56067
  var init_errorUtil = __esm({
56068
- "../../../../node_modules/@jimp/plugin-circle/node_modules/zod/v3/helpers/errorUtil.js"() {
56068
+ "../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/helpers/errorUtil.js"() {
56069
56069
  (function(errorUtil3) {
56070
56070
  errorUtil3.errToObj = (message) => typeof message === "string" ? { message } : message || {};
56071
56071
  errorUtil3.toString = (message) => typeof message === "string" ? message : message?.message;
@@ -56073,7 +56073,7 @@ var init_errorUtil = __esm({
56073
56073
  }
56074
56074
  });
56075
56075
 
56076
- // ../../../../node_modules/@jimp/plugin-circle/node_modules/zod/v3/types.js
56076
+ // ../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/types.js
56077
56077
  function processCreateParams(params) {
56078
56078
  if (!params)
56079
56079
  return {};
@@ -56267,7 +56267,7 @@ function custom2(check3, _params = {}, fatal) {
56267
56267
  }
56268
56268
  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;
56269
56269
  var init_types2 = __esm({
56270
- "../../../../node_modules/@jimp/plugin-circle/node_modules/zod/v3/types.js"() {
56270
+ "../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/types.js"() {
56271
56271
  init_ZodError();
56272
56272
  init_errors4();
56273
56273
  init_errorUtil();
@@ -59529,7 +59529,7 @@ var init_types2 = __esm({
59529
59529
  }
59530
59530
  });
59531
59531
 
59532
- // ../../../../node_modules/@jimp/plugin-circle/node_modules/zod/v3/external.js
59532
+ // ../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/external.js
59533
59533
  var external_exports2 = {};
59534
59534
  __export(external_exports2, {
59535
59535
  BRAND: () => BRAND,
@@ -59641,7 +59641,7 @@ __export(external_exports2, {
59641
59641
  void: () => voidType
59642
59642
  });
59643
59643
  var init_external2 = __esm({
59644
- "../../../../node_modules/@jimp/plugin-circle/node_modules/zod/v3/external.js"() {
59644
+ "../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/external.js"() {
59645
59645
  init_errors4();
59646
59646
  init_parseUtil();
59647
59647
  init_typeAliases();
@@ -59651,10 +59651,10 @@ var init_external2 = __esm({
59651
59651
  }
59652
59652
  });
59653
59653
 
59654
- // ../../../../node_modules/@jimp/plugin-circle/node_modules/zod/index.js
59654
+ // ../../../../node_modules/@jimp/plugin-flip/node_modules/zod/index.js
59655
59655
  var zod_default;
59656
59656
  var init_zod2 = __esm({
59657
- "../../../../node_modules/@jimp/plugin-circle/node_modules/zod/index.js"() {
59657
+ "../../../../node_modules/@jimp/plugin-flip/node_modules/zod/index.js"() {
59658
59658
  init_external2();
59659
59659
  init_external2();
59660
59660
  zod_default = external_exports2;
@@ -60697,9 +60697,9 @@ var init_getRelativePath = __esm({
60697
60697
  }
60698
60698
  });
60699
60699
 
60700
- // ../../../../node_modules/@jimp/plugin-circle/node_modules/zod/v3/index.js
60700
+ // ../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/index.js
60701
60701
  var init_v3 = __esm({
60702
- "../../../../node_modules/@jimp/plugin-circle/node_modules/zod/v3/index.js"() {
60702
+ "../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/index.js"() {
60703
60703
  init_external2();
60704
60704
  }
60705
60705
  });
@@ -70788,7 +70788,7 @@ function* migrationSteps(db, dbPath, lockTimeoutMs) {
70788
70788
  const checksum = migrationChecksum(migration.sql);
70789
70789
  const applied = readAppliedMigration(db, migration.id);
70790
70790
  if (applied) {
70791
- ensureMigrationChecksum(db, migration.id, applied.checksum, migration.sql, dbPath);
70791
+ ensureMigrationChecksum(migration.id, applied.checksum, migration.sql, dbPath);
70792
70792
  completed++;
70793
70793
  continue;
70794
70794
  }
@@ -70875,18 +70875,14 @@ function readAppliedMigration(db, id3) {
70875
70875
  function migrationChecksum(sql) {
70876
70876
  return (0, import_node_crypto11.createHash)("sha256").update(sql.replace(/\r\n/g, "\n").trim()).digest("hex");
70877
70877
  }
70878
- function ensureMigrationChecksum(db, id3, applied, sql, dbPath, converge = true) {
70879
- const canonical = migrationChecksum(sql);
70880
- if (applied === canonical)
70881
- return "canonical";
70878
+ function ensureMigrationChecksum(id3, applied, sql, dbPath) {
70879
+ if (applied === migrationChecksum(sql))
70880
+ return;
70882
70881
  const crlfFlavor = (0, import_node_crypto11.createHash)("sha256").update(sql.replace(/\r\n/g, "\n").replace(/\n/g, "\r\n").trim()).digest("hex");
70883
- const historicalVariants = id3 === "0021_official_glm_selection" ? ["a87d3b138ab93ee6a7f4a4ab6afd0291efd9a8e903aaf5be838719dca1f419eb"] : [];
70884
- if (applied === crlfFlavor || historicalVariants.includes(applied)) {
70885
- if (converge) {
70886
- db.prepare("update schema_migration set checksum = ? where id = ? and checksum = ?").run(canonical, id3, applied);
70887
- }
70888
- return "converged";
70889
- }
70882
+ if (applied === crlfFlavor)
70883
+ return;
70884
+ if (MIGRATION_ALIAS_CHECKSUMS[id3]?.includes(applied))
70885
+ return;
70890
70886
  throw new SqliteSessionMigrationError(`SQLite migration checksum mismatch for ${id3}. Historical migrations are immutable; add a new migration instead.`, {
70891
70887
  dbPath,
70892
70888
  kind: "checksum_mismatch",
@@ -70899,7 +70895,7 @@ function inspectMigrationKind(db, dbPath) {
70899
70895
  for (const migration of SQLITE_MIGRATIONS) {
70900
70896
  const row = hasLedger ? readAppliedMigration(db, migration.id) : void 0;
70901
70897
  if (row)
70902
- ensureMigrationChecksum(db, migration.id, row.checksum, migration.sql, dbPath, false);
70898
+ ensureMigrationChecksum(migration.id, row.checksum, migration.sql, dbPath);
70903
70899
  else
70904
70900
  pending = true;
70905
70901
  }
@@ -70908,7 +70904,7 @@ function inspectMigrationKind(db, dbPath) {
70908
70904
  const hasDataTables = db.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name NOT IN ('schema_migration', 'sqlite_sequence') LIMIT 1").get();
70909
70905
  return hasDataTables ? "upgrade" : "initialize";
70910
70906
  }
70911
- 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;
70907
+ 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;
70912
70908
  var init_migration_runner = __esm({
70913
70909
  "../adapters/dist/storage/session-store/migration-runner.js"() {
70914
70910
  "use strict";
@@ -70923,6 +70919,20 @@ var init_migration_runner = __esm({
70923
70919
  waitBuffer = new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT));
70924
70920
  DEFAULT_SQLITE_MIGRATION_WAIT_MS = 60 * 6e4;
70925
70921
  ASYNC_NATIVE_BUSY_TIMEOUT_MS = 25;
70922
+ MIGRATION_ALIAS_CHECKSUMS = {
70923
+ "0021_official_glm_selection": [
70924
+ "bb57ac77da3babad5821eb4346f9ea9c964f42f66e004a4d3f5550906b0f3d46",
70925
+ // GLM-era (tsc dist)
70926
+ "a87d3b138ab93ee6a7f4a4ab6afd0291efd9a8e903aaf5be838719dca1f419eb"
70927
+ // raven-scrubbed era
70928
+ ],
70929
+ "0022_backfilled_session_reasoning": [
70930
+ "fdd5e7bbd65cacb695aeb838754761f16651a1af7d8867b2d218e8b993b45c4f",
70931
+ // GLM-era (tsc dist)
70932
+ "17cedf88f7e76a1d2e9910f39d6c699aaf8a4873e2a64491bac1513c48114b3c"
70933
+ // raven-scrubbed era
70934
+ ]
70935
+ };
70926
70936
  }
70927
70937
  });
70928
70938
 
@@ -633234,7 +633244,7 @@ async function ensureSeaPlaywrightRuntime(sea) {
633234
633244
  const manifest = readManifest3(sea);
633235
633245
  const cacheDirectory = (0, import_node_path132.join)(
633236
633246
  cacheBaseDirectory(),
633237
- "1.2.1",
633247
+ "1.2.2",
633238
633248
  manifest.target,
633239
633249
  `playwright-${manifest.packageVersion}-${manifest.hash}`
633240
633250
  );
@@ -635849,7 +635859,7 @@ var init_tui_runtime_loader = __esm({
635849
635859
  const manifest = readManifest4(sea);
635850
635860
  const cacheDirectory = (0, import_node_path135.join)(
635851
635861
  cacheBaseDirectory2(),
635852
- "1.2.1",
635862
+ "1.2.2",
635853
635863
  manifest.target,
635854
635864
  manifest.hash
635855
635865
  );
@@ -636293,7 +636303,7 @@ var init_run = __esm({
636293
636303
  init_skills_command();
636294
636304
  init_tui_command();
636295
636305
  init_workflow_mode();
636296
- version3 = true ? "1.2.1" : "0.0.0";
636306
+ version3 = true ? "1.2.2" : "0.0.0";
636297
636307
  EMPTY_TARGET_ERROR = "--target requires non-empty text.";
636298
636308
  DEFAULT_HEADLESS_PROMPT_MODE = "yolo";
636299
636309
  FORCE_MCS_SCOPE_ERROR = "--force-mcs can only be used with --prompt, --target, or tui.";
@@ -637305,7 +637315,7 @@ init_arguments();
637305
637315
 
637306
637316
  // src/self-update.ts
637307
637317
  var import_node_child_process = require("node:child_process");
637308
- var CLI_VERSION = true ? "1.2.1" : "0.0.0";
637318
+ var CLI_VERSION = true ? "1.2.2" : "0.0.0";
637309
637319
  var PACKAGE = "@dipoleml/dcode-cli";
637310
637320
  var DIST_TAGS_URL = "https://registry.npmjs.org/-/package/@dipoleml%2Fdcode-cli/dist-tags";
637311
637321
  var CHECK_TIMEOUT_MS = 1500;
@@ -5,5 +5,5 @@
5
5
  "exports": {
6
6
  ".": "./dist/index.js"
7
7
  },
8
- "version": "1.2.1"
8
+ "version": "1.2.2"
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.1"
33
+ "version": "1.2.2"
34
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dipoleml/dcode-cli",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
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.1",
126
- "@dcode/shared": "1.2.1",
125
+ "@dcode/model-option-map": "1.2.2",
126
+ "@dcode/shared": "1.2.2",
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",