@lousy-agents/cli 2.0.0 → 2.2.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 (181) hide show
  1. package/dist/145.js +29 -0
  2. package/dist/145.js.map +1 -0
  3. package/dist/190.js +1765 -0
  4. package/dist/190.js.map +1 -0
  5. package/dist/255.js +1850 -0
  6. package/dist/255.js.map +1 -0
  7. package/dist/31.js +127 -0
  8. package/dist/31.js.map +1 -0
  9. package/dist/399.js +13 -0
  10. package/dist/399.js.map +1 -0
  11. package/dist/610.js +254 -0
  12. package/dist/610.js.map +1 -0
  13. package/dist/651.js +39 -0
  14. package/dist/651.js.map +1 -0
  15. package/dist/659.js +16 -0
  16. package/dist/659.js.map +1 -0
  17. package/dist/709.js +47 -0
  18. package/dist/709.js.map +1 -0
  19. package/dist/835.js +298 -0
  20. package/dist/835.js.map +1 -0
  21. package/dist/index.js +30651 -9
  22. package/dist/index.js.map +1 -1
  23. package/dist/mcp-server.js +46530 -5
  24. package/dist/mcp-server.js.map +1 -1
  25. package/package.json +4 -2
  26. package/dist/commands/copilot-setup.d.ts +0 -5
  27. package/dist/commands/copilot-setup.d.ts.map +0 -1
  28. package/dist/commands/copilot-setup.js +0 -97
  29. package/dist/commands/copilot-setup.js.map +0 -1
  30. package/dist/commands/init.d.ts +0 -13
  31. package/dist/commands/init.d.ts.map +0 -1
  32. package/dist/commands/init.js +0 -109
  33. package/dist/commands/init.js.map +0 -1
  34. package/dist/commands/new.d.ts +0 -21
  35. package/dist/commands/new.d.ts.map +0 -1
  36. package/dist/commands/new.js +0 -94
  37. package/dist/commands/new.js.map +0 -1
  38. package/dist/entities/copilot-agent.d.ts +0 -15
  39. package/dist/entities/copilot-agent.d.ts.map +0 -1
  40. package/dist/entities/copilot-agent.js +0 -53
  41. package/dist/entities/copilot-agent.js.map +0 -1
  42. package/dist/entities/copilot-setup.d.ts +0 -65
  43. package/dist/entities/copilot-setup.d.ts.map +0 -1
  44. package/dist/entities/copilot-setup.js +0 -6
  45. package/dist/entities/copilot-setup.js.map +0 -1
  46. package/dist/entities/index.d.ts +0 -7
  47. package/dist/entities/index.d.ts.map +0 -1
  48. package/dist/entities/index.js +0 -7
  49. package/dist/entities/index.js.map +0 -1
  50. package/dist/entities/skill.d.ts +0 -15
  51. package/dist/entities/skill.d.ts.map +0 -1
  52. package/dist/entities/skill.js +0 -63
  53. package/dist/entities/skill.js.map +0 -1
  54. package/dist/gateways/action-version-gateway.d.ts +0 -39
  55. package/dist/gateways/action-version-gateway.d.ts.map +0 -1
  56. package/dist/gateways/action-version-gateway.js +0 -47
  57. package/dist/gateways/action-version-gateway.js.map +0 -1
  58. package/dist/gateways/agent-file-gateway.d.ts +0 -50
  59. package/dist/gateways/agent-file-gateway.d.ts.map +0 -1
  60. package/dist/gateways/agent-file-gateway.js +0 -34
  61. package/dist/gateways/agent-file-gateway.js.map +0 -1
  62. package/dist/gateways/environment-gateway.d.ts +0 -30
  63. package/dist/gateways/environment-gateway.d.ts.map +0 -1
  64. package/dist/gateways/environment-gateway.js +0 -56
  65. package/dist/gateways/environment-gateway.js.map +0 -1
  66. package/dist/gateways/file-system-utils.d.ts +0 -8
  67. package/dist/gateways/file-system-utils.d.ts.map +0 -1
  68. package/dist/gateways/file-system-utils.js +0 -17
  69. package/dist/gateways/file-system-utils.js.map +0 -1
  70. package/dist/gateways/file-system-workflow-gateway.d.ts +0 -27
  71. package/dist/gateways/file-system-workflow-gateway.d.ts.map +0 -1
  72. package/dist/gateways/file-system-workflow-gateway.js +0 -99
  73. package/dist/gateways/file-system-workflow-gateway.js.map +0 -1
  74. package/dist/gateways/index.d.ts +0 -10
  75. package/dist/gateways/index.d.ts.map +0 -1
  76. package/dist/gateways/index.js +0 -10
  77. package/dist/gateways/index.js.map +0 -1
  78. package/dist/gateways/skill-file-gateway.d.ts +0 -59
  79. package/dist/gateways/skill-file-gateway.d.ts.map +0 -1
  80. package/dist/gateways/skill-file-gateway.js +0 -37
  81. package/dist/gateways/skill-file-gateway.js.map +0 -1
  82. package/dist/gateways/workflow-gateway.d.ts +0 -43
  83. package/dist/gateways/workflow-gateway.d.ts.map +0 -1
  84. package/dist/gateways/workflow-gateway.js +0 -6
  85. package/dist/gateways/workflow-gateway.js.map +0 -1
  86. package/dist/index.d.ts +0 -3
  87. package/dist/index.d.ts.map +0 -1
  88. package/dist/lib/config.d.ts +0 -28
  89. package/dist/lib/config.d.ts.map +0 -1
  90. package/dist/lib/config.js +0 -406
  91. package/dist/lib/config.js.map +0 -1
  92. package/dist/lib/copilot-setup-config.d.ts +0 -79
  93. package/dist/lib/copilot-setup-config.d.ts.map +0 -1
  94. package/dist/lib/copilot-setup-config.js +0 -119
  95. package/dist/lib/copilot-setup-config.js.map +0 -1
  96. package/dist/lib/filesystem-structure.d.ts +0 -45
  97. package/dist/lib/filesystem-structure.d.ts.map +0 -1
  98. package/dist/lib/filesystem-structure.js +0 -69
  99. package/dist/lib/filesystem-structure.js.map +0 -1
  100. package/dist/lib/mcp-test-client.d.ts +0 -43
  101. package/dist/lib/mcp-test-client.d.ts.map +0 -1
  102. package/dist/lib/mcp-test-client.js +0 -167
  103. package/dist/lib/mcp-test-client.js.map +0 -1
  104. package/dist/lib/project-name-validation.d.ts +0 -43
  105. package/dist/lib/project-name-validation.d.ts.map +0 -1
  106. package/dist/lib/project-name-validation.js +0 -131
  107. package/dist/lib/project-name-validation.js.map +0 -1
  108. package/dist/mcp/index.d.ts +0 -5
  109. package/dist/mcp/index.d.ts.map +0 -1
  110. package/dist/mcp/index.js +0 -5
  111. package/dist/mcp/index.js.map +0 -1
  112. package/dist/mcp/server.d.ts +0 -15
  113. package/dist/mcp/server.d.ts.map +0 -1
  114. package/dist/mcp/server.js +0 -120
  115. package/dist/mcp/server.js.map +0 -1
  116. package/dist/mcp/tools/analyze-action-versions.d.ts +0 -9
  117. package/dist/mcp/tools/analyze-action-versions.d.ts.map +0 -1
  118. package/dist/mcp/tools/analyze-action-versions.js +0 -81
  119. package/dist/mcp/tools/analyze-action-versions.js.map +0 -1
  120. package/dist/mcp/tools/create-copilot-setup-workflow.d.ts +0 -9
  121. package/dist/mcp/tools/create-copilot-setup-workflow.d.ts.map +0 -1
  122. package/dist/mcp/tools/create-copilot-setup-workflow.js +0 -121
  123. package/dist/mcp/tools/create-copilot-setup-workflow.js.map +0 -1
  124. package/dist/mcp/tools/discover-environment.d.ts +0 -9
  125. package/dist/mcp/tools/discover-environment.d.ts.map +0 -1
  126. package/dist/mcp/tools/discover-environment.js +0 -30
  127. package/dist/mcp/tools/discover-environment.js.map +0 -1
  128. package/dist/mcp/tools/discover-workflow-setup-actions.d.ts +0 -9
  129. package/dist/mcp/tools/discover-workflow-setup-actions.d.ts.map +0 -1
  130. package/dist/mcp/tools/discover-workflow-setup-actions.js +0 -37
  131. package/dist/mcp/tools/discover-workflow-setup-actions.js.map +0 -1
  132. package/dist/mcp/tools/index.d.ts +0 -11
  133. package/dist/mcp/tools/index.d.ts.map +0 -1
  134. package/dist/mcp/tools/index.js +0 -11
  135. package/dist/mcp/tools/index.js.map +0 -1
  136. package/dist/mcp/tools/read-copilot-setup-workflow.d.ts +0 -9
  137. package/dist/mcp/tools/read-copilot-setup-workflow.d.ts.map +0 -1
  138. package/dist/mcp/tools/read-copilot-setup-workflow.js +0 -38
  139. package/dist/mcp/tools/read-copilot-setup-workflow.js.map +0 -1
  140. package/dist/mcp/tools/resolve-action-versions.d.ts +0 -10
  141. package/dist/mcp/tools/resolve-action-versions.d.ts.map +0 -1
  142. package/dist/mcp/tools/resolve-action-versions.js +0 -61
  143. package/dist/mcp/tools/resolve-action-versions.js.map +0 -1
  144. package/dist/mcp/tools/types.d.ts +0 -67
  145. package/dist/mcp/tools/types.d.ts.map +0 -1
  146. package/dist/mcp/tools/types.js +0 -24
  147. package/dist/mcp/tools/types.js.map +0 -1
  148. package/dist/mcp-server.d.ts +0 -7
  149. package/dist/mcp-server.d.ts.map +0 -1
  150. package/dist/use-cases/action-resolution.d.ts +0 -66
  151. package/dist/use-cases/action-resolution.d.ts.map +0 -1
  152. package/dist/use-cases/action-resolution.js +0 -107
  153. package/dist/use-cases/action-resolution.js.map +0 -1
  154. package/dist/use-cases/candidate-builder.d.ts +0 -17
  155. package/dist/use-cases/candidate-builder.d.ts.map +0 -1
  156. package/dist/use-cases/candidate-builder.js +0 -67
  157. package/dist/use-cases/candidate-builder.js.map +0 -1
  158. package/dist/use-cases/copilot-setup.d.ts +0 -8
  159. package/dist/use-cases/copilot-setup.d.ts.map +0 -1
  160. package/dist/use-cases/copilot-setup.js +0 -10
  161. package/dist/use-cases/copilot-setup.js.map +0 -1
  162. package/dist/use-cases/create-copilot-agent.d.ts +0 -29
  163. package/dist/use-cases/create-copilot-agent.d.ts.map +0 -1
  164. package/dist/use-cases/create-copilot-agent.js +0 -73
  165. package/dist/use-cases/create-copilot-agent.js.map +0 -1
  166. package/dist/use-cases/create-skill.d.ts +0 -30
  167. package/dist/use-cases/create-skill.d.ts.map +0 -1
  168. package/dist/use-cases/create-skill.js +0 -75
  169. package/dist/use-cases/create-skill.js.map +0 -1
  170. package/dist/use-cases/index.d.ts +0 -10
  171. package/dist/use-cases/index.d.ts.map +0 -1
  172. package/dist/use-cases/index.js +0 -10
  173. package/dist/use-cases/index.js.map +0 -1
  174. package/dist/use-cases/setup-step-discovery.d.ts +0 -87
  175. package/dist/use-cases/setup-step-discovery.d.ts.map +0 -1
  176. package/dist/use-cases/setup-step-discovery.js +0 -202
  177. package/dist/use-cases/setup-step-discovery.js.map +0 -1
  178. package/dist/use-cases/workflow-generator.d.ts +0 -34
  179. package/dist/use-cases/workflow-generator.d.ts.map +0 -1
  180. package/dist/use-cases/workflow-generator.js +0 -195
  181. package/dist/use-cases/workflow-generator.js.map +0 -1
