@wildo-ai/saas-specifications 1.1.8 → 1.1.9
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/esm/_core/application-specification-family-identity.schemas.d.ts +9 -0
- package/dist/esm/_core/application-specification-family-identity.schemas.d.ts.map +1 -1
- package/dist/esm/_core/application-specification-family-identity.schemas.js +9 -0
- package/dist/esm/_core/application-specification-family-identity.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-name-choice.d.ts +136 -0
- package/dist/esm/_core/brand/brand-name-choice.d.ts.map +1 -0
- package/dist/esm/_core/brand/brand-name-choice.js +193 -0
- package/dist/esm/_core/brand/brand-name-choice.js.map +1 -0
- package/dist/esm/_core/brand/brand-name-screening-generation.schemas.d.ts +108 -0
- package/dist/esm/_core/brand/brand-name-screening-generation.schemas.d.ts.map +1 -0
- package/dist/esm/_core/brand/brand-name-screening-generation.schemas.js +59 -0
- package/dist/esm/_core/brand/brand-name-screening-generation.schemas.js.map +1 -0
- package/dist/esm/_core/brand/brand-name-screening-validation.d.ts +51 -0
- package/dist/esm/_core/brand/brand-name-screening-validation.d.ts.map +1 -0
- package/dist/esm/_core/brand/brand-name-screening-validation.js +157 -0
- package/dist/esm/_core/brand/brand-name-screening-validation.js.map +1 -0
- package/dist/esm/_core/brand/brand-name-screening-view.d.ts +120 -0
- package/dist/esm/_core/brand/brand-name-screening-view.d.ts.map +1 -0
- package/dist/esm/_core/brand/brand-name-screening-view.js +47 -0
- package/dist/esm/_core/brand/brand-name-screening-view.js.map +1 -0
- package/dist/esm/_core/brand/brand-name-screening.family-aspects.d.ts +3 -0
- package/dist/esm/_core/brand/brand-name-screening.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/brand/brand-name-screening.family-aspects.js +42 -0
- package/dist/esm/_core/brand/brand-name-screening.family-aspects.js.map +1 -0
- package/dist/esm/_core/brand/brand-name-screening.schemas.d.ts +310 -0
- package/dist/esm/_core/brand/brand-name-screening.schemas.d.ts.map +1 -0
- package/dist/esm/_core/brand/brand-name-screening.schemas.js +272 -0
- package/dist/esm/_core/brand/brand-name-screening.schemas.js.map +1 -0
- package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts +23 -0
- package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-snapshot.schemas.js +32 -0
- package/dist/esm/_core/brand/brand-snapshot.schemas.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts +10 -0
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +57 -0
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js +89 -0
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts +79 -19
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js +61 -11
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js +18 -2
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts +28 -4
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js +53 -5
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts +24 -4
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js +64 -4
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts +59 -0
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.js +64 -0
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.js.map +1 -1
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts +3 -0
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js +16 -0
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js.map +1 -1
- package/dist/esm/_core/capability-composition/capability-composition-validation.d.ts +7 -1
- package/dist/esm/_core/capability-composition/capability-composition-validation.d.ts.map +1 -1
- package/dist/esm/_core/capability-composition/capability-composition-validation.js +34 -28
- package/dist/esm/_core/capability-composition/capability-composition-validation.js.map +1 -1
- package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts +75 -4
- package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts.map +1 -1
- package/dist/esm/_core/capability-composition/capability-composition.schemas.js +62 -4
- package/dist/esm/_core/capability-composition/capability-composition.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js +7 -0
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/launch-blockers.schemas.d.ts +153 -0
- package/dist/esm/_core/compliance-documents/launch-blockers.schemas.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js +241 -0
- package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js.map +1 -0
- package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.d.ts +8 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.js +19 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.js.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts +61 -3
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js +73 -3
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js +1 -1
- package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan.schemas.js +1 -0
- package/dist/esm/_core/experience-plan/experience-plan.schemas.js.map +1 -1
- package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -1
- package/dist/esm/_core/family-aspects.registry.js +2 -0
- package/dist/esm/_core/family-aspects.registry.js.map +1 -1
- package/dist/esm/_core/index.d.ts +6 -0
- package/dist/esm/_core/index.d.ts.map +1 -1
- package/dist/esm/_core/index.js +6 -0
- package/dist/esm/_core/index.js.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js +5 -1
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/market/market-icp.schemas.d.ts +7 -0
- package/dist/esm/_core/market/market-icp.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-icp.schemas.js +7 -0
- package/dist/esm/_core/market/market-icp.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-language-coverage.d.ts +62 -0
- package/dist/esm/_core/market/market-language-coverage.d.ts.map +1 -0
- package/dist/esm/_core/market/market-language-coverage.js +48 -0
- package/dist/esm/_core/market/market-language-coverage.js.map +1 -0
- package/dist/esm/_core/market/market-snapshot-validation.js +2 -2
- package/dist/esm/_core/market/market-snapshot-validation.js.map +1 -1
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts +63 -2
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js +73 -5
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-line.application-creation.schemas.js +2 -0
- package/dist/esm/application-creation/application-line.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +28 -0
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js +19 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts +1 -0
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js +1 -0
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation.exports.d.ts +7 -0
- package/dist/esm/application-creation.exports.d.ts.map +1 -1
- package/dist/esm/application-creation.exports.js +7 -0
- package/dist/esm/application-creation.exports.js.map +1 -1
- package/dist/esm/assurance/application-risk-signals.derivations.d.ts +20 -0
- package/dist/esm/assurance/application-risk-signals.derivations.d.ts.map +1 -1
- package/dist/esm/assurance/application-risk-signals.derivations.js +81 -0
- package/dist/esm/assurance/application-risk-signals.derivations.js.map +1 -1
- package/dist/esm/assurance/governed-document-release.d.ts +9 -0
- package/dist/esm/assurance/governed-document-release.d.ts.map +1 -1
- package/dist/esm/assurance/governed-document-release.js +9 -0
- package/dist/esm/assurance/governed-document-release.js.map +1 -1
- package/dist/esm/companion-exports.d.ts +10 -1
- package/dist/esm/companion-exports.d.ts.map +1 -1
- package/dist/esm/companion-exports.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts +1 -0
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
- package/package.json +8 -8
- package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.d.ts +0 -24
- package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.d.ts.map +0 -1
- package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js +0 -24
- package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js.map +0 -1
- package/dist/tsconfig.build.tsbuildinfo +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration-plan.family-aspects.js","sourceRoot":"","sources":["../../../../../src/_core/integration-plan/integration-plan.family-aspects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+CAA+C,EAAE,MAAM,sDAAsD,CAAC;AAEvH,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EACL,mCAAmC,EACnC,2BAA2B,EAC3B,oCAAoC,EACpC,2BAA2B,GAC5B,MAAM,4BAA4B,CAAC;AAEpC
|
|
1
|
+
{"version":3,"file":"integration-plan.family-aspects.js","sourceRoot":"","sources":["../../../../../src/_core/integration-plan/integration-plan.family-aspects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+CAA+C,EAAE,MAAM,sDAAsD,CAAC;AAEvH,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EACL,mCAAmC,EACnC,2BAA2B,EAC3B,oCAAoC,EACpC,2BAA2B,GAC5B,MAAM,4BAA4B,CAAC;AAEpC;;;;GAIG;AACH,MAAM,cAAc,GAAG,CAAC,yBAAyB,EAAE,6BAA6B,EAAE,eAAe,EAAE,sBAAsB,EA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;YAC/B,IAAI,EAAE,gBAAgB,CAAC,UAAU;YACjC,UAAU,EAAE,mCAAmC;YAC/C,WAAW,EAAE,SAAS;YACtB,aAAa,EAAE,SAAS;YACxB,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,CAAC;YAC/D,gBAAgB,EAAE,EAAE;SACrB;KACF;CACF,CAAC","sourcesContent":["import { ApplicationSpecificationFamilySemanticSchemaRef } from '../application-specification-family-identity.schemas';\nimport type { FamilyAspectsDeclaration } from '../family-aspects.schemas';\nimport { FamilyAspectKind } from '../family-aspects.schemas';\nimport {\n IntegrationInboundChannelPlanSchema,\n IntegrationMinionPlanSchema,\n IntegrationProviderBindingPlanSchema,\n IntegrationWorkerPlanSchema,\n} from './integration-plan.schemas';\n\n/**\n * The five targets a background surface's `servesRefs` addresses. A build task's `servesRefs` addresses these and\n * more (vision constraints, pricing plans and the brand, #629 #1835 #2221): a background surface serves product\n * scope, never a pricing plan or a brand element.\n */\nconst SERVES_TARGETS = ['requirements.functional', 'requirements.non-functional', 'roadmap.phase', 'feature-drafts.draft', 'vision.success-criterion'] as const;\n\nexport const INTEGRATION_PLAN_FAMILY_ASPECTS: FamilyAspectsDeclaration = {\n schemaRef: ApplicationSpecificationFamilySemanticSchemaRef.INTEGRATION_PLAN,\n aspects: [\n {\n key: 'integration-plan.worker',\n snapshotPath: 'workers',\n kind: FamilyAspectKind.COLLECTION,\n itemSchema: IntegrationWorkerPlanSchema,\n businessKey: 'workerRef',\n headlineField: 'purpose',\n edges: [{ field: 'servesRefs', targetAspects: SERVES_TARGETS }],\n nonEdgeRefFields: {\n jobRefs: 'the routes the worker registers — units of work of the BUILT package, not decided elements',\n },\n },\n {\n key: 'integration-plan.minion',\n snapshotPath: 'minions',\n kind: FamilyAspectKind.COLLECTION,\n itemSchema: IntegrationMinionPlanSchema,\n businessKey: 'minionRef',\n headlineField: 'purpose',\n edges: [\n /* The containment decision, as a link: which decided resources this tick may touch. */\n { field: 'readsResourceRefs', targetAspects: ['domain-plan.resource'] },\n { field: 'writesResourceRefs', targetAspects: ['domain-plan.resource'] },\n { field: 'servesRefs', targetAspects: SERVES_TARGETS },\n ],\n nonEdgeRefFields: {\n behaviorRefs: \"the tick's named behaviours — work of the BUILT package, not decided elements\",\n },\n },\n {\n key: 'integration-plan.provider-binding',\n snapshotPath: 'providerBindings',\n kind: FamilyAspectKind.COLLECTION,\n itemSchema: IntegrationProviderBindingPlanSchema,\n businessKey: 'providerRef',\n headlineField: 'providerRef',\n edges: [],\n nonEdgeRefFields: {\n providerRef: \"an engine provider ref — the engine's own catalogue, not a decided element\",\n },\n },\n {\n key: 'integration-plan.inbound-channel',\n snapshotPath: 'inboundChannels',\n kind: FamilyAspectKind.COLLECTION,\n itemSchema: IntegrationInboundChannelPlanSchema,\n businessKey: 'channel',\n headlineField: 'purpose',\n edges: [{ field: 'servesRefs', targetAspects: SERVES_TARGETS }],\n nonEdgeRefFields: {},\n },\n ],\n};\n"]}
|
|
@@ -30,6 +30,13 @@ export declare enum ICPPriority {
|
|
|
30
30
|
DEFERRED = "DEFERRED",
|
|
31
31
|
ANTI_TARGET = "ANTI_TARGET"
|
|
32
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* The ICP priorities the product COMMITS to serving — the two positioning, documentation and language
|
|
35
|
+
* coverage are written for. An EXPLORATORY, DEFERRED or ANTI_TARGET ICP commits the product to nothing.
|
|
36
|
+
* One named set, read by the snapshot validator (a targeted ICP must be positioned), the capability
|
|
37
|
+
* composition (a documentation portal for targeted organisations) and the market's language coverage.
|
|
38
|
+
*/
|
|
39
|
+
export declare const TARGETED_ICP_PRIORITIES: ReadonlySet<ICPPriority>;
|
|
33
40
|
export declare enum OrgMaturity {
|
|
34
41
|
PRE_FORMATION = "PRE_FORMATION",
|
|
35
42
|
EARLY_STAGE = "EARLY_STAGE",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"market-icp.schemas.d.ts","sourceRoot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BAAmB;CAClC;AAED,oBAAY,eAAe;IACzB,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,aAAa,kBAAkB;IAC/B,WAAW,gBAAgB;IAC3B,aAAa,kBAAkB;CAChC;AAED,oBAAY,eAAe;IACzB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;IACrB,MAAM,WAAW;CAClB;AAED,oBAAY,aAAa;IACvB,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,WAAW,gBAAgB;CAC5B;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,sBAAsB,6DAOzB,CAAC;AACX,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AAoJ1E;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA6E9B,CAAC;AACL,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;;;;;;;;;GAUG;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,uBAAuB,GAAG,eAAe,CAE/E;AACD,+CAA+C"}
|
|
@@ -36,6 +36,13 @@ export var ICPPriority;
|
|
|
36
36
|
ICPPriority["DEFERRED"] = "DEFERRED";
|
|
37
37
|
ICPPriority["ANTI_TARGET"] = "ANTI_TARGET";
|
|
38
38
|
})(ICPPriority || (ICPPriority = {}));
|
|
39
|
+
/**
|
|
40
|
+
* The ICP priorities the product COMMITS to serving — the two positioning, documentation and language
|
|
41
|
+
* coverage are written for. An EXPLORATORY, DEFERRED or ANTI_TARGET ICP commits the product to nothing.
|
|
42
|
+
* One named set, read by the snapshot validator (a targeted ICP must be positioned), the capability
|
|
43
|
+
* composition (a documentation portal for targeted organisations) and the market's language coverage.
|
|
44
|
+
*/
|
|
45
|
+
export const TARGETED_ICP_PRIORITIES = new Set([ICPPriority.CORE, ICPPriority.EXPANSION]);
|
|
39
46
|
export var OrgMaturity;
|
|
40
47
|
(function (OrgMaturity) {
|
|
41
48
|
OrgMaturity["PRE_FORMATION"] = "PRE_FORMATION";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"market-icp.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/market/market-icp.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,6GAA6G;AAC7G,+GAA+G;AAC/G,OAAO,0BAA0B,CAAC;AAElC,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,EACL,cAAc,EACd,sBAAsB,EACtB,aAAa,EACb,oBAAoB,EACpB,cAAc,EACd,oBAAoB,GACrB,MAAM,6BAA6B,CAAC;AAErC;;;;;;;GAOG;AACH,MAAM,CAAN,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,6CAA6B,CAAA;IAC7B,yCAAyB,CAAA;AAC3B,CAAC,EAHW,YAAY,KAAZ,YAAY,QAGvB;AAED;;;;;;;;;;GAUG;AACH,MAAM,CAAN,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,sCAAuB,CAAA;IACvB,0CAA2B,CAAA;IAC3B,oCAAqB,CAAA;IACrB,0CAA2B,CAAA;AAC7B,CAAC,EANW,WAAW,KAAX,WAAW,QAMtB;AAED,MAAM,CAAN,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,8CAA+B,CAAA;IAC/B,0CAA2B,CAAA;IAC3B,gCAAiB,CAAA;IACjB,oCAA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AAoB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAChD,QAAQ,EAAE,4BAA4B,CAAC,QAAQ,EAAE;CAChD,CAAC;IACF;;;;;;;;OAQG;KACF,WAAW,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;IACxB,IAAI,GAAG,CAAC,SAAS,KAAK,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;QACvC,GAAG,CAAC,QAAQ,CAAC;YACX,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC;YACzB,OAAO,EAAE,4BAA4B,GAAG,CAAC,SAAS,2BAA2B,GAAG,CAAC,OAAO,CAAC,IAAI,eAAe;SAC7G,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAC,CAAC;AAgBL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAM,UAAU,eAAe,CAAC,KAA8B;IAC5D,OAAO,qBAAqB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC;AACD,+CAA+C","sourcesContent":["import { z } from 'zod';\n// Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —\n// never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.\nimport '@wildo-ai/zod-decorators';\n\nimport { MarketAuthoredMetadataSchema } from './market-authored-metadata.schemas';\nimport {\n GainEdgeSchema,\n ICPInfluenceEdgeSchema,\n JobEdgeSchema,\n NonEmptyStringSchema,\n PainEdgeSchema,\n MarketEntryRefSchema,\n} from './market-references.schemas';\n\n/**\n * Ideal Customer Profile archetype.\n *\n * `LEGAL_ENTITY` (organisations / teams / accounts) and `INDIVIDUAL`\n * (people) are the two structural shapes a market profile can take.\n * Drives the discriminated `profile` union: `LEGAL_ENTITY` carries\n * firmographics, `INDIVIDUAL` carries demographics + psychographics.\n */\nexport enum ICPArchetype {\n LEGAL_ENTITY = 'LEGAL_ENTITY',\n INDIVIDUAL = 'INDIVIDUAL',\n}\n\n/**\n * Strategic priority an ICP carries in the GTM portfolio.\n *\n * `ANTI_TARGET` deserves special attention — it is the explicit name\n * for segments we want to *repel*, not attract (free riders, wrong\n * stage, abusive use cases). Anti-target ICPs use the same schema and\n * carry the pains/gains we deliberately do *not* serve, so AI surfaces\n * stop trying to please everyone. By contract, anti-target ICPs MUST\n * carry `purposeMix: { adoption: 0, revenue: 0 }` and are excluded by\n * default from FIT scoring aggregations.\n */\nexport enum ICPPriority {\n CORE = 'CORE',\n EXPANSION = 'EXPANSION',\n EXPLORATORY = 'EXPLORATORY',\n DEFERRED = 'DEFERRED',\n ANTI_TARGET = 'ANTI_TARGET',\n}\n\nexport enum OrgMaturity {\n PRE_FORMATION = 'PRE_FORMATION',\n EARLY_STAGE = 'EARLY_STAGE',\n GROWTH = 'GROWTH',\n SCALE_UP = 'SCALE_UP',\n ESTABLISHED = 'ESTABLISHED',\n ENTERPRISE = 'ENTERPRISE',\n}\n\nexport enum FundingStage {\n BOOTSTRAPPED = 'BOOTSTRAPPED',\n PRE_SEED = 'PRE_SEED',\n SEED = 'SEED',\n SERIES_A = 'SERIES_A',\n SERIES_B = 'SERIES_B',\n SERIES_C_PLUS = 'SERIES_C_PLUS',\n PUBLIC = 'PUBLIC',\n NOT_APPLICABLE = 'NOT_APPLICABLE',\n}\n\nexport enum BudgetAuthority {\n NONE = 'NONE',\n INFLUENCE = 'INFLUENCE',\n APPROVE_SMALL = 'APPROVE_SMALL',\n APPROVE_MID = 'APPROVE_MID',\n APPROVE_LARGE = 'APPROVE_LARGE',\n}\n\nexport enum TechProficiency {\n NONE = 'NONE',\n BASIC = 'BASIC',\n INTERMEDIATE = 'INTERMEDIATE',\n ADVANCED = 'ADVANCED',\n EXPERT = 'EXPERT',\n}\n\nexport enum RiskTolerance {\n RISK_AVERSE = 'RISK_AVERSE',\n BALANCED = 'BALANCED',\n RISK_TAKING = 'RISK_TAKING',\n}\n\n/**\n * @wildo_source:part:start market.icp.geographic-targeting facet:layer:specification facet:family:market\n *\n * \"Market localization\" inside the market specification slice is **not**\n * translation of authored content — the spec is English-authored end to\n * end. It is **geographic targeting**: which countries / regions an ICP\n * lives in.\n *\n * Values are constrained to either ISO 3166-1 alpha-2 country codes\n * (exactly 2 uppercase letters: `'DE'`, `'DK'`, `'PL'`, `'FR'`, …) or\n * one of the closed-set region tags below. Free-form country names\n * (`'Germany'`) and ad-hoc 3-5-letter strings are rejected — drives\n * downstream normalization (ad targeting, market sizing, locale-\n * specific landing pages) without a translation table.\n *\n * Translation of LLM-generated marketing copy happens at output time\n * via the market generation CLI's `--output-language` flag; it is\n * never spec-time data.\n */\nexport const RECOGNIZED_REGION_TAGS = [\n 'EMEA',\n 'NAM',\n 'APAC',\n 'LATAM',\n 'MENA',\n 'GLOBAL',\n] as const;\nexport type RecognizedRegionTag = (typeof RECOGNIZED_REGION_TAGS)[number];\n\nconst ISO_COUNTRY_CODE_REGEX = /^[A-Z]{2}$/;\nconst GeographyCodeSchema = z\n .string()\n .trim()\n .refine(\n v =>\n ISO_COUNTRY_CODE_REGEX.test(v) ||\n (RECOGNIZED_REGION_TAGS as readonly string[]).includes(v),\n {\n message: `Geographies must be ISO 3166-1 alpha-2 country codes (exactly 2 uppercase letters, e.g. \"DE\") or one of the recognized region tags: ${RECOGNIZED_REGION_TAGS.join(', ')}.`,\n },\n )\n // Also stated as a DESCRIPTION, not only as a refinement message: `z.toJSONSchema` drops `.refine()`\n // entirely, so a generating model is shown a bare `string` and cannot know the rule. Measured 2026-08-20 —\n // the market-analysis model emitted prose region names here and every entry failed validation.\n .describe(\n `ISO 3166-1 alpha-2 country code (exactly 2 uppercase letters, e.g. \"DE\", \"US\") or one of these exact region tags: ${RECOGNIZED_REGION_TAGS.join(', ')}. Never a country or region NAME.`,\n );\n/** @wildo_source:part:end market.icp.geographic-targeting */\n\n/**\n * Industry / tech-stack tokens — kebab-case codes, not prose.\n * Constrains downstream consumers (ad targeting, segment dashboards)\n * to a stable vocabulary instead of free-form strings.\n */\nconst TaxonomyCodeSchema = z\n .string()\n .trim()\n .regex(/^[a-z0-9-]+$/, {\n message:\n 'Industry / techStack values must be kebab-case codes (e.g. \"fintech\", \"node-js\"), not prose.',\n })\n .describe(\n 'Kebab-case code using only lowercase letters, digits and hyphens (e.g. \"fintech\", \"node-js\", \"project-management\"). Never prose, never spaces, never capitals.',\n );\n\n/**\n * `min <= max` is enforced on every numeric range below via `.refine`.\n * Without this guard, authors can ship `{ min: 50, max: 5 }` (typo /\n * inverted bounds) which silently passes downstream sizing & ad-target\n * normalization.\n */\nconst ORDERED_RANGE_MESSAGE = 'Range `min` must be <= `max`.';\n\nconst FirmographicsSchema = z.object({\n employeeRange: z\n .object({\n min: z.number().int().min(0),\n max: z.number().int().positive(),\n })\n .refine(r => r.min <= r.max, { message: ORDERED_RANGE_MESSAGE })\n .optional(),\n annualRevenueRangeUsd: z\n .object({\n min: z.number().min(0),\n max: z.number().positive(),\n })\n .refine(r => r.min <= r.max, { message: ORDERED_RANGE_MESSAGE })\n .optional(),\n industries: z.array(TaxonomyCodeSchema).default([]),\n geographies: z.array(GeographyCodeSchema).default([]),\n techStack: z.array(TaxonomyCodeSchema).default([]),\n fundingStages: z.array(z.enum(FundingStage).systemEnum('FundingStage')).default([]),\n orgMaturity: z.enum(OrgMaturity).systemEnum('OrgMaturity').optional(),\n});\n\nconst DemographicsSchema = z.object({\n ageRange: z\n .object({\n min: z.number().int().min(0),\n max: z.number().int().min(0),\n })\n .refine(r => r.min <= r.max, { message: ORDERED_RANGE_MESSAGE })\n .optional(),\n geographies: z.array(GeographyCodeSchema).default([]),\n roles: z.array(NonEmptyStringSchema).default([]),\n techProficiency: z.enum(TechProficiency).systemEnum('TechProficiency').optional(),\n budgetAuthority: z.enum(BudgetAuthority).systemEnum('BudgetAuthority').optional(),\n /** Free-form life-stage label (e.g. \"early-career\", \"post-exit\"). */\n lifeStage: NonEmptyStringSchema.optional(),\n});\n\nconst PsychographicsSchema = z.object({\n values: z.array(NonEmptyStringSchema).default([]),\n motivations: z.array(NonEmptyStringSchema).default([]),\n fears: z.array(NonEmptyStringSchema).default([]),\n riskTolerance: z.enum(RiskTolerance).systemEnum('RiskTolerance').optional(),\n});\n\nconst ICPLegalEntityProfileSchema = z.object({\n kind: z.literal(ICPArchetype.LEGAL_ENTITY).systemEnum('ICPArchetype'),\n firmographics: FirmographicsSchema,\n});\n\nconst ICPIndividualProfileSchema = z.object({\n kind: z.literal(ICPArchetype.INDIVIDUAL).systemEnum('ICPArchetype'),\n demographics: DemographicsSchema,\n psychographics: PsychographicsSchema,\n});\n\nconst ICPProfileSchema = z.discriminatedUnion('kind', [\n ICPLegalEntityProfileSchema,\n ICPIndividualProfileSchema,\n]);\n\n/**\n * `purposeMix` weights (0..10 each, both can be non-zero\n * simultaneously — the model is two-axis, not either/or).\n *\n * - `adoption` — value of the ICP for evangelism / product fit / PLG\n * reach (a free user who imports the team is adoption-heavy).\n * - `revenue` — direct contribution to ARR / billable seats.\n *\n * `0` means \"this axis carries no weight for this ICP\". For\n * `priority: ANTI_TARGET` ICPs, BOTH axes MUST be `0` — the schema\n * accepts the value, but the snapshot validator rejects any other\n * combination as `INVALID_ANTI_TARGET_PURPOSE_MIX`.\n */\nconst PurposeMixSchema = z.object({\n adoption: z\n .number()\n .int()\n .min(0)\n .max(10)\n .describe('Integer weight from 0 to 10 inclusive. NOT a fraction, percentage or 0..1 score.'),\n revenue: z\n .number()\n .int()\n .min(0)\n .max(10)\n .describe('Integer weight from 0 to 10 inclusive. NOT a fraction, percentage or 0..1 score.'),\n});\n\n/**\n * Reserved sizing slot for TAM/SAM/SOM authoring. Stays loose\n * (`z.unknown()`) until a real consumer needs it (deferred per the\n * plan's §16). Reserving the field name now prevents schema churn\n * later.\n */\nconst ICPSizingSchema = z.object({\n tam: z.unknown().optional(),\n sam: z.unknown().optional(),\n som: z.unknown().optional(),\n derivation: z.unknown().optional(),\n});\n\n/**\n * @wildo_source:part:start market.icp.config facet:layer:specification facet:family:market\n *\n * Ideal Customer Profile — the central market-targeting record.\n *\n * Single entity covers both organisations and individuals through the\n * `archetype` discriminant + the discriminated `profile` union. The\n * deliberate two-axis weighting (`purposeMix.adoption` × `revenue`)\n * replaces the brittle \"adoption-ICPs vs revenue-ICPs\" split — a\n * champion CTO can be `{ adoption: 9, revenue: 7 }` without\n * duplication.\n *\n * Cross-references are flat strings (`personaRef`, `painRef`,\n * `gainRef`, `jobRef`, `channelRef`, `triggerRef`, `alternativeRef`,\n * `proofRef`, `objectionRef`, `productRef`, `voiceRef`). The\n * `influences[]` graph models real GTM dynamics (a solo PM\n * evangelizing inside their team) so seeding/ripple campaigns can\n * be derived deterministically.\n *\n * Geographic targeting lives in `profile.firmographics.geographies`\n * or `profile.demographics.geographies` — that is the only kind of\n * \"market localization\" the spec models (D15).\n */\nexport const MarketICPConfigSchema = z\n .object({\n /** Stable kebab-case ref (e.g. `'icp-small-team-pmo'`). */\n ref: MarketEntryRefSchema,\n /** Display name for authoring tools and prompt blocks. */\n name: NonEmptyStringSchema,\n archetype: z.enum(ICPArchetype).systemEnum('ICPArchetype'),\n purposeMix: PurposeMixSchema,\n priority: z.enum(ICPPriority).systemEnum('ICPPriority'),\n profile: ICPProfileSchema,\n /** Personas that participate in this ICP's buying group / decision. */\n buyingGroup: z\n .array(z.object({ personaRef: NonEmptyStringSchema }))\n .default([]),\n jobs: z.array(JobEdgeSchema).default([]),\n pains: z.array(PainEdgeSchema).default([]),\n gains: z.array(GainEdgeSchema).default([]),\n /**\n * `MarketChannelRef[]` — channels through which this ICP is reached.\n * Resolved against `snapshot.channels[]`; orphans flagged as\n * `ORPHAN_REF` (ERROR) by `validateMarketSnapshot`.\n */\n channelRefs: z.array(NonEmptyStringSchema).default([]),\n /**\n * `MarketTriggerRef[]` — triggers that create buying intent for\n * this ICP. Resolved against `snapshot.triggers[]`.\n */\n triggerRefs: z.array(NonEmptyStringSchema).default([]),\n /**\n * `MarketAlternativeRef[]` — alternatives this ICP currently chooses\n * over us. Resolved against `snapshot.alternatives[]`.\n */\n alternativeRefs: z.array(NonEmptyStringSchema).default([]),\n /**\n * `MarketProofRef[]` — proofs that resonate with this ICP. Resolved\n * against `snapshot.proofs[]`.\n */\n proofRefs: z.array(NonEmptyStringSchema).default([]),\n /**\n * `MarketObjectionRef[]` — objections raised by this ICP. Resolved\n * against `snapshot.objections[]`.\n */\n objectionRefs: z.array(NonEmptyStringSchema).default([]),\n /**\n * `ProductSpecification` refs (cross-family) the ICP should primarily\n * land on. Empty array = no opinion. Drives upsell/cross-sell\n * narratives and the website's \"which plan for whom\" routing.\n */\n recommendedProductRefs: z.array(NonEmptyStringSchema).default([]),\n /** Ordered next-product path (upsell / cross-sell). */\n upsellPathProductRefs: z.array(NonEmptyStringSchema).default([]),\n /** ICP-to-ICP influence graph (mutual influence is real). */\n influences: z.array(ICPInfluenceEdgeSchema).default([]),\n /** Optional `ToneOfVoice` ref to default messaging to this ICP. */\n preferredVoiceRef: NonEmptyStringSchema.optional(),\n sizing: ICPSizingSchema.optional(),\n /** Free-form authoring notes (rationale, open questions). */\n notes: z.array(NonEmptyStringSchema).default([]),\n authored: MarketAuthoredMetadataSchema.optional(),\n })\n /**\n * Cross-field invariant: `archetype` and `profile.kind` MUST agree.\n * Catches authoring drift where the discriminant is changed without\n * updating the discriminated `profile` (or vice versa). Without this\n * refinement, a `LEGAL_ENTITY` archetype with an `INDIVIDUAL` profile\n * silently parses (the discriminated union picks the right variant\n * from `profile.kind`) but downstream consumers that switch on\n * `archetype` will branch incorrectly.\n */\n .superRefine((icp, ctx) => {\n if (icp.archetype !== icp.profile.kind) {\n ctx.addIssue({\n code: 'custom',\n path: ['profile', 'kind'],\n message: `MarketICP \\`archetype\\` (${icp.archetype}) and \\`profile.kind\\` (${icp.profile.kind}) must agree.`,\n });\n }\n });\nexport type MarketICPConfig = z.infer<typeof MarketICPConfigSchema>;\n\n/**\n * Authoring (**input**) shape of {@link MarketICPConfigSchema} — what you type at\n * a declaration site, before parsing.\n *\n * Every field carrying a `.default([])` (`jobs`, `pains`, `gains`, `channelRefs`,\n * `triggerRefs`, `alternativeRefs`, `proofRefs`, `objectionRefs`,\n * `recommendedProductRefs`, `upsellPathProductRefs`, `influences`, `notes`) is\n * OPTIONAL here and GUARANTEED on {@link MarketICPConfig}. Pair this type with\n * {@link marketIcpConfig}; do not annotate a raw object literal with it, or the\n * defaults never materialize.\n */\nexport type MarketICPConfigAuthored = z.input<typeof MarketICPConfigSchema>;\n\n/**\n * Author a {@link MarketICPConfig}. **Use this instead of annotating an object\n * literal with `MarketICPConfig`.**\n *\n * WHY THIS FACTORY EXISTS\n * Authored ICPs are consumed on two different paths, and only one of them parses:\n *\n * - The application-creation runtime parses the whole market specification\n * (`MarketSnapshotSchema.parse`), so defaults materialize there.\n * - Authoring helpers such as `inheritFrom()` are called DIRECTLY on the declared\n * constant at module load, with no parse in between — and they spread the\n * collections (`[...icp.jobs]`) without a guard.\n *\n * That second path is why the defaulted collections could not simply be made\n * optional: an omitted `jobs` would reach `inheritFrom` as `undefined` and throw\n * `TypeError: icp.jobs is not iterable` the moment the module is imported. The\n * previous design avoided that by deriving the authoring type from `z.infer` (the\n * OUTPUT shape), which forced authors to hand-write every empty array — safe, but\n * pure boilerplate.\n *\n * Parsing at the declaration site resolves both: the defaults become real before\n * anything can observe the object, so `inheritFrom` is safe even when the author\n * omits a collection, and the self-contained `archetype` / `profile.kind`\n * refinement now fails fast at import time instead of at snapshot assembly.\n *\n * @example\n * export const smallProductTeamIcp = marketIcpConfig({\n * ref: 'icp-small-product-team',\n * archetype: MarketICPArchetype.LEGAL_ENTITY,\n * profile: { kind: MarketICPArchetype.LEGAL_ENTITY, ... },\n * // jobs / pains / gains / *Refs omitted — each defaults to []\n * });\n */\nexport function marketIcpConfig(input: MarketICPConfigAuthored): MarketICPConfig {\n return MarketICPConfigSchema.parse(input);\n}\n/** @wildo_source:part:end market.icp.config */\n"]}
|
|
1
|
+
{"version":3,"file":"market-icp.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/market/market-icp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ACd,IAAI,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC;YACzB,OAAO,EAAE,4BAA4B,GAAG,CAAC,SAAS,2BAA2B,GAAG,CAAC,OAAO,CAAC,IAAI,eAAe;SAC7G,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAC,CAAC;AAgBL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAM,UAAU,eAAe,CAAC,KAA8B;IAC5D,OAAO,qBAAqB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC;AACD,+CAA+C","sourcesContent":["import { z } from 'zod';\n// Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —\n// never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.\nimport '@wildo-ai/zod-decorators';\n\nimport { MarketAuthoredMetadataSchema } from './market-authored-metadata.schemas';\nimport {\n GainEdgeSchema,\n ICPInfluenceEdgeSchema,\n JobEdgeSchema,\n NonEmptyStringSchema,\n PainEdgeSchema,\n MarketEntryRefSchema,\n} from './market-references.schemas';\n\n/**\n * Ideal Customer Profile archetype.\n *\n * `LEGAL_ENTITY` (organisations / teams / accounts) and `INDIVIDUAL`\n * (people) are the two structural shapes a market profile can take.\n * Drives the discriminated `profile` union: `LEGAL_ENTITY` carries\n * firmographics, `INDIVIDUAL` carries demographics + psychographics.\n */\nexport enum ICPArchetype {\n LEGAL_ENTITY = 'LEGAL_ENTITY',\n INDIVIDUAL = 'INDIVIDUAL',\n}\n\n/**\n * Strategic priority an ICP carries in the GTM portfolio.\n *\n * `ANTI_TARGET` deserves special attention — it is the explicit name\n * for segments we want to *repel*, not attract (free riders, wrong\n * stage, abusive use cases). Anti-target ICPs use the same schema and\n * carry the pains/gains we deliberately do *not* serve, so AI surfaces\n * stop trying to please everyone. By contract, anti-target ICPs MUST\n * carry `purposeMix: { adoption: 0, revenue: 0 }` and are excluded by\n * default from FIT scoring aggregations.\n */\nexport enum ICPPriority {\n CORE = 'CORE',\n EXPANSION = 'EXPANSION',\n EXPLORATORY = 'EXPLORATORY',\n DEFERRED = 'DEFERRED',\n ANTI_TARGET = 'ANTI_TARGET',\n}\n\n/**\n * The ICP priorities the product COMMITS to serving — the two positioning, documentation and language\n * coverage are written for. An EXPLORATORY, DEFERRED or ANTI_TARGET ICP commits the product to nothing.\n * One named set, read by the snapshot validator (a targeted ICP must be positioned), the capability\n * composition (a documentation portal for targeted organisations) and the market's language coverage.\n */\nexport const TARGETED_ICP_PRIORITIES: ReadonlySet<ICPPriority> = new Set([ICPPriority.CORE, ICPPriority.EXPANSION]);\n\nexport enum OrgMaturity {\n PRE_FORMATION = 'PRE_FORMATION',\n EARLY_STAGE = 'EARLY_STAGE',\n GROWTH = 'GROWTH',\n SCALE_UP = 'SCALE_UP',\n ESTABLISHED = 'ESTABLISHED',\n ENTERPRISE = 'ENTERPRISE',\n}\n\nexport enum FundingStage {\n BOOTSTRAPPED = 'BOOTSTRAPPED',\n PRE_SEED = 'PRE_SEED',\n SEED = 'SEED',\n SERIES_A = 'SERIES_A',\n SERIES_B = 'SERIES_B',\n SERIES_C_PLUS = 'SERIES_C_PLUS',\n PUBLIC = 'PUBLIC',\n NOT_APPLICABLE = 'NOT_APPLICABLE',\n}\n\nexport enum BudgetAuthority {\n NONE = 'NONE',\n INFLUENCE = 'INFLUENCE',\n APPROVE_SMALL = 'APPROVE_SMALL',\n APPROVE_MID = 'APPROVE_MID',\n APPROVE_LARGE = 'APPROVE_LARGE',\n}\n\nexport enum TechProficiency {\n NONE = 'NONE',\n BASIC = 'BASIC',\n INTERMEDIATE = 'INTERMEDIATE',\n ADVANCED = 'ADVANCED',\n EXPERT = 'EXPERT',\n}\n\nexport enum RiskTolerance {\n RISK_AVERSE = 'RISK_AVERSE',\n BALANCED = 'BALANCED',\n RISK_TAKING = 'RISK_TAKING',\n}\n\n/**\n * @wildo_source:part:start market.icp.geographic-targeting facet:layer:specification facet:family:market\n *\n * \"Market localization\" inside the market specification slice is **not**\n * translation of authored content — the spec is English-authored end to\n * end. It is **geographic targeting**: which countries / regions an ICP\n * lives in.\n *\n * Values are constrained to either ISO 3166-1 alpha-2 country codes\n * (exactly 2 uppercase letters: `'DE'`, `'DK'`, `'PL'`, `'FR'`, …) or\n * one of the closed-set region tags below. Free-form country names\n * (`'Germany'`) and ad-hoc 3-5-letter strings are rejected — drives\n * downstream normalization (ad targeting, market sizing, locale-\n * specific landing pages) without a translation table.\n *\n * Translation of LLM-generated marketing copy happens at output time\n * via the market generation CLI's `--output-language` flag; it is\n * never spec-time data.\n */\nexport const RECOGNIZED_REGION_TAGS = [\n 'EMEA',\n 'NAM',\n 'APAC',\n 'LATAM',\n 'MENA',\n 'GLOBAL',\n] as const;\nexport type RecognizedRegionTag = (typeof RECOGNIZED_REGION_TAGS)[number];\n\nconst ISO_COUNTRY_CODE_REGEX = /^[A-Z]{2}$/;\nconst GeographyCodeSchema = z\n .string()\n .trim()\n .refine(\n v =>\n ISO_COUNTRY_CODE_REGEX.test(v) ||\n (RECOGNIZED_REGION_TAGS as readonly string[]).includes(v),\n {\n message: `Geographies must be ISO 3166-1 alpha-2 country codes (exactly 2 uppercase letters, e.g. \"DE\") or one of the recognized region tags: ${RECOGNIZED_REGION_TAGS.join(', ')}.`,\n },\n )\n // Also stated as a DESCRIPTION, not only as a refinement message: `z.toJSONSchema` drops `.refine()`\n // entirely, so a generating model is shown a bare `string` and cannot know the rule. Measured 2026-08-20 —\n // the market-analysis model emitted prose region names here and every entry failed validation.\n .describe(\n `ISO 3166-1 alpha-2 country code (exactly 2 uppercase letters, e.g. \"DE\", \"US\") or one of these exact region tags: ${RECOGNIZED_REGION_TAGS.join(', ')}. Never a country or region NAME.`,\n );\n/** @wildo_source:part:end market.icp.geographic-targeting */\n\n/**\n * Industry / tech-stack tokens — kebab-case codes, not prose.\n * Constrains downstream consumers (ad targeting, segment dashboards)\n * to a stable vocabulary instead of free-form strings.\n */\nconst TaxonomyCodeSchema = z\n .string()\n .trim()\n .regex(/^[a-z0-9-]+$/, {\n message:\n 'Industry / techStack values must be kebab-case codes (e.g. \"fintech\", \"node-js\"), not prose.',\n })\n .describe(\n 'Kebab-case code using only lowercase letters, digits and hyphens (e.g. \"fintech\", \"node-js\", \"project-management\"). Never prose, never spaces, never capitals.',\n );\n\n/**\n * `min <= max` is enforced on every numeric range below via `.refine`.\n * Without this guard, authors can ship `{ min: 50, max: 5 }` (typo /\n * inverted bounds) which silently passes downstream sizing & ad-target\n * normalization.\n */\nconst ORDERED_RANGE_MESSAGE = 'Range `min` must be <= `max`.';\n\nconst FirmographicsSchema = z.object({\n employeeRange: z\n .object({\n min: z.number().int().min(0),\n max: z.number().int().positive(),\n })\n .refine(r => r.min <= r.max, { message: ORDERED_RANGE_MESSAGE })\n .optional(),\n annualRevenueRangeUsd: z\n .object({\n min: z.number().min(0),\n max: z.number().positive(),\n })\n .refine(r => r.min <= r.max, { message: ORDERED_RANGE_MESSAGE })\n .optional(),\n industries: z.array(TaxonomyCodeSchema).default([]),\n geographies: z.array(GeographyCodeSchema).default([]),\n techStack: z.array(TaxonomyCodeSchema).default([]),\n fundingStages: z.array(z.enum(FundingStage).systemEnum('FundingStage')).default([]),\n orgMaturity: z.enum(OrgMaturity).systemEnum('OrgMaturity').optional(),\n});\n\nconst DemographicsSchema = z.object({\n ageRange: z\n .object({\n min: z.number().int().min(0),\n max: z.number().int().min(0),\n })\n .refine(r => r.min <= r.max, { message: ORDERED_RANGE_MESSAGE })\n .optional(),\n geographies: z.array(GeographyCodeSchema).default([]),\n roles: z.array(NonEmptyStringSchema).default([]),\n techProficiency: z.enum(TechProficiency).systemEnum('TechProficiency').optional(),\n budgetAuthority: z.enum(BudgetAuthority).systemEnum('BudgetAuthority').optional(),\n /** Free-form life-stage label (e.g. \"early-career\", \"post-exit\"). */\n lifeStage: NonEmptyStringSchema.optional(),\n});\n\nconst PsychographicsSchema = z.object({\n values: z.array(NonEmptyStringSchema).default([]),\n motivations: z.array(NonEmptyStringSchema).default([]),\n fears: z.array(NonEmptyStringSchema).default([]),\n riskTolerance: z.enum(RiskTolerance).systemEnum('RiskTolerance').optional(),\n});\n\nconst ICPLegalEntityProfileSchema = z.object({\n kind: z.literal(ICPArchetype.LEGAL_ENTITY).systemEnum('ICPArchetype'),\n firmographics: FirmographicsSchema,\n});\n\nconst ICPIndividualProfileSchema = z.object({\n kind: z.literal(ICPArchetype.INDIVIDUAL).systemEnum('ICPArchetype'),\n demographics: DemographicsSchema,\n psychographics: PsychographicsSchema,\n});\n\nconst ICPProfileSchema = z.discriminatedUnion('kind', [\n ICPLegalEntityProfileSchema,\n ICPIndividualProfileSchema,\n]);\n\n/**\n * `purposeMix` weights (0..10 each, both can be non-zero\n * simultaneously — the model is two-axis, not either/or).\n *\n * - `adoption` — value of the ICP for evangelism / product fit / PLG\n * reach (a free user who imports the team is adoption-heavy).\n * - `revenue` — direct contribution to ARR / billable seats.\n *\n * `0` means \"this axis carries no weight for this ICP\". For\n * `priority: ANTI_TARGET` ICPs, BOTH axes MUST be `0` — the schema\n * accepts the value, but the snapshot validator rejects any other\n * combination as `INVALID_ANTI_TARGET_PURPOSE_MIX`.\n */\nconst PurposeMixSchema = z.object({\n adoption: z\n .number()\n .int()\n .min(0)\n .max(10)\n .describe('Integer weight from 0 to 10 inclusive. NOT a fraction, percentage or 0..1 score.'),\n revenue: z\n .number()\n .int()\n .min(0)\n .max(10)\n .describe('Integer weight from 0 to 10 inclusive. NOT a fraction, percentage or 0..1 score.'),\n});\n\n/**\n * Reserved sizing slot for TAM/SAM/SOM authoring. Stays loose\n * (`z.unknown()`) until a real consumer needs it (deferred per the\n * plan's §16). Reserving the field name now prevents schema churn\n * later.\n */\nconst ICPSizingSchema = z.object({\n tam: z.unknown().optional(),\n sam: z.unknown().optional(),\n som: z.unknown().optional(),\n derivation: z.unknown().optional(),\n});\n\n/**\n * @wildo_source:part:start market.icp.config facet:layer:specification facet:family:market\n *\n * Ideal Customer Profile — the central market-targeting record.\n *\n * Single entity covers both organisations and individuals through the\n * `archetype` discriminant + the discriminated `profile` union. The\n * deliberate two-axis weighting (`purposeMix.adoption` × `revenue`)\n * replaces the brittle \"adoption-ICPs vs revenue-ICPs\" split — a\n * champion CTO can be `{ adoption: 9, revenue: 7 }` without\n * duplication.\n *\n * Cross-references are flat strings (`personaRef`, `painRef`,\n * `gainRef`, `jobRef`, `channelRef`, `triggerRef`, `alternativeRef`,\n * `proofRef`, `objectionRef`, `productRef`, `voiceRef`). The\n * `influences[]` graph models real GTM dynamics (a solo PM\n * evangelizing inside their team) so seeding/ripple campaigns can\n * be derived deterministically.\n *\n * Geographic targeting lives in `profile.firmographics.geographies`\n * or `profile.demographics.geographies` — that is the only kind of\n * \"market localization\" the spec models (D15).\n */\nexport const MarketICPConfigSchema = z\n .object({\n /** Stable kebab-case ref (e.g. `'icp-small-team-pmo'`). */\n ref: MarketEntryRefSchema,\n /** Display name for authoring tools and prompt blocks. */\n name: NonEmptyStringSchema,\n archetype: z.enum(ICPArchetype).systemEnum('ICPArchetype'),\n purposeMix: PurposeMixSchema,\n priority: z.enum(ICPPriority).systemEnum('ICPPriority'),\n profile: ICPProfileSchema,\n /** Personas that participate in this ICP's buying group / decision. */\n buyingGroup: z\n .array(z.object({ personaRef: NonEmptyStringSchema }))\n .default([]),\n jobs: z.array(JobEdgeSchema).default([]),\n pains: z.array(PainEdgeSchema).default([]),\n gains: z.array(GainEdgeSchema).default([]),\n /**\n * `MarketChannelRef[]` — channels through which this ICP is reached.\n * Resolved against `snapshot.channels[]`; orphans flagged as\n * `ORPHAN_REF` (ERROR) by `validateMarketSnapshot`.\n */\n channelRefs: z.array(NonEmptyStringSchema).default([]),\n /**\n * `MarketTriggerRef[]` — triggers that create buying intent for\n * this ICP. Resolved against `snapshot.triggers[]`.\n */\n triggerRefs: z.array(NonEmptyStringSchema).default([]),\n /**\n * `MarketAlternativeRef[]` — alternatives this ICP currently chooses\n * over us. Resolved against `snapshot.alternatives[]`.\n */\n alternativeRefs: z.array(NonEmptyStringSchema).default([]),\n /**\n * `MarketProofRef[]` — proofs that resonate with this ICP. Resolved\n * against `snapshot.proofs[]`.\n */\n proofRefs: z.array(NonEmptyStringSchema).default([]),\n /**\n * `MarketObjectionRef[]` — objections raised by this ICP. Resolved\n * against `snapshot.objections[]`.\n */\n objectionRefs: z.array(NonEmptyStringSchema).default([]),\n /**\n * `ProductSpecification` refs (cross-family) the ICP should primarily\n * land on. Empty array = no opinion. Drives upsell/cross-sell\n * narratives and the website's \"which plan for whom\" routing.\n */\n recommendedProductRefs: z.array(NonEmptyStringSchema).default([]),\n /** Ordered next-product path (upsell / cross-sell). */\n upsellPathProductRefs: z.array(NonEmptyStringSchema).default([]),\n /** ICP-to-ICP influence graph (mutual influence is real). */\n influences: z.array(ICPInfluenceEdgeSchema).default([]),\n /** Optional `ToneOfVoice` ref to default messaging to this ICP. */\n preferredVoiceRef: NonEmptyStringSchema.optional(),\n sizing: ICPSizingSchema.optional(),\n /** Free-form authoring notes (rationale, open questions). */\n notes: z.array(NonEmptyStringSchema).default([]),\n authored: MarketAuthoredMetadataSchema.optional(),\n })\n /**\n * Cross-field invariant: `archetype` and `profile.kind` MUST agree.\n * Catches authoring drift where the discriminant is changed without\n * updating the discriminated `profile` (or vice versa). Without this\n * refinement, a `LEGAL_ENTITY` archetype with an `INDIVIDUAL` profile\n * silently parses (the discriminated union picks the right variant\n * from `profile.kind`) but downstream consumers that switch on\n * `archetype` will branch incorrectly.\n */\n .superRefine((icp, ctx) => {\n if (icp.archetype !== icp.profile.kind) {\n ctx.addIssue({\n code: 'custom',\n path: ['profile', 'kind'],\n message: `MarketICP \\`archetype\\` (${icp.archetype}) and \\`profile.kind\\` (${icp.profile.kind}) must agree.`,\n });\n }\n });\nexport type MarketICPConfig = z.infer<typeof MarketICPConfigSchema>;\n\n/**\n * Authoring (**input**) shape of {@link MarketICPConfigSchema} — what you type at\n * a declaration site, before parsing.\n *\n * Every field carrying a `.default([])` (`jobs`, `pains`, `gains`, `channelRefs`,\n * `triggerRefs`, `alternativeRefs`, `proofRefs`, `objectionRefs`,\n * `recommendedProductRefs`, `upsellPathProductRefs`, `influences`, `notes`) is\n * OPTIONAL here and GUARANTEED on {@link MarketICPConfig}. Pair this type with\n * {@link marketIcpConfig}; do not annotate a raw object literal with it, or the\n * defaults never materialize.\n */\nexport type MarketICPConfigAuthored = z.input<typeof MarketICPConfigSchema>;\n\n/**\n * Author a {@link MarketICPConfig}. **Use this instead of annotating an object\n * literal with `MarketICPConfig`.**\n *\n * WHY THIS FACTORY EXISTS\n * Authored ICPs are consumed on two different paths, and only one of them parses:\n *\n * - The application-creation runtime parses the whole market specification\n * (`MarketSnapshotSchema.parse`), so defaults materialize there.\n * - Authoring helpers such as `inheritFrom()` are called DIRECTLY on the declared\n * constant at module load, with no parse in between — and they spread the\n * collections (`[...icp.jobs]`) without a guard.\n *\n * That second path is why the defaulted collections could not simply be made\n * optional: an omitted `jobs` would reach `inheritFrom` as `undefined` and throw\n * `TypeError: icp.jobs is not iterable` the moment the module is imported. The\n * previous design avoided that by deriving the authoring type from `z.infer` (the\n * OUTPUT shape), which forced authors to hand-write every empty array — safe, but\n * pure boilerplate.\n *\n * Parsing at the declaration site resolves both: the defaults become real before\n * anything can observe the object, so `inheritFrom` is safe even when the author\n * omits a collection, and the self-contained `archetype` / `profile.kind`\n * refinement now fails fast at import time instead of at snapshot assembly.\n *\n * @example\n * export const smallProductTeamIcp = marketIcpConfig({\n * ref: 'icp-small-product-team',\n * archetype: MarketICPArchetype.LEGAL_ENTITY,\n * profile: { kind: MarketICPArchetype.LEGAL_ENTITY, ... },\n * // jobs / pains / gains / *Refs omitted — each defaults to []\n * });\n */\nexport function marketIcpConfig(input: MarketICPConfigAuthored): MarketICPConfig {\n return MarketICPConfigSchema.parse(input);\n}\n/** @wildo_source:part:end market.icp.config */\n"]}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { type AvailableLanguage } from '@wildo-ai/presets-components-models';
|
|
2
|
+
import type { MarketSnapshot } from './market-snapshot.schemas';
|
|
3
|
+
/**
|
|
4
|
+
* WHICH languages the market an application targets speaks, and which of them the application does not
|
|
5
|
+
* serve — derived from the market snapshot's ICP geographies, never asked.
|
|
6
|
+
*
|
|
7
|
+
* ## Why this exists
|
|
8
|
+
*
|
|
9
|
+
* Measured on a real first run (2026-10-01, an EU CRM): the market snapshot targeted Germany and France
|
|
10
|
+
* (CORE) and Italy and Spain (EXPANSION) while the application's configuration served English alone —
|
|
11
|
+
* the scaffold default, which nobody had decided for this application. Nothing compared the two, so the
|
|
12
|
+
* capability composition could only decline a second website locale and the coherence report said
|
|
13
|
+
* nothing. A market the product cannot speak to is a contradiction between two declarations, and both
|
|
14
|
+
* are typed: ISO country codes on the ICPs, `appPreferences.languages` in the configuration.
|
|
15
|
+
*
|
|
16
|
+
* ## The rules, and why each is the one it is
|
|
17
|
+
*
|
|
18
|
+
* - **Targeted means CORE or EXPANSION.** The two priorities positioning and documentation are written
|
|
19
|
+
* for; an EXPLORATORY, DEFERRED or ANTI_TARGET ICP commits the product to nothing. The same set the
|
|
20
|
+
* capability composition reads for its documentation-portal decision.
|
|
21
|
+
* - **A country's languages come from {@link COUNTRY_INFO_MAP}**, the framework's one country table, so
|
|
22
|
+
* there is no second country → language list to drift from it.
|
|
23
|
+
* - **A country is SERVED when the application speaks ANY of its languages.** Belgium is reachable in
|
|
24
|
+
* French, Switzerland in German, Ireland in English; demanding every official language would ask an
|
|
25
|
+
* Irish market for an Irish-language product, which is not how business there is conducted.
|
|
26
|
+
* - **An unserved country asks for its FIRST listed language** — the table's primary for that country.
|
|
27
|
+
* One language per unserved country is the smallest change that makes it reachable.
|
|
28
|
+
* - **Languages compare on their BASE subtag.** An application serving `de` serves a `de-AT` market,
|
|
29
|
+
* and one serving `en-GB` serves an `en` market: a regional variant is a refinement, not a gap.
|
|
30
|
+
* - **A region tag (`EMEA`, `GLOBAL`, …) names no language**, and a country the table does not carry
|
|
31
|
+
* cannot be read either. Both are returned in `unmappedGeographies` rather than guessed at, and the
|
|
32
|
+
* coherence report names them beside a language gap, so a reader sees what the comparison could not
|
|
33
|
+
* see. They are never a gap on their own: a market described by region has made no language claim.
|
|
34
|
+
*/
|
|
35
|
+
export interface MarketLanguageCoverage {
|
|
36
|
+
/** Every country a targeted ICP names, in first-seen order. */
|
|
37
|
+
readonly targetedCountries: readonly string[];
|
|
38
|
+
/** The targeted countries the application speaks none of the languages of, with the ICPs that target each. */
|
|
39
|
+
readonly unservedCountries: readonly MarketUnservedCountry[];
|
|
40
|
+
/**
|
|
41
|
+
* The languages the application would need to add to reach every unserved country — the first listed
|
|
42
|
+
* language of each, de-duplicated, in first-seen order. Empty when every targeted country is served.
|
|
43
|
+
*/
|
|
44
|
+
readonly languagesToServe: readonly AvailableLanguage[];
|
|
45
|
+
/** Geographies that name no language: region tags, and countries the country table does not carry. */
|
|
46
|
+
readonly unmappedGeographies: readonly string[];
|
|
47
|
+
}
|
|
48
|
+
export interface MarketUnservedCountry {
|
|
49
|
+
readonly country: string;
|
|
50
|
+
/** The country's languages, from the country table, primary first. */
|
|
51
|
+
readonly languages: readonly AvailableLanguage[];
|
|
52
|
+
/** The targeted ICPs that name this country. */
|
|
53
|
+
readonly icpRefs: readonly string[];
|
|
54
|
+
}
|
|
55
|
+
/** `de-AT` → `de`. The comparison key for "does the application speak this language". */
|
|
56
|
+
export declare function baseLanguageSubtag(language: string): string;
|
|
57
|
+
/**
|
|
58
|
+
* Measure the market's languages against the languages the application serves. Pure; total over the
|
|
59
|
+
* targeted ICPs' geographies — every one is either a targeted country (served or not) or unmapped.
|
|
60
|
+
*/
|
|
61
|
+
export declare function measureMarketLanguageCoverage(market: MarketSnapshot, servedLanguages: readonly string[]): MarketLanguageCoverage;
|
|
62
|
+
//# sourceMappingURL=market-language-coverage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"market-language-coverage.d.ts","sourceRoot":"","sources":["../../../../../src/_core/market/market-language-coverage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,KAAK,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAGjH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAEhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,WAAW,sBAAsB;IACrC,+DAA+D;IAC/D,QAAQ,CAAC,iBAAiB,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9C,8GAA8G;IAC9G,QAAQ,CAAC,iBAAiB,EAAE,SAAS,qBAAqB,EAAE,CAAC;IAC7D;;;OAGG;IACH,QAAQ,CAAC,gBAAgB,EAAE,SAAS,iBAAiB,EAAE,CAAC;IACxD,sGAAsG;IACtG,QAAQ,CAAC,mBAAmB,EAAE,SAAS,MAAM,EAAE,CAAC;CACjD;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,sEAAsE;IACtE,QAAQ,CAAC,SAAS,EAAE,SAAS,iBAAiB,EAAE,CAAC;IACjD,gDAAgD;IAChD,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CACrC;AAED,yFAAyF;AACzF,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAE3D;AAQD;;;GAGG;AACH,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,cAAc,EAAE,eAAe,EAAE,SAAS,MAAM,EAAE,GAAG,sBAAsB,CA2BhI"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { AvailableCountry, COUNTRY_INFO_MAP } from '@wildo-ai/presets-components-models';
|
|
2
|
+
import { ICPArchetype, TARGETED_ICP_PRIORITIES } from './market-icp.schemas.js';
|
|
3
|
+
/** `de-AT` → `de`. The comparison key for "does the application speak this language". */
|
|
4
|
+
export function baseLanguageSubtag(language) {
|
|
5
|
+
return language.split('-')[0].toLowerCase();
|
|
6
|
+
}
|
|
7
|
+
function icpGeographies(icp) {
|
|
8
|
+
return icp.profile.kind === ICPArchetype.LEGAL_ENTITY ? icp.profile.firmographics.geographies : icp.profile.demographics.geographies;
|
|
9
|
+
}
|
|
10
|
+
const KNOWN_COUNTRIES = new Set(Object.values(AvailableCountry));
|
|
11
|
+
/**
|
|
12
|
+
* Measure the market's languages against the languages the application serves. Pure; total over the
|
|
13
|
+
* targeted ICPs' geographies — every one is either a targeted country (served or not) or unmapped.
|
|
14
|
+
*/
|
|
15
|
+
export function measureMarketLanguageCoverage(market, servedLanguages) {
|
|
16
|
+
const servedBases = new Set(servedLanguages.map(baseLanguageSubtag));
|
|
17
|
+
const icpRefsByCountry = new Map();
|
|
18
|
+
const unmapped = [];
|
|
19
|
+
for (const icp of market.icps) {
|
|
20
|
+
if (!TARGETED_ICP_PRIORITIES.has(icp.priority))
|
|
21
|
+
continue;
|
|
22
|
+
for (const geography of icpGeographies(icp)) {
|
|
23
|
+
const languages = KNOWN_COUNTRIES.has(geography) ? COUNTRY_INFO_MAP[geography]?.languages : undefined;
|
|
24
|
+
if (languages === undefined || languages.length === 0) {
|
|
25
|
+
if (!unmapped.includes(geography))
|
|
26
|
+
unmapped.push(geography);
|
|
27
|
+
continue;
|
|
28
|
+
}
|
|
29
|
+
const refs = icpRefsByCountry.get(geography) ?? [];
|
|
30
|
+
if (!refs.includes(icp.ref))
|
|
31
|
+
refs.push(icp.ref);
|
|
32
|
+
icpRefsByCountry.set(geography, refs);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
const unservedCountries = [];
|
|
36
|
+
const languagesToServe = [];
|
|
37
|
+
for (const [country, icpRefs] of icpRefsByCountry) {
|
|
38
|
+
const languages = COUNTRY_INFO_MAP[country].languages;
|
|
39
|
+
if (languages.some((language) => servedBases.has(baseLanguageSubtag(language))))
|
|
40
|
+
continue;
|
|
41
|
+
unservedCountries.push({ country, languages, icpRefs });
|
|
42
|
+
const primary = languages[0];
|
|
43
|
+
if (!languagesToServe.some((language) => baseLanguageSubtag(language) === baseLanguageSubtag(primary)))
|
|
44
|
+
languagesToServe.push(primary);
|
|
45
|
+
}
|
|
46
|
+
return { targetedCountries: [...icpRefsByCountry.keys()], unservedCountries, languagesToServe, unmappedGeographies: unmapped };
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=market-language-coverage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"market-language-coverage.js","sourceRoot":"","sources":["../../../../../src/_core/market/market-language-coverage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAA0B,MAAM,qCAAqC,CAAC;AAEjH,OAAO,EAAE,YAAY,EAAE,uBAAuB,EAAwB,MAAM,sBAAsB,CAAC;AAyDnG,yFAAyF;AACzF,MAAM,UAAU,kBAAkB,CAAC,QAAgB;IACjD,OAAO,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAE,CAAC,WAAW,EAAE,CAAC;AAC/C,CAAC;AAED,SAAS,cAAc,CAAC,GAAoB;IAC1C,OAAO,GAAG,CAAC,OAAO,CAAC,IAAI,KAAK,YAAY,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,YAAY,CAAC,WAAW,CAAC;AACvI,CAAC;AAED,MAAM,eAAe,GAAwB,IAAI,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC;AAEtF;;;GAGG;AACH,MAAM,UAAU,6BAA6B,CAAC,MAAsB,EAAE,eAAkC;IACtG,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC,eAAe,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC;IACrE,MAAM,gBAAgB,GAAG,IAAI,GAAG,EAAoB,CAAC;IACrD,MAAM,QAAQ,GAAa,EAAE,CAAC;IAC9B,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;QAC9B,IAAI,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E,CAAC,CAAC;QACxD,MAAM,OAAO,GAAG,SAAS,CAAC,CAAC,CAAE,CAAC;QAC9B,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,kBAAkB,CAAC,QAAQ,CAAC,KAAK,kBAAkB,CAAC,OAAO,CAAC,CAAC;YAAE,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzI,CAAC;IACD,OAAO,EAAE,iBAAiB,EAAE,CAAC,GAAG,gBAAgB,CAAC,IAAI,EAAE,CAAC,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,QAAQ,EAAE,CAAC;AACjI,CAAC","sourcesContent":["import { AvailableCountry, COUNTRY_INFO_MAP, type AvailableLanguage } from '@wildo-ai/presets-components-models';\n\nimport { ICPArchetype, TARGETED_ICP_PRIORITIES, type MarketICPConfig } from './market-icp.schemas';\nimport type { MarketSnapshot } from './market-snapshot.schemas';\n\n/**\n * WHICH languages the market an application targets speaks, and which of them the application does not\n * serve — derived from the market snapshot's ICP geographies, never asked.\n *\n * ## Why this exists\n *\n * Measured on a real first run (2026-10-01, an EU CRM): the market snapshot targeted Germany and France\n * (CORE) and Italy and Spain (EXPANSION) while the application's configuration served English alone —\n * the scaffold default, which nobody had decided for this application. Nothing compared the two, so the\n * capability composition could only decline a second website locale and the coherence report said\n * nothing. A market the product cannot speak to is a contradiction between two declarations, and both\n * are typed: ISO country codes on the ICPs, `appPreferences.languages` in the configuration.\n *\n * ## The rules, and why each is the one it is\n *\n * - **Targeted means CORE or EXPANSION.** The two priorities positioning and documentation are written\n * for; an EXPLORATORY, DEFERRED or ANTI_TARGET ICP commits the product to nothing. The same set the\n * capability composition reads for its documentation-portal decision.\n * - **A country's languages come from {@link COUNTRY_INFO_MAP}**, the framework's one country table, so\n * there is no second country → language list to drift from it.\n * - **A country is SERVED when the application speaks ANY of its languages.** Belgium is reachable in\n * French, Switzerland in German, Ireland in English; demanding every official language would ask an\n * Irish market for an Irish-language product, which is not how business there is conducted.\n * - **An unserved country asks for its FIRST listed language** — the table's primary for that country.\n * One language per unserved country is the smallest change that makes it reachable.\n * - **Languages compare on their BASE subtag.** An application serving `de` serves a `de-AT` market,\n * and one serving `en-GB` serves an `en` market: a regional variant is a refinement, not a gap.\n * - **A region tag (`EMEA`, `GLOBAL`, …) names no language**, and a country the table does not carry\n * cannot be read either. Both are returned in `unmappedGeographies` rather than guessed at, and the\n * coherence report names them beside a language gap, so a reader sees what the comparison could not\n * see. They are never a gap on their own: a market described by region has made no language claim.\n */\nexport interface MarketLanguageCoverage {\n /** Every country a targeted ICP names, in first-seen order. */\n readonly targetedCountries: readonly string[];\n /** The targeted countries the application speaks none of the languages of, with the ICPs that target each. */\n readonly unservedCountries: readonly MarketUnservedCountry[];\n /**\n * The languages the application would need to add to reach every unserved country — the first listed\n * language of each, de-duplicated, in first-seen order. Empty when every targeted country is served.\n */\n readonly languagesToServe: readonly AvailableLanguage[];\n /** Geographies that name no language: region tags, and countries the country table does not carry. */\n readonly unmappedGeographies: readonly string[];\n}\n\nexport interface MarketUnservedCountry {\n readonly country: string;\n /** The country's languages, from the country table, primary first. */\n readonly languages: readonly AvailableLanguage[];\n /** The targeted ICPs that name this country. */\n readonly icpRefs: readonly string[];\n}\n\n/** `de-AT` → `de`. The comparison key for \"does the application speak this language\". */\nexport function baseLanguageSubtag(language: string): string {\n return language.split('-')[0]!.toLowerCase();\n}\n\nfunction icpGeographies(icp: MarketICPConfig): readonly string[] {\n return icp.profile.kind === ICPArchetype.LEGAL_ENTITY ? icp.profile.firmographics.geographies : icp.profile.demographics.geographies;\n}\n\nconst KNOWN_COUNTRIES: ReadonlySet<string> = new Set(Object.values(AvailableCountry));\n\n/**\n * Measure the market's languages against the languages the application serves. Pure; total over the\n * targeted ICPs' geographies — every one is either a targeted country (served or not) or unmapped.\n */\nexport function measureMarketLanguageCoverage(market: MarketSnapshot, servedLanguages: readonly string[]): MarketLanguageCoverage {\n const servedBases = new Set(servedLanguages.map(baseLanguageSubtag));\n const icpRefsByCountry = new Map<string, string[]>();\n const unmapped: string[] = [];\n for (const icp of market.icps) {\n if (!TARGETED_ICP_PRIORITIES.has(icp.priority)) continue;\n for (const geography of icpGeographies(icp)) {\n const languages = KNOWN_COUNTRIES.has(geography) ? COUNTRY_INFO_MAP[geography as AvailableCountry]?.languages : undefined;\n if (languages === undefined || languages.length === 0) {\n if (!unmapped.includes(geography)) unmapped.push(geography);\n continue;\n }\n const refs = icpRefsByCountry.get(geography) ?? [];\n if (!refs.includes(icp.ref)) refs.push(icp.ref);\n icpRefsByCountry.set(geography, refs);\n }\n }\n const unservedCountries: MarketUnservedCountry[] = [];\n const languagesToServe: AvailableLanguage[] = [];\n for (const [country, icpRefs] of icpRefsByCountry) {\n const languages = COUNTRY_INFO_MAP[country as AvailableCountry]!.languages;\n if (languages.some((language) => servedBases.has(baseLanguageSubtag(language)))) continue;\n unservedCountries.push({ country, languages, icpRefs });\n const primary = languages[0]!;\n if (!languagesToServe.some((language) => baseLanguageSubtag(language) === baseLanguageSubtag(primary))) languagesToServe.push(primary);\n }\n return { targetedCountries: [...icpRefsByCountry.keys()], unservedCountries, languagesToServe, unmappedGeographies: unmapped };\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BenefitKanoCategory } from './feature-benefit.schemas.js';
|
|
2
2
|
import { ReviewCadence } from './market-authored-metadata.schemas.js';
|
|
3
|
-
import { ICPArchetype, ICPPriority } from './market-icp.schemas.js';
|
|
3
|
+
import { ICPArchetype, ICPPriority, TARGETED_ICP_PRIORITIES } from './market-icp.schemas.js';
|
|
4
4
|
import { MarketMessageRequiredInput } from './market-message-template.schemas.js';
|
|
5
5
|
import { PersonaScope } from './market-persona.schemas.js';
|
|
6
6
|
import { ProofKind } from './market-proof.schemas.js';
|
|
@@ -573,7 +573,7 @@ function detectInfluenceCycles(snapshot, issues) {
|
|
|
573
573
|
function detectMissingPositioningForIcp(snapshot, issues) {
|
|
574
574
|
const positionedIcpRefs = new Set(snapshot.positionings.map(p => p.icpRef));
|
|
575
575
|
for (const [iIdx, icp] of snapshot.icps.entries()) {
|
|
576
|
-
if (
|
|
576
|
+
if (!TARGETED_ICP_PRIORITIES.has(icp.priority))
|
|
577
577
|
continue;
|
|
578
578
|
if (positionedIcpRefs.has(icp.ref))
|
|
579
579
|
continue;
|