gutterpress 0.10.10-alpha.2 → 0.10.10-alpha.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/dist/api/index.d.ts +1 -1
- package/dist/api/index.js +3 -1
- package/dist/{audit-wcmbgh39.js → audit-sb0abmqy.js} +3 -3
- package/dist/{build-c1w6kqpv.js → build-e54deg18.js} +3 -3
- package/dist/{cli-scqp638v.js → cli-1prnz7c8.js} +1 -1
- package/dist/{cli-2rswy18t.js → cli-d7k5ykyx.js} +1 -1
- package/dist/{cli-n0vgey6x.js → cli-x4krgssg.js} +2 -2
- package/dist/cli.js +14 -14
- package/dist/{doctor-drv36btj.js → doctor-es2cw92p.js} +2 -2
- package/dist/{ext-xqx26xvy.js → ext-06srzer2.js} +3 -3
- package/dist/{index-1he93sjd.js → index-ryjmpyq6.js} +33 -2
- package/dist/index.js +3 -1
- package/dist/lib/remote-auth/sync.d.ts +35 -0
- package/dist/{lint-ejzmx14j.js → lint-2pgsfsp6.js} +3 -3
- package/dist/{new-g3q3h4s5.js → new-wyhadpt4.js} +3 -3
- package/dist/{preflight-w5z2vfhx.js → preflight-wbfd5ma1.js} +3 -3
- package/dist/{preview-9s22dq77.js → preview-w9bp0fgf.js} +3 -3
- package/dist/{publish-mt22ewpk.js → publish-9fn1hjmb.js} +3 -3
- package/dist/{validate-kkn8rmy5.js → validate-v9abv9xs.js} +3 -3
- package/package.json +1 -1
package/dist/api/index.d.ts
CHANGED
|
@@ -70,7 +70,7 @@ export { connectGenericHost, knownForgeTokenUrl, } from "../lib/remote-auth/gene
|
|
|
70
70
|
export type { GenericTokenConnectInput, GenericAuthOptions, } from "../lib/remote-auth/generic-auth.ts";
|
|
71
71
|
export { diagnoseProjectRemote, parseRemoteOrigin, forgeKindForHost, } from "../lib/remote-auth/diagnose.ts";
|
|
72
72
|
export type { ProjectRemoteDiagnosis, DiagnoseProjectRemoteOptions, RemoteProtocol, RemoteGuidanceId, ForgeKind, } from "../lib/remote-auth/diagnose.ts";
|
|
73
|
-
export { syncProject, SYNC_SNAPSHOT_MESSAGE, } from "../lib/remote-auth/sync.ts";
|
|
73
|
+
export { syncProject, refreshRemoteCopies, SYNC_SNAPSHOT_MESSAGE, } from "../lib/remote-auth/sync.ts";
|
|
74
74
|
export type { SyncOutcome, SyncProjectOptions, KeptBothFile, } from "../lib/remote-auth/sync.ts";
|
|
75
75
|
export type { SnapshotEntry, InitVersionHistoryOptions, SnapshotOptions, RestoreSnapshotOptions, RestoreVersionOptions, RestoreVersionResult, SourceProvider, } from "../lib/source-provider.ts";
|
|
76
76
|
export { runPublish, resolvePublishRequest, resolvePublishFormat, } from "../lib/publish/run-publish.ts";
|
package/dist/api/index.js
CHANGED
|
@@ -90,6 +90,7 @@ import {
|
|
|
90
90
|
readManifestFields,
|
|
91
91
|
readPublishSettings,
|
|
92
92
|
readSnippet,
|
|
93
|
+
refreshRemoteCopies,
|
|
93
94
|
removeExtension,
|
|
94
95
|
reorderExtensions,
|
|
95
96
|
requireGoogleClientCredentials,
|
|
@@ -123,7 +124,7 @@ import {
|
|
|
123
124
|
syncProject,
|
|
124
125
|
testRemoteAccess,
|
|
125
126
|
validateProjectExtensions
|
|
126
|
-
} from "../index-
|
|
127
|
+
} from "../index-ryjmpyq6.js";
|
|
127
128
|
import {
|
|
128
129
|
BuildError,
|
|
129
130
|
DEFAULT_PRINT_OPTS,
|
|
@@ -188,6 +189,7 @@ export {
|
|
|
188
189
|
repoRootForSource,
|
|
189
190
|
reorderExtensions,
|
|
190
191
|
removeExtension,
|
|
192
|
+
refreshRemoteCopies,
|
|
191
193
|
readyProbeExpr,
|
|
192
194
|
readSnippet,
|
|
193
195
|
readPublishSettings,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executeAndReport
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-x4krgssg.js";
|
|
4
4
|
import {
|
|
5
5
|
log
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-d7k5ykyx.js";
|
|
7
7
|
import {
|
|
8
8
|
UsageError,
|
|
9
9
|
rejectExtraPositionals,
|
|
10
10
|
rejectUnknownFlags
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-1prnz7c8.js";
|
|
12
12
|
import"./cli-k8f9eb12.js";
|
|
13
13
|
import"./cli-c41yr7he.js";
|
|
14
14
|
import {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runBuild,
|
|
3
3
|
splitOutPath
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-x4krgssg.js";
|
|
5
5
|
import {
|
|
6
6
|
log
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-d7k5ykyx.js";
|
|
8
8
|
import {
|
|
9
9
|
UsageError,
|
|
10
10
|
parseFormat,
|
|
11
11
|
parsePdfxFlavor,
|
|
12
12
|
rejectExtraPositionals,
|
|
13
13
|
rejectUnknownFlags
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-1prnz7c8.js";
|
|
15
15
|
import"./cli-k8f9eb12.js";
|
|
16
16
|
import"./cli-c41yr7he.js";
|
|
17
17
|
import {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
// package.json
|
|
5
5
|
var package_default = {
|
|
6
6
|
name: "gutterpress",
|
|
7
|
-
version: "0.10.10-alpha.
|
|
7
|
+
version: "0.10.10-alpha.3",
|
|
8
8
|
description: "Markdown-to-PDF converter for professional print layout using a native Chromium print engine and Ghostscript.",
|
|
9
9
|
author: "itlackey",
|
|
10
10
|
license: "MPL-2.0",
|
|
@@ -13,12 +13,12 @@ import {
|
|
|
13
13
|
stampCreator,
|
|
14
14
|
stripAnnotations,
|
|
15
15
|
warn
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-d7k5ykyx.js";
|
|
17
17
|
import {
|
|
18
18
|
DEBOUNCE,
|
|
19
19
|
UsageError,
|
|
20
20
|
resolvePort
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-1prnz7c8.js";
|
|
22
22
|
import {
|
|
23
23
|
MARGIN_BOX_IGNORED_PROPERTIES,
|
|
24
24
|
RENDER_TIMEOUT_MS,
|
package/dist/cli.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
UsageError,
|
|
7
7
|
package_default,
|
|
8
8
|
rejectUnknownFlags
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-1prnz7c8.js";
|
|
10
10
|
import {
|
|
11
11
|
EXIT_CODES
|
|
12
12
|
} from "./cli-46ycxe6r.js";
|
|
@@ -18,16 +18,16 @@ import {
|
|
|
18
18
|
import { defineCommand, parseArgs, runMain } from "citty";
|
|
19
19
|
import { statSync } from "node:fs";
|
|
20
20
|
var SUBCOMMANDS = {
|
|
21
|
-
new: () => import("./new-
|
|
22
|
-
preview: () => import("./preview-
|
|
23
|
-
build: () => import("./build-
|
|
24
|
-
publish: () => import("./publish-
|
|
25
|
-
lint: () => import("./lint-
|
|
26
|
-
validate: () => import("./validate-
|
|
27
|
-
audit: () => import("./audit-
|
|
28
|
-
preflight: () => import("./preflight-
|
|
29
|
-
doctor: () => import("./doctor-
|
|
30
|
-
ext: () => import("./ext-
|
|
21
|
+
new: () => import("./new-wyhadpt4.js").then((m) => m.default),
|
|
22
|
+
preview: () => import("./preview-w9bp0fgf.js").then((m) => m.default),
|
|
23
|
+
build: () => import("./build-e54deg18.js").then((m) => m.default),
|
|
24
|
+
publish: () => import("./publish-9fn1hjmb.js").then((m) => m.default),
|
|
25
|
+
lint: () => import("./lint-2pgsfsp6.js").then((m) => m.default),
|
|
26
|
+
validate: () => import("./validate-v9abv9xs.js").then((m) => m.default),
|
|
27
|
+
audit: () => import("./audit-sb0abmqy.js").then((m) => m.default),
|
|
28
|
+
preflight: () => import("./preflight-wbfd5ma1.js").then((m) => m.default),
|
|
29
|
+
doctor: () => import("./doctor-es2cw92p.js").then((m) => m.default),
|
|
30
|
+
ext: () => import("./ext-06srzer2.js").then((m) => m.default)
|
|
31
31
|
};
|
|
32
32
|
var VERSION = package_default.version;
|
|
33
33
|
var main = defineCommand({
|
|
@@ -52,7 +52,7 @@ async function preflightRequiredInvocations(rawArgs) {
|
|
|
52
52
|
const [command, ...commandArgs] = rawArgs;
|
|
53
53
|
try {
|
|
54
54
|
if (command === "new") {
|
|
55
|
-
const { newArgs } = await import("./new-
|
|
55
|
+
const { newArgs } = await import("./new-wyhadpt4.js");
|
|
56
56
|
rejectUnknownFlags(commandArgs, newArgs, "new");
|
|
57
57
|
const parsed = parseArgs(commandArgs, {
|
|
58
58
|
...newArgs,
|
|
@@ -64,7 +64,7 @@ async function preflightRequiredInvocations(rawArgs) {
|
|
|
64
64
|
return;
|
|
65
65
|
}
|
|
66
66
|
if (command === "preflight") {
|
|
67
|
-
const { preflightArgs } = await import("./preflight-
|
|
67
|
+
const { preflightArgs } = await import("./preflight-wbfd5ma1.js");
|
|
68
68
|
rejectUnknownFlags(commandArgs, preflightArgs, "preflight");
|
|
69
69
|
const parsed = parseArgs(commandArgs, {
|
|
70
70
|
...preflightArgs,
|
|
@@ -84,7 +84,7 @@ async function preflightRequiredInvocations(rawArgs) {
|
|
|
84
84
|
}
|
|
85
85
|
if (subcommand.startsWith("-"))
|
|
86
86
|
return;
|
|
87
|
-
const { EXT_SUBCOMMANDS, extAddArgs, extRemoveArgs, extEnableArgs, extDisableArgs } = await import("./ext-
|
|
87
|
+
const { EXT_SUBCOMMANDS, extAddArgs, extRemoveArgs, extEnableArgs, extDisableArgs } = await import("./ext-06srzer2.js");
|
|
88
88
|
if (!EXT_SUBCOMMANDS.includes(subcommand)) {
|
|
89
89
|
throw new UsageError(`gutterpress ext: unknown command "${subcommand}"`);
|
|
90
90
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getSystemDiagnostics,
|
|
3
3
|
log
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-d7k5ykyx.js";
|
|
5
5
|
import {
|
|
6
6
|
UsageError,
|
|
7
7
|
rejectExtraPositionals,
|
|
8
8
|
rejectUnknownFlags
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-1prnz7c8.js";
|
|
10
10
|
import"./cli-c41yr7he.js";
|
|
11
11
|
import"./cli-46ycxe6r.js";
|
|
12
12
|
import"./cli-37x76zdn.js";
|
|
@@ -10,15 +10,15 @@ import {
|
|
|
10
10
|
removeExtension,
|
|
11
11
|
searchNpmExtensions,
|
|
12
12
|
setExtensionEnabled
|
|
13
|
-
} from "./cli-
|
|
14
|
-
import"./cli-
|
|
13
|
+
} from "./cli-x4krgssg.js";
|
|
14
|
+
import"./cli-d7k5ykyx.js";
|
|
15
15
|
import {
|
|
16
16
|
UsageError,
|
|
17
17
|
exitForUsage,
|
|
18
18
|
rejectExtraPositionals,
|
|
19
19
|
rejectUnknownFlags,
|
|
20
20
|
resolveProjectDir
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-1prnz7c8.js";
|
|
22
22
|
import"./cli-k8f9eb12.js";
|
|
23
23
|
import"./cli-c41yr7he.js";
|
|
24
24
|
import {
|
|
@@ -4839,7 +4839,7 @@ import git from "isomorphic-git";
|
|
|
4839
4839
|
// package.json
|
|
4840
4840
|
var package_default = {
|
|
4841
4841
|
name: "gutterpress",
|
|
4842
|
-
version: "0.10.10-alpha.
|
|
4842
|
+
version: "0.10.10-alpha.3",
|
|
4843
4843
|
description: "Markdown-to-PDF converter for professional print layout using a native Chromium print engine and Ghostscript.",
|
|
4844
4844
|
author: "itlackey",
|
|
4845
4845
|
license: "MPL-2.0",
|
|
@@ -15066,6 +15066,37 @@ async function syncProject(options) {
|
|
|
15066
15066
|
}
|
|
15067
15067
|
});
|
|
15068
15068
|
}
|
|
15069
|
+
async function refreshRemoteCopies(options) {
|
|
15070
|
+
const http3 = options.httpClient ?? defaultGitHttp;
|
|
15071
|
+
try {
|
|
15072
|
+
const dir = await repoDirFor(options.projectDir);
|
|
15073
|
+
const transport = await resolveTransport(dir, {
|
|
15074
|
+
...options.credential ? { credential: options.credential } : {},
|
|
15075
|
+
...options.tokenStore ? { tokenStore: options.tokenStore } : {}
|
|
15076
|
+
});
|
|
15077
|
+
await git6.fetch({
|
|
15078
|
+
fs: gitFs,
|
|
15079
|
+
http: http3,
|
|
15080
|
+
dir,
|
|
15081
|
+
remote: transport.remote,
|
|
15082
|
+
singleBranch: false,
|
|
15083
|
+
prune: true,
|
|
15084
|
+
tags: false,
|
|
15085
|
+
...onAuthFor(transport.credential)
|
|
15086
|
+
});
|
|
15087
|
+
return { refreshed: true };
|
|
15088
|
+
} catch (e) {
|
|
15089
|
+
const message = e?.message ?? "";
|
|
15090
|
+
if (message === MSG_NO_REMOTE || message === MSG_SSH_REMOTE) {
|
|
15091
|
+
return { refreshed: false, reason: "no-remote" };
|
|
15092
|
+
}
|
|
15093
|
+
const status = e?.data?.statusCode;
|
|
15094
|
+
if (status === 401 || status === 403 || status === 404) {
|
|
15095
|
+
return { refreshed: false, reason: "auth" };
|
|
15096
|
+
}
|
|
15097
|
+
return { refreshed: false, reason: "offline" };
|
|
15098
|
+
}
|
|
15099
|
+
}
|
|
15069
15100
|
// src/lib/publish/run-publish.ts
|
|
15070
15101
|
import { readdir as readdir11, stat as stat11 } from "node:fs/promises";
|
|
15071
15102
|
import path28 from "node:path";
|
|
@@ -16638,4 +16669,4 @@ async function setPublishProviderConfig(projectDir, providerId, values) {
|
|
|
16638
16669
|
await writeManifestDoc(file, doc);
|
|
16639
16670
|
return settingsFromDoc(doc);
|
|
16640
16671
|
}
|
|
16641
|
-
export { DEFAULT_NPM_REGISTRY, npmRegistryUrl, PLUGINS_DIR, BUNDLED_EXTENSIONS, isBundledExtension, isPathSpecifier, parseExtensionSpecifier, PRESET_IDS, PRESETS, TARGETS, TARGET_IDS, publishTargetFor, MANIFEST_FILENAMES, hasProjectManifest, loadManifest, loadManifestWithPath, resolveConfig, SYNC_SNAPSHOT_MESSAGE, log, resolveActiveStyles, listProjectStyles, EXTENSION_MANIFEST_FILENAME, readExtensionMeta, extensionStyleList, extensionEntry, extensionCarries, pathEscapesFolder, assertExtensionContained, resolveExtension, loadPluginsWithCss, formatReport, getChecks, getCheckById, resolveCheckSelectors, ruleRemoteUrls, ruleRiskyProps, ruleSyntax, rulePageContainment, checkCss, inspectImage, runChecks, checkToolAvailability, reportMissingTools, executeValidation, executeAndReport, splitOutPath, runBuild, openPath, startPreviewServer, defaultConfigDir, FileTokenStore, extractUrlCredential, getSystemDiagnostics, EXTENSIONS_DIR, RECOMMENDED_EXTENSIONS, BUILT_IN_STYLE_SET_IDS, sameExtension, listProjectExtensions, describeExtension, setExtensionEnabled, reorderExtensions, removeExtension, addExtension, listBuiltInStyleSets, addBuiltInStyleSet, validateProjectExtensions, readExtensionCss, slugifyProjectName, escapeYamlScalar, scaffoldProject, adoptFolder, EXTENSION_KINDS, RESERVED_PREFIX, resolveExtensionPrefix, scaffoldExtension, BUILT_IN_TEMPLATE_IDS, listBuiltInTemplates, saveProjectAsTemplate, listCustomTemplates, importTemplateFromFolder, SNIPPETS_DIR, extractVariables, substituteVariables, listSnippets, readSnippet, saveSnippet, deleteSnippet, listMergedSnippets, readExtensionSnippet, importExtensionFromFile, importExtensionFromUrl, MAX_SEARCH_BYTES, SEARCH_KEYWORDS, searchNpmExtensions, setManifestFields, readManifestFields, setActiveStyles, AUTO_SNAPSHOT_DEFAULT_MINUTES, AUTO_SYNC_MIN_MINUTES, AUTO_SYNC_MAX_MINUTES, AUTO_SYNC_DEFAULT_MINUTES, AUTO_SYNC_PUSH_INTERVAL_MINUTES, autoSnapshotDelayMs, autoSyncDelayMs, isGitInternalPath, resolveGitHubClientId, GITHUB_HOST, GitHubAuthProvider, GDRIVE_HOST, resolveGoogleClientId, resolveGoogleClientSecret, GOOGLE_NOT_CONFIGURED_MESSAGE, requireGoogleClientCredentials, pkceChallengeFromVerifier, GoogleAuthProvider, revokeGoogleCredential, publishCredentialKey, publishConnectionStatus, listPublishAccounts, connectGoogleDrive, listGitHubRepositories, listRepoBooks, listGitHubBranches, sanitizeCloneFolderName, cloneRepository, isSshRemoteUrl, testRemoteAccess, knownForgeTokenUrl, connectGenericHost, parseRemoteOrigin, forgeKindForHost, diagnoseProjectRemote, syncProject, listPublishProviders, publishProviderFor, resolvePublishFormat, resolvePublishRequest, runPublish, connectPublishProvider, disconnectPublishCredential, PublishSelectionsStore, readPublishSettings, setPublishProviderConfig };
|
|
16672
|
+
export { DEFAULT_NPM_REGISTRY, npmRegistryUrl, PLUGINS_DIR, BUNDLED_EXTENSIONS, isBundledExtension, isPathSpecifier, parseExtensionSpecifier, PRESET_IDS, PRESETS, TARGETS, TARGET_IDS, publishTargetFor, MANIFEST_FILENAMES, hasProjectManifest, loadManifest, loadManifestWithPath, resolveConfig, SYNC_SNAPSHOT_MESSAGE, log, resolveActiveStyles, listProjectStyles, EXTENSION_MANIFEST_FILENAME, readExtensionMeta, extensionStyleList, extensionEntry, extensionCarries, pathEscapesFolder, assertExtensionContained, resolveExtension, loadPluginsWithCss, formatReport, getChecks, getCheckById, resolveCheckSelectors, ruleRemoteUrls, ruleRiskyProps, ruleSyntax, rulePageContainment, checkCss, inspectImage, runChecks, checkToolAvailability, reportMissingTools, executeValidation, executeAndReport, splitOutPath, runBuild, openPath, startPreviewServer, defaultConfigDir, FileTokenStore, extractUrlCredential, getSystemDiagnostics, EXTENSIONS_DIR, RECOMMENDED_EXTENSIONS, BUILT_IN_STYLE_SET_IDS, sameExtension, listProjectExtensions, describeExtension, setExtensionEnabled, reorderExtensions, removeExtension, addExtension, listBuiltInStyleSets, addBuiltInStyleSet, validateProjectExtensions, readExtensionCss, slugifyProjectName, escapeYamlScalar, scaffoldProject, adoptFolder, EXTENSION_KINDS, RESERVED_PREFIX, resolveExtensionPrefix, scaffoldExtension, BUILT_IN_TEMPLATE_IDS, listBuiltInTemplates, saveProjectAsTemplate, listCustomTemplates, importTemplateFromFolder, SNIPPETS_DIR, extractVariables, substituteVariables, listSnippets, readSnippet, saveSnippet, deleteSnippet, listMergedSnippets, readExtensionSnippet, importExtensionFromFile, importExtensionFromUrl, MAX_SEARCH_BYTES, SEARCH_KEYWORDS, searchNpmExtensions, setManifestFields, readManifestFields, setActiveStyles, AUTO_SNAPSHOT_DEFAULT_MINUTES, AUTO_SYNC_MIN_MINUTES, AUTO_SYNC_MAX_MINUTES, AUTO_SYNC_DEFAULT_MINUTES, AUTO_SYNC_PUSH_INTERVAL_MINUTES, autoSnapshotDelayMs, autoSyncDelayMs, isGitInternalPath, resolveGitHubClientId, GITHUB_HOST, GitHubAuthProvider, GDRIVE_HOST, resolveGoogleClientId, resolveGoogleClientSecret, GOOGLE_NOT_CONFIGURED_MESSAGE, requireGoogleClientCredentials, pkceChallengeFromVerifier, GoogleAuthProvider, revokeGoogleCredential, publishCredentialKey, publishConnectionStatus, listPublishAccounts, connectGoogleDrive, listGitHubRepositories, listRepoBooks, listGitHubBranches, sanitizeCloneFolderName, cloneRepository, isSshRemoteUrl, testRemoteAccess, knownForgeTokenUrl, connectGenericHost, parseRemoteOrigin, forgeKindForHost, diagnoseProjectRemote, syncProject, refreshRemoteCopies, listPublishProviders, publishProviderFor, resolvePublishFormat, resolvePublishRequest, runPublish, connectPublishProvider, disconnectPublishCredential, PublishSelectionsStore, readPublishSettings, setPublishProviderConfig };
|
package/dist/index.js
CHANGED
|
@@ -102,6 +102,7 @@ import {
|
|
|
102
102
|
readManifestFields,
|
|
103
103
|
readPublishSettings,
|
|
104
104
|
readSnippet,
|
|
105
|
+
refreshRemoteCopies,
|
|
105
106
|
removeExtension,
|
|
106
107
|
reorderExtensions,
|
|
107
108
|
reportMissingTools,
|
|
@@ -142,7 +143,7 @@ import {
|
|
|
142
143
|
syncProject,
|
|
143
144
|
testRemoteAccess,
|
|
144
145
|
validateProjectExtensions
|
|
145
|
-
} from "./index-
|
|
146
|
+
} from "./index-ryjmpyq6.js";
|
|
146
147
|
import {
|
|
147
148
|
BUILD_DIAGNOSTIC_CODES
|
|
148
149
|
} from "./index-a0e2253t.js";
|
|
@@ -293,6 +294,7 @@ export {
|
|
|
293
294
|
repoRootForSource,
|
|
294
295
|
reorderExtensions,
|
|
295
296
|
removeExtension,
|
|
297
|
+
refreshRemoteCopies,
|
|
296
298
|
readyProbeExpr,
|
|
297
299
|
readSnippet,
|
|
298
300
|
readPublishSettings,
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { defaultGitHttp } from "./git-http.ts";
|
|
1
2
|
import { onAuthFor } from "./transport.ts";
|
|
2
3
|
import type { SyncOutcome, SyncProjectOptions } from "./sync-types.ts";
|
|
4
|
+
import type { HostCredential, TokenStore } from "./token-store.ts";
|
|
3
5
|
export { onAuthFor };
|
|
4
6
|
export { SYNC_SNAPSHOT_MESSAGE } from "./sync-messages.ts";
|
|
5
7
|
export type { KeptBothFile, SyncOutcome, SyncProjectOptions, } from "./sync-types.ts";
|
|
@@ -26,3 +28,36 @@ export declare function isUnrelatedHistories(e: unknown): boolean;
|
|
|
26
28
|
* outcomes — everything is reported through {@link SyncOutcome}.
|
|
27
29
|
*/
|
|
28
30
|
export declare function syncProject(options: SyncProjectOptions): Promise<SyncOutcome>;
|
|
31
|
+
/**
|
|
32
|
+
* Fetch every branch the remote has, so the project's copy list reflects what
|
|
33
|
+
* exists online rather than only what this clone happened to fetch before.
|
|
34
|
+
*
|
|
35
|
+
* The copy picker reads refs off disk (`listLocalBranches`). That makes a
|
|
36
|
+
* branch pushed from anywhere else — another machine, the web UI, an agent
|
|
37
|
+
* opening a PR — invisible here until someone runs `git fetch` in a terminal,
|
|
38
|
+
* which is precisely the thing this app exists to avoid. So the picker calls
|
|
39
|
+
* this first.
|
|
40
|
+
*
|
|
41
|
+
* Unlike `fetchRemoteTip` this deliberately does NOT use `singleBranch`: the
|
|
42
|
+
* whole point is the branches we do not have yet. It only ever writes
|
|
43
|
+
* remote-tracking refs (`refs/remotes/<remote>/*`) — no local branch, no
|
|
44
|
+
* working-tree change, no merge — so it is safe to call on a dirty tree.
|
|
45
|
+
* `prune` drops tracking refs for branches deleted online, so the list cannot
|
|
46
|
+
* offer a copy that is gone.
|
|
47
|
+
*
|
|
48
|
+
* Best-effort by contract: offline, unauthenticated, or no remote at all
|
|
49
|
+
* resolves to `{ refreshed: false, reason }` rather than throwing. A stale
|
|
50
|
+
* list beats an error dialog over a control the author did not explicitly ask
|
|
51
|
+
* to sync — but it reports WHY, because a picker that silently omits copies
|
|
52
|
+
* is indistinguishable from a broken one, which is the bug this whole
|
|
53
|
+
* function exists to fix.
|
|
54
|
+
*/
|
|
55
|
+
export declare function refreshRemoteCopies(options: {
|
|
56
|
+
projectDir: string;
|
|
57
|
+
credential?: HostCredential;
|
|
58
|
+
tokenStore?: TokenStore;
|
|
59
|
+
httpClient?: typeof defaultGitHttp;
|
|
60
|
+
}): Promise<{
|
|
61
|
+
refreshed: boolean;
|
|
62
|
+
reason?: "no-remote" | "auth" | "offline";
|
|
63
|
+
}>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MANIFEST_FILENAMES,
|
|
3
3
|
runLint
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-x4krgssg.js";
|
|
5
5
|
import {
|
|
6
6
|
log
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-d7k5ykyx.js";
|
|
8
8
|
import {
|
|
9
9
|
UsageError,
|
|
10
10
|
rejectExtraPositionals,
|
|
11
11
|
rejectUnknownFlags
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-1prnz7c8.js";
|
|
13
13
|
import"./cli-k8f9eb12.js";
|
|
14
14
|
import"./cli-c41yr7he.js";
|
|
15
15
|
import {
|
|
@@ -7,15 +7,15 @@ import {
|
|
|
7
7
|
TARGET_IDS,
|
|
8
8
|
scaffoldExtension,
|
|
9
9
|
scaffoldProject
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-x4krgssg.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveGhostscript
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-d7k5ykyx.js";
|
|
14
14
|
import {
|
|
15
15
|
UsageError,
|
|
16
16
|
rejectExtraPositionals,
|
|
17
17
|
rejectUnknownFlags
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-1prnz7c8.js";
|
|
19
19
|
import"./cli-k8f9eb12.js";
|
|
20
20
|
import {
|
|
21
21
|
isToolAvailable
|
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
executeValidation,
|
|
3
3
|
publishTargetFor,
|
|
4
4
|
reportMissingTools
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-x4krgssg.js";
|
|
6
6
|
import {
|
|
7
7
|
log
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-d7k5ykyx.js";
|
|
9
9
|
import {
|
|
10
10
|
UsageError,
|
|
11
11
|
rejectExtraPositionals,
|
|
12
12
|
rejectUnknownFlags
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-1prnz7c8.js";
|
|
14
14
|
import"./cli-k8f9eb12.js";
|
|
15
15
|
import"./cli-c41yr7he.js";
|
|
16
16
|
import {
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
runBuild,
|
|
7
7
|
splitOutPath,
|
|
8
8
|
startPreviewServer
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-x4krgssg.js";
|
|
10
10
|
import {
|
|
11
11
|
log
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-d7k5ykyx.js";
|
|
13
13
|
import {
|
|
14
14
|
UsageError,
|
|
15
15
|
parseFormat,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
rejectExtraPositionals,
|
|
18
18
|
rejectUnknownFlags,
|
|
19
19
|
resolvePort
|
|
20
|
-
} from "./cli-
|
|
20
|
+
} from "./cli-1prnz7c8.js";
|
|
21
21
|
import"./cli-k8f9eb12.js";
|
|
22
22
|
import"./cli-c41yr7he.js";
|
|
23
23
|
import {
|
|
@@ -11,16 +11,16 @@ import {
|
|
|
11
11
|
publishProviderFor,
|
|
12
12
|
resolvePublishFormat,
|
|
13
13
|
runPublish
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-x4krgssg.js";
|
|
15
15
|
import {
|
|
16
16
|
FileTokenStore,
|
|
17
17
|
log
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-d7k5ykyx.js";
|
|
19
19
|
import {
|
|
20
20
|
UsageError,
|
|
21
21
|
rejectExtraPositionals,
|
|
22
22
|
rejectUnknownFlags
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-1prnz7c8.js";
|
|
24
24
|
import"./cli-k8f9eb12.js";
|
|
25
25
|
import"./cli-c41yr7he.js";
|
|
26
26
|
import {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executeAndReport
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-x4krgssg.js";
|
|
4
4
|
import {
|
|
5
5
|
log
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-d7k5ykyx.js";
|
|
7
7
|
import {
|
|
8
8
|
UsageError,
|
|
9
9
|
rejectExtraPositionals,
|
|
10
10
|
rejectUnknownFlags
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-1prnz7c8.js";
|
|
12
12
|
import"./cli-k8f9eb12.js";
|
|
13
13
|
import"./cli-c41yr7he.js";
|
|
14
14
|
import {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gutterpress",
|
|
3
|
-
"version": "0.10.10-alpha.
|
|
3
|
+
"version": "0.10.10-alpha.3",
|
|
4
4
|
"description": "Markdown-to-PDF converter for professional print layout using a native Chromium print engine and Ghostscript.",
|
|
5
5
|
"author": "itlackey",
|
|
6
6
|
"license": "MPL-2.0",
|