@superdoc-dev/cli 0.4.0-next.12 → 0.4.0-next.13

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.
Files changed (2) hide show
  1. package/dist/index.js +10 -5
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -320803,6 +320803,12 @@ function resolveCollaborationProfile(input2, sessionId) {
320803
320803
  bootstrapSettlingMs: input2.bootstrapSettlingMs
320804
320804
  };
320805
320805
  }
320806
+ function buildShorthandCollaborationInput(params4) {
320807
+ return parseCollaborationInput({
320808
+ providerType: DEFAULT_SHORTHAND_COLLABORATION_PROVIDER_TYPE,
320809
+ ...params4
320810
+ });
320811
+ }
320806
320812
  function resolveCollaborationToken(profile) {
320807
320813
  if (!profile.tokenEnv)
320808
320814
  return;
@@ -320890,7 +320896,7 @@ function createCollaborationRuntime(profile) {
320890
320896
  }
320891
320897
  };
320892
320898
  }
320893
- var DEFAULT_SYNC_TIMEOUT_MS = 1e4, SYNC_POLL_INTERVAL_MS = 25, ENV_VAR_NAME_PATTERN;
320899
+ var DEFAULT_SHORTHAND_COLLABORATION_PROVIDER_TYPE = "y-websocket", DEFAULT_SYNC_TIMEOUT_MS = 1e4, SYNC_POLL_INTERVAL_MS = 25, ENV_VAR_NAME_PATTERN;
320894
320900
  var init_collaboration = __esm(() => {
320895
320901
  init_hocuspocus_provider_esm();
320896
320902
  init_y_websocket();
@@ -326104,12 +326110,11 @@ async function runOpen(tokens, context) {
326104
326110
  payload.bootstrapSettlingMs = bootstrapSettlingMs;
326105
326111
  collaborationInput = parseCollaborationInput(payload);
326106
326112
  } else if (collabUrl) {
326107
- collaborationInput = parseCollaborationInput({
326108
- providerType: "hocuspocus",
326113
+ collaborationInput = buildShorthandCollaborationInput({
326109
326114
  url: collabUrl,
326110
326115
  documentId: collabDocumentId,
326111
- ...onMissing != null ? { onMissing } : {},
326112
- ...bootstrapSettlingMs != null ? { bootstrapSettlingMs } : {}
326116
+ onMissing,
326117
+ bootstrapSettlingMs
326113
326118
  });
326114
326119
  } else if (collabDocumentId) {
326115
326120
  throw new CliError("MISSING_REQUIRED", "open: --collab-document-id requires --collab-url.");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/cli",
3
- "version": "0.4.0-next.12",
3
+ "version": "0.4.0-next.13",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "superdoc": "./dist/index.js"
@@ -20,21 +20,21 @@
20
20
  "@types/bun": "^1.3.8",
21
21
  "@types/node": "22.19.2",
22
22
  "typescript": "^5.9.2",
23
- "@superdoc/pm-adapter": "0.0.0",
24
- "superdoc": "1.21.0",
25
23
  "@superdoc/document-api": "0.0.1",
26
- "@superdoc/super-editor": "0.0.1"
24
+ "superdoc": "1.21.0",
25
+ "@superdoc/super-editor": "0.0.1",
26
+ "@superdoc/pm-adapter": "0.0.0"
27
27
  },
28
28
  "module": "src/index.ts",
29
29
  "publishConfig": {
30
30
  "access": "public"
31
31
  },
32
32
  "optionalDependencies": {
33
- "@superdoc-dev/cli-darwin-arm64": "0.4.0-next.12",
34
- "@superdoc-dev/cli-darwin-x64": "0.4.0-next.12",
35
- "@superdoc-dev/cli-linux-x64": "0.4.0-next.12",
36
- "@superdoc-dev/cli-windows-x64": "0.4.0-next.12",
37
- "@superdoc-dev/cli-linux-arm64": "0.4.0-next.12"
33
+ "@superdoc-dev/cli-darwin-arm64": "0.4.0-next.13",
34
+ "@superdoc-dev/cli-darwin-x64": "0.4.0-next.13",
35
+ "@superdoc-dev/cli-linux-x64": "0.4.0-next.13",
36
+ "@superdoc-dev/cli-windows-x64": "0.4.0-next.13",
37
+ "@superdoc-dev/cli-linux-arm64": "0.4.0-next.13"
38
38
  },
39
39
  "scripts": {
40
40
  "predev": "node scripts/ensure-superdoc-build.js",