@parall/cli 1.70.0 → 1.71.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.
Files changed (58) hide show
  1. package/dist/commands/apps-action-local.d.ts +44 -0
  2. package/dist/commands/apps-action-local.d.ts.map +1 -0
  3. package/dist/commands/apps-action-local.js +153 -0
  4. package/dist/commands/apps-action-stack.d.ts +14 -0
  5. package/dist/commands/apps-action-stack.d.ts.map +1 -0
  6. package/dist/commands/apps-action-stack.js +63 -0
  7. package/dist/commands/apps-actions-sdk.generated.d.ts +2 -0
  8. package/dist/commands/apps-actions-sdk.generated.d.ts.map +1 -0
  9. package/dist/commands/apps-actions-sdk.generated.js +3 -0
  10. package/dist/commands/apps-actions.d.ts +20 -0
  11. package/dist/commands/apps-actions.d.ts.map +1 -0
  12. package/dist/commands/apps-actions.js +266 -0
  13. package/dist/commands/apps-check.d.ts +34 -0
  14. package/dist/commands/apps-check.d.ts.map +1 -0
  15. package/dist/commands/apps-check.js +155 -0
  16. package/dist/commands/apps-dev-page.d.ts +26 -0
  17. package/dist/commands/apps-dev-page.d.ts.map +1 -0
  18. package/dist/commands/apps-dev-page.js +259 -0
  19. package/dist/commands/apps-dev-server.d.ts +42 -0
  20. package/dist/commands/apps-dev-server.d.ts.map +1 -0
  21. package/dist/commands/apps-dev-server.js +328 -0
  22. package/dist/commands/apps-dev.d.ts +8 -0
  23. package/dist/commands/apps-dev.d.ts.map +1 -0
  24. package/dist/commands/apps-dev.js +126 -0
  25. package/dist/commands/apps-local-runner.generated.d.ts +3 -0
  26. package/dist/commands/apps-local-runner.generated.d.ts.map +1 -0
  27. package/dist/commands/apps-local-runner.generated.js +4 -0
  28. package/dist/commands/apps-page-sdk.generated.d.ts +2 -0
  29. package/dist/commands/apps-page-sdk.generated.d.ts.map +1 -0
  30. package/dist/commands/apps-page-sdk.generated.js +3 -0
  31. package/dist/commands/apps-publish.d.ts.map +1 -1
  32. package/dist/commands/apps-publish.js +6 -0
  33. package/dist/commands/apps-scaffold-actions.d.ts +11 -0
  34. package/dist/commands/apps-scaffold-actions.d.ts.map +1 -0
  35. package/dist/commands/apps-scaffold-actions.js +163 -0
  36. package/dist/commands/apps-scaffold.d.ts +4 -6
  37. package/dist/commands/apps-scaffold.d.ts.map +1 -1
  38. package/dist/commands/apps-scaffold.js +22 -222
  39. package/dist/commands/apps.d.ts +3 -2
  40. package/dist/commands/apps.d.ts.map +1 -1
  41. package/dist/commands/apps.js +9 -2
  42. package/dist/commands/db-plane.d.ts.map +1 -1
  43. package/dist/commands/db-plane.js +2 -0
  44. package/dist/commands/messages.d.ts.map +1 -1
  45. package/dist/commands/messages.js +6 -11
  46. package/dist/commands/msteams.d.ts +10 -0
  47. package/dist/commands/msteams.d.ts.map +1 -0
  48. package/dist/commands/msteams.js +41 -0
  49. package/dist/index.js +7 -5
  50. package/dist/lib/client.d.ts +2 -1
  51. package/dist/lib/client.d.ts.map +1 -1
  52. package/dist/lib/mini-app-discovery.d.ts +6 -0
  53. package/dist/lib/mini-app-discovery.d.ts.map +1 -0
  54. package/dist/lib/mini-app-discovery.js +32 -0
  55. package/dist/lib/output.d.ts +3 -1
  56. package/dist/lib/output.d.ts.map +1 -1
  57. package/dist/lib/output.js +5 -1
  58. package/package.json +5 -5
