@parall/cli 1.13.1 → 1.14.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/commands/wiki.d.ts.map +1 -1
- package/dist/commands/wiki.js +25 -0
- package/dist/lib/client.js +1 -1
- package/dist/lib/wiki.js +3 -0
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wiki.d.ts","sourceRoot":"","sources":["../../src/commands/wiki.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAwBpC,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"wiki.d.ts","sourceRoot":"","sources":["../../src/commands/wiki.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAwBpC,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,QAyqBpD"}
|
package/dist/commands/wiki.js
CHANGED
|
@@ -3,6 +3,31 @@ import { printError, printJson } from '../lib/output.js';
|
|
|
3
3
|
import { getAfcsDiff, getAfcsStatus, getWikiBlob, getWikiChangesetDetail, getWikiChangesetDiff, getWikiLog, getWikiOutline, getWikiSection, getWikiTree, listWikiChangesets, queryWiki, requestWikiAccess, resetWikiWorkspace, listWikis, proposeWikiChangeset, searchWiki, syncAllMounts, watchMounts, } from '../lib/wiki.js';
|
|
4
4
|
export function registerWikiCommands(program) {
|
|
5
5
|
const wiki = program.command('wiki').description('Parall Wiki — read, edit, and propose changes');
|
|
6
|
+
// ---- CRUD ----
|
|
7
|
+
wiki
|
|
8
|
+
.command('create')
|
|
9
|
+
.description('Create a new wiki in the organization (requires org admin)')
|
|
10
|
+
.argument('<slug>', 'Unique slug (lowercase alphanumeric, dash, underscore)')
|
|
11
|
+
.argument('<name>', 'Display name')
|
|
12
|
+
.option('--default-branch <branch>', 'Default branch name (default: main)')
|
|
13
|
+
.action(async (slug, name, options) => {
|
|
14
|
+
try {
|
|
15
|
+
const ctx = resolveCredentials();
|
|
16
|
+
const wiki = await ctx.client.createWiki(ctx.orgId, {
|
|
17
|
+
slug,
|
|
18
|
+
name,
|
|
19
|
+
default_branch: options.defaultBranch,
|
|
20
|
+
});
|
|
21
|
+
process.stderr.write(`Created wiki "${wiki.name}" (${wiki.slug})\n`);
|
|
22
|
+
process.stderr.write(` ID: ${wiki.id}\n`);
|
|
23
|
+
process.stderr.write(` Branch: ${wiki.default_branch}\n`);
|
|
24
|
+
printJson(wiki);
|
|
25
|
+
}
|
|
26
|
+
catch (error) {
|
|
27
|
+
printError(error);
|
|
28
|
+
process.exit(1);
|
|
29
|
+
}
|
|
30
|
+
});
|
|
6
31
|
// ---- Core workflow ----
|
|
7
32
|
wiki
|
|
8
33
|
.command('sync')
|
package/dist/lib/client.js
CHANGED
|
@@ -41,7 +41,7 @@ export function resolveCredentials() {
|
|
|
41
41
|
process.exit(1);
|
|
42
42
|
}
|
|
43
43
|
return {
|
|
44
|
-
client: new ParallClient({ baseUrl: url, token: apiKey }),
|
|
44
|
+
client: new ParallClient({ baseUrl: url, token: apiKey, swimlaneName: process.env.PRLL_SWIMLANE_NAME }),
|
|
45
45
|
orgId: orgId,
|
|
46
46
|
};
|
|
47
47
|
}
|
package/dist/lib/wiki.js
CHANGED
|
@@ -608,6 +608,9 @@ async function wikiServiceFetch(url, token, options = {}) {
|
|
|
608
608
|
'Authorization': `Bearer ${token}`,
|
|
609
609
|
'Content-Type': 'application/json',
|
|
610
610
|
};
|
|
611
|
+
if (process.env.PRLL_SWIMLANE_NAME) {
|
|
612
|
+
headers['X-Prll-Swimlane'] = process.env.PRLL_SWIMLANE_NAME;
|
|
613
|
+
}
|
|
611
614
|
const response = await fetch(url, {
|
|
612
615
|
method,
|
|
613
616
|
headers,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parall/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.1",
|
|
4
4
|
"description": "CLI client for Parall — universal agent & human access to Parall API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@modelcontextprotocol/sdk": "1.27.1",
|
|
31
31
|
"commander": "^13.0.0",
|
|
32
32
|
"zod": "^4.3.6",
|
|
33
|
-
"@parall/sdk": "1.
|
|
33
|
+
"@parall/sdk": "1.14.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^22.0.0",
|