boss-css 0.0.22 → 0.0.24
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/_virtual/{rolldown_runtime.cjs → _rolldown/runtime.cjs} +14 -24
- package/dist/_virtual/_rolldown/runtime.mjs +14 -0
- package/dist/ai/server.cjs +15 -16
- package/dist/ai/server.mjs +4 -6
- package/dist/ai/skills.cjs +2 -3
- package/dist/ai/skills.mjs +1 -2
- package/dist/api/browser.cjs +11 -12
- package/dist/api/browser.mjs +1 -3
- package/dist/api/config.cjs +6 -7
- package/dist/api/config.mjs +1 -3
- package/dist/api/css.cjs +1 -3
- package/dist/api/css.mjs +1 -2
- package/dist/api/dictionary.cjs +1 -3
- package/dist/api/dictionary.mjs +1 -2
- package/dist/api/file/dts.cjs +2 -4
- package/dist/api/file/dts.mjs +1 -3
- package/dist/api/file/file.cjs +4 -6
- package/dist/api/file/file.mjs +1 -3
- package/dist/api/file/js.cjs +6 -8
- package/dist/api/file/js.mjs +2 -4
- package/dist/api/file/text.cjs +2 -4
- package/dist/api/file/text.mjs +1 -3
- package/dist/api/names.cjs +1 -3
- package/dist/api/names.mjs +1 -3
- package/dist/api/noopCss.cjs +2 -3
- package/dist/api/noopCss.mjs +1 -2
- package/dist/api/propTree.cjs +1 -3
- package/dist/api/propTree.mjs +1 -2
- package/dist/api/server.cjs +15 -16
- package/dist/api/server.mjs +1 -3
- package/dist/cli/build.cjs +1 -1
- package/dist/cli/build.mjs +2 -3
- package/dist/cli/index.cjs +5 -7
- package/dist/cli/index.mjs +1 -3
- package/dist/cli/tasks/build.cjs +4 -7
- package/dist/cli/tasks/build.mjs +1 -4
- package/dist/cli/tasks/choose.cjs +3 -6
- package/dist/cli/tasks/choose.mjs +1 -4
- package/dist/cli/tasks/compile.cjs +3 -6
- package/dist/cli/tasks/compile.mjs +1 -4
- package/dist/cli/tasks/dev.cjs +8 -11
- package/dist/cli/tasks/dev.mjs +2 -5
- package/dist/cli/tasks/init.cjs +39 -42
- package/dist/cli/tasks/init.mjs +12 -15
- package/dist/cli/tasks/watch.cjs +3 -6
- package/dist/cli/tasks/watch.mjs +1 -4
- package/dist/cli/templates/init.cjs +1 -3
- package/dist/cli/templates/init.mjs +1 -2
- package/dist/cli/types.cjs +2 -4
- package/dist/cli/types.mjs +2 -4
- package/dist/cli/utils.cjs +2 -4
- package/dist/cli/utils.mjs +1 -3
- package/dist/compile/classname-strategy.cjs +3 -5
- package/dist/compile/classname-strategy.mjs +1 -3
- package/dist/compile/classname.cjs +6 -8
- package/dist/compile/classname.mjs +5 -7
- package/dist/compile/index.cjs +18 -20
- package/dist/compile/index.mjs +6 -8
- package/dist/compile/jsx.cjs +8 -10
- package/dist/compile/jsx.mjs +6 -8
- package/dist/compile/prepared.cjs +3 -5
- package/dist/compile/prepared.mjs +1 -3
- package/dist/compile/runtime.cjs +4 -5
- package/dist/compile/runtime.mjs +1 -3
- package/dist/compile/transform.cjs +7 -9
- package/dist/compile/transform.mjs +3 -5
- package/dist/cx/index.cjs +6 -7
- package/dist/cx/index.mjs +3 -5
- package/dist/detect-fw/index.cjs +6 -7
- package/dist/detect-fw/index.mjs +1 -3
- package/dist/dev/client.cjs +2 -3
- package/dist/dev/client.mjs +1 -2
- package/dist/dev/plugin/browser.cjs +2 -3
- package/dist/dev/plugin/browser.mjs +1 -2
- package/dist/dev/plugin/server.cjs +13 -14
- package/dist/dev/plugin/server.mjs +3 -5
- package/dist/dev/port.cjs +3 -5
- package/dist/dev/port.mjs +1 -3
- package/dist/dev/runtime.cjs +3 -5
- package/dist/dev/runtime.mjs +1 -3
- package/dist/dev/server.cjs +12 -13
- package/dist/dev/server.mjs +15 -17
- package/dist/dev/shared.cjs +1 -3
- package/dist/dev/shared.mjs +1 -2
- package/dist/devtools-app/index.mjs +2 -2
- package/dist/eslint-plugin/index.cjs +10 -13
- package/dist/eslint-plugin/index.mjs +1 -4
- package/dist/eslint-plugin/rules/classnames-only.cjs +4 -6
- package/dist/eslint-plugin/rules/classnames-only.mjs +1 -3
- package/dist/eslint-plugin/rules/format-classnames.cjs +8 -10
- package/dist/eslint-plugin/rules/format-classnames.mjs +1 -3
- package/dist/eslint-plugin/rules/no-unknown-classes.cjs +5 -7
- package/dist/eslint-plugin/rules/no-unknown-classes.mjs +1 -3
- package/dist/eslint-plugin/rules/prefer-classnames.cjs +5 -7
- package/dist/eslint-plugin/rules/prefer-classnames.mjs +1 -3
- package/dist/eslint-plugin/rules/prefer-token-values.cjs +6 -8
- package/dist/eslint-plugin/rules/prefer-token-values.mjs +1 -3
- package/dist/eslint-plugin/rules/prefer-unitless-values.cjs +7 -9
- package/dist/eslint-plugin/rules/prefer-unitless-values.mjs +1 -3
- package/dist/eslint-plugin/rules/props-only.cjs +5 -7
- package/dist/eslint-plugin/rules/props-only.mjs +1 -3
- package/dist/eslint-plugin/rules/redundant-cx.cjs +3 -5
- package/dist/eslint-plugin/rules/redundant-cx.mjs +1 -3
- package/dist/eslint-plugin/rules/require-prop-functions.cjs +6 -8
- package/dist/eslint-plugin/rules/require-prop-functions.mjs +1 -3
- package/dist/eslint-plugin/utils/api.cjs +3 -5
- package/dist/eslint-plugin/utils/api.mjs +1 -3
- package/dist/eslint-plugin/utils/ast.cjs +1 -3
- package/dist/eslint-plugin/utils/ast.mjs +1 -2
- package/dist/eslint-plugin/utils/boss-classes.cjs +5 -7
- package/dist/eslint-plugin/utils/boss-classes.mjs +1 -3
- package/dist/eslint-plugin/utils/context.cjs +1 -3
- package/dist/eslint-plugin/utils/context.mjs +1 -2
- package/dist/eslint-plugin/utils/defaults.cjs +1 -3
- package/dist/eslint-plugin/utils/defaults.mjs +1 -2
- package/dist/eslint-plugin/utils/format.cjs +1 -3
- package/dist/eslint-plugin/utils/format.mjs +1 -2
- package/dist/eslint-plugin/utils/order.cjs +3 -5
- package/dist/eslint-plugin/utils/order.mjs +1 -3
- package/dist/eslint-plugin/utils/property-order.cjs +1 -3
- package/dist/eslint-plugin/utils/property-order.mjs +1 -2
- package/dist/eslint-plugin/utils/static.cjs +1 -3
- package/dist/eslint-plugin/utils/static.mjs +1 -2
- package/dist/fontsource/directory.cjs +1 -3
- package/dist/fontsource/directory.mjs +1 -2
- package/dist/fontsource/server.cjs +12 -13
- package/dist/fontsource/server.mjs +2 -4
- package/dist/index.cjs +6 -6
- package/dist/index.mjs +1 -2
- package/dist/log/browser.cjs +2 -4
- package/dist/log/browser.mjs +1 -3
- package/dist/log/server.cjs +6 -8
- package/dist/log/server.mjs +1 -3
- package/dist/merge/index.cjs +21 -284
- package/dist/merge/index.mjs +18 -282
- package/dist/native/browser.cjs +3 -4
- package/dist/native/browser.mjs +1 -3
- package/dist/native/server.cjs +7 -8
- package/dist/native/server.mjs +1 -3
- package/dist/native/styleTypes.cjs +5 -7
- package/dist/native/styleTypes.mjs +1 -3
- package/dist/parser/classname/server.cjs +17 -19
- package/dist/parser/classname/server.mjs +11 -13
- package/dist/parser/jsx/browser.cjs +7 -8
- package/dist/parser/jsx/browser.mjs +1 -3
- package/dist/parser/jsx/extractCode.cjs +2 -4
- package/dist/parser/jsx/extractCode.mjs +2 -3
- package/dist/parser/jsx/extractPrepared.cjs +3 -5
- package/dist/parser/jsx/extractPrepared.mjs +1 -3
- package/dist/parser/jsx/extractProps.cjs +3 -5
- package/dist/parser/jsx/extractProps.mjs +1 -3
- package/dist/parser/jsx/isDOMProp.cjs +3 -5
- package/dist/parser/jsx/isDOMProp.mjs +1 -3
- package/dist/parser/jsx/native.cjs +6 -7
- package/dist/parser/jsx/native.d.cts +2 -2
- package/dist/parser/jsx/native.d.mts +2 -2
- package/dist/parser/jsx/native.mjs +1 -3
- package/dist/parser/jsx/runtime.cjs +3 -3
- package/dist/parser/jsx/runtime.mjs +1 -2
- package/dist/parser/jsx/server.cjs +16 -17
- package/dist/parser/jsx/server.mjs +3 -5
- package/dist/postcss/index.cjs +2 -5
- package/dist/postcss/index.mjs +1 -4
- package/dist/prop/at/runtime-only.cjs +8 -9
- package/dist/prop/at/runtime-only.mjs +6 -8
- package/dist/prop/at/server.cjs +27 -28
- package/dist/prop/at/server.mjs +17 -19
- package/dist/prop/at/shared.cjs +1 -3
- package/dist/prop/at/shared.mjs +1 -2
- package/dist/prop/bosswind/browser.cjs +4 -5
- package/dist/prop/bosswind/browser.mjs +1 -3
- package/dist/prop/bosswind/runtime-only.cjs +4 -5
- package/dist/prop/bosswind/runtime-only.mjs +1 -3
- package/dist/prop/bosswind/selectors.cjs +1 -3
- package/dist/prop/bosswind/selectors.mjs +1 -2
- package/dist/prop/bosswind/server.cjs +12 -12
- package/dist/prop/bosswind/server.mjs +6 -7
- package/dist/prop/bosswind/shared.cjs +59 -9
- package/dist/prop/bosswind/shared.mjs +57 -8
- package/dist/prop/bosswind/tailwind-theme.cjs +2 -38
- package/dist/prop/bosswind/tailwind-theme.mjs +2 -37
- package/dist/prop/child/runtime-only.cjs +2 -3
- package/dist/prop/child/runtime-only.mjs +1 -2
- package/dist/prop/child/server.cjs +10 -11
- package/dist/prop/child/server.mjs +2 -4
- package/dist/prop/css/getDtsTemplate.cjs +7 -6
- package/dist/prop/css/getDtsTemplate.mjs +5 -4
- package/dist/prop/css/runtime-only.cjs +4 -5
- package/dist/prop/css/runtime-only.mjs +1 -3
- package/dist/prop/css/server.cjs +12 -13
- package/dist/prop/css/server.mjs +4 -6
- package/dist/prop/pseudo/runtime-only.cjs +3 -5
- package/dist/prop/pseudo/runtime-only.mjs +1 -3
- package/dist/prop/pseudo/server.cjs +19 -20
- package/dist/prop/pseudo/server.mjs +11 -13
- package/dist/prop/pseudo/shared.cjs +1 -3
- package/dist/prop/pseudo/shared.mjs +1 -2
- package/dist/reset/server.cjs +10 -11
- package/dist/reset/server.mjs +2 -4
- package/dist/runtime/index.cjs +5 -6
- package/dist/runtime/index.mjs +1 -3
- package/dist/runtime/preact.cjs +3 -3
- package/dist/runtime/preact.mjs +1 -2
- package/dist/runtime/qwik.cjs +3 -4
- package/dist/runtime/qwik.mjs +1 -3
- package/dist/runtime/react.cjs +3 -3
- package/dist/runtime/react.mjs +1 -2
- package/dist/runtime/solid.cjs +3 -4
- package/dist/runtime/solid.mjs +1 -3
- package/dist/runtime/stencil.cjs +4 -5
- package/dist/runtime/stencil.mjs +1 -3
- package/dist/runtime/style.cjs +2 -3
- package/dist/runtime/style.mjs +1 -2
- package/dist/shared/boundaries.cjs +4 -6
- package/dist/shared/boundaries.mjs +1 -3
- package/dist/shared/customCss.cjs +1 -3
- package/dist/shared/customCss.mjs +1 -2
- package/dist/shared/debug.cjs +2 -4
- package/dist/shared/debug.mjs +2 -3
- package/dist/shared/file.cjs +3 -5
- package/dist/shared/file.mjs +1 -3
- package/dist/shared/framework.cjs +1 -3
- package/dist/shared/framework.mjs +1 -2
- package/dist/shared/json.cjs +1 -3
- package/dist/shared/json.mjs +1 -2
- package/dist/shared/types.cjs +1 -3
- package/dist/shared/types.mjs +1 -2
- package/dist/strategy/classic/runtime-only.cjs +15 -16
- package/dist/strategy/classic/runtime-only.mjs +3 -5
- package/dist/strategy/classname-first/browser.cjs +7 -8
- package/dist/strategy/classname-first/browser.mjs +1 -3
- package/dist/strategy/classname-first/runtime-only.cjs +13 -14
- package/dist/strategy/classname-first/runtime-only.mjs +1 -3
- package/dist/strategy/classname-first/server.cjs +9 -11
- package/dist/strategy/classname-first/server.mjs +3 -5
- package/dist/strategy/classname-only/server.cjs +8 -10
- package/dist/strategy/classname-only/server.mjs +2 -4
- package/dist/strategy/inline-first/browser.cjs +6 -7
- package/dist/strategy/inline-first/browser.mjs +1 -3
- package/dist/strategy/inline-first/runtime-only.cjs +12 -13
- package/dist/strategy/inline-first/runtime-only.mjs +1 -3
- package/dist/strategy/inline-first/server.cjs +9 -11
- package/dist/strategy/inline-first/server.mjs +3 -5
- package/dist/strategy/runtime/runtime-only.cjs +6 -8
- package/dist/strategy/runtime/runtime-only.mjs +1 -4
- package/dist/strategy/runtime/server.cjs +11 -12
- package/dist/strategy/runtime/server.mjs +2 -4
- package/dist/strategy/runtime-only/css.cjs +5 -6
- package/dist/strategy/runtime-only/css.mjs +4 -5
- package/dist/tasks/build.cjs +8 -10
- package/dist/tasks/build.mjs +1 -3
- package/dist/tasks/compile.cjs +2 -4
- package/dist/tasks/compile.mjs +1 -3
- package/dist/tasks/postcss.cjs +11 -13
- package/dist/tasks/postcss.mjs +1 -3
- package/dist/tasks/session.cjs +4 -6
- package/dist/tasks/session.mjs +1 -3
- package/dist/tasks/watch.cjs +7 -9
- package/dist/tasks/watch.mjs +1 -3
- package/dist/transform/cache.cjs +1 -3
- package/dist/transform/cache.mjs +1 -2
- package/dist/transform/processFile.cjs +4 -6
- package/dist/transform/processFile.mjs +1 -3
- package/dist/use/token/browser.cjs +4 -5
- package/dist/use/token/browser.mjs +1 -3
- package/dist/use/token/normalize.cjs +1 -3
- package/dist/use/token/normalize.mjs +1 -2
- package/dist/use/token/propMap.cjs +1 -3
- package/dist/use/token/propMap.mjs +1 -2
- package/dist/use/token/runtime-only.cjs +5 -6
- package/dist/use/token/runtime-only.mjs +1 -3
- package/dist/use/token/server.cjs +13 -14
- package/dist/use/token/server.mjs +4 -6
- package/dist/use/token/vars.cjs +2 -4
- package/dist/use/token/vars.mjs +1 -3
- package/package.json +23 -23
- package/dist/_virtual/rolldown_runtime.mjs +0 -20
|
@@ -1,34 +1,26 @@
|
|
|
1
|
-
//#region
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __exportAll = (all,
|
|
8
|
+
var __exportAll = (all, no_symbols) => {
|
|
9
9
|
let target = {};
|
|
10
|
-
for (var name in all) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
if (symbols) {
|
|
17
|
-
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
18
|
-
}
|
|
10
|
+
for (var name in all) __defProp(target, name, {
|
|
11
|
+
get: all[name],
|
|
12
|
+
enumerable: true
|
|
13
|
+
});
|
|
14
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
19
15
|
return target;
|
|
20
16
|
};
|
|
21
17
|
var __copyProps = (to, from, except, desc) => {
|
|
22
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
}
|
|
18
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
19
|
+
key = keys[i];
|
|
20
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
21
|
+
get: ((k) => from[k]).bind(null, key),
|
|
22
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
23
|
+
});
|
|
32
24
|
}
|
|
33
25
|
return to;
|
|
34
26
|
};
|
|
@@ -36,8 +28,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
36
28
|
value: mod,
|
|
37
29
|
enumerable: true
|
|
38
30
|
}) : target, mod));
|
|
39
|
-
|
|
40
31
|
//#endregion
|
|
41
|
-
|
|
42
32
|
exports.__exportAll = __exportAll;
|
|
43
|
-
exports.__toESM = __toESM;
|
|
33
|
+
exports.__toESM = __toESM;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "node:module";
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __exportAll = (all, no_symbols) => {
|
|
5
|
+
let target = {};
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
11
|
+
return target;
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { __exportAll };
|
package/dist/ai/server.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_text = require("../api/file/text.cjs");
|
|
4
|
+
const require_ai_skills = require("./skills.cjs");
|
|
4
5
|
let node_fs_promises = require("node:fs/promises");
|
|
5
|
-
node_fs_promises =
|
|
6
|
+
node_fs_promises = require_runtime.__toESM(node_fs_promises);
|
|
6
7
|
let node_path = require("node:path");
|
|
7
|
-
node_path =
|
|
8
|
-
|
|
8
|
+
node_path = require_runtime.__toESM(node_path);
|
|
9
9
|
//#region src/ai/server.ts
|
|
10
|
-
var server_exports = /* @__PURE__ */
|
|
11
|
-
name: () =>
|
|
10
|
+
var server_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
11
|
+
name: () => "ai",
|
|
12
12
|
onBoot: () => onBoot,
|
|
13
13
|
onMetaData: () => onMetaData,
|
|
14
14
|
onSession: () => onSession
|
|
@@ -97,7 +97,7 @@ const updateSectionBlocks = (input, sections) => {
|
|
|
97
97
|
}
|
|
98
98
|
for (const [id, body] of Object.entries(sections)) {
|
|
99
99
|
const block = renderSectionBlock(id, body);
|
|
100
|
-
const pattern =
|
|
100
|
+
const pattern = new RegExp(`<!-- boss:ai:${id}:start -->[\\s\\S]*?<!-- boss:ai:${id}:end -->`);
|
|
101
101
|
if (pattern.test(text)) text = text.replace(pattern, block);
|
|
102
102
|
else text += `\n\n${block}`;
|
|
103
103
|
}
|
|
@@ -422,15 +422,14 @@ const onSession = async (api, session) => {
|
|
|
422
422
|
await writeLlms(api, session);
|
|
423
423
|
await writeSkills(api, session);
|
|
424
424
|
};
|
|
425
|
-
|
|
426
425
|
//#endregion
|
|
427
426
|
exports.name = name;
|
|
428
427
|
exports.onBoot = onBoot;
|
|
429
428
|
exports.onMetaData = onMetaData;
|
|
430
429
|
exports.onSession = onSession;
|
|
431
|
-
Object.defineProperty(exports,
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
});
|
|
430
|
+
Object.defineProperty(exports, "server_exports", {
|
|
431
|
+
enumerable: true,
|
|
432
|
+
get: function() {
|
|
433
|
+
return server_exports;
|
|
434
|
+
}
|
|
435
|
+
});
|
package/dist/ai/server.mjs
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { __exportAll } from "../_virtual/
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.mjs";
|
|
2
2
|
import TextFile from "../api/file/text.mjs";
|
|
3
3
|
import { builtInSkills } from "./skills.mjs";
|
|
4
4
|
import fs from "node:fs/promises";
|
|
5
5
|
import path from "node:path";
|
|
6
|
-
|
|
7
6
|
//#region src/ai/server.ts
|
|
8
7
|
var server_exports = /* @__PURE__ */ __exportAll({
|
|
9
|
-
name: () =>
|
|
8
|
+
name: () => "ai",
|
|
10
9
|
onBoot: () => onBoot,
|
|
11
10
|
onMetaData: () => onMetaData,
|
|
12
11
|
onSession: () => onSession
|
|
@@ -95,7 +94,7 @@ const updateSectionBlocks = (input, sections) => {
|
|
|
95
94
|
}
|
|
96
95
|
for (const [id, body] of Object.entries(sections)) {
|
|
97
96
|
const block = renderSectionBlock(id, body);
|
|
98
|
-
const pattern =
|
|
97
|
+
const pattern = new RegExp(`<!-- boss:ai:${id}:start -->[\\s\\S]*?<!-- boss:ai:${id}:end -->`);
|
|
99
98
|
if (pattern.test(text)) text = text.replace(pattern, block);
|
|
100
99
|
else text += `\n\n${block}`;
|
|
101
100
|
}
|
|
@@ -420,6 +419,5 @@ const onSession = async (api, session) => {
|
|
|
420
419
|
await writeLlms(api, session);
|
|
421
420
|
await writeSkills(api, session);
|
|
422
421
|
};
|
|
423
|
-
|
|
424
422
|
//#endregion
|
|
425
|
-
export { name, onBoot, onMetaData, onSession, server_exports };
|
|
423
|
+
export { name, onBoot, onMetaData, onSession, server_exports };
|
package/dist/ai/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
//#region src/ai/skills.ts
|
|
3
3
|
const baseMetadata = { author: "boss-css" };
|
|
4
4
|
const baseLicense = "MIT";
|
|
@@ -346,6 +346,5 @@ See .bo$$/LLMS.md and AI metadata docs.
|
|
|
346
346
|
`
|
|
347
347
|
}
|
|
348
348
|
];
|
|
349
|
-
|
|
350
349
|
//#endregion
|
|
351
|
-
exports.builtInSkills = builtInSkills;
|
|
350
|
+
exports.builtInSkills = builtInSkills;
|
package/dist/ai/skills.mjs
CHANGED
package/dist/api/browser.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_dictionary = require("./dictionary.cjs");
|
|
3
|
+
const require_names = require("./names.cjs");
|
|
4
|
+
const require_debug = require("../shared/debug.cjs");
|
|
5
|
+
const require_browser = require("../log/browser.cjs");
|
|
6
6
|
//#region src/api/browser.ts
|
|
7
7
|
let api = null;
|
|
8
8
|
function createApi(config, force = false) {
|
|
@@ -43,12 +43,11 @@ function trigger(eventName, data, test = () => true) {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
|
|
47
46
|
//#endregion
|
|
48
|
-
Object.defineProperty(exports,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
47
|
+
Object.defineProperty(exports, "api", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function() {
|
|
50
|
+
return api;
|
|
51
|
+
}
|
|
53
52
|
});
|
|
54
|
-
exports.createApi = createApi;
|
|
53
|
+
exports.createApi = createApi;
|
package/dist/api/browser.mjs
CHANGED
|
@@ -2,7 +2,6 @@ import { Dictionary } from "./dictionary.mjs";
|
|
|
2
2
|
import { camelCaseToDash, contextToCSSVariable, contextToClassName, dashToCamelCase } from "./names.mjs";
|
|
3
3
|
import { resolveDebugValue } from "../shared/debug.mjs";
|
|
4
4
|
import { createLogger } from "../log/browser.mjs";
|
|
5
|
-
|
|
6
5
|
//#region src/api/browser.ts
|
|
7
6
|
let api = null;
|
|
8
7
|
function createApi(config, force = false) {
|
|
@@ -43,6 +42,5 @@ function trigger(eventName, data, test = () => true) {
|
|
|
43
42
|
}
|
|
44
43
|
}
|
|
45
44
|
}
|
|
46
|
-
|
|
47
45
|
//#endregion
|
|
48
|
-
export { api, createApi };
|
|
46
|
+
export { api, createApi };
|
package/dist/api/config.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_json = require("../shared/json.cjs");
|
|
3
4
|
let node_fs_promises = require("node:fs/promises");
|
|
4
|
-
node_fs_promises =
|
|
5
|
+
node_fs_promises = require_runtime.__toESM(node_fs_promises);
|
|
5
6
|
let node_path = require("node:path");
|
|
6
|
-
node_path =
|
|
7
|
+
node_path = require_runtime.__toESM(node_path);
|
|
7
8
|
let node_url = require("node:url");
|
|
8
|
-
|
|
9
9
|
//#region src/api/config.ts
|
|
10
10
|
const defaultConfig = {
|
|
11
11
|
configDir: ".bo$$",
|
|
@@ -89,6 +89,5 @@ async function hasFile(filePath) {
|
|
|
89
89
|
return false;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
|
|
93
92
|
//#endregion
|
|
94
|
-
exports.loadConfig = loadConfig;
|
|
93
|
+
exports.loadConfig = loadConfig;
|
package/dist/api/config.mjs
CHANGED
|
@@ -2,7 +2,6 @@ import { parseJson } from "../shared/json.mjs";
|
|
|
2
2
|
import fs from "node:fs/promises";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { pathToFileURL } from "node:url";
|
|
5
|
-
|
|
6
5
|
//#region src/api/config.ts
|
|
7
6
|
const defaultConfig = {
|
|
8
7
|
configDir: ".bo$$",
|
|
@@ -86,6 +85,5 @@ async function hasFile(filePath) {
|
|
|
86
85
|
return false;
|
|
87
86
|
}
|
|
88
87
|
}
|
|
89
|
-
|
|
90
88
|
//#endregion
|
|
91
|
-
export { loadConfig };
|
|
89
|
+
export { loadConfig };
|
package/dist/api/css.cjs
CHANGED
package/dist/api/css.mjs
CHANGED
package/dist/api/dictionary.cjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
//#region src/api/dictionary.ts
|
|
3
2
|
var Dictionary = class Dictionary extends Map {
|
|
4
3
|
static Instance;
|
|
@@ -211,8 +210,7 @@ const isNumericValue = (value) => {
|
|
|
211
210
|
if (typeof value === "number") return true;
|
|
212
211
|
return /^-?\d+(?:\.\d+)?$/.test(value);
|
|
213
212
|
};
|
|
214
|
-
|
|
215
213
|
//#endregion
|
|
216
214
|
exports.Dictionary = Dictionary;
|
|
217
215
|
exports.isNumericValue = isNumericValue;
|
|
218
|
-
exports.unitlessProperties = unitlessProperties;
|
|
216
|
+
exports.unitlessProperties = unitlessProperties;
|
package/dist/api/dictionary.mjs
CHANGED
|
@@ -210,6 +210,5 @@ const isNumericValue = (value) => {
|
|
|
210
210
|
if (typeof value === "number") return true;
|
|
211
211
|
return /^-?\d+(?:\.\d+)?$/.test(value);
|
|
212
212
|
};
|
|
213
|
-
|
|
214
213
|
//#endregion
|
|
215
|
-
export { Dictionary, isNumericValue, unitlessProperties };
|
|
214
|
+
export { Dictionary, isNumericValue, unitlessProperties };
|
package/dist/api/file/dts.cjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
const require_file = require(
|
|
2
|
-
|
|
1
|
+
const require_file = require("./file.cjs");
|
|
3
2
|
//#region src/api/file/dts.ts
|
|
4
3
|
var Dts = class extends require_file.default {
|
|
5
4
|
get headers() {
|
|
@@ -16,6 +15,5 @@ ${(typeof value === "string" ? value : String(value)).split("\n").map((line) =>
|
|
|
16
15
|
return value;
|
|
17
16
|
}
|
|
18
17
|
};
|
|
19
|
-
|
|
20
18
|
//#endregion
|
|
21
|
-
exports.default = Dts;
|
|
19
|
+
exports.default = Dts;
|
package/dist/api/file/dts.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import File from "./file.mjs";
|
|
2
|
-
|
|
3
2
|
//#region src/api/file/dts.ts
|
|
4
3
|
var Dts = class extends File {
|
|
5
4
|
get headers() {
|
|
@@ -16,6 +15,5 @@ ${(typeof value === "string" ? value : String(value)).split("\n").map((line) =>
|
|
|
16
15
|
return value;
|
|
17
16
|
}
|
|
18
17
|
};
|
|
19
|
-
|
|
20
18
|
//#endregion
|
|
21
|
-
export { Dts as default };
|
|
19
|
+
export { Dts as default };
|
package/dist/api/file/file.cjs
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
2
|
let node_fs_promises = require("node:fs/promises");
|
|
3
|
-
node_fs_promises =
|
|
3
|
+
node_fs_promises = require_runtime.__toESM(node_fs_promises);
|
|
4
4
|
let node_path = require("node:path");
|
|
5
|
-
node_path =
|
|
6
|
-
|
|
5
|
+
node_path = require_runtime.__toESM(node_path);
|
|
7
6
|
//#region src/api/file/file.ts
|
|
8
7
|
var File = class extends Map {
|
|
9
8
|
api;
|
|
@@ -118,6 +117,5 @@ var File = class extends Map {
|
|
|
118
117
|
this._prevText = text;
|
|
119
118
|
}
|
|
120
119
|
};
|
|
121
|
-
|
|
122
120
|
//#endregion
|
|
123
|
-
exports.default = File;
|
|
121
|
+
exports.default = File;
|
package/dist/api/file/file.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import fs from "node:fs/promises";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
|
|
4
3
|
//#region src/api/file/file.ts
|
|
5
4
|
var File = class extends Map {
|
|
6
5
|
api;
|
|
@@ -115,6 +114,5 @@ var File = class extends Map {
|
|
|
115
114
|
this._prevText = text;
|
|
116
115
|
}
|
|
117
116
|
};
|
|
118
|
-
|
|
119
117
|
//#endregion
|
|
120
|
-
export { File as default };
|
|
118
|
+
export { File as default };
|
package/dist/api/file/js.cjs
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_file = require(
|
|
3
|
-
const require_dts = require(
|
|
1
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_file = require("./file.cjs");
|
|
3
|
+
const require_dts = require("./dts.cjs");
|
|
4
4
|
let _emotion_hash = require("@emotion/hash");
|
|
5
|
-
_emotion_hash =
|
|
6
|
-
|
|
5
|
+
_emotion_hash = require_runtime.__toESM(_emotion_hash);
|
|
7
6
|
//#region src/api/file/js.ts
|
|
8
7
|
var JS = class extends require_file.default {
|
|
9
8
|
_d;
|
|
@@ -60,7 +59,7 @@ var JS = class extends require_file.default {
|
|
|
60
59
|
...config.plugin
|
|
61
60
|
};
|
|
62
61
|
this._configs.set(from, configEntry);
|
|
63
|
-
const testHasConfig = () => Array.from(this._configs.values()).some(({ test
|
|
62
|
+
const testHasConfig = () => Array.from(this._configs.values()).some(({ test }) => !test || test());
|
|
64
63
|
const createApiVar = this.import({
|
|
65
64
|
name: "createApi",
|
|
66
65
|
from: "boss-css/api/browser"
|
|
@@ -113,6 +112,5 @@ var JS = class extends require_file.default {
|
|
|
113
112
|
await this.dts.write();
|
|
114
113
|
}
|
|
115
114
|
};
|
|
116
|
-
|
|
117
115
|
//#endregion
|
|
118
|
-
exports.default = JS;
|
|
116
|
+
exports.default = JS;
|
package/dist/api/file/js.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import File from "./file.mjs";
|
|
2
2
|
import Dts from "./dts.mjs";
|
|
3
3
|
import hash from "@emotion/hash";
|
|
4
|
-
|
|
5
4
|
//#region src/api/file/js.ts
|
|
6
5
|
var JS = class extends File {
|
|
7
6
|
_d;
|
|
@@ -58,7 +57,7 @@ var JS = class extends File {
|
|
|
58
57
|
...config.plugin
|
|
59
58
|
};
|
|
60
59
|
this._configs.set(from, configEntry);
|
|
61
|
-
const testHasConfig = () => Array.from(this._configs.values()).some(({ test
|
|
60
|
+
const testHasConfig = () => Array.from(this._configs.values()).some(({ test }) => !test || test());
|
|
62
61
|
const createApiVar = this.import({
|
|
63
62
|
name: "createApi",
|
|
64
63
|
from: "boss-css/api/browser"
|
|
@@ -111,6 +110,5 @@ var JS = class extends File {
|
|
|
111
110
|
await this.dts.write();
|
|
112
111
|
}
|
|
113
112
|
};
|
|
114
|
-
|
|
115
113
|
//#endregion
|
|
116
|
-
export { JS as default };
|
|
114
|
+
export { JS as default };
|
package/dist/api/file/text.cjs
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
const require_file = require(
|
|
2
|
-
|
|
1
|
+
const require_file = require("./file.cjs");
|
|
3
2
|
//#region src/api/file/text.ts
|
|
4
3
|
var TextFile = class extends require_file.default {
|
|
5
4
|
get headers() {
|
|
6
5
|
return [];
|
|
7
6
|
}
|
|
8
7
|
};
|
|
9
|
-
|
|
10
8
|
//#endregion
|
|
11
|
-
exports.default = TextFile;
|
|
9
|
+
exports.default = TextFile;
|
package/dist/api/file/text.mjs
CHANGED
package/dist/api/names.cjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
require("css.escape");
|
|
2
|
-
|
|
3
2
|
//#region src/api/names.ts
|
|
4
3
|
const contextToClassName = (name, value, contexts, escape = true, prefix = "") => {
|
|
5
4
|
const parts = value !== null ? [name, Array.isArray(value) ? value.join("_") : String(value)] : [name];
|
|
@@ -41,7 +40,6 @@ const applyChildSelectors = (baseSelector, contexts) => {
|
|
|
41
40
|
return `${current} ${selector}`.trim();
|
|
42
41
|
}, baseSelector);
|
|
43
42
|
};
|
|
44
|
-
|
|
45
43
|
//#endregion
|
|
46
44
|
exports.applyChildSelectors = applyChildSelectors;
|
|
47
45
|
exports.camelCaseToDash = camelCaseToDash;
|
|
@@ -49,4 +47,4 @@ exports.classTokenToSelector = classTokenToSelector;
|
|
|
49
47
|
exports.contextToCSSVariable = contextToCSSVariable;
|
|
50
48
|
exports.contextToClassName = contextToClassName;
|
|
51
49
|
exports.dashToCamelCase = dashToCamelCase;
|
|
52
|
-
exports.escapeClassName = escapeClassName;
|
|
50
|
+
exports.escapeClassName = escapeClassName;
|
package/dist/api/names.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import "css.escape";
|
|
2
|
-
|
|
3
2
|
//#region src/api/names.ts
|
|
4
3
|
const contextToClassName = (name, value, contexts, escape = true, prefix = "") => {
|
|
5
4
|
const parts = value !== null ? [name, Array.isArray(value) ? value.join("_") : String(value)] : [name];
|
|
@@ -41,6 +40,5 @@ const applyChildSelectors = (baseSelector, contexts) => {
|
|
|
41
40
|
return `${current} ${selector}`.trim();
|
|
42
41
|
}, baseSelector);
|
|
43
42
|
};
|
|
44
|
-
|
|
45
43
|
//#endregion
|
|
46
|
-
export { applyChildSelectors, camelCaseToDash, classTokenToSelector, contextToCSSVariable, contextToClassName, dashToCamelCase, escapeClassName };
|
|
44
|
+
export { applyChildSelectors, camelCaseToDash, classTokenToSelector, contextToCSSVariable, contextToClassName, dashToCamelCase, escapeClassName };
|
package/dist/api/noopCss.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
//#region src/api/noopCss.ts
|
|
3
3
|
var NoopCSS = class {
|
|
4
4
|
api;
|
|
@@ -32,6 +32,5 @@ var NoopCSS = class {
|
|
|
32
32
|
return "";
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
|
-
|
|
36
35
|
//#endregion
|
|
37
|
-
exports.NoopCSS = NoopCSS;
|
|
36
|
+
exports.NoopCSS = NoopCSS;
|
package/dist/api/noopCss.mjs
CHANGED
package/dist/api/propTree.cjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
//#region src/api/propTree.ts
|
|
3
2
|
function objectToPropTree(obj, output = {}) {
|
|
4
3
|
Object.entries(obj).forEach(([name, value]) => {
|
|
@@ -44,11 +43,10 @@ function mapPropTree(tree, callback, depth = 0) {
|
|
|
44
43
|
return acc;
|
|
45
44
|
}, tree);
|
|
46
45
|
}
|
|
47
|
-
|
|
48
46
|
//#endregion
|
|
49
47
|
exports.mapPropTree = mapPropTree;
|
|
50
48
|
exports.objectToPropTree = objectToPropTree;
|
|
51
49
|
exports.propTreeToArray = propTreeToArray;
|
|
52
50
|
exports.propTreeToObject = propTreeToObject;
|
|
53
51
|
exports.propTreeToValue = propTreeToValue;
|
|
54
|
-
exports.walkPropTree = walkPropTree;
|
|
52
|
+
exports.walkPropTree = walkPropTree;
|
package/dist/api/propTree.mjs
CHANGED
|
@@ -43,6 +43,5 @@ function mapPropTree(tree, callback, depth = 0) {
|
|
|
43
43
|
return acc;
|
|
44
44
|
}, tree);
|
|
45
45
|
}
|
|
46
|
-
|
|
47
46
|
//#endregion
|
|
48
|
-
export { mapPropTree, objectToPropTree, propTreeToArray, propTreeToObject, propTreeToValue, walkPropTree };
|
|
47
|
+
export { mapPropTree, objectToPropTree, propTreeToArray, propTreeToObject, propTreeToValue, walkPropTree };
|
package/dist/api/server.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_dictionary = require("./dictionary.cjs");
|
|
3
|
+
const require_css = require("./css.cjs");
|
|
4
|
+
const require_api_noopCss = require("./noopCss.cjs");
|
|
5
|
+
const require_propTree = require("./propTree.cjs");
|
|
6
|
+
const require_names = require("./names.cjs");
|
|
7
|
+
const require_js = require("./file/js.cjs");
|
|
8
|
+
const require_debug = require("../shared/debug.cjs");
|
|
9
|
+
const require_server = require("../log/server.cjs");
|
|
10
10
|
//#region src/api/server.ts
|
|
11
11
|
let api = null;
|
|
12
12
|
async function createApi(config, force = false) {
|
|
@@ -106,12 +106,11 @@ async function trigger(eventName, data, test = () => true) {
|
|
|
106
106
|
if (currentApi.css && shouldSetSource) currentApi.css.setSource ? currentApi.css.setSource(previousSource) : currentApi.css.source = previousSource;
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
|
|
110
109
|
//#endregion
|
|
111
|
-
Object.defineProperty(exports,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
110
|
+
Object.defineProperty(exports, "api", {
|
|
111
|
+
enumerable: true,
|
|
112
|
+
get: function() {
|
|
113
|
+
return api;
|
|
114
|
+
}
|
|
116
115
|
});
|
|
117
|
-
exports.createApi = createApi;
|
|
116
|
+
exports.createApi = createApi;
|
package/dist/api/server.mjs
CHANGED
|
@@ -6,7 +6,6 @@ import { applyChildSelectors, camelCaseToDash, classTokenToSelector, contextToCS
|
|
|
6
6
|
import JS from "./file/js.mjs";
|
|
7
7
|
import { resolveDebugValue } from "../shared/debug.mjs";
|
|
8
8
|
import { createLogger } from "../log/server.mjs";
|
|
9
|
-
|
|
10
9
|
//#region src/api/server.ts
|
|
11
10
|
let api = null;
|
|
12
11
|
async function createApi(config, force = false) {
|
|
@@ -106,6 +105,5 @@ async function trigger(eventName, data, test = () => true) {
|
|
|
106
105
|
if (currentApi.css && shouldSetSource) currentApi.css.setSource ? currentApi.css.setSource(previousSource) : currentApi.css.source = previousSource;
|
|
107
106
|
}
|
|
108
107
|
}
|
|
109
|
-
|
|
110
108
|
//#endregion
|
|
111
|
-
export { api, createApi };
|
|
109
|
+
export { api, createApi };
|
package/dist/cli/build.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
require("../tasks/build.cjs");
|
package/dist/cli/build.mjs
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export { };
|
|
1
|
+
import "../tasks/build.mjs";
|
|
2
|
+
export {};
|