@hgdc/agents 0.3.0 → 0.4.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/dist/hgdc.d.ts CHANGED
@@ -3,6 +3,12 @@
3
3
  * de l'entreprise, sur hgdc.ch. Pour l'option `redirects` de `withMarkdown`.
4
4
  */
5
5
  export declare const HGDC_TRUST_PAGES: Readonly<Record<string, string>>;
6
+ /**
7
+ * Fichiers de découverte que les agents cherchent à la racine de chaque hôte : ceux de l'entreprise, sur
8
+ * hgdc.ch (catalogue ARD, index Agent Skills). Pour l'option `redirects` de `withMarkdown`, avec
9
+ * `HGDC_TRUST_PAGES`.
10
+ */
11
+ export declare const HGDC_DISCOVERY_FILES: Readonly<Record<string, string>>;
6
12
  /** Nœud schema.org de l'entreprise, même `@id` que sur hgdc.ch. */
7
13
  export declare const HGDC_ORGANIZATION: {
8
14
  readonly "@type": "Organization";
@@ -10,6 +16,7 @@ export declare const HGDC_ORGANIZATION: {
10
16
  readonly name: "Hugo Gebel Développement Conseil";
11
17
  readonly alternateName: "HGDC";
12
18
  readonly url: "https://hgdc.ch";
19
+ readonly sameAs: readonly ["https://www.linkedin.com/company/smartflowsa", "https://www.instagram.com/smartflowsa.ch"];
13
20
  readonly description: "Entreprise individuelle suisse : agence web, accompagnement IA, outils en ligne de la H Collection et logiciel Stratta, pour les entreprises en Suisse.";
14
21
  readonly email: "contact@hgdc.ch";
15
22
  readonly contactPoint: {
@@ -29,7 +36,7 @@ export declare const HGDC_ORGANIZATION: {
29
36
  readonly addressCountry: "CH";
30
37
  };
31
38
  };
32
- /** Graphe JSON-LD d'un produit : l'entreprise et le site du produit, qu'elle publie. */
39
+ /** Graphe JSON-LD d'un produit : l'entreprise, le produit (logiciel en ligne) et son site, qu'elle publie. */
33
40
  export declare function productJsonLd(product: {
34
41
  name: string;
35
42
  url: string;
package/dist/hgdc.js CHANGED
@@ -9,6 +9,15 @@ export const HGDC_TRUST_PAGES = {
9
9
  "/contact": "https://hgdc.ch/contact",
10
10
  "/privacy": "https://hgdc.ch/confidentialite",
11
11
  };
12
+ /**
13
+ * Fichiers de découverte que les agents cherchent à la racine de chaque hôte : ceux de l'entreprise, sur
14
+ * hgdc.ch (catalogue ARD, index Agent Skills). Pour l'option `redirects` de `withMarkdown`, avec
15
+ * `HGDC_TRUST_PAGES`.
16
+ */
17
+ export const HGDC_DISCOVERY_FILES = {
18
+ "/.well-known/ard.json": "https://hgdc.ch/.well-known/ard.json",
19
+ "/.well-known/agent-skills/index.json": "https://hgdc.ch/.well-known/agent-skills/index.json",
20
+ };
12
21
  /** Nœud schema.org de l'entreprise, même `@id` que sur hgdc.ch. */
13
22
  export const HGDC_ORGANIZATION = {
14
23
  "@type": "Organization",
@@ -16,6 +25,8 @@ export const HGDC_ORGANIZATION = {
16
25
  name: "Hugo Gebel Développement Conseil",
17
26
  alternateName: "HGDC",
18
27
  url: "https://hgdc.ch",
28
+ // Profils publics de l'entreprise (ceux de l'Agence, ex-SmartFlow, renommés sans changer d'adresse).
29
+ sameAs: ["https://www.linkedin.com/company/smartflowsa", "https://www.instagram.com/smartflowsa.ch"],
19
30
  description: "Entreprise individuelle suisse : agence web, accompagnement IA, outils en ligne de la H Collection et logiciel Stratta, pour les entreprises en Suisse.",
20
31
  email: "contact@hgdc.ch",
21
32
  contactPoint: {
@@ -35,7 +46,7 @@ export const HGDC_ORGANIZATION = {
35
46
  addressCountry: "CH",
36
47
  },
37
48
  };
38
- /** Graphe JSON-LD d'un produit : l'entreprise et le site du produit, qu'elle publie. */
49
+ /** Graphe JSON-LD d'un produit : l'entreprise, le produit (logiciel en ligne) et son site, qu'elle publie. */
39
50
  export function productJsonLd(product) {
40
51
  return {
41
52
  "@context": "https://schema.org",
@@ -50,6 +61,17 @@ export function productJsonLd(product) {
50
61
  inLanguage: "fr-CH",
51
62
  publisher: { "@id": HGDC_ORGANIZATION["@id"] },
52
63
  },
64
+ {
65
+ "@type": "SoftwareApplication",
66
+ "@id": `${product.url}/#software`,
67
+ name: product.name,
68
+ url: product.url,
69
+ description: product.description,
70
+ applicationCategory: "BusinessApplication",
71
+ operatingSystem: "Web",
72
+ inLanguage: "fr-CH",
73
+ publisher: { "@id": HGDC_ORGANIZATION["@id"] },
74
+ },
53
75
  ],
54
76
  };
55
77
  }
package/dist/index.d.ts CHANGED
@@ -2,4 +2,4 @@ export { htmlToMarkdown, pageFrontmatter, pageTitle } from "./markdown.js";
2
2
  export { prefersMarkdown, varyOnAccept } from "./negotiate.js";
3
3
  export { linksFooter, withMarkdown, type MarkdownOptions } from "./fetch.js";
4
4
  export { canonicalLink, injectIntoHead, jsonLdScript } from "./head.js";
5
- export { HGDC_ORGANIZATION, HGDC_TRUST_PAGES, productJsonLd } from "./hgdc.js";
5
+ export { HGDC_DISCOVERY_FILES, HGDC_ORGANIZATION, HGDC_TRUST_PAGES, productJsonLd } from "./hgdc.js";
package/dist/index.js CHANGED
@@ -2,4 +2,4 @@ export { htmlToMarkdown, pageFrontmatter, pageTitle } from "./markdown.js";
2
2
  export { prefersMarkdown, varyOnAccept } from "./negotiate.js";
3
3
  export { linksFooter, withMarkdown } from "./fetch.js";
4
4
  export { canonicalLink, injectIntoHead, jsonLdScript } from "./head.js";
5
- export { HGDC_ORGANIZATION, HGDC_TRUST_PAGES, productJsonLd } from "./hgdc.js";
5
+ export { HGDC_DISCOVERY_FILES, HGDC_ORGANIZATION, HGDC_TRUST_PAGES, productJsonLd } from "./hgdc.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hgdc/agents",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Sites lisibles par les agents IA : version Markdown des pages (Accept: text/markdown), 404 en Markdown, routes Build Output API pour les sites prérendus.",
5
5
  "license": "UNLICENSED",
6
6
  "homepage": "https://github.com/hugogebel-boop/hgdc-kit/tree/main/packages/agents#readme",