@open-document/core 0.14.3 → 0.15.1
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/{build-4K9V8ysT.js → build-CBMroMqd.js} +1 -1
- package/dist/{check-B40JlWME.js → check-C2kIZr3f.js} +3 -3
- package/dist/cli/bin.js +9 -9
- package/dist/{context-Clm_nmr1.js → context-DGp1jwN5.js} +1 -1
- package/dist/{dev-De3pLYn_.js → dev-DmzGncKf.js} +1 -1
- package/dist/{diff-nU9ybiMk.js → diff-CMI_PVzz.js} +2 -2
- package/dist/{export-B9rrNBx2.js → export-BQMUBoBB.js} +3 -3
- package/dist/{import-C3542Wry.js → import-CiSRqZyo.js} +3 -3
- package/dist/ops/index.js +2 -2
- package/dist/{ops-ByJnGyuE.js → ops-DQbZmYRF.js} +1 -1
- package/dist/{preview-id9mj3IU.js → preview-CERhZ_FX.js} +1 -1
- package/dist/{session-CdkoJhi1.js → session-DdaKKd7_.js} +1007 -4
- package/dist/{templates-UJ_v7H-a.js → templates-CBeC-v7e.js} +3 -3
- package/dist/vite/index.js +1 -1
- package/package.json +1 -1
- package/skills/doc-authoring/SKILL.md +14 -62
- package/skills/doc-authoring/references/diagrams.md +32 -0
- package/skills/doc-authoring/references/runtime.md +15 -0
- package/src/agent/consent.ts +42 -0
- package/src/agent/provider.ts +24 -1
- package/src/agent/providers/antigravity-local.ts +193 -0
- package/src/agent/providers/antigravity.ts +656 -0
- package/src/agent/providers/index.ts +2 -1
- package/src/agent/runner.ts +4 -0
- package/src/agent/sandbox-sync.ts +178 -0
- package/src/agent/status.ts +33 -1
- package/src/agent/types.ts +21 -3
- package/src/app/components/agent/agent-panel.tsx +180 -42
- package/src/app/components/agent/connect-view.tsx +294 -26
- package/src/app/components/agent/provider-logo.tsx +4 -0
- package/src/app/lib/agent/use-agent.ts +14 -1
- package/src/app/lib/i18n-ja/agent-panel.ts +49 -0
- package/src/app/lib/i18n-ko/agent-panel.ts +48 -0
- package/src/app/lib/i18n-zh-cn/agent-panel.ts +46 -0
- package/src/app/lib/i18n-zh-tw/agent-panel.ts +46 -0
- package/src/app/lib/use-locale.ts +43 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { R as listDocIds, S as closeRenderSession, x as checkLayout } from "./session-
|
|
2
|
-
import "./ops-
|
|
3
|
-
import { t as cliContext } from "./context-
|
|
1
|
+
import { R as listDocIds, S as closeRenderSession, x as checkLayout } from "./session-DdaKKd7_.js";
|
|
2
|
+
import "./ops-DQbZmYRF.js";
|
|
3
|
+
import { t as cliContext } from "./context-DGp1jwN5.js";
|
|
4
4
|
import chalk from "chalk";
|
|
5
5
|
//#region src/cli/check.ts
|
|
6
6
|
function line(finding) {
|
package/dist/cli/bin.js
CHANGED
|
@@ -143,39 +143,39 @@ async function run(argv) {
|
|
|
143
143
|
program.name("open-doc").description("Author documents — we handle the Vite/React stack, pagination, and export.").version(version, "-v, --version", "print version").helpOption("-h, --help", "show help").showHelpAfterError(chalk.dim("(run `open-doc --help` for usage)"));
|
|
144
144
|
program.command("dev").description("Start the dev server").addOption(new Option("-p, --port <port>", "port to listen on").argParser(parsePort)).addOption(new Option("--host [host]", "expose on the network (optional host)")).option("--open", "open the browser on start").option("--no-skills-check", "skip the built-in skills drift check").option("--mcp", "serve an MCP endpoint at /mcp (requires @open-document/mcp)").action(async (flags) => {
|
|
145
145
|
if (flags.skillsCheck !== false) await runSkillsDriftCheck(resolveBuiltinSkillsDir());
|
|
146
|
-
const { dev } = await import("../dev-
|
|
146
|
+
const { dev } = await import("../dev-DmzGncKf.js");
|
|
147
147
|
await dev(flags);
|
|
148
148
|
});
|
|
149
149
|
program.command("build").description("Build a static site").option("--out-dir <dir>", "output directory (defaults to `dist`)").action(async (flags) => {
|
|
150
|
-
const { build } = await import("../build-
|
|
150
|
+
const { build } = await import("../build-CBMroMqd.js");
|
|
151
151
|
await build(flags);
|
|
152
152
|
});
|
|
153
153
|
program.command("preview").description("Preview the production build").addOption(new Option("-p, --port <port>", "port to listen on").argParser(parsePort)).addOption(new Option("--host [host]", "expose on the network (optional host)")).option("--open", "open the browser on start").action(async (flags) => {
|
|
154
|
-
const { preview } = await import("../preview-
|
|
154
|
+
const { preview } = await import("../preview-CERhZ_FX.js");
|
|
155
155
|
await preview(flags);
|
|
156
156
|
});
|
|
157
157
|
program.command("export [docIds...]").description("Render documents headlessly to PDF, HTML, PNG, or DOCX").addOption(new Option("-f, --format <format>", "output format").choices([...EXPORT_FORMATS])).option("-o, --out-dir <dir>", "directory to write into (defaults to `out`)").option("--all", "export every document under docs/").option("--each", "one copy per row of the document's `records`").option("--name <pattern>", "with --each: file name, e.g. \"certificate-{name}\" ({#} is the row number)").action(async (docIds, flags) => {
|
|
158
|
-
const { exportDocs } = await import("../export-
|
|
158
|
+
const { exportDocs } = await import("../export-BQMUBoBB.js");
|
|
159
159
|
await exportDocs(docIds, flags);
|
|
160
160
|
});
|
|
161
161
|
program.command("diff <docId>").description("Show what changed in a document since a git revision, page by page").option("-s, --since <rev>", "revision to compare against (defaults to HEAD)").option("-o, --out-dir <dir>", "directory to write the report into (defaults to `out`)").option("--json", "print the result as JSON").action(async (docId, flags) => {
|
|
162
|
-
const { diffDoc } = await import("../diff-
|
|
162
|
+
const { diffDoc } = await import("../diff-CMI_PVzz.js");
|
|
163
163
|
await diffDoc(docId, flags);
|
|
164
164
|
});
|
|
165
165
|
program.command("check [docIds...]").description("Report layout faults — clipped content, blank sheets, stranded headings").option("--json", "print the full report as JSON").action(async (docIds, flags) => {
|
|
166
|
-
const { checkDocs } = await import("../check-
|
|
166
|
+
const { checkDocs } = await import("../check-C2kIZr3f.js");
|
|
167
167
|
await checkDocs(docIds, flags);
|
|
168
168
|
});
|
|
169
169
|
program.command("templates").description("List the templates a new document can start from").option("--json", "print them as JSON").action(async (flags) => {
|
|
170
|
-
const { printTemplates } = await import("../templates-
|
|
170
|
+
const { printTemplates } = await import("../templates-CBeC-v7e.js");
|
|
171
171
|
await printTemplates(flags);
|
|
172
172
|
});
|
|
173
173
|
program.command("new [docId]").description("Create a document under docs/ from a template (see `open-doc templates`)").option("-t, --template <name>", "template to start from (defaults to blank)").option("--title <title>", "title of the new document").action(async (docId, flags) => {
|
|
174
|
-
const { newDoc } = await import("../templates-
|
|
174
|
+
const { newDoc } = await import("../templates-CBeC-v7e.js");
|
|
175
175
|
await newDoc(docId, flags);
|
|
176
176
|
});
|
|
177
177
|
program.command("import <file>").description("Turn a Markdown file into a document under docs/").option("--id <id>", "document id (defaults to a slug of the title)").option("--title <title>", "override the title").option("--subtitle <subtitle>", "subtitle, also used as the cover eyebrow").option("--lang <tag>", "language of the text, e.g. zh-Hant-TW (detected for CJK when omitted)").option("--author <author>", "author line on the cover").option("--theme <theme>", "theme id to back-link from meta.theme").addOption(new Option("--page-size <size>", "page size").choices(PAGE_SIZE_NAMES)).addOption(new Option("--orientation <orientation>", "page orientation").choices(ORIENTATIONS)).option("--no-cover", "skip the title page").option("--contents", "add a self-filling contents page").action(async (file, flags) => {
|
|
178
|
-
const { importDoc } = await import("../import-
|
|
178
|
+
const { importDoc } = await import("../import-CiSRqZyo.js");
|
|
179
179
|
await importDoc(file, flags);
|
|
180
180
|
});
|
|
181
181
|
program.command("sync:skills").description("Sync built-in skills from @open-document/core into this workspace").option("--dry-run", "show what would change without writing").action(async (flags) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as readCoreVersion } from "./package-version-C89gtYSk.js";
|
|
2
2
|
import { n as loadUserConfig } from "./open-doc-plugin-DnX5usgI.js";
|
|
3
|
-
import { W as makeContext } from "./session-
|
|
3
|
+
import { W as makeContext } from "./session-DdaKKd7_.js";
|
|
4
4
|
//#region src/cli/context.ts
|
|
5
5
|
/** The same context the dev API and the MCP server run on, for commands that call `ops/`. */
|
|
6
6
|
async function cliContext(userCwd = process.cwd()) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as diffDocument } from "./ops-
|
|
2
|
-
import { t as cliContext } from "./context-
|
|
1
|
+
import { t as diffDocument } from "./ops-DQbZmYRF.js";
|
|
2
|
+
import { t as cliContext } from "./context-DGp1jwN5.js";
|
|
3
3
|
import chalk from "chalk";
|
|
4
4
|
//#region src/cli/diff.ts
|
|
5
5
|
const MARK = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as EXPORT_FORMATS } from "./sdk-CqNZzbkz.js";
|
|
2
|
-
import { C as exportDocument, R as listDocIds, S as closeRenderSession } from "./session-
|
|
3
|
-
import "./ops-
|
|
4
|
-
import { t as cliContext } from "./context-
|
|
2
|
+
import { C as exportDocument, R as listDocIds, S as closeRenderSession } from "./session-DdaKKd7_.js";
|
|
3
|
+
import "./ops-DQbZmYRF.js";
|
|
4
|
+
import { t as cliContext } from "./context-DGp1jwN5.js";
|
|
5
5
|
import chalk from "chalk";
|
|
6
6
|
//#region src/cli/export.ts
|
|
7
7
|
const FORMATS = EXPORT_FORMATS;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as importMarkdown } from "./session-
|
|
2
|
-
import "./ops-
|
|
3
|
-
import { t as cliContext } from "./context-
|
|
1
|
+
import { T as importMarkdown } from "./session-DdaKKd7_.js";
|
|
2
|
+
import "./ops-DQbZmYRF.js";
|
|
3
|
+
import { t as cliContext } from "./context-DGp1jwN5.js";
|
|
4
4
|
import chalk from "chalk";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
//#region src/cli/import.ts
|
package/dist/ops/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { i as ORIENTATIONS, o as PAGE_SIZE_NAMES, r as EXPORT_FORMATS } from "../sdk-CqNZzbkz.js";
|
|
2
|
-
import { A as assertExpectedSource, B as readDocument, C as exportDocument, D as listRevisions, E as slugify, F as deleteDocument, H as resolveEntry, I as docDir, L as duplicateDocument, M as withFileLock, N as OpsError, O as readChanges, P as createDocument, R as listDocIds, S as closeRenderSession, T as importMarkdown, U as writeDocument, V as renameDocument, W as makeContext, _ as listFolders, a as readText, b as writeAsset, c as writeTexts, d as suggestDocId, f as createFolder, g as listAssets, h as findAssetUsages, i as addComment, j as hashSource, k as revertChange, l as createFromTemplate, m as fileDocument, o as writeEdits, p as deleteAsset, s as writeText, u as listTemplates, v as listThemes, w as renderDocPage, x as checkLayout, y as readTheme, z as listDocuments } from "../session-
|
|
3
|
-
import { t as diffDocument } from "../ops-
|
|
2
|
+
import { A as assertExpectedSource, B as readDocument, C as exportDocument, D as listRevisions, E as slugify, F as deleteDocument, H as resolveEntry, I as docDir, L as duplicateDocument, M as withFileLock, N as OpsError, O as readChanges, P as createDocument, R as listDocIds, S as closeRenderSession, T as importMarkdown, U as writeDocument, V as renameDocument, W as makeContext, _ as listFolders, a as readText, b as writeAsset, c as writeTexts, d as suggestDocId, f as createFolder, g as listAssets, h as findAssetUsages, i as addComment, j as hashSource, k as revertChange, l as createFromTemplate, m as fileDocument, o as writeEdits, p as deleteAsset, s as writeText, u as listTemplates, v as listThemes, w as renderDocPage, x as checkLayout, y as readTheme, z as listDocuments } from "../session-DdaKKd7_.js";
|
|
3
|
+
import { t as diffDocument } from "../ops-DQbZmYRF.js";
|
|
4
4
|
export { EXPORT_FORMATS, ORIENTATIONS, OpsError, PAGE_SIZE_NAMES, addComment, assertExpectedSource, checkLayout, closeRenderSession, createDocument, createFolder, createFromTemplate, deleteAsset, deleteDocument, diffDocument, docDir, duplicateDocument, exportDocument, fileDocument, findAssetUsages, hashSource, importMarkdown, listAssets, listDocIds, listDocuments, listFolders, listRevisions, listTemplates, listThemes, makeContext, readChanges, readDocument, readText, readTheme, renameDocument, renderDocPage, resolveEntry, revertChange, slugify, suggestDocId, withFileLock, writeAsset, writeDocument, writeEdits, writeText, writeTexts };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as resolveEntry, N as OpsError, n as createRenderSession, t as RenderUnavailableError } from "./session-
|
|
1
|
+
import { H as resolveEntry, N as OpsError, n as createRenderSession, t as RenderUnavailableError } from "./session-DdaKKd7_.js";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
import { execFile } from "node:child_process";
|