@parall/cli 1.13.1 → 1.14.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":"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,QA+oBpD"}
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"}
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parall/cli",
3
- "version": "1.13.1",
3
+ "version": "1.14.0",
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.13.1"
33
+ "@parall/sdk": "1.14.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/node": "^22.0.0",