@poli-page/cli 0.10.0 → 0.12.0
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 +185 -58
- package/dist/api-client.d.ts +62 -2
- package/dist/api-client.d.ts.map +1 -1
- package/dist/api-client.js +172 -13
- package/dist/api-client.js.map +1 -1
- package/dist/api-origin.d.ts +28 -0
- package/dist/api-origin.d.ts.map +1 -0
- package/dist/api-origin.js +84 -0
- package/dist/api-origin.js.map +1 -0
- package/dist/auth.d.ts +4 -0
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +19 -13
- package/dist/auth.js.map +1 -1
- package/dist/cloud-context.d.ts +8 -0
- package/dist/cloud-context.d.ts.map +1 -1
- package/dist/cloud-context.js +14 -9
- package/dist/cloud-context.js.map +1 -1
- package/dist/cloud-link.d.ts +41 -0
- package/dist/cloud-link.d.ts.map +1 -0
- package/dist/cloud-link.js +112 -0
- package/dist/cloud-link.js.map +1 -0
- package/dist/commands/auth.d.ts +31 -8
- package/dist/commands/auth.d.ts.map +1 -1
- package/dist/commands/auth.js +72 -23
- package/dist/commands/auth.js.map +1 -1
- package/dist/commands/clone.d.ts +32 -0
- package/dist/commands/clone.d.ts.map +1 -0
- package/dist/commands/clone.js +266 -0
- package/dist/commands/clone.js.map +1 -0
- package/dist/commands/dev.d.ts +58 -3
- package/dist/commands/dev.d.ts.map +1 -1
- package/dist/commands/dev.js +335 -63
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/documents/delete.d.ts.map +1 -1
- package/dist/commands/documents/delete.js +2 -9
- package/dist/commands/documents/delete.js.map +1 -1
- package/dist/commands/documents/document-id.d.ts +2 -0
- package/dist/commands/documents/document-id.d.ts.map +1 -0
- package/dist/commands/documents/document-id.js +10 -0
- package/dist/commands/documents/document-id.js.map +1 -0
- package/dist/commands/documents/get.d.ts.map +1 -1
- package/dist/commands/documents/get.js +2 -9
- package/dist/commands/documents/get.js.map +1 -1
- package/dist/commands/documents/preview.d.ts +1 -0
- package/dist/commands/documents/preview.d.ts.map +1 -1
- package/dist/commands/documents/preview.js +89 -14
- package/dist/commands/documents/preview.js.map +1 -1
- package/dist/commands/documents/thumbnails.d.ts.map +1 -1
- package/dist/commands/documents/thumbnails.js +35 -20
- package/dist/commands/documents/thumbnails.js.map +1 -1
- package/dist/commands/env.d.ts.map +1 -1
- package/dist/commands/env.js +4 -19
- package/dist/commands/env.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +41 -34
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/link.d.ts +15 -0
- package/dist/commands/link.d.ts.map +1 -1
- package/dist/commands/link.js +88 -21
- package/dist/commands/link.js.map +1 -1
- package/dist/commands/new.d.ts.map +1 -1
- package/dist/commands/new.js +14 -13
- package/dist/commands/new.js.map +1 -1
- package/dist/commands/publish.d.ts +6 -1
- package/dist/commands/publish.d.ts.map +1 -1
- package/dist/commands/publish.js +32 -16
- package/dist/commands/publish.js.map +1 -1
- package/dist/commands/render.d.ts.map +1 -1
- package/dist/commands/render.js +23 -12
- package/dist/commands/render.js.map +1 -1
- package/dist/commands/sync.d.ts +52 -0
- package/dist/commands/sync.d.ts.map +1 -0
- package/dist/commands/sync.js +224 -0
- package/dist/commands/sync.js.map +1 -0
- package/dist/constants.d.ts +2 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +2 -0
- package/dist/constants.js.map +1 -1
- package/dist/credentials.d.ts +15 -0
- package/dist/credentials.d.ts.map +1 -1
- package/dist/credentials.js +52 -22
- package/dist/credentials.js.map +1 -1
- package/dist/dev-page.d.ts +7 -0
- package/dist/dev-page.d.ts.map +1 -1
- package/dist/dev-page.js +42 -0
- package/dist/dev-page.js.map +1 -1
- package/dist/dev-server.d.ts +19 -0
- package/dist/dev-server.d.ts.map +1 -1
- package/dist/dev-server.js +70 -8
- package/dist/dev-server.js.map +1 -1
- package/dist/draft-bases.d.ts +54 -0
- package/dist/draft-bases.d.ts.map +1 -0
- package/dist/draft-bases.js +253 -0
- package/dist/draft-bases.js.map +1 -0
- package/dist/draft-files.d.ts +96 -0
- package/dist/draft-files.d.ts.map +1 -0
- package/dist/draft-files.js +447 -0
- package/dist/draft-files.js.map +1 -0
- package/dist/exit-codes.d.ts +3 -1
- package/dist/exit-codes.d.ts.map +1 -1
- package/dist/exit-codes.js +16 -7
- package/dist/exit-codes.js.map +1 -1
- package/dist/file-watcher.d.ts +4 -1
- package/dist/file-watcher.d.ts.map +1 -1
- package/dist/file-watcher.js +26 -11
- package/dist/file-watcher.js.map +1 -1
- package/dist/format-resolver.d.ts +6 -0
- package/dist/format-resolver.d.ts.map +1 -1
- package/dist/format-resolver.js +14 -6
- package/dist/format-resolver.js.map +1 -1
- package/dist/manifest.d.ts +8 -0
- package/dist/manifest.d.ts.map +1 -1
- package/dist/manifest.js +37 -7
- package/dist/manifest.js.map +1 -1
- package/dist/manifest.schema.d.ts +4 -2
- package/dist/manifest.schema.d.ts.map +1 -1
- package/dist/manifest.schema.js +40 -7
- package/dist/manifest.schema.js.map +1 -1
- package/dist/output.d.ts +5 -0
- package/dist/output.d.ts.map +1 -1
- package/dist/output.js +7 -0
- package/dist/output.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +55 -22
- package/dist/program.js.map +1 -1
- package/dist/project-files.d.ts +26 -0
- package/dist/project-files.d.ts.map +1 -1
- package/dist/project-files.js +46 -7
- package/dist/project-files.js.map +1 -1
- package/dist/project-loader.d.ts +6 -3
- package/dist/project-loader.d.ts.map +1 -1
- package/dist/project-loader.js +36 -61
- package/dist/project-loader.js.map +1 -1
- package/dist/project-sync.d.ts +123 -18
- package/dist/project-sync.d.ts.map +1 -1
- package/dist/project-sync.js +449 -80
- package/dist/project-sync.js.map +1 -1
- package/dist/security/paths.d.ts +29 -0
- package/dist/security/paths.d.ts.map +1 -0
- package/dist/security/paths.js +109 -0
- package/dist/security/paths.js.map +1 -0
- package/dist/slug.d.ts +8 -0
- package/dist/slug.d.ts.map +1 -0
- package/dist/slug.js +15 -0
- package/dist/slug.js.map +1 -0
- package/dist/sync-engine.d.ts +14 -9
- package/dist/sync-engine.d.ts.map +1 -1
- package/dist/sync-engine.js +26 -29
- package/dist/sync-engine.js.map +1 -1
- package/dist/template-importer.d.ts.map +1 -1
- package/dist/template-importer.js +170 -59
- package/dist/template-importer.js.map +1 -1
- package/package.json +1 -1
- package/dist/commands/watch.d.ts +0 -26
- package/dist/commands/watch.d.ts.map +0 -1
- package/dist/commands/watch.js +0 -102
- package/dist/commands/watch.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-files.js","sourceRoot":"","sources":["../src/project-files.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD
|
|
1
|
+
{"version":3,"file":"project-files.js","sourceRoot":"","sources":["../src/project-files.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,iCAAiC,CAAC;AAClE,MAAM,wBAAwB,GAAG,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;AAClE,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;AACjE,wFAAwF;AACxF,MAAM,CAAC,MAAM,gBAAgB,GAAwB,IAAI,GAAG,CAAC;IAC5D,KAAK;IACL,KAAK;IACL,MAAM;IACN,KAAK;IACL,MAAM;IACN,KAAK;CACL,CAAC,CAAC;AAEH,SAAS,WAAW,CAAC,QAAgB;IACpC,MAAM,GAAG,GAAG,QAAQ,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,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AO,EAAE,IAAI,EAAE,QAAQ,EAAE,mBAAmB,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC;AAC/D,CAAC;AAED,mEAAmE;AACnE,MAAM,UAAU,oBAAoB,CAAC,KAA0B;IAC9D,OAAO,CAAC,GAAG,KAAK,CAAC;SACf,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;SAChD,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;AAC/D,CAAC"}
|
package/dist/project-loader.d.ts
CHANGED
|
@@ -37,8 +37,11 @@ export declare function unwrapMockJson(json: Record<string, unknown>): {
|
|
|
37
37
|
data: Record<string, unknown>;
|
|
38
38
|
locale: string | undefined;
|
|
39
39
|
};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
/**
|
|
41
|
+
* The bundle `poli link` sends to create the cloud project, built from the
|
|
42
|
+
* project file set (`readAllProjectFiles`, as for `poli publish`): it holds
|
|
43
|
+
* regular files inside the project only, never a symlink, so a cloned
|
|
44
|
+
* folder cannot make the link upload a file from outside it.
|
|
45
|
+
*/
|
|
43
46
|
export declare function collectProjectPayload(projectDir: string, manifest: PoliPageManifest): Promise<Record<string, unknown>>;
|
|
44
47
|
//# sourceMappingURL=project-loader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-loader.d.ts","sourceRoot":"","sources":["../src/project-loader.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"project-loader.d.ts","sourceRoot":"","sources":["../src/project-loader.ts"],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12 @@
|
|
|
1
|
-
import { readFile
|
|
1
|
+
import { readFile } from 'node:fs/promises';
|
|
2
2
|
import { join } from 'node:path';
|
|
3
|
-
import {
|
|
3
|
+
import { readProjectManifest } from './manifest.js';
|
|
4
4
|
import { MANIFEST_FILENAME } from './constants.js';
|
|
5
|
+
import { resolveInside } from './security/paths.js';
|
|
6
|
+
import { IGNORED_DIRECTORY_NAMES, isInIgnoredProjectDirectory, readAllProjectFiles, } from './project-sync.js';
|
|
7
|
+
import { toProjectFileEntries } from './project-files.js';
|
|
5
8
|
export async function loadProject(cwd) {
|
|
6
|
-
|
|
7
|
-
try {
|
|
8
|
-
manifest = await readManifest(cwd);
|
|
9
|
-
}
|
|
10
|
-
catch {
|
|
11
|
-
throw new Error(`No ${MANIFEST_FILENAME} found in ${cwd}. Are you in a Poli Page project?`);
|
|
12
|
-
}
|
|
13
|
-
return { manifest, projectDir: cwd };
|
|
9
|
+
return { manifest: await readProjectManifest(cwd), projectDir: cwd };
|
|
14
10
|
}
|
|
15
11
|
export function findTemplate(manifest, name) {
|
|
16
12
|
const entry = manifest.templates?.find((t) => t.name === name);
|
|
@@ -27,9 +23,11 @@ export function findTemplate(manifest, name) {
|
|
|
27
23
|
};
|
|
28
24
|
}
|
|
29
25
|
export async function loadTemplate(projectDir, entry) {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
const
|
|
26
|
+
// Against the project root, so a symlinked `templates/<name>` folder is
|
|
27
|
+
// refused too: the mock is sent to the API as render data.
|
|
28
|
+
const templateDir = join('templates', entry.name);
|
|
29
|
+
const htmlPath = await resolveInside(projectDir, join(templateDir, entry.template));
|
|
30
|
+
const mockPath = await resolveInside(projectDir, join(templateDir, entry.mock));
|
|
33
31
|
let html;
|
|
34
32
|
try {
|
|
35
33
|
html = await readFile(htmlPath, 'utf-8');
|
|
@@ -70,60 +68,37 @@ export function unwrapMockJson(json) {
|
|
|
70
68
|
const locale = typeof json.locale === 'string' ? json.locale : undefined;
|
|
71
69
|
return { data, locale };
|
|
72
70
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
export function createFontsResolver(projectDir) {
|
|
81
|
-
return (path) => {
|
|
82
|
-
const { readFileSync } = require('node:fs');
|
|
83
|
-
const fullPath = join(projectDir, 'assets', path);
|
|
84
|
-
return readFileSync(fullPath);
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
export async function loadTailwindCss(projectDir) {
|
|
88
|
-
try {
|
|
89
|
-
return await readFile(join(projectDir, 'tailwind.css'), 'utf-8');
|
|
90
|
-
}
|
|
91
|
-
catch {
|
|
92
|
-
return undefined;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
71
|
+
/**
|
|
72
|
+
* The bundle `poli link` sends to create the cloud project, built from the
|
|
73
|
+
* project file set (`readAllProjectFiles`, as for `poli publish`): it holds
|
|
74
|
+
* regular files inside the project only, never a symlink, so a cloned
|
|
75
|
+
* folder cannot make the link upload a file from outside it.
|
|
76
|
+
*/
|
|
95
77
|
export async function collectProjectPayload(projectDir, manifest) {
|
|
96
|
-
|
|
78
|
+
const files = await readAllProjectFiles(projectDir);
|
|
79
|
+
// The API takes template files by their name inside `templates/<name>/`.
|
|
80
|
+
// One the manifest names but the file set lacks fails the link: the cloud
|
|
81
|
+
// project would be created without it.
|
|
97
82
|
const templateFiles = [];
|
|
98
83
|
for (const tpl of manifest.templates ?? []) {
|
|
99
|
-
const
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
// Collect assets (images + fonts)
|
|
110
|
-
const imageFiles = [];
|
|
111
|
-
const assetsDir = join(projectDir, 'assets');
|
|
112
|
-
try {
|
|
113
|
-
const assetEntries = await readdir(assetsDir, { recursive: true });
|
|
114
|
-
for (const entry of assetEntries) {
|
|
115
|
-
const fullPath = join(assetsDir, entry);
|
|
116
|
-
const s = await stat(fullPath);
|
|
117
|
-
if (s.isFile() && /\.(png|jpg|jpeg|gif|svg|webp|woff2|woff|ttf|otf)$/i.test(entry)) {
|
|
118
|
-
const buffer = await readFile(fullPath);
|
|
119
|
-
imageFiles.push({ path: entry, data: buffer.toString('base64') });
|
|
84
|
+
for (const fileName of [tpl.template, tpl.mock]) {
|
|
85
|
+
const key = `templates/${tpl.name}/${fileName}`;
|
|
86
|
+
const content = files.get(key);
|
|
87
|
+
if (content === undefined && isInIgnoredProjectDirectory(key)) {
|
|
88
|
+
throw new Error(`${key} is under a folder no project command reads (${[...IGNORED_DIRECTORY_NAMES].join(', ')}): rename it.`);
|
|
89
|
+
}
|
|
90
|
+
if (content === undefined) {
|
|
91
|
+
throw new Error(`${key} is not a file of the project (missing, symlinked, or not .html, .json or .css).`);
|
|
120
92
|
}
|
|
93
|
+
templateFiles.push({ path: fileName, content });
|
|
121
94
|
}
|
|
122
95
|
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
96
|
+
// Assets go by their path under `assets/`, already base64: the file set
|
|
97
|
+
// holds only image and font files there.
|
|
98
|
+
const imageFiles = toProjectFileEntries(files)
|
|
99
|
+
.filter((file) => file.encoding === 'base64')
|
|
100
|
+
.map((file) => ({ path: file.path.slice('assets/'.length), data: file.content }));
|
|
101
|
+
const tailwindCss = files.get('tailwind.css');
|
|
127
102
|
return {
|
|
128
103
|
manifest: {
|
|
129
104
|
project: manifest.project,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-loader.js","sourceRoot":"","sources":["../src/project-loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"project-loader.js","sourceRoot":"","sources":["../src/project-loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAA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;QACjD,CAAC;IACF,CAAC;IAED,wEAAwE;IACxE,yCAAyC;IACzC,MAAM,UAAU,GAAG,oBAAoB,CAAC,KAAK,CAAC;SAC5C,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,KAAK,QAAQ,CAAC;SAC5C,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IAEnF,MAAM,WAAW,GAAG,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAE9C,OAAO;QACN,QAAQ,EAAE;YACT,OAAO,EAAE,QAAQ,CAAC,OAAO;YACzB,KAAK,EAAE,CAAC,QAAQ,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;gBACzC,GAAG,CAAC;gBACJ,MAAM,EAAE,CAAC,CAAC,MAAM,IAAI,GAAG;gBACvB,KAAK,EAAE,CAAC,CAAC,KAAK,IAAI,QAAQ;aAC1B,CAAC,CAAC;YACH,SAAS,EAAE,QAAQ,CAAC,SAAS,IAAI,EAAE;SACnC;QACD,SAAS,EAAE,aAAa;QACxB,GAAG,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;QACpD,GAAG,CAAC,WAAW,IAAI,EAAE,WAAW,EAAE,CAAC;KACnC,CAAC;AACH,CAAC"}
|
package/dist/project-sync.d.ts
CHANGED
|
@@ -1,9 +1,43 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { DraftConflictError, type ApiClient } from './api-client.js';
|
|
2
2
|
import type { CloudContext } from './cloud-context.js';
|
|
3
|
+
import { type Conflict } from './draft-files.js';
|
|
4
|
+
export declare const IGNORED_DIRECTORY_NAMES: Set<string>;
|
|
5
|
+
/**
|
|
6
|
+
* `true` when a segment of `relPath` names a directory the sync never
|
|
7
|
+
* enters. The watcher prunes directories with it: `shouldIgnoreProjectPath`
|
|
8
|
+
* is a file check and rejects `templates/`, `partials/` and `assets/`
|
|
9
|
+
* themselves, so it cannot decide which directories to walk.
|
|
10
|
+
*/
|
|
11
|
+
export declare function isInIgnoredProjectDirectory(relPath: string): boolean;
|
|
3
12
|
export declare function shouldIgnoreProjectPath(relPath: string): boolean;
|
|
4
13
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
14
|
+
* The API's limits on a project (poli-page/poli-page#1251, the publish
|
|
15
|
+
* route): at most 1000 files; a publish body of at most 5 MiB, which the
|
|
16
|
+
* raw bytes of its files never exceed once encoded; and a bundle holding at
|
|
17
|
+
* most 4 MiB of assets, so one bigger file can never be served back.
|
|
18
|
+
*/
|
|
19
|
+
export declare const PROJECT_MAX_FILES = 1000;
|
|
20
|
+
export declare const PROJECT_MAX_TOTAL_BYTES: number;
|
|
21
|
+
export declare const PROJECT_FILE_MAX_BYTES: number;
|
|
22
|
+
export interface ProjectFileStat {
|
|
23
|
+
/** Project-relative POSIX path, as sent on the wire. */
|
|
24
|
+
path: string;
|
|
25
|
+
size: number;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* List the project file set (`project-files.ts`) with each file's size,
|
|
29
|
+
* reading no file: only `poli-page.json`, `tailwind.css`, `templates/`,
|
|
30
|
+
* `partials/` and `assets/` are walked, no directory of
|
|
31
|
+
* `IGNORED_DIRECTORY_NAMES` is entered, and symlinks are neither listed nor
|
|
32
|
+
* followed. Throws a `UsageError` naming the file, or the limit, as soon as
|
|
33
|
+
* the set passes one of the API's limits, so a command calls it before any
|
|
34
|
+
* request.
|
|
35
|
+
*/
|
|
36
|
+
export declare function listProjectFiles(cwd: string): Promise<ProjectFileStat[]>;
|
|
37
|
+
/**
|
|
38
|
+
* Read every file of the project file set (`listProjectFiles`, with its
|
|
39
|
+
* limits) into a `path → content` map. The total is checked again on the
|
|
40
|
+
* bytes read: files may have grown since the listing.
|
|
7
41
|
*
|
|
8
42
|
* Paths are project-relative and POSIX-normalised so the wire format
|
|
9
43
|
* matches the comparisons performed by the API regardless of host OS.
|
|
@@ -11,8 +45,19 @@ export declare function shouldIgnoreProjectPath(relPath: string): boolean;
|
|
|
11
45
|
* assets, utf-8 verbatim for everything else.
|
|
12
46
|
*/
|
|
13
47
|
export declare function readAllProjectFiles(cwd: string): Promise<Map<string, string>>;
|
|
48
|
+
/** Local project files the sync may send, with their byte hashes. */
|
|
49
|
+
export interface SyncableFiles {
|
|
50
|
+
/** Content as `readAllProjectFiles` encodes it. */
|
|
51
|
+
contents: Map<string, string>;
|
|
52
|
+
/** SHA-256 of each file's bytes. */
|
|
53
|
+
hashes: Map<string, string>;
|
|
54
|
+
/** Files of the set no OS-portable draft path can hold: never sent, never deleted. */
|
|
55
|
+
nonPortable: string[];
|
|
56
|
+
}
|
|
57
|
+
/** `readAllProjectFiles` split into what the sync may send and what it leaves alone. */
|
|
58
|
+
export declare function readSyncableFiles(cwd: string): Promise<SyncableFiles>;
|
|
14
59
|
export interface ProjectSyncOutcome {
|
|
15
|
-
/** `false` when
|
|
60
|
+
/** `false` when no local file changed since the stored bases. */
|
|
16
61
|
changed: boolean;
|
|
17
62
|
syncedAt?: string;
|
|
18
63
|
/** Project-relative POSIX paths touched by this sync (added + modified + deleted). */
|
|
@@ -23,28 +68,88 @@ export interface ProjectSyncerOptions {
|
|
|
23
68
|
client: ApiClient;
|
|
24
69
|
ctx: CloudContext;
|
|
25
70
|
signal?: AbortSignal;
|
|
71
|
+
/**
|
|
72
|
+
* Network failures one sync request may meet before the sync gives up
|
|
73
|
+
* (`syncWithRetry`'s `maxNetworkAttempts`). Absent: it retries until it
|
|
74
|
+
* gets through or `signal` aborts.
|
|
75
|
+
*/
|
|
76
|
+
maxNetworkAttempts?: number;
|
|
77
|
+
/** Where the base store lives (`~/.polipage`); tests point it elsewhere. */
|
|
78
|
+
homeDir?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Called once per file and syncer for a local file whose path no other OS
|
|
81
|
+
* could write: it is neither sent nor deleted. Defaults to a warning.
|
|
82
|
+
*/
|
|
83
|
+
onNonPortable?: (path: string) => void;
|
|
84
|
+
/**
|
|
85
|
+
* Called once per template and syncer whose html file was deleted here
|
|
86
|
+
* while its mock is still on disk: the deletion waits for the mock (the
|
|
87
|
+
* draft deletes both together). Defaults to a warning.
|
|
88
|
+
*/
|
|
89
|
+
onHeldBack?: (path: string, mock: string) => void;
|
|
26
90
|
}
|
|
27
91
|
/**
|
|
28
|
-
*
|
|
29
|
-
* `poli dev`.
|
|
92
|
+
* Local ⇄ cloud-draft synchroniser of `poli dev` (with or without the preview).
|
|
30
93
|
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
94
|
+
* Every file it sends carries a base from the store (`draft-bases.ts`): the
|
|
95
|
+
* server hash it last agreed on, or `null` for a file the draft must not
|
|
96
|
+
* have. The API refuses the whole sync (`409 DRAFT_CONFLICT`) when one base
|
|
97
|
+
* is stale, so another person's change in the draft is never overwritten.
|
|
98
|
+
* A folder with no bases is reconciled with the draft first; nothing is
|
|
99
|
+
* ever sent without them.
|
|
34
100
|
*/
|
|
35
101
|
export interface ProjectSyncer {
|
|
36
|
-
/**
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
102
|
+
/**
|
|
103
|
+
* Start-up: reconcile when the folder has no bases, then one sync of the
|
|
104
|
+
* files changed since the stored local hashes. Same contract as `sync()`.
|
|
105
|
+
*/
|
|
106
|
+
start(): Promise<ProjectSyncOutcome>;
|
|
107
|
+
/**
|
|
108
|
+
* Send the files changed since the stored local hashes, except the
|
|
109
|
+
* paths of unresolved conflicts, then store the answer's hashes. A
|
|
110
|
+
* refused sync writes nothing: its conflicts become pending (stored,
|
|
111
|
+
* paused) and a `SyncConflictError` is thrown. While the folder has
|
|
112
|
+
* pending conflicts, from this process or an earlier one, every sync
|
|
113
|
+
* sends the other files and then throws `SyncConflictError` listing them,
|
|
114
|
+
* with what it sent in `outcome`.
|
|
115
|
+
*/
|
|
41
116
|
sync(): Promise<ProjectSyncOutcome>;
|
|
117
|
+
/** Paths of the pending conflicts as of the last sync, sorted: left out until resolved. */
|
|
118
|
+
paused(): string[];
|
|
42
119
|
/**
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
* the local files rather than whatever the draft happened to hold.
|
|
120
|
+
* Puts paths back into the sync once `resolveConflicts` has resolved
|
|
121
|
+
* them; a path still pending in the store is paused again by the next sync.
|
|
46
122
|
*/
|
|
47
|
-
|
|
123
|
+
resume(paths: string[]): void;
|
|
48
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* A sync that still has unresolved conflicts. Thrown in two cases, so none
|
|
127
|
+
* goes unreported:
|
|
128
|
+
*
|
|
129
|
+
* - the API refused the sync for conflicts it had not reported before:
|
|
130
|
+
* nothing was sent (`outcome.changed` is `false`), and the conflicts are
|
|
131
|
+
* now pending and paused, so the next sync sends every other change;
|
|
132
|
+
* - the folder already had pending conflicts: their paths were left out
|
|
133
|
+
* and every other change was sent (`outcome`).
|
|
134
|
+
*/
|
|
135
|
+
export declare class SyncConflictError extends DraftConflictError {
|
|
136
|
+
readonly outcome: ProjectSyncOutcome;
|
|
137
|
+
/** With `localSha256` (and `reconciled`), which the API's list does not carry. */
|
|
138
|
+
readonly conflicts: Conflict[];
|
|
139
|
+
constructor(conflicts: Conflict[], outcome: ProjectSyncOutcome);
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Conflicts nobody can answer here (no terminal): the paths, and the
|
|
143
|
+
* `poli sync` commands that settle them either way, with `--` before the
|
|
144
|
+
* paths so none is ever read as a flag. Exit code 7.
|
|
145
|
+
*/
|
|
146
|
+
export declare class UnresolvedConflictsError extends DraftConflictError {
|
|
147
|
+
constructor(conflicts: Conflict[]);
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* A conflict on a file the draft has and this folder does not: keeping
|
|
151
|
+
* "mine" deletes it from the draft.
|
|
152
|
+
*/
|
|
153
|
+
export declare function isNotHere(conflict: Conflict): boolean;
|
|
49
154
|
export declare function createProjectSyncer(options: ProjectSyncerOptions): ProjectSyncer;
|
|
50
155
|
//# sourceMappingURL=project-sync.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-sync.d.ts","sourceRoot":"","sources":["../src/project-sync.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"project-sync.d.ts","sourceRoot":"","sources":["../src/project-sync.ts"],"names":[],"mappings":"AAGA,OAAO,EAEN,kBAAkB,EAClB,KAAK,SAAS,EAEd,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAUvD,OAAO,EAAmC,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAalF,eAAO,MAAM,uBAAuB,aAA+D,CAAC;AAEpG;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAEpE;AAcD,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAQhE;AAqBD;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,OAAO,CAAC;AACtC,eAAO,MAAM,uBAAuB,QAAkB,CAAC;AACvD,eAAO,MAAM,sBAAsB,QAAkB,CAAC;AAMtD,MAAM,WAAW,eAAe;IAC/B,wDAAwD;IACxD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACb;AA2BD;;;;;;;;GAQG;AACH,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CAwC9E;AAqCD;;;;;;;;;GASG;AACH,wBAAsB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,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