@aiderdesk/aiderdesk 0.62.0 → 0.66.0

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 (65) hide show
  1. package/out/cli.js +1 -0
  2. package/out/{open-telemetry-CcefKvbB.js → open-telemetry-baOvr6sK.js} +1 -1
  3. package/out/renderer/assets/{arc-TuVjX2tH.js → arc-BXuUWHai.js} +1 -1
  4. package/out/renderer/assets/{architectureDiagram-Q4EWVU46-CnAcyRvO.js → architectureDiagram-3BPJPVTR-Bm9oFTP_.js} +11 -9
  5. package/out/renderer/assets/{blockDiagram-DXYQGD6D-DBoJhGAM.js → blockDiagram-GPEHLZMM-DQ2DevZl.js} +218 -30
  6. package/out/renderer/assets/{c4Diagram-AHTNJAMY-BzW0gKwX.js → c4Diagram-AAUBKEIU-BdR46VbA.js} +2 -2
  7. package/out/renderer/assets/{channel-CqR4FAVX.js → channel-DUdp1NJ7.js} +1 -1
  8. package/out/renderer/assets/{chunk-EDXVE4YY-DRk838hn.js → chunk-2J33WTMH-Dzi-idRV.js} +1 -1
  9. package/out/renderer/assets/{chunk-4BX2VUAB-DQjg_Naa.js → chunk-4BX2VUAB-DEyFpixF.js} +1 -1
  10. package/out/renderer/assets/{chunk-55IACEB6-pFPEMTmI.js → chunk-55IACEB6-DyyQMIZa.js} +1 -1
  11. package/out/renderer/assets/{chunk-4TB4RGXK-DkcI1yaW.js → chunk-727SXJPM-vXEiesCP.js} +245 -149
  12. package/out/renderer/assets/{chunk-OYMX7WX6-DOGJ-XHp.js → chunk-AQP2D5EJ-B0SWmbrS.js} +92 -78
  13. package/out/renderer/assets/{chunk-FMBD7UC4-BagQdd5u.js → chunk-FMBD7UC4-CoPwvBCa.js} +1 -1
  14. package/out/renderer/assets/{chunk-YZCP3GAM-BKZRTlUj.js → chunk-ND2GUHAM-ku5t5SwP.js} +1 -1
  15. package/out/renderer/assets/{chunk-QZHKN3VN-CdzjbbBk.js → chunk-QZHKN3VN-DBGBAqit.js} +1 -1
  16. package/out/renderer/assets/{classDiagram-6PBFFD2Q-CjVhmlxb.js → classDiagram-4FO5ZUOK-DTyjsHX9.js} +6 -6
  17. package/out/renderer/assets/{classDiagram-v2-HSJHXN6E-CjVhmlxb.js → classDiagram-v2-Q7XG4LA2-DTyjsHX9.js} +6 -6
  18. package/out/renderer/assets/{cose-bilkent-S5V4N54A-CZLRecVB.js → cose-bilkent-S5V4N54A-wGfE9wIx.js} +1 -1
  19. package/out/renderer/assets/{dagre-KV5264BT-BUAzC7Um.js → dagre-BM42HDAG-cwyj1-l0.js} +17 -6
  20. package/out/renderer/assets/{diagram-MMDJMWI5-B5H49OVD.js → diagram-2AECGRRQ-BYvCxkOs.js} +3 -5
  21. package/out/renderer/assets/{diagram-5BDNPKRD-DNQEDszc.js → diagram-5GNKFQAL--ZlqvgmY.js} +4 -6
  22. package/out/renderer/assets/diagram-KO2AKTUF-CoPNrPhx.js +632 -0
  23. package/out/renderer/assets/{diagram-TYMM5635-Bw7r467p.js → diagram-LMA3HP47-wjhxYTWf.js} +3 -5
  24. package/out/renderer/assets/{diagram-G4DWMVQ6-D9YY6W2O.js → diagram-OG6HWLK6-DhYpewbd.js} +4 -6
  25. package/out/renderer/assets/{erDiagram-SMLLAGMA-Bz4ALNLp.js → erDiagram-TEJ5UH35-DolRLBng.js} +4 -4
  26. package/out/renderer/assets/{flowDiagram-DWJPFMVM-Uqg1ZeN2.js → flowDiagram-I6XJVG4X-DjAbl_XC.js} +6 -6
  27. package/out/renderer/assets/{ganttDiagram-T4ZO3ILL-Dm0tRLCH.js → ganttDiagram-6RSMTGT7-AF7-XgtX.js} +7 -1
  28. package/out/renderer/assets/{gitGraphDiagram-UUTBAWPF-R8imfIrj.js → gitGraphDiagram-PVQCEYII-BMZLakzH.js} +4 -6
  29. package/out/renderer/assets/{graph-B5YWEnt0.js → graph-B_ifajWk.js} +490 -135
  30. package/out/renderer/assets/{index-D7Xi0GX5.js → index-3bI-dJm8.js} +12818 -8179
  31. package/out/renderer/assets/{index-B6Zj03wk.css → index-B62bIfbt.css} +234 -11
  32. package/out/renderer/assets/{infoDiagram-42DDH7IO-CWPYNP1k.js → infoDiagram-5YYISTIA-0f7Qxxvp.js} +3 -5
  33. package/out/renderer/assets/{ishikawaDiagram-UXIWVN3A-CFTrc-S6.js → ishikawaDiagram-YF4QCWOH-BX_EIAMn.js} +1 -1
  34. package/out/renderer/assets/{journeyDiagram-VCZTEJTY-Dfd-piIf.js → journeyDiagram-JHISSGLW-Dmitv8wD.js} +4 -4
  35. package/out/renderer/assets/{kanban-definition-6JOO6SKY-BocrfAtb.js → kanban-definition-UN3LZRKU-By2GFUNB.js} +2 -2
  36. package/out/renderer/assets/{layout-DHzrXVin.js → layout-DAkKffy1.js} +459 -32
  37. package/out/renderer/assets/{mindmap-definition-QFDTVHPH-D9cyK1Gb.js → mindmap-definition-RKZ34NQL-yIrV1m0y.js} +3 -3
  38. package/out/renderer/assets/{pieDiagram-DEJITSTG-LUWwVJA5.js → pieDiagram-4H26LBE5-PV9y5rw_.js} +4 -6
  39. package/out/renderer/assets/{quadrantDiagram-34T5L4WZ-DdWTi9yW.js → quadrantDiagram-W4KKPZXB-DeX0zTCp.js} +22 -20
  40. package/out/renderer/assets/{requirementDiagram-MS252O5E-BoLT3tay.js → requirementDiagram-4Y6WPE33-Bzfk_KE-.js} +3 -3
  41. package/out/renderer/assets/{sankeyDiagram-XADWPNL6-B4gY_QI-.js → sankeyDiagram-5OEKKPKP-BuCv8QIY.js} +80 -11
  42. package/out/renderer/assets/{sequenceDiagram-FGHM5R23-B-JJvxQW.js → sequenceDiagram-3UESZ5HK-Zg7Ukud8.js} +21 -9
  43. package/out/renderer/assets/{stateDiagram-FHFEXIEX-BntwOBUs.js → stateDiagram-AJRCARHV-CLaqfYR8.js} +6 -8
  44. package/out/renderer/assets/{stateDiagram-v2-QKLJ7IA2-C__eWVIe.js → stateDiagram-v2-BHNVJYJU-Cmm1ljQ4.js} +4 -4
  45. package/out/renderer/assets/{timeline-definition-GMOUNBTQ-C7ch2INk.js → timeline-definition-PNZ67QCA-DQBaAVcC.js} +2 -2
  46. package/out/renderer/assets/{vennDiagram-DHZGUBPP-CQ__NSue.js → vennDiagram-CIIHVFJN-CuplbU_R.js} +1 -1
  47. package/out/renderer/assets/{wardley-RL74JXVD-Kh6mNiRV.js → wardley-L42UT6IY-BiqfHMim.js} +25605 -19118
  48. package/out/renderer/assets/{wardleyDiagram-NUSXRM2D-CfRYzJMU.js → wardleyDiagram-YWT4CUSO-BaV0FnUu.js} +112 -38
  49. package/out/renderer/assets/worker-CfJUABHG.js +12626 -0
  50. package/out/renderer/assets/{xychartDiagram-5P7HB3ND-BFq2zIne.js → xychartDiagram-2RQKCTM6-DA_Miw-n.js} +1 -1
  51. package/out/renderer/index.html +2 -2
  52. package/out/renderer/progress.html +4 -48
  53. package/out/resources/connector/connector.py +14 -6
  54. package/out/resources/mcp-server/aider-desk-mcp-server.js +1051 -501
  55. package/out/resources/skills/extension-creator/references/config-components.md +6 -6
  56. package/out/runner.js +2815 -537
  57. package/package.json +29 -21
  58. package/patches/@ai-sdk+deepseek+1.0.37.patch +150 -0
  59. package/scripts/generate-package.mjs +10 -2
  60. package/out/renderer/assets/_baseUniq-B7TxjYgy.js +0 -381
  61. package/out/renderer/assets/clone-B-kqpcr4.js +0 -8
  62. package/out/renderer/assets/min-D6g96v7R.js +0 -41
  63. package/out/resources/linux/probe +0 -0
  64. package/out/resources/linux-x64/probe +0 -0
  65. /package/patches/{ai+5.0.172.patch → ai+5.0.179.patch} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiderdesk/aiderdesk",