@@ -0,0 +1,41 @@
1
+ import { resolveCredentials } from '../lib/client.js';
2
+ import { printError, printJson } from '../lib/output.js';
3
+ import { resolveMessageText, TEXT_FILE_OPTION_DESC, TEXT_OPTION_DESC } from '../lib/text-input.js';
4
+ /**
5
+ * `parall msteams …` — the per-vendor platform verb for Microsoft Teams, a
6
+ * channel whose vendor ships no agent-grade CLI (tier B in the multi-channel
7
+ * architecture). The agent sends as its bound bot; the bot's Microsoft
8
+ * credentials never reach the runtime — api-server performs the call.
9
+ * Design: docs/engineering-design/teams-channel-design.md §4.
10
+ */
11
+ export function registerMSTeamsCommands(program) {
12
+ const msteams = program
13
+ .command('msteams')
14
+ .description('Microsoft Teams channel platform verbs (agent-only; sends as the bound bot)');
15
+ msteams
16
+ .command('send')
17
+ .description('Send a Teams message, or reply inside a channel thread')
18
+ .requiredOption('--conversation <conversationId>', 'Teams conversation id from the inbound event (a chat, or a channel)')
19
+ .option('--text <text>', TEXT_OPTION_DESC)
20
+ .option('--text-file <path>', TEXT_FILE_OPTION_DESC)
21
+ .option('--reply-to <messageId>', "Message id from the inbound event: a channel reply lands in that message's thread (omit to start a new post); chats have no threads")
22
+ .action(async (opts) => {
23
+ try {
24
+ const text = resolveMessageText(opts);
25
+ if (text === undefined || text === '') {
26
+ throw new Error('Provide --text or --text-file');
27
+ }
28
+ const { client, orgId } = resolveCredentials();
29
+ const sent = await client.sendChannelMessage(orgId, {
30
+ channel_type: 'msteams',
31
+ conversation_id: opts.conversation,
32
+ text,
33
+ ...(opts.replyTo ? { reply_to: opts.replyTo } : {}),
34
+ });
35
+ printJson(sent);
36
+ }
37
+ catch (err) {
38
+ printError(err);
39
+ }
40
+ });
41
+ }
package/dist/index.js CHANGED
@@ -3,8 +3,6 @@ import { Command } from 'commander';
3
3
  import { createRequire } from 'module';
4
4
  import { registerAgentCommands } from './commands/agents.js';
5
5
  import { registerApprovalCommands } from './commands/approvals.js';
6
- import { registerAppCommands } from './commands/apps.js';
7
- import { registerDbCommands } from './commands/dbs.js';
8
6
  import { registerBrowserCommands } from './commands/browser.js';
9
7
  import { registerChatCommands } from './commands/chats.js';
10
8
  import { registerClipCommands } from './commands/clip.js';
@@ -15,6 +13,7 @@ import { registerLabelCommands } from './commands/labels.js';
15
13
  import { registerMachineCommands } from './commands/machines.js';
16
14
  import { registerMcpCommands } from './commands/mcp.js';
17
15
  import { registerMessageCommands } from './commands/messages.js';
16
+ import { registerMSTeamsCommands } from './commands/msteams.js';
18
17
  import { registerNoReplyCommands } from './commands/no-reply.js';
19
18
  import { registerProfileCommands } from './commands/profile.js';
20
19
  import { registerProjectCommands } from './commands/projects.js';
@@ -29,6 +28,8 @@ import { registerUserCommands } from './commands/users.js';
29
28
  import { registerWatchCommands } from './commands/watch.js';
30
29
  import { registerWechatCommands } from './commands/wechat.js';
31
30
  import { registerWikiCommands } from './commands/wiki.js';
31
+ import { registerMiniAppCommands } from './lib/mini-app-discovery.js';
32
+ import { printError } from './lib/output.js';
32
33
  import { createUpdateNotifier } from './lib/update-check.js';
33
34
  const version = typeof __PARALL_CLI_VERSION__ === 'string'
34
35
  ? __PARALL_CLI_VERSION__
@@ -47,8 +48,6 @@ registerWatchCommands(program);
47
48
  registerTaskCommands(program);
48
49
  registerCommentCommands(program);
