@trytilde/contracts 5.0.0 → 5.1.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.
@@ -62,6 +62,13 @@ export declare const ConnectResponseSchema: GenMessage<ConnectResponse>;
62
62
  * exchanged; the process keeps it in memory for reconnects. `env` is the blueprint's environment,
63
63
  * current as of this Connect, for every shell in the VM.
64
64
  *
65
+ * Egress: `egress_token` is issued with the session and kept in memory the same way; it
66
+ * authenticates requests to `{TILDE_URL}/sandboxes/egress/{slug}/…` (Bearer, or as git's Basic
67
+ * password) for the sandbox's lifetime. `egress_env` (current as of this Connect, like `env`) is
68
+ * for every shell too; the process replaces `{token}` in its values with the egress token. `git`
69
+ * rewrites belong in the system git config (`url.<url>.insteadOf`), with the process's
70
+ * `tilde sandbox credential` as the credential helper for `TILDE_URL`.
71
+ *
65
72
  * @generated from message tilde.sandbox.v1.SandboxRegistered
66
73
  */
67
74
  export declare type SandboxRegistered = Message<"tilde.sandbox.v1.SandboxRegistered"> & {
@@ -79,6 +86,21 @@ export declare type SandboxRegistered = Message<"tilde.sandbox.v1.SandboxRegiste
79
86
  * @generated from field: repeated tilde.sandbox.v1.EnvVar env = 3;
80
87
  */
81
88
  env: EnvVar[];
89
+
90
+ /**
91
+ * @generated from field: optional string egress_token = 4;
92
+ */
93
+ egressToken?: string | undefined;
94
+
95
+ /**
96
+ * @generated from field: repeated tilde.sandbox.v1.EnvVar egress_env = 5;
97
+ */
98
+ egressEnv: EnvVar[];
99
+
100
+ /**
101
+ * @generated from field: repeated tilde.sandbox.v1.GitRewrite git = 6;
102
+ */
103
+ git: GitRewrite[];
82
104
  };
83
105
 
84
106
  /**
@@ -87,6 +109,29 @@ export declare type SandboxRegistered = Message<"tilde.sandbox.v1.SandboxRegiste
87
109
  */
88
110
  export declare const SandboxRegisteredSchema: GenMessage<SandboxRegistered>;
89
111
 
112
+ /**
113
+ * `git config url.<url>.insteadOf <instead_of>`.
114
+ *
115
+ * @generated from message tilde.sandbox.v1.GitRewrite
116
+ */
117
+ export declare type GitRewrite = Message<"tilde.sandbox.v1.GitRewrite"> & {
118
+ /**
119
+ * @generated from field: string url = 1;
120
+ */
121
+ url: string;
122
+
123
+ /**
124
+ * @generated from field: string instead_of = 2;
125
+ */
126
+ insteadOf: string;
127
+ };
128
+
129
+ /**
130
+ * Describes the message tilde.sandbox.v1.GitRewrite.
131
+ * Use `create(GitRewriteSchema)` to create a new message.
132
+ */
133
+ export declare const GitRewriteSchema: GenMessage<GitRewrite>;
134
+
90
135
  /**
91
136
  * @generated from message tilde.sandbox.v1.EnvVar
92
137
  */
@@ -9,7 +9,7 @@ import { file_tilde_types_v1_chat } from "../../types/v1/chat_pb.js";
9
9
  * Describes the file tilde/sandbox/v1/sandbox.proto.
10
10
  */
11
11
  export const file_tilde_sandbox_v1_sandbox = /*@__PURE__*/
