@parall/cli 1.52.2 → 1.53.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.
@@ -1 +1 @@
1
- {"version":3,"file":"publish-source.d.ts","sourceRoot":"","sources":["../../src/lib/publish-source.ts"],"names":[],"mappings":"AA8BA,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,aAAa,EAAE,MAAM,CAAC;CACvB;AA4FD,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,aAAa,CAmCrE;AAsBD;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CASjG"}
1
+ {"version":3,"file":"publish-source.d.ts","sourceRoot":"","sources":["../../src/lib/publish-source.ts"],"names":[],"mappings":"AA8BA,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,aAAa,EAAE,MAAM,CAAC;CACvB;AA4FD,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,aAAa,CAwCrE;AAwCD;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CASjG"}
@@ -104,7 +104,12 @@ export function collectPublishSource(directory) {
104
104
  const manifest = readManifest(root, entries, directory);
105
105
  assertSourceRootIdentity(root, rootMetadata);
106
106
  const scriptNames = [...entries.keys()].filter((name) => name.endsWith('.js')).sort();
107
- if (scriptNames.length === 0) {
107
+ // An MCP clip has NO scripts by definition: it is a declaration pointing at
108
+ // a remote MCP server, and the tools come from that server's own tools/list.
109
+ // Requiring a .js file made the authoring path structurally unable to
110
+ // publish one — the CLI is how clips are authored, so this refusal applies
111
+ // to browser clips only, whose commands ARE the scripts.
112
+ if (scriptNames.length === 0 && manifest.type !== 'mcp') {
108
113
  throw new Error(`No .js files found in ${directory}`);
109
114
  }
110
115
  const files = {};
@@ -121,7 +126,25 @@ export function collectPublishSource(directory) {
121
126
  const directoryName = rawName === '' || rawName === '.' || rawName === '..' ? basename(root) : rawName;
122
127
  return { manifest, files, directoryName };
123
128
  }
124
- const PUBLISHED_METADATA_KEYS = ['type', 'domain', 'requires_login', 'server', 'auth'];
129
+ // NOT the same thing despite the naming: `server` / `auth` are top-level keys
130
+ // inherited from the v2/Edge manifest shape and nothing in the repo reads them
131
+ // today, while `mcp.server_url` / `mcp.auth` are the ACTIVE MCP declaration
132
+ // consumed by the config plane. Do not treat the flat pair as a place to
133
+ // declare an MCP server.
134
+ //
135
+ // `mcp` carries an MCP clip's own definition (server_url / auth, design §9).
136
+ // It MUST survive publish: the CLI is how a clip is authored — an agent in a
137
+ // sandbox runs `parall clip publish` — so dropping the block here would
138
+ // silently publish a clip with no declaration, and every installing org would
139
+ // be back to typing the server URL by hand. The server validates the block.
140
+ const PUBLISHED_METADATA_KEYS = [
141
+ 'type',
142
+ 'domain',
143
+ 'requires_login',
144
+ 'server',
145
+ 'auth',
146
+ 'mcp',
147
+ ];
125
148
  /**
126
149
  * The explicit `type` values the platform recognizes. Absent/null means
127
150
  * browser (the original clip.json shape predates the field), so only a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parall/cli",
3
- "version": "1.52.2",
3
+ "version": "1.53.0",
4
4
  "description": "CLI client for Parall — universal agent & human access to Parall API",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -36,14 +36,14 @@
36
36
  "diff": "^8.0.3",
37
37
  "js-yaml": "^4.1.0",
38
38
  "zod": "^4.3.6",
39
- "@parall/agent-core": "1.52.2",
40
- "@parall/sdk": "1.52.2"
39
+ "@parall/agent-core": "1.53.0",
40
+ "@parall/sdk": "1.53.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/js-yaml": "^4.0.9",
44
44
  "@types/node": "^22.0.0",
45
45
  "typescript": "^5.7.0",
46
- "@parall/agent-core": "1.52.2"
46
+ "@parall/agent-core": "1.53.0"
47
47
  },
48
48
  "scripts": {
49
49
  "build": "tsc",