dsh-codex-subscription 2.1.0-beta.4 → 2.1.0-beta.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.
- package/lib/client.js +987 -898
- package/lib/index.js +49 -16
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -548,25 +548,36 @@ const object = (properties) => ({
|
|
|
548
548
|
additionalProperties: false,
|
|
549
549
|
properties
|
|
550
550
|
});
|
|
551
|
+
const points = {
|
|
552
|
+
type: "array",
|
|
553
|
+
items: object({
|
|
554
|
+
x: {
|
|
555
|
+
...number,
|
|
556
|
+
required: true
|
|
557
|
+
},
|
|
558
|
+
y: {
|
|
559
|
+
...number,
|
|
560
|
+
required: true
|
|
561
|
+
}
|
|
562
|
+
})
|
|
563
|
+
};
|
|
564
|
+
const point = object({
|
|
565
|
+
x: {
|
|
566
|
+
...number,
|
|
567
|
+
required: true
|
|
568
|
+
},
|
|
569
|
+
y: {
|
|
570
|
+
...number,
|
|
571
|
+
required: true
|
|
572
|
+
}
|
|
573
|
+
});
|
|
551
574
|
const style = {
|
|
552
575
|
color: string,
|
|
553
576
|
width: number,
|
|
554
577
|
opacity: number,
|
|
555
578
|
fill: { type: "boolean" },
|
|
556
579
|
text: string,
|
|
557
|
-
points
|
|
558
|
-
type: "array",
|
|
559
|
-
items: object({
|
|
560
|
-
x: {
|
|
561
|
-
...number,
|
|
562
|
-
required: true
|
|
563
|
-
},
|
|
564
|
-
y: {
|
|
565
|
-
...number,
|
|
566
|
-
required: true
|
|
567
|
-
}
|
|
568
|
-
})
|
|
569
|
-
}
|
|
580
|
+
points
|
|
570
581
|
};
|
|
571
582
|
const sketchCommandArray = {
|
|
572
583
|
type: "array",
|
|
@@ -583,7 +594,29 @@ const sketchCommandArray = {
|
|
|
583
594
|
},
|
|
584
595
|
id: {
|
|
585
596
|
oneOf: [{ type: "string" }, { type: "integer" }],
|
|
586
|
-
description: "Object string ID; layer
|
|
597
|
+
description: "Object string ID. Layer add: optional NEW unique integer ID; other layer actions: existing layer ID."
|
|
598
|
+
},
|
|
599
|
+
after: {
|
|
600
|
+
type: "integer",
|
|
601
|
+
description: "Layer add only: existing layer to insert after; defaults to active."
|
|
602
|
+
},
|
|
603
|
+
start: point,
|
|
604
|
+
segments: {
|
|
605
|
+
type: "array",
|
|
606
|
+
items: object({
|
|
607
|
+
control1: {
|
|
608
|
+
...point,
|
|
609
|
+
required: true
|
|
610
|
+
},
|
|
611
|
+
control2: {
|
|
612
|
+
...point,
|
|
613
|
+
required: true
|
|
614
|
+
},
|
|
615
|
+
end: {
|
|
616
|
+
...point,
|
|
617
|
+
required: true
|
|
618
|
+
}
|
|
619
|
+
})
|
|
587
620
|
},
|
|
588
621
|
layer: { type: "integer" },
|
|
589
622
|
shape: {
|
|
@@ -673,7 +706,7 @@ function createSketchAgentTool(bridge, attachments) {
|
|
|
673
706
|
},
|
|
674
707
|
commands: {
|
|
675
708
|
oneOf: [sketchCommandArray, { type: "string" }],
|
|
676
|
-
description: "Prefer a native command array. Legacy JSON string also accepted. Required for apply. Use named objects and update existing IDs;
|
|
709
|
+
description: "Prefer a native command array. Legacy JSON string also accepted. Required for apply. Use named objects and update existing IDs; prefer Bezier start + segments (control1/control2/end) for curves, not hundreds of pen points."
|
|
677
710
|
},
|
|
678
711
|
name: {
|
|
679
712
|
type: "string",
|
|
@@ -1971,7 +2004,7 @@ function openaiCodexSubscriptionProvider({ resolveSpeedMode = () => void 0, reso
|
|
|
1971
2004
|
Object.freeze(["0.82.1", "0.85.1"]);
|
|
1972
2005
|
//#endregion
|
|
1973
2006
|
//#region src/version.js
|
|
1974
|
-
const PACKAGE_VERSION = "2.1.0-beta.
|
|
2007
|
+
const PACKAGE_VERSION = "2.1.0-beta.5";
|
|
1975
2008
|
const USER_AGENT = `dsh-codex-subscription/${PACKAGE_VERSION}`;
|
|
1976
2009
|
//#endregion
|
|
1977
2010
|
//#region src/model-catalog.js
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-codex-subscription",
|
|
3
|
-
"version": "2.1.0-beta.
|
|
3
|
+
"version": "2.1.0-beta.5",
|
|
4
4
|
"description": "Use ChatGPT and Codex subscriptions in DeepSeek Harness with OAuth, quota, safe resets, web search, images, and Fast mode",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|