12
- fileDesc("Ch50aWxkZS9zYW5kYm94L3YxL3NhbmRib3gucHJvdG8SEHRpbGRlLnNhbmRib3gudjEiEAoOQ29ubmVjdFJlcXVlc3QivQEKD0Nvbm5lY3RSZXNwb25zZRI5CgpyZWdpc3RlcmVkGAEgASgLMiMudGlsZGUuc2FuZGJveC52MS5TYW5kYm94UmVnaXN0ZXJlZEgAEjcKCW9wZXJhdGlvbhgCIAEoCzIiLnRpbGRlLnNhbmRib3gudjEuU2FuZGJveE9wZXJhdGlvbkgAEi0KBHBpbmcYAyABKAsyHS50aWxkZS5zYW5kYm94LnYxLlNhbmRib3hQaW5nSABCBwoFZnJhbWUigQEKEVNhbmRib3hSZWdpc3RlcmVkEhIKCnNhbmRib3hfaWQYASABKAkSHwoNc2Vzc2lvbl90b2tlbhgCIAEoCUIDgAEBSACIAQESJQoDZW52GAMgAygLMhgudGlsZGUuc2FuZGJveC52MS5FbnZWYXJCEAoOX3Nlc3Npb25fdG9rZW4iKgoGRW52VmFyEgwKBG5hbWUYASABKAkSEgoFdmFsdWUYAiABKAlCA4ABASINCgtTYW5kYm94UGluZyJ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CChFMaXN0VG9vbHNSZXNwb25zZRItCgV0b29scxgBIAMoCzIeLnRpbGRlLnR5cGVzLnYxLlRvb2xEZWZpbml0aW9uImYKEUludm9rZVRvb2xSZXF1ZXN0EgwKBG5hbWUYASABKAkSFwoKaW5wdXRfanNvbhgCIAEoCUIDgAEBEhkKDG9wZXJhdGlvbl9pZBgDIAEoCUgAiAEBQg8KDV9vcGVyYXRpb25faWQiLgoSSW52b2tlVG9vbFJlc3BvbnNlEhgKC291dHB1dF9qc29uGAEgASgJQgOAAQEy4QIKDlNhbmRib3hTZXJ2aWNlElAKB0Nvbm5lY3QSIC50aWxkZS5zYW5kYm94LnYxLkNvbm5lY3RSZXF1ZXN0GiEudGlsZGUuc2FuZGJveC52MS5Db25uZWN0UmVzcG9uc2UwARJOCgdSZXNwb25kEiAudGlsZGUuc2FuZGJveC52MS5SZXNwb25kUmVxdWVzdBohLnRpbGRlLnNhbmRib3gudjEuUmVzcG9uZFJlc3BvbnNlElQKCUxpc3RUb29scxIiLnRpbGRlLnNhbmRib3gudjEuTGlzdFRvb2xzUmVxdWVzdBojLnRpbGRlLnNhbmRib3gudjEuTGlzdFRvb2xzUmVzcG9uc2USVwoKSW52b2tlVG9vbBIjLnRpbGRlLnNhbmRib3gudjEuSW52b2tlVG9vbFJlcXVlc3QaJC50aWxkZS5zYW5kYm94LnYxLkludm9rZVRvb2xSZXNwb25zZWIGcHJvdG8z", [file_tilde_types_v1_chat]);
13
13
 
14
14
  /**
15
15
  * Describes the message tilde.sandbox.v1.ConnectRequest.
@@ -32,68 +32,75 @@ export const ConnectResponseSchema = /*@__PURE__*/
32
32
  export const SandboxRegisteredSchema = /*@__PURE__*/
33
33
  messageDesc(file_tilde_sandbox_v1_sandbox, 2);
34
34
 
35
+ /**
36
+ * Describes the message tilde.sandbox.v1.GitRewrite.
37
+ * Use `create(GitRewriteSchema)` to create a new message.
38
+ */
39
+ export const GitRewriteSchema = /*@__PURE__*/
40
+ messageDesc(file_tilde_sandbox_v1_sandbox, 3);
41
+
35
42
  /**
36
43
  * Describes the message tilde.sandbox.v1.EnvVar.
37
44
  * Use `create(EnvVarSchema)` to create a new message.
38
45
  */
39
46
  export const EnvVarSchema = /*@__PURE__*/
40
- messageDesc(file_tilde_sandbox_v1_sandbox, 3);
47
+ messageDesc(file_tilde_sandbox_v1_sandbox, 4);
41
48
 
