youiyoux 0.1.16 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{chunk-FO3WR47A.js → chunk-2HRV3FFX.js} +2 -2
- package/dist/chunks/{chunk-WMIJNZIL.js → chunk-BMBXZG7W.js} +15 -15
- package/dist/chunks/{chunk-HII2I2PI.js → chunk-CKH54UT6.js} +3 -3
- package/dist/chunks/{chunk-S7UN5KQK.js → chunk-CLYYS6VI.js} +2 -2
- package/dist/chunks/{chunk-MIUG2Z43.js → chunk-COJJZPVD.js} +3 -3
- package/dist/chunks/{chunk-A2IZOTJG.js → chunk-G5BKBWEQ.js} +1 -1
- package/dist/chunks/{chunk-ALQVHSF2.js → chunk-I6HDWG3U.js} +1 -1
- package/dist/chunks/{chunk-XSIH7RR4.js → chunk-Q77GHEZ5.js} +2 -2
- package/dist/chunks/{chunk-ED35SP3F.js → chunk-TW24A5TT.js} +6 -6
- package/dist/chunks/{chunk-3SBSYNAG.js → chunk-W3ZCAAXH.js} +4 -4
- package/dist/chunks/{chunk-HIXGUALJ.js → chunk-XHJQOWD4.js} +1 -1
- package/dist/chunks/{figma-auth-ODUC3TSR.js → figma-auth-O7YTQOAD.js} +3 -3
- package/dist/chunks/{ingest-R5CX6R7G.js → ingest-XSUSELVB.js} +7 -7
- package/dist/chunks/{src-FBTLHBVB.js → src-3F2YGGDW.js} +3 -3
- package/dist/chunks/{src-7SHBAJEO.js → src-COKDT2AL.js} +2 -2
- package/dist/chunks/{src-WMGLZKYK.js → src-CWTSWOK4.js} +2 -2
- package/dist/chunks/{src-CCGTRT5J.js → src-HKWBBHA4.js} +4 -4
- package/dist/chunks/{src-LUPO3O76.js → src-O535ZT77.js} +2 -2
- package/dist/chunks/{src-6JO73FOS.js → src-RMQQPWAD.js} +3 -3
- package/dist/chunks/{src-LAUPNDCB.js → src-WSHA347Z.js} +7 -7
- package/dist/chunks/{src-4BOFDAZD.js → src-X34V5MHP.js} +1 -1
- package/dist/hub-previews.js +6 -6
- package/dist/hub-server.js +3 -3
- package/dist/hub-snapshot.js +1 -1
- package/dist/youi.js +8 -8
- package/dist/youiyoux.js +8 -8
- package/package.json +4 -4
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
loadPackage,
|
|
5
5
|
readTryIndex,
|
|
6
6
|
send
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-W3ZCAAXH.js";
|
|
8
8
|
import {
|
|
9
9
|
writeFileAtomic
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CLYYS6VI.js";
|
|
11
11
|
|
|
12
12
|
// ../../apps/web/scripts/discover-thumbs.ts
|
|
13
13
|
import { existsSync, readFileSync } from "node:fs";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
startRuleEditor,
|
|
10
10
|
style,
|
|
11
11
|
truncate
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-TW24A5TT.js";
|
|
13
13
|
import {
|
|
14
14
|
BASELINE_FILE,
|
|
15
15
|
DEFAULT_EXCLUDE,
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
vendoredPath,
|
|
65
65
|
whereUsed,
|
|
66
66
|
withFile
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-CKH54UT6.js";
|
|
68
68
|
import {
|
|
69
69
|
escapingLinks,
|
|
70
70
|
within
|
|
@@ -78,7 +78,7 @@ import {
|
|
|
78
78
|
libraryOfPackage,
|
|
79
79
|
packageOf,
|
|
80
80
|
playwrightCli
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-I6HDWG3U.js";
|
|
82
82
|
import {
|
|
83
83
|
MissingIndexError,
|
|
84
84
|
buildGaps,
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
sharedStore,
|
|
97
97
|
showFromCatalog,
|
|
98
98
|
syncIndex
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-Q77GHEZ5.js";
|
|
100
100
|
import {
|
|
101
101
|
checkpointSqlite,
|
|
102
102
|
indexHome,
|
|
@@ -104,7 +104,7 @@ import {
|
|
|
104
104
|
openSqlite,
|
|
105
105
|
projectGraph,
|
|
106
106
|
storeLocation
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-G5BKBWEQ.js";
|
|
108
108
|
import {
|
|
109
109
|
DL_EXT,
|
|
110
110
|
buildTokens,
|
|
@@ -114,7 +114,7 @@ import {
|
|
|
114
114
|
parseCssColor,
|
|
115
115
|
parseDimension,
|
|
116
116
|
readRules
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-XHJQOWD4.js";
|
|
118
118
|
import {
|
|
119
119
|
Baseline,
|
|
120
120
|
CiRecord,
|
|
@@ -153,7 +153,7 @@ import {
|
|
|
153
153
|
toPosix,
|
|
154
154
|
unifiedDiff,
|
|
155
155
|
writeFileAtomic
|
|
156
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-CLYYS6VI.js";
|
|
157
157
|
import {
|
|
158
158
|
__toESM
|
|
159
159
|
} from "./chunk-WNTS7ZO4.js";
|
|
@@ -3405,7 +3405,7 @@ async function projectStatus(project2, cwd = process.cwd()) {
|
|
|
3405
3405
|
const comparison = check.baseline?.comparison;
|
|
3406
3406
|
const counted = comparison ? [...comparison.new, ...comparison.regressed] : check.violations;
|
|
3407
3407
|
const usages = check.scan.report.usages;
|
|
3408
|
-
const { RequestStore } = await import("./src-
|
|
3408
|
+
const { RequestStore } = await import("./src-HKWBBHA4.js");
|
|
3409
3409
|
const requests = await new RequestStore(project2.root, project2.config.id).list();
|
|
3410
3410
|
const status = {
|
|
3411
3411
|
id: project2.config.id,
|
|
@@ -6007,7 +6007,7 @@ async function cmdLibrary(values, positionals) {
|
|
|
6007
6007
|
return 0;
|
|
6008
6008
|
}
|
|
6009
6009
|
if (action === "ingest" && query && positionals.length === 2) {
|
|
6010
|
-
const { fileIngestDraft, readLink, renderIngest } = await import("./ingest-
|
|
6010
|
+
const { fileIngestDraft, readLink, renderIngest } = await import("./ingest-XSUSELVB.js");
|
|
6011
6011
|
const p = values.draft ? await project(values) : null;
|
|
6012
6012
|
const reading = await readLink(query, { allowLocal: true });
|
|
6013
6013
|
const filed = p ? await fileIngestDraft(p, reading, values.state) : null;
|
|
@@ -6048,7 +6048,7 @@ async function cmdRecord(values) {
|
|
|
6048
6048
|
}
|
|
6049
6049
|
async function cmdFigma(values, positionals) {
|
|
6050
6050
|
const [action, ...extra] = positionals;
|
|
6051
|
-
const auth = await import("./figma-auth-
|
|
6051
|
+
const auth = await import("./figma-auth-O7YTQOAD.js");
|
|
6052
6052
|
const store = auth.credentialStore();
|
|
6053
6053
|
if (extra.length > 0 || !["login", "logout", "status"].includes(action ?? "")) throw new UsageError("youiyoux figma login [--paste] [--port n] or youiyoux figma logout or youiyoux figma status");
|
|
6054
6054
|
if (action === "status") {
|
|
@@ -6103,7 +6103,7 @@ async function cmdHubServe(values, positionals) {
|
|
|
6103
6103
|
if (problem) throw new UsageError(problem);
|
|
6104
6104
|
const port = Number(values.port ?? process.env.PORT ?? 8080);
|
|
6105
6105
|
if (!Number.isInteger(port) || port < 0 || port > 65535) throw new UsageError(`--port ${JSON.stringify(values.port ?? process.env.PORT)}: expected a port number`);
|
|
6106
|
-
const { openStore, storeLocation: where2 } = await import("./src-
|
|
6106
|
+
const { openStore, storeLocation: where2 } = await import("./src-O535ZT77.js");
|
|
6107
6107
|
const path = resolve14(values.db ?? process.env.YOUI_HUB_DB ?? join27(process.env.XDG_DATA_HOME || join27(homedir3(), ".local/share"), "youiyoux/hub.db"));
|
|
6108
6108
|
const store = await openStore({ path });
|
|
6109
6109
|
const dist = builtHub();
|
|
@@ -6432,7 +6432,7 @@ async function cmdUi(values) {
|
|
|
6432
6432
|
async function cmdDetect(values, positionals) {
|
|
6433
6433
|
const target = detectTarget(positionals);
|
|
6434
6434
|
if (!target) throw new UsageError("youiyoux detect <repo-path> or youiyoux detect <url\u2026> [--expose] (one repo, or one or more URLs; not both)");
|
|
6435
|
-
const { repoReport, siteReport, writeReport } = await import("./src-
|
|
6435
|
+
const { repoReport, siteReport, writeReport } = await import("./src-COKDT2AL.js");
|
|
6436
6436
|
const out = resolve14(values.out ?? ".youi/detect");
|
|
6437
6437
|
const report = target.kind === "repo" ? await repoReport(target.path) : await siteReport(target.urls, { out, expose: values.expose, ...process.env.YOUI_CHROMIUM ? { executablePath: process.env.YOUI_CHROMIUM } : {} });
|
|
6438
6438
|
const file = await writeReport(report, out);
|
|
@@ -6466,7 +6466,7 @@ async function cmdRequests(values, positionals) {
|
|
|
6466
6466
|
const usage = "youiyoux requests [--status open|addressed|closed|all] [--route r] or youiyoux requests show <id> | reply <id> --message <text> | addressed <id> --message <what you changed>";
|
|
6467
6467
|
const [action, id, ...rest] = positionals;
|
|
6468
6468
|
if (rest.length > 0) throw new UsageError(usage);
|
|
6469
|
-
const { RequestStore, requestBrief } = await import("./src-
|
|
6469
|
+
const { RequestStore, requestBrief } = await import("./src-HKWBBHA4.js");
|
|
6470
6470
|
const { project: project2, root } = await product(values);
|
|
6471
6471
|
const store = new RequestStore(root, project2?.config.id ?? basename5(root));
|
|
6472
6472
|
const agent = { kind: "agent", name: "youiyoux CLI" };
|
|
@@ -6508,7 +6508,7 @@ async function cmdScreens(values, positionals, io) {
|
|
|
6508
6508
|
const session = chosenSession(root, values["storage-state"] ? resolve14(values["storage-state"]) : void 0);
|
|
6509
6509
|
if (session?.saved) process.stderr.write(`${style.dim(`signed in with the session youiyoux screens login saved (${session.file}); delete it to capture signed out`)}
|
|
6510
6510
|
`);
|
|
6511
|
-
const { launchBrowser } = await import("./src-
|
|
6511
|
+
const { launchBrowser } = await import("./src-COKDT2AL.js");
|
|
6512
6512
|
const browser = await launchBrowser(process.env.YOUI_CHROMIUM, { purpose: { what: "youiyoux screens capture", command: "youiyoux screens capture" } });
|
|
6513
6513
|
try {
|
|
6514
6514
|
const report = await captureScreens(dir, { base: values.base, root, browser, ...values.route ? { routes: [values.route] } : {}, ...session ? { storageState: session.file } : {}, log: (line) => process.stderr.write(`${style.dim(line)}
|
|
@@ -6565,7 +6565,7 @@ async function cmdReport(values, positionals, io) {
|
|
|
6565
6565
|
return result.code;
|
|
6566
6566
|
}
|
|
6567
6567
|
async function cmdMcp(values) {
|
|
6568
|
-
const { startStdioServer } = await import("./src-
|
|
6568
|
+
const { startStdioServer } = await import("./src-WSHA347Z.js");
|
|
6569
6569
|
await startStdioServer({ projectRoot: values.project ?? process.cwd(), ...loadOptions(values), ...values.cache ? { discoverCache: values.cache } : {} });
|
|
6570
6570
|
return -1;
|
|
6571
6571
|
}
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
sameColor,
|
|
19
19
|
splitTopLevel,
|
|
20
20
|
tailwindTheme
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-XHJQOWD4.js";
|
|
22
22
|
import {
|
|
23
23
|
AST_GREP_LANGUAGES,
|
|
24
24
|
BUILT_IN_CHECKS,
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
toPosix,
|
|
52
52
|
unifiedDiff,
|
|
53
53
|
writeFileAtomic
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-CLYYS6VI.js";
|
|
55
55
|
|
|
56
56
|
// ../scanner/src/parse.ts
|
|
57
57
|
import { Lang, parseAsync } from "@ast-grep/napi";
|
|
@@ -7928,7 +7928,7 @@ var Eyes = class {
|
|
|
7928
7928
|
}
|
|
7929
7929
|
async open() {
|
|
7930
7930
|
if (this.browser) return this.browser;
|
|
7931
|
-
const { launchBrowser } = await import("./src-
|
|
7931
|
+
const { launchBrowser } = await import("./src-COKDT2AL.js");
|
|
7932
7932
|
try {
|
|
7933
7933
|
this.browser = await launchBrowser(this.options.executablePath, { purpose: { what: "youiyoux render", command: "youiyoux render" }, ...this.options.download === false ? { download: false } : {}, ...this.options.log ? { log: this.options.log } : {} });
|
|
7934
7934
|
} catch (error) {
|
|
@@ -27305,10 +27305,10 @@ function findUp(start, file2, owner = process.getuid?.()) {
|
|
|
27305
27305
|
if (dirname(dir) === dir) return null;
|
|
27306
27306
|
}
|
|
27307
27307
|
}
|
|
27308
|
-
async function writeFileAtomic(file2, content) {
|
|
27308
|
+
async function writeFileAtomic(file2, content, options = {}) {
|
|
27309
27309
|
await mkdir(dirname(file2), { recursive: true });
|
|
27310
27310
|
const temp = join(dirname(file2), `.${process.pid}.${randomBytes(6).toString("hex")}.tmp`);
|
|
27311
|
-
await writeFile(temp, content, "utf8");
|
|
27311
|
+
await writeFile(temp, content, { encoding: "utf8", flag: "wx", ...options.mode !== void 0 ? { mode: options.mode } : {} });
|
|
27312
27312
|
await rename(temp, file2);
|
|
27313
27313
|
}
|
|
27314
27314
|
async function readTextOrNull(file2) {
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
scanProject,
|
|
10
10
|
screenSlug,
|
|
11
11
|
tokenImpact
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-CKH54UT6.js";
|
|
13
13
|
import {
|
|
14
14
|
buildTokens,
|
|
15
15
|
contrastText,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
resolverLayout,
|
|
19
19
|
ringOffset,
|
|
20
20
|
systemPairs
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-XHJQOWD4.js";
|
|
22
22
|
import {
|
|
23
23
|
BUILT_IN_CHECKS,
|
|
24
24
|
COMPONENT_STATES,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
toPosix,
|
|
46
46
|
tokenValueProblems,
|
|
47
47
|
writeFileAtomic
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-CLYYS6VI.js";
|
|
49
49
|
import {
|
|
50
50
|
__toESM
|
|
51
51
|
} from "./chunk-WNTS7ZO4.js";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
openStore,
|
|
7
7
|
pageInteger,
|
|
8
8
|
searchTerms
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-G5BKBWEQ.js";
|
|
10
10
|
import {
|
|
11
11
|
LIBRARY_SOURCE_KINDS,
|
|
12
12
|
LibraryEntry,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
require_dist,
|
|
16
16
|
sha256,
|
|
17
17
|
writeFileAtomic
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-CLYYS6VI.js";
|
|
19
19
|
import {
|
|
20
20
|
__toESM
|
|
21
21
|
} from "./chunk-WNTS7ZO4.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire as __youiRequire } from "node:module"; import { dirname as __youiDir } from "node:path"; import { fileURLToPath as __youiPath } from "node:url"; const require = __youiRequire(import.meta.url); const __youiDirname = __youiDir(__youiPath(import.meta.url));
|
|
2
2
|
import {
|
|
3
3
|
loadProject
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CKH54UT6.js";
|
|
5
5
|
import {
|
|
6
6
|
shortHash
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CLYYS6VI.js";
|
|
8
8
|
|
|
9
9
|
// ../cli/src/ui.ts
|
|
10
10
|
import * as util from "node:util";
|
|
@@ -57,7 +57,7 @@ import { homedir, userInfo } from "node:os";
|
|
|
57
57
|
import { join, resolve } from "node:path";
|
|
58
58
|
async function swapImpact(candidate, family) {
|
|
59
59
|
try {
|
|
60
|
-
const { discoverIndexPath, sharedStore } = await import("./src-
|
|
60
|
+
const { discoverIndexPath, sharedStore } = await import("./src-3F2YGGDW.js");
|
|
61
61
|
const path = discoverIndexPath();
|
|
62
62
|
if (!process.env.DATABASE_URL && !existsSync(path)) return null;
|
|
63
63
|
const impact = await (await sharedStore(path, process.env, { readOnly: true })).swapImpact(candidate, family);
|
|
@@ -68,7 +68,7 @@ async function swapImpact(candidate, family) {
|
|
|
68
68
|
}
|
|
69
69
|
async function libraryLicence(id) {
|
|
70
70
|
try {
|
|
71
|
-
const { discoverCacheDir, findListing } = await import("./src-
|
|
71
|
+
const { discoverCacheDir, findListing } = await import("./src-3F2YGGDW.js");
|
|
72
72
|
const { entry } = await findListing(discoverCacheDir(void 0, process.env), id);
|
|
73
73
|
return entry.id === id ? entry.license : null;
|
|
74
74
|
} catch {
|
|
@@ -79,11 +79,11 @@ function workflowStateDir(project, state) {
|
|
|
79
79
|
return resolve(state ?? join(homedir(), ".youi", "workflow", shortHash(`${project.repo.root}\0${project.root}`)));
|
|
80
80
|
}
|
|
81
81
|
async function ingest(link) {
|
|
82
|
-
const { readLink } = await import("./ingest-
|
|
82
|
+
const { readLink } = await import("./ingest-XSUSELVB.js");
|
|
83
83
|
return readLink(link, { allowLocal: false });
|
|
84
84
|
}
|
|
85
85
|
async function startRuleEditor(options) {
|
|
86
|
-
const { FileStore, RuleWorkflow, serveWorkflow } = await import("./src-
|
|
86
|
+
const { FileStore, RuleWorkflow, serveWorkflow } = await import("./src-HKWBBHA4.js");
|
|
87
87
|
const projectRoot = resolve(options.project);
|
|
88
88
|
const load = { ...options.config ? { configPath: resolve(options.config) } : {}, ...options.design ? { designRoot: resolve(options.design) } : {}, ...options.root ? { productRoot: resolve(options.root) } : {} };
|
|
89
89
|
const project = await loadProject(projectRoot, load);
|
|
@@ -2,10 +2,10 @@ import { createRequire as __youiRequire } from "node:module"; import { dirname a
|
|
|
2
2
|
|
|
3
3
|
// src/hub-packages.js
|
|
4
4
|
var PACKAGES = {
|
|
5
|
-
core: () => import("./src-
|
|
6
|
-
scanner: () => import("./src-
|
|
7
|
-
discover: () => import("./src-
|
|
8
|
-
tokens: () => import("./src-
|
|
5
|
+
core: () => import("./src-X34V5MHP.js"),
|
|
6
|
+
scanner: () => import("./src-RMQQPWAD.js"),
|
|
7
|
+
discover: () => import("./src-3F2YGGDW.js"),
|
|
8
|
+
tokens: () => import("./src-CWTSWOK4.js")
|
|
9
9
|
};
|
|
10
10
|
var loadPackage = (name) => PACKAGES[name]();
|
|
11
11
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __youiRequire } from "node:module"; import { dirname as __youiDir } from "node:path"; import { fileURLToPath as __youiPath } from "node:url"; const require = __youiRequire(import.meta.url); const __youiDirname = __youiDir(__youiPath(import.meta.url));
|
|
2
2
|
import {
|
|
3
3
|
writeFileAtomic
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CLYYS6VI.js";
|
|
5
5
|
import "./chunk-WNTS7ZO4.js";
|
|
6
6
|
|
|
7
7
|
// ../cli/src/figma-auth.ts
|
|
@@ -33,9 +33,9 @@ function fileStore(path) {
|
|
|
33
33
|
get: async () => parse(await readFile(path, "utf8").catch(() => null)),
|
|
34
34
|
set: async (credential) => {
|
|
35
35
|
await mkdir(dirname(path), { recursive: true, mode: 448 });
|
|
36
|
+
await chmod(dirname(path), 448);
|
|
36
37
|
await writeFileAtomic(path, `${JSON.stringify(credential)}
|
|
37
|
-
|
|
38
|
-
await chmod(path, 384);
|
|
38
|
+
`, { mode: 384 });
|
|
39
39
|
},
|
|
40
40
|
delete: async () => rm(path).then(() => true, () => false)
|
|
41
41
|
};
|
|
@@ -4,26 +4,26 @@ import {
|
|
|
4
4
|
plural,
|
|
5
5
|
style,
|
|
6
6
|
workflowStateDir
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-TW24A5TT.js";
|
|
8
|
+
import "./chunk-CKH54UT6.js";
|
|
9
9
|
import "./chunk-42YJX3W5.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-XHJQOWD4.js";
|
|
11
|
+
import "./chunk-CLYYS6VI.js";
|
|
12
12
|
import "./chunk-WNTS7ZO4.js";
|
|
13
13
|
|
|
14
14
|
// ../cli/src/ingest.ts
|
|
15
15
|
import { userInfo } from "node:os";
|
|
16
16
|
async function readLink(link, options) {
|
|
17
|
-
const { githubBuckets, ingestLink, PoliteClient } = await import("./src-
|
|
17
|
+
const { githubBuckets, ingestLink, PoliteClient } = await import("./src-3F2YGGDW.js");
|
|
18
18
|
const env = options.env ?? process.env;
|
|
19
19
|
const token = env.GITHUB_TOKEN || void 0;
|
|
20
|
-
const figma = /figma\.com\//i.test(link) ? await (await import("./figma-auth-
|
|
20
|
+
const figma = /figma\.com\//i.test(link) ? await (await import("./figma-auth-O7YTQOAD.js")).figmaAccess({ env }) : null;
|
|
21
21
|
const client = new PoliteClient({ buckets: githubBuckets(token), ...token ? { token } : {}, ...figma ? { figmaToken: figma.token, figmaBearer: figma.bearer } : {} });
|
|
22
22
|
const result = await ingestLink(link, { client, allowLocal: options.allowLocal, figma: Boolean(figma) });
|
|
23
23
|
return { link: result.link, source: result.source, license: result.license, fetchedAt: result.fetchedAt, entries: result.entries, skipped: result.skipped, notes: result.notes };
|
|
24
24
|
}
|
|
25
25
|
async function fileIngestDraft(project, reading, state) {
|
|
26
|
-
const { FileStore, RuleWorkflow } = await import("./src-
|
|
26
|
+
const { FileStore, RuleWorkflow } = await import("./src-HKWBBHA4.js");
|
|
27
27
|
const workflow = new RuleWorkflow({ projectRoot: project.root, store: new FileStore(workflowStateDir(project, state)), ...project.configFile ? { configPath: project.configFile } : {}, ...project.designOverride ? { designRoot: project.repo.root } : {}, ...project.rootOverride ? { productRoot: project.root } : {}, ingest: async () => reading });
|
|
28
28
|
const draft = await workflow.create({ kind: "person", name: userInfo().username }, { kind: "ingest", link: reading.link });
|
|
29
29
|
return { id: draft.id, problems: draft.problems };
|
|
@@ -127,9 +127,9 @@ import {
|
|
|
127
127
|
writeHttpCache,
|
|
128
128
|
writeJson,
|
|
129
129
|
writeSources
|
|
130
|
-
} from "./chunk-
|
|
131
|
-
import "./chunk-
|
|
132
|
-
import "./chunk-
|
|
130
|
+
} from "./chunk-Q77GHEZ5.js";
|
|
131
|
+
import "./chunk-G5BKBWEQ.js";
|
|
132
|
+
import "./chunk-CLYYS6VI.js";
|
|
133
133
|
import "./chunk-WNTS7ZO4.js";
|
|
134
134
|
export {
|
|
135
135
|
ALL_INDEX_FILE,
|
|
@@ -56,8 +56,8 @@ import {
|
|
|
56
56
|
tokenVariables,
|
|
57
57
|
variableSuffixes,
|
|
58
58
|
youiTypeVariables
|
|
59
|
-
} from "./chunk-
|
|
60
|
-
import "./chunk-
|
|
59
|
+
} from "./chunk-XHJQOWD4.js";
|
|
60
|
+
import "./chunk-CLYYS6VI.js";
|
|
61
61
|
import "./chunk-WNTS7ZO4.js";
|
|
62
62
|
export {
|
|
63
63
|
AAA_TEXT,
|
|
@@ -64,11 +64,11 @@ import {
|
|
|
64
64
|
validateIngestContent,
|
|
65
65
|
validateLibraryContent,
|
|
66
66
|
validateStyleContent
|
|
67
|
-
} from "./chunk-
|
|
68
|
-
import "./chunk-
|
|
67
|
+
} from "./chunk-COJJZPVD.js";
|
|
68
|
+
import "./chunk-CKH54UT6.js";
|
|
69
69
|
import "./chunk-42YJX3W5.js";
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-
|
|
70
|
+
import "./chunk-XHJQOWD4.js";
|
|
71
|
+
import "./chunk-CLYYS6VI.js";
|
|
72
72
|
import "./chunk-WNTS7ZO4.js";
|
|
73
73
|
export {
|
|
74
74
|
DesignFiles,
|
|
@@ -188,14 +188,14 @@ import {
|
|
|
188
188
|
whyNoLines,
|
|
189
189
|
withFile,
|
|
190
190
|
withoutCredentials
|
|
191
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-CKH54UT6.js";
|
|
192
192
|
import {
|
|
193
193
|
escapingLinks,
|
|
194
194
|
relativeInside,
|
|
195
195
|
within
|
|
196
196
|
} from "./chunk-42YJX3W5.js";
|
|
197
|
-
import "./chunk-
|
|
198
|
-
import "./chunk-
|
|
197
|
+
import "./chunk-XHJQOWD4.js";
|
|
198
|
+
import "./chunk-CLYYS6VI.js";
|
|
199
199
|
import "./chunk-WNTS7ZO4.js";
|
|
200
200
|
export {
|
|
201
201
|
ARBITRARY,
|
|
@@ -2,7 +2,7 @@ import { createRequire as __youiRequire } from "node:module"; import { dirname a
|
|
|
2
2
|
import {
|
|
3
3
|
RequestStore,
|
|
4
4
|
requestBrief
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-COJJZPVD.js";
|
|
6
6
|
import {
|
|
7
7
|
PROJECT_FILE,
|
|
8
8
|
ScanCache,
|
|
@@ -30,13 +30,13 @@ import {
|
|
|
30
30
|
shotsText,
|
|
31
31
|
tokenRows,
|
|
32
32
|
whereUsed
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-CKH54UT6.js";
|
|
34
34
|
import "./chunk-42YJX3W5.js";
|
|
35
35
|
import {
|
|
36
36
|
SHADCN_SLOTS,
|
|
37
37
|
launchBrowser,
|
|
38
38
|
libraryOfPackage
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-I6HDWG3U.js";
|
|
40
40
|
import {
|
|
41
41
|
DISCOVER_RULE,
|
|
42
42
|
DiscoverConstraints,
|
|
@@ -51,11 +51,11 @@ import {
|
|
|
51
51
|
searchCatalog,
|
|
52
52
|
sharedStore,
|
|
53
53
|
showFromCatalog
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-Q77GHEZ5.js";
|
|
55
55
|
import {
|
|
56
56
|
storeLocation
|
|
57
|
-
} from "./chunk-
|
|
58
|
-
import "./chunk-
|
|
57
|
+
} from "./chunk-G5BKBWEQ.js";
|
|
58
|
+
import "./chunk-XHJQOWD4.js";
|
|
59
59
|
import {
|
|
60
60
|
$ZodObject,
|
|
61
61
|
$ZodType,
|
|
@@ -95,7 +95,7 @@ import {
|
|
|
95
95
|
toJSONSchema,
|
|
96
96
|
union,
|
|
97
97
|
unknown
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-CLYYS6VI.js";
|
|
99
99
|
import {
|
|
100
100
|
__commonJS,
|
|
101
101
|
__toESM
|
package/dist/hub-previews.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import { createRequire as __youiRequire } from "node:module"; import { dirname as __youiDir } from "node:path"; import { fileURLToPath as __youiPath } from "node:url"; const require = __youiRequire(import.meta.url); const __youiDirname = __youiDir(__youiPath(import.meta.url));
|
|
3
3
|
import {
|
|
4
4
|
launchBrowser
|
|
5
|
-
} from "./chunks/chunk-
|
|
5
|
+
} from "./chunks/chunk-I6HDWG3U.js";
|
|
6
6
|
import {
|
|
7
7
|
discoverCacheDir,
|
|
8
8
|
loadIndex
|
|
9
|
-
} from "./chunks/chunk-
|
|
10
|
-
import "./chunks/chunk-
|
|
9
|
+
} from "./chunks/chunk-Q77GHEZ5.js";
|
|
10
|
+
import "./chunks/chunk-G5BKBWEQ.js";
|
|
11
11
|
import {
|
|
12
12
|
THUMBS_PATH,
|
|
13
13
|
THUMB_SCHEMES,
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
selectCandidates,
|
|
18
18
|
thumbsDir,
|
|
19
19
|
writeThumbIndex
|
|
20
|
-
} from "./chunks/chunk-
|
|
21
|
-
import "./chunks/chunk-
|
|
20
|
+
} from "./chunks/chunk-2HRV3FFX.js";
|
|
21
|
+
import "./chunks/chunk-W3ZCAAXH.js";
|
|
22
22
|
import "./chunks/chunk-FVVL5JCY.js";
|
|
23
|
-
import "./chunks/chunk-
|
|
23
|
+
import "./chunks/chunk-CLYYS6VI.js";
|
|
24
24
|
import "./chunks/chunk-WNTS7ZO4.js";
|
|
25
25
|
|
|
26
26
|
// ../../apps/web/scripts/capture-discover-thumbs.ts
|
package/dist/hub-server.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire as __youiRequire } from "node:module"; import { dirname as __youiDir } from "node:path"; import { fileURLToPath as __youiPath } from "node:url"; const require = __youiRequire(import.meta.url); const __youiDirname = __youiDir(__youiPath(import.meta.url));
|
|
3
3
|
import {
|
|
4
4
|
discoverThumbsMiddleware
|
|
5
|
-
} from "./chunks/chunk-
|
|
5
|
+
} from "./chunks/chunk-2HRV3FFX.js";
|
|
6
6
|
import {
|
|
7
7
|
isLocalHost,
|
|
8
8
|
loadPackage,
|
|
@@ -10,9 +10,9 @@ import {
|
|
|
10
10
|
readTryIndex,
|
|
11
11
|
send,
|
|
12
12
|
tryMiddleware
|
|
13
|
-
} from "./chunks/chunk-
|
|
13
|
+
} from "./chunks/chunk-W3ZCAAXH.js";
|
|
14
14
|
import "./chunks/chunk-FVVL5JCY.js";
|
|
15
|
-
import "./chunks/chunk-
|
|
15
|
+
import "./chunks/chunk-CLYYS6VI.js";
|
|
16
16
|
import "./chunks/chunk-WNTS7ZO4.js";
|
|
17
17
|
|
|
18
18
|
// ../../apps/web/scripts/hub-server.ts
|
package/dist/hub-snapshot.js
CHANGED
|
@@ -3,7 +3,7 @@ import { createRequire as __youiRequire } from "node:module"; import { dirname a
|
|
|
3
3
|
import {
|
|
4
4
|
loadPackage,
|
|
5
5
|
tryProject
|
|
6
|
-
} from "./chunks/chunk-
|
|
6
|
+
} from "./chunks/chunk-W3ZCAAXH.js";
|
|
7
7
|
import "./chunks/chunk-FVVL5JCY.js";
|
|
8
8
|
import "./chunks/chunk-WNTS7ZO4.js";
|
|
9
9
|
|
package/dist/youi.js
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
import { createRequire as __youiRequire } from "node:module"; import { dirname as __youiDir } from "node:path"; import { fileURLToPath as __youiPath } from "node:url"; const require = __youiRequire(import.meta.url); const __youiDirname = __youiDir(__youiPath(import.meta.url));
|
|
3
3
|
import {
|
|
4
4
|
main
|
|
5
|
-
} from "./chunks/chunk-
|
|
6
|
-
import "./chunks/chunk-
|
|
7
|
-
import "./chunks/chunk-
|
|
5
|
+
} from "./chunks/chunk-BMBXZG7W.js";
|
|
6
|
+
import "./chunks/chunk-TW24A5TT.js";
|
|
7
|
+
import "./chunks/chunk-CKH54UT6.js";
|
|
8
8
|
import "./chunks/chunk-42YJX3W5.js";
|
|
9
|
-
import "./chunks/chunk-
|
|
10
|
-
import "./chunks/chunk-
|
|
11
|
-
import "./chunks/chunk-
|
|
9
|
+
import "./chunks/chunk-I6HDWG3U.js";
|
|
10
|
+
import "./chunks/chunk-Q77GHEZ5.js";
|
|
11
|
+
import "./chunks/chunk-G5BKBWEQ.js";
|
|
12
12
|
import "./chunks/chunk-FVVL5JCY.js";
|
|
13
|
-
import "./chunks/chunk-
|
|
14
|
-
import "./chunks/chunk-
|
|
13
|
+
import "./chunks/chunk-XHJQOWD4.js";
|
|
14
|
+
import "./chunks/chunk-CLYYS6VI.js";
|
|
15
15
|
import "./chunks/chunk-WNTS7ZO4.js";
|
|
16
16
|
|
|
17
17
|
// src/youi.js
|
package/dist/youiyoux.js
CHANGED
|
@@ -3,16 +3,16 @@ import { createRequire as __youiRequire } from "node:module"; import { dirname a
|
|
|
3
3
|
import {
|
|
4
4
|
COMMAND_NAMES,
|
|
5
5
|
main
|
|
6
|
-
} from "./chunks/chunk-
|
|
7
|
-
import "./chunks/chunk-
|
|
8
|
-
import "./chunks/chunk-
|
|
6
|
+
} from "./chunks/chunk-BMBXZG7W.js";
|
|
7
|
+
import "./chunks/chunk-TW24A5TT.js";
|
|
8
|
+
import "./chunks/chunk-CKH54UT6.js";
|
|
9
9
|
import "./chunks/chunk-42YJX3W5.js";
|
|
10
|
-
import "./chunks/chunk-
|
|
11
|
-
import "./chunks/chunk-
|
|
12
|
-
import "./chunks/chunk-
|
|
10
|
+
import "./chunks/chunk-I6HDWG3U.js";
|
|
11
|
+
import "./chunks/chunk-Q77GHEZ5.js";
|
|
12
|
+
import "./chunks/chunk-G5BKBWEQ.js";
|
|
13
13
|
import "./chunks/chunk-FVVL5JCY.js";
|
|
14
|
-
import "./chunks/chunk-
|
|
15
|
-
import "./chunks/chunk-
|
|
14
|
+
import "./chunks/chunk-XHJQOWD4.js";
|
|
15
|
+
import "./chunks/chunk-CLYYS6VI.js";
|
|
16
16
|
import "./chunks/chunk-WNTS7ZO4.js";
|
|
17
17
|
|
|
18
18
|
// src/youiyoux.js
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "youiyoux",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.17",
|
|
4
4
|
"description": "Your agent rebuilds components you already have. youiyoux catches it: npx youiyoux turns any repo into a shareable report of near-duplicate components, hardcoded token values and off-library imports, with the fixes.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"typescript": "6.0.3"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@youiyoux/cli": "0.1.
|
|
50
|
-
"@youiyoux/scanner": "0.1.
|
|
51
|
-
"@youiyoux/core": "0.1.
|
|
49
|
+
"@youiyoux/cli": "0.1.17",
|
|
50
|
+
"@youiyoux/scanner": "0.1.17",
|
|
51
|
+
"@youiyoux/core": "0.1.17"
|
|
52
52
|
},
|
|
53
53
|
"exports": {
|
|
54
54
|
"./package.json": "./package.json"
|