@dipoleml/dcode-cli 2.0.1 → 2.0.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/README.md +1 -1
- package/dist/dcode.cjs +61 -28
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ DCode plans, writes, runs, and reviews code with the raven model family. It read
|
|
|
6
6
|
|
|
7
7
|
## Requirements
|
|
8
8
|
|
|
9
|
-
- Node.js
|
|
9
|
+
- Node.js 22.13 or newer (the current LTS is fine). Older versions print how to upgrade and exit with code 3
|
|
10
10
|
- macOS, Windows, or Linux
|
|
11
11
|
|
|
12
12
|
## Install
|
package/dist/dcode.cjs
CHANGED
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
(function(){var preflight=function preflight(proc) {
|
|
3
|
+
var parts = String(proc.versions.node).split(".");
|
|
4
|
+
var major = Number(parts[0]);
|
|
5
|
+
var minor = Number(parts[1]);
|
|
6
|
+
var versionOk = major > 23 || (major === 23 && minor >= 4) || (major === 22 && minor >= 13);
|
|
7
|
+
if (versionOk) return undefined;
|
|
8
|
+
var lines = [
|
|
9
|
+
"DCode needs Node.js 22.13 or newer. You have Node.js " + proc.versions.node + ".",
|
|
10
|
+
"",
|
|
11
|
+
"Install the current LTS from https://nodejs.org, or from a terminal:",
|
|
12
|
+
" Windows: winget install OpenJS.NodeJS.LTS",
|
|
13
|
+
" nvm: nvm install --lts",
|
|
14
|
+
" fnm: fnm install --lts",
|
|
15
|
+
"",
|
|
16
|
+
"Then run dcode again.",
|
|
17
|
+
];
|
|
18
|
+
return lines.join("\n");
|
|
19
|
+
};var message=preflight(process);if(message){process.stderr.write(message+"\n");process.exit(3);}})();
|
|
2
20
|
"use strict";
|
|
3
21
|
var __create = Object.create;
|
|
4
22
|
var __defProp = Object.defineProperty;
|
|
@@ -56363,10 +56381,10 @@ var init_mcp_port = __esm({
|
|
|
56363
56381
|
}
|
|
56364
56382
|
});
|
|
56365
56383
|
|
|
56366
|
-
// ../../../../node_modules/@jimp/plugin-
|
|
56384
|
+
// ../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/helpers/util.js
|
|
56367
56385
|
var util, objectUtil, ZodParsedType, getParsedType2;
|
|
56368
56386
|
var init_util2 = __esm({
|
|
56369
|
-
"../../../../node_modules/@jimp/plugin-
|
|
56387
|
+
"../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/helpers/util.js"() {
|
|
56370
56388
|
(function(util3) {
|
|
56371
56389
|
util3.assertEqual = (_2) => {
|
|
56372
56390
|
};
|
|
@@ -56500,10 +56518,10 @@ var init_util2 = __esm({
|
|
|
56500
56518
|
}
|
|
56501
56519
|
});
|
|
56502
56520
|
|
|
56503
|
-
// ../../../../node_modules/@jimp/plugin-
|
|
56521
|
+
// ../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/ZodError.js
|
|
56504
56522
|
var ZodIssueCode2, quotelessJson, ZodError2;
|
|
56505
56523
|
var init_ZodError = __esm({
|
|
56506
|
-
"../../../../node_modules/@jimp/plugin-
|
|
56524
|
+
"../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/ZodError.js"() {
|
|
56507
56525
|
init_util2();
|
|
56508
56526
|
ZodIssueCode2 = util.arrayToEnum([
|
|
56509
56527
|
"invalid_type",
|
|
@@ -56624,10 +56642,10 @@ var init_ZodError = __esm({
|
|
|
56624
56642
|
}
|
|
56625
56643
|
});
|
|
56626
56644
|
|
|
56627
|
-
// ../../../../node_modules/@jimp/plugin-
|
|
56645
|
+
// ../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/locales/en.js
|
|
56628
56646
|
var errorMap, en_default2;
|
|
56629
56647
|
var init_en2 = __esm({
|
|
56630
|
-
"../../../../node_modules/@jimp/plugin-
|
|
56648
|
+
"../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/locales/en.js"() {
|
|
56631
56649
|
init_ZodError();
|
|
56632
56650
|
init_util2();
|
|
56633
56651
|
errorMap = (issue3, _ctx) => {
|
|
@@ -56734,7 +56752,7 @@ var init_en2 = __esm({
|
|
|
56734
56752
|
}
|
|
56735
56753
|
});
|
|
56736
56754
|
|
|
56737
|
-
// ../../../../node_modules/@jimp/plugin-
|
|
56755
|
+
// ../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/errors.js
|
|
56738
56756
|
function setErrorMap2(map2) {
|
|
56739
56757
|
overrideErrorMap = map2;
|
|
56740
56758
|
}
|
|
@@ -56743,13 +56761,13 @@ function getErrorMap2() {
|
|
|
56743
56761
|
}
|
|
56744
56762
|
var overrideErrorMap;
|
|
56745
56763
|
var init_errors4 = __esm({
|
|
56746
|
-
"../../../../node_modules/@jimp/plugin-
|
|
56764
|
+
"../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/errors.js"() {
|
|
56747
56765
|
init_en2();
|
|
56748
56766
|
overrideErrorMap = en_default2;
|
|
56749
56767
|
}
|
|
56750
56768
|
});
|
|
56751
56769
|
|
|
56752
|
-
// ../../../../node_modules/@jimp/plugin-
|
|
56770
|
+
// ../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/helpers/parseUtil.js
|
|
56753
56771
|
function addIssueToContext(ctx, issueData) {
|
|
56754
56772
|
const overrideMap = getErrorMap2();
|
|
56755
56773
|
const issue3 = makeIssue({
|
|
@@ -56771,7 +56789,7 @@ function addIssueToContext(ctx, issueData) {
|
|
|
56771
56789
|
}
|
|
56772
56790
|
var makeIssue, EMPTY_PATH, ParseStatus, INVALID2, DIRTY, OK, isAborted, isDirty, isValid, isAsync;
|
|
56773
56791
|
var init_parseUtil = __esm({
|
|
56774
|
-
"../../../../node_modules/@jimp/plugin-
|
|
56792
|
+
"../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/helpers/parseUtil.js"() {
|
|
56775
56793
|
init_errors4();
|
|
56776
56794
|
init_en2();
|
|
56777
56795
|
makeIssue = (params) => {
|
|
@@ -56866,16 +56884,16 @@ var init_parseUtil = __esm({
|
|
|
56866
56884
|
}
|
|
56867
56885
|
});
|
|
56868
56886
|
|
|
56869
|
-
// ../../../../node_modules/@jimp/plugin-
|
|
56887
|
+
// ../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/helpers/typeAliases.js
|
|
56870
56888
|
var init_typeAliases = __esm({
|
|
56871
|
-
"../../../../node_modules/@jimp/plugin-
|
|
56889
|
+
"../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/helpers/typeAliases.js"() {
|
|
56872
56890
|
}
|
|
56873
56891
|
});
|
|
56874
56892
|
|
|
56875
|
-
// ../../../../node_modules/@jimp/plugin-
|
|
56893
|
+
// ../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/helpers/errorUtil.js
|
|
56876
56894
|
var errorUtil;
|
|
56877
56895
|
var init_errorUtil = __esm({
|
|
56878
|
-
"../../../../node_modules/@jimp/plugin-
|
|
56896
|
+
"../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/helpers/errorUtil.js"() {
|
|
56879
56897
|
(function(errorUtil3) {
|
|
56880
56898
|
errorUtil3.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
56881
56899
|
errorUtil3.toString = (message) => typeof message === "string" ? message : message?.message;
|
|
@@ -56883,7 +56901,7 @@ var init_errorUtil = __esm({
|
|
|
56883
56901
|
}
|
|
56884
56902
|
});
|
|
56885
56903
|
|
|
56886
|
-
// ../../../../node_modules/@jimp/plugin-
|
|
56904
|
+
// ../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/types.js
|
|
56887
56905
|
function processCreateParams(params) {
|
|
56888
56906
|
if (!params)
|
|
56889
56907
|
return {};
|
|
@@ -57077,7 +57095,7 @@ function custom2(check3, _params = {}, fatal) {
|
|
|
57077
57095
|
}
|
|
57078
57096
|
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;
|
|
57079
57097
|
var init_types2 = __esm({
|
|
57080
|
-
"../../../../node_modules/@jimp/plugin-
|
|
57098
|
+
"../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/types.js"() {
|
|
57081
57099
|
init_ZodError();
|
|
57082
57100
|
init_errors4();
|
|
57083
57101
|
init_errorUtil();
|
|
@@ -60339,7 +60357,7 @@ var init_types2 = __esm({
|
|
|
60339
60357
|
}
|
|
60340
60358
|
});
|
|
60341
60359
|
|
|
60342
|
-
// ../../../../node_modules/@jimp/plugin-
|
|
60360
|
+
// ../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/external.js
|
|
60343
60361
|
var external_exports2 = {};
|
|
60344
60362
|
__export(external_exports2, {
|
|
60345
60363
|
BRAND: () => BRAND,
|
|
@@ -60451,7 +60469,7 @@ __export(external_exports2, {
|
|
|
60451
60469
|
void: () => voidType
|
|
60452
60470
|
});
|
|
60453
60471
|
var init_external2 = __esm({
|
|
60454
|
-
"../../../../node_modules/@jimp/plugin-
|
|
60472
|
+
"../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/external.js"() {
|
|
60455
60473
|
init_errors4();
|
|
60456
60474
|
init_parseUtil();
|
|
60457
60475
|
init_typeAliases();
|
|
@@ -60461,10 +60479,10 @@ var init_external2 = __esm({
|
|
|
60461
60479
|
}
|
|
60462
60480
|
});
|
|
60463
60481
|
|
|
60464
|
-
// ../../../../node_modules/@jimp/plugin-
|
|
60482
|
+
// ../../../../node_modules/@jimp/plugin-flip/node_modules/zod/index.js
|
|
60465
60483
|
var zod_default;
|
|
60466
60484
|
var init_zod2 = __esm({
|
|
60467
|
-
"../../../../node_modules/@jimp/plugin-
|
|
60485
|
+
"../../../../node_modules/@jimp/plugin-flip/node_modules/zod/index.js"() {
|
|
60468
60486
|
init_external2();
|
|
60469
60487
|
init_external2();
|
|
60470
60488
|
zod_default = external_exports2;
|
|
@@ -61509,9 +61527,9 @@ var init_getRelativePath = __esm({
|
|
|
61509
61527
|
}
|
|
61510
61528
|
});
|
|
61511
61529
|
|
|
61512
|
-
// ../../../../node_modules/@jimp/plugin-
|
|
61530
|
+
// ../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/index.js
|
|
61513
61531
|
var init_v3 = __esm({
|
|
61514
|
-
"../../../../node_modules/@jimp/plugin-
|
|
61532
|
+
"../../../../node_modules/@jimp/plugin-flip/node_modules/zod/v3/index.js"() {
|
|
61515
61533
|
init_external2();
|
|
61516
61534
|
}
|
|
61517
61535
|
});
|
|
@@ -217466,9 +217484,12 @@ var init_coding_plan_api_key_error = __esm({
|
|
|
217466
217484
|
"../adapters/dist/auth/coding-plan-api-key-error.js"() {
|
|
217467
217485
|
"use strict";
|
|
217468
217486
|
CodingPlanApiKeyError = class extends Error {
|
|
217487
|
+
/** HTTP status of the failing remote call, when the failure was an HTTP error. */
|
|
217488
|
+
httpStatus;
|
|
217469
217489
|
constructor(message, options2 = {}) {
|
|
217470
|
-
super(message, options2);
|
|
217490
|
+
super(message, options2.cause === void 0 ? void 0 : { cause: options2.cause });
|
|
217471
217491
|
this.name = "CodingPlanApiKeyError";
|
|
217492
|
+
this.httpStatus = options2.httpStatus;
|
|
217472
217493
|
}
|
|
217473
217494
|
};
|
|
217474
217495
|
}
|
|
@@ -217562,7 +217583,7 @@ async function requestRemoteData(httpClient, request2, runOptions) {
|
|
|
217562
217583
|
...request2
|
|
217563
217584
|
}, runOptions);
|
|
217564
217585
|
if (response.status < 200 || response.status >= 300) {
|
|
217565
|
-
throw new CodingPlanApiKeyError(`Remote HTTP error ${response.status}`, { cause: new TextDecoder().decode(response.body).slice(0, 200) });
|
|
217586
|
+
throw new CodingPlanApiKeyError(`Remote HTTP error ${response.status}`, { cause: new TextDecoder().decode(response.body).slice(0, 200), httpStatus: response.status });
|
|
217566
217587
|
}
|
|
217567
217588
|
let parsed;
|
|
217568
217589
|
try {
|
|
@@ -217687,7 +217708,19 @@ function createCodingPlanApiKeyResolver(options2) {
|
|
|
217687
217708
|
observe({ kind: "cache_invalidated" });
|
|
217688
217709
|
}
|
|
217689
217710
|
const persistedLocation = await loadPersistedLocation(input2);
|
|
217690
|
-
|
|
217711
|
+
let location2 = persistedLocation;
|
|
217712
|
+
if (!location2) {
|
|
217713
|
+
try {
|
|
217714
|
+
location2 = await resolveBizLocation(options2.httpClient, authorization, host, options2.trace, runOptions);
|
|
217715
|
+
} catch (error62) {
|
|
217716
|
+
if (dcodeBizToken === void 0 || !(error62 instanceof CodingPlanApiKeyError) || error62.httpStatus !== 404) {
|
|
217717
|
+
throw error62;
|
|
217718
|
+
}
|
|
217719
|
+
entries.set(key2, { fingerprint, token: dcodeBizToken, expiresAt: Date.now() + CACHE_TTL_MS2 });
|
|
217720
|
+
observe({ kind: "resolved", family: input2.family });
|
|
217721
|
+
return { token: dcodeBizToken };
|
|
217722
|
+
}
|
|
217723
|
+
}
|
|
217691
217724
|
if (persistedLocation) {
|
|
217692
217725
|
observe({ kind: "persisted_location_hit" });
|
|
217693
217726
|
} else {
|
|
@@ -637251,7 +637284,7 @@ async function ensureSeaPlaywrightRuntime(sea) {
|
|
|
637251
637284
|
const manifest = readManifest3(sea);
|
|
637252
637285
|
const cacheDirectory = (0, import_node_path136.join)(
|
|
637253
637286
|
cacheBaseDirectory(),
|
|
637254
|
-
"2.0.
|
|
637287
|
+
"2.0.2",
|
|
637255
637288
|
manifest.target,
|
|
637256
637289
|
`playwright-${manifest.packageVersion}-${manifest.hash}`
|
|
637257
637290
|
);
|
|
@@ -643650,7 +643683,7 @@ var init_run = __esm({
|
|
|
643650
643683
|
init_skills_command();
|
|
643651
643684
|
init_tui_command();
|
|
643652
643685
|
init_workflow_mode();
|
|
643653
|
-
version3 = true ? "2.0.
|
|
643686
|
+
version3 = true ? "2.0.2" : "0.0.0";
|
|
643654
643687
|
EMPTY_TARGET_ERROR = "--target requires non-empty text.";
|
|
643655
643688
|
DEFAULT_HEADLESS_PROMPT_MODE = "yolo";
|
|
643656
643689
|
FORCE_MCS_SCOPE_ERROR = "--force-mcs can only be used with --prompt, --target, or tui.";
|
|
@@ -644659,7 +644692,7 @@ init_arguments();
|
|
|
644659
644692
|
|
|
644660
644693
|
// src/self-update.ts
|
|
644661
644694
|
var import_node_child_process = require("node:child_process");
|
|
644662
|
-
var CLI_VERSION = true ? "2.0.
|
|
644695
|
+
var CLI_VERSION = true ? "2.0.2" : "0.0.0";
|
|
644663
644696
|
var PACKAGE = "@dipoleml/dcode-cli";
|
|
644664
644697
|
var DIST_TAGS_URL = "https://registry.npmjs.org/-/package/@dipoleml%2Fdcode-cli/dist-tags";
|
|
644665
644698
|
var CHECK_TIMEOUT_MS = 1500;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dipoleml/dcode-cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "DCode: the agentic coding CLI from DipoleML, powered by the raven model family.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dcode",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"NOTICE.md"
|
|
34
34
|
],
|
|
35
35
|
"engines": {
|
|
36
|
-
"node": "
|
|
36
|
+
"node": "^22.13.0 || >=23.4.0"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public",
|