42
49
  /**
43
50
  * Describes the message tilde.sandbox.v1.SandboxPing.
44
51
  * Use `create(SandboxPingSchema)` to create a new message.
45
52
  */
46
53
  export const SandboxPingSchema = /*@__PURE__*/
47
- messageDesc(file_tilde_sandbox_v1_sandbox, 4);
54
+ messageDesc(file_tilde_sandbox_v1_sandbox, 5);
48
55
 
49
56
  /**
50
57
  * Describes the message tilde.sandbox.v1.SandboxOperation.
51
58
  * Use `create(SandboxOperationSchema)` to create a new message.
52
59
  */
53
60
  export const SandboxOperationSchema = /*@__PURE__*/
54
- messageDesc(file_tilde_sandbox_v1_sandbox, 5);
61
+ messageDesc(file_tilde_sandbox_v1_sandbox, 6);
55
62
 
56
63
  /**
57
64
  * Describes the message tilde.sandbox.v1.RespondRequest.
58
65
  * Use `create(RespondRequestSchema)` to create a new message.
59
66
  */
60
67
  export const RespondRequestSchema = /*@__PURE__*/
61
- messageDesc(file_tilde_sandbox_v1_sandbox, 6);
68
+ messageDesc(file_tilde_sandbox_v1_sandbox, 7);
62
69
 
63
70
  /**
64
71
  * Describes the message tilde.sandbox.v1.RespondResponse.
65
72
  * Use `create(RespondResponseSchema)` to create a new message.
66
73
  */
67
74
  export const RespondResponseSchema = /*@__PURE__*/
68
- messageDesc(file_tilde_sandbox_v1_sandbox, 7);
75
+ messageDesc(file_tilde_sandbox_v1_sandbox, 8);
69
76
 
70
77
  /**
71
78
  * Describes the message tilde.sandbox.v1.ListToolsRequest.
72
79
  * Use `create(ListToolsRequestSchema)` to create a new message.
73
80
  */
74
81
  export const ListToolsRequestSchema = /*@__PURE__*/
75
- messageDesc(file_tilde_sandbox_v1_sandbox, 8);
82
+ messageDesc(file_tilde_sandbox_v1_sandbox, 9);
76
83
 
77
84
  /**
78
85
  * Describes the message tilde.sandbox.v1.ListToolsResponse.
79
86
  * Use `create(ListToolsResponseSchema)` to create a new message.
80
87
  */
81
88
  export const ListToolsResponseSchema = /*@__PURE__*/
82
- messageDesc(file_tilde_sandbox_v1_sandbox, 9);
89
+ messageDesc(file_tilde_sandbox_v1_sandbox, 10);
83
90
 
84
91
  /**
85
92
  * Describes the message tilde.sandbox.v1.InvokeToolRequest.
86
93
  * Use `create(InvokeToolRequestSchema)` to create a new message.
87
94
  */
88
95
  export const InvokeToolRequestSchema = /*@__PURE__*/
89
- messageDesc(file_tilde_sandbox_v1_sandbox, 10);
96
+ messageDesc(file_tilde_sandbox_v1_sandbox, 11);
90
97
 
91
98
  /**
92
99
  * Describes the message tilde.sandbox.v1.InvokeToolResponse.
93
100
  * Use `create(InvokeToolResponseSchema)` to create a new message.
94
101
  */
95
102
  export const InvokeToolResponseSchema = /*@__PURE__*/
96
- messageDesc(file_tilde_sandbox_v1_sandbox, 11);
103
+ messageDesc(file_tilde_sandbox_v1_sandbox, 12);
97
104
 
98
105
  /**
99
106
  * The `tilde sandbox connect` process inside a sandbox VM. Like a tool host it is never dialed:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trytilde/contracts",
3
- "version": "5.0.0",
3
+ "version": "5.1.0",
4
4
  "description": "Generated TypeScript Protobuf and ConnectRPC contracts for Tilde",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {