@omniharmonic/openspace-cli 0.1.1 → 0.1.3
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/README.md +11 -1
- package/dist/{agents-md-2DTXWUZQ.js → agents-md-7DESZGEN.js} +2 -2
- package/dist/bin.js +2 -2
- package/dist/{chunk-3F6TAUAT.js → chunk-AAMRGTSI.js} +19 -1
- package/dist/{chunk-3F6TAUAT.js.map → chunk-AAMRGTSI.js.map} +1 -1
- package/dist/chunk-TQZ5F7VG.js +39102 -0
- package/dist/chunk-TQZ5F7VG.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -2
- package/package.json +10 -8
- package/dist/chunk-LTJEM3DN.js +0 -17161
- package/dist/chunk-LTJEM3DN.js.map +0 -1
- /package/dist/{agents-md-2DTXWUZQ.js.map → agents-md-7DESZGEN.js.map} +0 -0
package/README.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
# @omniharmonic/openspace-cli
|
|
2
2
|
|
|
3
|
-
The `openspace` command line: `check`, `dev`, `migrate`, `new`, `eject`, `agents-md` and `mcp`.
|
|
3
|
+
The `openspace` command line: `check`, `dev`, `migrate`, `new`, `import`, `eject`, `agents-md` and `mcp`.
|
|
4
|
+
|
|
5
|
+
## `openspace import squarespace <url> [dir]` — move a Squarespace site
|
|
6
|
+
|
|
7
|
+
Creates a new site folder from a Squarespace 7.0/7.1 site: pages and sections, blog, events,
|
|
8
|
+
products, images, navigation, forms, SEO, redirects and a Site Styles approximation of the look,
|
|
9
|
+
plus `IMPORT-REPORT.md`; then runs `openspace check`. Options: `--owner` (you own the site: also
|
|
10
|
+
read `?format=json`), `--export <wordpress.xml>` (complete blog posts), `--target`, `--repo`,
|
|
11
|
+
`--url`, `--domain`, `--title`, `--hub`, `--max-pages`, `--delay`, `--no-media`. Requests are
|
|
12
|
+
paced and robots.txt is honoured. The local MCP server offers the same as `import_squarespace`,
|
|
13
|
+
and `screenshot_url` to compare the original site with the new one.
|
|
4
14
|
|
|
5
15
|
## `openspace mcp [dir]` — let Claude edit and design your site
|
|
6
16
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createRequire as __osCreateRequire } from "node:module"; const require = __osCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
generateAgentsMd
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AAMRGTSI.js";
|
|
5
5
|
export {
|
|
6
6
|
generateAgentsMd
|
|
7
7
|
};
|
|
8
|
-
//# sourceMappingURL=agents-md-
|
|
8
|
+
//# sourceMappingURL=agents-md-7DESZGEN.js.map
|
package/dist/bin.js
CHANGED
|
@@ -3,8 +3,8 @@ import { createRequire as __osCreateRequire } from "node:module"; const require
|
|
|
3
3
|
import {
|
|
4
4
|
processIo,
|
|
5
5
|
run
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-TQZ5F7VG.js";
|
|
7
|
+
import "./chunk-AAMRGTSI.js";
|
|
8
8
|
|
|
9
9
|
// src/bin.ts
|
|
10
10
|
process.exitCode = await run(process.argv.slice(2), processIo());
|
|
@@ -19829,6 +19829,10 @@ function newId(prefix) {
|
|
|
19829
19829
|
for (const byte of bytes) body += CROCKFORD_ALPHABET[byte & 31];
|
|
19830
19830
|
return `${prefix}_${body}`;
|
|
19831
19831
|
}
|
|
19832
|
+
function isId(value, prefix) {
|
|
19833
|
+
if (typeof value !== "string") return false;
|
|
19834
|
+
return prefix ? idPattern(prefix).test(value) : ANY_ID_RE.test(value);
|
|
19835
|
+
}
|
|
19832
19836
|
var idString = (prefix) => external_exports.string().regex(idPattern(prefix), {
|
|
19833
19837
|
message: `Expected an id like "${prefix}_" followed by 10 lowercase base32 characters`
|
|
19834
19838
|
});
|
|
@@ -23005,6 +23009,11 @@ function mixHue(a, b, t) {
|
|
|
23005
23009
|
const d = ((b - a) % 360 + 540) % 360 - 180;
|
|
23006
23010
|
return normalizeHue(a + d * t);
|
|
23007
23011
|
}
|
|
23012
|
+
function deltaEOK(x, y) {
|
|
23013
|
+
const a = oklchToOklab(x);
|
|
23014
|
+
const b = oklchToOklab(y);
|
|
23015
|
+
return Math.hypot(a.l - b.l, a.a - b.a, a.b - b.b);
|
|
23016
|
+
}
|
|
23008
23017
|
|
|
23009
23018
|
// ../theme/src/contrast.ts
|
|
23010
23019
|
function relativeLuminance(color2) {
|
|
@@ -41034,7 +41043,9 @@ export {
|
|
|
41034
41043
|
__commonJS,
|
|
41035
41044
|
__toESM,
|
|
41036
41045
|
external_exports,
|
|
41046
|
+
CROCKFORD_ALPHABET,
|
|
41037
41047
|
newId,
|
|
41048
|
+
isId,
|
|
41038
41049
|
PageIdSchema,
|
|
41039
41050
|
SectionIdSchema,
|
|
41040
41051
|
BlockIdSchema,
|
|
@@ -41067,6 +41078,10 @@ export {
|
|
|
41067
41078
|
FRONTMATTER_SCHEMAS,
|
|
41068
41079
|
CollectionConfigSchema,
|
|
41069
41080
|
SiteConfigSchema,
|
|
41081
|
+
FORBIDDEN_FIELD_PATTERN,
|
|
41082
|
+
RICH_LINK_HREF_RE,
|
|
41083
|
+
RichTextDocSchema,
|
|
41084
|
+
normalizeDoc,
|
|
41070
41085
|
toMarkdown,
|
|
41071
41086
|
fromMarkdown,
|
|
41072
41087
|
plainText,
|
|
@@ -41081,7 +41096,9 @@ export {
|
|
|
41081
41096
|
fallbackMobileRects,
|
|
41082
41097
|
toJsonSchema,
|
|
41083
41098
|
blockFieldsJsonSchema,
|
|
41099
|
+
parseColor,
|
|
41084
41100
|
toHex,
|
|
41101
|
+
deltaEOK,
|
|
41085
41102
|
contrastRatio,
|
|
41086
41103
|
nearestAccessible,
|
|
41087
41104
|
TYPE_PAIRINGS,
|
|
@@ -41094,6 +41111,7 @@ export {
|
|
|
41094
41111
|
blockHeadings,
|
|
41095
41112
|
copyViolations,
|
|
41096
41113
|
PRESET_CATEGORIES,
|
|
41114
|
+
starterRef,
|
|
41097
41115
|
getPreset,
|
|
41098
41116
|
presetCatalog,
|
|
41099
41117
|
presetSection,
|
|
@@ -41164,4 +41182,4 @@ lucide/dist/esm/lucide.mjs:
|
|
|
41164
41182
|
* See the LICENSE file in the root directory of this source tree.
|
|
41165
41183
|
*)
|
|
41166
41184
|
*/
|
|
41167
|
-
//# sourceMappingURL=chunk-
|
|
41185
|
+
//# sourceMappingURL=chunk-AAMRGTSI.js.map
|