49
50
  registerLabelCommands(program);
50
- registerAppCommands(program);
51
- registerDbCommands(program);
52
51
  registerProjectCommands(program);
53
52
  registerProfileCommands(program);
54
53
  registerTeamCommands(program);
@@ -65,6 +64,7 @@ registerMachineCommands(program);
65
64
  registerClipCommands(program);
66
65
  registerBrowserCommands(program);
67
66
  registerSlackCommands(program);
67
+ registerMSTeamsCommands(program);
68
68
  registerWechatCommands(program);
69
69
  const updateNotifier = createUpdateNotifier(version);
70
70
  program.hook('postAction', () => {
@@ -72,4 +72,6 @@ program.hook('postAction', () => {
72
72
  updateNotifier.afterSuccessfulCommand();
73
73
  }
74
74
  });
75
- program.parse();
75
+ registerMiniAppCommands(program, process.argv.slice(2))
76
+ .then(() => program.parse())
77
+ .catch(printError);
@@ -26,7 +26,8 @@ export type RuntimeContext = {
26
26
  */
27
27
  dispatchSourceType?: string;
28
28
  dispatchSourceId?: string;
29
- /** Trigger thread root (parel invocation context) — the by-source send's default thread. */
29
+ /** Trigger thread root (parel invocation context) — only decides whether a send binds
30
+ * to the trigger (same chat and thread); it never chooses where a send goes. */
30
31
  threadRootId?: string;
31
32
  };
32
33
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/lib/client.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,EAAE,YAAY,CAA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c,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,qBAAa,gBAAiB,SAAQ,KAAK;CAAG;AAE9C;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,MAAM,EACd,YAAY,CAAC,EAAE,MAAM,GACpB,mBAAmB,GAAG,IAAI,CAgF5B;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,mBAAmB,GAAG,IAAI,CAYzE;AAED,wBAAgB,kBAAkB,IAAI,mBAAmB,CA8BxD"}
@@ -0,0 +1,6 @@
1
+ import type { Command } from 'commander';
2
+ /** Mini App commands are discoverable only in an enabled organization.
3
+ * The API still authorizes every operation; this gate controls CLI discovery,
4
+ * including local authoring commands and explicit subcommand help. */
5
+ export declare function registerMiniAppCommands(program: Command, args: string[]): Promise<void>;
6
+ //# sourceMappingURL=mini-app-discovery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mini-app-discovery.d.ts","sourceRoot":"","sources":["../../src/lib/mini-app-discovery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKzC;;sEAEsE;AACtE,wBAAsB,uBAAuB,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAwB7F"}
@@ -0,0 +1,32 @@
1
+ import { registerAppCommands } from '../commands/apps.js';
2
+ import { registerDbCommands } from '../commands/dbs.js';
3
+ import { resolveCredentials } from './client.js';
4
+ /** Mini App commands are discoverable only in an enabled organization.
5
+ * The API still authorizes every operation; this gate controls CLI discovery,
6
+ * including local authoring commands and explicit subcommand help. */
7
+ export async function registerMiniAppCommands(program, args) {
8
+ const command = args[0] === '--' ? args[1] : args[0];
9
+ const helpTarget = args[1];
10
+ const miniAppCommand = (name) => name === 'app' || name === 'db';
11
+ const rootHelp = !command || command === '-h' || command === '--help';
12
+ const helpCommand = command === 'help' && (!helpTarget || miniAppCommand(helpTarget));
13
+ // Ordinary commands, their help and --version remain usable without a
14
+ // feature-flags request. No cached decision can leak across organizations.
15
+ if (!rootHelp && !helpCommand && !miniAppCommand(command))
16
+ return;
17
+ if (!process.env.PRLL_API_URL || !process.env.PRLL_API_KEY || !process.env.PRLL_ORG_ID)
18
+ return;
19
+ try {
20
+ const { client, orgId } = resolveCredentials();
21
+ const { flags } = await client.getFeatureFlags(orgId);
22
+ if (flags['cap:mini-apps'] !== true || flags['mini-apps'] !== true)
23
+ return;
24
+ }
25
+ catch {
26
+ // Missing, invalid or unavailable capability information must not
27
+ // advertise commands. The rest of the CLI help remains available.
28
+ return;
29
+ }
30
+ registerAppCommands(program);
31
+ registerDbCommands(program);
32
+ }
@@ -32,5 +32,7 @@ export declare function parsePositiveInt(raw: string | undefined): number | unde
32
32
  * See docs/engineering-design/project-roster-denial-design.md §3.2 / §5
33
33
  */
34
34
  export declare function projectRosterNextStep(details: unknown): string | undefined;
35
- export declare function printError(err: unknown, attemptedPayload?: Record<string, unknown>): never;
35
+ /** Prints the error and exits 1. `nextStep` is plain-text guidance printed
36
+ * after the error line of an API error. */
37
+ export declare function printError(err: unknown, attemptedPayload?: Record<string, unknown>, nextStep?: string): never;
36
38
  //# sourceMappingURL=output.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../src/lib/output.ts"],"names":[],"mappings":"AAEA,wBAAgB,SAAS,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAE7C;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,SAAY,GAAG,IAAI,CAEvE;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAExD;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAW5E;AAmBD;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAe1E;AAED,wBAAgB,UAAU,CAAC,GAAG,EAAE,OAAO,EAAE,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,KAAK,CAqD1F"}
1
+ {"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../src/lib/output.ts"],"names":[],"mappings":"AAEA,wBAAgB,SAAS,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAE7C;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,SAAY,GAAG,IAAI,CAEvE;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAExD;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAW5E;AAmBD;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAe1E;AAED;2CAC2C;AAC3C,wBAAgB,UAAU,CACxB,GAAG,EAAE,OAAO,EACZ,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC1C,QAAQ,CAAC,EAAE,MAAM,GAChB,KAAK,CAsDP"}
@@ -83,7 +83,9 @@ export function projectRosterNextStep(details) {
83
83
  return undefined;
84
84
  }
