@lucern/pack-host 0.3.0-alpha.1 → 0.3.0-alpha.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -13,9 +13,11 @@ export { OntologyEdgeTypeSnapshot, OntologyEntityTypeSnapshot, SOFTWARE_ENTITIES
13
13
  export { getDomainPack, getShapingContribution, listDomainPacks, listShapingContributions } from './domain-pack/packs/index.js';
14
14
  export { FrameworkHook, QuestionTemplate, ShapingCondition, ShapingContribution, ShapingContributionRegistry, ShapingContributionValidationIssue, ShapingContributionValidationResult, TaskGenerator, buildShapingContribution, createShapingContributionRegistry, validateShapingContribution } from './domain-pack/shaping.js';
15
15
  export { DomainPackValidationIssue, DomainPackValidationResult, validateDomainPack } from './domain-pack/validation.js';
16
+ export { DEVELOPER_REASONING_PACK } from './domain-pack/packs/developer-reasoning.js';
17
+ export { ENGINEERING_ACCELERATOR_PACK } from './domain-pack/packs/engineering-accelerator.js';
16
18
  export { chatV1Manifest } from './manifests/chat-v1.js';
17
- export { decisionsV1Manifest } from './manifests/decisions-v1.js';
18
19
  export { dealsV1Manifest } from './manifests/deals-v1.js';
20
+ export { decisionsV1Manifest } from './manifests/decisions-v1.js';
19
21
  export { documentsV1Manifest } from './manifests/documents-v1.js';
20
22
  export { epistemicAlgorithmsV1Manifest } from './manifests/epistemic-algorithms-v1.js';
21
23
  export { graphVisualizationV1Manifest } from './manifests/graph-visualization-v1.js';
@@ -25,5 +27,3 @@ export { taskManagementV1Manifest } from './manifests/task-management-v1.js';
25
27
  export { teamAnalysisV1Manifest } from './manifests/team-analysis-v1.js';
26
28
  export { themesV1Manifest } from './manifests/themes-v1.js';
27
29
  export { userProfilesV1Manifest } from './manifests/user-profiles-v1.js';
28
- export { DEVELOPER_REASONING_PACK } from './domain-pack/packs/developer-reasoning.js';
29
- export { ENGINEERING_ACCELERATOR_PACK } from './domain-pack/packs/engineering-accelerator.js';
package/dist/index.js CHANGED
@@ -517,7 +517,7 @@ var documentsV1Manifest = defineAppPackManifest({
517
517
  },
518
518
  dataContract: {
519
519
  requiredNodeTypes: ["source", "excerpt", "evidence", "synthesis"],
520
- requiredEdgeTypes: ["extracted_from", "based_on", "informs"],
520
+ requiredEdgeTypes: ["derived_from", "based_on", "informs"],
521
521
  requiredTables: [
522
522
  "projectDocuments",
523
523
  "projectDocumentsSyncLog",
@@ -737,7 +737,7 @@ var newsV1Manifest = defineAppPackManifest({
737
737
  },
738
738
  dataContract: {
739
739
  requiredNodeTypes: ["source", "evidence", "synthesis", "theme", "deal"],
740
- requiredEdgeTypes: ["extracted_from", "informs", "belongs_to"],
740
+ requiredEdgeTypes: ["derived_from", "informs", "belongs_to"],
741
741
  requiredTables: [
742
742
  "projectNews",
743
743
  "savedNewsArticles",
@@ -2592,6 +2592,9 @@ function emptyCounts() {
2592
2592
  function isPlainObject(value) {
2593
2593
  return typeof value === "object" && value !== null && !Array.isArray(value) && Object.getPrototypeOf(value) === Object.prototype;
2594
2594
  }
2595
+ function describeParseFailure(error) {
2596
+ return error instanceof Error ? error.message : "Manifest parse failed.";
2597
+ }
2595
2598
  function dedupeStrings2(values) {
2596
2599
  if (!values) {
2597
2600
  return void 0;
@@ -2722,9 +2725,6 @@ function sortJsonValue(value) {
2722
2725
  }
2723
2726
  return value;
2724
2727
  }
2725
- function escapeYamlString(value) {
2726
- return JSON.stringify(value);
2727
- }
2728
2728
  function toYamlScalar(value) {
2729
2729
  if (value === null) {
2730
2730
  return "null";
@@ -2732,7 +2732,7 @@ function toYamlScalar(value) {
2732
2732
  if (typeof value === "boolean" || typeof value === "number") {
2733
2733
  return String(value);
2734
2734
  }
2735
- return escapeYamlString(String(value));
2735
+ return JSON.stringify(String(value));
2736
2736
  }
2737
2737
  function renderYaml(value, indent = 0) {
2738
2738
  const prefix = " ".repeat(indent);
@@ -3411,7 +3411,7 @@ function parseFailureResult(error, format) {
3411
3411
  issues: [
3412
3412
  issue2(
3413
3413
  "PARSE_ERROR",
3414
- error instanceof Error ? error.message : String(error),
3414
+ describeParseFailure(error),
3415
3415
  "manifest",
3416
3416
  "parse"
3417
3417
  )
@@ -5508,12 +5508,12 @@ function getDomainPack(packId) {
5508
5508
  function listDomainPacks() {
5509
5509
  return Object.keys(DOMAIN_PACKS);
5510
5510
  }
5511
- function getShapingContribution(packId) {
5512
- return shapingContributionRegistry.get(packId);
5513
- }
5514
- function listShapingContributions() {
5515
- return shapingContributionRegistry.list();
5516
- }
5511
+ var getShapingContribution = shapingContributionRegistry.get.bind(
5512
+ shapingContributionRegistry
5513
+ );
5514
+ var listShapingContributions = shapingContributionRegistry.list.bind(
5515
+ shapingContributionRegistry
5516
+ );
5517
5517
 
5518
5518
  export { DEVELOPER_REASONING_PACK, ENGINEERING_ACCELERATOR_PACK, PACK_NAMESPACE_COLLISION_ALLOWLIST, SOFTWARE_ENTITIES_V1, allAppPackManifests, appPackRegistry, buildShapingContribution, chatV1Manifest, createDomainPackAuthoringTools, createShapingContributionRegistry, dealsV1Manifest, decisionsV1Manifest, defineAppPackManifest, defineDomainPack, defineDomainPackAuthoringManifest, detectNamespaceCollisions, documentsV1Manifest, epistemicAlgorithmsV1Manifest, evaluateAppPackEnablement, evaluateCatalogEnablement, evaluatePackEnablement, getAppPackManifest, getDependencyClosure, getDomainPack, getShapingContribution, graphVisualizationV1Manifest, listAppPackManifests, listDomainPacks, listShapingContributions, newsV1Manifest, parseDomainPackAuthoringManifest, philosophyModeV1Manifest, previewDomainPackAuthoringManifest, previewDomainPackAuthoringManifestSource, publishDomainPackAuthoringManifest, publishDomainPackAuthoringManifestSource, resolvePackDependencyGraph, serializeDomainPackAuthoringManifest, taskManagementV1Manifest, teamAnalysisV1Manifest, themesV1Manifest, userProfilesV1Manifest, validateAppPackManifest, validateAppPackRegistry, validateDomainPack, validateDomainPackAuthoringManifest, validateDomainPackAuthoringManifestSource, validatePackNamespacePolicies, validatePackRegistry, validatePackSharedServiceContracts, validateShapingContribution };
5519
5519
  //# sourceMappingURL=index.js.map