@tickernelz/paperclip-pro 2026.1008.0 → 2026.1008.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 +22 -6
- package/dist/index.js.map +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -10101,7 +10101,7 @@ function requireTitleOrDescription(value, ctx) {
|
|
|
10101
10101
|
ctx.addIssue({ code: z19.ZodIssueCode.custom, path: ["title"], message: "Provide a title or task description" });
|
|
10102
10102
|
}
|
|
10103
10103
|
}
|
|
10104
|
-
var issueBlockedInboxStateSchema, issueBlockedInboxSeveritySchema, issueBlockedInboxReasonSchema, issueBlockedInboxIssueRefSchema, issueBlockedInboxAttentionSchema, ISSUE_EXECUTION_WORKSPACE_PREFERENCES, executionWorkspaceStrategySchema, ipv4CidrPattern, protectedTaskEgressCidrs, issueExecutionWorkspaceSettingsSchema, issueRunModelOverrideSubtaskScopeSchema, issueRunModelOverrideInheritanceStateSchema, issueAssigneeAdapterOverridesSchema, runModelOverrideValue, issueRunModelOverrideUpdateSchema, issueExecutionStagePrincipalBaseSchema, issueExecutionStagePrincipalSchema, issueExecutionStageParticipantSchema, issueExecutionStageSchema, issueExecutionMonitorPolicySchema, issueExecutionPolicySchema, issueExecutionMonitorStateSchema, issueReviewRequestSchema, issueExecutionStateSchema, issueRecoveryActionReadModelSchema, RESOLVE_ISSUE_RECOVERY_ACTION_OUTCOMES, retryWorkspaceExportSchema, resolveIssueRecoveryActionSchema, issueRequestDepthInputSchema, createIssueBaseSchema, createIssueDuplicateGuardSchema, onboardingFirstTaskMarkerSchema, createIssueInputSchema, createIssueSchema, setIssueTitleSchema, upsertIssueWatchdogSchema, createChildIssueSchema, createAcceptedPlanDecompositionSchema, issueCountFilterIdSchema, issueCountFlagQuerySchema, issueCountQuerySchema, createIssueLabelSchema, issueCommentAttachmentIdsSchema, updateIssueSchema, stalledReviewDecisionSchema, checkoutIssueSchema, commentMetadataLabelSchema, commentMetadataTextSchema, issueCommentAuthorTypeSchema, issueCommentPresentationSchema, issueCommentMetadataBaseRowSchema, issueCommentMetadataTextRowSchema, issueCommentMetadataCodeRowSchema, issueCommentMetadataKeyValueRowSchema, issueCommentMetadataIssueLinkRowSchema, issueCommentMetadataAgentLinkRowSchema, issueCommentMetadataRunLinkRowSchema, issueCommentMetadataRowSchema, issueCommentMetadataSectionSchema, issueCommentMetadataSchema, addIssueCommentSchema, issueThreadInteractionStatusSchema, issueThreadInteractionKindSchema, issueThreadInteractionCanonicalResolverPolicySchema, issueThreadInteractionResolverPolicySchema, issueThreadInteractionResolverPolicyProvenanceSchema, issueThreadInteractionEffectiveResolverPolicySourceSchema, issueThreadInteractionContinuationPolicySchema, connectionIntentPhaseSchema, connectionIntentBrandAssetSchema, connectionIntentPayloadSchema, connectionIntentResultSchema, issueDocumentKeySchema, suggestedTaskDraftSchema, suggestTasksPayloadSchema, suggestTasksResultCreatedTaskSchema, suggestTasksResultSchema, askUserQuestionsQuestionOptionSchema, askUserQuestionsQuestionSchema, paperclipQuestionOptionSchema, paperclipQuestionSchema, paperclipQuestionSetPayloadSchema, askUserQuestionsPayloadFields, askUserQuestionsPayloadSchema, askUserQuestionsAnswerSchema, askUserQuestionsResultSchema, requestConfirmationHrefSchema, requestConfirmationTargetBaseSchema, requestConfirmationIssueDocumentTargetSchema, requestConfirmationCustomTargetSchema, requestConfirmationTargetSchema, requestConfirmationToolActionPayloadSchema, requestConfirmationSecretProposalPayloadSchema, requestConfirmationPayloadSchema, requestCheckboxConfirmationOptionSchema, requestCheckboxConfirmationPayloadSchema, requestConfirmationResumeFailureSchema, requestConfirmationToolActionResultSchema, requestConfirmationSecretProposalResultSchema, requestConfirmationResultSchema, requestCheckboxConfirmationResultSchema, requestItemVerdictValueSchema, requestItemVerdictsItemSchema, requestItemVerdictsPayloadSchema, requestItemVerdictsResultItemSchema, requestItemVerdictsResultSchema, createIssueThreadInteractionCommon, createLegacyAskUserQuestionsPayloadSchema, createAskUserQuestionsPayloadSchema, createIssueThreadInteractionSchema, acceptIssueThreadInteractionSchema, resolveConfirmationFromCommentSchema, rejectIssueThreadInteractionSchema, cancelIssueThreadInteractionSchema, skipIssueThreadInteractionSchema, withdrawIssueThreadInteractionSchema, respondIssueThreadInteractionSchema, submitIssueThreadInteractionVerdictsSchema, linkIssueApprovalSchema, createIssueAttachmentMetadataSchema, ISSUE_DOCUMENT_FORMATS, issueDocumentFormatSchema, upsertIssueDocumentSchema, restoreIssueDocumentRevisionSchema;
|
|
10104
|
+
var issueBlockedInboxStateSchema, issueBlockedInboxSeveritySchema, issueBlockedInboxReasonSchema, issueBlockedInboxIssueRefSchema, issueBlockedInboxAttentionSchema, ISSUE_EXECUTION_WORKSPACE_PREFERENCES, executionWorkspaceStrategySchema, ipv4CidrPattern, protectedTaskEgressCidrs, issueExecutionWorkspaceSettingsSchema, issueRunModelOverrideSubtaskScopeSchema, issueRunModelOverrideInheritanceStateSchema, issueAssigneeAdapterOverridesSchema, runModelOverrideValue, issueRunModelOverrideUpdateSchema, issueExecutionStagePrincipalBaseSchema, issueExecutionStagePrincipalSchema, issueExecutionStageParticipantSchema, issueExecutionStageSchema, issueExecutionMonitorPolicySchema, issueExecutionPolicySchema, issueExecutionMonitorStateSchema, issueReviewRequestSchema, issueExecutionStateSchema, issueRecoveryActionReadModelSchema, RESOLVE_ISSUE_RECOVERY_ACTION_OUTCOMES, retryWorkspaceExportSchema, resolveIssueRecoveryActionSchema, issueRequestDepthInputSchema, createIssueBaseSchema, createIssueDuplicateGuardSchema, onboardingFirstTaskMarkerSchema, createIssueInputSchema, createIssueSchema, setIssueTitleSchema, upsertIssueWatchdogSchema, createChildIssueSchema, createAcceptedPlanDecompositionSchema, issueCountFilterIdSchema, issueCountFlagQuerySchema, issueCountQuerySchema, createIssueLabelSchema, issueCommentAttachmentIdsSchema, updateIssueSchema, stalledReviewDecisionSchema, checkoutIssueSchema, commentMetadataLabelSchema, commentMetadataTextSchema, issueCommentAuthorTypeSchema, issueCommentPresentationSchema, issueCommentMetadataBaseRowSchema, issueCommentMetadataTextRowSchema, issueCommentMetadataCodeRowSchema, issueCommentMetadataKeyValueRowSchema, issueCommentMetadataIssueLinkRowSchema, issueCommentMetadataAgentLinkRowSchema, issueCommentMetadataRunLinkRowSchema, issueCommentMetadataRowSchema, issueCommentMetadataSectionSchema, issueCommentMetadataSchema, addIssueCommentSchema, issueThreadInteractionStatusSchema, issueThreadInteractionKindSchema, issueThreadInteractionCanonicalResolverPolicySchema, issueThreadInteractionResolverPolicySchema, issueThreadInteractionResolverPolicyProvenanceSchema, issueThreadInteractionEffectiveResolverPolicySourceSchema, issueThreadInteractionContinuationPolicySchema, connectionIntentPhaseSchema, connectionIntentBrandAssetSchema, connectionIntentPayloadSchema, connectionIntentResultSchema, issueDocumentKeySchema, suggestedTaskDraftSchema, suggestTasksPayloadSchema, suggestTasksResultCreatedTaskSchema, suggestTasksResultSchema, askUserQuestionsQuestionOptionSchema, askUserQuestionsQuestionSchema, paperclipQuestionOptionSchema, paperclipQuestionSchema, paperclipQuestionSetPayloadSchema, askUserQuestionsPayloadFields, askUserQuestionsPayloadSchema, INTERACTION_NOTE_MAX_LENGTH, interactionNoteSchema, askUserQuestionsAnswerSchema, askUserQuestionsResultSchema, requestConfirmationHrefSchema, requestConfirmationTargetBaseSchema, requestConfirmationIssueDocumentTargetSchema, requestConfirmationCustomTargetSchema, requestConfirmationTargetSchema, requestConfirmationToolActionPayloadSchema, requestConfirmationSecretProposalPayloadSchema, requestConfirmationPayloadSchema, requestCheckboxConfirmationOptionSchema, requestCheckboxConfirmationPayloadSchema, requestConfirmationResumeFailureSchema, requestConfirmationToolActionResultSchema, requestConfirmationSecretProposalResultSchema, requestConfirmationResultSchema, requestCheckboxConfirmationResultSchema, requestItemVerdictValueSchema, requestItemVerdictsItemSchema, requestItemVerdictsPayloadSchema, requestItemVerdictsResultItemSchema, requestItemVerdictsResultSchema, createIssueThreadInteractionCommon, createLegacyAskUserQuestionsPayloadSchema, createAskUserQuestionsPayloadSchema, createIssueThreadInteractionSchema, acceptIssueThreadInteractionSchema, resolveConfirmationFromCommentSchema, rejectIssueThreadInteractionSchema, cancelIssueThreadInteractionSchema, skipIssueThreadInteractionSchema, withdrawIssueThreadInteractionSchema, respondIssueThreadInteractionSchema, submitIssueThreadInteractionVerdictsSchema, linkIssueApprovalSchema, createIssueAttachmentMetadataSchema, ISSUE_DOCUMENT_FORMATS, issueDocumentFormatSchema, upsertIssueDocumentSchema, restoreIssueDocumentRevisionSchema;
|
|
10105
10105
|
var init_issue = __esm({
|
|
10106
10106
|
"../packages/shared/src/validators/issue.ts"() {
|
|
10107
10107
|
"use strict";
|
|
@@ -11061,10 +11061,15 @@ var init_issue = __esm({
|
|
|
11061
11061
|
}
|
|
11062
11062
|
}
|
|
11063
11063
|
});
|
|
11064
|
+
INTERACTION_NOTE_MAX_LENGTH = 2e4;
|
|
11065
|
+
interactionNoteSchema = multilineTextSchema.pipe(z19.string().trim().max(INTERACTION_NOTE_MAX_LENGTH)).nullable().optional().describe(
|
|
11066
|
+
"Optional Markdown note from the resolving board user, up to 20000 characters. Uploaded attachments appear as Markdown links inside it. Agents cannot send a note."
|
|
11067
|
+
);
|
|
11064
11068
|
askUserQuestionsAnswerSchema = z19.object({
|
|
11065
11069
|
questionId: z19.string().trim().min(1).max(160),
|
|
11066
11070
|
optionIds: z19.array(z19.string().trim().min(1).max(160)).max(129),
|
|
11067
|
-
otherText: multilineTextSchema.pipe(z19.string().trim().max(1e5)).nullable().optional()
|
|
11071
|
+
otherText: multilineTextSchema.pipe(z19.string().trim().max(1e5)).nullable().optional(),
|
|
11072
|
+
note: interactionNoteSchema
|
|
11068
11073
|
});
|
|
11069
11074
|
askUserQuestionsResultSchema = z19.object({
|
|
11070
11075
|
version: z19.literal(1),
|
|
@@ -11284,6 +11289,7 @@ var init_issue = __esm({
|
|
|
11284
11289
|
"addressee_deleted"
|
|
11285
11290
|
]),
|
|
11286
11291
|
reason: z19.string().trim().max(4e3).nullable().optional(),
|
|
11292
|
+
note: interactionNoteSchema,
|
|
11287
11293
|
commentId: z19.string().guid().nullable().optional(),
|
|
11288
11294
|
supersededByInteractionId: z19.string().guid().nullable().optional(),
|
|
11289
11295
|
staleTarget: requestConfirmationTargetSchema.nullable().optional(),
|
|
@@ -11549,7 +11555,8 @@ var init_issue = __esm({
|
|
|
11549
11555
|
acceptIssueThreadInteractionSchema = z19.object({
|
|
11550
11556
|
rememberAction: z19.boolean().optional(),
|
|
11551
11557
|
selectedClientKeys: z19.array(z19.string().trim().min(1).max(120)).min(1).max(50).optional(),
|
|
11552
|
-
selectedOptionIds: z19.array(z19.string().trim().min(1).max(120)).max(REQUEST_CHECKBOX_CONFIRMATION_OPTION_LIMIT).optional()
|
|
11558
|
+
selectedOptionIds: z19.array(z19.string().trim().min(1).max(120)).max(REQUEST_CHECKBOX_CONFIRMATION_OPTION_LIMIT).optional(),
|
|
11559
|
+
note: interactionNoteSchema
|
|
11553
11560
|
}).superRefine((value, ctx) => {
|
|
11554
11561
|
const seenClientKeys = /* @__PURE__ */ new Set();
|
|
11555
11562
|
for (const [index130, clientKey] of (value.selectedClientKeys ?? []).entries()) {
|
|
@@ -11590,7 +11597,8 @@ var init_issue = __esm({
|
|
|
11590
11597
|
}
|
|
11591
11598
|
});
|
|
11592
11599
|
rejectIssueThreadInteractionSchema = z19.object({
|
|
11593
|
-
reason: z19.string().trim().max(4e3).optional()
|
|
11600
|
+
reason: z19.string().trim().max(4e3).optional(),
|
|
11601
|
+
note: interactionNoteSchema
|
|
11594
11602
|
});
|
|
11595
11603
|
cancelIssueThreadInteractionSchema = z19.object({
|
|
11596
11604
|
reason: z19.string().trim().max(4e3).optional()
|
|
@@ -25836,6 +25844,7 @@ var init_heartbeat_runs = __esm({
|
|
|
25836
25844
|
sql3`(${table.contextSnapshot} ->> 'issueId')`,
|
|
25837
25845
|
table.createdAt.desc()
|
|
25838
25846
|
),
|
|
25847
|
+
companyCtxIssueRedactionIdx: index8("heartbeat_runs_company_ctx_issue_redaction_idx").on(table.companyId, sql3`(${table.contextSnapshot} ->> 'issueId')`).where(sql3`${table.contextSnapshot} ? 'paperclipSecretRedactions'`),
|
|
25839
25848
|
companyCtxTaskCreatedIdx: index8("heartbeat_runs_company_ctx_task_created_idx").on(
|
|
25840
25849
|
table.companyId,
|
|
25841
25850
|
sql3`(${table.contextSnapshot} ->> 'taskId')`,
|
|
@@ -31516,7 +31525,13 @@ var init_activity_log = __esm({
|
|
|
31516
31525
|
table.createdAt
|
|
31517
31526
|
),
|
|
31518
31527
|
runIdIdx: index71("activity_log_run_id_idx").on(table.runId),
|
|
31519
|
-
entityIdx: index71("activity_log_entity_type_id_idx").on(table.entityType, table.entityId)
|
|
31528
|
+
entityIdx: index71("activity_log_entity_type_id_idx").on(table.entityType, table.entityId),
|
|
31529
|
+
companyEntityRunIdx: index71("activity_log_company_entity_run_idx").on(
|
|
31530
|
+
table.companyId,
|
|
31531
|
+
table.entityType,
|
|
31532
|
+
table.entityId,
|
|
31533
|
+
table.runId
|
|
31534
|
+
)
|
|
31520
31535
|
})
|
|
31521
31536
|
);
|
|
31522
31537
|
}
|
|
@@ -32925,7 +32940,8 @@ var init_heartbeat_run_events = __esm({
|
|
|
32925
32940
|
runSourceEventUq: uniqueIndex71("heartbeat_run_events_run_source_event_uq").on(table.runId, table.sourceEventId).where(sql36`${table.sourceEventId} is not null`),
|
|
32926
32941
|
runSourceSeqUq: uniqueIndex71("heartbeat_run_events_run_source_seq_uq").on(table.runId, table.sourceInstanceId, table.sourceSeq).where(sql36`${table.sourceInstanceId} is not null and ${table.sourceSeq} is not null`),
|
|
32927
32942
|
companyRunIdx: index95("heartbeat_run_events_company_run_idx").on(table.companyId, table.runId),
|
|
32928
|
-
companyCreatedIdx: index95("heartbeat_run_events_company_created_idx").on(table.companyId, table.createdAt)
|
|
32943
|
+
companyCreatedIdx: index95("heartbeat_run_events_company_created_idx").on(table.companyId, table.createdAt),
|
|
32944
|
+
retryExhaustedRunIdx: index95("heartbeat_run_events_retry_exhausted_run_idx").on(table.runId, table.id).where(sql36`${table.eventType} = 'lifecycle' and ${table.message} like 'Bounded retry exhausted%'`)
|
|
32929
32945
|
})
|
|
32930
32946
|
);
|
|
32931
32947
|
}
|