package/dist/31.js ADDED
@@ -0,0 +1,127 @@
1
+ export const __rspack_esm_id = "31";
2
+ export const __rspack_esm_ids = ["31"];
3
+ export const __webpack_modules__ = {
4
+ 7637(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
5
+
6
+ // EXPORTS
7
+ __webpack_require__.d(__webpack_exports__, {
8
+ diff: () => (/* binding */ diff)
9
+ });
10
+
11
+ // UNUSED EXPORTS: isEqual
12
+
13
+ ;// CONCATENATED MODULE: ./node_modules/ohash/dist/shared/ohash.D__AXeF1.mjs
14
+ function serialize(o){return typeof o=="string"?`'${o}'`:new c().serialize(o)}const c=/*@__PURE__*/function(){class o{#t=new Map;compare(t,r){const e=typeof t,n=typeof r;return e==="string"&&n==="string"?t.localeCompare(r):e==="number"&&n==="number"?t-r:String.prototype.localeCompare.call(this.serialize(t,true),this.serialize(r,true))}serialize(t,r){if(t===null)return "null";switch(typeof t){case "string":return r?t:`'${t}'`;case "bigint":return `${t}n`;case "object":return this.$object(t);case "function":return this.$function(t)}return String(t)}serializeObject(t){const r=Object.prototype.toString.call(t);if(r!=="[object Object]")return this.serializeBuiltInType(r.length<10?`unknown:${r}`:r.slice(8,-1),t);const e=t.constructor,n=e===Object||e===void 0?"":e.name;if(n!==""&&globalThis[n]===e)return this.serializeBuiltInType(n,t);if(typeof t.toJSON=="function"){const i=t.toJSON();return n+(i!==null&&typeof i=="object"?this.$object(i):`(${this.serialize(i)})`)}return this.serializeObjectEntries(n,Object.entries(t))}serializeBuiltInType(t,r){const e=this["$"+t];if(e)return e.call(this,r);if(typeof r?.entries=="function")return this.serializeObjectEntries(t,r.entries());throw new Error(`Cannot serialize ${t}`)}serializeObjectEntries(t,r){const e=Array.from(r).sort((i,a)=>this.compare(i[0],a[0]));let n=`${t}{`;for(let i=0;i<e.length;i++){const[a,l]=e[i];n+=`${this.serialize(a,true)}:${this.serialize(l)}`,i<e.length-1&&(n+=",");}return n+"}"}$object(t){let r=this.#t.get(t);return r===void 0&&(this.#t.set(t,`#${this.#t.size}`),r=this.serializeObject(t),this.#t.set(t,r)),r}$function(t){const r=Function.prototype.toString.call(t);return r.slice(-15)==="[native code] }"?`${t.name||""}()[native]`:`${t.name}(${t.length})${r.replace(/\s*\n\s*/g,"")}`}$Array(t){let r="[";for(let e=0;e<t.length;e++)r+=this.serialize(t[e]),e<t.length-1&&(r+=",");return r+"]"}$Date(t){try{return `Date(${t.toISOString()})`}catch{return "Date(null)"}}$ArrayBuffer(t){return `ArrayBuffer[${new Uint8Array(t).join(",")}]`}$Set(t){return `Set${this.$Array(Array.from(t).sort((r,e)=>this.compare(r,e)))}`}$Map(t){return this.serializeObjectEntries("Map",t.entries())}}for(const s of ["Error","RegExp","URL"])o.prototype["$"+s]=function(t){return `${s}(${t})`};for(const s of ["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])o.prototype["$"+s]=function(t){return `${s}[${t.join(",")}]`};for(const s of ["BigInt64Array","BigUint64Array"])o.prototype["$"+s]=function(t){return `${s}[${t.join("n,")}${t.length>0?"n":""}]`};return o}();
15
+
16
+ function isEqual(object1, object2) {
17
+ if (object1 === object2) {
18
+ return true;
19
+ }
20
+ if (serialize(object1) === serialize(object2)) {
21
+ return true;
22
+ }
23
+ return false;
24
+ }
25
+
26
+
27
+
28
+ ;// CONCATENATED MODULE: ./node_modules/ohash/dist/utils/index.mjs
29
+
30
+
31
+
32
+ function diff(obj1, obj2) {
33
+ const h1 = _toHashedObject(obj1);
34
+ const h2 = _toHashedObject(obj2);
35
+ return _diff(h1, h2);
36
+ }
37
+ function _diff(h1, h2) {
38
+ const diffs = [];
39
+ const allProps = /* @__PURE__ */ new Set([
40
+ ...Object.keys(h1.props || {}),
41
+ ...Object.keys(h2.props || {})
42
+ ]);
43
+ if (h1.props && h2.props) {
44
+ for (const prop of allProps) {
45
+ const p1 = h1.props[prop];
46
+ const p2 = h2.props[prop];
47
+ if (p1 && p2) {
48
+ diffs.push(..._diff(h1.props?.[prop], h2.props?.[prop]));
49
+ } else if (p1 || p2) {
50
+ diffs.push(
51
+ new DiffEntry((p2 || p1).key, p1 ? "removed" : "added", p2, p1)
52
+ );
53
+ }
54
+ }
55
+ }
56
+ if (allProps.size === 0 && h1.hash !== h2.hash) {
57
+ diffs.push(new DiffEntry((h2 || h1).key, "changed", h2, h1));
58
+ }
59
+ return diffs;
60
+ }
61
+ function _toHashedObject(obj, key = "") {
62
+ if (obj && typeof obj !== "object") {
63
+ return new DiffHashedObject(key, obj, serialize(obj));
64
+ }
65
+ const props = {};
66
+ const hashes = [];
67
+ for (const _key in obj) {
68
+ props[_key] = _toHashedObject(obj[_key], key ? `${key}.${_key}` : _key);
69
+ hashes.push(props[_key].hash);
70
+ }
71
+ return new DiffHashedObject(key, obj, `{${hashes.join(":")}}`, props);
72
+ }
73
+ class DiffEntry {
74
+ constructor(key, type, newValue, oldValue) {
75
+ this.key = key;
76
+ this.type = type;
77
+ this.newValue = newValue;
78
+ this.oldValue = oldValue;
79
+ }
80
+ toString() {
81
+ return this.toJSON();
82
+ }
83
+ toJSON() {
84
+ switch (this.type) {
85
+ case "added": {
86
+ return `Added \`${this.key}\``;
87
+ }
88
+ case "removed": {
89
+ return `Removed \`${this.key}\``;
90
+ }
91
+ case "changed": {
92
+ return `Changed \`${this.key}\` from \`${this.oldValue?.toString() || "-"}\` to \`${this.newValue.toString()}\``;
93
+ }
94
+ }
95
+ }
96
+ }
97
+ class DiffHashedObject {
98
+ constructor(key, value, hash, props) {
99
+ this.key = key;
100
+ this.value = value;
101
+ this.hash = hash;
102
+ this.props = props;
103
+ }
104
+ toString() {
105
+ if (this.props) {
106
+ return `{${Object.keys(this.props).join(",")}}`;
107
+ } else {
108
+ return JSON.stringify(this.value);
109
+ }
110
+ }
111
+ toJSON() {
112
+ const k = this.key || ".";
113
+ if (this.props) {
114
+ return `${k}({${Object.keys(this.props).join(",")}})`;
115
+ }
116
+ return `${k}(${this.value})`;
117
+ }
118
+ }
119
+
120
+
121
+
122
+
123
+ },
124
+
125
+ };
126
+
127
+ //# sourceMappingURL=31.js.map
package/dist/31.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"31.js","sources":["webpack://@lousy-agents/cli/./node_modules/ohash/dist/shared/ohash.D__AXeF1.mjs","webpack://@lousy-agents/cli/./node_modules/ohash/dist/utils/index.mjs"],"sourcesContent":["function serialize(o){return typeof o==\"string\"?`'${o}'`:new c().serialize(o)}const c=/*@__PURE__*/function(){class o{#t=new Map;compare(t,r){const e=typeof t,n=typeof r;return e===\"string\"&&n===\"string\"?t.localeCompare(r):e===\"number\"&&n===\"number\"?t-r:String.prototype.localeCompare.call(this.serialize(t,true),this.serialize(r,true))}serialize(t,r){if(t===null)return \"null\";switch(typeof t){case \"string\":return r?t:`'${t}'`;case \"bigint\":return `${t}n`;case \"object\":return this.$object(t);case \"function\":return this.$function(t)}return String(t)}serializeObject(t){const r=Object.prototype.toString.call(t);if(r!==\"[object Object]\")return this.serializeBuiltInType(r.length<10?`unknown:${r}`:r.slice(8,-1),t);const e=t.constructor,n=e===Object||e===void 0?\"\":e.name;if(n!==\"\"&&globalThis[n]===e)return this.serializeBuiltInType(n,t);if(typeof t.toJSON==\"function\"){const i=t.toJSON();return n+(i!==null&&typeof i==\"object\"?this.$object(i):`(${this.serialize(i)})`)}return this.serializeObjectEntries(n,Object.entries(t))}serializeBuiltInType(t,r){const e=this[\"$\"+t];if(e)return e.call(this,r);if(typeof r?.entries==\"function\")return this.serializeObjectEntries(t,r.entries());throw new Error(`Cannot serialize ${t}`)}serializeObjectEntries(t,r){const e=Array.from(r).sort((i,a)=>this.compare(i[0],a[0]));let n=`${t}{`;for(let i=0;i<e.length;i++){const[a,l]=e[i];n+=`${this.serialize(a,true)}:${this.serialize(l)}`,i<e.length-1&&(n+=\",\");}return n+\"}\"}$object(t){let r=this.#t.get(t);return r===void 0&&(this.#t.set(t,`#${this.#t.size}`),r=this.serializeObject(t),this.#t.set(t,r)),r}$function(t){const r=Function.prototype.toString.call(t);return r.slice(-15)===\"[native code] }\"?`${t.name||\"\"}()[native]`:`${t.name}(${t.length})${r.replace(/\\s*\\n\\s*/g,\"\")}`}$Array(t){let r=\"[\";for(let e=0;e<t.length;e++)r+=this.serialize(t[e]),e<t.length-1&&(r+=\",\");return r+\"]\"}$Date(t){try{return `Date(${t.toISOString()})`}catch{return \"Date(null)\"}}$ArrayBuffer(t){return `ArrayBuffer[${new Uint8Array(t).join(\",\")}]`}$Set(t){return `Set${this.$Array(Array.from(t).sort((r,e)=>this.compare(r,e)))}`}$Map(t){return this.serializeObjectEntries(\"Map\",t.entries())}}for(const s of [\"Error\",\"RegExp\",\"URL\"])o.prototype[\"$\"+s]=function(t){return `${s}(${t})`};for(const s of [\"Int8Array\",\"Uint8Array\",\"Uint8ClampedArray\",\"Int16Array\",\"Uint16Array\",\"Int32Array\",\"Uint32Array\",\"Float32Array\",\"Float64Array\"])o.prototype[\"$\"+s]=function(t){return `${s}[${t.join(\",\")}]`};for(const s of [\"BigInt64Array\",\"BigUint64Array\"])o.prototype[\"$\"+s]=function(t){return `${s}[${t.join(\"n,\")}${t.length>0?\"n\":\"\"}]`};return o}();\n\nfunction isEqual(object1, object2) {\n if (object1 === object2) {\n return true;\n }\n if (serialize(object1) === serialize(object2)) {\n return true;\n }\n return false;\n}\n\nexport { isEqual as i, serialize as s };\n","import { s as serialize } from '../shared/ohash.D__AXeF1.mjs';\nexport { i as isEqual } from '../shared/ohash.D__AXeF1.mjs';\n\nfunction diff(obj1, obj2) {\n const h1 = _toHashedObject(obj1);\n const h2 = _toHashedObject(obj2);\n return _diff(h1, h2);\n}\nfunction _diff(h1, h2) {\n const diffs = [];\n const allProps = /* @__PURE__ */ new Set([\n ...Object.keys(h1.props || {}),\n ...Object.keys(h2.props || {})\n ]);\n if (h1.props && h2.props) {\n for (const prop of allProps) {\n const p1 = h1.props[prop];\n const p2 = h2.props[prop];\n if (p1 && p2) {\n diffs.push(..._diff(h1.props?.[prop], h2.props?.[prop]));\n } else if (p1 || p2) {\n diffs.push(\n new DiffEntry((p2 || p1).key, p1 ? \"removed\" : \"added\", p2, p1)\n );\n }\n }\n }\n if (allProps.size === 0 && h1.hash !== h2.hash) {\n diffs.push(new DiffEntry((h2 || h1).key, \"changed\", h2, h1));\n }\n return diffs;\n}\nfunction _toHashedObject(obj, key = \"\") {\n if (obj && typeof obj !== \"object\") {\n return new DiffHashedObject(key, obj, serialize(obj));\n }\n const props = {};\n const hashes = [];\n for (const _key in obj) {\n props[_key] = _toHashedObject(obj[_key], key ? `${key}.${_key}` : _key);\n hashes.push(props[_key].hash);\n }\n return new DiffHashedObject(key, obj, `{${hashes.join(\":\")}}`, props);\n}\nclass DiffEntry {\n constructor(key, type, newValue, oldValue) {\n this.key = key;\n this.type = type;\n this.newValue = newValue;\n this.oldValue = oldValue;\n }\n toString() {\n return this.toJSON();\n }\n toJSON() {\n switch (this.type) {\n case \"added\": {\n return `Added \\`${this.key}\\``;\n }\n case \"removed\": {\n return `Removed \\`${this.key}\\``;\n }\n case \"changed\": {\n return `Changed \\`${this.key}\\` from \\`${this.oldValue?.toString() || \"-\"}\\` to \\`${this.newValue.toString()}\\``;\n }\n }\n }\n}\nclass DiffHashedObject {\n constructor(key, value, hash, props) {\n this.key = key;\n this.value = value;\n this.hash = hash;\n this.props = props;\n }\n toString() {\n if (this.props) {\n return `{${Object.keys(this.props).join(\",\")}}`;\n } else {\n return JSON.stringify(this.value);\n }\n }\n toJSON() {\n const k = this.key || \".\";\n if (this.props) {\n return `${k}({${Object.keys(this.props).join(\",\")}})`;\n }\n return `${k}(${this.value})`;\n }\n}\n\nexport { diff };\n"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,sBAAsB,8BAA8B,EAAE,wBAAwB,gCAAgC,QAAQ,WAAW,aAAa,4BAA4B,uKAAuK,eAAe,0BAA0B,iBAAiB,6BAA6B,EAAE,GAAG,wBAAwB,EAAE,GAAG,qCAAqC,yCAAyC,iBAAiB,mBAAmB,0CAA0C,iFAAiF,EAAE,mBAAmB,yDAAyD,mEAAmE,gCAAgC,mBAAmB,2DAA2D,kBAAkB,IAAI,wDAAwD,0BAA0B,oBAAoB,2BAA2B,mFAAmF,oCAAoC,EAAE,GAAG,4BAA4B,2DAA2D,SAAS,GAAG,EAAE,YAAY,WAAW,KAAK,gBAAgB,MAAM,uBAAuB,GAAG,kBAAkB,0BAA0B,WAAW,EAAE,WAAW,qBAAqB,sCAAsC,aAAa,iDAAiD,aAAa,4CAA4C,sCAAsC,KAAK,WAAW,eAAe,OAAO,GAAG,SAAS,GAAG,0BAA0B,EAAE,UAAU,UAAU,YAAY,WAAW,mDAAmD,aAAa,SAAS,IAAI,eAAe,gBAAgB,GAAG,MAAM,qBAAqB,gBAAgB,sBAAsB,4BAA4B,GAAG,QAAQ,aAAa,0DAA0D,EAAE,QAAQ,uDAAuD,uEAAuE,UAAU,EAAE,GAAG,EAAE,IAAI,iLAAiL,UAAU,EAAE,GAAG,YAAY,IAAI,iFAAiF,UAAU,EAAE,GAAG,aAAa,EAAE,kBAAkB,IAAI,SAAS;;AAE3iF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEwC;;;ACZsB;AACF;;AAE5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC,iCAAiC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,SAAS;AACnD;AACA;AACA;AACA;AACA,sDAAsD,IAAI,GAAG,KAAK;AAClE;AACA;AACA,0CAA0C,EAAE,kBAAkB;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,SAAS;AACrC;AACA;AACA,4BAA4B,SAAS;AACrC;AACA;AACA,4BAA4B,SAAS,YAAY,iCAAiC,UAAU,yBAAyB;AACrH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE,mCAAmC;AACpD,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,EAAE,EAAE,EAAE,mCAAmC;AACzD;AACA,cAAc,EAAE,GAAG,WAAW;AAC9B;AACA;;AAEgB"}
package/dist/399.js ADDED
@@ -0,0 +1,13 @@
1
+ export const __rspack_esm_id = "399";
2
+ export const __rspack_esm_ids = ["399"];
3
+ export const __webpack_modules__ = {
4
+ 1338(__unused_rspack_module, exports, __webpack_require__) {
5
+ var y=Object.defineProperty;var c=(R,o)=>y(R,"name",{value:o,configurable:!0});const node=__webpack_require__(529);__webpack_require__(7067),__webpack_require__(4708),__webpack_require__(8522),__webpack_require__(7075),__webpack_require__(4573),__webpack_require__(7975),__webpack_require__(7477),__webpack_require__(3136),__webpack_require__(7030),__webpack_require__(3024),__webpack_require__(6760);let s=0;const S={START_BOUNDARY:s++,HEADER_FIELD_START:s++,HEADER_FIELD:s++,HEADER_VALUE_START:s++,HEADER_VALUE:s++,HEADER_VALUE_ALMOST_DONE:s++,HEADERS_ALMOST_DONE:s++,PART_DATA_START:s++,PART_DATA:s++,END:s++};let f=1;const F={PART_BOUNDARY:f,LAST_BOUNDARY:f*=2},LF=10,CR=13,SPACE=32,HYPHEN=45,COLON=58,A=97,Z=122,lower=c(R=>R|32,"lower"),noop=c(()=>{},"noop"),g=class g{constructor(o){this.index=0,this.flags=0,this.onHeaderEnd=noop,this.onHeaderField=noop,this.onHeadersEnd=noop,this.onHeaderValue=noop,this.onPartBegin=noop,this.onPartData=noop,this.onPartEnd=noop,this.boundaryChars={},o=`\r
6
+ --`+o;const t=new Uint8Array(o.length);for(let n=0;n<o.length;n++)t[n]=o.charCodeAt(n),this.boundaryChars[t[n]]=!0;this.boundary=t,this.lookbehind=new Uint8Array(this.boundary.length+8),this.state=S.START_BOUNDARY}write(o){let t=0;const n=o.length;let E=this.index,{lookbehind:l,boundary:h,boundaryChars:H,index:e,state:a,flags:d}=this;const b=this.boundary.length,m=b-1,O=o.length;let r,P;const u=c(D=>{this[D+"Mark"]=t},"mark"),i=c(D=>{delete this[D+"Mark"]},"clear"),T=c((D,p,_,N)=>{(p===void 0||p!==_)&&this[D](N&&N.subarray(p,_))},"callback"),L=c((D,p)=>{const _=D+"Mark";_ in this&&(p?(T(D,this[_],t,o),delete this[_]):(T(D,this[_],o.length,o),this[_]=0))},"dataCallback");for(t=0;t<n;t++)switch(r=o[t],a){case S.START_BOUNDARY:if(e===h.length-2){if(r===HYPHEN)d|=F.LAST_BOUNDARY;else if(r!==CR)return;e++;break}else if(e-1===h.length-2){if(d&F.LAST_BOUNDARY&&r===HYPHEN)a=S.END,d=0;else if(!(d&F.LAST_BOUNDARY)&&r===LF)e=0,T("onPartBegin"),a=S.HEADER_FIELD_START;else return;break}r!==h[e+2]&&(e=-2),r===h[e+2]&&e++;break;case S.HEADER_FIELD_START:a=S.HEADER_FIELD,u("onHeaderField"),e=0;case S.HEADER_FIELD:if(r===CR){i("onHeaderField"),a=S.HEADERS_ALMOST_DONE;break}if(e++,r===HYPHEN)break;if(r===COLON){if(e===1)return;L("onHeaderField",!0),a=S.HEADER_VALUE_START;break}if(P=lower(r),P<A||P>Z)return;break;case S.HEADER_VALUE_START:if(r===SPACE)break;u("onHeaderValue"),a=S.HEADER_VALUE;case S.HEADER_VALUE:r===CR&&(L("onHeaderValue",!0),T("onHeaderEnd"),a=S.HEADER_VALUE_ALMOST_DONE);break;case S.HEADER_VALUE_ALMOST_DONE:if(r!==LF)return;a=S.HEADER_FIELD_START;break;case S.HEADERS_ALMOST_DONE:if(r!==LF)return;T("onHeadersEnd"),a=S.PART_DATA_START;break;case S.PART_DATA_START:a=S.PART_DATA,u("onPartData");case S.PART_DATA:if(E=e,e===0){for(t+=m;t<O&&!(o[t]in H);)t+=b;t-=m,r=o[t]}if(e<h.length)h[e]===r?(e===0&&L("onPartData",!0),e++):e=0;else if(e===h.length)e++,r===CR?d|=F.PART_BOUNDARY:r===HYPHEN?d|=F.LAST_BOUNDARY:e=0;else if(e-1===h.length)if(d&F.PART_BOUNDARY){if(e=0,r===LF){d&=~F.PART_BOUNDARY,T("onPartEnd"),T("onPartBegin"),a=S.HEADER_FIELD_START;break}}else d&F.LAST_BOUNDARY&&r===HYPHEN?(T("onPartEnd"),a=S.END,d=0):e=0;if(e>0)l[e-1]=r;else if(E>0){const D=new Uint8Array(l.buffer,l.byteOffset,l.byteLength);T("onPartData",0,E,D),E=0,u("onPartData"),t--}break;case S.END:break;default:throw new Error(`Unexpected state entered: ${a}`)}L("onHeaderField"),L("onHeaderValue"),L("onPartData"),this.index=e,this.state=a,this.flags=d}end(){if(this.state===S.HEADER_FIELD_START&&this.index===0||this.state===S.PART_DATA&&this.index===this.boundary.length)this.onPartEnd();else if(this.state!==S.END)throw new Error("MultipartParser.end(): stream ended unexpectedly")}};c(g,"MultipartParser");let MultipartParser=g;function _fileName(R){const o=R.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);if(!o)return;const t=o[2]||o[3]||"";let n=t.slice(t.lastIndexOf("\\")+1);return n=n.replace(/%22/g,'"'),n=n.replace(/&#(\d{4});/g,(E,l)=>String.fromCharCode(l)),n}c(_fileName,"_fileName");async function toFormData(R,o){if(!/multipart/i.test(o))throw new TypeError("Failed to fetch");const t=o.match(/boundary=(?:"([^"]+)"|([^;]+))/i);if(!t)throw new TypeError("no or bad content-type header, no multipart boundary");const n=new MultipartParser(t[1]||t[2]);let E,l,h,H,e,a;const d=[],b=new node.FormData,m=c(i=>{h+=u.decode(i,{stream:!0})},"onPartData"),O=c(i=>{d.push(i)},"appendToFile"),r=c(()=>{const i=new node.File(d,a,{type:e});b.append(H,i)},"appendFileToFormData"),P=c(()=>{b.append(H,h)},"appendEntryToFormData"),u=new TextDecoder("utf-8");u.decode(),n.onPartBegin=function(){n.onPartData=m,n.onPartEnd=P,E="",l="",h="",H="",e="",a=null,d.length=0},n.onHeaderField=function(i){E+=u.decode(i,{stream:!0})},n.onHeaderValue=function(i){l+=u.decode(i,{stream:!0})},n.onHeaderEnd=function(){if(l+=u.decode(),E=E.toLowerCase(),E==="content-disposition"){const i=l.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);i&&(H=i[2]||i[3]||""),a=_fileName(l),a&&(n.onPartData=O,n.onPartEnd=r)}else E==="content-type"&&(e=l);l="",E=""};for await(const i of R)n.write(i);return n.end(),b}c(toFormData,"toFormData"),exports.toFormData=toFormData;
7
+
8
+
9
+ },
10
+
11
+ };
12
+
13
+ //# sourceMappingURL=399.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"399.js","sources":["webpack://@lousy-agents/cli/./node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs"],"sourcesContent":["\"use strict\";var y=Object.defineProperty;var c=(R,o)=>y(R,\"name\",{value:o,configurable:!0});const node=require(\"../node.cjs\");require(\"node:http\"),require(\"node:https\"),require(\"node:zlib\"),require(\"node:stream\"),require(\"node:buffer\"),require(\"node:util\"),require(\"../shared/node-fetch-native.DhEqb06g.cjs\"),require(\"node:url\"),require(\"node:net\"),require(\"node:fs\"),require(\"node:path\");let s=0;const S={START_BOUNDARY:s++,HEADER_FIELD_START:s++,HEADER_FIELD:s++,HEADER_VALUE_START:s++,HEADER_VALUE:s++,HEADER_VALUE_ALMOST_DONE:s++,HEADERS_ALMOST_DONE:s++,PART_DATA_START:s++,PART_DATA:s++,END:s++};let f=1;const F={PART_BOUNDARY:f,LAST_BOUNDARY:f*=2},LF=10,CR=13,SPACE=32,HYPHEN=45,COLON=58,A=97,Z=122,lower=c(R=>R|32,\"lower\"),noop=c(()=>{},\"noop\"),g=class g{constructor(o){this.index=0,this.flags=0,this.onHeaderEnd=noop,this.onHeaderField=noop,this.onHeadersEnd=noop,this.onHeaderValue=noop,this.onPartBegin=noop,this.onPartData=noop,this.onPartEnd=noop,this.boundaryChars={},o=`\\r\n--`+o;const t=new Uint8Array(o.length);for(let n=0;n<o.length;n++)t[n]=o.charCodeAt(n),this.boundaryChars[t[n]]=!0;this.boundary=t,this.lookbehind=new Uint8Array(this.boundary.length+8),this.state=S.START_BOUNDARY}write(o){let t=0;const n=o.length;let E=this.index,{lookbehind:l,boundary:h,boundaryChars:H,index:e,state:a,flags:d}=this;const b=this.boundary.length,m=b-1,O=o.length;let r,P;const u=c(D=>{this[D+\"Mark\"]=t},\"mark\"),i=c(D=>{delete this[D+\"Mark\"]},\"clear\"),T=c((D,p,_,N)=>{(p===void 0||p!==_)&&this[D](N&&N.subarray(p,_))},\"callback\"),L=c((D,p)=>{const _=D+\"Mark\";_ in this&&(p?(T(D,this[_],t,o),delete this[_]):(T(D,this[_],o.length,o),this[_]=0))},\"dataCallback\");for(t=0;t<n;t++)switch(r=o[t],a){case S.START_BOUNDARY:if(e===h.length-2){if(r===HYPHEN)d|=F.LAST_BOUNDARY;else if(r!==CR)return;e++;break}else if(e-1===h.length-2){if(d&F.LAST_BOUNDARY&&r===HYPHEN)a=S.END,d=0;else if(!(d&F.LAST_BOUNDARY)&&r===LF)e=0,T(\"onPartBegin\"),a=S.HEADER_FIELD_START;else return;break}r!==h[e+2]&&(e=-2),r===h[e+2]&&e++;break;case S.HEADER_FIELD_START:a=S.HEADER_FIELD,u(\"onHeaderField\"),e=0;case S.HEADER_FIELD:if(r===CR){i(\"onHeaderField\"),a=S.HEADERS_ALMOST_DONE;break}if(e++,r===HYPHEN)break;if(r===COLON){if(e===1)return;L(\"onHeaderField\",!0),a=S.HEADER_VALUE_START;break}if(P=lower(r),P<A||P>Z)return;break;case S.HEADER_VALUE_START:if(r===SPACE)break;u(\"onHeaderValue\"),a=S.HEADER_VALUE;case S.HEADER_VALUE:r===CR&&(L(\"onHeaderValue\",!0),T(\"onHeaderEnd\"),a=S.HEADER_VALUE_ALMOST_DONE);break;case S.HEADER_VALUE_ALMOST_DONE:if(r!==LF)return;a=S.HEADER_FIELD_START;break;case S.HEADERS_ALMOST_DONE:if(r!==LF)return;T(\"onHeadersEnd\"),a=S.PART_DATA_START;break;case S.PART_DATA_START:a=S.PART_DATA,u(\"onPartData\");case S.PART_DATA:if(E=e,e===0){for(t+=m;t<O&&!(o[t]in H);)t+=b;t-=m,r=o[t]}if(e<h.length)h[e]===r?(e===0&&L(\"onPartData\",!0),e++):e=0;else if(e===h.length)e++,r===CR?d|=F.PART_BOUNDARY:r===HYPHEN?d|=F.LAST_BOUNDARY:e=0;else if(e-1===h.length)if(d&F.PART_BOUNDARY){if(e=0,r===LF){d&=~F.PART_BOUNDARY,T(\"onPartEnd\"),T(\"onPartBegin\"),a=S.HEADER_FIELD_START;break}}else d&F.LAST_BOUNDARY&&r===HYPHEN?(T(\"onPartEnd\"),a=S.END,d=0):e=0;if(e>0)l[e-1]=r;else if(E>0){const D=new Uint8Array(l.buffer,l.byteOffset,l.byteLength);T(\"onPartData\",0,E,D),E=0,u(\"onPartData\"),t--}break;case S.END:break;default:throw new Error(`Unexpected state entered: ${a}`)}L(\"onHeaderField\"),L(\"onHeaderValue\"),L(\"onPartData\"),this.index=e,this.state=a,this.flags=d}end(){if(this.state===S.HEADER_FIELD_START&&this.index===0||this.state===S.PART_DATA&&this.index===this.boundary.length)this.onPartEnd();else if(this.state!==S.END)throw new Error(\"MultipartParser.end(): stream ended unexpectedly\")}};c(g,\"MultipartParser\");let MultipartParser=g;function _fileName(R){const o=R.match(/\\bfilename=(\"(.*?)\"|([^()<>@,;:\\\\\"/[\\]?={}\\s\\t]+))($|;\\s)/i);if(!o)return;const t=o[2]||o[3]||\"\";let n=t.slice(t.lastIndexOf(\"\\\\\")+1);return n=n.replace(/%22/g,'\"'),n=n.replace(/&#(\\d{4});/g,(E,l)=>String.fromCharCode(l)),n}c(_fileName,\"_fileName\");async function toFormData(R,o){if(!/multipart/i.test(o))throw new TypeError(\"Failed to fetch\");const t=o.match(/boundary=(?:\"([^\"]+)\"|([^;]+))/i);if(!t)throw new TypeError(\"no or bad content-type header, no multipart boundary\");const n=new MultipartParser(t[1]||t[2]);let E,l,h,H,e,a;const d=[],b=new node.FormData,m=c(i=>{h+=u.decode(i,{stream:!0})},\"onPartData\"),O=c(i=>{d.push(i)},\"appendToFile\"),r=c(()=>{const i=new node.File(d,a,{type:e});b.append(H,i)},\"appendFileToFormData\"),P=c(()=>{b.append(H,h)},\"appendEntryToFormData\"),u=new TextDecoder(\"utf-8\");u.decode(),n.onPartBegin=function(){n.onPartData=m,n.onPartEnd=P,E=\"\",l=\"\",h=\"\",H=\"\",e=\"\",a=null,d.length=0},n.onHeaderField=function(i){E+=u.decode(i,{stream:!0})},n.onHeaderValue=function(i){l+=u.decode(i,{stream:!0})},n.onHeaderEnd=function(){if(l+=u.decode(),E=E.toLowerCase(),E===\"content-disposition\"){const i=l.match(/\\bname=(\"([^\"]*)\"|([^()<>@,;:\\\\\"/[\\]?={}\\s\\t]+))/i);i&&(H=i[2]||i[3]||\"\"),a=_fileName(l),a&&(n.onPartData=O,n.onPartEnd=r)}else E===\"content-type\"&&(e=l);l=\"\",E=\"\"};for await(const i of R)n.write(i);return n.end(),b}c(toFormData,\"toFormData\"),exports.toFormData=toFormData;\n"],"names":[],"mappings":";;;;AAAa,4BAA4B,yBAAyB,wBAAwB,EAAE,WAAW,mBAAO,CAAC,GAAa,EAAE,mBAAO,CAAC,IAAW,EAAE,mBAAO,CAAC,IAAY,EAAE,mBAAO,CAAC,IAAW,EAAE,mBAAO,CAAC,IAAa,EAAE,mBAAO,CAAC,IAAa,EAAE,mBAAO,CAAC,IAAW,EAAE,mBAAO,CAAC,IAA0C,EAAE,mBAAO,CAAC,IAAU,EAAE,mBAAO,CAAC,IAAU,EAAE,mBAAO,CAAC,IAAS,EAAE,mBAAO,CAAC,IAAW,EAAE,QAAQ,SAAS,mMAAmM,QAAQ,SAAS,mCAAmC,0FAA0F,mBAAmB,eAAe,2MAA2M;AACp9B,MAAM,iCAAiC,YAAY,WAAW,qDAAqD,mGAAmG,SAAS,QAAQ,iBAAiB,kBAAkB,gEAAgE,MAAM,8CAA8C,QAAQ,cAAc,iBAAiB,iBAAiB,sBAAsB,0BAA0B,iDAAiD,yBAAyB,iBAAiB,qFAAqF,iBAAiB,QAAQ,IAAI,qBAAqB,yCAAyC,iCAAiC,sBAAsB,IAAI,MAAM,0BAA0B,6CAA6C,iFAAiF,YAAY,MAAM,mCAAmC,MAAM,kEAAkE,+BAA+B,2CAA2C,MAAM,wBAAwB,cAAc,gBAAgB,6CAA6C,MAAM,8BAA8B,MAAM,6CAA6C,oCAAoC,kGAAkG,MAAM,iDAAiD,uBAAuB,MAAM,4CAA4C,sCAAsC,MAAM,qDAAqD,+BAA+B,SAAS,iBAAiB,MAAM,YAAY,2DAA2D,qFAAqF,6CAA6C,eAAe,2EAA2E,OAAO,oEAAoE,gBAAgB,aAAa,2DAA2D,8CAA8C,MAAM,iBAAiB,qDAAqD,EAAE,GAAG,6FAA6F,MAAM,mIAAmI,iGAAiG,uBAAuB,sBAAsB,sBAAsB,+CAA+C,YAAY,YAAY,OAAO,aAAa,uBAAuB,qCAAqC,kDAAkD,EAAE,EAAE,oCAAoC,yBAAyB,+BAA+B,gEAAgE,2CAA2C,QAAQ,kFAAkF,wCAAwC,gBAAgB,uCAAuC,eAAe,UAAU,EAAE,uBAAuB,UAAU,0BAA0B,2BAA2B,OAAO,EAAE,cAAc,kCAAkC,cAAc,qDAAqD,oCAAoC,wEAAwE,6BAA6B,eAAe,UAAU,EAAE,6BAA6B,eAAe,UAAU,EAAE,0BAA0B,8DAA8D,6CAA6C,YAAY,YAAY,uEAAuE,+BAA+B,WAAW,kCAAkC,iBAAiB,2BAA2B,kBAAkB"}
package/dist/610.js ADDED
@@ -0,0 +1,254 @@
1
+ export const __rspack_esm_id = "610";
2
+ export const __rspack_esm_ids = ["610"];
3
+ export const __webpack_modules__ = {
4
+ 6217(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
5
+ __webpack_require__.d(__webpack_exports__, {
6
+ parseTOML: () => (Q)
7
+ });
8
+ /* import */ var _shared_confbox_DA7CpUDY_mjs__rspack_import_0 = __webpack_require__(9067);
9
+ /*!
10
+ * Copyright (c) Squirrel Chat et al., All rights reserved.
11
+ * SPDX-License-Identifier: BSD-3-Clause
12
+ *
13
+ * Redistribution and use in source and binary forms, with or without
14
+ * modification, are permitted provided that the following conditions are met:
15
+ *
16
+ * 1. Redistributions of source code must retain the above copyright notice, this
17
+ * list of conditions and the following disclaimer.
18
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
19
+ * this list of conditions and the following disclaimer in the
20
+ * documentation and/or other materials provided with the distribution.
21
+ * 3. Neither the name of the copyright holder nor the names of its contributors
22
+ * may be used to endorse or promote products derived from this software without
23
+ * specific prior written permission.
24
+ *
25
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
26
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
27
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
28
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
29
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
30
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
31
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
32
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
33
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
34
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35
+ */function v(e,n){let t=e.slice(0,n).split(/\r\n|\n|\r/g);return[t.length,t.pop().length+1]}function C(e,n,t){let l=e.split(/\r\n|\n|\r/g),r="",i=(Math.log10(n+1)|0)+1;for(let o=n-1;o<=n+1;o++){let f=l[o-1];f&&(r+=o.toString().padEnd(i," "),r+=": ",r+=f,r+=`
36
+ `,o===n&&(r+=" ".repeat(i+t+2),r+=`^
37
+ `))}return r}class c extends Error{line;column;codeblock;constructor(n,t){const[l,r]=v(t.toml,t.ptr),i=C(t.toml,l,r);super(`Invalid TOML document: ${n}
38
+
39
+ ${i}`,t),this.line=l,this.column=r,this.codeblock=i}}/*!
40
+ * Copyright (c) Squirrel Chat et al., All rights reserved.
41
+ * SPDX-License-Identifier: BSD-3-Clause
42
+ *
43
+ * Redistribution and use in source and binary forms, with or without
44
+ * modification, are permitted provided that the following conditions are met:
45
+ *
46
+ * 1. Redistributions of source code must retain the above copyright notice, this
47
+ * list of conditions and the following disclaimer.
48
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
49
+ * this list of conditions and the following disclaimer in the
50
+ * documentation and/or other materials provided with the distribution.
51
+ * 3. Neither the name of the copyright holder nor the names of its contributors
52
+ * may be used to endorse or promote products derived from this software without
53
+ * specific prior written permission.
54
+ *
55
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
56
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
57
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
58
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
59
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
60
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
61
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
62
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
63
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
64
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
65
+ */function g(e,n=0,t=e.length){let l=e.indexOf(`
66
+ `,n);return e[l-1]==="\r"&&l--,l<=t?l:-1}function y(e,n){for(let t=n;t<e.length;t++){let l=e[t];if(l===`
67
+ `)return t;if(l==="\r"&&e[t+1]===`
68
+ `)return t+1;if(l<" "&&l!==" "||l==="\x7F")throw new c("control characters are not allowed in comments",{toml:e,ptr:n})}return e.length}function s(e,n,t,l){let r;for(;(r=e[n])===" "||r===" "||!t&&(r===`
69
+ `||r==="\r"&&e[n+1]===`
70
+ `);)n++;return l||r!=="#"?n:s(e,y(e,n),t)}function A(e,n,t,l,r=!1){if(!l)return n=g(e,n),n<0?e.length:n;for(let i=n;i<e.length;i++){let o=e[i];if(o==="#")i=g(e,i);else{if(o===t)return i+1;if(o===l)return i;if(r&&(o===`
71
+ `||o==="\r"&&e[i+1]===`
72
+ `))return i}}throw new c("cannot find end of structure",{toml:e,ptr:n})}function S(e,n){let t=e[n],l=t===e[n+1]&&e[n+1]===e[n+2]?e.slice(n,n+3):t;n+=l.length-1;do n=e.indexOf(l,++n);while(n>-1&&t!=="'"&&e[n-1]==="\\"&&e[n-2]!=="\\");return n>-1&&(n+=l.length,l.length>1&&(e[n]===t&&n++,e[n]===t&&n++)),n}/*!
73
+ * Copyright (c) Squirrel Chat et al., All rights reserved.
74
+ * SPDX-License-Identifier: BSD-3-Clause
75
+ *
76
+ * Redistribution and use in source and binary forms, with or without
77
+ * modification, are permitted provided that the following conditions are met:
78
+ *
79
+ * 1. Redistributions of source code must retain the above copyright notice, this
80
+ * list of conditions and the following disclaimer.
81
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
82
+ * this list of conditions and the following disclaimer in the
83
+ * documentation and/or other materials provided with the distribution.
84
+ * 3. Neither the name of the copyright holder nor the names of its contributors
85
+ * may be used to endorse or promote products derived from this software without
86
+ * specific prior written permission.
87
+ *
88
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
89
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
90
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
91
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
92
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
93
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
94
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
95
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
96
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
97
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
98
+ */let R=/^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}:\d{2}(?:\.\d+)?)?(Z|[-+]\d{2}:\d{2})?$/i;class w extends Date{#n=!1;#t=!1;#e=null;constructor(n){let t=!0,l=!0,r="Z";if(typeof n=="string"){let i=n.match(R);i?(i[1]||(t=!1,n=`0000-01-01T${n}`),l=!!i[2],i[2]&&+i[2]>23?n="":(r=i[3]||null,n=n.toUpperCase(),!r&&l&&(n+="Z"))):n=""}super(n),isNaN(this.getTime())||(this.#n=t,this.#t=l,this.#e=r)}isDateTime(){return this.#n&&this.#t}isLocal(){return!this.#n||!this.#t||!this.#e}isDate(){return this.#n&&!this.#t}isTime(){return this.#t&&!this.#n}isValid(){return this.#n||this.#t}toISOString(){let n=super.toISOString();if(this.isDate())return n.slice(0,10);if(this.isTime())return n.slice(11,23);if(this.#e===null)return n.slice(0,-1);if(this.#e==="Z")return n;let t=+this.#e.slice(1,3)*60+ +this.#e.slice(4,6);return t=this.#e[0]==="-"?t:-t,new Date(this.getTime()-t*6e4).toISOString().slice(0,-1)+this.#e}static wrapAsOffsetDateTime(n,t="Z"){let l=new w(n);return l.#e=t,l}static wrapAsLocalDateTime(n){let t=new w(n);return t.#e=null,t}static wrapAsLocalDate(n){let t=new w(n);return t.#t=!1,t.#e=null,t}static wrapAsLocalTime(n){let t=new w(n);return t.#n=!1,t.#e=null,t}}/*!
99
+ * Copyright (c) Squirrel Chat et al., All rights reserved.
100
+ * SPDX-License-Identifier: BSD-3-Clause
101
+ *
102
+ * Redistribution and use in source and binary forms, with or without
103
+ * modification, are permitted provided that the following conditions are met:
104
+ *
105
+ * 1. Redistributions of source code must retain the above copyright notice, this
106
+ * list of conditions and the following disclaimer.
107
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
108
+ * this list of conditions and the following disclaimer in the
109
+ * documentation and/or other materials provided with the distribution.
110
+ * 3. Neither the name of the copyright holder nor the names of its contributors
111
+ * may be used to endorse or promote products derived from this software without
112
+ * specific prior written permission.
113
+ *
114
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
115
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
116
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
117
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
118
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
119
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
120
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
121
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
122
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
123
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
124
+ */let M=/^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/,Z=/^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/,j=/^[+-]?0[0-9_]/,z=/^[0-9a-f]{4,8}$/i,I={b:"\b",t:" ",n:`
125
+ `,f:"\f",r:"\r",'"':'"',"\\":"\\"};function $(e,n=0,t=e.length){let l=e[n]==="'",r=e[n++]===e[n]&&e[n]===e[n+1];r&&(t-=2,e[n+=2]==="\r"&&n++,e[n]===`
126
+ `&&n++);let i=0,o,f="",a=n;for(;n<t-1;){let u=e[n++];if(u===`
127
+ `||u==="\r"&&e[n]===`
128
+ `){if(!r)throw new c("newlines are not allowed in strings",{toml:e,ptr:n-1})}else if(u<" "&&u!==" "||u==="\x7F")throw new c("control characters are not allowed in strings",{toml:e,ptr:n-1});if(o){if(o=!1,u==="u"||u==="U"){let d=e.slice(n,n+=u==="u"?4:8);if(!z.test(d))throw new c("invalid unicode escape",{toml:e,ptr:i});try{f+=String.fromCodePoint(parseInt(d,16))}catch{throw new c("invalid unicode escape",{toml:e,ptr:i})}}else if(r&&(u===`
129
+ `||u===" "||u===" "||u==="\r")){if(n=s(e,n-1,!0),e[n]!==`
130
+ `&&e[n]!=="\r")throw new c("invalid escape: only line-ending whitespace may be escaped",{toml:e,ptr:i});n=s(e,n)}else if(u in I)f+=I[u];else throw new c("unrecognized escape sequence",{toml:e,ptr:i});a=n}else!l&&u==="\\"&&(i=n-1,o=!0,f+=e.slice(a,i))}return f+e.slice(a,t-1)}function F(e,n,t){if(e==="true")return!0;if(e==="false")return!1;if(e==="-inf")return-1/0;if(e==="inf"||e==="+inf")return 1/0;if(e==="nan"||e==="+nan"||e==="-nan")return NaN;if(e==="-0")return 0;let l;if((l=M.test(e))||Z.test(e)){if(j.test(e))throw new c("leading zeroes are not allowed",{toml:n,ptr:t});let i=+e.replace(/_/g,"");if(isNaN(i))throw new c("invalid number",{toml:n,ptr:t});if(l&&!Number.isSafeInteger(i))throw new c("integer value cannot be represented losslessly",{toml:n,ptr:t});return i}let r=new w(e);if(!r.isValid())throw new c("invalid value",{toml:n,ptr:t});return r}/*!
131
+ * Copyright (c) Squirrel Chat et al., All rights reserved.
132
+ * SPDX-License-Identifier: BSD-3-Clause
133
+ *
134
+ * Redistribution and use in source and binary forms, with or without
135
+ * modification, are permitted provided that the following conditions are met:
136
+ *
137
+ * 1. Redistributions of source code must retain the above copyright notice, this
138
+ * list of conditions and the following disclaimer.
139
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
140
+ * this list of conditions and the following disclaimer in the
141
+ * documentation and/or other materials provided with the distribution.
142
+ * 3. Neither the name of the copyright holder nor the names of its contributors
143
+ * may be used to endorse or promote products derived from this software without
144
+ * specific prior written permission.
145
+ *
146
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
147
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
148
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
149
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
150
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
151
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
152
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
153
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
154
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
155
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
156
+ */function V(e,n,t,l){let r=e.slice(n,t),i=r.indexOf("#");i>-1&&(y(e,i),r=r.slice(0,i));let o=r.trimEnd();if(!l){let f=r.indexOf(`
157
+ `,o.length);if(f>-1)throw new c("newlines are not allowed in inline tables",{toml:e,ptr:n+f})}return[o,i]}function b(e,n,t,l){if(l===0)throw new c("document contains excessively nested structures. aborting.",{toml:e,ptr:n});let r=e[n];if(r==="["||r==="{"){let[f,a]=r==="["?U(e,n,l):K(e,n,l),u=A(e,a,",",t);if(t==="}"){let d=g(e,a,u);if(d>-1)throw new c("newlines are not allowed in inline tables",{toml:e,ptr:d})}return[f,u]}let i;if(r==='"'||r==="'"){i=S(e,n);let f=$(e,n,i);if(t){if(i=s(e,i,t!=="]"),e[i]&&e[i]!==","&&e[i]!==t&&e[i]!==`
158
+ `&&e[i]!=="\r")throw new c("unexpected character encountered",{toml:e,ptr:i});i+=+(e[i]===",")}return[f,i]}i=A(e,n,",",t);let o=V(e,n,i-+(e[i-1]===","),t==="]");if(!o[0])throw new c("incomplete key-value declaration: no value specified",{toml:e,ptr:n});return t&&o[1]>-1&&(i=s(e,n+o[1]),i+=+(e[i]===",")),[F(o[0],e,n),i]}/*!
159
+ * Copyright (c) Squirrel Chat et al., All rights reserved.
160
+ * SPDX-License-Identifier: BSD-3-Clause
161
+ *
162
+ * Redistribution and use in source and binary forms, with or without
163
+ * modification, are permitted provided that the following conditions are met:
164
+ *
165
+ * 1. Redistributions of source code must retain the above copyright notice, this
166
+ * list of conditions and the following disclaimer.
167
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
168
+ * this list of conditions and the following disclaimer in the
169
+ * documentation and/or other materials provided with the distribution.
170
+ * 3. Neither the name of the copyright holder nor the names of its contributors
171
+ * may be used to endorse or promote products derived from this software without
172
+ * specific prior written permission.
173
+ *
174
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
175
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
176
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
177
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
178
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
179
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
180
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
181
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
182
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
183
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
184
+ */let G=/^[a-zA-Z0-9-_]+[ \t]*$/;function x(e,n,t="="){let l=n-1,r=[],i=e.indexOf(t,n);if(i<0)throw new c("incomplete key-value: cannot find end of key",{toml:e,ptr:n});do{let o=e[n=++l];if(o!==" "&&o!==" ")if(o==='"'||o==="'"){if(o===e[n+1]&&o===e[n+2])throw new c("multiline strings are not allowed in keys",{toml:e,ptr:n});let f=S(e,n);if(f<0)throw new c("unfinished string encountered",{toml:e,ptr:n});l=e.indexOf(".",f);let a=e.slice(f,l<0||l>i?i:l),u=g(a);if(u>-1)throw new c("newlines are not allowed in keys",{toml:e,ptr:n+l+u});if(a.trimStart())throw new c("found extra tokens after the string part",{toml:e,ptr:f});if(i<f&&(i=e.indexOf(t,f),i<0))throw new c("incomplete key-value: cannot find end of key",{toml:e,ptr:n});r.push($(e,n,f))}else{l=e.indexOf(".",n);let f=e.slice(n,l<0||l>i?i:l);if(!G.test(f))throw new c("only letter, numbers, dashes and underscores are allowed in keys",{toml:e,ptr:n});r.push(f.trimEnd())}}while(l+1&&l<i);return[r,s(e,i+1,!0,!0)]}function K(e,n,t){let l={},r=new Set,i,o=0;for(n++;(i=e[n++])!=="}"&&i;){if(i===`
185
+ `)throw new c("newlines are not allowed in inline tables",{toml:e,ptr:n-1});if(i==="#")throw new c("inline tables cannot contain comments",{toml:e,ptr:n-1});if(i===",")throw new c("expected key-value, found comma",{toml:e,ptr:n-1});if(i!==" "&&i!==" "){let f,a=l,u=!1,[d,N]=x(e,n-1);for(let m=0;m<d.length;m++){if(m&&(a=u?a[f]:a[f]={}),f=d[m],(u=Object.hasOwn(a,f))&&(typeof a[f]!="object"||r.has(a[f])))throw new c("trying to redefine an already defined value",{toml:e,ptr:n});!u&&f==="__proto__"&&Object.defineProperty(a,f,{enumerable:!0,configurable:!0,writable:!0})}if(u)throw new c("trying to redefine an already defined value",{toml:e,ptr:n});let[_,k]=b(e,N,"}",t-1);r.add(_),a[f]=_,n=k,o=e[n-1]===","?n-1:0}}if(o)throw new c("trailing commas are not allowed in inline tables",{toml:e,ptr:o});if(!i)throw new c("unfinished table encountered",{toml:e,ptr:n});return[l,n]}function U(e,n,t){let l=[],r;for(n++;(r=e[n++])!=="]"&&r;){if(r===",")throw new c("expected value, found comma",{toml:e,ptr:n-1});if(r==="#")n=y(e,n);else if(r!==" "&&r!==" "&&r!==`
186
+ `&&r!=="\r"){let i=b(e,n-1,"]",t-1);l.push(i[0]),n=i[1]}}if(!r)throw new c("unfinished array encountered",{toml:e,ptr:n});return[l,n]}/*!
187
+ * Copyright (c) Squirrel Chat et al., All rights reserved.
188
+ * SPDX-License-Identifier: BSD-3-Clause
189
+ *
190
+ * Redistribution and use in source and binary forms, with or without
191
+ * modification, are permitted provided that the following conditions are met:
192
+ *
193
+ * 1. Redistributions of source code must retain the above copyright notice, this
194
+ * list of conditions and the following disclaimer.
195
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
196
+ * this list of conditions and the following disclaimer in the
197
+ * documentation and/or other materials provided with the distribution.
198
+ * 3. Neither the name of the copyright holder nor the names of its contributors
199
+ * may be used to endorse or promote products derived from this software without
200
+ * specific prior written permission.
201
+ *
202
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
203
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
204
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
205
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
206
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
207
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
208
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
209
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
210
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
211
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
212
+ */function p(e,n,t,l){let r=n,i=t,o,f=!1,a;for(let u=0;u<e.length;u++){if(u){if(r=f?r[o]:r[o]={},i=(a=i[o]).c,l===0&&(a.t===1||a.t===2))return null;if(a.t===2){let d=r.length-1;r=r[d],i=i[d].c}}if(o=e[u],(f=Object.hasOwn(r,o))&&i[o]?.t===0&&i[o]?.d)return null;f||(o==="__proto__"&&(Object.defineProperty(r,o,{enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(i,o,{enumerable:!0,configurable:!0,writable:!0})),i[o]={t:u<e.length-1&&l===2?3:l,d:!1,i:0,c:{}})}if(a=i[o],a.t!==l&&!(l===1&&a.t===3)||(l===2&&(a.d||(a.d=!0,r[o]=[]),r[o].push(r={}),a.c[a.i++]=a={t:1,d:!1,i:0,c:{}}),a.d))return null;if(a.d=!0,l===1)r=f?r[o]:r[o]={};else if(l===0&&f)return null;return[o,r,a.c]}function X(e,n){let t=n?.maxDepth??1e3,l={},r={},i=l,o=r;for(let f=s(e,0);f<e.length;){if(e[f]==="["){let a=e[++f]==="[",u=x(e,f+=+a,"]");if(a){if(e[u[1]-1]!=="]")throw new c("expected end of table declaration",{toml:e,ptr:u[1]-1});u[1]++}let d=p(u[0],l,r,a?2:1);if(!d)throw new c("trying to redefine an already defined table or value",{toml:e,ptr:f});o=d[2],i=d[1],f=u[1]}else{let a=x(e,f),u=p(a[0],i,o,0);if(!u)throw new c("trying to redefine an already defined table or value",{toml:e,ptr:f});let d=b(e,a[1],void 0,t);u[1][u[0]]=d[0],f=d[1]}if(f=s(e,f,!0),e[f]&&e[f]!==`
213
+ `&&e[f]!=="\r")throw new c("each key-value declaration must be followed by an end-of-line",{toml:e,ptr:f});f=s(e,f)}return l}/*!
214
+ * Copyright (c) Squirrel Chat et al., All rights reserved.
215
+ * SPDX-License-Identifier: BSD-3-Clause
216
+ *
217
+ * Redistribution and use in source and binary forms, with or without
218
+ * modification, are permitted provided that the following conditions are met:
219
+ *
220
+ * 1. Redistributions of source code must retain the above copyright notice, this
221
+ * list of conditions and the following disclaimer.
222
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
223
+ * this list of conditions and the following disclaimer in the
224
+ * documentation and/or other materials provided with the distribution.
225
+ * 3. Neither the name of the copyright holder nor the names of its contributors
226
+ * may be used to endorse or promote products derived from this software without
227
+ * specific prior written permission.
228
+ *
229
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
230
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
231
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
232
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
233
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
234
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
235
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
236
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
237
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
238
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
239
+ */let D=/^[a-z0-9-_]+$/i;function h(e){let n=typeof e;if(n==="object"){if(Array.isArray(e))return"array";if(e instanceof Date)return"date"}return n}function B(e){for(let n=0;n<e.length;n++)if(h(e[n])!=="object")return!1;return e.length!=0}function E(e){return JSON.stringify(e).replace(/\x7f/g,"\\u007f")}function O(e,n,t){if(t===0)throw new Error("Could not stringify the object: maximum object depth exceeded");if(n==="number")return isNaN(e)?"nan":e===1/0?"inf":e===-1/0?"-inf":e.toString();if(n==="bigint"||n==="boolean")return e.toString();if(n==="string")return E(e);if(n==="date"){if(isNaN(e.getTime()))throw new TypeError("cannot serialize invalid date");return e.toISOString()}if(n==="object")return Y(e,t);if(n==="array")return q(e,t)}function Y(e,n){let t=Object.keys(e);if(t.length===0)return"{}";let l="{ ";for(let r=0;r<t.length;r++){let i=t[r];r&&(l+=", "),l+=D.test(i)?i:E(i),l+=" = ",l+=O(e[i],h(e[i]),n-1)}return l+" }"}function q(e,n){if(e.length===0)return"[]";let t="[ ";for(let l=0;l<e.length;l++){if(l&&(t+=", "),e[l]===null||e[l]===void 0)throw new TypeError("arrays cannot contain null or undefined values");t+=O(e[l],h(e[l]),n-1)}return t+" ]"}function J(e,n,t){if(t===0)throw new Error("Could not stringify the object: maximum object depth exceeded");let l="";for(let r=0;r<e.length;r++)l+=`[[${n}]]
240
+ `,l+=T(e[r],n,t),l+=`
241
+
242
+ `;return l}function T(e,n,t){if(t===0)throw new Error("Could not stringify the object: maximum object depth exceeded");let l="",r="",i=Object.keys(e);for(let o=0;o<i.length;o++){let f=i[o];if(e[f]!==null&&e[f]!==void 0){let a=h(e[f]);if(a==="symbol"||a==="function")throw new TypeError(`cannot serialize values of type '${a}'`);let u=D.test(f)?f:E(f);if(a==="array"&&B(e[f]))r+=J(e[f],n?`${n}.${u}`:u,t-1);else if(a==="object"){let d=n?`${n}.${u}`:u;r+=`[${d}]
243
+ `,r+=T(e[f],d,t-1),r+=`
244
+
245
+ `}else l+=u,l+=" = ",l+=O(e[f],a,t),l+=`
246
+ `}}return`${l}
247
+ ${r}`.trim()}function H(e,n){if(h(e)!=="object")throw new TypeError("stringify can only be called with an object");let t=n?.maxDepth??1e3;return T(e,"",t)}function Q(e){const n=X(e);return (0,_shared_confbox_DA7CpUDY_mjs__rspack_import_0.s)(e,n,{preserveIndentation:!1}),n}function W(e){const n=P(e,{}),t=H(e);return n.whitespace.start+t+n.whitespace.end}
248
+
249
+
250
+ },
251
+
252
+ };
253
+
254
+ //# sourceMappingURL=610.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"610.js","sources":["webpack://@lousy-agents/cli/./node_modules/confbox/dist/toml.mjs"],"sourcesContent":["import{s as L,g as P}from\"./shared/confbox.DA7CpUDY.mjs\";/*!\n * Copyright (c) Squirrel Chat et al., All rights reserved.\n * SPDX-License-Identifier: BSD-3-Clause\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice, this\n * list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n * this list of conditions and the following disclaimer in the\n * documentation and/or other materials provided with the distribution.\n * 3. Neither the name of the copyright holder nor the names of its contributors\n * may be used to endorse or promote products derived from this software without\n * specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */function v(e,n){let t=e.slice(0,n).split(/\\r\\n|\\n|\\r/g);return[t.length,t.pop().length+1]}function C(e,n,t){let l=e.split(/\\r\\n|\\n|\\r/g),r=\"\",i=(Math.log10(n+1)|0)+1;for(let o=n-1;o<=n+1;o++){let f=l[o-1];f&&(r+=o.toString().padEnd(i,\" \"),r+=\": \",r+=f,r+=`\n`,o===n&&(r+=\" \".repeat(i+t+2),r+=`^\n`))}return r}class c extends Error{line;column;codeblock;constructor(n,t){const[l,r]=v(t.toml,t.ptr),i=C(t.toml,l,r);super(`Invalid TOML document: ${n}\n\n${i}`,t),this.line=l,this.column=r,this.codeblock=i}}/*!\n * Copyright (c) Squirrel Chat et al., All rights reserved.\n * SPDX-License-Identifier: BSD-3-Clause\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice, this\n * list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n * this list of conditions and the following disclaimer in the\n * documentation and/or other materials provided with the distribution.\n * 3. Neither the name of the copyright holder nor the names of its contributors\n * may be used to endorse or promote products derived from this software without\n * specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */function g(e,n=0,t=e.length){let l=e.indexOf(`\n`,n);return e[l-1]===\"\\r\"&&l--,l<=t?l:-1}function y(e,n){for(let t=n;t<e.length;t++){let l=e[t];if(l===`\n`)return t;if(l===\"\\r\"&&e[t+1]===`\n`)return t+1;if(l<\" \"&&l!==\"\t\"||l===\"\\x7F\")throw new c(\"control characters are not allowed in comments\",{toml:e,ptr:n})}return e.length}function s(e,n,t,l){let r;for(;(r=e[n])===\" \"||r===\"\t\"||!t&&(r===`\n`||r===\"\\r\"&&e[n+1]===`\n`);)n++;return l||r!==\"#\"?n:s(e,y(e,n),t)}function A(e,n,t,l,r=!1){if(!l)return n=g(e,n),n<0?e.length:n;for(let i=n;i<e.length;i++){let o=e[i];if(o===\"#\")i=g(e,i);else{if(o===t)return i+1;if(o===l)return i;if(r&&(o===`\n`||o===\"\\r\"&&e[i+1]===`\n`))return i}}throw new c(\"cannot find end of structure\",{toml:e,ptr:n})}function S(e,n){let t=e[n],l=t===e[n+1]&&e[n+1]===e[n+2]?e.slice(n,n+3):t;n+=l.length-1;do n=e.indexOf(l,++n);while(n>-1&&t!==\"'\"&&e[n-1]===\"\\\\\"&&e[n-2]!==\"\\\\\");return n>-1&&(n+=l.length,l.length>1&&(e[n]===t&&n++,e[n]===t&&n++)),n}/*!\n * Copyright (c) Squirrel Chat et al., All rights reserved.\n * SPDX-License-Identifier: BSD-3-Clause\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice, this\n * list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n * this list of conditions and the following disclaimer in the\n * documentation and/or other materials provided with the distribution.\n * 3. Neither the name of the copyright holder nor the names of its contributors\n * may be used to endorse or promote products derived from this software without\n * specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */let R=/^(\\d{4}-\\d{2}-\\d{2})?[T ]?(?:(\\d{2}):\\d{2}:\\d{2}(?:\\.\\d+)?)?(Z|[-+]\\d{2}:\\d{2})?$/i;class w extends Date{#n=!1;#t=!1;#e=null;constructor(n){let t=!0,l=!0,r=\"Z\";if(typeof n==\"string\"){let i=n.match(R);i?(i[1]||(t=!1,n=`0000-01-01T${n}`),l=!!i[2],i[2]&&+i[2]>23?n=\"\":(r=i[3]||null,n=n.toUpperCase(),!r&&l&&(n+=\"Z\"))):n=\"\"}super(n),isNaN(this.getTime())||(this.#n=t,this.#t=l,this.#e=r)}isDateTime(){return this.#n&&this.#t}isLocal(){return!this.#n||!this.#t||!this.#e}isDate(){return this.#n&&!this.#t}isTime(){return this.#t&&!this.#n}isValid(){return this.#n||this.#t}toISOString(){let n=super.toISOString();if(this.isDate())return n.slice(0,10);if(this.isTime())return n.slice(11,23);if(this.#e===null)return n.slice(0,-1);if(this.#e===\"Z\")return n;let t=+this.#e.slice(1,3)*60+ +this.#e.slice(4,6);return t=this.#e[0]===\"-\"?t:-t,new Date(this.getTime()-t*6e4).toISOString().slice(0,-1)+this.#e}static wrapAsOffsetDateTime(n,t=\"Z\"){let l=new w(n);return l.#e=t,l}static wrapAsLocalDateTime(n){let t=new w(n);return t.#e=null,t}static wrapAsLocalDate(n){let t=new w(n);return t.#t=!1,t.#e=null,t}static wrapAsLocalTime(n){let t=new w(n);return t.#n=!1,t.#e=null,t}}/*!\n * Copyright (c) Squirrel Chat et al., All rights reserved.\n * SPDX-License-Identifier: BSD-3-Clause\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice, this\n * list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n * this list of conditions and the following disclaimer in the\n * documentation and/or other materials provided with the distribution.\n * 3. Neither the name of the copyright holder nor the names of its contributors\n * may be used to endorse or promote products derived from this software without\n * specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */let M=/^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\\d(_?\\d)*))$/,Z=/^[+-]?\\d(_?\\d)*(\\.\\d(_?\\d)*)?([eE][+-]?\\d(_?\\d)*)?$/,j=/^[+-]?0[0-9_]/,z=/^[0-9a-f]{4,8}$/i,I={b:\"\\b\",t:\"\t\",n:`\n`,f:\"\\f\",r:\"\\r\",'\"':'\"',\"\\\\\":\"\\\\\"};function $(e,n=0,t=e.length){let l=e[n]===\"'\",r=e[n++]===e[n]&&e[n]===e[n+1];r&&(t-=2,e[n+=2]===\"\\r\"&&n++,e[n]===`\n`&&n++);let i=0,o,f=\"\",a=n;for(;n<t-1;){let u=e[n++];if(u===`\n`||u===\"\\r\"&&e[n]===`\n`){if(!r)throw new c(\"newlines are not allowed in strings\",{toml:e,ptr:n-1})}else if(u<\" \"&&u!==\"\t\"||u===\"\\x7F\")throw new c(\"control characters are not allowed in strings\",{toml:e,ptr:n-1});if(o){if(o=!1,u===\"u\"||u===\"U\"){let d=e.slice(n,n+=u===\"u\"?4:8);if(!z.test(d))throw new c(\"invalid unicode escape\",{toml:e,ptr:i});try{f+=String.fromCodePoint(parseInt(d,16))}catch{throw new c(\"invalid unicode escape\",{toml:e,ptr:i})}}else if(r&&(u===`\n`||u===\" \"||u===\"\t\"||u===\"\\r\")){if(n=s(e,n-1,!0),e[n]!==`\n`&&e[n]!==\"\\r\")throw new c(\"invalid escape: only line-ending whitespace may be escaped\",{toml:e,ptr:i});n=s(e,n)}else if(u in I)f+=I[u];else throw new c(\"unrecognized escape sequence\",{toml:e,ptr:i});a=n}else!l&&u===\"\\\\\"&&(i=n-1,o=!0,f+=e.slice(a,i))}return f+e.slice(a,t-1)}function F(e,n,t){if(e===\"true\")return!0;if(e===\"false\")return!1;if(e===\"-inf\")return-1/0;if(e===\"inf\"||e===\"+inf\")return 1/0;if(e===\"nan\"||e===\"+nan\"||e===\"-nan\")return NaN;if(e===\"-0\")return 0;let l;if((l=M.test(e))||Z.test(e)){if(j.test(e))throw new c(\"leading zeroes are not allowed\",{toml:n,ptr:t});let i=+e.replace(/_/g,\"\");if(isNaN(i))throw new c(\"invalid number\",{toml:n,ptr:t});if(l&&!Number.isSafeInteger(i))throw new c(\"integer value cannot be represented losslessly\",{toml:n,ptr:t});return i}let r=new w(e);if(!r.isValid())throw new c(\"invalid value\",{toml:n,ptr:t});return r}/*!\n * Copyright (c) Squirrel Chat et al., All rights reserved.\n * SPDX-License-Identifier: BSD-3-Clause\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice, this\n * list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n * this list of conditions and the following disclaimer in the\n * documentation and/or other materials provided with the distribution.\n * 3. Neither the name of the copyright holder nor the names of its contributors\n * may be used to endorse or promote products derived from this software without\n * specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */function V(e,n,t,l){let r=e.slice(n,t),i=r.indexOf(\"#\");i>-1&&(y(e,i),r=r.slice(0,i));let o=r.trimEnd();if(!l){let f=r.indexOf(`\n`,o.length);if(f>-1)throw new c(\"newlines are not allowed in inline tables\",{toml:e,ptr:n+f})}return[o,i]}function b(e,n,t,l){if(l===0)throw new c(\"document contains excessively nested structures. aborting.\",{toml:e,ptr:n});let r=e[n];if(r===\"[\"||r===\"{\"){let[f,a]=r===\"[\"?U(e,n,l):K(e,n,l),u=A(e,a,\",\",t);if(t===\"}\"){let d=g(e,a,u);if(d>-1)throw new c(\"newlines are not allowed in inline tables\",{toml:e,ptr:d})}return[f,u]}let i;if(r==='\"'||r===\"'\"){i=S(e,n);let f=$(e,n,i);if(t){if(i=s(e,i,t!==\"]\"),e[i]&&e[i]!==\",\"&&e[i]!==t&&e[i]!==`\n`&&e[i]!==\"\\r\")throw new c(\"unexpected character encountered\",{toml:e,ptr:i});i+=+(e[i]===\",\")}return[f,i]}i=A(e,n,\",\",t);let o=V(e,n,i-+(e[i-1]===\",\"),t===\"]\");if(!o[0])throw new c(\"incomplete key-value declaration: no value specified\",{toml:e,ptr:n});return t&&o[1]>-1&&(i=s(e,n+o[1]),i+=+(e[i]===\",\")),[F(o[0],e,n),i]}/*!\n * Copyright (c) Squirrel Chat et al., All rights reserved.\n * SPDX-License-Identifier: BSD-3-Clause\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice, this\n * list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n * this list of conditions and the following disclaimer in the\n * documentation and/or other materials provided with the distribution.\n * 3. Neither the name of the copyright holder nor the names of its contributors\n * may be used to endorse or promote products derived from this software without\n * specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */let G=/^[a-zA-Z0-9-_]+[ \\t]*$/;function x(e,n,t=\"=\"){let l=n-1,r=[],i=e.indexOf(t,n);if(i<0)throw new c(\"incomplete key-value: cannot find end of key\",{toml:e,ptr:n});do{let o=e[n=++l];if(o!==\" \"&&o!==\"\t\")if(o==='\"'||o===\"'\"){if(o===e[n+1]&&o===e[n+2])throw new c(\"multiline strings are not allowed in keys\",{toml:e,ptr:n});let f=S(e,n);if(f<0)throw new c(\"unfinished string encountered\",{toml:e,ptr:n});l=e.indexOf(\".\",f);let a=e.slice(f,l<0||l>i?i:l),u=g(a);if(u>-1)throw new c(\"newlines are not allowed in keys\",{toml:e,ptr:n+l+u});if(a.trimStart())throw new c(\"found extra tokens after the string part\",{toml:e,ptr:f});if(i<f&&(i=e.indexOf(t,f),i<0))throw new c(\"incomplete key-value: cannot find end of key\",{toml:e,ptr:n});r.push($(e,n,f))}else{l=e.indexOf(\".\",n);let f=e.slice(n,l<0||l>i?i:l);if(!G.test(f))throw new c(\"only letter, numbers, dashes and underscores are allowed in keys\",{toml:e,ptr:n});r.push(f.trimEnd())}}while(l+1&&l<i);return[r,s(e,i+1,!0,!0)]}function K(e,n,t){let l={},r=new Set,i,o=0;for(n++;(i=e[n++])!==\"}\"&&i;){if(i===`\n`)throw new c(\"newlines are not allowed in inline tables\",{toml:e,ptr:n-1});if(i===\"#\")throw new c(\"inline tables cannot contain comments\",{toml:e,ptr:n-1});if(i===\",\")throw new c(\"expected key-value, found comma\",{toml:e,ptr:n-1});if(i!==\" \"&&i!==\"\t\"){let f,a=l,u=!1,[d,N]=x(e,n-1);for(let m=0;m<d.length;m++){if(m&&(a=u?a[f]:a[f]={}),f=d[m],(u=Object.hasOwn(a,f))&&(typeof a[f]!=\"object\"||r.has(a[f])))throw new c(\"trying to redefine an already defined value\",{toml:e,ptr:n});!u&&f===\"__proto__\"&&Object.defineProperty(a,f,{enumerable:!0,configurable:!0,writable:!0})}if(u)throw new c(\"trying to redefine an already defined value\",{toml:e,ptr:n});let[_,k]=b(e,N,\"}\",t-1);r.add(_),a[f]=_,n=k,o=e[n-1]===\",\"?n-1:0}}if(o)throw new c(\"trailing commas are not allowed in inline tables\",{toml:e,ptr:o});if(!i)throw new c(\"unfinished table encountered\",{toml:e,ptr:n});return[l,n]}function U(e,n,t){let l=[],r;for(n++;(r=e[n++])!==\"]\"&&r;){if(r===\",\")throw new c(\"expected value, found comma\",{toml:e,ptr:n-1});if(r===\"#\")n=y(e,n);else if(r!==\" \"&&r!==\"\t\"&&r!==`\n`&&r!==\"\\r\"){let i=b(e,n-1,\"]\",t-1);l.push(i[0]),n=i[1]}}if(!r)throw new c(\"unfinished array encountered\",{toml:e,ptr:n});return[l,n]}/*!\n * Copyright (c) Squirrel Chat et al., All rights reserved.\n * SPDX-License-Identifier: BSD-3-Clause\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice, this\n * list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n * this list of conditions and the following disclaimer in the\n * documentation and/or other materials provided with the distribution.\n * 3. Neither the name of the copyright holder nor the names of its contributors\n * may be used to endorse or promote products derived from this software without\n * specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */function p(e,n,t,l){let r=n,i=t,o,f=!1,a;for(let u=0;u<e.length;u++){if(u){if(r=f?r[o]:r[o]={},i=(a=i[o]).c,l===0&&(a.t===1||a.t===2))return null;if(a.t===2){let d=r.length-1;r=r[d],i=i[d].c}}if(o=e[u],(f=Object.hasOwn(r,o))&&i[o]?.t===0&&i[o]?.d)return null;f||(o===\"__proto__\"&&(Object.defineProperty(r,o,{enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(i,o,{enumerable:!0,configurable:!0,writable:!0})),i[o]={t:u<e.length-1&&l===2?3:l,d:!1,i:0,c:{}})}if(a=i[o],a.t!==l&&!(l===1&&a.t===3)||(l===2&&(a.d||(a.d=!0,r[o]=[]),r[o].push(r={}),a.c[a.i++]=a={t:1,d:!1,i:0,c:{}}),a.d))return null;if(a.d=!0,l===1)r=f?r[o]:r[o]={};else if(l===0&&f)return null;return[o,r,a.c]}function X(e,n){let t=n?.maxDepth??1e3,l={},r={},i=l,o=r;for(let f=s(e,0);f<e.length;){if(e[f]===\"[\"){let a=e[++f]===\"[\",u=x(e,f+=+a,\"]\");if(a){if(e[u[1]-1]!==\"]\")throw new c(\"expected end of table declaration\",{toml:e,ptr:u[1]-1});u[1]++}let d=p(u[0],l,r,a?2:1);if(!d)throw new c(\"trying to redefine an already defined table or value\",{toml:e,ptr:f});o=d[2],i=d[1],f=u[1]}else{let a=x(e,f),u=p(a[0],i,o,0);if(!u)throw new c(\"trying to redefine an already defined table or value\",{toml:e,ptr:f});let d=b(e,a[1],void 0,t);u[1][u[0]]=d[0],f=d[1]}if(f=s(e,f,!0),e[f]&&e[f]!==`\n`&&e[f]!==\"\\r\")throw new c(\"each key-value declaration must be followed by an end-of-line\",{toml:e,ptr:f});f=s(e,f)}return l}/*!\n * Copyright (c) Squirrel Chat et al., All rights reserved.\n * SPDX-License-Identifier: BSD-3-Clause\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice, this\n * list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n * this list of conditions and the following disclaimer in the\n * documentation and/or other materials provided with the distribution.\n * 3. Neither the name of the copyright holder nor the names of its contributors\n * may be used to endorse or promote products derived from this software without\n * specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */let D=/^[a-z0-9-_]+$/i;function h(e){let n=typeof e;if(n===\"object\"){if(Array.isArray(e))return\"array\";if(e instanceof Date)return\"date\"}return n}function B(e){for(let n=0;n<e.length;n++)if(h(e[n])!==\"object\")return!1;return e.length!=0}function E(e){return JSON.stringify(e).replace(/\\x7f/g,\"\\\\u007f\")}function O(e,n,t){if(t===0)throw new Error(\"Could not stringify the object: maximum object depth exceeded\");if(n===\"number\")return isNaN(e)?\"nan\":e===1/0?\"inf\":e===-1/0?\"-inf\":e.toString();if(n===\"bigint\"||n===\"boolean\")return e.toString();if(n===\"string\")return E(e);if(n===\"date\"){if(isNaN(e.getTime()))throw new TypeError(\"cannot serialize invalid date\");return e.toISOString()}if(n===\"object\")return Y(e,t);if(n===\"array\")return q(e,t)}function Y(e,n){let t=Object.keys(e);if(t.length===0)return\"{}\";let l=\"{ \";for(let r=0;r<t.length;r++){let i=t[r];r&&(l+=\", \"),l+=D.test(i)?i:E(i),l+=\" = \",l+=O(e[i],h(e[i]),n-1)}return l+\" }\"}function q(e,n){if(e.length===0)return\"[]\";let t=\"[ \";for(let l=0;l<e.length;l++){if(l&&(t+=\", \"),e[l]===null||e[l]===void 0)throw new TypeError(\"arrays cannot contain null or undefined values\");t+=O(e[l],h(e[l]),n-1)}return t+\" ]\"}function J(e,n,t){if(t===0)throw new Error(\"Could not stringify the object: maximum object depth exceeded\");let l=\"\";for(let r=0;r<e.length;r++)l+=`[[${n}]]\n`,l+=T(e[r],n,t),l+=`\n\n`;return l}function T(e,n,t){if(t===0)throw new Error(\"Could not stringify the object: maximum object depth exceeded\");let l=\"\",r=\"\",i=Object.keys(e);for(let o=0;o<i.length;o++){let f=i[o];if(e[f]!==null&&e[f]!==void 0){let a=h(e[f]);if(a===\"symbol\"||a===\"function\")throw new TypeError(`cannot serialize values of type '${a}'`);let u=D.test(f)?f:E(f);if(a===\"array\"&&B(e[f]))r+=J(e[f],n?`${n}.${u}`:u,t-1);else if(a===\"object\"){let d=n?`${n}.${u}`:u;r+=`[${d}]\n`,r+=T(e[f],d,t-1),r+=`\n\n`}else l+=u,l+=\" = \",l+=O(e[f],a,t),l+=`\n`}}return`${l}\n${r}`.trim()}function H(e,n){if(h(e)!==\"object\")throw new TypeError(\"stringify can only be called with an object\");let t=n?.maxDepth??1e3;return T(e,\"\",t)}function Q(e){const n=X(e);return L(e,n,{preserveIndentation:!1}),n}function W(e){const n=P(e,{}),t=H(e);return n.whitespace.start+t+n.whitespace.end}export{Q as parseTOML,W as stringifyTOML};\n"],"names":[],"mappings":"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"}
package/dist/651.js ADDED
@@ -0,0 +1,39 @@
1
+ export const __rspack_esm_id = "651";
2
+ export const __rspack_esm_ids = ["651"];
3
+ export const __webpack_modules__ = {
4
+ 8094(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
5
+
6
+ // EXPORTS
7
+ __webpack_require__.d(__webpack_exports__, {
8
+ digest: () => (/* reexport */ node_digest)
9
+ });
10
+
11
+ // UNUSED EXPORTS: isEqual, serialize, hash
12
+
13
+ // EXTERNAL MODULE: external "node:crypto"
14
+ var external_node_crypto_ = __webpack_require__(7598);
15
+ ;// CONCATENATED MODULE: ./node_modules/ohash/dist/crypto/node/index.mjs
16
+
17
+
18
+ const e=globalThis.process?.getBuiltinModule?.("crypto")?.hash,r="sha256",s="base64url";function node_digest(t){if(e)return e(r,t,s);const o=(0,external_node_crypto_.createHash)(r).update(t);return globalThis.process?.versions?.webcontainer?o.digest().toString(s):o.digest(s)}
19
+
20
+
21
+
22
+ ;// CONCATENATED MODULE: ./node_modules/ohash/dist/index.mjs
23
+
24
+
25
+
26
+
27
+
28
+ function hash(input) {
29
+ return digest(serialize(input));
30
+ }
31
+
32
+
33
+
34
+
35
+ },
36
+
37
+ };
38
+
39
+ //# sourceMappingURL=651.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"651.js","sources":["webpack://@lousy-agents/cli/./node_modules/ohash/dist/crypto/node/index.mjs","webpack://@lousy-agents/cli/./node_modules/ohash/dist/index.mjs"],"sourcesContent":["import { createHash } from 'node:crypto';\n\nconst e=globalThis.process?.getBuiltinModule?.(\"crypto\")?.hash,r=\"sha256\",s=\"base64url\";function digest(t){if(e)return e(r,t,s);const o=createHash(r).update(t);return globalThis.process?.versions?.webcontainer?o.digest().toString(s):o.digest(s)}\n\nexport { digest };\n","import { s as serialize } from './shared/ohash.D__AXeF1.mjs';\nexport { i as isEqual } from './shared/ohash.D__AXeF1.mjs';\nimport { digest } from 'ohash/crypto';\nexport { digest } from 'ohash/crypto';\n\nfunction hash(input) {\n return digest(serialize(input));\n}\n\nexport { hash, serialize };\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAyC;;AAEzC,wFAAwF,SAAS,WAAM,IAAI,qBAAqB,QAAQ,oCAAU,cAAc;;AAE9I;;;ACJ2C;AACF;AACrB;AACA;;AAEtC;AACA;AACA;;AAE2B"}
package/dist/659.js ADDED
@@ -0,0 +1,16 @@
1
+ export const __rspack_esm_id = "659";
2
+ export const __rspack_esm_ids = ["659"];
3
+ export const __webpack_modules__ = {
4
+ 1318(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
5
+ __webpack_require__.d(__webpack_exports__, {
6
+ parseJSONC: () => (/* reexport safe */ _shared_confbox_DnMsyigM_mjs__rspack_import_0.p)
7
+ });
8
+ /* import */ var _shared_confbox_DnMsyigM_mjs__rspack_import_0 = __webpack_require__(7484);
9
+
10
+
11
+
12
+ },
13
+
14
+ };
15
+
16
+ //# sourceMappingURL=659.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"659.js","sources":["webpack://@lousy-agents/cli/./node_modules/confbox/dist/jsonc.mjs"],"sourcesContent":["import\"./shared/confbox.DA7CpUDY.mjs\";export{p as parseJSONC,s as stringifyJSONC}from\"./shared/confbox.DnMsyigM.mjs\";\n"],"names":[],"mappings":";;;;;;;;AAAqH"}