@composable-os/cli 0.0.0-stage → 0.1.0-beta.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.
- package/LICENSE +109 -0
- package/README.md +24 -2
- package/dist/blocks-HVTAQ5W2.js +233 -0
- package/dist/chunk-2ABSVMGB.js +13 -0
- package/dist/chunk-2P4AZTFL.js +358 -0
- package/dist/chunk-2S7375SC.js +802 -0
- package/dist/chunk-5KSXSK7Y.js +47 -0
- package/dist/chunk-6UWRT4VM.js +220 -0
- package/dist/chunk-BEKL3CA2.js +28975 -0
- package/dist/chunk-E5JLTLRM.js +50 -0
- package/dist/chunk-HDIOVFAZ.js +544 -0
- package/dist/chunk-KGHA67HG.js +765 -0
- package/dist/chunk-MAXLUQKB.js +1287 -0
- package/dist/chunk-MINQ46RU.js +16485 -0
- package/dist/chunk-STJZJIRA.js +11378 -0
- package/dist/chunk-VL62IMBN.js +1423 -0
- package/dist/chunk-X6I2LWB3.js +24319 -0
- package/dist/chunk-Y7PQ7NIL.js +1178 -0
- package/dist/chunk-ZRWF6QZS.js +2357 -0
- package/dist/cli-BRSACHSG.js +31393 -0
- package/dist/cli-XHC6QBQW.js +121 -0
- package/dist/cli.js +25 -0
- package/dist/client-repo-G55G4OLV.js +55 -0
- package/dist/create.js +25 -0
- package/dist/fields-64BQJA62.js +48 -0
- package/dist/invoke-5SR5ZWW7.js +26 -0
- package/dist/person-AZFEPZOE.js +58 -0
- package/dist/platform/migrations/0001_init.sql +59 -0
- package/dist/platform/migrations/0002_users_settings.sql +34 -0
- package/dist/platform/migrations/0003_people_organisations.sql +225 -0
- package/dist/platform/migrations/0004_activities_tasks.sql +88 -0
- package/dist/platform/migrations/0005_views_audit.sql +79 -0
- package/dist/platform/migrations/0006_search.sql +223 -0
- package/dist/platform/migrations/0007_crm_views.sql +141 -0
- package/dist/platform/migrations/0008_audit_redaction.sql +116 -0
- package/dist/platform/migrations/0010_approval_queue.sql +90 -0
- package/dist/platform/migrations/0011_connected_apps.sql +36 -0
- package/dist/platform/migrations/0020_extensions.sql +373 -0
- package/dist/platform/migrations/0030_extension_proposals.sql +29 -0
- package/dist/platform/migrations/0050_live_row_indexes.sql +32 -0
- package/dist/platform/migrations/0060_audit_read_counts.sql +31 -0
- package/dist/platform/migrations/0061_audit_retention.sql +95 -0
- package/dist/platform/migrations/0062_run_history_retention.sql +6 -0
- package/dist/platform/migrations/0063_pending_action_compaction.sql +18 -0
- package/dist/platform/migrations/0064_drop_rate_limit.sql +6 -0
- package/dist/platform/migrations/0065_storage_stats.sql +13 -0
- package/dist/platform/migrations/0070_drop_proposals_ext_idx.sql +9 -0
- package/dist/platform/migrations/0080_views_dashboards.sql +46 -0
- package/dist/platform/migrations/0100_stage_history.sql +54 -0
- package/dist/platform/migrations/0110_integrations.sql +103 -0
- package/dist/platform/migrations/0111_email_calendar_sync.sql +137 -0
- package/dist/platform/migrations/0112_sync_item_occurred_at.sql +8 -0
- package/dist/platform/migrations/0130_automations.sql +113 -0
- package/dist/platform/migrations/0131_notifications.sql +29 -0
- package/dist/platform/migrations/0132_automation_runtime.sql +14 -0
- package/dist/platform/migrations/0150_ai_summaries_embeddings.sql +48 -0
- package/dist/platform/migrations/0160_releases.sql +41 -0
- package/dist/platform/migrations/0161_setup_wizard.sql +30 -0
- package/dist/platform/migrations/0170_automation_connections.sql +32 -0
- package/dist/platform/migrations/0171_automation_outbox.sql +23 -0
- package/dist/platform/migrations/0172_notification_delivery.sql +46 -0
- package/dist/platform/migrations/0200_assistant_conversations.sql +25 -0
- package/dist/platform/migrations/0205_policy_adjudicator.sql +61 -0
- package/dist/platform/migrations/0210_daily_digest.sql +33 -0
- package/dist/platform/migrations/0220_entitlements.sql +13 -0
- package/dist/platform/migrations/0221_support_grants.sql +33 -0
- package/dist/platform/migrations/0250_judge.sql +11 -0
- package/dist/platform/migrations/0251_adjudication_judgement.sql +8 -0
- package/dist/platform/migrations/0252_judge_usage.sql +14 -0
- package/dist/platform/migrations/0255_summary_checks.sql +9 -0
- package/dist/platform/migrations/0256_outbound_check.sql +9 -0
- package/dist/platform/migrations/0260_ai_usage.sql +20 -0
- package/dist/platform/migrations/0270_assistant_conversation_refs.sql +29 -0
- package/dist/platform/migrations/0310_assignment_rules.sql +54 -0
- package/dist/platform/migrations/0320_duplicates.sql +41 -0
- package/dist/platform/migrations/0330_erase_completeness.sql +54 -0
- package/dist/platform/migrations/0350_assistant_thread.sql +38 -0
- package/dist/platform/migrations/0351_assistant_model_roles.sql +26 -0
- package/dist/platform/migrations/0352_assistant_memory.sql +74 -0
- package/dist/platform/migrations/0358_ai_cache_observation.sql +24 -0
- package/dist/platform/migrations/0359_ai_compaction_decision.sql +25 -0
- package/dist/platform/migrations/0360_ai_cache_estimate.sql +35 -0
- package/dist/platform/migrations/0361_voice_preferences.sql +27 -0
- package/dist/platform/migrations/0362_voice_usage.sql +17 -0
- package/dist/platform/migrations/0365_routines.sql +38 -0
- package/dist/platform/migrations/0370_approval_execution.sql +20 -0
- package/dist/platform/migrations/0371_agent_jobs.sql +65 -0
- package/dist/platform/migrations/0380_rec_views.sql +94 -0
- package/dist/platform/migrations/0400_customer_audit_actor.sql +142 -0
- package/dist/platform/migrations/0401_customer_accounts.sql +61 -0
- package/dist/platform/migrations/0402_erase_requests.sql +34 -0
- package/dist/platform/migrations/0410_idempotency_keys.sql +45 -0
- package/dist/platform/migrations/0411_device_sessions.sql +33 -0
- package/dist/platform/migrations/0420_transition_history.sql +100 -0
- package/dist/platform/migrations/0421_orders.sql +134 -0
- package/dist/platform/migrations/0422_order_payments.sql +109 -0
- package/dist/platform/migrations/0440_capacity.sql +100 -0
- package/dist/platform/migrations/0441_capacity_views.sql +40 -0
- package/dist/platform/migrations/0450_order_grants.sql +21 -0
- package/dist/platform/migrations/0451_pack_roles.sql +18 -0
- package/dist/platform/migrations/0460_content.sql +59 -0
- package/dist/platform/migrations/0461_media.sql +52 -0
- package/dist/platform/migrations/0470_publish_versions.sql +36 -0
- package/dist/platform/migrations/0471_permission_grants.sql +18 -0
- package/dist/platform/migrations/0490_staff_invites.sql +40 -0
- package/dist/platform/migrations/0491_sign_in_mail_kind.sql +10 -0
- package/dist/platform/migrations/0492_email_confirmation_and_sign_in_confirm.sql +30 -0
- package/dist/platform/migrations/0500_published_media_field.sql +25 -0
- package/dist/platform/migrations/0501_import_keys.sql +23 -0
- package/dist/platform/sdk/automation-check.ts +534 -0
- package/dist/platform/sdk/automation.ts +743 -0
- package/dist/platform/sdk/behaviour.ts +215 -0
- package/dist/platform/sdk/capacity.ts +112 -0
- package/dist/platform/sdk/contract.ts +766 -0
- package/dist/platform/sdk/document.ts +788 -0
- package/dist/platform/sdk/field-types.ts +106 -0
- package/dist/platform/sdk/formula/ast.ts +72 -0
- package/dist/platform/sdk/formula/compile.ts +454 -0
- package/dist/platform/sdk/formula/index.ts +4 -0
- package/dist/platform/sdk/formula/parser.ts +417 -0
- package/dist/platform/sdk/index.ts +33 -0
- package/dist/platform/sdk/manifest.ts +1484 -0
- package/dist/platform/sdk/media.ts +46 -0
- package/dist/platform/sdk/permissions.ts +60 -0
- package/dist/platform/sdk/renamed.ts +63 -0
- package/dist/platform/sdk/rich-text-fixture.ts +68 -0
- package/dist/platform/sdk/rich-text.ts +173 -0
- package/dist/platform/sdk/runtime.ts +410 -0
- package/dist/platform/sdk/sellable.ts +396 -0
- package/dist/platform/sdk/slug.ts +25 -0
- package/dist/platform/sdk/states.ts +162 -0
- package/dist/platform/sdk/testing.ts +836 -0
- package/dist/products-2H5DR232.js +11 -0
- package/dist/run-4JNFLYXV.js +847 -0
- package/dist/src-J27WXNLY.js +270 -0
- package/dist/src-SSVOBH6L.js +31 -0
- package/dist/token-MOJUA2U6.js +70 -0
- package/dist/token-util-TENRN4V7.js +6 -0
- package/package.json +33 -4
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
AUTOMATION_TRIGGER_TYPES,
|
|
4
|
+
AutomationStepError,
|
|
5
|
+
BASE_AUTOMATION_FIELDS,
|
|
6
|
+
CAPACITY_SHOW,
|
|
7
|
+
CAPACITY_VALUES,
|
|
8
|
+
CONTRACT_VERSION,
|
|
9
|
+
CORE_AUTOMATION_FIELDS,
|
|
10
|
+
CORE_FORMULA_FIELDS,
|
|
11
|
+
CORE_OBJECT_NAMES,
|
|
12
|
+
DEFAULT_WAIT_TIMEOUT,
|
|
13
|
+
DOCUMENT_DEFAULT_BYTES,
|
|
14
|
+
DOCUMENT_DEFAULT_TEXT,
|
|
15
|
+
DOCUMENT_MAX_BYTES,
|
|
16
|
+
DOCUMENT_MAX_DEPTH,
|
|
17
|
+
DOCUMENT_MAX_ISSUES,
|
|
18
|
+
DOCUMENT_MAX_LIST,
|
|
19
|
+
DOCUMENT_MAX_PATHS,
|
|
20
|
+
DOCUMENT_MAX_TEXT,
|
|
21
|
+
EXTENSION_ID_RE,
|
|
22
|
+
EXTENSION_PERMISSION_RE,
|
|
23
|
+
FIELD_NAME_RE,
|
|
24
|
+
FIELD_TYPES,
|
|
25
|
+
FORBIDDEN_OPERATION_PREFIXES,
|
|
26
|
+
GATEKEEPER_MODULES,
|
|
27
|
+
GRANT_SOURCES,
|
|
28
|
+
HOST_MODULES,
|
|
29
|
+
IMAGE_MAX_BYTES,
|
|
30
|
+
IMAGE_SCHEMA,
|
|
31
|
+
LOSSLESS_TYPE_CHANGES,
|
|
32
|
+
MAX_TOTAL_WAIT_DAYS,
|
|
33
|
+
MEDIA_MAX_BYTES,
|
|
34
|
+
MEDIA_TYPES,
|
|
35
|
+
MOVERS,
|
|
36
|
+
NOTIFY_OPERATION,
|
|
37
|
+
OBJECT_NAME_RE,
|
|
38
|
+
OLD_OPS_MODULE,
|
|
39
|
+
OLD_OPS_SPECIFIER,
|
|
40
|
+
OLD_VIEW_PREFIX,
|
|
41
|
+
OPS_MODULE,
|
|
42
|
+
OPS_SPECIFIER,
|
|
43
|
+
OpsCallError,
|
|
44
|
+
PUBLISHED_FIELD_NAMES,
|
|
45
|
+
RECORD_EVENTS,
|
|
46
|
+
RELATION_CORE_TARGETS,
|
|
47
|
+
RESERVED_FIELD_NAMES,
|
|
48
|
+
RICH_TEXT_BLOCKS,
|
|
49
|
+
RICH_TEXT_DEFAULT_BYTES,
|
|
50
|
+
RICH_TEXT_FIXTURE,
|
|
51
|
+
RICH_TEXT_FIXTURE_MEDIA,
|
|
52
|
+
RICH_TEXT_MARKS,
|
|
53
|
+
RICH_TEXT_MEDIA_OBJECT,
|
|
54
|
+
RICH_TEXT_SCHEMA,
|
|
55
|
+
SLUG_FROM_TITLE_MAX,
|
|
56
|
+
SLUG_MAX,
|
|
57
|
+
SLUG_RE,
|
|
58
|
+
STAGE_TYPES,
|
|
59
|
+
SUPPORTED_CONTRACT_VERSIONS,
|
|
60
|
+
SYNC_EVENT_TYPES,
|
|
61
|
+
TOOL_AUDIENCES,
|
|
62
|
+
TOOL_NAME_RE,
|
|
63
|
+
TOOL_RISKS,
|
|
64
|
+
VIEW_PREFIX,
|
|
65
|
+
WAIT_EVENT_RE,
|
|
66
|
+
automationConditionSchema,
|
|
67
|
+
automationConnectionSchema,
|
|
68
|
+
automationManifestSchema,
|
|
69
|
+
automationRailsSchema,
|
|
70
|
+
automationStepSchema,
|
|
71
|
+
automationTriggerSchema,
|
|
72
|
+
buildAutomationContext,
|
|
73
|
+
buildContext,
|
|
74
|
+
capacityManifestSchema,
|
|
75
|
+
checkAutomation,
|
|
76
|
+
checkDocumentSchema,
|
|
77
|
+
checkGrant,
|
|
78
|
+
checkObjectCapacity,
|
|
79
|
+
checkObjectSellable,
|
|
80
|
+
checkObjectStates,
|
|
81
|
+
cronIssues,
|
|
82
|
+
dashboardManifestSchema,
|
|
83
|
+
declaredModules,
|
|
84
|
+
defineAutomation,
|
|
85
|
+
defineExtension,
|
|
86
|
+
defineTool,
|
|
87
|
+
documentBytes,
|
|
88
|
+
documentJsonPath,
|
|
89
|
+
documentMaxBytesOf,
|
|
90
|
+
documentPathNode,
|
|
91
|
+
documentRefs,
|
|
92
|
+
documentSchemaOf,
|
|
93
|
+
durationMs,
|
|
94
|
+
durationSchema,
|
|
95
|
+
external_exports,
|
|
96
|
+
fieldManifestSchema,
|
|
97
|
+
formatDocumentIssue,
|
|
98
|
+
formulaFields,
|
|
99
|
+
formulaTypeOf,
|
|
100
|
+
hasMarkup,
|
|
101
|
+
isDocumentHref,
|
|
102
|
+
isDocumentType,
|
|
103
|
+
isExtension,
|
|
104
|
+
isLosslessChange,
|
|
105
|
+
manifestSchema,
|
|
106
|
+
mediaProblem,
|
|
107
|
+
moveOrigins,
|
|
108
|
+
notificationInput,
|
|
109
|
+
objectManifestSchema,
|
|
110
|
+
onRejectedSchema,
|
|
111
|
+
onStep,
|
|
112
|
+
permissionsManifestSchema,
|
|
113
|
+
recipientSchema,
|
|
114
|
+
recordActionManifestSchema,
|
|
115
|
+
recordViewManifestSchema,
|
|
116
|
+
redactDocument,
|
|
117
|
+
renamedMessage,
|
|
118
|
+
renamedView,
|
|
119
|
+
roleManifestSchema,
|
|
120
|
+
runAutomation,
|
|
121
|
+
runExtension,
|
|
122
|
+
sellableManifestSchema,
|
|
123
|
+
settingManifestSchema,
|
|
124
|
+
slugify,
|
|
125
|
+
sniffMediaType,
|
|
126
|
+
stagesManifestSchema,
|
|
127
|
+
statesManifestSchema,
|
|
128
|
+
toManifest,
|
|
129
|
+
toolManifestSchema,
|
|
130
|
+
triggerObject,
|
|
131
|
+
validateDocument,
|
|
132
|
+
validateManifest,
|
|
133
|
+
valueMatchSchema,
|
|
134
|
+
viewManifestSchema
|
|
135
|
+
} from "./chunk-X6I2LWB3.js";
|
|
136
|
+
import "./chunk-5KSXSK7Y.js";
|
|
137
|
+
export {
|
|
138
|
+
AUTOMATION_TRIGGER_TYPES,
|
|
139
|
+
AutomationStepError,
|
|
140
|
+
BASE_AUTOMATION_FIELDS,
|
|
141
|
+
CAPACITY_SHOW,
|
|
142
|
+
CAPACITY_VALUES,
|
|
143
|
+
CONTRACT_VERSION,
|
|
144
|
+
CORE_AUTOMATION_FIELDS,
|
|
145
|
+
CORE_FORMULA_FIELDS,
|
|
146
|
+
CORE_OBJECT_NAMES,
|
|
147
|
+
DEFAULT_WAIT_TIMEOUT,
|
|
148
|
+
DOCUMENT_DEFAULT_BYTES,
|
|
149
|
+
DOCUMENT_DEFAULT_TEXT,
|
|
150
|
+
DOCUMENT_MAX_BYTES,
|
|
151
|
+
DOCUMENT_MAX_DEPTH,
|
|
152
|
+
DOCUMENT_MAX_ISSUES,
|
|
153
|
+
DOCUMENT_MAX_LIST,
|
|
154
|
+
DOCUMENT_MAX_PATHS,
|
|
155
|
+
DOCUMENT_MAX_TEXT,
|
|
156
|
+
EXTENSION_ID_RE,
|
|
157
|
+
EXTENSION_PERMISSION_RE,
|
|
158
|
+
FIELD_NAME_RE,
|
|
159
|
+
FIELD_TYPES,
|
|
160
|
+
FORBIDDEN_OPERATION_PREFIXES,
|
|
161
|
+
GATEKEEPER_MODULES,
|
|
162
|
+
GRANT_SOURCES,
|
|
163
|
+
HOST_MODULES,
|
|
164
|
+
IMAGE_MAX_BYTES,
|
|
165
|
+
IMAGE_SCHEMA,
|
|
166
|
+
LOSSLESS_TYPE_CHANGES,
|
|
167
|
+
MAX_TOTAL_WAIT_DAYS,
|
|
168
|
+
MEDIA_MAX_BYTES,
|
|
169
|
+
MEDIA_TYPES,
|
|
170
|
+
MOVERS,
|
|
171
|
+
NOTIFY_OPERATION,
|
|
172
|
+
OBJECT_NAME_RE,
|
|
173
|
+
OLD_OPS_MODULE,
|
|
174
|
+
OLD_OPS_SPECIFIER,
|
|
175
|
+
OLD_VIEW_PREFIX,
|
|
176
|
+
OPS_MODULE,
|
|
177
|
+
OPS_SPECIFIER,
|
|
178
|
+
OpsCallError,
|
|
179
|
+
PUBLISHED_FIELD_NAMES,
|
|
180
|
+
RECORD_EVENTS,
|
|
181
|
+
RELATION_CORE_TARGETS,
|
|
182
|
+
RESERVED_FIELD_NAMES,
|
|
183
|
+
RICH_TEXT_BLOCKS,
|
|
184
|
+
RICH_TEXT_DEFAULT_BYTES,
|
|
185
|
+
RICH_TEXT_FIXTURE,
|
|
186
|
+
RICH_TEXT_FIXTURE_MEDIA,
|
|
187
|
+
RICH_TEXT_MARKS,
|
|
188
|
+
RICH_TEXT_MEDIA_OBJECT,
|
|
189
|
+
RICH_TEXT_SCHEMA,
|
|
190
|
+
SLUG_FROM_TITLE_MAX,
|
|
191
|
+
SLUG_MAX,
|
|
192
|
+
SLUG_RE,
|
|
193
|
+
STAGE_TYPES,
|
|
194
|
+
SUPPORTED_CONTRACT_VERSIONS,
|
|
195
|
+
SYNC_EVENT_TYPES,
|
|
196
|
+
TOOL_AUDIENCES,
|
|
197
|
+
TOOL_NAME_RE,
|
|
198
|
+
TOOL_RISKS,
|
|
199
|
+
VIEW_PREFIX,
|
|
200
|
+
WAIT_EVENT_RE,
|
|
201
|
+
automationConditionSchema,
|
|
202
|
+
automationConnectionSchema,
|
|
203
|
+
automationManifestSchema,
|
|
204
|
+
automationRailsSchema,
|
|
205
|
+
automationStepSchema,
|
|
206
|
+
automationTriggerSchema,
|
|
207
|
+
buildAutomationContext,
|
|
208
|
+
buildContext,
|
|
209
|
+
capacityManifestSchema,
|
|
210
|
+
checkAutomation,
|
|
211
|
+
checkDocumentSchema,
|
|
212
|
+
checkGrant,
|
|
213
|
+
checkObjectCapacity,
|
|
214
|
+
checkObjectSellable,
|
|
215
|
+
checkObjectStates,
|
|
216
|
+
cronIssues,
|
|
217
|
+
dashboardManifestSchema,
|
|
218
|
+
declaredModules,
|
|
219
|
+
defineAutomation,
|
|
220
|
+
defineExtension,
|
|
221
|
+
defineTool,
|
|
222
|
+
documentBytes,
|
|
223
|
+
documentJsonPath,
|
|
224
|
+
documentMaxBytesOf,
|
|
225
|
+
documentPathNode,
|
|
226
|
+
documentRefs,
|
|
227
|
+
documentSchemaOf,
|
|
228
|
+
durationMs,
|
|
229
|
+
durationSchema,
|
|
230
|
+
fieldManifestSchema,
|
|
231
|
+
formatDocumentIssue,
|
|
232
|
+
formulaFields,
|
|
233
|
+
formulaTypeOf,
|
|
234
|
+
hasMarkup,
|
|
235
|
+
isDocumentHref,
|
|
236
|
+
isDocumentType,
|
|
237
|
+
isExtension,
|
|
238
|
+
isLosslessChange,
|
|
239
|
+
manifestSchema,
|
|
240
|
+
mediaProblem,
|
|
241
|
+
moveOrigins,
|
|
242
|
+
notificationInput,
|
|
243
|
+
objectManifestSchema,
|
|
244
|
+
onRejectedSchema,
|
|
245
|
+
onStep,
|
|
246
|
+
permissionsManifestSchema,
|
|
247
|
+
recipientSchema,
|
|
248
|
+
recordActionManifestSchema,
|
|
249
|
+
recordViewManifestSchema,
|
|
250
|
+
redactDocument,
|
|
251
|
+
renamedMessage,
|
|
252
|
+
renamedView,
|
|
253
|
+
roleManifestSchema,
|
|
254
|
+
runAutomation,
|
|
255
|
+
runExtension,
|
|
256
|
+
sellableManifestSchema,
|
|
257
|
+
settingManifestSchema,
|
|
258
|
+
slugify,
|
|
259
|
+
sniffMediaType,
|
|
260
|
+
stagesManifestSchema,
|
|
261
|
+
statesManifestSchema,
|
|
262
|
+
toManifest,
|
|
263
|
+
toolManifestSchema,
|
|
264
|
+
triggerObject,
|
|
265
|
+
validateDocument,
|
|
266
|
+
validateManifest,
|
|
267
|
+
valueMatchSchema,
|
|
268
|
+
viewManifestSchema,
|
|
269
|
+
external_exports as z
|
|
270
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
ENTRY_POINTS,
|
|
4
|
+
operationsFor,
|
|
5
|
+
productContract,
|
|
6
|
+
releaseContract,
|
|
7
|
+
renderClient,
|
|
8
|
+
renderEntry,
|
|
9
|
+
renderRoleClient,
|
|
10
|
+
schemaToTs
|
|
11
|
+
} from "./chunk-2P4AZTFL.js";
|
|
12
|
+
import "./chunk-BEKL3CA2.js";
|
|
13
|
+
import "./chunk-MINQ46RU.js";
|
|
14
|
+
import "./chunk-ZRWF6QZS.js";
|
|
15
|
+
import "./chunk-6UWRT4VM.js";
|
|
16
|
+
import "./chunk-MAXLUQKB.js";
|
|
17
|
+
import "./chunk-STJZJIRA.js";
|
|
18
|
+
import "./chunk-KGHA67HG.js";
|
|
19
|
+
import "./chunk-2S7375SC.js";
|
|
20
|
+
import "./chunk-X6I2LWB3.js";
|
|
21
|
+
import "./chunk-5KSXSK7Y.js";
|
|
22
|
+
export {
|
|
23
|
+
ENTRY_POINTS,
|
|
24
|
+
operationsFor,
|
|
25
|
+
productContract,
|
|
26
|
+
releaseContract,
|
|
27
|
+
renderClient,
|
|
28
|
+
renderEntry,
|
|
29
|
+
renderRoleClient,
|
|
30
|
+
schemaToTs
|
|
31
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
require_token_error,
|
|
4
|
+
require_token_util
|
|
5
|
+
} from "./chunk-HDIOVFAZ.js";
|
|
6
|
+
import {
|
|
7
|
+
__commonJS
|
|
8
|
+
} from "./chunk-5KSXSK7Y.js";
|
|
9
|
+
|
|
10
|
+
// ../../node_modules/.pnpm/@vercel+oidc@3.2.0/node_modules/@vercel/oidc/dist/token.js
|
|
11
|
+
var require_token = __commonJS({
|
|
12
|
+
"../../node_modules/.pnpm/@vercel+oidc@3.2.0/node_modules/@vercel/oidc/dist/token.js"(exports, module) {
|
|
13
|
+
var __defProp = Object.defineProperty;
|
|
14
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
15
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
16
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
17
|
+
var __export = (target, all) => {
|
|
18
|
+
for (var name in all)
|
|
19
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
20
|
+
};
|
|
21
|
+
var __copyProps = (to, from, except, desc) => {
|
|
22
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
23
|
+
for (let key of __getOwnPropNames(from))
|
|
24
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
25
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
26
|
+
}
|
|
27
|
+
return to;
|
|
28
|
+
};
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
var token_exports = {};
|
|
31
|
+
__export(token_exports, {
|
|
32
|
+
refreshToken: () => refreshToken
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(token_exports);
|
|
35
|
+
var import_token_error = require_token_error();
|
|
36
|
+
var import_token_util = require_token_util();
|
|
37
|
+
async function refreshToken(options) {
|
|
38
|
+
let projectId = options?.project;
|
|
39
|
+
let teamId = options?.team;
|
|
40
|
+
if (!projectId && !teamId) {
|
|
41
|
+
const projectInfo = (0, import_token_util.findProjectInfo)();
|
|
42
|
+
projectId = projectInfo.projectId;
|
|
43
|
+
teamId = projectInfo.teamId;
|
|
44
|
+
} else if (!projectId || !teamId) {
|
|
45
|
+
const projectInfo = (0, import_token_util.findProjectInfo)();
|
|
46
|
+
projectId = projectId ?? projectInfo.projectId;
|
|
47
|
+
teamId = teamId ?? projectInfo.teamId;
|
|
48
|
+
}
|
|
49
|
+
if (!projectId) {
|
|
50
|
+
throw new import_token_error.VercelOidcTokenError(
|
|
51
|
+
"Failed to refresh OIDC token: No project specified. Try re-linking your project with `vc link`"
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
let maybeToken = (0, import_token_util.loadToken)(projectId);
|
|
55
|
+
if (!maybeToken || (0, import_token_util.isExpired)((0, import_token_util.getTokenPayload)(maybeToken.token), options?.expirationBufferMs)) {
|
|
56
|
+
const authToken = await (0, import_token_util.getVercelToken)({
|
|
57
|
+
expirationBufferMs: options?.expirationBufferMs
|
|
58
|
+
});
|
|
59
|
+
maybeToken = await (0, import_token_util.getVercelOidcToken)(authToken, projectId, teamId);
|
|
60
|
+
if (!maybeToken) {
|
|
61
|
+
throw new import_token_error.VercelOidcTokenError("Failed to refresh OIDC token");
|
|
62
|
+
}
|
|
63
|
+
(0, import_token_util.saveToken)(maybeToken, projectId);
|
|
64
|
+
}
|
|
65
|
+
process.env.VERCEL_OIDC_TOKEN = maybeToken.token;
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
export default require_token();
|
package/package.json
CHANGED
|
@@ -1,6 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@composable-os/cli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0-beta.7",
|
|
4
|
+
"license": "FSL-1.1-ALv2",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/timoconnellaus/composable-os.git"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://composableos.dev",
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public",
|
|
13
|
+
"provenance": true
|
|
14
|
+
},
|
|
15
|
+
"description": "cos: the Composable OS command. Create, adopt, deploy and upgrade a client repo; install a product into your own Cloudflare account from a verified release.",
|
|
16
|
+
"bin": {
|
|
17
|
+
"cos": "./dist/cli.js"
|
|
18
|
+
},
|
|
19
|
+
"exports": {
|
|
20
|
+
"./create": "./dist/create.js"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"README.md"
|
|
25
|
+
],
|
|
26
|
+
"engines": {
|
|
27
|
+
"node": ">=22"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"esbuild": "0.28.2",
|
|
31
|
+
"typescript": "6.0.3",
|
|
32
|
+
"@composable-os/sdk": "0.1.0-beta.7",
|
|
33
|
+
"zod": "4.6.7"
|
|
34
|
+
}
|
|
35
|
+
}
|