@open-agent-toolkit/cli 0.2.65 → 0.2.67
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/assets/bundle-metadata.json +1 -1
- package/assets/docs/cli-utilities/configuration.md +33 -2
- package/assets/docs/cli-utilities/index.md +3 -0
- package/assets/docs/cli-utilities/project-log.md +63 -4
- package/assets/docs/cli-utilities/remote-project-management.md +191 -0
- package/assets/docs/contributing/code.md +8 -4
- package/assets/docs/contributing/skills.md +29 -17
- package/assets/docs/docs-tooling/commands.md +3 -1
- package/assets/docs/provider-sync/manifest-and-drift.md +2 -18
- package/assets/docs/reference/cli-reference.md +12 -1
- package/assets/docs/reference/file-locations.md +22 -0
- package/assets/docs/reference/oat-directory-structure.md +30 -17
- package/assets/docs/reference/troubleshooting.md +44 -0
- package/assets/docs/workflows/projects/lifecycle.md +17 -0
- package/assets/docs/workflows/projects/picking-up-projects.md +18 -0
- package/assets/docs/workflows/skills/index.md +33 -0
- package/assets/docs/workflows/skills/repo-improve.md +7 -3
- package/assets/public-package-versions.json +4 -4
- package/assets/skills/create-agnostic-skill/SKILL.md +19 -37
- package/assets/skills/create-agnostic-skill/references/docs/skills-guide.md +58 -15
- package/assets/skills/create-agnostic-skill/references/skill-template.md +17 -15
- package/assets/skills/oat-agent-instructions-apply/SKILL.md +1 -1
- package/assets/skills/oat-agent-instructions-apply/references/instruction-file-templates/glob-scoped-rule.md +1 -4
- package/assets/skills/oat-doctor/SKILL.md +3 -6
- package/assets/skills/oat-pjm-remote/SKILL.md +101 -0
- package/assets/skills/oat-pjm-remote/references/external-action-protocol.md +43 -0
- package/assets/skills/oat-project-autonomous/references/gate-inventory.md +1 -1
- package/assets/skills/oat-project-complete/SKILL.md +158 -30
- package/assets/skills/oat-project-complete/scripts/finalize-synced-archive.mjs +26 -7
- package/assets/skills/oat-project-complete/scripts/validate-durable-archive-receipt.mjs +183 -0
- package/assets/skills/oat-project-document/references/docs/autonomy-contract.md +1 -1
- package/assets/skills/oat-project-implement/references/docs/autonomy-contract.md +1 -1
- package/assets/skills/oat-project-lite/references/docs/autonomy-contract.md +1 -1
- package/assets/skills/oat-project-pr-final/references/docs/autonomy-contract.md +1 -1
- package/assets/skills/oat-project-quick-start/references/docs/autonomy-contract.md +1 -1
- package/assets/skills/oat-project-retro/SKILL.md +1 -1
- package/assets/skills/oat-project-retro/references/apply-procedure.md +11 -0
- package/assets/skills/oat-project-review-provide/SKILL.md +4 -4
- package/assets/skills/oat-project-summary/SKILL.md +24 -2
- package/assets/skills/oat-repo-improve/SKILL.md +9 -2
- package/assets/skills/oat-repo-improve/references/plan-template.md +4 -6
- package/assets/skills/oat-repo-knowledge-index/SKILL.md +11 -9
- package/assets/skills/oat-wave-execute/SKILL.md +20 -6
- package/assets/skills/oat-wave-program/SKILL.md +9 -4
- package/dist/commands/backlog/new.d.ts +1 -0
- package/dist/commands/backlog/new.d.ts.map +1 -1
- package/dist/commands/backlog/new.js +3 -1
- package/dist/commands/config/index.d.ts +3 -1
- package/dist/commands/config/index.d.ts.map +1 -1
- package/dist/commands/config/index.js +362 -36
- package/dist/commands/docs/index-generate/index.d.ts.map +1 -1
- package/dist/commands/docs/index-generate/index.js +68 -12
- package/dist/commands/docs/init/index.d.ts +11 -0
- package/dist/commands/docs/init/index.d.ts.map +1 -1
- package/dist/commands/docs/init/index.js +19 -1
- package/dist/commands/gate/index.d.ts.map +1 -1
- package/dist/commands/gate/index.js +10 -2
- package/dist/commands/instructions/instructions.utils.d.ts.map +1 -1
- package/dist/commands/instructions/instructions.utils.js +42 -9
- package/dist/commands/internal/validate-skill-version-bumps.d.ts.map +1 -1
- package/dist/commands/internal/validate-skill-version-bumps.js +5 -5
- package/dist/commands/pjm/doctor.d.ts +2 -0
- package/dist/commands/pjm/doctor.d.ts.map +1 -1
- package/dist/commands/pjm/doctor.js +71 -1
- package/dist/commands/pjm/index.d.ts +2 -0
- package/dist/commands/pjm/index.d.ts.map +1 -1
- package/dist/commands/pjm/index.js +3 -0
- package/dist/commands/pjm/remote/__integration__/lifecycle-harness.d.ts +60 -0
- package/dist/commands/pjm/remote/__integration__/lifecycle-harness.d.ts.map +1 -0
- package/dist/commands/pjm/remote/__integration__/lifecycle-harness.js +151 -0
- package/dist/commands/pjm/remote/association.d.ts +27 -0
- package/dist/commands/pjm/remote/association.d.ts.map +1 -0
- package/dist/commands/pjm/remote/association.js +68 -0
- package/dist/commands/pjm/remote/authority.d.ts +210 -0
- package/dist/commands/pjm/remote/authority.d.ts.map +1 -0
- package/dist/commands/pjm/remote/authority.js +341 -0
- package/dist/commands/pjm/remote/batch.d.ts +15 -0
- package/dist/commands/pjm/remote/batch.d.ts.map +1 -0
- package/dist/commands/pjm/remote/batch.js +126 -0
- package/dist/commands/pjm/remote/closeout.d.ts +69 -0
- package/dist/commands/pjm/remote/closeout.d.ts.map +1 -0
- package/dist/commands/pjm/remote/closeout.js +208 -0
- package/dist/commands/pjm/remote/create-binding.d.ts +62 -0
- package/dist/commands/pjm/remote/create-binding.d.ts.map +1 -0
- package/dist/commands/pjm/remote/create-binding.js +126 -0
- package/dist/commands/pjm/remote/credential-safety.d.ts +7 -0
- package/dist/commands/pjm/remote/credential-safety.d.ts.map +1 -0
- package/dist/commands/pjm/remote/credential-safety.js +21 -0
- package/dist/commands/pjm/remote/discussion.d.ts +49 -0
- package/dist/commands/pjm/remote/discussion.d.ts.map +1 -0
- package/dist/commands/pjm/remote/discussion.js +124 -0
- package/dist/commands/pjm/remote/doctor.d.ts +22 -0
- package/dist/commands/pjm/remote/doctor.d.ts.map +1 -0
- package/dist/commands/pjm/remote/doctor.js +380 -0
- package/dist/commands/pjm/remote/external-action.d.ts +208 -0
- package/dist/commands/pjm/remote/external-action.d.ts.map +1 -0
- package/dist/commands/pjm/remote/external-action.js +367 -0
- package/dist/commands/pjm/remote/host-execution.d.ts +28 -0
- package/dist/commands/pjm/remote/host-execution.d.ts.map +1 -0
- package/dist/commands/pjm/remote/host-execution.js +63 -0
- package/dist/commands/pjm/remote/index.d.ts +41 -0
- package/dist/commands/pjm/remote/index.d.ts.map +1 -0
- package/dist/commands/pjm/remote/index.js +280 -0
- package/dist/commands/pjm/remote/jira-adf.d.ts +35 -0
- package/dist/commands/pjm/remote/jira-adf.d.ts.map +1 -0
- package/dist/commands/pjm/remote/jira-adf.js +169 -0
- package/dist/commands/pjm/remote/lifecycle.d.ts +163 -0
- package/dist/commands/pjm/remote/lifecycle.d.ts.map +1 -0
- package/dist/commands/pjm/remote/lifecycle.js +224 -0
- package/dist/commands/pjm/remote/local-projection.d.ts +30 -0
- package/dist/commands/pjm/remote/local-projection.d.ts.map +1 -0
- package/dist/commands/pjm/remote/local-projection.js +95 -0
- package/dist/commands/pjm/remote/managed-markdown.d.ts +30 -0
- package/dist/commands/pjm/remote/managed-markdown.d.ts.map +1 -0
- package/dist/commands/pjm/remote/managed-markdown.js +128 -0
- package/dist/commands/pjm/remote/migrate.d.ts +14 -0
- package/dist/commands/pjm/remote/migrate.d.ts.map +1 -0
- package/dist/commands/pjm/remote/migrate.js +32 -0
- package/dist/commands/pjm/remote/operation-state.d.ts +15 -0
- package/dist/commands/pjm/remote/operation-state.d.ts.map +1 -0
- package/dist/commands/pjm/remote/operation-state.js +143 -0
- package/dist/commands/pjm/remote/outbound-projection-safety.d.ts +25 -0
- package/dist/commands/pjm/remote/outbound-projection-safety.d.ts.map +1 -0
- package/dist/commands/pjm/remote/outbound-projection-safety.js +99 -0
- package/dist/commands/pjm/remote/output.d.ts +60 -0
- package/dist/commands/pjm/remote/output.d.ts.map +1 -0
- package/dist/commands/pjm/remote/output.js +48 -0
- package/dist/commands/pjm/remote/preview.d.ts +88 -0
- package/dist/commands/pjm/remote/preview.d.ts.map +1 -0
- package/dist/commands/pjm/remote/preview.js +154 -0
- package/dist/commands/pjm/remote/provider-conformance.d.ts +13 -0
- package/dist/commands/pjm/remote/provider-conformance.d.ts.map +1 -0
- package/dist/commands/pjm/remote/provider-conformance.js +37 -0
- package/dist/commands/pjm/remote/provider.d.ts +57 -0
- package/dist/commands/pjm/remote/provider.d.ts.map +1 -0
- package/dist/commands/pjm/remote/provider.js +28 -0
- package/dist/commands/pjm/remote/providers/github-publication-safety.d.ts +46 -0
- package/dist/commands/pjm/remote/providers/github-publication-safety.d.ts.map +1 -0
- package/dist/commands/pjm/remote/providers/github-publication-safety.js +126 -0
- package/dist/commands/pjm/remote/providers/github.d.ts +207 -0
- package/dist/commands/pjm/remote/providers/github.d.ts.map +1 -0
- package/dist/commands/pjm/remote/providers/github.js +1456 -0
- package/dist/commands/pjm/remote/providers/jira.d.ts +245 -0
- package/dist/commands/pjm/remote/providers/jira.d.ts.map +1 -0
- package/dist/commands/pjm/remote/providers/jira.js +1650 -0
- package/dist/commands/pjm/remote/providers/linear.d.ts +182 -0
- package/dist/commands/pjm/remote/providers/linear.d.ts.map +1 -0
- package/dist/commands/pjm/remote/providers/linear.js +1289 -0
- package/dist/commands/pjm/remote/purpose-policy.d.ts +29 -0
- package/dist/commands/pjm/remote/purpose-policy.d.ts.map +1 -0
- package/dist/commands/pjm/remote/purpose-policy.js +118 -0
- package/dist/commands/pjm/remote/reconcile.d.ts +42 -0
- package/dist/commands/pjm/remote/reconcile.d.ts.map +1 -0
- package/dist/commands/pjm/remote/reconcile.js +101 -0
- package/dist/commands/pjm/remote/resolution.d.ts +122 -0
- package/dist/commands/pjm/remote/resolution.d.ts.map +1 -0
- package/dist/commands/pjm/remote/resolution.js +243 -0
- package/dist/commands/pjm/remote/schema.d.ts +9309 -0
- package/dist/commands/pjm/remote/schema.d.ts.map +1 -0
- package/dist/commands/pjm/remote/schema.js +1503 -0
- package/dist/commands/pjm/remote/service.d.ts +20 -0
- package/dist/commands/pjm/remote/service.d.ts.map +1 -0
- package/dist/commands/pjm/remote/service.js +5121 -0
- package/dist/commands/pjm/remote/shared-storage.d.ts +36 -0
- package/dist/commands/pjm/remote/shared-storage.d.ts.map +1 -0
- package/dist/commands/pjm/remote/shared-storage.js +110 -0
- package/dist/commands/pjm/remote/snapshot.d.ts +32 -0
- package/dist/commands/pjm/remote/snapshot.d.ts.map +1 -0
- package/dist/commands/pjm/remote/snapshot.js +140 -0
- package/dist/commands/pjm/remote/storage-locator.d.ts +29 -0
- package/dist/commands/pjm/remote/storage-locator.d.ts.map +1 -0
- package/dist/commands/pjm/remote/storage-locator.js +62 -0
- package/dist/commands/pjm/remote/store.d.ts +85 -0
- package/dist/commands/pjm/remote/store.d.ts.map +1 -0
- package/dist/commands/pjm/remote/store.js +553 -0
- package/dist/commands/pjm/remote/verification.d.ts +40 -0
- package/dist/commands/pjm/remote/verification.d.ts.map +1 -0
- package/dist/commands/pjm/remote/verification.js +100 -0
- package/dist/commands/project/dispatch-ceiling/index.d.ts.map +1 -1
- package/dist/commands/project/dispatch-ceiling/index.js +32 -18
- package/dist/commands/project/log/append.d.ts +48 -0
- package/dist/commands/project/log/append.d.ts.map +1 -1
- package/dist/commands/project/log/append.js +207 -30
- package/dist/commands/project/log/check.d.ts +87 -1
- package/dist/commands/project/log/check.d.ts.map +1 -1
- package/dist/commands/project/log/check.js +139 -5
- package/dist/commands/project/log/grammar.d.ts +165 -0
- package/dist/commands/project/log/grammar.d.ts.map +1 -1
- package/dist/commands/project/log/grammar.js +219 -1
- package/dist/commands/project/log/rollup.d.ts +16 -1
- package/dist/commands/project/log/rollup.d.ts.map +1 -1
- package/dist/commands/project/log/rollup.js +22 -2
- package/dist/commands/project/log/synthesize.d.ts +16 -0
- package/dist/commands/project/log/synthesize.d.ts.map +1 -1
- package/dist/commands/project/log/synthesize.js +85 -9
- package/dist/commands/status/index.d.ts.map +1 -1
- package/dist/commands/status/index.js +24 -2
- package/dist/commands/sync/apply.d.ts.map +1 -1
- package/dist/commands/sync/apply.js +6 -4
- package/dist/commands/tools/shared/pack-manifest.d.ts.map +1 -1
- package/dist/commands/tools/shared/pack-manifest.js +1 -0
- package/dist/config/dispatch-matrix.d.ts.map +1 -1
- package/dist/config/dispatch-matrix.js +13 -5
- package/dist/config/oat-config.d.ts +41 -0
- package/dist/config/oat-config.d.ts.map +1 -1
- package/dist/config/oat-config.js +247 -9
- package/dist/config/own-keys.d.ts +22 -0
- package/dist/config/own-keys.d.ts.map +1 -0
- package/dist/config/own-keys.js +32 -0
- package/dist/config/resolve.d.ts +11 -0
- package/dist/config/resolve.d.ts.map +1 -1
- package/dist/config/resolve.js +35 -11
- package/dist/config/sync-config.d.ts.map +1 -1
- package/dist/config/sync-config.js +16 -0
- package/dist/drift/detector.d.ts.map +1 -1
- package/dist/drift/detector.js +52 -1
- package/dist/drift/skill-view-diagnostic.d.ts.map +1 -1
- package/dist/drift/skill-view-diagnostic.js +2 -23
- package/dist/engine/compute-plan.d.ts.map +1 -1
- package/dist/engine/compute-plan.js +22 -72
- package/dist/engine/managed-copy-hash.d.ts +69 -0
- package/dist/engine/managed-copy-hash.d.ts.map +1 -0
- package/dist/engine/managed-copy-hash.js +175 -0
- package/dist/fs/assets.d.ts +11 -0
- package/dist/fs/assets.d.ts.map +1 -1
- package/dist/fs/assets.js +1 -1
- package/dist/manifest/hash.d.ts +110 -0
- package/dist/manifest/hash.d.ts.map +1 -1
- package/dist/manifest/hash.js +111 -13
- package/dist/providers/ceiling/registry.d.ts.map +1 -1
- package/dist/providers/ceiling/registry.js +6 -1
- package/dist/providers/identity/dispatch-report.d.ts.map +1 -1
- package/dist/providers/identity/dispatch-report.js +4 -1
- package/dist/release/public-package-contract.d.ts.map +1 -1
- package/dist/release/public-package-contract.js +21 -0
- package/dist/validation/skills.d.ts.map +1 -1
- package/dist/validation/skills.js +305 -40
- package/package.json +2 -2
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import { type JiraAdfDocument } from '../../../pjm/remote/jira-adf.js';
|
|
2
|
+
import { type OutboundProjection, type OutboundProjectionSafetyResult } from '../../../pjm/remote/outbound-projection-safety.js';
|
|
3
|
+
import { type FieldVerification, type NormalizedRemoteIssue, type ObservationValidation, type ProviderAdapter, type ProviderContext, type SanitizedProviderObservation, type SemanticAction, type SemanticOperation } from '../../../pjm/remote/provider.js';
|
|
4
|
+
export interface JiraIssueReference {
|
|
5
|
+
host?: string;
|
|
6
|
+
key: string;
|
|
7
|
+
alias: string;
|
|
8
|
+
}
|
|
9
|
+
export type JiraSemanticField = 'stable-identity' | 'title' | 'description-adf' | 'status' | 'priority' | 'revision' | 'project-context' | 'metadata' | 'transitions';
|
|
10
|
+
export interface JiraHostCapabilityObservation {
|
|
11
|
+
provider: 'jira';
|
|
12
|
+
context: ProviderContext;
|
|
13
|
+
availability: 'available' | 'unavailable' | 'authorization-required' | 'rate-limited';
|
|
14
|
+
accountId: string;
|
|
15
|
+
siteId: string;
|
|
16
|
+
projectId: string;
|
|
17
|
+
operations: SemanticOperation[];
|
|
18
|
+
observableFields: JiraSemanticField[];
|
|
19
|
+
semanticCapabilities: Array<'structural-description-write'>;
|
|
20
|
+
evidenceDigest: string;
|
|
21
|
+
observedAt: string;
|
|
22
|
+
}
|
|
23
|
+
export interface JiraReadPlanInput {
|
|
24
|
+
context: ProviderContext;
|
|
25
|
+
hostCapability: JiraHostCapabilityObservation;
|
|
26
|
+
stableId: string;
|
|
27
|
+
issueId: string;
|
|
28
|
+
currentKey: string | null;
|
|
29
|
+
stepId: string;
|
|
30
|
+
}
|
|
31
|
+
export interface JiraMetadataReadPlanInput {
|
|
32
|
+
context: ProviderContext;
|
|
33
|
+
hostCapability: JiraHostCapabilityObservation;
|
|
34
|
+
purpose: 'create' | 'update' | 'transition';
|
|
35
|
+
issueId?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface JiraDiscussionReadPlanInput {
|
|
38
|
+
context: ProviderContext;
|
|
39
|
+
hostCapability: JiraHostCapabilityObservation;
|
|
40
|
+
stableId: string;
|
|
41
|
+
cursor: string | null;
|
|
42
|
+
limit: number;
|
|
43
|
+
}
|
|
44
|
+
export type JiraMutationField = 'title' | 'description' | 'priority' | 'status' | 'annotation';
|
|
45
|
+
export interface JiraNormalizedMetadata {
|
|
46
|
+
evidenceDigest: string;
|
|
47
|
+
writableFields: JiraMutationField[];
|
|
48
|
+
transitions: string[];
|
|
49
|
+
}
|
|
50
|
+
export interface JiraDescriptionAdfEvidence {
|
|
51
|
+
bindingId: string;
|
|
52
|
+
beforeDocumentDigest: string;
|
|
53
|
+
afterDocumentDigest: string;
|
|
54
|
+
surroundingDigest: string;
|
|
55
|
+
managedTextDigest: string;
|
|
56
|
+
}
|
|
57
|
+
export interface JiraStructuralDescriptionWrite {
|
|
58
|
+
kind: 'replace-managed-description';
|
|
59
|
+
bindingId: string;
|
|
60
|
+
document: JiraAdfDocument;
|
|
61
|
+
documentDigest: string;
|
|
62
|
+
beforeDocumentDigest: string;
|
|
63
|
+
surroundingDigest: string;
|
|
64
|
+
managedTextDigest: string;
|
|
65
|
+
}
|
|
66
|
+
export interface JiraNormalizedMetadataContract {
|
|
67
|
+
writableFields: JiraMutationField[];
|
|
68
|
+
transitions: string[];
|
|
69
|
+
}
|
|
70
|
+
export interface JiraMutationPreviewInput {
|
|
71
|
+
operation: 'create' | 'update' | 'transition' | 'annotate';
|
|
72
|
+
context: ProviderContext;
|
|
73
|
+
hostCapability: JiraHostCapabilityObservation;
|
|
74
|
+
normalizedMetadata: JiraNormalizedMetadata;
|
|
75
|
+
bindingId: string;
|
|
76
|
+
stableId?: string;
|
|
77
|
+
provenance?: {
|
|
78
|
+
bindingId: string;
|
|
79
|
+
origin: string;
|
|
80
|
+
};
|
|
81
|
+
fieldMask: readonly string[];
|
|
82
|
+
projection: OutboundProjection;
|
|
83
|
+
outboundSafety: OutboundProjectionSafetyResult;
|
|
84
|
+
descriptionAdf?: {
|
|
85
|
+
bindingId: string;
|
|
86
|
+
before: JiraAdfDocument;
|
|
87
|
+
after: JiraAdfDocument;
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
export interface JiraMutationPlanInput extends JiraMutationPreviewInput {
|
|
91
|
+
approvedPreviewDigest: string;
|
|
92
|
+
}
|
|
93
|
+
export interface JiraMutationPreview {
|
|
94
|
+
previewDigest: string;
|
|
95
|
+
metadataContract: JiraNormalizedMetadataContract;
|
|
96
|
+
structuralDescriptionWrite: JiraStructuralDescriptionWrite | null;
|
|
97
|
+
requiredSemanticCapabilities: Array<'structural-description-write'>;
|
|
98
|
+
executionEvidence: {
|
|
99
|
+
capabilityEvidenceDigest: string;
|
|
100
|
+
capabilityObservedAt: string;
|
|
101
|
+
metadataEvidenceDigest: string;
|
|
102
|
+
metadataSemanticsDigest: string;
|
|
103
|
+
projectionDigest: string;
|
|
104
|
+
outboundSafetyResultDigest: string;
|
|
105
|
+
descriptionAdfEvidence: JiraDescriptionAdfEvidence | null;
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
export interface JiraReadObservationInput {
|
|
109
|
+
action: SemanticAction;
|
|
110
|
+
hostCapability: JiraHostCapabilityObservation;
|
|
111
|
+
observedAt: string;
|
|
112
|
+
outcome: 'found' | 'not-found' | 'temporary-failure';
|
|
113
|
+
observation?: SanitizedProviderObservation;
|
|
114
|
+
}
|
|
115
|
+
export interface JiraReadResult {
|
|
116
|
+
classification: 'current' | 'moved' | 'archived' | 'partial' | 'inaccessible' | 'temporarily-unavailable';
|
|
117
|
+
issue: NormalizedRemoteIssue | null;
|
|
118
|
+
preservePriorEvidence: boolean;
|
|
119
|
+
reasons: string[];
|
|
120
|
+
}
|
|
121
|
+
export interface JiraMetadataObservation {
|
|
122
|
+
provider: 'jira';
|
|
123
|
+
context: ProviderContext;
|
|
124
|
+
capabilityEvidenceDigest: string;
|
|
125
|
+
purpose: 'create' | 'update' | 'transition';
|
|
126
|
+
availability: 'available' | 'authorization-required' | 'partial';
|
|
127
|
+
metadataEvidenceDigest: string;
|
|
128
|
+
writableFields: JiraMutationField[];
|
|
129
|
+
transitions: string[];
|
|
130
|
+
}
|
|
131
|
+
export interface JiraDiscussionObservation {
|
|
132
|
+
provider: 'jira';
|
|
133
|
+
context: ProviderContext;
|
|
134
|
+
stableId: string;
|
|
135
|
+
availability: 'available' | 'rate-limited' | 'permission-denied';
|
|
136
|
+
capabilityEvidenceDigest: string;
|
|
137
|
+
requestedCursor: string | null;
|
|
138
|
+
nextCursor: string | null;
|
|
139
|
+
items: Array<{
|
|
140
|
+
id: string;
|
|
141
|
+
body: string;
|
|
142
|
+
observedAt: string;
|
|
143
|
+
}>;
|
|
144
|
+
}
|
|
145
|
+
export interface JiraMutationVerificationInput {
|
|
146
|
+
action: SemanticAction;
|
|
147
|
+
attempt: {
|
|
148
|
+
count: number;
|
|
149
|
+
outcome: 'accepted' | 'rejected' | 'unknown';
|
|
150
|
+
capabilityEvidenceDigest: string;
|
|
151
|
+
metadataEvidenceDigest: string;
|
|
152
|
+
};
|
|
153
|
+
hostCapability: JiraHostCapabilityObservation;
|
|
154
|
+
normalizedMetadata: JiraNormalizedMetadata;
|
|
155
|
+
readback: SanitizedProviderObservation | null;
|
|
156
|
+
}
|
|
157
|
+
export interface JiraMutationVerificationResult {
|
|
158
|
+
classification: 'verified' | 'partial' | 'rejected' | 'uncertain';
|
|
159
|
+
reason: string;
|
|
160
|
+
fields: FieldVerification[];
|
|
161
|
+
retryAllowed: false;
|
|
162
|
+
}
|
|
163
|
+
export interface JiraDuplicateSearchPlanInput {
|
|
164
|
+
context: ProviderContext;
|
|
165
|
+
hostCapability: JiraHostCapabilityObservation;
|
|
166
|
+
provenanceToken: string;
|
|
167
|
+
reservedBindingId: string;
|
|
168
|
+
historicalKeys: string[];
|
|
169
|
+
maxResults: number;
|
|
170
|
+
}
|
|
171
|
+
export interface JiraDuplicateCandidate {
|
|
172
|
+
issueId: string;
|
|
173
|
+
stableId: string;
|
|
174
|
+
keys: string[];
|
|
175
|
+
context: ProviderContext;
|
|
176
|
+
matchedBy: 'provenance' | 'reserved-binding' | 'historical-key';
|
|
177
|
+
matchedProvenanceToken?: string;
|
|
178
|
+
matchedReservedBindingId?: string;
|
|
179
|
+
matchedHistoricalKey?: string;
|
|
180
|
+
stableIdentityVerified: boolean;
|
|
181
|
+
contextVerified: boolean;
|
|
182
|
+
}
|
|
183
|
+
export interface JiraDuplicateSearchObservation {
|
|
184
|
+
provider: 'jira';
|
|
185
|
+
context: ProviderContext;
|
|
186
|
+
availability: 'available' | 'unavailable' | 'lagging';
|
|
187
|
+
capabilityEvidenceDigest: string;
|
|
188
|
+
queryDigest: string;
|
|
189
|
+
observedAt: string;
|
|
190
|
+
results: JiraDuplicateCandidate[];
|
|
191
|
+
}
|
|
192
|
+
export interface JiraDuplicateSearchValidationResult {
|
|
193
|
+
accepted: boolean;
|
|
194
|
+
classification: 'no-match' | 'one-verified-match' | 'ambiguous' | 'unavailable' | 'lagging' | 'invalid';
|
|
195
|
+
stableId: string | null;
|
|
196
|
+
reasons: string[];
|
|
197
|
+
}
|
|
198
|
+
export declare const JIRA_DISCUSSION_LIMITS: {
|
|
199
|
+
readonly maxItems: 100;
|
|
200
|
+
readonly maxIdBytes: 256;
|
|
201
|
+
readonly maxBodyBytes: 16384;
|
|
202
|
+
readonly maxCursorBytes: 512;
|
|
203
|
+
readonly maxPageBytes: 65536;
|
|
204
|
+
};
|
|
205
|
+
export declare function parseJiraIssueReference(reference: string): JiraIssueReference | null;
|
|
206
|
+
export declare function normalizeJiraIssueObservation(observation: SanitizedProviderObservation): NormalizedRemoteIssue;
|
|
207
|
+
export declare function validateJiraHostCapability(operation: SemanticOperation, context: ProviderContext, observed: JiraHostCapabilityObservation, requiredFields?: JiraSemanticField[]): ObservationValidation;
|
|
208
|
+
export declare function planJiraRead(input: JiraReadPlanInput): SemanticAction;
|
|
209
|
+
export declare function planJiraMetadataRead(input: JiraMetadataReadPlanInput): SemanticAction;
|
|
210
|
+
export declare function planJiraDiscussionRead(input: JiraDiscussionReadPlanInput): SemanticAction;
|
|
211
|
+
export declare function previewJiraMutation(input: JiraMutationPreviewInput): JiraMutationPreview;
|
|
212
|
+
export declare function planJiraMutation(input: JiraMutationPlanInput): SemanticAction;
|
|
213
|
+
export declare function classifyJiraReadObservation(input: JiraReadObservationInput): JiraReadResult;
|
|
214
|
+
export declare function validateJiraMetadataObservation(input: {
|
|
215
|
+
action: SemanticAction;
|
|
216
|
+
hostCapability: JiraHostCapabilityObservation;
|
|
217
|
+
observation: JiraMetadataObservation;
|
|
218
|
+
}): ObservationValidation;
|
|
219
|
+
export declare function validateJiraDiscussionReadObservation(input: {
|
|
220
|
+
action: SemanticAction;
|
|
221
|
+
hostCapability: JiraHostCapabilityObservation;
|
|
222
|
+
observation: JiraDiscussionObservation;
|
|
223
|
+
}): {
|
|
224
|
+
classification: 'page' | 'rate-limited' | 'permission-denied' | 'invalid';
|
|
225
|
+
page: {
|
|
226
|
+
items: Array<{
|
|
227
|
+
id: string;
|
|
228
|
+
body: string;
|
|
229
|
+
observedAt: string;
|
|
230
|
+
contentSuppressed: boolean;
|
|
231
|
+
}>;
|
|
232
|
+
nextCursor: string | null;
|
|
233
|
+
} | null;
|
|
234
|
+
persistable: false;
|
|
235
|
+
reasons: string[];
|
|
236
|
+
};
|
|
237
|
+
export declare function verifyJiraMutationObservation(input: JiraMutationVerificationInput): JiraMutationVerificationResult;
|
|
238
|
+
export declare function planJiraDuplicateSearch(input: JiraDuplicateSearchPlanInput): SemanticAction;
|
|
239
|
+
export declare function validateJiraDuplicateSearchObservation(input: {
|
|
240
|
+
action: SemanticAction;
|
|
241
|
+
hostCapability: JiraHostCapabilityObservation;
|
|
242
|
+
observation: JiraDuplicateSearchObservation;
|
|
243
|
+
}): JiraDuplicateSearchValidationResult;
|
|
244
|
+
export declare const jiraAdapter: ProviderAdapter;
|
|
245
|
+
//# sourceMappingURL=jira.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jira.d.ts","sourceRoot":"","sources":["../../../../../src/commands/pjm/remote/providers/jira.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,eAAe,EACrB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,8BAA8B,EACpC,MAAM,iDAAiD,CAAC;AACzD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