@jay-framework/jay-stack-cli 0.25.0 → 0.25.2
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/agent-kit-template/contracts/GUIDE.md +8 -8
- package/agent-kit-template/contracts/linked-contracts.md +1 -1
- package/agent-kit-template/designer/INSTRUCTIONS.md +1 -0
- package/agent-kit-template/designer/cli-commands.md +7 -0
- package/agent-kit-template/designer/contracts-and-plugins.md +1 -1
- package/agent-kit-template/designer/error-pages-guide.md +109 -0
- package/agent-kit-template/designer/jay-html-template-syntax.md +1 -1
- package/agent-kit-template/designer/routing.md +7 -0
- package/agent-kit-template/designer/validation-guide.md +27 -3
- package/agent-kit-template/designer/validation-tier-2-guide.md +64 -0
- package/agent-kit-template/developer/INSTRUCTIONS.md +1 -0
- package/agent-kit-template/developer/error-pages-guide.md +86 -0
- package/agent-kit-template/developer/render-results.md +16 -0
- package/agent-kit-template/developer/seo-guide.md +110 -1
- package/agent-kit-template/plugin/validation.md +9 -0
- package/dist/{index-l6QVpvnY.js → index-B5oavmfA.js} +906 -710
- package/dist/index.d.ts +34 -1
- package/dist/index.js +1023 -21
- package/package.json +14 -13
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { LogLevel } from '@jay-framework/logger';
|
|
2
2
|
export { MaterializeContractsOptions, MaterializeResult, PluginContractEntry, PluginsIndex, PluginsIndexEntry, listContracts, materializeContracts } from '@jay-framework/stack-server-build';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* `express.static` `setHeaders` callback that mirrors production for agent-readiness resources
|
|
6
|
+
* (DL#217): everything under `/.well-known/` is served CORS-open, with `SKILL.md` as
|
|
7
|
+
* `text/markdown` and skill archives (`.gz`) as `application/gzip`. Exported so the dev-serving
|
|
8
|
+
* test guards the real behavior rather than a copy.
|
|
9
|
+
*/
|
|
10
|
+
declare function setWellKnownHeaders(res: {
|
|
11
|
+
setHeader(name: string, value: string): void;
|
|
12
|
+
}, filePath: string): void;
|
|
4
13
|
interface StartDevServerOptions {
|
|
5
14
|
projectPath?: string;
|
|
6
15
|
testMode?: boolean;
|
|
@@ -19,10 +28,34 @@ interface JayConfig {
|
|
|
19
28
|
};
|
|
20
29
|
site?: {
|
|
21
30
|
baseUrl?: string;
|
|
31
|
+
/** Site/organization name — drives Organization + WebSite JSON-LD (DL#213). */
|
|
32
|
+
name?: string;
|
|
33
|
+
/** Logo URL (absolute or baseUrl-relative) for the Organization JSON-LD (DL#213). */
|
|
34
|
+
logo?: string;
|
|
35
|
+
/** Short site description for the Organization JSON-LD (DL#213). */
|
|
36
|
+
description?: string;
|
|
37
|
+
/** Social/profile URLs for the Organization `sameAs` (DL#213). */
|
|
38
|
+
sameAs?: string[];
|
|
39
|
+
};
|
|
40
|
+
/** Project-wide validation suppressions for project-level concerns (DL#214). */
|
|
41
|
+
validations?: {
|
|
42
|
+
/**
|
|
43
|
+
* Suppress the `/.well-known/ard.json` absence nudge — for sites with no agent-callable
|
|
44
|
+
* resources/APIs to advertise. Lives in `.jay` (not a page's `application/jay-validations`
|
|
45
|
+
* script) because it governs a single project-level file, not any page's markup.
|
|
46
|
+
*/
|
|
47
|
+
'allow-no-ard'?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Suppress the minimum-error-pages nudge — for sites that intentionally ship no branded
|
|
50
|
+
* `404`/`5xx` pages and accept the plain-text fallback. Lives in `.jay` (not a page's
|
|
51
|
+
* `application/jay-validations` script) because it governs the project's `pages/` tree as a
|
|
52
|
+
* whole, not any single page's markup (DL#218).
|
|
53
|
+
*/
|
|
54
|
+
'allow-no-error-pages'?: boolean;
|
|
22
55
|
};
|
|
23
56
|
}
|
|
24
57
|
declare function loadConfig(projectRoot?: string): JayConfig;
|
|
25
58
|
declare function getConfigWithDefaults(config: JayConfig): Required<Pick<JayConfig, 'devServer'>> & Pick<JayConfig, 'site'>;
|
|
26
59
|
declare function updateConfig(updates: Partial<JayConfig>): void;
|
|
27
60
|
|
|
28
|
-
export { type JayConfig, type StartDevServerOptions, getConfigWithDefaults, loadConfig, startDevServer, updateConfig };
|
|
61
|
+
export { type JayConfig, type StartDevServerOptions, getConfigWithDefaults, loadConfig, setWellKnownHeaders, startDevServer, updateConfig };
|