3
- "version": "0.62.0",
3
+ "version": "0.66.0",
4
4
  "description": "AiderDesk - AI-Powered Development Platform",
5
5
  "bin": {
6
6
  "aiderdesk": "./bin/aiderdesk.js"
@@ -33,20 +33,20 @@
33
33
  },
34
34
  "license": "MIT",
35
35
  "dependencies": {
36
- "@ai-sdk/alibaba": "^0.0.3",
37
- "@ai-sdk/amazon-bedrock": "^3.0.89",
38
- "@ai-sdk/anthropic": "^2.0.71",
39
- "@ai-sdk/azure": "^2.0.103",
40
- "@ai-sdk/cerebras": "^1.0.39",
41
- "@ai-sdk/deepseek": "^1.0.35",
42
- "@ai-sdk/google": "^2.0.63",
43
- "@ai-sdk/google-vertex": "^3.0.120",
44
- "@ai-sdk/groq": "^2.0.36",
36
+ "@ai-sdk/alibaba": "^0.0.6",
37
+ "@ai-sdk/amazon-bedrock": "^3.0.97",
38
+ "@ai-sdk/anthropic": "^2.0.77",
39
+ "@ai-sdk/azure": "^2.0.105",
40
+ "@ai-sdk/cerebras": "^1.0.41",
41
+ "@ai-sdk/deepseek": "1.0.37",
42
+ "@ai-sdk/google": "^2.0.70",
43
+ "@ai-sdk/google-vertex": "^3.0.132",
44
+ "@ai-sdk/groq": "^2.0.38",
45
45
  "@ai-sdk/mistral": "2.0.30",
46
- "@ai-sdk/openai": "^2.0.101",
47
- "@ai-sdk/openai-compatible": "^1.0.34",
48
- "@aiderdesk/extensions": "0.10.0",
49
- "@augmentcode/auggie-sdk": "^0.1.15",
46
+ "@ai-sdk/openai": "^2.0.103",
47
+ "@ai-sdk/openai-compatible": "^1.0.36",
48
+ "@aiderdesk/extensions": "0.15.0",
49
+ "@augmentcode/auggie-sdk": "0.1.15",
50
50
  "@aws-sdk/client-bedrock": "^3.887.0",
51
51
  "@aws-sdk/credential-providers": "^3.782.0",
52
52
  "@dmitryrechkin/json-schema-to-zod": "^1.0.1",
@@ -59,11 +59,12 @@
59
59
  "@mariozechner/pi-tui": "^0.63.1",
60
60
  "@modelcontextprotocol/sdk": "^1.20.0",
61
61
  "@openrouter/ai-sdk-provider": "^1.5.4",
62
- "@requesty/ai-sdk": "^2.1.2",
63
- "adm-zip": "0.5.16",
64
- "ai": "^5.0.160",
62
+ "@posthog/ai": "^7.18.1",
63
+ "@requesty/ai-sdk": "^2.3.0",
64
+ "adm-zip": "^0.5.16",
65
+ "ai": "5.0.179",
65
66
  "ai-sdk-provider-claude-code": "2.3.0",
66
- "ai-sdk-provider-gemini-cli": "^1.5.1",
67
+ "ai-sdk-provider-gemini-cli": "1.5.1",
67
68
  "chalk": "^5.6.2",
68
69
  "cheerio": "^1.0.0",
69
70
  "chokidar": "^4.0.3",
@@ -83,16 +84,16 @@
83
84
  "istextorbinary": "^9.5.0",
84
85
  "jiti": "^2.6.1",
85
86
  "langfuse-vercel": "^3.38.4",
86
- "lodash": "^4.17.21",
87
+ "lodash": "^4.18.1",
87
88
  "node-fetch": "3.3.2",
88
89
  "ollama-ai-provider-v2": "^1.5.5",
89
90
  "os-name": "^6.0.0",
90
91
  "patch-package": "^8.0.0",
91
- "posthog-node": "^4.18.0",
92
+ "posthog-node": "5.29.1",
92
93
  "simple-git": "^3.27.0",
93
94
  "slugify": "^1.6.6",
94
95
  "socket.io": "^4.8.1",
95
- "tar": "7.5.13",
96
+ "tar": "^7.5.13",
96
97
  "tree-kill": "^1.2.2",
97
98
  "turndown": "^7.2.1",
98
99
  "typescript": "^5.9.3",
@@ -103,5 +104,12 @@
103
104
  "yaml": "^2.8.0",
104
105
  "yaml-front-matter": "^4.1.1",
105
106
  "zod": "^4.1.11"
107
+ },
108
+ "overrides": {
109
+ "ai-sdk-provider-gemini-cli": {
110
+ "diff": "^8.0.4"
111
+ },
112
+ "@tootallnate/once": "^3.0.1",
113
+ "jsondiffpatch": "^0.7.3"
106
114
  }
