twenty-sdk 2.6.0 → 2.7.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 (34) hide show
  1. package/README.md +2 -2
  2. package/dist/catalog-sync-5PU93p3u.mjs +16 -0
  3. package/dist/catalog-sync-B7123fv7.js +1 -0
  4. package/dist/cli/commands/{deploy.d.ts → app/deploy.d.ts} +4 -0
  5. package/dist/cli/commands/app/index.d.ts +2 -0
  6. package/dist/cli/commands/{uninstall.d.ts → app/uninstall.d.ts} +1 -1
  7. package/dist/cli/commands/deprecated.d.ts +2 -0
  8. package/dist/cli/commands/{dev.d.ts → dev/dev.d.ts} +1 -1
  9. package/dist/cli/commands/dev/function/index.d.ts +2 -0
  10. package/dist/cli/commands/dev/index.d.ts +2 -0
  11. package/dist/cli.cjs +110 -110
  12. package/dist/cli.mjs +2952 -2842
  13. package/dist/define/index.d.ts +2 -7
  14. package/dist/get-function-input-schema-BZ7_XyUh-BprcNdqJ.js +1 -0
  15. package/dist/{get-function-input-schema-BZ7_XyUh-dQlwid60.mjs → get-function-input-schema-BZ7_XyUh-CSpgPUBa.mjs} +1 -1
  16. package/dist/logic-function/index.d.ts +2 -7
  17. package/dist/{uninstall-BwJTMGOV.js → login-oauth-CLUI-EwN.js} +46 -46
  18. package/dist/{uninstall-D3ZmcXyd.mjs → login-oauth-OKavkVCc.mjs} +1644 -1636
  19. package/dist/operations.cjs +1 -1
  20. package/dist/operations.mjs +8 -8
  21. package/package.json +2 -2
  22. package/dist/get-function-input-schema-BZ7_XyUh-DmvaQHSU.js +0 -1
  23. /package/dist/cli/commands/{install.d.ts → app/install.d.ts} +0 -0
  24. /package/dist/cli/commands/{publish.d.ts → app/publish.d.ts} +0 -0
  25. /package/dist/cli/commands/{add.d.ts → dev/add.d.ts} +0 -0
  26. /package/dist/cli/commands/{build.d.ts → dev/build.d.ts} +0 -0
  27. /package/dist/cli/commands/{catalog-sync.d.ts → dev/catalog-sync.d.ts} +0 -0
  28. /package/dist/cli/commands/{dev-once.d.ts → dev/dev-once.d.ts} +0 -0
  29. /package/dist/cli/commands/{exec.d.ts → dev/exec.d.ts} +0 -0
  30. /package/dist/cli/commands/{logs.d.ts → dev/logs.d.ts} +0 -0
  31. /package/dist/cli/commands/{typecheck.d.ts → dev/typecheck.d.ts} +0 -0
  32. /package/dist/cli/commands/{server.d.ts → docker/index.d.ts} +0 -0
  33. /package/dist/cli/commands/{app-command.d.ts → index.d.ts} +0 -0
  34. /package/dist/cli/commands/{remote.d.ts → remote/index.d.ts} +0 -0
package/README.md CHANGED
@@ -54,11 +54,11 @@ Run `yarn twenty help` to see all available commands.
54
54
 
55
55
  ## Configuration
56
56
 
57
- The CLI stores credentials per remote in `~/.twenty/config.json`. Run `yarn twenty remote add` to configure a remote, or `yarn twenty remote list` to see existing ones.
57
+ The CLI stores credentials per remote in `~/.twenty/config.json`. Run `yarn twenty remote:add` to configure a remote, or `yarn twenty remote:list` to see existing ones.
58
58
 
59
59
  ## Troubleshooting
60
60
 
61
- - Auth errors: run `yarn twenty remote add` to re-authenticate.
61
+ - Auth errors: run `yarn twenty remote:add` to re-authenticate.
62
62
  - Typings out of date: restart `yarn twenty dev` to refresh the client and types.
63
63
  - Not seeing changes in dev: make sure dev mode is running (`yarn twenty dev`).
64
64
 
@@ -0,0 +1,16 @@
1
+ import { C as o, A as a } from "./login-oauth-OKavkVCc.mjs";
2
+ import r from "chalk";
3
+ class n {
4
+ async execute(c) {
5
+ c.remote && o.setActiveRemote(c.remote), console.log(r.blue("Syncing marketplace catalog..."));
6
+ const e = await new a().syncMarketplaceCatalog();
7
+ e.success || (console.error(
8
+ r.red(
9
+ `Catalog sync failed: ${e.error instanceof Error ? e.error.message : String(e.error)}`
10
+ )
11
+ ), process.exit(1)), console.log(r.green("✓ Marketplace catalog synced successfully"));
12
+ }
13
+ }
14
+ export {
15
+ n as CatalogSyncCommand
16
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./login-oauth-CLUI-EwN.js"),r=require("chalk"),l=e=>e&&e.__esModule?e:{default:e},t=l(r);class s{async execute(c){c.remote&&o.ConfigService.setActiveRemote(c.remote),console.log(t.default.blue("Syncing marketplace catalog..."));const a=await new o.ApiService().syncMarketplaceCatalog();a.success||(console.error(t.default.red(`Catalog sync failed: ${a.error instanceof Error?a.error.message:String(a.error)}`)),process.exit(1)),console.log(t.default.green("✓ Marketplace catalog synced successfully"))}}exports.CatalogSyncCommand=s;
@@ -1,7 +1,11 @@
1
1
  export type DeployCommandOptions = {
2
2
  appPath?: string;
3
3
  remote?: string;
4
+ private?: boolean;
5
+ tag?: string;
4
6
  };
5
7
  export declare class DeployCommand {
6
8
  execute(options: DeployCommandOptions): Promise<void>;
9
+ private executeNpm;
10
+ private executePrivate;
7
11
  }
@@ -0,0 +1,2 @@
1
+ import type { Command } from 'commander';
2
+ export declare const registerAppCommands: (program: Command) => void;
@@ -1,4 +1,4 @@
1
- import { type ApiResponse } from '../../cli/utilities/api/api-response-type';
1
+ import { type ApiResponse } from '../../../cli/utilities/api/api-response-type';
2
2
  export declare class AppUninstallCommand {
3
3
  execute({ appPath, askForConfirmation }: {
4
4
  appPath?: string;
@@ -0,0 +1,2 @@
1
+ import type { Command } from 'commander';
2
+ export declare const registerDeprecatedCommands: (program: Command) => void;
@@ -1,4 +1,4 @@
1
- import { DevModeOrchestrator } from '../../cli/utilities/dev/orchestrator/dev-mode-orchestrator';
1
+ import { DevModeOrchestrator } from '../../../cli/utilities/dev/orchestrator/dev-mode-orchestrator';
2
2
  export type AppDevOptions = {
3
3
  appPath?: string;
4
4
  headless?: boolean;
@@ -0,0 +1,2 @@
1
+ import type { Command } from 'commander';
2
+ export declare const registerDevFunctionCommands: (program: Command) => void;
@@ -0,0 +1,2 @@
1
+ import type { Command } from 'commander';
2
+ export declare const registerDevCommands: (program: Command) => void;