@xfey/tutti 0.1.5 → 0.1.7

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 (35) hide show
  1. package/README.md +4 -4
  2. package/dist/providers/openai/app-server/read-only-procedure.js +3 -5
  3. package/dist/providers/openai/app-server/sandbox-policy.d.ts +18 -0
  4. package/dist/providers/openai/app-server/sandbox-policy.js +16 -0
  5. package/dist/providers/openai/app-server/smoke.js +3 -3
  6. package/dist/providers/openai/app-server/workspace-write-run.js +3 -5
  7. package/dist/providers/openai/codex-app-server.d.ts +0 -9
  8. package/dist/providers/openai/codex-app-server.js +0 -5
  9. package/dist/server-shell/cli/args.d.ts +42 -0
  10. package/dist/server-shell/cli/args.js +185 -0
  11. package/dist/server-shell/cli/cli.js +179 -40
  12. package/dist/server-shell/cli/errors.d.ts +1 -0
  13. package/dist/server-shell/cli/errors.js +22 -0
  14. package/dist/server-shell/cli/host-server-runtime.js +8 -0
  15. package/dist/server-shell/cli/launch-command.d.ts +19 -0
  16. package/dist/server-shell/cli/launch-command.js +127 -0
  17. package/dist/server-shell/cli/local-control-client.d.ts +30 -0
  18. package/dist/server-shell/cli/local-control-client.js +73 -0
  19. package/dist/server-shell/cli/managed-host.d.ts +19 -0
  20. package/dist/server-shell/cli/managed-host.js +103 -0
  21. package/dist/server-shell/cli/project-resolver.d.ts +19 -0
  22. package/dist/server-shell/cli/project-resolver.js +35 -0
  23. package/dist/server-shell/cli/provider-tui.d.ts +16 -0
  24. package/dist/server-shell/cli/provider-tui.js +226 -0
  25. package/dist/server-shell/cli/runtime-commands.d.ts +32 -0
  26. package/dist/server-shell/cli/runtime-commands.js +308 -0
  27. package/dist/server-shell/cli/terminal-qr.d.ts +2 -0
  28. package/dist/server-shell/cli/terminal-qr.js +11 -0
  29. package/dist/server-shell/cli/version.d.ts +2 -0
  30. package/dist/server-shell/cli/version.js +7 -0
  31. package/dist/server-shell/http/routes/local-control.d.ts +1 -0
  32. package/dist/server-shell/http/routes/local-control.js +13 -0
  33. package/package.json +2 -1
  34. package/dist/providers/openai/app-server/permission-profile.d.ts +0 -64
  35. package/dist/providers/openai/app-server/permission-profile.js +0 -67
@@ -190,6 +190,19 @@ export function registerHostLocalControlRoutes(app, options) {
190
190
  requireLocalToken(request.headers.authorization);
191
191
  return options.getLaunchStatus?.() ?? {};
192
192
  });
193
+ app.post("/host-local/v1/invite/rotate", {
194
+ schema: {
195
+ response: {
196
+ 200: HostLocalLaunchStatusResponseSchema,
197
+ },
198
+ },
199
+ }, async (request) => {
200
+ requireLocalToken(request.headers.authorization);
201
+ if (options.refreshInvite === undefined) {
202
+ return options.getLaunchStatus?.() ?? {};
203
+ }
204
+ return await options.refreshInvite();
205
+ });
193
206
  app.get("/host-local/v1/provider/config", {
194
207
  schema: {
195
208
  response: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xfey/tutti",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -35,6 +35,7 @@
35
35
  "better-sqlite3": "^12.9.0",
36
36
  "fastify": "^5.8.5",
37
37
  "openai": "^6.34.0",
38
+ "qrcode-terminal": "^0.12.0",
38
39
  "sharp": "^0.35.3",
39
40
  "ulid": "^3.0.2",
40
41
  "ws": "^8.20.0",
@@ -1,64 +0,0 @@
1
- export type ReadOnlyPermissionProfileOptions = {
2
- networkEnabled?: boolean;
3
- };
4
- export type WorkspaceWritePermissionProfileOptions = {
5
- networkEnabled?: boolean;
6
- };
7
- export declare function createReadOnlyPermissionProfile(readablePaths: string | string[], options?: ReadOnlyPermissionProfileOptions): {
8
- type: "managed";
9
- network: {
10
- enabled: boolean;
11
- };
12
- fileSystem: {
13
- type: "restricted";
14
- entries: ({
15
- access: "read";
16
- path: {
17
- type: "path";
18
- path: string;
19
- };
20
- } | {
21
- access: "read";
22
- path: {
23
- type: "special";
24
- value: {
25
- kind: "minimal";
26
- };
27
- };
28
- })[];
29
- };
30
- };
31
- export declare function createWorkspaceWritePermissionProfile(writableRoot: string, options?: WorkspaceWritePermissionProfileOptions): {
32
- type: "managed";
33
- network: {
34
- enabled: boolean;
35
- };
36
- fileSystem: {
37
- type: "restricted";
38
- entries: ({
39
- access: "read";
40
- path: {
41
- type: "special";
42
- value: {
43
- kind: "minimal";
44
- };
45
- path?: never;
46
- };
47
- } | {
48
- access: "read";
49
- path: {
50
- type: "path";
51
- path: string;
52
- value?: never;
53
- };
54
- } | {
55
- access: "write";
56
- path: {
57
- type: "path";
58
- path: string;
59
- value?: never;
60
- };
61
- })[];
62
- };
63
- };
64
- //# sourceMappingURL=permission-profile.d.ts.map
@@ -1,67 +0,0 @@
1
- export function createReadOnlyPermissionProfile(readablePaths, options = {}) {
2
- const paths = Array.isArray(readablePaths) ? readablePaths : [readablePaths];
3
- return {
4
- type: "managed",
5
- network: {
6
- enabled: options.networkEnabled ?? true,
7
- },
8
- fileSystem: {
9
- type: "restricted",
10
- entries: [
11
- {
12
- access: "read",
13
- path: {
14
- type: "special",
15
- value: {
16
- kind: "minimal",
17
- },
18
- },
19
- },
20
- ...[...new Set(paths)].map((path) => ({
21
- access: "read",
22
- path: {
23
- type: "path",
24
- path,
25
- },
26
- })),
27
- ],
28
- },
29
- };
30
- }
31
- export function createWorkspaceWritePermissionProfile(writableRoot, options = {}) {
32
- return {
33
- type: "managed",
34
- network: {
35
- enabled: options.networkEnabled ?? true,
36
- },
37
- fileSystem: {
38
- type: "restricted",
39
- entries: [
40
- {
41
- access: "read",
42
- path: {
43
- type: "special",
44
- value: {
45
- kind: "minimal",
46
- },
47
- },
48
- },
49
- {
50
- access: "read",
51
- path: {
52
- type: "path",
53
- path: writableRoot,
54
- },
55
- },
56
- {
57
- access: "write",
58
- path: {
59
- type: "path",
60
- path: writableRoot,
61
- },
62
- },
63
- ],
64
- },
65
- };
66
- }
67
- //# sourceMappingURL=permission-profile.js.map