@dpuse/dpuse-development 0.3.671 → 0.3.673
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.
|
@@ -6206,44 +6206,120 @@ function Ir(e) {
|
|
|
6206
6206
|
return r.getDate() < n.getDate() && --i, i === 0 ? `this month: ${t}` : i === 1 ? `1 month ago: ${t}` : i <= 6 ? `${String(i)} months ago: ${t}` : `${String(i)} months ago: ${t} ⚠️ `;
|
|
6207
6207
|
}
|
|
6208
6208
|
//#endregion
|
|
6209
|
+
//#region src/actions/documentGovernance.ts
|
|
6210
|
+
var Lr = "<!-- GOVERNANCE_START -->", Rr = "<!-- GOVERNANCE_END -->";
|
|
6211
|
+
async function zr() {
|
|
6212
|
+
try {
|
|
6213
|
+
K("Document Governance"), J("1️⃣ Insert governance content into 'README.md'");
|
|
6214
|
+
let [e, t] = await Promise.all([W("package.json"), W("config.json")]), { owner: n, repo: r } = Br(e), i = Ur(n, r, Vr(e), Hr(t.firstCreatedAt));
|
|
6215
|
+
await zn("README.md", Wn(await G("./README.md"), i, Lr, Rr)), q("Governance documented");
|
|
6216
|
+
} catch (e) {
|
|
6217
|
+
console.error("❌ Error documenting governance", e), process.exit(1);
|
|
6218
|
+
}
|
|
6219
|
+
}
|
|
6220
|
+
function Br(e) {
|
|
6221
|
+
let t = e.repository, n = typeof t == "string" ? t : t?.url;
|
|
6222
|
+
if (n == null || n === "") throw Error("package.json 'repository' field is required to document governance.");
|
|
6223
|
+
let r = n.replace(/^git\+/, "").replace(/\.git$/, ""), i = /github\.com[/:]([^/]+)\/([^/]+)$/.exec(r);
|
|
6224
|
+
if (i?.[1] == null || i[2] == null) throw Error(`Unable to parse GitHub owner/repo from '${n}'.`);
|
|
6225
|
+
return {
|
|
6226
|
+
owner: i[1],
|
|
6227
|
+
repo: i[2]
|
|
6228
|
+
};
|
|
6229
|
+
}
|
|
6230
|
+
function Vr(e) {
|
|
6231
|
+
let t = e.author, n = typeof t == "string" ? t : t?.name;
|
|
6232
|
+
if (n == null || n === "") throw Error("package.json 'author' field is required to document governance.");
|
|
6233
|
+
return n.replace(/\s*<[^>]*>\s*/, "").trim();
|
|
6234
|
+
}
|
|
6235
|
+
function Hr(e) {
|
|
6236
|
+
let t = (/* @__PURE__ */ new Date()).getFullYear();
|
|
6237
|
+
if (e == null) return String(t);
|
|
6238
|
+
let n = new Date(e).getFullYear();
|
|
6239
|
+
return n === t ? String(t) : `${String(n)}-present`;
|
|
6240
|
+
}
|
|
6241
|
+
function Ur(e, t, n, r) {
|
|
6242
|
+
let i = `https://github.com/${e}/${t}`, a = `github.com/${e}/${t}`;
|
|
6243
|
+
return `### CodeQL
|
|
6244
|
+
|
|
6245
|
+
[CodeQL](${i}/security/code-scanning) static analysis runs on every push to \`main\` and on a weekly schedule, scanning TypeScript, JavaScript, Rust, and GitHub Actions workflow files for security vulnerabilities and coding errors.
|
|
6246
|
+
|
|
6247
|
+
### SonarCloud
|
|
6248
|
+
|
|
6249
|
+
[SonarCloud](https://sonarcloud.io/summary/new_code?id=${e}_${t}) performs continuous code quality and security analysis on every push, detecting bugs, code smells, and security vulnerabilities in the TypeScript source.
|
|
6250
|
+
|
|
6251
|
+
### Vulnerability Scanning
|
|
6252
|
+
|
|
6253
|
+
Two complementary tools continuously monitor dependencies for known vulnerabilities:
|
|
6254
|
+
|
|
6255
|
+
- **[GitHub Dependabot](https://docs.github.com/en/code-security/dependabot)** automatically raises pull requests to update vulnerable dependencies, drawing on the GitHub Advisory Database which combines NVD and npm-specific advisories.
|
|
6256
|
+
- **npm audit** runs on every push to \`main\` via the CI workflow, failing the build if any high or critical severity vulnerabilities are detected.
|
|
6257
|
+
|
|
6258
|
+
### Supply Chain Security
|
|
6259
|
+
|
|
6260
|
+
[Socket.dev](https://socket.dev) monitors all dependencies for supply chain risk — detecting malicious packages, dependency confusion, typosquatting, and suspicious behaviour that may not yet have a CVE.
|
|
6261
|
+
|
|
6262
|
+
### Reporting Vulnerabilities
|
|
6263
|
+
|
|
6264
|
+
Please do not open public GitHub issues for security vulnerabilities. Use [GitHub private vulnerability reporting](${i}/security/advisories/new) instead. See [SECURITY.md](./SECURITY.md) for the full disclosure policy, contact details, and expected response times.
|
|
6265
|
+
|
|
6266
|
+
### OpenSSF 🚧
|
|
6267
|
+
|
|
6268
|
+
[](https://scorecard.dev/viewer/?uri=${a})
|
|
6269
|
+
|
|
6270
|
+
This project is working towards the [OpenSSF Best Practices](https://www.bestpractices.dev) Passing badge, a self-certification covering security policy, vulnerability reporting, build processes, code quality, and more. Currently the [OpenSSF Scorecard](https://scorecard.dev/viewer/?uri=${a}) provides an independent automated assessment of the project's security practices and is an ongoing area of improvement.
|
|
6271
|
+
|
|
6272
|
+
## Contributing
|
|
6273
|
+
|
|
6274
|
+
This repository is maintained solely by its owner and does not, at present, accept external contributions into the canonical repo. Its source is published openly under the MIT License — every DPUse project is fully open source except DPUse Engine, which remains closed and proprietary.
|
|
6275
|
+
|
|
6276
|
+
For security vulnerabilities, see [Reporting Vulnerabilities](#reporting-vulnerabilities). For bugs, inconsistencies, or other feedback, [open a GitHub issue](${i}/issues) — feedback is read, but responses and fixes are at the maintainer's discretion.
|
|
6277
|
+
|
|
6278
|
+
## License
|
|
6279
|
+
|
|
6280
|
+
This project is licensed under the MIT License, permitting free use, modification, and distribution.
|
|
6281
|
+
|
|
6282
|
+
[MIT](./LICENSE) © ${r} ${n}`;
|
|
6283
|
+
}
|
|
6284
|
+
//#endregion
|
|
6209
6285
|
//#region node_modules/@dpuse/dpuse-shared/dist/componentConfig.schema-dBVLwQIt.js
|
|
6210
|
-
var
|
|
6286
|
+
var Wr, Gr = {
|
|
6211
6287
|
lang: void 0,
|
|
6212
6288
|
message: void 0,
|
|
6213
6289
|
abortEarly: void 0,
|
|
6214
6290
|
abortPipeEarly: void 0
|
|
6215
6291
|
};
|
|
6216
6292
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6217
|
-
function
|
|
6218
|
-
return !e && !
|
|
6219
|
-
lang: e?.lang ??
|
|
6293
|
+
function Kr(e) {
|
|
6294
|
+
return !e && !Wr ? Gr : {
|
|
6295
|
+
lang: e?.lang ?? Wr?.lang,
|
|
6220
6296
|
message: e?.message,
|
|
6221
|
-
abortEarly: e?.abortEarly ??
|
|
6222
|
-
abortPipeEarly: e?.abortPipeEarly ??
|
|
6297
|
+
abortEarly: e?.abortEarly ?? Wr?.abortEarly,
|
|
6298
|
+
abortPipeEarly: e?.abortPipeEarly ?? Wr?.abortPipeEarly
|
|
6223
6299
|
};
|
|
6224
6300
|
}
|
|
6225
|
-
var
|
|
6301
|
+
var qr;
|
|
6226
6302
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6227
|
-
function
|
|
6228
|
-
return
|
|
6303
|
+
function Jr(e) {
|
|
6304
|
+
return qr?.get(e);
|
|
6229
6305
|
}
|
|
6230
|
-
var
|
|
6306
|
+
var Yr;
|
|
6231
6307
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6232
|
-
function
|
|
6233
|
-
return
|
|
6308
|
+
function Xr(e) {
|
|
6309
|
+
return Yr?.get(e);
|
|
6234
6310
|
}
|
|
6235
|
-
var
|
|
6311
|
+
var Zr;
|
|
6236
6312
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6237
|
-
function
|
|
6238
|
-
return
|
|
6313
|
+
function Qr(e, t) {
|
|
6314
|
+
return Zr?.get(e)?.get(t);
|
|
6239
6315
|
}
|
|
6240
6316
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6241
|
-
function
|
|
6317
|
+
function $r(e) {
|
|
6242
6318
|
let t = typeof e;
|
|
6243
6319
|
return t === "string" ? `"${e}"` : t === "number" || t === "bigint" || t === "boolean" ? `${e}` : t === "object" || t === "function" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? "null" : t;
|
|
6244
6320
|
}
|
|
6245
|
-
function
|
|
6246
|
-
let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */
|
|
6321
|
+
function X(e, t, n, r, i) {
|
|
6322
|
+
let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ $r(a), c = {
|
|
6247
6323
|
kind: e.kind,
|
|
6248
6324
|
type: e.type,
|
|
6249
6325
|
input: a,
|
|
@@ -6256,50 +6332,50 @@ function qr(e, t, n, r, i) {
|
|
|
6256
6332
|
lang: r.lang,
|
|
6257
6333
|
abortEarly: r.abortEarly,
|
|
6258
6334
|
abortPipeEarly: r.abortPipeEarly
|
|
6259
|
-
}, l = e.kind === "schema", u = i?.message ?? e.message ?? /* @__PURE__ */
|
|
6335
|
+
}, l = e.kind === "schema", u = i?.message ?? e.message ?? /* @__PURE__ */ Qr(e.reference, c.lang) ?? (l ? /* @__PURE__ */ Xr(c.lang) : null) ?? r.message ?? /* @__PURE__ */ Jr(c.lang);
|
|
6260
6336
|
u !== void 0 && (c.message = typeof u == "function" ? u(c) : u), l && (n.typed = !1), n.issues ? n.issues.push(c) : n.issues = [c];
|
|
6261
6337
|
}
|
|
6262
|
-
var
|
|
6338
|
+
var ei = /* @__PURE__ */ new WeakMap();
|
|
6263
6339
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6264
|
-
function
|
|
6265
|
-
let t =
|
|
6340
|
+
function ti(e) {
|
|
6341
|
+
let t = ei.get(e);
|
|
6266
6342
|
return t || (t = {
|
|
6267
6343
|
version: 1,
|
|
6268
6344
|
vendor: "valibot",
|
|
6269
6345
|
validate(t) {
|
|
6270
|
-
return e["~run"]({ value: t }, /* @__PURE__ */
|
|
6346
|
+
return e["~run"]({ value: t }, /* @__PURE__ */ Kr());
|
|
6271
6347
|
}
|
|
6272
|
-
},
|
|
6348
|
+
}, ei.set(e, t)), t;
|
|
6273
6349
|
}
|
|
6274
6350
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6275
|
-
function
|
|
6351
|
+
function ni(e, t) {
|
|
6276
6352
|
return Object.prototype.hasOwnProperty.call(e, t) && t !== "__proto__" && t !== "prototype" && t !== "constructor";
|
|
6277
6353
|
}
|
|
6278
6354
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6279
|
-
function
|
|
6355
|
+
function ri(e, t) {
|
|
6280
6356
|
let n = [...new Set(e)];
|
|
6281
6357
|
return n.length > 1 ? `(${n.join(` ${t} `)})` : n[0] ?? "never";
|
|
6282
6358
|
}
|
|
6283
6359
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6284
|
-
function
|
|
6360
|
+
function ii(e, t, n) {
|
|
6285
6361
|
return typeof e.fallback == "function" ? e.fallback(t, n) : e.fallback;
|
|
6286
6362
|
}
|
|
6287
6363
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6288
|
-
function
|
|
6364
|
+
function ai(e, t, n) {
|
|
6289
6365
|
return typeof e.default == "function" ? e.default(t, n) : e.default;
|
|
6290
6366
|
}
|
|
6291
6367
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6292
|
-
function
|
|
6368
|
+
function oi(e, t) {
|
|
6293
6369
|
return {
|
|
6294
6370
|
kind: "schema",
|
|
6295
6371
|
type: "array",
|
|
6296
|
-
reference:
|
|
6372
|
+
reference: oi,
|
|
6297
6373
|
expects: "Array",
|
|
6298
6374
|
async: !1,
|
|
6299
6375
|
item: e,
|
|
6300
6376
|
message: t,
|
|
6301
6377
|
get "~standard"() {
|
|
6302
|
-
return /* @__PURE__ */
|
|
6378
|
+
return /* @__PURE__ */ ti(this);
|
|
6303
6379
|
},
|
|
6304
6380
|
"~run"(e, t) {
|
|
6305
6381
|
let n = e.value;
|
|
@@ -6323,43 +6399,43 @@ function $r(e, t) {
|
|
|
6323
6399
|
}
|
|
6324
6400
|
a.typed || (e.typed = !1), e.value.push(a.value);
|
|
6325
6401
|
}
|
|
6326
|
-
} else
|
|
6402
|
+
} else X(this, "type", e, t);
|
|
6327
6403
|
return e;
|
|
6328
6404
|
}
|
|
6329
6405
|
};
|
|
6330
6406
|
}
|
|
6331
6407
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6332
|
-
function
|
|
6408
|
+
function si(e) {
|
|
6333
6409
|
return {
|
|
6334
6410
|
kind: "schema",
|
|
6335
6411
|
type: "boolean",
|
|
6336
|
-
reference:
|
|
6412
|
+
reference: si,
|
|
6337
6413
|
expects: "boolean",
|
|
6338
6414
|
async: !1,
|
|
6339
6415
|
message: e,
|
|
6340
6416
|
get "~standard"() {
|
|
6341
|
-
return /* @__PURE__ */
|
|
6417
|
+
return /* @__PURE__ */ ti(this);
|
|
6342
6418
|
},
|
|
6343
6419
|
"~run"(e, t) {
|
|
6344
|
-
return typeof e.value == "boolean" ? e.typed = !0 :
|
|
6420
|
+
return typeof e.value == "boolean" ? e.typed = !0 : X(this, "type", e, t), e;
|
|
6345
6421
|
}
|
|
6346
6422
|
};
|
|
6347
6423
|
}
|
|
6348
6424
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6349
|
-
function
|
|
6425
|
+
function ci(e, t) {
|
|
6350
6426
|
return {
|
|
6351
6427
|
kind: "schema",
|
|
6352
6428
|
type: "literal",
|
|
6353
|
-
reference:
|
|
6354
|
-
expects: /* @__PURE__ */
|
|
6429
|
+
reference: ci,
|
|
6430
|
+
expects: /* @__PURE__ */ $r(e),
|
|
6355
6431
|
async: !1,
|
|
6356
6432
|
literal: e,
|
|
6357
6433
|
message: t,
|
|
6358
6434
|
get "~standard"() {
|
|
6359
|
-
return /* @__PURE__ */
|
|
6435
|
+
return /* @__PURE__ */ ti(this);
|
|
6360
6436
|
},
|
|
6361
6437
|
"~run"(e, t) {
|
|
6362
|
-
return e.value === this.literal ? e.typed = !0 :
|
|
6438
|
+
return e.value === this.literal ? e.typed = !0 : X(this, "type", e, t), e;
|
|
6363
6439
|
}
|
|
6364
6440
|
};
|
|
6365
6441
|
}
|
|
@@ -6374,27 +6450,27 @@ function Z(e, t) {
|
|
|
6374
6450
|
wrapped: e,
|
|
6375
6451
|
default: t,
|
|
6376
6452
|
get "~standard"() {
|
|
6377
|
-
return /* @__PURE__ */
|
|
6453
|
+
return /* @__PURE__ */ ti(this);
|
|
6378
6454
|
},
|
|
6379
6455
|
"~run"(e, t) {
|
|
6380
|
-
return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */
|
|
6456
|
+
return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ ai(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
|
|
6381
6457
|
}
|
|
6382
6458
|
};
|
|
6383
6459
|
}
|
|
6384
6460
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6385
|
-
function
|
|
6461
|
+
function li(e) {
|
|
6386
6462
|
return {
|
|
6387
6463
|
kind: "schema",
|
|
6388
6464
|
type: "number",
|
|
6389
|
-
reference:
|
|
6465
|
+
reference: li,
|
|
6390
6466
|
expects: "number",
|
|
6391
6467
|
async: !1,
|
|
6392
6468
|
message: e,
|
|
6393
6469
|
get "~standard"() {
|
|
6394
|
-
return /* @__PURE__ */
|
|
6470
|
+
return /* @__PURE__ */ ti(this);
|
|
6395
6471
|
},
|
|
6396
6472
|
"~run"(e, t) {
|
|
6397
|
-
return typeof e.value == "number" && !isNaN(e.value) ? e.typed = !0 :
|
|
6473
|
+
return typeof e.value == "number" && !isNaN(e.value) ? e.typed = !0 : X(this, "type", e, t), e;
|
|
6398
6474
|
}
|
|
6399
6475
|
};
|
|
6400
6476
|
}
|
|
@@ -6409,7 +6485,7 @@ function Q(e, t) {
|
|
|
6409
6485
|
entries: e,
|
|
6410
6486
|
message: t,
|
|
6411
6487
|
get "~standard"() {
|
|
6412
|
-
return /* @__PURE__ */
|
|
6488
|
+
return /* @__PURE__ */ ti(this);
|
|
6413
6489
|
},
|
|
6414
6490
|
"~run"(e, t) {
|
|
6415
6491
|
let n = e.value;
|
|
@@ -6418,7 +6494,7 @@ function Q(e, t) {
|
|
|
6418
6494
|
for (let r in this.entries) {
|
|
6419
6495
|
let i = this.entries[r];
|
|
6420
6496
|
if (r in n || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
|
|
6421
|
-
let a = r in n ? n[r] : /* @__PURE__ */
|
|
6497
|
+
let a = r in n ? n[r] : /* @__PURE__ */ ai(i), o = i["~run"]({ value: a }, t);
|
|
6422
6498
|
if (o.issues) {
|
|
6423
6499
|
let i = {
|
|
6424
6500
|
type: "object",
|
|
@@ -6434,8 +6510,8 @@ function Q(e, t) {
|
|
|
6434
6510
|
}
|
|
6435
6511
|
}
|
|
6436
6512
|
o.typed || (e.typed = !1), e.value[r] = o.value;
|
|
6437
|
-
} else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */
|
|
6438
|
-
else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (
|
|
6513
|
+
} else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ ii(i);
|
|
6514
|
+
else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (X(this, "key", e, t, {
|
|
6439
6515
|
input: void 0,
|
|
6440
6516
|
expected: `"${r}"`,
|
|
6441
6517
|
path: [{
|
|
@@ -6447,48 +6523,48 @@ function Q(e, t) {
|
|
|
6447
6523
|
}]
|
|
6448
6524
|
}), t.abortEarly)) break;
|
|
6449
6525
|
}
|
|
6450
|
-
} else
|
|
6526
|
+
} else X(this, "type", e, t);
|
|
6451
6527
|
return e;
|
|
6452
6528
|
}
|
|
6453
6529
|
};
|
|
6454
6530
|
}
|
|
6455
6531
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6456
|
-
function
|
|
6532
|
+
function ui(e, t) {
|
|
6457
6533
|
return {
|
|
6458
6534
|
kind: "schema",
|
|
6459
6535
|
type: "optional",
|
|
6460
|
-
reference:
|
|
6536
|
+
reference: ui,
|
|
6461
6537
|
expects: `(${e.expects} | undefined)`,
|
|
6462
6538
|
async: !1,
|
|
6463
6539
|
wrapped: e,
|
|
6464
6540
|
default: t,
|
|
6465
6541
|
get "~standard"() {
|
|
6466
|
-
return /* @__PURE__ */
|
|
6542
|
+
return /* @__PURE__ */ ti(this);
|
|
6467
6543
|
},
|
|
6468
6544
|
"~run"(e, t) {
|
|
6469
|
-
return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */
|
|
6545
|
+
return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ ai(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
|
|
6470
6546
|
}
|
|
6471
6547
|
};
|
|
6472
6548
|
}
|
|
6473
6549
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6474
|
-
function
|
|
6550
|
+
function di(e, t, n) {
|
|
6475
6551
|
return {
|
|
6476
6552
|
kind: "schema",
|
|
6477
6553
|
type: "record",
|
|
6478
|
-
reference:
|
|
6554
|
+
reference: di,
|
|
6479
6555
|
expects: "Object",
|
|
6480
6556
|
async: !1,
|
|
6481
6557
|
key: e,
|
|
6482
6558
|
value: t,
|
|
6483
6559
|
message: n,
|
|
6484
6560
|
get "~standard"() {
|
|
6485
|
-
return /* @__PURE__ */
|
|
6561
|
+
return /* @__PURE__ */ ti(this);
|
|
6486
6562
|
},
|
|
6487
6563
|
"~run"(e, t) {
|
|
6488
6564
|
let n = e.value;
|
|
6489
6565
|
if (n && typeof n == "object") {
|
|
6490
6566
|
e.typed = !0, e.value = {};
|
|
6491
|
-
for (let r in n) if (/* @__PURE__ */
|
|
6567
|
+
for (let r in n) if (/* @__PURE__ */ ni(n, r)) {
|
|
6492
6568
|
let i = n[r], a = this.key["~run"]({ value: r }, t);
|
|
6493
6569
|
if (a.issues) {
|
|
6494
6570
|
let o = {
|
|
@@ -6521,7 +6597,7 @@ function ii(e, t, n) {
|
|
|
6521
6597
|
}
|
|
6522
6598
|
(!a.typed || !o.typed) && (e.typed = !1), a.typed && (e.value[a.value] = o.value);
|
|
6523
6599
|
}
|
|
6524
|
-
} else
|
|
6600
|
+
} else X(this, "type", e, t);
|
|
6525
6601
|
return e;
|
|
6526
6602
|
}
|
|
6527
6603
|
};
|
|
@@ -6536,32 +6612,32 @@ function $(e) {
|
|
|
6536
6612
|
async: !1,
|
|
6537
6613
|
message: e,
|
|
6538
6614
|
get "~standard"() {
|
|
6539
|
-
return /* @__PURE__ */
|
|
6615
|
+
return /* @__PURE__ */ ti(this);
|
|
6540
6616
|
},
|
|
6541
6617
|
"~run"(e, t) {
|
|
6542
|
-
return typeof e.value == "string" ? e.typed = !0 :
|
|
6618
|
+
return typeof e.value == "string" ? e.typed = !0 : X(this, "type", e, t), e;
|
|
6543
6619
|
}
|
|
6544
6620
|
};
|
|
6545
6621
|
}
|
|
6546
6622
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6547
|
-
function
|
|
6623
|
+
function fi(e) {
|
|
6548
6624
|
let t;
|
|
6549
6625
|
if (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);
|
|
6550
6626
|
else t = n.issues;
|
|
6551
6627
|
return t;
|
|
6552
6628
|
}
|
|
6553
6629
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6554
|
-
function
|
|
6630
|
+
function pi(e, t) {
|
|
6555
6631
|
return {
|
|
6556
6632
|
kind: "schema",
|
|
6557
6633
|
type: "union",
|
|
6558
|
-
reference:
|
|
6559
|
-
expects: /* @__PURE__ */
|
|
6634
|
+
reference: pi,
|
|
6635
|
+
expects: /* @__PURE__ */ ri(e.map((e) => e.expects), "|"),
|
|
6560
6636
|
async: !1,
|
|
6561
6637
|
options: e,
|
|
6562
6638
|
message: t,
|
|
6563
6639
|
get "~standard"() {
|
|
6564
|
-
return /* @__PURE__ */
|
|
6640
|
+
return /* @__PURE__ */ ti(this);
|
|
6565
6641
|
},
|
|
6566
6642
|
"~run"(e, t) {
|
|
6567
6643
|
let n, r, i;
|
|
@@ -6577,24 +6653,24 @@ function oi(e, t) {
|
|
|
6577
6653
|
if (n) return n;
|
|
6578
6654
|
if (r) {
|
|
6579
6655
|
if (r.length === 1) return r[0];
|
|
6580
|
-
|
|
6656
|
+
X(this, "type", e, t, { issues: /* @__PURE__ */ fi(r) }), e.typed = !0;
|
|
6581
6657
|
} else if (i?.length === 1) return i[0];
|
|
6582
|
-
else
|
|
6658
|
+
else X(this, "type", e, t, { issues: /* @__PURE__ */ fi(i) });
|
|
6583
6659
|
return e;
|
|
6584
6660
|
}
|
|
6585
6661
|
};
|
|
6586
6662
|
}
|
|
6587
|
-
var
|
|
6663
|
+
var mi = (e) => /* @__PURE__ */ pi(e.map((e) => /* @__PURE__ */ ci(e))), hi = /* @__PURE__ */ Q({
|
|
6588
6664
|
en: /* @__PURE__ */ $(),
|
|
6589
6665
|
es: /* @__PURE__ */ $()
|
|
6590
|
-
}),
|
|
6591
|
-
en: /* @__PURE__ */
|
|
6592
|
-
es: /* @__PURE__ */
|
|
6593
|
-
}),
|
|
6594
|
-
en: /* @__PURE__ */
|
|
6595
|
-
es: /* @__PURE__ */
|
|
6666
|
+
}), gi = /* @__PURE__ */ Q({
|
|
6667
|
+
en: /* @__PURE__ */ ui(/* @__PURE__ */ oi(/* @__PURE__ */ $())),
|
|
6668
|
+
es: /* @__PURE__ */ ui(/* @__PURE__ */ oi(/* @__PURE__ */ $()))
|
|
6669
|
+
}), _i = /* @__PURE__ */ Q({
|
|
6670
|
+
en: /* @__PURE__ */ ui(/* @__PURE__ */ $()),
|
|
6671
|
+
es: /* @__PURE__ */ ui(/* @__PURE__ */ $())
|
|
6596
6672
|
});
|
|
6597
|
-
|
|
6673
|
+
mi([
|
|
6598
6674
|
"app",
|
|
6599
6675
|
"connection",
|
|
6600
6676
|
"connector",
|
|
@@ -6619,12 +6695,12 @@ si([
|
|
|
6619
6695
|
"presenterPresentation",
|
|
6620
6696
|
"tool"
|
|
6621
6697
|
]);
|
|
6622
|
-
var
|
|
6698
|
+
var vi = mi([
|
|
6623
6699
|
"amber",
|
|
6624
6700
|
"green",
|
|
6625
6701
|
"red",
|
|
6626
6702
|
"other"
|
|
6627
|
-
]),
|
|
6703
|
+
]), yi = mi([
|
|
6628
6704
|
"alpha",
|
|
6629
6705
|
"beta",
|
|
6630
6706
|
"generalAvailability",
|
|
@@ -6634,31 +6710,31 @@ var di = si([
|
|
|
6634
6710
|
"releaseCandidate",
|
|
6635
6711
|
"unavailable",
|
|
6636
6712
|
"underReview"
|
|
6637
|
-
]),
|
|
6638
|
-
color:
|
|
6713
|
+
]), bi = /* @__PURE__ */ Q({
|
|
6714
|
+
color: vi,
|
|
6639
6715
|
label: /* @__PURE__ */ $()
|
|
6640
|
-
}),
|
|
6716
|
+
}), xi = /* @__PURE__ */ Q({
|
|
6641
6717
|
id: /* @__PURE__ */ $(),
|
|
6642
|
-
label:
|
|
6643
|
-
description:
|
|
6718
|
+
label: _i,
|
|
6719
|
+
description: gi,
|
|
6644
6720
|
icon: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
|
|
6645
6721
|
iconDark: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
|
|
6646
6722
|
iconNeutral: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
|
|
6647
|
-
order: /* @__PURE__ */
|
|
6723
|
+
order: /* @__PURE__ */ li(),
|
|
6648
6724
|
path: /* @__PURE__ */ $()
|
|
6649
|
-
}),
|
|
6725
|
+
}), Si = {
|
|
6650
6726
|
id: /* @__PURE__ */ $(),
|
|
6651
|
-
label:
|
|
6652
|
-
description:
|
|
6653
|
-
firstCreatedAt: /* @__PURE__ */ Z(/* @__PURE__ */
|
|
6727
|
+
label: _i,
|
|
6728
|
+
description: gi,
|
|
6729
|
+
firstCreatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ li()),
|
|
6654
6730
|
icon: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
|
|
6655
6731
|
iconDark: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
|
|
6656
6732
|
iconNeutral: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
|
|
6657
|
-
lastUpdatedAt: /* @__PURE__ */ Z(/* @__PURE__ */
|
|
6658
|
-
status: /* @__PURE__ */ Z(
|
|
6659
|
-
statusId: /* @__PURE__ */ Z(
|
|
6733
|
+
lastUpdatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ li()),
|
|
6734
|
+
status: /* @__PURE__ */ Z(bi),
|
|
6735
|
+
statusId: /* @__PURE__ */ Z(yi)
|
|
6660
6736
|
};
|
|
6661
|
-
({ ...
|
|
6737
|
+
({ ...Si }), mi([
|
|
6662
6738
|
"app",
|
|
6663
6739
|
"engine",
|
|
6664
6740
|
"connector",
|
|
@@ -6669,14 +6745,14 @@ var di = si([
|
|
|
6669
6745
|
]);
|
|
6670
6746
|
//#endregion
|
|
6671
6747
|
//#region node_modules/@dpuse/dpuse-shared/dist/moduleConfig.schema-CUHmgYLu.js
|
|
6672
|
-
var
|
|
6673
|
-
...
|
|
6748
|
+
var Ci = {
|
|
6749
|
+
...Si,
|
|
6674
6750
|
version: /* @__PURE__ */ $()
|
|
6675
6751
|
};
|
|
6676
|
-
({ ...
|
|
6752
|
+
({ ...Ci });
|
|
6677
6753
|
//#endregion
|
|
6678
6754
|
//#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModuleConnector.es.js
|
|
6679
|
-
var
|
|
6755
|
+
var wi = mi([
|
|
6680
6756
|
"abortOperation",
|
|
6681
6757
|
"auditObjectContent",
|
|
6682
6758
|
"createObject",
|
|
@@ -6691,35 +6767,35 @@ var _i = si([
|
|
|
6691
6767
|
"retrieveChunks",
|
|
6692
6768
|
"retrieveRecords",
|
|
6693
6769
|
"upsertRecords"
|
|
6694
|
-
]),
|
|
6770
|
+
]), Ti = mi([
|
|
6695
6771
|
"application",
|
|
6696
6772
|
"curatedDataset",
|
|
6697
6773
|
"database",
|
|
6698
6774
|
"fileStore"
|
|
6699
|
-
]),
|
|
6700
|
-
authMethodId:
|
|
6775
|
+
]), Ei = /* @__PURE__ */ Q({ label: hi }), Di = /* @__PURE__ */ Q({
|
|
6776
|
+
authMethodId: mi([
|
|
6701
6777
|
"apiKey",
|
|
6702
6778
|
"disabled",
|
|
6703
6779
|
"oAuth2",
|
|
6704
6780
|
"none"
|
|
6705
6781
|
]),
|
|
6706
|
-
activeConnectionCount: /* @__PURE__ */
|
|
6707
|
-
canDescribe: /* @__PURE__ */
|
|
6708
|
-
id: /* @__PURE__ */
|
|
6709
|
-
label: /* @__PURE__ */
|
|
6710
|
-
maxConnectionCount: /* @__PURE__ */ Z(/* @__PURE__ */
|
|
6711
|
-
params: /* @__PURE__ */
|
|
6712
|
-
}),
|
|
6713
|
-
typeId: /* @__PURE__ */
|
|
6714
|
-
...
|
|
6715
|
-
actionNames: /* @__PURE__ */
|
|
6716
|
-
category: /* @__PURE__ */ Z(
|
|
6717
|
-
categoryId:
|
|
6718
|
-
implementations: /* @__PURE__ */
|
|
6782
|
+
activeConnectionCount: /* @__PURE__ */ ui(/* @__PURE__ */ li()),
|
|
6783
|
+
canDescribe: /* @__PURE__ */ ui(/* @__PURE__ */ si()),
|
|
6784
|
+
id: /* @__PURE__ */ ui(/* @__PURE__ */ $()),
|
|
6785
|
+
label: /* @__PURE__ */ ui(hi),
|
|
6786
|
+
maxConnectionCount: /* @__PURE__ */ Z(/* @__PURE__ */ li()),
|
|
6787
|
+
params: /* @__PURE__ */ ui(/* @__PURE__ */ oi(/* @__PURE__ */ di(/* @__PURE__ */ $(), /* @__PURE__ */ $())))
|
|
6788
|
+
}), Oi = /* @__PURE__ */ Q({
|
|
6789
|
+
typeId: /* @__PURE__ */ ci("connector"),
|
|
6790
|
+
...Ci,
|
|
6791
|
+
actionNames: /* @__PURE__ */ oi(wi),
|
|
6792
|
+
category: /* @__PURE__ */ Z(Ei),
|
|
6793
|
+
categoryId: Ti,
|
|
6794
|
+
implementations: /* @__PURE__ */ di(/* @__PURE__ */ $(), Di),
|
|
6719
6795
|
vendorAccountURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
|
|
6720
6796
|
vendorDocumentationURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
|
|
6721
6797
|
vendorHomeURL: /* @__PURE__ */ Z(/* @__PURE__ */ $())
|
|
6722
|
-
}),
|
|
6798
|
+
}), ki = {
|
|
6723
6799
|
abortOperation: "Abort Operation",
|
|
6724
6800
|
auditObjectContent: "Audit Object Content",
|
|
6725
6801
|
createObject: "Create Object",
|
|
@@ -6734,12 +6810,12 @@ var _i = si([
|
|
|
6734
6810
|
retrieveChunks: "Retrieve Chunks",
|
|
6735
6811
|
retrieveRecords: "Retrieve Records",
|
|
6736
6812
|
upsertRecords: "Upsert Records"
|
|
6737
|
-
},
|
|
6813
|
+
}, Ai = /* @__PURE__ */ new Set([
|
|
6738
6814
|
"createObject",
|
|
6739
6815
|
"dropObject",
|
|
6740
6816
|
"removeRecords",
|
|
6741
6817
|
"upsertRecords"
|
|
6742
|
-
]),
|
|
6818
|
+
]), ji = /* @__PURE__ */ new Set([
|
|
6743
6819
|
"auditObjectContent",
|
|
6744
6820
|
"findObject",
|
|
6745
6821
|
"getReadableStream",
|
|
@@ -6749,61 +6825,61 @@ var _i = si([
|
|
|
6749
6825
|
"retrieveChunks",
|
|
6750
6826
|
"retrieveRecords"
|
|
6751
6827
|
]);
|
|
6752
|
-
function
|
|
6828
|
+
function Mi(e) {
|
|
6753
6829
|
let t = !1, n = !1;
|
|
6754
|
-
for (let r of e)
|
|
6830
|
+
for (let r of e) ji.has(r) && (t = !0), Ai.has(r) && (n = !0);
|
|
6755
6831
|
return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
|
|
6756
6832
|
}
|
|
6757
|
-
function
|
|
6833
|
+
function Ni(e) {
|
|
6758
6834
|
let t = new Set(e), n = "|Action|Supported|\n";
|
|
6759
6835
|
n += "|:----|:-------:|\n";
|
|
6760
|
-
for (let e of Object.keys(
|
|
6836
|
+
for (let e of Object.keys(ki)) n += `| ${ki[e]} | ${t.has(e) ? "✓" : ""} |\n`;
|
|
6761
6837
|
return n;
|
|
6762
6838
|
}
|
|
6763
6839
|
//#endregion
|
|
6764
6840
|
//#region src/actions/documentActions.ts
|
|
6765
|
-
var
|
|
6841
|
+
var Pi = "<!-- CONNECTOR_ACTIONS_START -->", Fi = "<!-- CONNECTOR_ACTIONS_END -->", Ii = "Connectors conform to a unified interface contract by implementing a specific subset of standard actions. These standardised actions allow the DPUse application to interact with any underlying data source in the same way, enabling Connectors to be built independently and loaded dynamically at runtime.", Li = {
|
|
6766
6842
|
source: "This connector is a Source connector that supports only read actions. Connectors can also function as a Destination (write-only) or Bidirectional (read/write), depending on the actions they support.",
|
|
6767
6843
|
destination: "This connector is a Destination connector that supports only write actions. Connectors can also function as a Source (read-only) or Bidirectional (read/write), depending on the actions they support.",
|
|
6768
6844
|
bidirectional: "This connector is a Bidirectional connector that supports both read and write actions. Connectors can also function as a Source (read-only) or Destination (write-only), depending on the actions they support.",
|
|
6769
6845
|
unknown: "This connector does not yet implement any read or write actions, so its type cannot be determined. Connectors function as a Source (read-only), a Destination (write-only), or Bidirectional (read/write), depending on the actions they support."
|
|
6770
|
-
},
|
|
6771
|
-
async function
|
|
6846
|
+
}, Ri = "The table below lists all connector actions and highlights those supported by this connector.";
|
|
6847
|
+
async function zi() {
|
|
6772
6848
|
try {
|
|
6773
6849
|
K("Document Actions"), J("1️⃣ Insert actions description and table into 'README.md'");
|
|
6774
|
-
let e = (await W("config.json")).actionNames ?? [], t =
|
|
6775
|
-
await zn("README.md", Wn(await G("./README.md"), r,
|
|
6850
|
+
let e = (await W("config.json")).actionNames ?? [], t = Mi(e), n = Ni(e), r = `${Ii}\n\n${Li[t]} ${Ri}\n\n${n}`;
|
|
6851
|
+
await zn("README.md", Wn(await G("./README.md"), r, Pi, Fi)), q("Actions documented");
|
|
6776
6852
|
} catch (e) {
|
|
6777
6853
|
console.error("❌ Error documenting actions", e), process.exit(1);
|
|
6778
6854
|
}
|
|
6779
6855
|
}
|
|
6780
6856
|
//#endregion
|
|
6781
6857
|
//#region src/actions/documentUsage.ts
|
|
6782
|
-
var
|
|
6783
|
-
async function
|
|
6858
|
+
var Bi = "<!-- USAGE_START -->", Vi = "<!-- USAGE_END -->";
|
|
6859
|
+
async function Hi() {
|
|
6784
6860
|
try {
|
|
6785
6861
|
K("Document Usage"), J("1️⃣ Insert usage content into 'README.md'");
|
|
6786
|
-
let e = await W("package.json"), t =
|
|
6787
|
-
await zn("README.md", Wn(await G("./README.md"), n,
|
|
6862
|
+
let e = await W("package.json"), t = Ui(e), n = Ki(t, Wi(t), Gi(e.engines?.node), Gi(e.engines?.npm));
|
|
6863
|
+
await zn("README.md", Wn(await G("./README.md"), n, Bi, Vi)), q("Usage documented");
|
|
6788
6864
|
} catch (e) {
|
|
6789
6865
|
console.error("❌ Error documenting usage", e), process.exit(1);
|
|
6790
6866
|
}
|
|
6791
6867
|
}
|
|
6792
|
-
function
|
|
6868
|
+
function Ui(e) {
|
|
6793
6869
|
let t = e.repository, n = typeof t == "string" ? t : t?.url;
|
|
6794
6870
|
if (n == null || n === "") throw Error("package.json 'repository' field is required to document usage.");
|
|
6795
6871
|
return n.replace(/^git\+/, "");
|
|
6796
6872
|
}
|
|
6797
|
-
function
|
|
6873
|
+
function Wi(e) {
|
|
6798
6874
|
return (e.split("/").at(-1) ?? "").replace(/\.git$/, "");
|
|
6799
6875
|
}
|
|
6800
|
-
function
|
|
6876
|
+
function Gi(e) {
|
|
6801
6877
|
if (e == null) throw Error("package.json 'engines' field is required to document usage.");
|
|
6802
6878
|
let t = /\d+(?:\.\d+)*/.exec(e);
|
|
6803
6879
|
if (t == null) throw Error(`Unable to parse engine version from '${e}'.`);
|
|
6804
6880
|
return t[0];
|
|
6805
6881
|
}
|
|
6806
|
-
function
|
|
6882
|
+
function Ki(e, t, n, r) {
|
|
6807
6883
|
return `This connector is automatically uploaded to the DPUse Engine cloud once released and becomes instantly available to all new browser app instances, with existing instances notified of the update.
|
|
6808
6884
|
|
|
6809
6885
|
You may view or clone this repository for your own purposes, such as building a new, similar connector, though there is currently no process to accept third-party connectors into DPUse at this stage. Cloned or forked code is unsupported and isn't guaranteed to remain compatible with the DPUse Engine as it evolves.
|
|
@@ -6818,7 +6894,7 @@ _Requires [Node.js](https://nodejs.org/) ${n} or later and [npm](https://www.npm
|
|
|
6818
6894
|
}
|
|
6819
6895
|
//#endregion
|
|
6820
6896
|
//#region src/actions/formatCode.ts
|
|
6821
|
-
async function
|
|
6897
|
+
async function qi() {
|
|
6822
6898
|
try {
|
|
6823
6899
|
K("Format Code"), await Fn("1️⃣ Format", "prettier", [
|
|
6824
6900
|
"--write",
|
|
@@ -6833,7 +6909,7 @@ async function Bi() {
|
|
|
6833
6909
|
}
|
|
6834
6910
|
//#endregion
|
|
6835
6911
|
//#region src/actions/lintCode.ts
|
|
6836
|
-
async function
|
|
6912
|
+
async function Ji() {
|
|
6837
6913
|
try {
|
|
6838
6914
|
K("Lint Code"), await Fn("1️⃣ Lint", "eslint", ["."]), q("Code linted");
|
|
6839
6915
|
} catch (e) {
|
|
@@ -6842,7 +6918,7 @@ async function Vi() {
|
|
|
6842
6918
|
}
|
|
6843
6919
|
//#endregion
|
|
6844
6920
|
//#region src/utilities/cloudflare.ts
|
|
6845
|
-
async function
|
|
6921
|
+
async function Yi() {
|
|
6846
6922
|
let e = await W("config.json"), t = {
|
|
6847
6923
|
body: JSON.stringify(e),
|
|
6848
6924
|
headers: { "Content-Type": "application/json" },
|
|
@@ -6850,7 +6926,7 @@ async function Hi() {
|
|
|
6850
6926
|
}, n = await fetch(`https://api.dpuse.app/configs/${e.id}`, t);
|
|
6851
6927
|
if (!n.ok) throw Error(await n.text());
|
|
6852
6928
|
}
|
|
6853
|
-
async function
|
|
6929
|
+
async function Xi(e, t) {
|
|
6854
6930
|
async function n(e, t, r) {
|
|
6855
6931
|
for (let i of r) {
|
|
6856
6932
|
let r = `${e}/${i}`, a = `${t}/${i}`;
|
|
@@ -6868,7 +6944,7 @@ async function Ui(e, t) {
|
|
|
6868
6944
|
let r = await Nn(`${e}/${t}/`);
|
|
6869
6945
|
await n(`${e}/${t}`, t, r);
|
|
6870
6946
|
}
|
|
6871
|
-
async function
|
|
6947
|
+
async function Zi(e) {
|
|
6872
6948
|
let t = e.id, n = {
|
|
6873
6949
|
body: JSON.stringify(e),
|
|
6874
6950
|
headers: { "Content-Type": "application/json" },
|
|
@@ -6876,7 +6952,7 @@ async function Wi(e) {
|
|
|
6876
6952
|
}, r = await fetch(`https://api.dpuse.app/configs/${t}`, n);
|
|
6877
6953
|
if (!r.ok) throw Error(await r.text());
|
|
6878
6954
|
}
|
|
6879
|
-
async function
|
|
6955
|
+
async function Qi(e, t) {
|
|
6880
6956
|
let n = `v${e.version ?? "unknown"}`;
|
|
6881
6957
|
async function r(e, r = "") {
|
|
6882
6958
|
let i = await Nn(e, { withFileTypes: !0 });
|
|
@@ -6900,24 +6976,24 @@ async function Gi(e, t) {
|
|
|
6900
6976
|
}
|
|
6901
6977
|
//#endregion
|
|
6902
6978
|
//#region node_modules/valibot/dist/index.mjs
|
|
6903
|
-
var
|
|
6979
|
+
var $i, ea = {
|
|
6904
6980
|
lang: void 0,
|
|
6905
6981
|
message: void 0,
|
|
6906
6982
|
abortEarly: void 0,
|
|
6907
6983
|
abortPipeEarly: void 0
|
|
6908
6984
|
};
|
|
6909
6985
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6910
|
-
function
|
|
6911
|
-
return !e &&
|
|
6912
|
-
lang: e?.lang ??
|
|
6986
|
+
function ta(e) {
|
|
6987
|
+
return !e && !$i ? ea : {
|
|
6988
|
+
lang: e?.lang ?? $i?.lang,
|
|
6913
6989
|
message: e?.message,
|
|
6914
|
-
abortEarly: e?.abortEarly ??
|
|
6915
|
-
abortPipeEarly: e?.abortPipeEarly ??
|
|
6990
|
+
abortEarly: e?.abortEarly ?? $i?.abortEarly,
|
|
6991
|
+
abortPipeEarly: e?.abortPipeEarly ?? $i?.abortPipeEarly
|
|
6916
6992
|
};
|
|
6917
6993
|
}
|
|
6918
6994
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6919
|
-
function
|
|
6920
|
-
let r = e["~run"]({ value: t }, /* @__PURE__ */
|
|
6995
|
+
function na(e, t, n) {
|
|
6996
|
+
let r = e["~run"]({ value: t }, /* @__PURE__ */ ta(n));
|
|
6921
6997
|
return {
|
|
6922
6998
|
typed: r.typed,
|
|
6923
6999
|
success: !r.issues,
|
|
@@ -6927,69 +7003,69 @@ function Yi(e, t, n) {
|
|
|
6927
7003
|
}
|
|
6928
7004
|
//#endregion
|
|
6929
7005
|
//#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModuleContext.es.js
|
|
6930
|
-
var
|
|
6931
|
-
typeId: /* @__PURE__ */
|
|
6932
|
-
...
|
|
6933
|
-
modelRefs: /* @__PURE__ */
|
|
6934
|
-
order: /* @__PURE__ */
|
|
6935
|
-
}),
|
|
6936
|
-
typeId: /* @__PURE__ */
|
|
6937
|
-
...
|
|
6938
|
-
actionNames: /* @__PURE__ */
|
|
6939
|
-
models: /* @__PURE__ */
|
|
6940
|
-
}),
|
|
7006
|
+
var ra = /* @__PURE__ */ Q({
|
|
7007
|
+
typeId: /* @__PURE__ */ ci("contextArea"),
|
|
7008
|
+
...Si,
|
|
7009
|
+
modelRefs: /* @__PURE__ */ oi(xi),
|
|
7010
|
+
order: /* @__PURE__ */ li()
|
|
7011
|
+
}), ia = mi(["listContextFocuses"]), aa = /* @__PURE__ */ Q({
|
|
7012
|
+
typeId: /* @__PURE__ */ ci("context"),
|
|
7013
|
+
...Ci,
|
|
7014
|
+
actionNames: /* @__PURE__ */ oi(ia),
|
|
7015
|
+
models: /* @__PURE__ */ oi(ra)
|
|
7016
|
+
}), oa = mi([
|
|
6941
7017
|
"list",
|
|
6942
7018
|
"render",
|
|
6943
7019
|
"setColorMode"
|
|
6944
|
-
]),
|
|
6945
|
-
typeId: /* @__PURE__ */
|
|
6946
|
-
...
|
|
6947
|
-
actionNames: /* @__PURE__ */
|
|
6948
|
-
presentations: /* @__PURE__ */
|
|
7020
|
+
]), sa = /* @__PURE__ */ Q({
|
|
7021
|
+
typeId: /* @__PURE__ */ ci("presenter"),
|
|
7022
|
+
...Ci,
|
|
7023
|
+
actionNames: /* @__PURE__ */ oi(oa),
|
|
7024
|
+
presentations: /* @__PURE__ */ oi(xi)
|
|
6949
7025
|
});
|
|
6950
7026
|
//#endregion
|
|
6951
7027
|
//#region src/actions/manageProject.ts
|
|
6952
|
-
async function
|
|
7028
|
+
async function ca() {
|
|
6953
7029
|
try {
|
|
6954
7030
|
K("Build Project"), await Fn("1️⃣ Bundle project", "vite", ["build"]), q("Project built");
|
|
6955
7031
|
} catch (e) {
|
|
6956
7032
|
console.error("❌ Error building project", e), process.exit(1);
|
|
6957
7033
|
}
|
|
6958
7034
|
}
|
|
6959
|
-
async function
|
|
7035
|
+
async function la() {
|
|
6960
7036
|
try {
|
|
6961
7037
|
K("Publish Project");
|
|
6962
7038
|
let e = await W("package.json"), t = await W("config.json"), n = Bn(t.id);
|
|
6963
|
-
if (n.typeId === "app") J("1️⃣ Register module"), await
|
|
6964
|
-
else if (n.typeId === "engine") J("1️⃣ Register module"), await
|
|
7039
|
+
if (n.typeId === "app") J("1️⃣ Register module"), await Yi();
|
|
7040
|
+
else if (n.typeId === "engine") J("1️⃣ Register module"), await Qi(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await Zi(t);
|
|
6965
7041
|
else if (n.uploadGroupName === void 0) J("1️⃣ Publishing NOT required");
|
|
6966
7042
|
else {
|
|
6967
7043
|
J("1️⃣ Register module");
|
|
6968
7044
|
let r = t.id.split("-").slice(2).join("-");
|
|
6969
|
-
await
|
|
7045
|
+
await Qi(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Zi(t);
|
|
6970
7046
|
}
|
|
6971
7047
|
q(`Project version '${e.version ?? "unknown"}' published.`);
|
|
6972
7048
|
} catch (e) {
|
|
6973
7049
|
console.error("❌ Error publishing project", e), process.exit(1);
|
|
6974
7050
|
}
|
|
6975
7051
|
}
|
|
6976
|
-
async function
|
|
7052
|
+
async function ua() {
|
|
6977
7053
|
try {
|
|
6978
7054
|
K("Release Project");
|
|
6979
7055
|
let e = await W("package.json"), t = await W("config.json");
|
|
6980
|
-
await
|
|
7056
|
+
await va("1️⃣ ", e);
|
|
6981
7057
|
let n = Bn(t.id);
|
|
6982
7058
|
switch (n.typeId) {
|
|
6983
7059
|
case "connector":
|
|
6984
|
-
t = await
|
|
7060
|
+
t = await fa("2️⃣ ", e);
|
|
6985
7061
|
break;
|
|
6986
7062
|
case "context":
|
|
6987
|
-
t = await
|
|
7063
|
+
t = await pa("2️⃣ ", e);
|
|
6988
7064
|
break;
|
|
6989
7065
|
case "presenter":
|
|
6990
|
-
t = await
|
|
7066
|
+
t = await ma("2️⃣ ", e);
|
|
6991
7067
|
break;
|
|
6992
|
-
default: t = await
|
|
7068
|
+
default: t = await da("2️⃣ ", e);
|
|
6993
7069
|
}
|
|
6994
7070
|
if (await Fn("3️⃣ Bundle project", "vite", ["build"]), await Pn("4️⃣ Stage changes", "git", ["add", "."]), await Pn("5️⃣ Commit changes", "git", [
|
|
6995
7071
|
"commit",
|
|
@@ -6999,13 +7075,13 @@ async function ra() {
|
|
|
6999
7075
|
"push",
|
|
7000
7076
|
"origin",
|
|
7001
7077
|
"main:main"
|
|
7002
|
-
]), n.typeId === "app") J("7️⃣ Register module"), await
|
|
7003
|
-
else if (n.typeId === "engine") J("7️⃣ Register module"), await
|
|
7078
|
+
]), n.typeId === "app") J("7️⃣ Register module"), await Yi();
|
|
7079
|
+
else if (n.typeId === "engine") J("7️⃣ Register module"), await Qi(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await Zi(t);
|
|
7004
7080
|
else if (n.uploadGroupName === void 0) J("7️⃣ Registration NOT required");
|
|
7005
7081
|
else {
|
|
7006
7082
|
J("7️⃣ Register module");
|
|
7007
7083
|
let r = t.id.split("-").slice(2).join("-");
|
|
7008
|
-
await
|
|
7084
|
+
await Qi(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Zi(t);
|
|
7009
7085
|
}
|
|
7010
7086
|
if (n.publishedTo === "npm") {
|
|
7011
7087
|
let e = ".npmrc";
|
|
@@ -7024,48 +7100,48 @@ async function ra() {
|
|
|
7024
7100
|
console.error("❌ Error releasing project", e), process.exit(1);
|
|
7025
7101
|
}
|
|
7026
7102
|
}
|
|
7027
|
-
async function
|
|
7103
|
+
async function da(e, t) {
|
|
7028
7104
|
J(`${e} Build project configuration`);
|
|
7029
7105
|
let n = await W("config.json");
|
|
7030
7106
|
return t.name != null && (n.id = t.name.replace("@dpuse/", "")), t.version != null && (n.version = t.version), await Rn("config.json", n), n;
|
|
7031
7107
|
}
|
|
7032
|
-
async function
|
|
7108
|
+
async function fa(e, t) {
|
|
7033
7109
|
J(`${e} Build connector project configuration`);
|
|
7034
|
-
let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */
|
|
7110
|
+
let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ na(Oi, n);
|
|
7035
7111
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
|
|
7036
7112
|
let a = Hn(r);
|
|
7037
|
-
return await
|
|
7113
|
+
return await ha(t, n, a, Mi(a));
|
|
7038
7114
|
}
|
|
7039
|
-
async function
|
|
7115
|
+
async function pa(e, t) {
|
|
7040
7116
|
J(`${e} Build context project configuration`);
|
|
7041
|
-
let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */
|
|
7117
|
+
let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ na(aa, n);
|
|
7042
7118
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
|
|
7043
|
-
return await
|
|
7119
|
+
return await ha(t, n, Hn(r));
|
|
7044
7120
|
}
|
|
7045
|
-
async function
|
|
7121
|
+
async function ma(e, t) {
|
|
7046
7122
|
J(`${e} Build presenter project configuration`);
|
|
7047
|
-
let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */
|
|
7123
|
+
let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ na(sa, n);
|
|
7048
7124
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
|
|
7049
|
-
return await
|
|
7125
|
+
return await ha(t, n, Hn(r));
|
|
7050
7126
|
}
|
|
7051
|
-
async function
|
|
7127
|
+
async function ha(e, t, n, r) {
|
|
7052
7128
|
return n.length > 0 ? (console.info(`ℹ️ Implements ${String(n.length)} operations:`), console.table(n)) : console.warn("⚠️ Implements no operations"), r === "unknown" ? console.warn("⚠️ No usage identified") : r && console.info(`ℹ️ Supports '${r}' usage.`), e.name != null && (t.id = e.name.replace("@dpuse/", "").replace("@dpuse/", "")), e.version != null && (t.version = e.version), t.actionNames = n, await Rn("config.json", t), t;
|
|
7053
7129
|
}
|
|
7054
|
-
async function
|
|
7130
|
+
async function ga() {
|
|
7055
7131
|
try {
|
|
7056
7132
|
K("Synchronise Project with GitHub");
|
|
7057
7133
|
let e = await W("package.json"), t = await W("config.json");
|
|
7058
|
-
switch (await
|
|
7134
|
+
switch (await va("1️⃣ ", e), Bn(t.id).typeId) {
|
|
7059
7135
|
case "connector":
|
|
7060
|
-
await
|
|
7136
|
+
await fa("2️⃣ ", e);
|
|
7061
7137
|
break;
|
|
7062
7138
|
case "context":
|
|
7063
|
-
await
|
|
7139
|
+
await pa("2️⃣ ", e);
|
|
7064
7140
|
break;
|
|
7065
7141
|
case "presenter":
|
|
7066
|
-
await
|
|
7142
|
+
await ma("2️⃣ ", e);
|
|
7067
7143
|
break;
|
|
7068
|
-
default: await
|
|
7144
|
+
default: await da("2️⃣ ", e);
|
|
7069
7145
|
}
|
|
7070
7146
|
await Pn("3️⃣ Stage changes", "git", ["add", "."]), await Pn("4️⃣ Commit changes", "git", [
|
|
7071
7147
|
"commit",
|
|
@@ -7080,14 +7156,14 @@ async function la() {
|
|
|
7080
7156
|
console.error("❌ Error synchronising project with GitHub", e), process.exit(1);
|
|
7081
7157
|
}
|
|
7082
7158
|
}
|
|
7083
|
-
function
|
|
7159
|
+
function _a() {
|
|
7084
7160
|
try {
|
|
7085
7161
|
K("Test Project"), console.error("\n❌ No tests implemented.\n");
|
|
7086
7162
|
} catch (e) {
|
|
7087
7163
|
console.error("❌ Error testing project", e), process.exit(1);
|
|
7088
7164
|
}
|
|
7089
7165
|
}
|
|
7090
|
-
async function
|
|
7166
|
+
async function va(e, t, n = "./") {
|
|
7091
7167
|
if (J(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`);
|
|
7092
7168
|
else {
|
|
7093
7169
|
let e = t.version, n = t.version.split(".");
|
|
@@ -7096,6 +7172,6 @@ async function da(e, t, n = "./") {
|
|
|
7096
7172
|
await Rn(`${n}package.json`, t);
|
|
7097
7173
|
}
|
|
7098
7174
|
//#endregion
|
|
7099
|
-
export { Gn as auditDependencies,
|
|
7175
|
+
export { Gn as auditDependencies, ca as buildProject, Kn as checkConfigFiles, Qn as checkDependencies, zi as documentActions, ir as documentBundleSizes, Er as documentDependencies, zr as documentGovernance, Hi as documentUsage, qi as formatCode, Ji as lintCode, la as publishProject, ua as releaseProject, ga as syncProjectWithGitHub, _a as testProject, Xi as uploadDirectoryToR2 };
|
|
7100
7176
|
|
|
7101
7177
|
//# sourceMappingURL=dpuse-development.es.js.map
|