107
115
  }
@@ -0,0 +1,150 @@
1
+ diff --git a/node_modules/@ai-sdk/deepseek/dist/index.d.mts b/node_modules/@ai-sdk/deepseek/dist/index.d.mts
2
+ index 71888e3..2d2cd02 100644
3
+ --- a/node_modules/@ai-sdk/deepseek/dist/index.d.mts
4
+ +++ b/node_modules/@ai-sdk/deepseek/dist/index.d.mts
5
+ @@ -10,6 +10,10 @@ declare const deepseekChatOptions: z.ZodObject<{
6
+ disabled: "disabled";
7
+ }>>;
8
+ }, z.core.$strip>>;
9
+ + reasoningEffort: z.ZodOptional<z.ZodEnum<{
10
+ + high: "high";
11
+ + max: "max";
12
+ + }>>;
13
+ }, z.core.$strip>;
14
+ type DeepSeekChatOptions = z.infer<typeof deepseekChatOptions>;
15
+
16
+ diff --git a/node_modules/@ai-sdk/deepseek/dist/index.d.ts b/node_modules/@ai-sdk/deepseek/dist/index.d.ts
17
+ index 71888e3..2d2cd02 100644
18
+ --- a/node_modules/@ai-sdk/deepseek/dist/index.d.ts
19
+ +++ b/node_modules/@ai-sdk/deepseek/dist/index.d.ts
20
+ @@ -10,6 +10,10 @@ declare const deepseekChatOptions: z.ZodObject<{
21
+ disabled: "disabled";
22
+ }>>;
23
+ }, z.core.$strip>>;
24
+ + reasoningEffort: z.ZodOptional<z.ZodEnum<{
25
+ + high: "high";
26
+ + max: "max";
27
+ + }>>;
28
+ }, z.core.$strip>;
29
+ type DeepSeekChatOptions = z.infer<typeof deepseekChatOptions>;
30
+
31
+ diff --git a/node_modules/@ai-sdk/deepseek/dist/index.js b/node_modules/@ai-sdk/deepseek/dist/index.js
32
+ index 6385093..16fadc5 100644
33
+ --- a/node_modules/@ai-sdk/deepseek/dist/index.js
34
+ +++ b/node_modules/@ai-sdk/deepseek/dist/index.js
35
+ @@ -54,13 +54,6 @@ function convertToDeepSeekChatMessages({
36
+ });
37
+ }
38
+ }
39
+ - let lastUserMessageIndex = -1;
40
+ - for (let i = prompt.length - 1; i >= 0; i--) {
41
+ - if (prompt[i].role === "user") {
42
+ - lastUserMessageIndex = i;
43
+ - break;
44
+ - }
45
+ - }
46
+ let index = -1;
47
+ for (const { role, content } of prompt) {
48
+ index++;
49
+ @@ -98,9 +91,6 @@ function convertToDeepSeekChatMessages({
50
+ break;
51
+ }
52
+ case "reasoning": {
53
+ - if (index <= lastUserMessageIndex) {
54
+ - break;
55
+ - }
56
+ if (reasoning == null) {
57
+ reasoning = part.text;
58
+ } else {
59
+ @@ -124,7 +114,7 @@ function convertToDeepSeekChatMessages({
60
+ messages.push({
61
+ role: "assistant",
62
+ content: text,
63
+ - reasoning_content: reasoning,
64
+ + reasoning_content: reasoning || '',
65
+ tool_calls: toolCalls.length > 0 ? toolCalls : void 0
66
+ });
67
+ break;
68
+ @@ -252,7 +242,11 @@ var deepseekChatOptions = import_v42.z.object({
69
+ */
70
+ thinking: import_v42.z.object({
71
+ type: import_v42.z.enum(["enabled", "disabled"]).optional()
72
+ - }).optional()
73
+ + }).optional(),
74
+ + /**
75
+ + * Reasoning effort level.
76
+ + */
77
+ + reasoningEffort: import_v42.z.enum(["high", "max"]).optional()
78
+ });
79
+
80
+ // src/chat/deepseek-prepare-tools.ts
81
+ @@ -412,7 +406,8 @@ var DeepSeekChatLanguageModel = class {
82
+ messages,
83
+ tools: deepseekTools,
84
+ tool_choice: deepseekToolChoices,
85
+ - thinking: ((_b = deepseekOptions.thinking) == null ? void 0 : _b.type) != null ? { type: deepseekOptions.thinking.type } : void 0
86
+ + thinking: ((_b = deepseekOptions.thinking) == null ? void 0 : _b.type) != null ? { type: deepseekOptions.thinking.type } : void 0,
87
+ + reasoning_effort: deepseekOptions.reasoningEffort
88
+ },
89
+ warnings: [...warnings, ...toolWarnings]
90
+ };
91
+ diff --git a/node_modules/@ai-sdk/deepseek/dist/index.mjs b/node_modules/@ai-sdk/deepseek/dist/index.mjs
92
+ index a2a1c31..c22565a 100644
93
+ --- a/node_modules/@ai-sdk/deepseek/dist/index.mjs
94
+ +++ b/node_modules/@ai-sdk/deepseek/dist/index.mjs
95
+ @@ -43,13 +43,6 @@ function convertToDeepSeekChatMessages({
96
+ });
97
+ }
98
+ }
99
+ - let lastUserMessageIndex = -1;
100
+ - for (let i = prompt.length - 1; i >= 0; i--) {
101
+ - if (prompt[i].role === "user") {
102
+ - lastUserMessageIndex = i;
103
+ - break;
104
+ - }
105
+ - }
106
+ let index = -1;
107
+ for (const { role, content } of prompt) {
108
+ index++;
109
+ @@ -87,9 +80,6 @@ function convertToDeepSeekChatMessages({
110
+ break;
111
+ }
112
+ case "reasoning": {
113
+ - if (index <= lastUserMessageIndex) {
114
+ - break;
115
+ - }
116
+ if (reasoning == null) {
117
+ reasoning = part.text;
118
+ } else {
119
+ @@ -113,7 +103,7 @@ function convertToDeepSeekChatMessages({
120
+ messages.push({
121
+ role: "assistant",
122
+ content: text,
123
+ - reasoning_content: reasoning,
124
+ + reasoning_content: reasoning || '',
125
+ tool_calls: toolCalls.length > 0 ? toolCalls : void 0
126
+ });
127
+ break;
128
+ @@ -241,7 +231,11 @@ var deepseekChatOptions = z2.object({
129
+ */
130
+ thinking: z2.object({
131
+ type: z2.enum(["enabled", "disabled"]).optional()
132
+ - }).optional()
133
+ + }).optional(),
134
+ + /**
135
+ + * Reasoning effort level.
136
+ + */
137
+ + reasoningEffort: z2.enum(["high", "max"]).optional()
138
+ });
139
+
140
+ // src/chat/deepseek-prepare-tools.ts
141
+ @@ -403,7 +397,8 @@ var DeepSeekChatLanguageModel = class {
142
+ messages,
143
+ tools: deepseekTools,
144
+ tool_choice: deepseekToolChoices,
145
+ - thinking: ((_b = deepseekOptions.thinking) == null ? void 0 : _b.type) != null ? { type: deepseekOptions.thinking.type } : void 0
146
+ + thinking: ((_b = deepseekOptions.thinking) == null ? void 0 : _b.type) != null ? { type: deepseekOptions.thinking.type } : void 0,
147
+ + reasoning_effort: deepseekOptions.reasoningEffort
148
+ },
149
+ warnings: [...warnings, ...toolWarnings]
150
+ };
@@ -78,22 +78,30 @@ const rootPkg = JSON.parse(readFileSync(resolve(ROOT, 'package.json'), 'utf8'));
78
78
  const pkgJson = JSON.parse(readFileSync(resolve(PKG_DIR, 'package.json'), 'utf8'));
79
79
 
80
80
  for (const pkg of [...requiredPackages].sort()) {
81
- if (pkgJson.dependencies[pkg]) continue;
82
-
83
81
  let version = rootPkg.dependencies?.[pkg] || rootPkg.devDependencies?.[pkg];
84
82
  if (version && version.startsWith('workspace:')) {
85
83
  const wsPkg = JSON.parse(readFileSync(resolve(ROOT, 'node_modules', pkg, 'package.json'), 'utf8'));
86
84
  version = wsPkg.version;
87
85
  }
88
86
  if (version) {
87
+ if (pkgJson.dependencies[pkg] === version) continue;
89
88
  pkgJson.dependencies[pkg] = version;
90
89
  } else {
91
90
  console.warn(`Warning: version not found for "${pkg}" in root package.json`);
92
91
  }
93
92
  }
94
93
 
94
+ pkgJson.dependencies = Object.keys(pkgJson.dependencies).sort().reduce((acc, key) => {
95
+ acc[key] = pkgJson.dependencies[key];
96
+ return acc;
97
+ }, {});
98
+
95
99
  pkgJson.version = rootPkg.version;
96
100
 
101
+ if (rootPkg.overrides) {
102
+ pkgJson.overrides = rootPkg.overrides;
103
+ }
104
+
97
105
  const outputPath = resolve(PKG_DIR, 'package.json');
98
106
  writeFileSync(outputPath, JSON.stringify(pkgJson, null, 2) + '\n');
99
107
 
@@ -1,381 +0,0 @@
1
- import { aL as isArray, aM as isSymbol, bo as Symbol$1, bK as memoize, bL as isArguments, bk as arrayPush, bz as Stack, bM as baseIsEqual, bu as isObject, bg as keys, bN as isLength, bO as isIndex, aN as identity, bP as baseFor, aK as isArrayLike, bQ as arrayFilter, bR as Set, bS as setToArray, bT as SetCache, bU as cacheHas } from "./index-D7Xi0GX5.js";
2
- function arrayMap(array, iteratee) {
3
- var index = -1, length = array == null ? 0 : array.length, result = Array(length);
4
- while (++index < length) {
5
- result[index] = iteratee(array[index], index, array);
6
- }
7
- return result;
8
- }
9
- var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
10
- function baseToString(value) {
11
- if (typeof value == "string") {
12
- return value;
13
- }
14
- if (isArray(value)) {
15
- return arrayMap(value, baseToString) + "";
16
- }
17
- if (isSymbol(value)) {
18
- return symbolToString ? symbolToString.call(value) : "";
19
- }
20
- var result = value + "";
21
- return result == "0" && 1 / value == -Infinity ? "-0" : result;
22
- }
23
- function noop() {
24
- }
25
- function arrayEach(array, iteratee) {
26
- var index = -1, length = array == null ? 0 : array.length;
27
- while (++index < length) {
28
- if (iteratee(array[index], index, array) === false) {
29
- break;
30
- }
31
- }
32
- return array;
33
- }
34
- function baseFindIndex(array, predicate, fromIndex, fromRight) {
35
- var length = array.length, index = fromIndex + -1;
36
- while (++index < length) {
37
- if (predicate(array[index], index, array)) {
38
- return index;
39
- }
40
- }
41
- return -1;
42
- }
43
- function baseIsNaN(value) {
44
- return value !== value;
45
- }
46
- function strictIndexOf(array, value, fromIndex) {
47
- var index = fromIndex - 1, length = array.length;
48
- while (++index < length) {
49
- if (array[index] === value) {
50
- return index;
51
- }
52
- }
53
- return -1;
54
- }
55
- function baseIndexOf(array, value, fromIndex) {
56
- return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex);
57
- }
58
- function arrayIncludes(array, value) {
59
- var length = array == null ? 0 : array.length;
60
- return !!length && baseIndexOf(array, value, 0) > -1;
61
- }
62
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
63
- function isKey(value, object) {
64
- if (isArray(value)) {
65
- return false;
66
- }
67
- var type = typeof value;
68
- if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol(value)) {
69
- return true;
70
- }
71
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
72
- }
73
- var MAX_MEMOIZE_SIZE = 500;
74
- function memoizeCapped(func) {
75
- var result = memoize(func, function(key) {
76
- if (cache.size === MAX_MEMOIZE_SIZE) {
77
- cache.clear();
78
- }
79
- return key;
80
- });
81
- var cache = result.cache;
82
- return result;
83
- }
84
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
85
- var reEscapeChar = /\\(\\)?/g;
86
- var stringToPath = memoizeCapped(function(string) {
87
- var result = [];
88
- if (string.charCodeAt(0) === 46) {
89
- result.push("");
90
- }
91
- string.replace(rePropName, function(match, number, quote, subString) {
92
- result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match);
93
- });
94
- return result;
95
- });
96
- function toString(value) {
97
- return value == null ? "" : baseToString(value);
98
- }
99
- function castPath(value, object) {
100
- if (isArray(value)) {
101
- return value;
102
- }
103
- return isKey(value, object) ? [value] : stringToPath(toString(value));
104
- }
105
- function toKey(value) {
106
- if (typeof value == "string" || isSymbol(value)) {
107
- return value;
108
- }
109
- var result = value + "";
110
- return result == "0" && 1 / value == -Infinity ? "-0" : result;
111
- }
112
- function baseGet(object, path) {
113
- path = castPath(path, object);
114
- var index = 0, length = path.length;
115
- while (object != null && index < length) {
116
- object = object[toKey(path[index++])];
117
- }
118
- return index && index == length ? object : void 0;
119
- }
120
- function get(object, path, defaultValue) {
121
- var result = object == null ? void 0 : baseGet(object, path);
122
- return result === void 0 ? defaultValue : result;
123
- }
124
- var spreadableSymbol = Symbol$1 ? Symbol$1.isConcatSpreadable : void 0;
125
- function isFlattenable(value) {
126
- return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
127
- }
128
- function baseFlatten(array, depth, predicate, isStrict, result) {
129
- var index = -1, length = array.length;
130
- predicate || (predicate = isFlattenable);
131
- result || (result = []);
132
- while (++index < length) {
133
- var value = array[index];
134
- if (predicate(value)) {
135
- {
136
- arrayPush(result, value);
137
- }
138
- } else if (!isStrict) {
139
- result[result.length] = value;
140
- }
141
- }
142
- return result;
143
- }
144
- function arrayReduce(array, iteratee, accumulator, initAccum) {
145
- var index = -1, length = array == null ? 0 : array.length;
146
- if (initAccum && length) {
147
- accumulator = array[++index];
148
- }
149
- while (++index < length) {
150
- accumulator = iteratee(accumulator, array[index], index, array);
151
- }
152
- return accumulator;
153
- }
154
- var COMPARE_PARTIAL_FLAG$1 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
155
- function baseIsMatch(object, source, matchData, customizer) {
156
- var index = matchData.length, length = index;
157
- if (object == null) {
158
- return !length;
159
- }
160
- object = Object(object);
161
- while (index--) {
162
- var data = matchData[index];
163
- if (data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) {
164
- return false;
165
- }
166
- }
167
- while (++index < length) {
168
- data = matchData[index];
169
- var key = data[0], objValue = object[key], srcValue = data[1];
170
- if (data[2]) {
171
- if (objValue === void 0 && !(key in object)) {
172
- return false;
173
- }
174
- } else {
175
- var stack = new Stack();
176
- var result;
177
- if (!(result === void 0 ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, customizer, stack) : result)) {
178
- return false;
179
- }
180
- }
181
- }
182
- return true;
183
- }
184
- function isStrictComparable(value) {
185
- return value === value && !isObject(value);
186
- }
187
- function getMatchData(object) {
188
- var result = keys(object), length = result.length;
189
- while (length--) {
190
- var key = result[length], value = object[key];
191
- result[length] = [key, value, isStrictComparable(value)];
192
- }
193
- return result;
194
- }
195
- function matchesStrictComparable(key, srcValue) {
196
- return function(object) {
197
- if (object == null) {
198
- return false;
199
- }
200
- return object[key] === srcValue && (srcValue !== void 0 || key in Object(object));
201
- };
202
- }
203
- function baseMatches(source) {
204
- var matchData = getMatchData(source);
205
- if (matchData.length == 1 && matchData[0][2]) {
206
- return matchesStrictComparable(matchData[0][0], matchData[0][1]);
207
- }
208
- return function(object) {
209
- return object === source || baseIsMatch(object, source, matchData);
210
- };
211
- }
212
- function baseHasIn(object, key) {
213
- return object != null && key in Object(object);
214
- }
215
- function hasPath(object, path, hasFunc) {
216
- path = castPath(path, object);
217
- var index = -1, length = path.length, result = false;
218
- while (++index < length) {
219
- var key = toKey(path[index]);
220
- if (!(result = object != null && hasFunc(object, key))) {
221
- break;
222
- }
223
- object = object[key];
224
- }
225
- if (result || ++index != length) {
226
- return result;
227
- }
228
- length = object == null ? 0 : object.length;
229
- return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object));
230
- }
231
- function hasIn(object, path) {
232
- return object != null && hasPath(object, path, baseHasIn);
233
- }
234
- var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
235
- function baseMatchesProperty(path, srcValue) {
236
- if (isKey(path) && isStrictComparable(srcValue)) {
237
- return matchesStrictComparable(toKey(path), srcValue);
238
- }
239
- return function(object) {
240
- var objValue = get(object, path);
241
- return objValue === void 0 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
242
- };
243
- }
244
- function baseProperty(key) {
245
- return function(object) {
246
- return object == null ? void 0 : object[key];
247
- };
248
- }
249
- function basePropertyDeep(path) {
250
- return function(object) {
251
- return baseGet(object, path);
252
- };
253
- }
254
- function property(path) {
255
- return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
256
- }
257
- function baseIteratee(value) {
258
- if (typeof value == "function") {
259
- return value;
260
- }
261
- if (value == null) {
262
- return identity;
263
- }
264
- if (typeof value == "object") {
265
- return isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
266
- }
267
- return property(value);
268
- }
269
- function baseForOwn(object, iteratee) {
270
- return object && baseFor(object, iteratee, keys);
271
- }
272
- function createBaseEach(eachFunc, fromRight) {
273
- return function(collection, iteratee) {
274
- if (collection == null) {
275
- return collection;
276
- }
277
- if (!isArrayLike(collection)) {
278
- return eachFunc(collection, iteratee);
279
- }
280
- var length = collection.length, index = -1, iterable = Object(collection);
281
- while (++index < length) {
282
- if (iteratee(iterable[index], index, iterable) === false) {
283
- break;
284
- }
285
- }
286
- return collection;
287
- };
288
- }
289
- var baseEach = createBaseEach(baseForOwn);
290
- function castFunction(value) {
291
- return typeof value == "function" ? value : identity;
292
- }
293
- function forEach(collection, iteratee) {
294
- var func = isArray(collection) ? arrayEach : baseEach;
295
- return func(collection, castFunction(iteratee));
296
- }
297
- function baseFilter(collection, predicate) {
298
- var result = [];
299
- baseEach(collection, function(value, index, collection2) {
300
- if (predicate(value, index, collection2)) {
301
- result.push(value);
302
- }
303
- });
304
- return result;
305
- }
306
- function filter(collection, predicate) {
307
- var func = isArray(collection) ? arrayFilter : baseFilter;
308
- return func(collection, baseIteratee(predicate));
309
- }
310
- function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
311
- eachFunc(collection, function(value, index, collection2) {
312
- accumulator = initAccum ? (initAccum = false, value) : iteratee(accumulator, value, index, collection2);
313
- });
314
- return accumulator;
315
- }
316
- function reduce(collection, iteratee, accumulator) {
317
- var func = isArray(collection) ? arrayReduce : baseReduce, initAccum = arguments.length < 3;
318
- return func(collection, baseIteratee(iteratee), accumulator, initAccum, baseEach);
319
- }
320
- var INFINITY = 1 / 0;
321
- var createSet = !(Set && 1 / setToArray(new Set([, -0]))[1] == INFINITY) ? noop : function(values) {
322
- return new Set(values);
323
- };
324
- var LARGE_ARRAY_SIZE = 200;
325
- function baseUniq(array, iteratee, comparator) {
326
- var index = -1, includes = arrayIncludes, length = array.length, isCommon = true, result = [], seen = result;
327
- if (length >= LARGE_ARRAY_SIZE) {
328
- var set = iteratee ? null : createSet(array);
329
- if (set) {
330
- return setToArray(set);
331
- }
332
- isCommon = false;
333
- includes = cacheHas;
334
- seen = new SetCache();
335
- } else {
336
- seen = iteratee ? [] : result;
337
- }
338
- outer:
339
- while (++index < length) {
340
- var value = array[index], computed = iteratee ? iteratee(value) : value;
341
- value = value !== 0 ? value : 0;
342
- if (isCommon && computed === computed) {
343
- var seenIndex = seen.length;
344
- while (seenIndex--) {
345
- if (seen[seenIndex] === computed) {
346
- continue outer;
347
- }
348
- }
349
- if (iteratee) {
350
- seen.push(computed);
351
- }
352
- result.push(value);
353
- } else if (!includes(seen, computed, comparator)) {
354
- if (seen !== result) {
355
- seen.push(computed);
356
- }
357
- result.push(value);
358
- }
359
- }
360
- return result;
361
- }
362
- export {
363
- baseEach as a,
364
- baseFlatten as b,
365
- baseIteratee as c,
366
- arrayMap as d,
367
- arrayEach as e,
368
- baseUniq as f,
369
- filter as g,
370
- forEach as h,
371
- baseFindIndex as i,
372
- castFunction as j,
373
- baseForOwn as k,
374
- hasPath as l,
375
- castPath as m,
376
- baseGet as n,
377
- hasIn as o,
378
- toString as p,
379
- reduce as r,
380
- toKey as t
381
- };
@@ -1,8 +0,0 @@
1
- import { b as baseClone } from "./graph-B5YWEnt0.js";
2
- var CLONE_SYMBOLS_FLAG = 4;
3
- function clone(value) {
4
- return baseClone(value, CLONE_SYMBOLS_FLAG);
5
- }
6
- export {
7
- clone as c
8
- };