85
85
  }
86
- export function printError(err, attemptedPayload) {
86
+ /** Prints the error and exits 1. `nextStep` is plain-text guidance printed
87
+ * after the error line of an API error. */
88
+ export function printError(err, attemptedPayload, nextStep) {
87
89
  if (err instanceof ApiError) {
88
90
  // Faithful, parseable line: the server's real message + machine anchors.
89
91
  console.error(JSON.stringify({
@@ -126,6 +128,8 @@ export function printError(err, attemptedPayload) {
126
128
  console.error(`${lead} Request approval:\n parall approvals request --action ${err.action} --resource ${err.resourceUri ?? '<resource>'}${payloadArg} --chat ${chat} --title "..." --reason "..."`);
127
129
  }
128
130
  }
131
+ if (nextStep)
132
+ console.error(nextStep);
129
133
  }
130
134
  else if (err instanceof Error) {
131
135
  console.error(JSON.stringify({ error: err.message }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parall/cli",
3
- "version": "1.70.0",
3
+ "version": "1.71.0",
4
4
  "description": "CLI client for Parall — universal agent & human access to Parall API",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -42,8 +42,8 @@
42
42
  "node-diff3": "3.2.1",
43
43
  "tar-stream": "^3.2.1",
44
44
  "zod": "^4.3.6",
45
- "@parall/agent-core": "1.70.0",
46
- "@parall/sdk": "1.70.0"
45
+ "@parall/agent-core": "1.71.0",
46
+ "@parall/sdk": "1.71.0"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/js-yaml": "^4.0.9",
@@ -51,10 +51,10 @@
51
51
  "@types/tar-stream": "^3.1.4",
52
52
  "esbuild": "^0.25.0",
53
53
  "typescript": "^5.7.0",
54
- "@parall/agent-core": "1.70.0"
54
+ "@parall/agent-core": "1.71.0"
55
55
  },
56
56
  "scripts": {
57
- "build": "tsc",
57
+ "build": "node scripts/generate-miniapp-sdk.mjs --check && node scripts/generate-local-runner.mjs --check && tsc",
58
58
  "dev": "tsc --watch",
59
59
  "test": "pnpm run build && node --test test/*.test.mjs",
60
60
  "bundle": "node scripts/bundle.mjs"