@rudderhq/cli 0.4.6-canary.0 → 0.4.6-canary.2
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/dist/index.js +363 -386
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -496,13 +496,6 @@ var init_agent_run = __esm({
|
|
|
496
496
|
}
|
|
497
497
|
});
|
|
498
498
|
|
|
499
|
-
// ../packages/shared/dist/types/observability.js
|
|
500
|
-
var init_observability = __esm({
|
|
501
|
-
"../packages/shared/dist/types/observability.js"() {
|
|
502
|
-
"use strict";
|
|
503
|
-
}
|
|
504
|
-
});
|
|
505
|
-
|
|
506
499
|
// ../packages/shared/dist/types/workspace-backup.js
|
|
507
500
|
var init_workspace_backup = __esm({
|
|
508
501
|
"../packages/shared/dist/types/workspace-backup.js"() {
|
|
@@ -623,7 +616,7 @@ var init_custom_integration = __esm({
|
|
|
623
616
|
|
|
624
617
|
// ../packages/shared/dist/validators/instance.js
|
|
625
618
|
import { z as z2 } from "zod";
|
|
626
|
-
var DEFAULT_INSTANCE_BROWSER_SETTINGS, instanceBrowserSettingsSchema, patchInstanceBrowserSettingsSchema, instanceLocaleSchema, instanceGeneralSettingsSchema, patchInstanceGeneralSettingsSchema, instanceNotificationSettingsSchema, patchInstanceNotificationSettingsSchema,
|
|
619
|
+
var DEFAULT_INSTANCE_BROWSER_SETTINGS, instanceBrowserSettingsSchema, patchInstanceBrowserSettingsSchema, instanceLocaleSchema, instanceGeneralSettingsSchema, patchInstanceGeneralSettingsSchema, instanceNotificationSettingsSchema, patchInstanceNotificationSettingsSchema, OPERATOR_PROFILE_MORE_ABOUT_YOU_MAX_LENGTH, operatorProfileSettingsSchema, patchOperatorProfileSettingsSchema, KEYBOARD_SHORTCUT_ACTION_IDS, keyboardShortcutActionIdSchema, keyboardShortcutBindingSchema, keyboardShortcutPreferenceSchema, keyboardShortcutSettingsSchema, instancePathPickerSelectionTypeSchema, instancePathPickerRequestSchema, instancePathPickerResultSchema;
|
|
627
620
|
var init_instance = __esm({
|
|
628
621
|
"../packages/shared/dist/validators/instance.js"() {
|
|
629
622
|
"use strict";
|
|
@@ -653,23 +646,6 @@ var init_instance = __esm({
|
|
|
653
646
|
desktopChatNotifications: z2.boolean().default(true)
|
|
654
647
|
}).strict();
|
|
655
648
|
patchInstanceNotificationSettingsSchema = instanceNotificationSettingsSchema.partial();
|
|
656
|
-
instanceLangfuseSettingsSchema = z2.object({
|
|
657
|
-
installed: z2.boolean().default(false),
|
|
658
|
-
enabled: z2.boolean().default(false),
|
|
659
|
-
baseUrl: z2.string().url().default("http://localhost:3000"),
|
|
660
|
-
publicKey: z2.string().default(""),
|
|
661
|
-
environment: z2.string().default(""),
|
|
662
|
-
secretKeyConfigured: z2.boolean().default(false),
|
|
663
|
-
managedByEnv: z2.boolean().default(false)
|
|
664
|
-
}).strict();
|
|
665
|
-
patchInstanceLangfuseSettingsSchema = z2.object({
|
|
666
|
-
enabled: z2.boolean().optional(),
|
|
667
|
-
baseUrl: z2.string().url().optional(),
|
|
668
|
-
publicKey: z2.string().optional(),
|
|
669
|
-
secretKey: z2.string().optional(),
|
|
670
|
-
environment: z2.string().optional(),
|
|
671
|
-
clearSecretKey: z2.boolean().optional()
|
|
672
|
-
}).strict();
|
|
673
649
|
OPERATOR_PROFILE_MORE_ABOUT_YOU_MAX_LENGTH = 8e3;
|
|
674
650
|
operatorProfileSettingsSchema = z2.object({
|
|
675
651
|
nickname: z2.string().max(80).default(""),
|
|
@@ -1231,230 +1207,300 @@ var init_organization_intelligence_profile = __esm({
|
|
|
1231
1207
|
}
|
|
1232
1208
|
});
|
|
1233
1209
|
|
|
1234
|
-
// ../packages/shared/dist/
|
|
1210
|
+
// ../packages/shared/dist/organization-issue-key.js
|
|
1211
|
+
var ORGANIZATION_ISSUE_KEY_MAX_LENGTH, ORGANIZATION_ISSUE_KEY_PATTERN;
|
|
1212
|
+
var init_organization_issue_key = __esm({
|
|
1213
|
+
"../packages/shared/dist/organization-issue-key.js"() {
|
|
1214
|
+
"use strict";
|
|
1215
|
+
ORGANIZATION_ISSUE_KEY_MAX_LENGTH = 12;
|
|
1216
|
+
ORGANIZATION_ISSUE_KEY_PATTERN = /^[A-Z][A-Z0-9]*$/;
|
|
1217
|
+
}
|
|
1218
|
+
});
|
|
1219
|
+
|
|
1220
|
+
// ../packages/shared/dist/validators/organization.js
|
|
1235
1221
|
import { z as z9 } from "zod";
|
|
1222
|
+
var logoAssetIdSchema, brandColorSchema, organizationIssueKeySchema, createOrganizationSchema, updateOrganizationSchema, updateOrganizationBrandingSchema, updateOrganizationWorkspaceFileSchema, createOrganizationWorkspaceFileSchema, createOrganizationWorkspaceDirectorySchema, renameOrganizationWorkspaceEntrySchema, moveOrganizationWorkspaceEntrySchema, copyOrganizationWorkspaceEntrySchema;
|
|
1223
|
+
var init_organization = __esm({
|
|
1224
|
+
"../packages/shared/dist/validators/organization.js"() {
|
|
1225
|
+
"use strict";
|
|
1226
|
+
init_constants();
|
|
1227
|
+
init_organization_issue_key();
|
|
1228
|
+
logoAssetIdSchema = z9.string().uuid().nullable().optional();
|
|
1229
|
+
brandColorSchema = z9.string().regex(/^#[0-9a-fA-F]{6}$/).nullable().optional();
|
|
1230
|
+
organizationIssueKeySchema = z9.string().trim().min(1).max(ORGANIZATION_ISSUE_KEY_MAX_LENGTH).transform((value) => value.toUpperCase()).refine((value) => ORGANIZATION_ISSUE_KEY_PATTERN.test(value), {
|
|
1231
|
+
message: "Issue key must start with a letter and contain only letters and numbers"
|
|
1232
|
+
});
|
|
1233
|
+
createOrganizationSchema = z9.object({
|
|
1234
|
+
name: z9.string().min(1),
|
|
1235
|
+
issuePrefix: organizationIssueKeySchema.optional(),
|
|
1236
|
+
description: z9.string().optional().nullable(),
|
|
1237
|
+
budgetMonthlyCents: z9.number().int().nonnegative().optional().default(0),
|
|
1238
|
+
defaultChatIssueCreationMode: z9.enum(CHAT_ISSUE_CREATION_MODES).optional().default("manual_approval"),
|
|
1239
|
+
brandColor: brandColorSchema,
|
|
1240
|
+
requireBoardApprovalForNewAgents: z9.boolean().optional()
|
|
1241
|
+
});
|
|
1242
|
+
updateOrganizationSchema = createOrganizationSchema.partial().extend({
|
|
1243
|
+
status: z9.enum(ORGANIZATION_STATUSES).optional(),
|
|
1244
|
+
spentMonthlyCents: z9.number().int().nonnegative().optional(),
|
|
1245
|
+
requireBoardApprovalForNewAgents: z9.boolean().optional(),
|
|
1246
|
+
defaultChatIssueCreationMode: z9.enum(CHAT_ISSUE_CREATION_MODES).optional(),
|
|
1247
|
+
brandColor: brandColorSchema,
|
|
1248
|
+
logoAssetId: logoAssetIdSchema
|
|
1249
|
+
});
|
|
1250
|
+
updateOrganizationBrandingSchema = z9.object({
|
|
1251
|
+
name: z9.string().min(1).optional(),
|
|
1252
|
+
description: z9.string().nullable().optional(),
|
|
1253
|
+
brandColor: brandColorSchema,
|
|
1254
|
+
logoAssetId: logoAssetIdSchema
|
|
1255
|
+
}).strict().refine((value) => value.name !== void 0 || value.description !== void 0 || value.brandColor !== void 0 || value.logoAssetId !== void 0, "At least one branding field must be provided");
|
|
1256
|
+
updateOrganizationWorkspaceFileSchema = z9.object({
|
|
1257
|
+
content: z9.string()
|
|
1258
|
+
});
|
|
1259
|
+
createOrganizationWorkspaceFileSchema = z9.object({
|
|
1260
|
+
filePath: z9.string().trim().min(1).max(1e3),
|
|
1261
|
+
content: z9.string().optional().default("")
|
|
1262
|
+
});
|
|
1263
|
+
createOrganizationWorkspaceDirectorySchema = z9.object({
|
|
1264
|
+
directoryPath: z9.string().trim().min(1).max(1e3)
|
|
1265
|
+
});
|
|
1266
|
+
renameOrganizationWorkspaceEntrySchema = z9.object({
|
|
1267
|
+
name: z9.string().trim().min(1).max(255)
|
|
1268
|
+
});
|
|
1269
|
+
moveOrganizationWorkspaceEntrySchema = z9.object({
|
|
1270
|
+
destinationDirectoryPath: z9.string().trim().max(1e3).default("")
|
|
1271
|
+
});
|
|
1272
|
+
copyOrganizationWorkspaceEntrySchema = z9.object({
|
|
1273
|
+
destinationDirectoryPath: z9.string().trim().max(1e3).optional()
|
|
1274
|
+
});
|
|
1275
|
+
}
|
|
1276
|
+
});
|
|
1277
|
+
|
|
1278
|
+
// ../packages/shared/dist/validators/organization-portability.js
|
|
1279
|
+
import { z as z10 } from "zod";
|
|
1236
1280
|
var portabilityIncludeSchema, portabilityEnvInputSchema, portabilityFileEntrySchema, portabilityOrganizationManifestEntrySchema, portabilitySidebarOrderSchema, portabilityAgentManifestEntrySchema, portabilitySkillManifestEntrySchema, portabilityProjectManifestEntrySchema, portabilityIssueAutomationTriggerManifestEntrySchema, portabilityIssueAutomationManifestEntrySchema, portabilityIssueManifestEntrySchema, portabilityManifestSchema, portabilitySourceSchema, portabilityTargetSchema, portabilityAgentSelectionSchema, portabilityCollisionStrategySchema, organizationPortabilityExportSchema, organizationPortabilityPreviewSchema, portabilityAdapterOverrideSchema, organizationPortabilityImportSchema;
|
|
1237
1281
|
var init_organization_portability = __esm({
|
|
1238
1282
|
"../packages/shared/dist/validators/organization-portability.js"() {
|
|
1239
1283
|
"use strict";
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1284
|
+
init_organization();
|
|
1285
|
+
portabilityIncludeSchema = z10.object({
|
|
1286
|
+
organization: z10.boolean().optional(),
|
|
1287
|
+
agents: z10.boolean().optional(),
|
|
1288
|
+
projects: z10.boolean().optional(),
|
|
1289
|
+
issues: z10.boolean().optional(),
|
|
1290
|
+
skills: z10.boolean().optional()
|
|
1246
1291
|
}).partial();
|
|
1247
|
-
portabilityEnvInputSchema =
|
|
1248
|
-
key:
|
|
1249
|
-
description:
|
|
1250
|
-
agentSlug:
|
|
1251
|
-
kind:
|
|
1252
|
-
requirement:
|
|
1253
|
-
defaultValue:
|
|
1254
|
-
portability:
|
|
1292
|
+
portabilityEnvInputSchema = z10.object({
|
|
1293
|
+
key: z10.string().min(1),
|
|
1294
|
+
description: z10.string().nullable(),
|
|
1295
|
+
agentSlug: z10.string().min(1).nullable(),
|
|
1296
|
+
kind: z10.enum(["secret", "plain"]),
|
|
1297
|
+
requirement: z10.enum(["required", "optional"]),
|
|
1298
|
+
defaultValue: z10.string().nullable(),
|
|
1299
|
+
portability: z10.enum(["portable", "system_dependent"])
|
|
1255
1300
|
});
|
|
1256
|
-
portabilityFileEntrySchema =
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
encoding:
|
|
1260
|
-
data:
|
|
1261
|
-
contentType:
|
|
1301
|
+
portabilityFileEntrySchema = z10.union([
|
|
1302
|
+
z10.string(),
|
|
1303
|
+
z10.object({
|
|
1304
|
+
encoding: z10.literal("base64"),
|
|
1305
|
+
data: z10.string(),
|
|
1306
|
+
contentType: z10.string().min(1).optional().nullable()
|
|
1262
1307
|
})
|
|
1263
1308
|
]);
|
|
1264
|
-
portabilityOrganizationManifestEntrySchema =
|
|
1265
|
-
path:
|
|
1266
|
-
name:
|
|
1267
|
-
description:
|
|
1268
|
-
brandColor:
|
|
1269
|
-
logoPath:
|
|
1270
|
-
requireBoardApprovalForNewAgents:
|
|
1309
|
+
portabilityOrganizationManifestEntrySchema = z10.object({
|
|
1310
|
+
path: z10.string().min(1),
|
|
1311
|
+
name: z10.string().min(1),
|
|
1312
|
+
description: z10.string().nullable(),
|
|
1313
|
+
brandColor: z10.string().nullable(),
|
|
1314
|
+
logoPath: z10.string().nullable(),
|
|
1315
|
+
requireBoardApprovalForNewAgents: z10.boolean()
|
|
1271
1316
|
});
|
|
1272
|
-
portabilitySidebarOrderSchema =
|
|
1273
|
-
agents:
|
|
1274
|
-
projects:
|
|
1317
|
+
portabilitySidebarOrderSchema = z10.object({
|
|
1318
|
+
agents: z10.array(z10.string().min(1)).default([]),
|
|
1319
|
+
projects: z10.array(z10.string().min(1)).default([])
|
|
1275
1320
|
});
|
|
1276
|
-
portabilityAgentManifestEntrySchema =
|
|
1277
|
-
slug:
|
|
1278
|
-
name:
|
|
1279
|
-
path:
|
|
1280
|
-
skills:
|
|
1281
|
-
role:
|
|
1282
|
-
title:
|
|
1283
|
-
icon:
|
|
1284
|
-
capabilities:
|
|
1285
|
-
reportsToSlug:
|
|
1286
|
-
agentRuntimeType:
|
|
1287
|
-
agentRuntimeConfig:
|
|
1288
|
-
runtimeConfig:
|
|
1289
|
-
permissions:
|
|
1290
|
-
budgetMonthlyCents:
|
|
1291
|
-
metadata:
|
|
1321
|
+
portabilityAgentManifestEntrySchema = z10.object({
|
|
1322
|
+
slug: z10.string().min(1),
|
|
1323
|
+
name: z10.string().min(1),
|
|
1324
|
+
path: z10.string().min(1),
|
|
1325
|
+
skills: z10.array(z10.string().min(1)).default([]),
|
|
1326
|
+
role: z10.string().min(1),
|
|
1327
|
+
title: z10.string().nullable(),
|
|
1328
|
+
icon: z10.string().nullable(),
|
|
1329
|
+
capabilities: z10.string().nullable(),
|
|
1330
|
+
reportsToSlug: z10.string().min(1).nullable(),
|
|
1331
|
+
agentRuntimeType: z10.string().min(1),
|
|
1332
|
+
agentRuntimeConfig: z10.record(z10.unknown()),
|
|
1333
|
+
runtimeConfig: z10.record(z10.unknown()),
|
|
1334
|
+
permissions: z10.record(z10.unknown()),
|
|
1335
|
+
budgetMonthlyCents: z10.number().int().nonnegative(),
|
|
1336
|
+
metadata: z10.record(z10.unknown()).nullable()
|
|
1292
1337
|
});
|
|
1293
|
-
portabilitySkillManifestEntrySchema =
|
|
1294
|
-
key:
|
|
1295
|
-
slug:
|
|
1296
|
-
name:
|
|
1297
|
-
path:
|
|
1298
|
-
description:
|
|
1299
|
-
sourceType:
|
|
1300
|
-
sourceLocator:
|
|
1301
|
-
sourceRef:
|
|
1302
|
-
trustLevel:
|
|
1303
|
-
compatibility:
|
|
1304
|
-
metadata:
|
|
1305
|
-
fileInventory:
|
|
1306
|
-
path:
|
|
1307
|
-
kind:
|
|
1338
|
+
portabilitySkillManifestEntrySchema = z10.object({
|
|
1339
|
+
key: z10.string().min(1),
|
|
1340
|
+
slug: z10.string().min(1),
|
|
1341
|
+
name: z10.string().min(1),
|
|
1342
|
+
path: z10.string().min(1),
|
|
1343
|
+
description: z10.string().nullable(),
|
|
1344
|
+
sourceType: z10.string().min(1),
|
|
1345
|
+
sourceLocator: z10.string().nullable(),
|
|
1346
|
+
sourceRef: z10.string().nullable(),
|
|
1347
|
+
trustLevel: z10.string().nullable(),
|
|
1348
|
+
compatibility: z10.string().nullable(),
|
|
1349
|
+
metadata: z10.record(z10.unknown()).nullable(),
|
|
1350
|
+
fileInventory: z10.array(z10.object({
|
|
1351
|
+
path: z10.string().min(1),
|
|
1352
|
+
kind: z10.string().min(1)
|
|
1308
1353
|
})).default([])
|
|
1309
1354
|
});
|
|
1310
|
-
portabilityProjectManifestEntrySchema =
|
|
1311
|
-
slug:
|
|
1312
|
-
name:
|
|
1313
|
-
path:
|
|
1314
|
-
description:
|
|
1315
|
-
ownerAgentSlug:
|
|
1316
|
-
leadAgentSlug:
|
|
1317
|
-
targetDate:
|
|
1318
|
-
color:
|
|
1319
|
-
status:
|
|
1320
|
-
executionWorkspacePolicy:
|
|
1321
|
-
workspaces:
|
|
1322
|
-
key:
|
|
1323
|
-
name:
|
|
1324
|
-
sourceType:
|
|
1325
|
-
repoUrl:
|
|
1326
|
-
repoRef:
|
|
1327
|
-
defaultRef:
|
|
1328
|
-
visibility:
|
|
1329
|
-
setupCommand:
|
|
1330
|
-
cleanupCommand:
|
|
1331
|
-
metadata:
|
|
1332
|
-
isPrimary:
|
|
1355
|
+
portabilityProjectManifestEntrySchema = z10.object({
|
|
1356
|
+
slug: z10.string().min(1),
|
|
1357
|
+
name: z10.string().min(1),
|
|
1358
|
+
path: z10.string().min(1),
|
|
1359
|
+
description: z10.string().nullable(),
|
|
1360
|
+
ownerAgentSlug: z10.string().min(1).nullable(),
|
|
1361
|
+
leadAgentSlug: z10.string().min(1).nullable(),
|
|
1362
|
+
targetDate: z10.string().nullable(),
|
|
1363
|
+
color: z10.string().nullable(),
|
|
1364
|
+
status: z10.string().nullable(),
|
|
1365
|
+
executionWorkspacePolicy: z10.record(z10.unknown()).nullable(),
|
|
1366
|
+
workspaces: z10.array(z10.object({
|
|
1367
|
+
key: z10.string().min(1),
|
|
1368
|
+
name: z10.string().min(1),
|
|
1369
|
+
sourceType: z10.string().nullable(),
|
|
1370
|
+
repoUrl: z10.string().nullable(),
|
|
1371
|
+
repoRef: z10.string().nullable(),
|
|
1372
|
+
defaultRef: z10.string().nullable(),
|
|
1373
|
+
visibility: z10.string().nullable(),
|
|
1374
|
+
setupCommand: z10.string().nullable(),
|
|
1375
|
+
cleanupCommand: z10.string().nullable(),
|
|
1376
|
+
metadata: z10.record(z10.unknown()).nullable(),
|
|
1377
|
+
isPrimary: z10.boolean()
|
|
1333
1378
|
})).default([]),
|
|
1334
|
-
metadata:
|
|
1379
|
+
metadata: z10.record(z10.unknown()).nullable()
|
|
1335
1380
|
});
|
|
1336
|
-
portabilityIssueAutomationTriggerManifestEntrySchema =
|
|
1337
|
-
kind:
|
|
1338
|
-
label:
|
|
1339
|
-
enabled:
|
|
1340
|
-
cronExpression:
|
|
1341
|
-
timezone:
|
|
1342
|
-
signingMode:
|
|
1343
|
-
replayWindowSec:
|
|
1381
|
+
portabilityIssueAutomationTriggerManifestEntrySchema = z10.object({
|
|
1382
|
+
kind: z10.string().min(1),
|
|
1383
|
+
label: z10.string().nullable(),
|
|
1384
|
+
enabled: z10.boolean(),
|
|
1385
|
+
cronExpression: z10.string().nullable(),
|
|
1386
|
+
timezone: z10.string().nullable(),
|
|
1387
|
+
signingMode: z10.string().nullable(),
|
|
1388
|
+
replayWindowSec: z10.number().int().nullable()
|
|
1344
1389
|
});
|
|
1345
|
-
portabilityIssueAutomationManifestEntrySchema =
|
|
1346
|
-
concurrencyPolicy:
|
|
1347
|
-
catchUpPolicy:
|
|
1348
|
-
triggers:
|
|
1390
|
+
portabilityIssueAutomationManifestEntrySchema = z10.object({
|
|
1391
|
+
concurrencyPolicy: z10.string().nullable(),
|
|
1392
|
+
catchUpPolicy: z10.string().nullable(),
|
|
1393
|
+
triggers: z10.array(portabilityIssueAutomationTriggerManifestEntrySchema).default([])
|
|
1349
1394
|
});
|
|
1350
|
-
portabilityIssueManifestEntrySchema =
|
|
1351
|
-
slug:
|
|
1352
|
-
identifier:
|
|
1353
|
-
title:
|
|
1354
|
-
path:
|
|
1355
|
-
projectSlug:
|
|
1356
|
-
projectWorkspaceKey:
|
|
1357
|
-
assigneeAgentSlug:
|
|
1358
|
-
description:
|
|
1359
|
-
recurring:
|
|
1395
|
+
portabilityIssueManifestEntrySchema = z10.object({
|
|
1396
|
+
slug: z10.string().min(1),
|
|
1397
|
+
identifier: z10.string().min(1).nullable(),
|
|
1398
|
+
title: z10.string().min(1),
|
|
1399
|
+
path: z10.string().min(1),
|
|
1400
|
+
projectSlug: z10.string().min(1).nullable(),
|
|
1401
|
+
projectWorkspaceKey: z10.string().min(1).nullable(),
|
|
1402
|
+
assigneeAgentSlug: z10.string().min(1).nullable(),
|
|
1403
|
+
description: z10.string().nullable(),
|
|
1404
|
+
recurring: z10.boolean().default(false),
|
|
1360
1405
|
automation: portabilityIssueAutomationManifestEntrySchema.nullable(),
|
|
1361
|
-
legacyRecurrence:
|
|
1362
|
-
status:
|
|
1363
|
-
priority:
|
|
1364
|
-
labelIds:
|
|
1365
|
-
billingCode:
|
|
1366
|
-
executionWorkspaceSettings:
|
|
1367
|
-
assigneeAgentRuntimeOverrides:
|
|
1368
|
-
metadata:
|
|
1406
|
+
legacyRecurrence: z10.record(z10.unknown()).nullable(),
|
|
1407
|
+
status: z10.string().nullable(),
|
|
1408
|
+
priority: z10.string().nullable(),
|
|
1409
|
+
labelIds: z10.array(z10.string().min(1)).default([]),
|
|
1410
|
+
billingCode: z10.string().nullable(),
|
|
1411
|
+
executionWorkspaceSettings: z10.record(z10.unknown()).nullable(),
|
|
1412
|
+
assigneeAgentRuntimeOverrides: z10.record(z10.unknown()).nullable(),
|
|
1413
|
+
metadata: z10.record(z10.unknown()).nullable()
|
|
1369
1414
|
});
|
|
1370
|
-
portabilityManifestSchema =
|
|
1371
|
-
schemaVersion:
|
|
1372
|
-
generatedAt:
|
|
1373
|
-
source:
|
|
1374
|
-
orgId:
|
|
1375
|
-
organizationName:
|
|
1415
|
+
portabilityManifestSchema = z10.object({
|
|
1416
|
+
schemaVersion: z10.number().int().positive(),
|
|
1417
|
+
generatedAt: z10.string().datetime(),
|
|
1418
|
+
source: z10.object({
|
|
1419
|
+
orgId: z10.string().uuid(),
|
|
1420
|
+
organizationName: z10.string().min(1)
|
|
1376
1421
|
}).nullable(),
|
|
1377
|
-
includes:
|
|
1378
|
-
organization:
|
|
1379
|
-
agents:
|
|
1380
|
-
projects:
|
|
1381
|
-
issues:
|
|
1382
|
-
skills:
|
|
1422
|
+
includes: z10.object({
|
|
1423
|
+
organization: z10.boolean(),
|
|
1424
|
+
agents: z10.boolean(),
|
|
1425
|
+
projects: z10.boolean(),
|
|
1426
|
+
issues: z10.boolean(),
|
|
1427
|
+
skills: z10.boolean()
|
|
1383
1428
|
}),
|
|
1384
1429
|
organization: portabilityOrganizationManifestEntrySchema.nullable(),
|
|
1385
1430
|
sidebar: portabilitySidebarOrderSchema.nullable(),
|
|
1386
|
-
agents:
|
|
1387
|
-
skills:
|
|
1388
|
-
projects:
|
|
1389
|
-
issues:
|
|
1390
|
-
envInputs:
|
|
1431
|
+
agents: z10.array(portabilityAgentManifestEntrySchema),
|
|
1432
|
+
skills: z10.array(portabilitySkillManifestEntrySchema).default([]),
|
|
1433
|
+
projects: z10.array(portabilityProjectManifestEntrySchema).default([]),
|
|
1434
|
+
issues: z10.array(portabilityIssueManifestEntrySchema).default([]),
|
|
1435
|
+
envInputs: z10.array(portabilityEnvInputSchema).default([])
|
|
1391
1436
|
});
|
|
1392
|
-
portabilitySourceSchema =
|
|
1393
|
-
|
|
1394
|
-
type:
|
|
1395
|
-
rootPath:
|
|
1396
|
-
files:
|
|
1437
|
+
portabilitySourceSchema = z10.discriminatedUnion("type", [
|
|
1438
|
+
z10.object({
|
|
1439
|
+
type: z10.literal("inline"),
|
|
1440
|
+
rootPath: z10.string().min(1).optional().nullable(),
|
|
1441
|
+
files: z10.record(portabilityFileEntrySchema)
|
|
1397
1442
|
}),
|
|
1398
|
-
|
|
1399
|
-
type:
|
|
1400
|
-
url:
|
|
1443
|
+
z10.object({
|
|
1444
|
+
type: z10.literal("github"),
|
|
1445
|
+
url: z10.string().url()
|
|
1401
1446
|
})
|
|
1402
1447
|
]);
|
|
1403
|
-
portabilityTargetSchema =
|
|
1404
|
-
|
|
1405
|
-
mode:
|
|
1406
|
-
newOrganizationName:
|
|
1448
|
+
portabilityTargetSchema = z10.discriminatedUnion("mode", [
|
|
1449
|
+
z10.object({
|
|
1450
|
+
mode: z10.literal("new_organization"),
|
|
1451
|
+
newOrganizationName: z10.string().min(1).optional().nullable(),
|
|
1452
|
+
newOrganizationIssueKey: organizationIssueKeySchema.optional().nullable()
|
|
1407
1453
|
}),
|
|
1408
|
-
|
|
1409
|
-
mode:
|
|
1410
|
-
orgId:
|
|
1454
|
+
z10.object({
|
|
1455
|
+
mode: z10.literal("existing_organization"),
|
|
1456
|
+
orgId: z10.string().uuid()
|
|
1411
1457
|
})
|
|
1412
1458
|
]);
|
|
1413
|
-
portabilityAgentSelectionSchema =
|
|
1414
|
-
|
|
1415
|
-
|
|
1459
|
+
portabilityAgentSelectionSchema = z10.union([
|
|
1460
|
+
z10.literal("all"),
|
|
1461
|
+
z10.array(z10.string().min(1))
|
|
1416
1462
|
]);
|
|
1417
|
-
portabilityCollisionStrategySchema =
|
|
1418
|
-
organizationPortabilityExportSchema =
|
|
1463
|
+
portabilityCollisionStrategySchema = z10.enum(["rename", "skip", "replace"]);
|
|
1464
|
+
organizationPortabilityExportSchema = z10.object({
|
|
1419
1465
|
include: portabilityIncludeSchema.optional(),
|
|
1420
|
-
agents:
|
|
1421
|
-
skills:
|
|
1422
|
-
projects:
|
|
1423
|
-
issues:
|
|
1424
|
-
projectIssues:
|
|
1425
|
-
selectedFiles:
|
|
1426
|
-
expandReferencedSkills:
|
|
1466
|
+
agents: z10.array(z10.string().min(1)).optional(),
|
|
1467
|
+
skills: z10.array(z10.string().min(1)).optional(),
|
|
1468
|
+
projects: z10.array(z10.string().min(1)).optional(),
|
|
1469
|
+
issues: z10.array(z10.string().min(1)).optional(),
|
|
1470
|
+
projectIssues: z10.array(z10.string().min(1)).optional(),
|
|
1471
|
+
selectedFiles: z10.array(z10.string().min(1)).optional(),
|
|
1472
|
+
expandReferencedSkills: z10.boolean().optional(),
|
|
1427
1473
|
sidebarOrder: portabilitySidebarOrderSchema.partial().optional()
|
|
1428
1474
|
});
|
|
1429
|
-
organizationPortabilityPreviewSchema =
|
|
1475
|
+
organizationPortabilityPreviewSchema = z10.object({
|
|
1430
1476
|
source: portabilitySourceSchema,
|
|
1431
1477
|
include: portabilityIncludeSchema.optional(),
|
|
1432
1478
|
target: portabilityTargetSchema,
|
|
1433
1479
|
agents: portabilityAgentSelectionSchema.optional(),
|
|
1434
1480
|
collisionStrategy: portabilityCollisionStrategySchema.optional(),
|
|
1435
|
-
nameOverrides:
|
|
1436
|
-
selectedFiles:
|
|
1481
|
+
nameOverrides: z10.record(z10.string().min(1), z10.string().min(1)).optional(),
|
|
1482
|
+
selectedFiles: z10.array(z10.string().min(1)).optional()
|
|
1437
1483
|
});
|
|
1438
|
-
portabilityAdapterOverrideSchema =
|
|
1439
|
-
agentRuntimeType:
|
|
1440
|
-
agentRuntimeConfig:
|
|
1484
|
+
portabilityAdapterOverrideSchema = z10.object({
|
|
1485
|
+
agentRuntimeType: z10.string().min(1),
|
|
1486
|
+
agentRuntimeConfig: z10.record(z10.unknown()).optional()
|
|
1441
1487
|
});
|
|
1442
1488
|
organizationPortabilityImportSchema = organizationPortabilityPreviewSchema.extend({
|
|
1443
|
-
agentRuntimeOverrides:
|
|
1489
|
+
agentRuntimeOverrides: z10.record(z10.string().min(1), portabilityAdapterOverrideSchema).optional()
|
|
1444
1490
|
});
|
|
1445
1491
|
}
|
|
1446
1492
|
});
|
|
1447
1493
|
|
|
1448
1494
|
// ../packages/shared/dist/validators/organization-skill.js
|
|
1449
|
-
import { z as
|
|
1495
|
+
import { z as z11 } from "zod";
|
|
1450
1496
|
var organizationSkillSourceTypeSchema, organizationSkillTrustLevelSchema, organizationSkillCompatibilitySchema, organizationSkillSourceBadgeSchema, organizationSkillFileInventoryEntrySchema, organizationSkillSchema, organizationSkillListItemSchema, organizationSkillUsageAgentSchema, organizationSkillDetailSchema, organizationSkillUpdateStatusSchema, organizationSkillImportSchema, organizationSkillProjectScanRequestSchema, organizationSkillProjectScanSkippedSchema, organizationSkillProjectScanConflictSchema, organizationSkillProjectScanResultSchema, organizationSkillLocalScanRequestSchema, organizationSkillLocalScanSkippedSchema, organizationSkillLocalScanConflictSchema, organizationSkillLocalScanResultSchema, organizationSkillCreateSchema, organizationSkillFileDetailSchema, organizationSkillFileUpdateSchema;
|
|
1451
1497
|
var init_organization_skill = __esm({
|
|
1452
1498
|
"../packages/shared/dist/validators/organization-skill.js"() {
|
|
1453
1499
|
"use strict";
|
|
1454
|
-
organizationSkillSourceTypeSchema =
|
|
1455
|
-
organizationSkillTrustLevelSchema =
|
|
1456
|
-
organizationSkillCompatibilitySchema =
|
|
1457
|
-
organizationSkillSourceBadgeSchema =
|
|
1500
|
+
organizationSkillSourceTypeSchema = z11.enum(["local_path", "github", "url", "catalog", "skills_sh"]);
|
|
1501
|
+
organizationSkillTrustLevelSchema = z11.enum(["markdown_only", "assets", "scripts_executables"]);
|
|
1502
|
+
organizationSkillCompatibilitySchema = z11.enum(["compatible", "unknown", "invalid"]);
|
|
1503
|
+
organizationSkillSourceBadgeSchema = z11.enum([
|
|
1458
1504
|
"rudder",
|
|
1459
1505
|
"community",
|
|
1460
1506
|
"github",
|
|
@@ -1463,199 +1509,146 @@ var init_organization_skill = __esm({
|
|
|
1463
1509
|
"catalog",
|
|
1464
1510
|
"skills_sh"
|
|
1465
1511
|
]);
|
|
1466
|
-
organizationSkillFileInventoryEntrySchema =
|
|
1467
|
-
path:
|
|
1468
|
-
kind:
|
|
1512
|
+
organizationSkillFileInventoryEntrySchema = z11.object({
|
|
1513
|
+
path: z11.string().min(1),
|
|
1514
|
+
kind: z11.enum(["skill", "markdown", "reference", "script", "asset", "other"])
|
|
1469
1515
|
});
|
|
1470
|
-
organizationSkillSchema =
|
|
1471
|
-
id:
|
|
1472
|
-
orgId:
|
|
1473
|
-
key:
|
|
1474
|
-
slug:
|
|
1475
|
-
name:
|
|
1476
|
-
description:
|
|
1477
|
-
markdown:
|
|
1516
|
+
organizationSkillSchema = z11.object({
|
|
1517
|
+
id: z11.string().uuid(),
|
|
1518
|
+
orgId: z11.string().uuid(),
|
|
1519
|
+
key: z11.string().min(1),
|
|
1520
|
+
slug: z11.string().min(1),
|
|
1521
|
+
name: z11.string().min(1),
|
|
1522
|
+
description: z11.string().nullable(),
|
|
1523
|
+
markdown: z11.string(),
|
|
1478
1524
|
sourceType: organizationSkillSourceTypeSchema,
|
|
1479
|
-
sourceLocator:
|
|
1480
|
-
sourceRef:
|
|
1525
|
+
sourceLocator: z11.string().nullable(),
|
|
1526
|
+
sourceRef: z11.string().nullable(),
|
|
1481
1527
|
trustLevel: organizationSkillTrustLevelSchema,
|
|
1482
1528
|
compatibility: organizationSkillCompatibilitySchema,
|
|
1483
|
-
fileInventory:
|
|
1484
|
-
metadata:
|
|
1485
|
-
createdAt:
|
|
1486
|
-
updatedAt:
|
|
1529
|
+
fileInventory: z11.array(organizationSkillFileInventoryEntrySchema).default([]),
|
|
1530
|
+
metadata: z11.record(z11.unknown()).nullable(),
|
|
1531
|
+
createdAt: z11.coerce.date(),
|
|
1532
|
+
updatedAt: z11.coerce.date()
|
|
1487
1533
|
});
|
|
1488
1534
|
organizationSkillListItemSchema = organizationSkillSchema.extend({
|
|
1489
|
-
attachedAgentCount:
|
|
1490
|
-
editable:
|
|
1491
|
-
editableReason:
|
|
1492
|
-
sourceLabel:
|
|
1535
|
+
attachedAgentCount: z11.number().int().nonnegative(),
|
|
1536
|
+
editable: z11.boolean(),
|
|
1537
|
+
editableReason: z11.string().nullable(),
|
|
1538
|
+
sourceLabel: z11.string().nullable(),
|
|
1493
1539
|
sourceBadge: organizationSkillSourceBadgeSchema,
|
|
1494
|
-
sourcePath:
|
|
1495
|
-
workspaceEditPath:
|
|
1540
|
+
sourcePath: z11.string().nullable(),
|
|
1541
|
+
workspaceEditPath: z11.string().nullable()
|
|
1496
1542
|
});
|
|
1497
|
-
organizationSkillUsageAgentSchema =
|
|
1498
|
-
id:
|
|
1499
|
-
name:
|
|
1500
|
-
urlKey:
|
|
1501
|
-
agentRuntimeType:
|
|
1502
|
-
desired:
|
|
1503
|
-
actualState:
|
|
1543
|
+
organizationSkillUsageAgentSchema = z11.object({
|
|
1544
|
+
id: z11.string().uuid(),
|
|
1545
|
+
name: z11.string().min(1),
|
|
1546
|
+
urlKey: z11.string().min(1),
|
|
1547
|
+
agentRuntimeType: z11.string().min(1),
|
|
1548
|
+
desired: z11.boolean(),
|
|
1549
|
+
actualState: z11.string().nullable()
|
|
1504
1550
|
});
|
|
1505
1551
|
organizationSkillDetailSchema = organizationSkillSchema.extend({
|
|
1506
|
-
attachedAgentCount:
|
|
1507
|
-
usedByAgents:
|
|
1508
|
-
editable:
|
|
1509
|
-
editableReason:
|
|
1510
|
-
sourceLabel:
|
|
1552
|
+
attachedAgentCount: z11.number().int().nonnegative(),
|
|
1553
|
+
usedByAgents: z11.array(organizationSkillUsageAgentSchema).default([]),
|
|
1554
|
+
editable: z11.boolean(),
|
|
1555
|
+
editableReason: z11.string().nullable(),
|
|
1556
|
+
sourceLabel: z11.string().nullable(),
|
|
1511
1557
|
sourceBadge: organizationSkillSourceBadgeSchema,
|
|
1512
|
-
sourcePath:
|
|
1513
|
-
workspaceEditPath:
|
|
1558
|
+
sourcePath: z11.string().nullable(),
|
|
1559
|
+
workspaceEditPath: z11.string().nullable()
|
|
1514
1560
|
});
|
|
1515
|
-
organizationSkillUpdateStatusSchema =
|
|
1516
|
-
supported:
|
|
1517
|
-
reason:
|
|
1518
|
-
trackingRef:
|
|
1519
|
-
currentRef:
|
|
1520
|
-
latestRef:
|
|
1521
|
-
hasUpdate:
|
|
1561
|
+
organizationSkillUpdateStatusSchema = z11.object({
|
|
1562
|
+
supported: z11.boolean(),
|
|
1563
|
+
reason: z11.string().nullable(),
|
|
1564
|
+
trackingRef: z11.string().nullable(),
|
|
1565
|
+
currentRef: z11.string().nullable(),
|
|
1566
|
+
latestRef: z11.string().nullable(),
|
|
1567
|
+
hasUpdate: z11.boolean()
|
|
1522
1568
|
});
|
|
1523
|
-
organizationSkillImportSchema =
|
|
1524
|
-
source:
|
|
1569
|
+
organizationSkillImportSchema = z11.object({
|
|
1570
|
+
source: z11.string().min(1)
|
|
1525
1571
|
});
|
|
1526
|
-
organizationSkillProjectScanRequestSchema =
|
|
1527
|
-
projectIds:
|
|
1528
|
-
workspaceIds:
|
|
1572
|
+
organizationSkillProjectScanRequestSchema = z11.object({
|
|
1573
|
+
projectIds: z11.array(z11.string().uuid()).optional(),
|
|
1574
|
+
workspaceIds: z11.array(z11.string().uuid()).optional()
|
|
1529
1575
|
});
|
|
1530
|
-
organizationSkillProjectScanSkippedSchema =
|
|
1531
|
-
projectId:
|
|
1532
|
-
projectName:
|
|
1533
|
-
workspaceId:
|
|
1534
|
-
workspaceName:
|
|
1535
|
-
path:
|
|
1536
|
-
reason:
|
|
1576
|
+
organizationSkillProjectScanSkippedSchema = z11.object({
|
|
1577
|
+
projectId: z11.string().uuid(),
|
|
1578
|
+
projectName: z11.string().min(1),
|
|
1579
|
+
workspaceId: z11.string().uuid().nullable(),
|
|
1580
|
+
workspaceName: z11.string().nullable(),
|
|
1581
|
+
path: z11.string().nullable(),
|
|
1582
|
+
reason: z11.string().min(1)
|
|
1537
1583
|
});
|
|
1538
|
-
organizationSkillProjectScanConflictSchema =
|
|
1539
|
-
slug:
|
|
1540
|
-
key:
|
|
1541
|
-
projectId:
|
|
1542
|
-
projectName:
|
|
1543
|
-
workspaceId:
|
|
1544
|
-
workspaceName:
|
|
1545
|
-
path:
|
|
1546
|
-
existingSkillId:
|
|
1547
|
-
existingSkillKey:
|
|
1548
|
-
existingSourceLocator:
|
|
1549
|
-
reason:
|
|
1584
|
+
organizationSkillProjectScanConflictSchema = z11.object({
|
|
1585
|
+
slug: z11.string().min(1),
|
|
1586
|
+
key: z11.string().min(1),
|
|
1587
|
+
projectId: z11.string().uuid(),
|
|
1588
|
+
projectName: z11.string().min(1),
|
|
1589
|
+
workspaceId: z11.string().uuid(),
|
|
1590
|
+
workspaceName: z11.string().min(1),
|
|
1591
|
+
path: z11.string().min(1),
|
|
1592
|
+
existingSkillId: z11.string().uuid(),
|
|
1593
|
+
existingSkillKey: z11.string().min(1),
|
|
1594
|
+
existingSourceLocator: z11.string().nullable(),
|
|
1595
|
+
reason: z11.string().min(1)
|
|
1550
1596
|
});
|
|
1551
|
-
organizationSkillProjectScanResultSchema =
|
|
1552
|
-
scannedProjects:
|
|
1553
|
-
scannedWorkspaces:
|
|
1554
|
-
discovered:
|
|
1555
|
-
imported:
|
|
1556
|
-
updated:
|
|
1557
|
-
skipped:
|
|
1558
|
-
conflicts:
|
|
1559
|
-
warnings:
|
|
1597
|
+
organizationSkillProjectScanResultSchema = z11.object({
|
|
1598
|
+
scannedProjects: z11.number().int().nonnegative(),
|
|
1599
|
+
scannedWorkspaces: z11.number().int().nonnegative(),
|
|
1600
|
+
discovered: z11.number().int().nonnegative(),
|
|
1601
|
+
imported: z11.array(organizationSkillSchema),
|
|
1602
|
+
updated: z11.array(organizationSkillSchema),
|
|
1603
|
+
skipped: z11.array(organizationSkillProjectScanSkippedSchema),
|
|
1604
|
+
conflicts: z11.array(organizationSkillProjectScanConflictSchema),
|
|
1605
|
+
warnings: z11.array(z11.string())
|
|
1560
1606
|
});
|
|
1561
|
-
organizationSkillLocalScanRequestSchema =
|
|
1562
|
-
roots:
|
|
1607
|
+
organizationSkillLocalScanRequestSchema = z11.object({
|
|
1608
|
+
roots: z11.array(z11.string().min(1)).optional()
|
|
1563
1609
|
});
|
|
1564
|
-
organizationSkillLocalScanSkippedSchema =
|
|
1565
|
-
root:
|
|
1566
|
-
path:
|
|
1567
|
-
reason:
|
|
1610
|
+
organizationSkillLocalScanSkippedSchema = z11.object({
|
|
1611
|
+
root: z11.string().min(1),
|
|
1612
|
+
path: z11.string().nullable(),
|
|
1613
|
+
reason: z11.string().min(1)
|
|
1568
1614
|
});
|
|
1569
|
-
organizationSkillLocalScanConflictSchema =
|
|
1570
|
-
root:
|
|
1571
|
-
path:
|
|
1572
|
-
slug:
|
|
1573
|
-
key:
|
|
1574
|
-
existingSkillId:
|
|
1575
|
-
existingSkillKey:
|
|
1576
|
-
existingSourceLocator:
|
|
1577
|
-
reason:
|
|
1615
|
+
organizationSkillLocalScanConflictSchema = z11.object({
|
|
1616
|
+
root: z11.string().min(1),
|
|
1617
|
+
path: z11.string().min(1),
|
|
1618
|
+
slug: z11.string().min(1),
|
|
1619
|
+
key: z11.string().min(1),
|
|
1620
|
+
existingSkillId: z11.string().uuid(),
|
|
1621
|
+
existingSkillKey: z11.string().min(1),
|
|
1622
|
+
existingSourceLocator: z11.string().nullable(),
|
|
1623
|
+
reason: z11.string().min(1)
|
|
1578
1624
|
});
|
|
1579
|
-
organizationSkillLocalScanResultSchema =
|
|
1580
|
-
scannedRoots:
|
|
1581
|
-
discovered:
|
|
1582
|
-
imported:
|
|
1583
|
-
updated:
|
|
1584
|
-
skipped:
|
|
1585
|
-
conflicts:
|
|
1586
|
-
warnings:
|
|
1625
|
+
organizationSkillLocalScanResultSchema = z11.object({
|
|
1626
|
+
scannedRoots: z11.number().int().nonnegative(),
|
|
1627
|
+
discovered: z11.number().int().nonnegative(),
|
|
1628
|
+
imported: z11.array(organizationSkillSchema),
|
|
1629
|
+
updated: z11.array(organizationSkillSchema),
|
|
1630
|
+
skipped: z11.array(organizationSkillLocalScanSkippedSchema),
|
|
1631
|
+
conflicts: z11.array(organizationSkillLocalScanConflictSchema),
|
|
1632
|
+
warnings: z11.array(z11.string())
|
|
1587
1633
|
});
|
|
1588
|
-
organizationSkillCreateSchema =
|
|
1589
|
-
name: z10.string().min(1),
|
|
1590
|
-
slug: z10.string().min(1).nullable().optional(),
|
|
1591
|
-
description: z10.string().nullable().optional(),
|
|
1592
|
-
markdown: z10.string().nullable().optional()
|
|
1593
|
-
});
|
|
1594
|
-
organizationSkillFileDetailSchema = z10.object({
|
|
1595
|
-
skillId: z10.string().uuid(),
|
|
1596
|
-
path: z10.string().min(1),
|
|
1597
|
-
kind: z10.enum(["skill", "markdown", "reference", "script", "asset", "other"]),
|
|
1598
|
-
content: z10.string(),
|
|
1599
|
-
language: z10.string().nullable(),
|
|
1600
|
-
markdown: z10.boolean(),
|
|
1601
|
-
editable: z10.boolean()
|
|
1602
|
-
});
|
|
1603
|
-
organizationSkillFileUpdateSchema = z10.object({
|
|
1604
|
-
path: z10.string().min(1),
|
|
1605
|
-
content: z10.string()
|
|
1606
|
-
});
|
|
1607
|
-
}
|
|
1608
|
-
});
|
|
1609
|
-
|
|
1610
|
-
// ../packages/shared/dist/validators/organization.js
|
|
1611
|
-
import { z as z11 } from "zod";
|
|
1612
|
-
var logoAssetIdSchema, brandColorSchema, createOrganizationSchema, updateOrganizationSchema, updateOrganizationBrandingSchema, updateOrganizationWorkspaceFileSchema, createOrganizationWorkspaceFileSchema, createOrganizationWorkspaceDirectorySchema, renameOrganizationWorkspaceEntrySchema, moveOrganizationWorkspaceEntrySchema, copyOrganizationWorkspaceEntrySchema;
|
|
1613
|
-
var init_organization = __esm({
|
|
1614
|
-
"../packages/shared/dist/validators/organization.js"() {
|
|
1615
|
-
"use strict";
|
|
1616
|
-
init_constants();
|
|
1617
|
-
logoAssetIdSchema = z11.string().uuid().nullable().optional();
|
|
1618
|
-
brandColorSchema = z11.string().regex(/^#[0-9a-fA-F]{6}$/).nullable().optional();
|
|
1619
|
-
createOrganizationSchema = z11.object({
|
|
1634
|
+
organizationSkillCreateSchema = z11.object({
|
|
1620
1635
|
name: z11.string().min(1),
|
|
1621
|
-
|
|
1622
|
-
budgetMonthlyCents: z11.number().int().nonnegative().optional().default(0),
|
|
1623
|
-
defaultChatIssueCreationMode: z11.enum(CHAT_ISSUE_CREATION_MODES).optional().default("manual_approval"),
|
|
1624
|
-
brandColor: brandColorSchema,
|
|
1625
|
-
requireBoardApprovalForNewAgents: z11.boolean().optional()
|
|
1626
|
-
});
|
|
1627
|
-
updateOrganizationSchema = createOrganizationSchema.partial().extend({
|
|
1628
|
-
status: z11.enum(ORGANIZATION_STATUSES).optional(),
|
|
1629
|
-
spentMonthlyCents: z11.number().int().nonnegative().optional(),
|
|
1630
|
-
requireBoardApprovalForNewAgents: z11.boolean().optional(),
|
|
1631
|
-
defaultChatIssueCreationMode: z11.enum(CHAT_ISSUE_CREATION_MODES).optional(),
|
|
1632
|
-
brandColor: brandColorSchema,
|
|
1633
|
-
logoAssetId: logoAssetIdSchema
|
|
1634
|
-
});
|
|
1635
|
-
updateOrganizationBrandingSchema = z11.object({
|
|
1636
|
-
name: z11.string().min(1).optional(),
|
|
1636
|
+
slug: z11.string().min(1).nullable().optional(),
|
|
1637
1637
|
description: z11.string().nullable().optional(),
|
|
1638
|
-
|
|
1639
|
-
logoAssetId: logoAssetIdSchema
|
|
1640
|
-
}).strict().refine((value) => value.name !== void 0 || value.description !== void 0 || value.brandColor !== void 0 || value.logoAssetId !== void 0, "At least one branding field must be provided");
|
|
1641
|
-
updateOrganizationWorkspaceFileSchema = z11.object({
|
|
1642
|
-
content: z11.string()
|
|
1643
|
-
});
|
|
1644
|
-
createOrganizationWorkspaceFileSchema = z11.object({
|
|
1645
|
-
filePath: z11.string().trim().min(1).max(1e3),
|
|
1646
|
-
content: z11.string().optional().default("")
|
|
1638
|
+
markdown: z11.string().nullable().optional()
|
|
1647
1639
|
});
|
|
1648
|
-
|
|
1649
|
-
|
|
1640
|
+
organizationSkillFileDetailSchema = z11.object({
|
|
1641
|
+
skillId: z11.string().uuid(),
|
|
1642
|
+
path: z11.string().min(1),
|
|
1643
|
+
kind: z11.enum(["skill", "markdown", "reference", "script", "asset", "other"]),
|
|
1644
|
+
content: z11.string(),
|
|
1645
|
+
language: z11.string().nullable(),
|
|
1646
|
+
markdown: z11.boolean(),
|
|
1647
|
+
editable: z11.boolean()
|
|
1650
1648
|
});
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
moveOrganizationWorkspaceEntrySchema = z11.object({
|
|
1655
|
-
destinationDirectoryPath: z11.string().trim().max(1e3).default("")
|
|
1656
|
-
});
|
|
1657
|
-
copyOrganizationWorkspaceEntrySchema = z11.object({
|
|
1658
|
-
destinationDirectoryPath: z11.string().trim().max(1e3).optional()
|
|
1649
|
+
organizationSkillFileUpdateSchema = z11.object({
|
|
1650
|
+
path: z11.string().min(1),
|
|
1651
|
+
content: z11.string()
|
|
1659
1652
|
});
|
|
1660
1653
|
}
|
|
1661
1654
|
});
|
|
@@ -3188,7 +3181,7 @@ var init_issue_activity = __esm({
|
|
|
3188
3181
|
|
|
3189
3182
|
// ../packages/shared/dist/config-schema.js
|
|
3190
3183
|
import { z as z29 } from "zod";
|
|
3191
|
-
var DEFAULT_DATABASE_BACKUP_MAX_ESTIMATED_BYTES, configMetaSchema, llmConfigSchema, databaseBackupConfigSchema, databaseConfigSchema, loggingConfigSchema, serverConfigSchema, authConfigSchema, storageLocalDiskConfigSchema, storageS3ConfigSchema, storageConfigSchema, secretsLocalEncryptedConfigSchema, secretsConfigSchema,
|
|
3184
|
+
var DEFAULT_DATABASE_BACKUP_MAX_ESTIMATED_BYTES, configMetaSchema, llmConfigSchema, databaseBackupConfigSchema, databaseConfigSchema, loggingConfigSchema, serverConfigSchema, authConfigSchema, storageLocalDiskConfigSchema, storageS3ConfigSchema, storageConfigSchema, secretsLocalEncryptedConfigSchema, secretsConfigSchema, rudderConfigSchema;
|
|
3192
3185
|
var init_config_schema = __esm({
|
|
3193
3186
|
"../packages/shared/dist/config-schema.js"() {
|
|
3194
3187
|
"use strict";
|
|
@@ -3272,14 +3265,6 @@ var init_config_schema = __esm({
|
|
|
3272
3265
|
keyFilePath: "~/.rudder/instances/default/secrets/master.key"
|
|
3273
3266
|
})
|
|
3274
3267
|
});
|
|
3275
|
-
langfuseConfigSchema = z29.object({
|
|
3276
|
-
installed: z29.boolean().optional(),
|
|
3277
|
-
enabled: z29.boolean().default(false),
|
|
3278
|
-
baseUrl: z29.string().url().default("http://localhost:3000"),
|
|
3279
|
-
publicKey: z29.string().optional(),
|
|
3280
|
-
secretKey: z29.string().optional(),
|
|
3281
|
-
environment: z29.string().optional()
|
|
3282
|
-
});
|
|
3283
3268
|
rudderConfigSchema = z29.object({
|
|
3284
3269
|
$meta: configMetaSchema,
|
|
3285
3270
|
llm: llmConfigSchema.optional(),
|
|
@@ -3308,8 +3293,7 @@ var init_config_schema = __esm({
|
|
|
3308
3293
|
localEncrypted: {
|
|
3309
3294
|
keyFilePath: "~/.rudder/instances/default/secrets/master.key"
|
|
3310
3295
|
}
|
|
3311
|
-
})
|
|
3312
|
-
langfuse: langfuseConfigSchema.optional()
|
|
3296
|
+
})
|
|
3313
3297
|
}).superRefine((value, ctx) => {
|
|
3314
3298
|
if (value.server.deploymentMode === "local_trusted") {
|
|
3315
3299
|
if (value.server.exposure !== "private") {
|
|
@@ -3353,7 +3337,6 @@ var init_dist = __esm({
|
|
|
3353
3337
|
init_chat_work_manifest();
|
|
3354
3338
|
init_constants();
|
|
3355
3339
|
init_agent_run();
|
|
3356
|
-
init_observability();
|
|
3357
3340
|
init_workspace_backup();
|
|
3358
3341
|
init_website_icons();
|
|
3359
3342
|
init_custom_integration();
|
|
@@ -3362,6 +3345,7 @@ var init_dist = __esm({
|
|
|
3362
3345
|
init_agent_url_key();
|
|
3363
3346
|
init_api();
|
|
3364
3347
|
init_messenger_preview();
|
|
3348
|
+
init_organization_issue_key();
|
|
3365
3349
|
init_organization_skill_reference();
|
|
3366
3350
|
init_organization_url_key();
|
|
3367
3351
|
init_project_mentions();
|
|
@@ -12773,7 +12757,7 @@ function registerCompanyCommands(program) {
|
|
|
12773
12757
|
})
|
|
12774
12758
|
);
|
|
12775
12759
|
addCommonClientOptions(
|
|
12776
|
-
company.command("import").description("Import a portable markdown organization package from local path, URL, or GitHub").argument("<fromPathOrUrl>", "Source path or URL").option("--include <values>", "Comma-separated include set: organization,agents,projects,issues,tasks,skills").option("--target <mode>", "Target mode: new | existing").option("-O, --org-id <id>", "Existing target organization ID").option("--new-organization-name <name>", "Name override for --target new").option("--agents <list>", "Comma-separated agent slugs to import, or all", "all").option("--collision <mode>", "Collision strategy: rename | skip | replace", "rename").option("--ref <value>", "Git ref to use for GitHub imports (branch, tag, or commit)").option("--rudder-url <url>", "Alias for --api-base on this command").option("--yes", "Accept default selection and skip the pre-import confirmation prompt", false).option("--dry-run", "Run preview only without applying", false).action(async (fromPathOrUrl, opts) => {
|
|
12760
|
+
company.command("import").description("Import a portable markdown organization package from local path, URL, or GitHub").argument("<fromPathOrUrl>", "Source path or URL").option("--include <values>", "Comma-separated include set: organization,agents,projects,issues,tasks,skills").option("--target <mode>", "Target mode: new | existing").option("-O, --org-id <id>", "Existing target organization ID").option("--new-organization-name <name>", "Name override for --target new").option("--new-organization-issue-key <key>", "Issue Key override for --target new").option("--agents <list>", "Comma-separated agent slugs to import, or all", "all").option("--collision <mode>", "Collision strategy: rename | skip | replace", "rename").option("--ref <value>", "Git ref to use for GitHub imports (branch, tag, or commit)").option("--rudder-url <url>", "Alias for --api-base on this command").option("--yes", "Accept default selection and skip the pre-import confirmation prompt", false).option("--dry-run", "Run preview only without applying", false).action(async (fromPathOrUrl, opts) => {
|
|
12777
12761
|
try {
|
|
12778
12762
|
if (!opts.apiBase?.trim() && opts.rudderUrl?.trim()) {
|
|
12779
12763
|
opts.apiBase = opts.rudderUrl.trim();
|
|
@@ -12801,7 +12785,8 @@ function registerCompanyCommands(program) {
|
|
|
12801
12785
|
orgId: existingTargetOrganizationId
|
|
12802
12786
|
} : {
|
|
12803
12787
|
mode: "new_organization",
|
|
12804
|
-
newOrganizationName: opts.newOrganizationName?.trim() || null
|
|
12788
|
+
newOrganizationName: opts.newOrganizationName?.trim() || null,
|
|
12789
|
+
newOrganizationIssueKey: opts.newOrganizationIssueKey?.trim() || null
|
|
12805
12790
|
};
|
|
12806
12791
|
if (targetPayload.mode === "existing_organization" && !targetPayload.orgId) {
|
|
12807
12792
|
throw new Error("Target existing organization requires --org-id (or context default orgId).");
|
|
@@ -14382,7 +14367,6 @@ function formatRunListRow(row) {
|
|
|
14382
14367
|
finishedAt: row.run.finishedAt ?? "-",
|
|
14383
14368
|
evidence: row.skillEvidence?.evidenceType ?? "-",
|
|
14384
14369
|
skill: row.skillEvidence?.matchedSkillKey ?? "-",
|
|
14385
|
-
langfuse: readLangfuseTraceUrl(row.langfuse) ?? "-",
|
|
14386
14370
|
error: row.errorSummary ?? "-",
|
|
14387
14371
|
next: row.run.status === "failed" ? `rudder runs errors ${runId}` : `rudder runs transcript ${runId}`
|
|
14388
14372
|
};
|
|
@@ -14460,7 +14444,6 @@ function formatInlineSkillRun(row) {
|
|
|
14460
14444
|
const runId = formatCliRunId(row.run.id);
|
|
14461
14445
|
const issue = formatIssueRef(row.issue);
|
|
14462
14446
|
const label = row.skillEvidence?.matchedSkillLabel && row.skillEvidence.matchedSkillLabel !== row.skillEvidence.matchedSkillKey ? ` label=${row.skillEvidence.matchedSkillLabel}` : "";
|
|
14463
|
-
const langfuse = readLangfuseTraceUrl(row.langfuse);
|
|
14464
14447
|
return [
|
|
14465
14448
|
`id=${runId}`,
|
|
14466
14449
|
`status=${row.run.status}`,
|
|
@@ -14471,7 +14454,6 @@ function formatInlineSkillRun(row) {
|
|
|
14471
14454
|
`finishedAt=${row.run.finishedAt ?? "-"}`,
|
|
14472
14455
|
`evidence=${row.skillEvidence?.evidenceType ?? "-"}`,
|
|
14473
14456
|
`skill=${row.skillEvidence?.matchedSkillKey ?? "-"}${label}`,
|
|
14474
|
-
`langfuse=${langfuse ?? "-"}`,
|
|
14475
14457
|
`error=${row.errorSummary ?? "-"}`,
|
|
14476
14458
|
`next=${row.run.status === "failed" ? `rudder runs errors ${runId}` : `rudder runs transcript ${runId}`}`
|
|
14477
14459
|
].join(" ");
|
|
@@ -14480,11 +14462,6 @@ function formatIssueRef(issue) {
|
|
|
14480
14462
|
if (!issue) return "-";
|
|
14481
14463
|
return issue.identifier && issue.title ? `${issue.identifier} ${issue.title}` : issue.identifier ?? issue.title ?? issue.id;
|
|
14482
14464
|
}
|
|
14483
|
-
function readLangfuseTraceUrl(value) {
|
|
14484
|
-
if (!value || typeof value !== "object") return null;
|
|
14485
|
-
const traceUrl = value.traceUrl;
|
|
14486
|
-
return typeof traceUrl === "string" && traceUrl.length > 0 ? traceUrl : null;
|
|
14487
|
-
}
|
|
14488
14465
|
function formatRunEvent(row) {
|
|
14489
14466
|
return {
|
|
14490
14467
|
seq: row.seq,
|