@company-semantics/contracts 0.116.0 → 0.117.0
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/package.json +1 -1
- package/src/org/company-md.ts +19 -0
- package/src/org/index.ts +5 -0
package/package.json
CHANGED
package/src/org/company-md.ts
CHANGED
|
@@ -76,6 +76,25 @@ export interface CompanyMdDocRelations {
|
|
|
76
76
|
|
|
77
77
|
export type CompanyMdDoc = CompanyMdDocCore & CompanyMdDocCollaborators & CompanyMdDocRelations;
|
|
78
78
|
|
|
79
|
+
export interface CompanyMdLevelLabels {
|
|
80
|
+
/** L1 label — defaults to org name */
|
|
81
|
+
readonly root: string;
|
|
82
|
+
/** L2 label — defaults to 'Department' */
|
|
83
|
+
readonly department: string;
|
|
84
|
+
/** L3 label — defaults to 'Team' */
|
|
85
|
+
readonly team: string;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export interface CompanyMdSettings {
|
|
89
|
+
readonly levelLabels: CompanyMdLevelLabels;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/** System defaults for level labels. L1 (root) is set per-org at read time. */
|
|
93
|
+
export const DEFAULT_LEVEL_LABELS: Omit<CompanyMdLevelLabels, 'root'> = {
|
|
94
|
+
department: 'Department',
|
|
95
|
+
team: 'Team',
|
|
96
|
+
} as const;
|
|
97
|
+
|
|
79
98
|
/**
|
|
80
99
|
* A context bank item — a company.md doc associated with one or more parent nodes.
|
|
81
100
|
* Context bank files can belong to company, department, or team levels.
|
package/src/org/index.ts
CHANGED
|
@@ -96,8 +96,13 @@ export type {
|
|
|
96
96
|
CompanyMdContextBankItem,
|
|
97
97
|
TeamDepartmentRole,
|
|
98
98
|
TeamDepartmentMembership,
|
|
99
|
+
// Level labels settings types (PRD-00453)
|
|
100
|
+
CompanyMdLevelLabels,
|
|
101
|
+
CompanyMdSettings,
|
|
99
102
|
} from './company-md';
|
|
100
103
|
|
|
104
|
+
export { DEFAULT_LEVEL_LABELS } from './company-md';
|
|
105
|
+
|
|
101
106
|
// Team types (PRD-00306)
|
|
102
107
|
export type {
|
|
103
108
|
TeamMembershipRole,
|