@brimble/models 3.8.151 → 3.8.153

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.
@@ -0,0 +1,9 @@
1
+ import { IAgentDesignSkillRevision } from "./types/agent-design-skill-revision";
2
+ declare const _default: import("mongoose").Model<IAgentDesignSkillRevision, {}, {}, {}, import("mongoose").Document<unknown, {}, IAgentDesignSkillRevision, {}, import("mongoose").DefaultSchemaOptions> & IAgentDesignSkillRevision & Required<{
3
+ _id: import("mongoose").Types.ObjectId;
4
+ }> & {
5
+ __v: number;
6
+ } & {
7
+ id: string;
8
+ }, any, IAgentDesignSkillRevision>;
9
+ export default _default;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const mongoose_1 = require("mongoose");
4
+ const enum_1 = require("./enum");
5
+ const fileSchema = new mongoose_1.Schema({
6
+ path: { type: String, required: true },
7
+ content: { type: String, required: true },
8
+ bytes: { type: Number, required: true },
9
+ }, { _id: false });
10
+ const inspectionSchema = new mongoose_1.Schema({
11
+ verdict: { type: String, enum: Object.values(enum_1.AGENT_DESIGN_SKILL_VERDICT), required: true },
12
+ capabilities: { type: [String], default: [] },
13
+ warnings: { type: [String], default: [] },
14
+ rejected_reasons: { type: [String], default: [] },
15
+ script_references: { type: [String], default: [] },
16
+ external_references: { type: [String], default: [] },
17
+ suspicious_patterns: { type: [String], default: [] },
18
+ inspector_version: { type: String, required: true },
19
+ inspected_at: { type: Date, required: true },
20
+ }, { _id: false });
21
+ const licenseSchema = new mongoose_1.Schema({
22
+ name: { type: String, default: null },
23
+ path: { type: String, default: null },
24
+ text_hash: { type: String, default: null },
25
+ }, { _id: false });
26
+ const agentDesignSkillRevisionSchema = new mongoose_1.Schema({
27
+ skill_id: { type: mongoose_1.Schema.Types.ObjectId, ref: "AgentDesignSkill", required: true },
28
+ commit: { type: String, required: true },
29
+ content_hash: { type: String, required: true },
30
+ trust_level: {
31
+ type: String,
32
+ enum: Object.values(enum_1.AGENT_DESIGN_SKILL_TRUST_LEVEL),
33
+ required: true,
34
+ default: enum_1.AGENT_DESIGN_SKILL_TRUST_LEVEL.Untrusted,
35
+ },
36
+ status: {
37
+ type: String,
38
+ enum: Object.values(enum_1.AGENT_DESIGN_SKILL_STATUS),
39
+ required: true,
40
+ default: enum_1.AGENT_DESIGN_SKILL_STATUS.Quarantined,
41
+ },
42
+ description: { type: String, default: "" },
43
+ categories: { type: [String], default: [] },
44
+ attribution: { type: String, default: null },
45
+ source_url: { type: String, required: true },
46
+ license: { type: licenseSchema, required: true },
47
+ inspection: { type: inspectionSchema, required: true },
48
+ files: { type: [fileSchema], default: [] },
49
+ total_bytes: { type: Number, required: true },
50
+ }, {
51
+ timestamps: { createdAt: "created_at", updatedAt: "updated_at" },
52
+ collection: "agent_design_skill_revisions",
53
+ });
54
+ agentDesignSkillRevisionSchema.index({ skill_id: 1, commit: 1 }, { unique: true });
55
+ agentDesignSkillRevisionSchema.index({ content_hash: 1 });
56
+ agentDesignSkillRevisionSchema.index({ skill_id: 1, status: 1, created_at: -1 });
57
+ exports.default = (0, mongoose_1.model)("AgentDesignSkillRevision", agentDesignSkillRevisionSchema);
@@ -0,0 +1,9 @@
1
+ import { IAgentDesignSkill } from "./types/agent-design-skill";
2
+ declare const _default: import("mongoose").Model<IAgentDesignSkill, {}, {}, {}, import("mongoose").Document<unknown, {}, IAgentDesignSkill, {}, import("mongoose").DefaultSchemaOptions> & IAgentDesignSkill & Required<{
3
+ _id: import("mongoose").Types.ObjectId;
4
+ }> & {
5
+ __v: number;
6
+ } & {
7
+ id: string;
8
+ }, any, IAgentDesignSkill>;
9
+ export default _default;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const mongoose_1 = require("mongoose");
4
+ const enum_1 = require("./enum");
5
+ const agentDesignSkillSchema = new mongoose_1.Schema({
6
+ name: { type: String, required: true },
7
+ repository: { type: String, required: true },
8
+ skill_path: { type: String, required: true },
9
+ source_id: { type: String, required: true },
10
+ status: {
11
+ type: String,
12
+ enum: Object.values(enum_1.AGENT_DESIGN_SKILL_STATUS),
13
+ required: true,
14
+ default: enum_1.AGENT_DESIGN_SKILL_STATUS.Active,
15
+ },
16
+ latest_revision_id: { type: mongoose_1.Schema.Types.ObjectId, ref: "AgentDesignSkillRevision", default: null },
17
+ }, {
18
+ timestamps: { createdAt: "created_at", updatedAt: "updated_at" },
19
+ collection: "agent_design_skills",
20
+ });
21
+ agentDesignSkillSchema.index({ repository: 1, skill_path: 1 }, { unique: true });
22
+ agentDesignSkillSchema.index({ status: 1, name: 1 });
23
+ exports.default = (0, mongoose_1.model)("AgentDesignSkill", agentDesignSkillSchema);
@@ -8,6 +8,16 @@ const agentWebsiteSnapshotSchema = new mongoose_1.Schema({
8
8
  s3_key: { type: String, required: true },
9
9
  size: { type: Number, required: true },
10
10
  digest: { type: String, default: null },
11
+ files: {
12
+ type: [
13
+ {
14
+ _id: false,
15
+ path: { type: String, required: true },
16
+ size: { type: Number, required: true },
17
+ },
18
+ ],
19
+ default: [],
20
+ },
11
21
  status: {
12
22
  type: String,
13
23
  enum: Object.values(enum_1.AGENT_WEBSITE_SNAPSHOT_STATUS),
@@ -12,6 +12,8 @@ const agentWebsiteSchema = new mongoose_1.Schema({
12
12
  required: true,
13
13
  default: enum_1.AGENT_WEBSITE_STATUS.Active,
14
14
  },
15
+ runner_sandbox_id: { type: String, default: null },
16
+ runner_port: { type: Number, default: null },
15
17
  deleted_at: { type: Date, default: null },
16
18
  }, {
17
19
  timestamps: { createdAt: "created_at", updatedAt: "updated_at" },
@@ -511,3 +511,18 @@ export declare enum AGENT_WEBSITE_SNAPSHOT_STATUS {
511
511
  Pending = "pending",
512
512
  Ready = "ready"
513
513
  }
514
+ export declare enum AGENT_DESIGN_SKILL_STATUS {
515
+ Active = "active",
516
+ Quarantined = "quarantined",
517
+ Deprecated = "deprecated"
518
+ }
519
+ export declare enum AGENT_DESIGN_SKILL_TRUST_LEVEL {
520
+ Trusted = "trusted",
521
+ Reviewed = "reviewed",
522
+ Untrusted = "untrusted"
523
+ }
524
+ export declare enum AGENT_DESIGN_SKILL_VERDICT {
525
+ Approve = "approve",
526
+ ApproveWithWarnings = "approve-with-warnings",
527
+ Reject = "reject"
528
+ }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.COLLAB_TOOLBAR_POSITION = exports.COLLAB_THEME = exports.COLLAB_INTEGRATION_TYPE = exports.COLLAB_ANNOTATION_STATUS = exports.NomadDeploymentStatus = exports.DomainTransferStatus = exports.DomainTransferDirection = exports.DomainTransferProvider = exports.DomainRenewalStatus = exports.FrameworkApplicationType = exports.SCALING_SOURCE = exports.SCALING_METRIC = exports.SCALING_STRATEGY = exports.LicenseStatus = exports.JobStatus = exports.EmailDeadLetterStatus = exports.DatabaseEngine = exports.ServiceType = exports.VOLUME_BACKEND = exports.REGION_CONTINENT = exports.PERMISSION_TYPE = exports.ROLES = exports.DNS_CHANGE_SOURCE = exports.DNS_CHANGE_TYPE = exports.DNS_TYPE = exports.SERVER_STATUS = exports.OAUTH_PERMISSIONS = exports.SUBSCRIPTION_PLAN_TYPE = exports.SUBSCRIPTION_STATUS = exports.DrainEventType = exports.LogSource = exports.DrainStatus = exports.DrainType = exports.AlertEventStatus = exports.AlertChannelMode = exports.AlertRuleState = exports.AlertCondition = exports.AlertMetric = exports.PROJECT_STATUS = exports.CARD_TYPES = exports.INTEGRATION_PROVIDERS = exports.INTEGRATION_TYPES = exports.CONFIG_FILE_VISIBILITY = exports.ENVIRONMENT = exports.REQUEST_TYPE = exports.SPENDING_LIMIT_ACTION = exports.PROJECT_DISABLED_BY = exports.BUILD_DISABLED_BY = exports.SERVER_PROTOCOL = exports.GIT_TYPE = void 0;
4
- exports.AGENT_WEBSITE_SNAPSHOT_STATUS = exports.AGENT_WEBSITE_STATUS = exports.AGENT_CHAT_MESSAGE_ROLE = exports.AGENT_CHAT_STATUS = exports.CouponRedemptionStatus = exports.CouponScope = exports.CouponDiscountType = exports.QUEST_TARGETLESS_REQUIREMENTS = exports.QUEST_CLAIM_REQUIREMENTS = exports.WorkbenchMode = exports.QuestRequirementType = exports.QuestEntity = exports.QuestCriterionType = exports.QuestRewardStatus = exports.RewardType = exports.EligibilityType = exports.ACTION_TO_MILESTONE = exports.QUEST_COUNTABLE_MILESTONES = exports.MilestoneType = exports.QualifyingActionType = exports.XRobotsTag = exports.XContentTypeOptions = exports.XFrameOptions = exports.StorageMigrationStatus = exports.StorageCredentialStatus = exports.StorageCredentialRole = exports.PlatformApiKeyStatus = exports.StorageTokenStatus = exports.StorageUploadStatus = exports.StorageBucketStatus = exports.RESTORE_STATUS = exports.WorkerRunTrigger = exports.WorkerRunStatus = exports.BACKUP_STATUS = exports.SANDBOX_SNAPSHOT_STATUS = exports.SANDBOX_EGRESS_MODE = exports.SANDBOX_DESTROY_REASON = exports.SANDBOX_STATUS = exports.SANDBOX_TEMPLATE = exports.INVOICE_TYPE = exports.INVOICE_PAYMENT_STATUS = exports.INVOICE_STATUS = void 0;
4
+ exports.AGENT_DESIGN_SKILL_VERDICT = exports.AGENT_DESIGN_SKILL_TRUST_LEVEL = exports.AGENT_DESIGN_SKILL_STATUS = exports.AGENT_WEBSITE_SNAPSHOT_STATUS = exports.AGENT_WEBSITE_STATUS = exports.AGENT_CHAT_MESSAGE_ROLE = exports.AGENT_CHAT_STATUS = exports.CouponRedemptionStatus = exports.CouponScope = exports.CouponDiscountType = exports.QUEST_TARGETLESS_REQUIREMENTS = exports.QUEST_CLAIM_REQUIREMENTS = exports.WorkbenchMode = exports.QuestRequirementType = exports.QuestEntity = exports.QuestCriterionType = exports.QuestRewardStatus = exports.RewardType = exports.EligibilityType = exports.ACTION_TO_MILESTONE = exports.QUEST_COUNTABLE_MILESTONES = exports.MilestoneType = exports.QualifyingActionType = exports.XRobotsTag = exports.XContentTypeOptions = exports.XFrameOptions = exports.StorageMigrationStatus = exports.StorageCredentialStatus = exports.StorageCredentialRole = exports.PlatformApiKeyStatus = exports.StorageTokenStatus = exports.StorageUploadStatus = exports.StorageBucketStatus = exports.RESTORE_STATUS = exports.WorkerRunTrigger = exports.WorkerRunStatus = exports.BACKUP_STATUS = exports.SANDBOX_SNAPSHOT_STATUS = exports.SANDBOX_EGRESS_MODE = exports.SANDBOX_DESTROY_REASON = exports.SANDBOX_STATUS = exports.SANDBOX_TEMPLATE = exports.INVOICE_TYPE = exports.INVOICE_PAYMENT_STATUS = exports.INVOICE_STATUS = void 0;
5
5
  var GIT_TYPE;
6
6
  (function (GIT_TYPE) {
7
7
  GIT_TYPE["GITHUB"] = "GITHUB";
@@ -623,3 +623,21 @@ var AGENT_WEBSITE_SNAPSHOT_STATUS;
623
623
  AGENT_WEBSITE_SNAPSHOT_STATUS["Pending"] = "pending";
624
624
  AGENT_WEBSITE_SNAPSHOT_STATUS["Ready"] = "ready";
625
625
  })(AGENT_WEBSITE_SNAPSHOT_STATUS || (exports.AGENT_WEBSITE_SNAPSHOT_STATUS = AGENT_WEBSITE_SNAPSHOT_STATUS = {}));
626
+ var AGENT_DESIGN_SKILL_STATUS;
627
+ (function (AGENT_DESIGN_SKILL_STATUS) {
628
+ AGENT_DESIGN_SKILL_STATUS["Active"] = "active";
629
+ AGENT_DESIGN_SKILL_STATUS["Quarantined"] = "quarantined";
630
+ AGENT_DESIGN_SKILL_STATUS["Deprecated"] = "deprecated";
631
+ })(AGENT_DESIGN_SKILL_STATUS || (exports.AGENT_DESIGN_SKILL_STATUS = AGENT_DESIGN_SKILL_STATUS = {}));
632
+ var AGENT_DESIGN_SKILL_TRUST_LEVEL;
633
+ (function (AGENT_DESIGN_SKILL_TRUST_LEVEL) {
634
+ AGENT_DESIGN_SKILL_TRUST_LEVEL["Trusted"] = "trusted";
635
+ AGENT_DESIGN_SKILL_TRUST_LEVEL["Reviewed"] = "reviewed";
636
+ AGENT_DESIGN_SKILL_TRUST_LEVEL["Untrusted"] = "untrusted";
637
+ })(AGENT_DESIGN_SKILL_TRUST_LEVEL || (exports.AGENT_DESIGN_SKILL_TRUST_LEVEL = AGENT_DESIGN_SKILL_TRUST_LEVEL = {}));
638
+ var AGENT_DESIGN_SKILL_VERDICT;
639
+ (function (AGENT_DESIGN_SKILL_VERDICT) {
640
+ AGENT_DESIGN_SKILL_VERDICT["Approve"] = "approve";
641
+ AGENT_DESIGN_SKILL_VERDICT["ApproveWithWarnings"] = "approve-with-warnings";
642
+ AGENT_DESIGN_SKILL_VERDICT["Reject"] = "reject";
643
+ })(AGENT_DESIGN_SKILL_VERDICT || (exports.AGENT_DESIGN_SKILL_VERDICT = AGENT_DESIGN_SKILL_VERDICT = {}));
package/dist/index.d.ts CHANGED
@@ -98,8 +98,10 @@ export { default as AgentChatFile } from "./agent-chat-file";
98
98
  export { default as AgentChatModel } from "./agent-chat-model";
99
99
  export { default as AgentWebsite } from "./agent-website";
100
100
  export { default as AgentWebsiteSnapshot } from "./agent-website-snapshot";
101
- export { IUser, IGit, IOrigin, IProject, IProjectAnalytics, IPreview, IProjectConnection, IProjectNetworkSettings, IRatelimit, RatelimitConfig, RateLimitZone, RateLimitMatcher, DistributedRateLimitConfig, IFollowing, IIntegration, IEnv, IServer, IDomain, IToken, IPlatformApiKey, IMember, ITeam, IInstalledIntegration, ILog, ISubscription, ICard, IPaymentMethod, IDns, IDnsChangeLog, IRole, IPermission, IMemberPermission, IWallet, IDbImage, IJob, ILicense, IPlanConfiguration, IAutoScalingGroup, IComputeChange, IRegion, IVolume, IFramework, BrimbleFrameworkType, ISettings, ILoadBalancerPort, IDomainRenewal, IDomainTransfer, IWebhookCategory, IWebhookEvent, IWebhookSetting, IIntention, IProvider, ICollabAnnotation, ICollabComment, ICollabAttachment, ICollabIntegration, ICollabSettings, ICollabShareToken, ICollabPushSubscription, IAppMessage, IInvoice, ITag, IProjectTagAssignment, ICashierSubscription, ICashierSubscriptionItem, IProjectEnvironment, IEnvironmentVariable, IProjectConfigFile, IActivityLog, IAlertRule, IAlertRuleState, IAlertEvent, IAlertNotificationResult, IDrain, IProjectDrainSubscription, IOwnershipTransfer, ISandbox, ISandboxSpecs, ISandboxActivity, ISandboxImage, ISandboxSize, ISandboxSnapshot, IBackupHistory, IRestoreHistory, IWorkerRun, ISandboxSnapshotUsageSegment, ISandboxSnapshotUsageSegmentCosts, ISandboxUsageSegment, ISandboxUsageSegmentCurrent, ISandboxUsageSegmentCosts, IVolumeUsageSegment, IVolumeUsageSegmentCosts, IPgBouncerUsageSegment, IPgBouncerUsageSegmentCosts, IObjectStorageUsageSegment, IObjectStorageUsageSegmentCosts, IObjectStorageUsageUnitsSummary, IIdempotencyRecord, IStorageBucket, IStorageObject, IStorageUpload, IStorageToken, IStorageCredential, IStorageMigration, StorageTokenPermission, StorageLifecycleRule, StorageCorsRule, StorageLifecycleRuleTransition, IStreak, IStreakMilestoneRef, IStreakEvent, IStreakDay, IStreakMilestone, IQuestCampaign, IQuestCriterion, IQuestRequirement, IQuestReward, IQuestParticipation, IQuestCriterionProgress, IQuestRewardIssuance, IQuestIssuedReward, ICoupon, ICouponRedemption, ITicket, IAgentChat, IAgentChatMessage, IAgentChatFile, IAgentChatModel, IAgentWebsite, IAgentWebsiteSnapshot, } from "./types";
102
- export { GIT_TYPE, INTEGRATION_TYPES, INTEGRATION_PROVIDERS, OAUTH_PERMISSIONS, ENVIRONMENT, SERVER_STATUS, ROLES, SUBSCRIPTION_PLAN_TYPE, PROJECT_STATUS, AlertMetric, AlertCondition, AlertRuleState, AlertChannelMode, AlertEventStatus, DrainType, DrainStatus, LogSource, DrainEventType, SUBSCRIPTION_STATUS, CARD_TYPES, DNS_TYPE, DNS_CHANGE_TYPE, DNS_CHANGE_SOURCE, PERMISSION_TYPE, REQUEST_TYPE, ServiceType, SCALING_SOURCE, DatabaseEngine, EmailDeadLetterStatus, JobStatus, LicenseStatus, REGION_CONTINENT, VOLUME_BACKEND, BUILD_DISABLED_BY, PROJECT_DISABLED_BY, SPENDING_LIMIT_ACTION, SERVER_PROTOCOL, FrameworkApplicationType, DomainRenewalStatus, DomainTransferProvider, DomainTransferDirection, DomainTransferStatus, NomadDeploymentStatus, COLLAB_ANNOTATION_STATUS, COLLAB_INTEGRATION_TYPE, COLLAB_THEME, COLLAB_TOOLBAR_POSITION, INVOICE_STATUS, INVOICE_PAYMENT_STATUS, INVOICE_TYPE, SANDBOX_TEMPLATE, SANDBOX_STATUS, SANDBOX_DESTROY_REASON, SANDBOX_EGRESS_MODE, SANDBOX_SNAPSHOT_STATUS, BACKUP_STATUS, WorkerRunStatus, WorkerRunTrigger, RESTORE_STATUS, StorageBucketStatus, StorageUploadStatus, StorageTokenStatus, PlatformApiKeyStatus, StorageCredentialRole, StorageCredentialStatus, StorageMigrationStatus, XFrameOptions, XContentTypeOptions, XRobotsTag, QualifyingActionType, MilestoneType, QUEST_COUNTABLE_MILESTONES, ACTION_TO_MILESTONE, EligibilityType, RewardType, QuestRewardStatus, QuestCriterionType, QuestEntity, QuestRequirementType, QUEST_CLAIM_REQUIREMENTS, QUEST_TARGETLESS_REQUIREMENTS, WorkbenchMode, CouponDiscountType, CouponScope, CouponRedemptionStatus, CONFIG_FILE_VISIBILITY, AGENT_CHAT_STATUS, AGENT_CHAT_MESSAGE_ROLE, AGENT_WEBSITE_STATUS, AGENT_WEBSITE_SNAPSHOT_STATUS, } from "./enum";
101
+ export { default as AgentDesignSkill } from "./agent-design-skill";
102
+ export { default as AgentDesignSkillRevision } from "./agent-design-skill-revision";
103
+ export { IUser, IGit, IOrigin, IProject, IProjectAnalytics, IPreview, IProjectConnection, IProjectNetworkSettings, IRatelimit, RatelimitConfig, RateLimitZone, RateLimitMatcher, DistributedRateLimitConfig, IFollowing, IIntegration, IEnv, IServer, IDomain, IToken, IPlatformApiKey, IMember, ITeam, IInstalledIntegration, ILog, ISubscription, ICard, IPaymentMethod, IDns, IDnsChangeLog, IRole, IPermission, IMemberPermission, IWallet, IDbImage, IJob, ILicense, IPlanConfiguration, IAutoScalingGroup, IComputeChange, IRegion, IVolume, IFramework, BrimbleFrameworkType, ISettings, ILoadBalancerPort, IDomainRenewal, IDomainTransfer, IWebhookCategory, IWebhookEvent, IWebhookSetting, IIntention, IProvider, ICollabAnnotation, ICollabComment, ICollabAttachment, ICollabIntegration, ICollabSettings, ICollabShareToken, ICollabPushSubscription, IAppMessage, IInvoice, ITag, IProjectTagAssignment, ICashierSubscription, ICashierSubscriptionItem, IProjectEnvironment, IEnvironmentVariable, IProjectConfigFile, IActivityLog, IAlertRule, IAlertRuleState, IAlertEvent, IAlertNotificationResult, IDrain, IProjectDrainSubscription, IOwnershipTransfer, ISandbox, ISandboxSpecs, ISandboxActivity, ISandboxImage, ISandboxSize, ISandboxSnapshot, IBackupHistory, IRestoreHistory, IWorkerRun, ISandboxSnapshotUsageSegment, ISandboxSnapshotUsageSegmentCosts, ISandboxUsageSegment, ISandboxUsageSegmentCurrent, ISandboxUsageSegmentCosts, IVolumeUsageSegment, IVolumeUsageSegmentCosts, IPgBouncerUsageSegment, IPgBouncerUsageSegmentCosts, IObjectStorageUsageSegment, IObjectStorageUsageSegmentCosts, IObjectStorageUsageUnitsSummary, IIdempotencyRecord, IStorageBucket, IStorageObject, IStorageUpload, IStorageToken, IStorageCredential, IStorageMigration, StorageTokenPermission, StorageLifecycleRule, StorageCorsRule, StorageLifecycleRuleTransition, IStreak, IStreakMilestoneRef, IStreakEvent, IStreakDay, IStreakMilestone, IQuestCampaign, IQuestCriterion, IQuestRequirement, IQuestReward, IQuestParticipation, IQuestCriterionProgress, IQuestRewardIssuance, IQuestIssuedReward, ICoupon, ICouponRedemption, ITicket, IAgentChat, IAgentChatMessage, IAgentChatFile, IAgentChatModel, IAgentWebsite, IAgentWebsiteSnapshot, IAgentDesignSkill, IAgentDesignSkillRevision, IAgentDesignSkillFile, IAgentDesignSkillInspection, IAgentDesignSkillLicense, } from "./types";
104
+ export { GIT_TYPE, INTEGRATION_TYPES, INTEGRATION_PROVIDERS, OAUTH_PERMISSIONS, ENVIRONMENT, SERVER_STATUS, ROLES, SUBSCRIPTION_PLAN_TYPE, PROJECT_STATUS, AlertMetric, AlertCondition, AlertRuleState, AlertChannelMode, AlertEventStatus, DrainType, DrainStatus, LogSource, DrainEventType, SUBSCRIPTION_STATUS, CARD_TYPES, DNS_TYPE, DNS_CHANGE_TYPE, DNS_CHANGE_SOURCE, PERMISSION_TYPE, REQUEST_TYPE, ServiceType, SCALING_SOURCE, DatabaseEngine, EmailDeadLetterStatus, JobStatus, LicenseStatus, REGION_CONTINENT, VOLUME_BACKEND, BUILD_DISABLED_BY, PROJECT_DISABLED_BY, SPENDING_LIMIT_ACTION, SERVER_PROTOCOL, FrameworkApplicationType, DomainRenewalStatus, DomainTransferProvider, DomainTransferDirection, DomainTransferStatus, NomadDeploymentStatus, COLLAB_ANNOTATION_STATUS, COLLAB_INTEGRATION_TYPE, COLLAB_THEME, COLLAB_TOOLBAR_POSITION, INVOICE_STATUS, INVOICE_PAYMENT_STATUS, INVOICE_TYPE, SANDBOX_TEMPLATE, SANDBOX_STATUS, SANDBOX_DESTROY_REASON, SANDBOX_EGRESS_MODE, SANDBOX_SNAPSHOT_STATUS, BACKUP_STATUS, WorkerRunStatus, WorkerRunTrigger, RESTORE_STATUS, StorageBucketStatus, StorageUploadStatus, StorageTokenStatus, PlatformApiKeyStatus, StorageCredentialRole, StorageCredentialStatus, StorageMigrationStatus, XFrameOptions, XContentTypeOptions, XRobotsTag, QualifyingActionType, MilestoneType, QUEST_COUNTABLE_MILESTONES, ACTION_TO_MILESTONE, EligibilityType, RewardType, QuestRewardStatus, QuestCriterionType, QuestEntity, QuestRequirementType, QUEST_CLAIM_REQUIREMENTS, QUEST_TARGETLESS_REQUIREMENTS, WorkbenchMode, CouponDiscountType, CouponScope, CouponRedemptionStatus, CONFIG_FILE_VISIBILITY, AGENT_CHAT_STATUS, AGENT_CHAT_MESSAGE_ROLE, AGENT_WEBSITE_STATUS, AGENT_WEBSITE_SNAPSHOT_STATUS, AGENT_DESIGN_SKILL_STATUS, AGENT_DESIGN_SKILL_TRUST_LEVEL, AGENT_DESIGN_SKILL_VERDICT, } from "./enum";
103
105
  import mongoose from "mongoose";
104
106
  export declare const connectToMongo: (mongoUrl: string, config?: mongoose.ConnectOptions) => Promise<void>;
105
107
  export declare const db: mongoose.Connection;
package/dist/index.js CHANGED
@@ -14,8 +14,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.CollabSettings = exports.CollabIntegration = exports.CollabComment = exports.CollabAnnotation = exports.Provider = exports.Intention = exports.WebhookSetting = exports.WebhookEvent = exports.WebhookCategory = exports.DomainTransfer = exports.DomainRenewal = exports.LoadBalancerPort = exports.Settings = exports.Framework = exports.Volume = exports.Region = exports.ComputeChange = exports.AutoScalingGroup = exports.PlanConfiguration = exports.Liscense = exports.Job = exports.EmailDeadLetter = exports.DbImage = exports.Wallet = exports.Server = exports.Card = exports.Subscription = exports.Log = exports.Role = exports.MemberPermission = exports.PaymentMethod = exports.Permission = exports.Member = exports.Team = exports.PlatformApiKey = exports.Token = exports.Env = exports.DnsChangeLog = exports.Dns = exports.Domain = exports.Integration = exports.Following = exports.Ratelimit = exports.ProjectNetworkSettings = exports.ProjectConnection = exports.Preview = exports.ProjectAnalytics = exports.DeletedProject = exports.Project = exports.User = void 0;
16
16
  exports.Ticket = exports.CouponRedemption = exports.Coupon = exports.QuestRewardIssuance = exports.QuestParticipation = exports.QuestCampaign = exports.StreakMilestone = exports.StreakDay = exports.StreakEvent = exports.Streak = exports.StorageMigration = exports.StorageCredential = exports.StorageToken = exports.StorageUpload = exports.StorageObject = exports.StorageBucket = exports.IdempotencyRecord = exports.ObjectStorageUsageSegment = exports.PgBouncerUsageSegment = exports.VolumeUsageSegment = exports.SandboxUsageSegment = exports.SandboxSnapshotUsageSegment = exports.WorkerRun = exports.RestoreHistory = exports.BackupHistory = exports.SandboxSnapshot = exports.SandboxWarmPoolMember = exports.SandboxWarmPool = exports.SandboxSize = exports.SandboxImage = exports.SandboxActivity = exports.Sandbox = exports.OwnershipTransfer = exports.ProjectDrainSubscription = exports.Drain = exports.AlertEvent = exports.AlertRuleStateModel = exports.AlertRule = exports.ActivityLog = exports.ProjectConfigFile = exports.EnvironmentVariable = exports.ProjectEnvironment = exports.CashierSubscriptionItem = exports.CashierSubscription = exports.ProjectTagAssignment = exports.Tag = exports.Invoice = exports.AppMessage = exports.CollabPushSubscription = exports.CollabShareToken = void 0;
17
- exports.COLLAB_ANNOTATION_STATUS = exports.NomadDeploymentStatus = exports.DomainTransferStatus = exports.DomainTransferDirection = exports.DomainTransferProvider = exports.DomainRenewalStatus = exports.FrameworkApplicationType = exports.SERVER_PROTOCOL = exports.SPENDING_LIMIT_ACTION = exports.PROJECT_DISABLED_BY = exports.BUILD_DISABLED_BY = exports.VOLUME_BACKEND = exports.REGION_CONTINENT = exports.LicenseStatus = exports.JobStatus = exports.EmailDeadLetterStatus = exports.DatabaseEngine = exports.SCALING_SOURCE = exports.ServiceType = exports.REQUEST_TYPE = exports.PERMISSION_TYPE = exports.DNS_CHANGE_SOURCE = exports.DNS_CHANGE_TYPE = exports.DNS_TYPE = exports.CARD_TYPES = exports.SUBSCRIPTION_STATUS = exports.DrainEventType = exports.LogSource = exports.DrainStatus = exports.DrainType = exports.AlertEventStatus = exports.AlertChannelMode = exports.AlertRuleState = exports.AlertCondition = exports.AlertMetric = exports.PROJECT_STATUS = exports.SUBSCRIPTION_PLAN_TYPE = exports.ROLES = exports.SERVER_STATUS = exports.ENVIRONMENT = exports.OAUTH_PERMISSIONS = exports.INTEGRATION_PROVIDERS = exports.INTEGRATION_TYPES = exports.GIT_TYPE = exports.AgentWebsiteSnapshot = exports.AgentWebsite = exports.AgentChatModel = exports.AgentChatFile = exports.AgentChatMessage = exports.AgentChat = void 0;
18
- exports.healthCheckMongo = exports.closeMongo = exports.db = exports.connectToMongo = exports.AGENT_WEBSITE_SNAPSHOT_STATUS = exports.AGENT_WEBSITE_STATUS = exports.AGENT_CHAT_MESSAGE_ROLE = exports.AGENT_CHAT_STATUS = exports.CONFIG_FILE_VISIBILITY = exports.CouponRedemptionStatus = exports.CouponScope = exports.CouponDiscountType = exports.WorkbenchMode = exports.QUEST_TARGETLESS_REQUIREMENTS = exports.QUEST_CLAIM_REQUIREMENTS = exports.QuestRequirementType = exports.QuestEntity = exports.QuestCriterionType = exports.QuestRewardStatus = exports.RewardType = exports.EligibilityType = exports.ACTION_TO_MILESTONE = exports.QUEST_COUNTABLE_MILESTONES = exports.MilestoneType = exports.QualifyingActionType = exports.XRobotsTag = exports.XContentTypeOptions = exports.XFrameOptions = exports.StorageMigrationStatus = exports.StorageCredentialStatus = exports.StorageCredentialRole = exports.PlatformApiKeyStatus = exports.StorageTokenStatus = exports.StorageUploadStatus = exports.StorageBucketStatus = exports.RESTORE_STATUS = exports.WorkerRunTrigger = exports.WorkerRunStatus = exports.BACKUP_STATUS = exports.SANDBOX_SNAPSHOT_STATUS = exports.SANDBOX_EGRESS_MODE = exports.SANDBOX_DESTROY_REASON = exports.SANDBOX_STATUS = exports.SANDBOX_TEMPLATE = exports.INVOICE_TYPE = exports.INVOICE_PAYMENT_STATUS = exports.INVOICE_STATUS = exports.COLLAB_TOOLBAR_POSITION = exports.COLLAB_THEME = exports.COLLAB_INTEGRATION_TYPE = void 0;
17
+ exports.DomainTransferStatus = exports.DomainTransferDirection = exports.DomainTransferProvider = exports.DomainRenewalStatus = exports.FrameworkApplicationType = exports.SERVER_PROTOCOL = exports.SPENDING_LIMIT_ACTION = exports.PROJECT_DISABLED_BY = exports.BUILD_DISABLED_BY = exports.VOLUME_BACKEND = exports.REGION_CONTINENT = exports.LicenseStatus = exports.JobStatus = exports.EmailDeadLetterStatus = exports.DatabaseEngine = exports.SCALING_SOURCE = exports.ServiceType = exports.REQUEST_TYPE = exports.PERMISSION_TYPE = exports.DNS_CHANGE_SOURCE = exports.DNS_CHANGE_TYPE = exports.DNS_TYPE = exports.CARD_TYPES = exports.SUBSCRIPTION_STATUS = exports.DrainEventType = exports.LogSource = exports.DrainStatus = exports.DrainType = exports.AlertEventStatus = exports.AlertChannelMode = exports.AlertRuleState = exports.AlertCondition = exports.AlertMetric = exports.PROJECT_STATUS = exports.SUBSCRIPTION_PLAN_TYPE = exports.ROLES = exports.SERVER_STATUS = exports.ENVIRONMENT = exports.OAUTH_PERMISSIONS = exports.INTEGRATION_PROVIDERS = exports.INTEGRATION_TYPES = exports.GIT_TYPE = exports.AgentDesignSkillRevision = exports.AgentDesignSkill = exports.AgentWebsiteSnapshot = exports.AgentWebsite = exports.AgentChatModel = exports.AgentChatFile = exports.AgentChatMessage = exports.AgentChat = void 0;
18
+ exports.AGENT_DESIGN_SKILL_TRUST_LEVEL = exports.AGENT_DESIGN_SKILL_STATUS = exports.AGENT_WEBSITE_SNAPSHOT_STATUS = exports.AGENT_WEBSITE_STATUS = exports.AGENT_CHAT_MESSAGE_ROLE = exports.AGENT_CHAT_STATUS = exports.CONFIG_FILE_VISIBILITY = exports.CouponRedemptionStatus = exports.CouponScope = exports.CouponDiscountType = exports.WorkbenchMode = exports.QUEST_TARGETLESS_REQUIREMENTS = exports.QUEST_CLAIM_REQUIREMENTS = exports.QuestRequirementType = exports.QuestEntity = exports.QuestCriterionType = exports.QuestRewardStatus = exports.RewardType = exports.EligibilityType = exports.ACTION_TO_MILESTONE = exports.QUEST_COUNTABLE_MILESTONES = exports.MilestoneType = exports.QualifyingActionType = exports.XRobotsTag = exports.XContentTypeOptions = exports.XFrameOptions = exports.StorageMigrationStatus = exports.StorageCredentialStatus = exports.StorageCredentialRole = exports.PlatformApiKeyStatus = exports.StorageTokenStatus = exports.StorageUploadStatus = exports.StorageBucketStatus = exports.RESTORE_STATUS = exports.WorkerRunTrigger = exports.WorkerRunStatus = exports.BACKUP_STATUS = exports.SANDBOX_SNAPSHOT_STATUS = exports.SANDBOX_EGRESS_MODE = exports.SANDBOX_DESTROY_REASON = exports.SANDBOX_STATUS = exports.SANDBOX_TEMPLATE = exports.INVOICE_TYPE = exports.INVOICE_PAYMENT_STATUS = exports.INVOICE_STATUS = exports.COLLAB_TOOLBAR_POSITION = exports.COLLAB_THEME = exports.COLLAB_INTEGRATION_TYPE = exports.COLLAB_ANNOTATION_STATUS = exports.NomadDeploymentStatus = void 0;
19
+ exports.healthCheckMongo = exports.closeMongo = exports.db = exports.connectToMongo = exports.AGENT_DESIGN_SKILL_VERDICT = void 0;
19
20
  var user_1 = require("./user");
20
21
  Object.defineProperty(exports, "User", { enumerable: true, get: function () { return __importDefault(user_1).default; } });
21
22
  var project_1 = require("./project");
@@ -222,6 +223,10 @@ var agent_website_1 = require("./agent-website");
222
223
  Object.defineProperty(exports, "AgentWebsite", { enumerable: true, get: function () { return __importDefault(agent_website_1).default; } });
223
224
  var agent_website_snapshot_1 = require("./agent-website-snapshot");
224
225
  Object.defineProperty(exports, "AgentWebsiteSnapshot", { enumerable: true, get: function () { return __importDefault(agent_website_snapshot_1).default; } });
226
+ var agent_design_skill_1 = require("./agent-design-skill");
227
+ Object.defineProperty(exports, "AgentDesignSkill", { enumerable: true, get: function () { return __importDefault(agent_design_skill_1).default; } });
228
+ var agent_design_skill_revision_1 = require("./agent-design-skill-revision");
229
+ Object.defineProperty(exports, "AgentDesignSkillRevision", { enumerable: true, get: function () { return __importDefault(agent_design_skill_revision_1).default; } });
225
230
  var enum_1 = require("./enum");
226
231
  Object.defineProperty(exports, "GIT_TYPE", { enumerable: true, get: function () { return enum_1.GIT_TYPE; } });
227
232
  Object.defineProperty(exports, "INTEGRATION_TYPES", { enumerable: true, get: function () { return enum_1.INTEGRATION_TYPES; } });
@@ -313,6 +318,9 @@ Object.defineProperty(exports, "AGENT_CHAT_STATUS", { enumerable: true, get: fun
313
318
  Object.defineProperty(exports, "AGENT_CHAT_MESSAGE_ROLE", { enumerable: true, get: function () { return enum_1.AGENT_CHAT_MESSAGE_ROLE; } });
314
319
  Object.defineProperty(exports, "AGENT_WEBSITE_STATUS", { enumerable: true, get: function () { return enum_1.AGENT_WEBSITE_STATUS; } });
315
320
  Object.defineProperty(exports, "AGENT_WEBSITE_SNAPSHOT_STATUS", { enumerable: true, get: function () { return enum_1.AGENT_WEBSITE_SNAPSHOT_STATUS; } });
321
+ Object.defineProperty(exports, "AGENT_DESIGN_SKILL_STATUS", { enumerable: true, get: function () { return enum_1.AGENT_DESIGN_SKILL_STATUS; } });
322
+ Object.defineProperty(exports, "AGENT_DESIGN_SKILL_TRUST_LEVEL", { enumerable: true, get: function () { return enum_1.AGENT_DESIGN_SKILL_TRUST_LEVEL; } });
323
+ Object.defineProperty(exports, "AGENT_DESIGN_SKILL_VERDICT", { enumerable: true, get: function () { return enum_1.AGENT_DESIGN_SKILL_VERDICT; } });
316
324
  const mongoose_1 = __importDefault(require("mongoose"));
317
325
  const utils_1 = require("@brimble/utils");
318
326
  const connectToMongo = (mongoUrl, config) => __awaiter(void 0, void 0, void 0, function* () {
@@ -0,0 +1,41 @@
1
+ import { Document, Types } from "mongoose";
2
+ import { AGENT_DESIGN_SKILL_STATUS, AGENT_DESIGN_SKILL_TRUST_LEVEL, AGENT_DESIGN_SKILL_VERDICT } from "../enum";
3
+ import { IAgentDesignSkill } from "./agent-design-skill";
4
+ export interface IAgentDesignSkillFile {
5
+ path: string;
6
+ content?: string;
7
+ bytes: number;
8
+ }
9
+ export interface IAgentDesignSkillInspection {
10
+ verdict: AGENT_DESIGN_SKILL_VERDICT;
11
+ capabilities: string[];
12
+ warnings: string[];
13
+ rejected_reasons: string[];
14
+ script_references: string[];
15
+ external_references: string[];
16
+ suspicious_patterns: string[];
17
+ inspector_version: string;
18
+ inspected_at: Date;
19
+ }
20
+ export interface IAgentDesignSkillLicense {
21
+ name: string | null;
22
+ path: string | null;
23
+ text_hash: string | null;
24
+ }
25
+ export interface IAgentDesignSkillRevision extends Document {
26
+ skill_id: IAgentDesignSkill | Types.ObjectId;
27
+ commit: string;
28
+ content_hash: string;
29
+ trust_level: AGENT_DESIGN_SKILL_TRUST_LEVEL;
30
+ status: AGENT_DESIGN_SKILL_STATUS;
31
+ description: string;
32
+ categories: string[];
33
+ attribution: string | null;
34
+ source_url: string;
35
+ license: IAgentDesignSkillLicense;
36
+ inspection: IAgentDesignSkillInspection;
37
+ files: IAgentDesignSkillFile[];
38
+ total_bytes: number;
39
+ created_at: Date;
40
+ updated_at: Date;
41
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import { Document, Types } from "mongoose";
2
+ import { AGENT_DESIGN_SKILL_STATUS } from "../enum";
3
+ import { IAgentDesignSkillRevision } from "./agent-design-skill-revision";
4
+ export interface IAgentDesignSkill extends Document {
5
+ name: string;
6
+ repository: string;
7
+ skill_path: string;
8
+ source_id: string;
9
+ status: AGENT_DESIGN_SKILL_STATUS;
10
+ latest_revision_id: IAgentDesignSkillRevision | Types.ObjectId | null;
11
+ created_at: Date;
12
+ updated_at: Date;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,6 +2,10 @@ import { Document, Types } from "mongoose";
2
2
  import { AGENT_WEBSITE_SNAPSHOT_STATUS } from "../enum";
3
3
  import { IAgentWebsite } from "./agent-website";
4
4
  import { IUser } from "./user";
5
+ export type IAgentWebsiteSnapshotFile = {
6
+ path: string;
7
+ size: number;
8
+ };
5
9
  export interface IAgentWebsiteSnapshot extends Document {
6
10
  website_id: IAgentWebsite | Types.ObjectId;
7
11
  user_id: IUser | Types.ObjectId;
@@ -9,6 +13,7 @@ export interface IAgentWebsiteSnapshot extends Document {
9
13
  size: number;
10
14
  digest: string | null;
11
15
  status: AGENT_WEBSITE_SNAPSHOT_STATUS;
16
+ files: IAgentWebsiteSnapshotFile[];
12
17
  created_at: Date;
13
18
  updated_at: Date;
14
19
  }
@@ -8,6 +8,8 @@ export interface IAgentWebsite extends Document {
8
8
  user_id: IUser | Types.ObjectId;
9
9
  team_id: ITeam | Types.ObjectId | null;
10
10
  status: AGENT_WEBSITE_STATUS;
11
+ runner_sandbox_id: string | null;
12
+ runner_port: number | null;
11
13
  deleted_at: Date | null;
12
14
  created_at: Date;
13
15
  updated_at: Date;
@@ -97,3 +97,5 @@ export type { IAgentChatFile } from "./agent-chat-file";
97
97
  export type { IAgentChatModel } from "./agent-chat-model";
98
98
  export type { IAgentWebsite } from "./agent-website";
99
99
  export type { IAgentWebsiteSnapshot } from "./agent-website-snapshot";
100
+ export type { IAgentDesignSkill } from "./agent-design-skill";
101
+ export type { IAgentDesignSkillFile, IAgentDesignSkillInspection, IAgentDesignSkillLicense, IAgentDesignSkillRevision, } from "./agent-design-skill-revision";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "3.8.151",
3
+ "version": "3.8.153",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",