@intentic/constants 1.317.0 → 1.319.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/README.md +3 -0
- package/dist/index.d.ts +10 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/turn-preamble.d.ts +6 -0
- package/dist/turn-preamble.d.ts.map +1 -0
- package/dist/turn-preamble.js +12 -0
- package/dist/turn-preamble.js.map +1 -0
- package/package.json +1 -1
- package/src/assertion-measure.mjs +2 -2
- package/src/heavy/heavy-rules.cjs +11 -0
package/README.md
CHANGED
|
@@ -14,6 +14,9 @@ flowchart LR
|
|
|
14
14
|
- The index has no Node imports, so the web app and the public site bundle the same values the daemon reads.
|
|
15
15
|
It also carries the provider logos, the arrival profiles (`profile.ts`) and the hosted machine ladder
|
|
16
16
|
(`hosted-tiers.ts`), whose prices the site, the Billing page and the platform config all state.
|
|
17
|
+
- `turn-preamble.ts` is how a reader outside the sandbox takes the daemon's turn notes off a stored prompt: the
|
|
18
|
+
separator, the two dependency-notice openings, and `stripInjectedPreamble`. Session recall uses it. The daemon
|
|
19
|
+
builds its own notes with the same separator and openings, and its tests check every header it parses against it.
|
|
17
20
|
- `./node` holds `repoRoot` and `packageRoot`, which find the monorepo by walking up to `pnpm-workspace.yaml`
|
|
18
21
|
instead of counting `../..`. The `paths` check refuses counted roots.
|
|
19
22
|
- The `.mjs` modules (`control-bytes`, `contract-shrink`, `assertion-measure`, `mirror-roots`, `test-suites`,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./provider-logos.js";
|
|
2
2
|
export * from "./profile.js";
|
|
3
3
|
export * from "./hosted-tiers.js";
|
|
4
|
+
export * from "./turn-preamble.js";
|
|
4
5
|
export declare const WORKSPACE_ROOT = "/work";
|
|
5
6
|
export declare const HISTORY_ROOT = "/history";
|
|
6
7
|
export declare const STATE_DIR = ".intentic";
|
|
@@ -9,7 +10,7 @@ export declare const PUBLIC_DIR = "public";
|
|
|
9
10
|
export declare const MEMORY_FILE = "AGENTS.md";
|
|
10
11
|
export declare const FIELD_NOTES_FILE = ".intentic/config/field-notes.toon";
|
|
11
12
|
export declare const HOST_STATE_ROOT = "/opt/intentic";
|
|
12
|
-
export declare const LEGAL_VERSION = "2026-09-
|
|
13
|
+
export declare const LEGAL_VERSION = "2026-09-29";
|
|
13
14
|
export declare const LEGAL_CONTACT_EMAIL = "contact@intentic.dev";
|
|
14
15
|
export declare const LEGAL_ENTITY_NAME = "Artur Kurowski, trading as radarsu";
|
|
15
16
|
export declare const LEGAL_ENTITY_COUNTRY = "Poland";
|
|
@@ -80,6 +81,14 @@ export declare const INSTALL_SCRIPTS: {
|
|
|
80
81
|
readonly path: "/cleanup.ps1";
|
|
81
82
|
readonly file: "cleanup.ps1";
|
|
82
83
|
};
|
|
84
|
+
readonly fix: {
|
|
85
|
+
readonly path: "/fix";
|
|
86
|
+
readonly file: "fix.sh";
|
|
87
|
+
};
|
|
88
|
+
readonly fixPs1: {
|
|
89
|
+
readonly path: "/fix.ps1";
|
|
90
|
+
readonly file: "fix.ps1";
|
|
91
|
+
};
|
|
83
92
|
};
|
|
84
93
|
export type InstallScript = keyof typeof INSTALL_SCRIPTS;
|
|
85
94
|
export declare const installScriptUrl: (key: InstallScript) => string;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AAOnC,eA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AAE,UAAU;iBAAE,IAAI,EAAE,aAAa;;;iBAClC,IAAI,EAAE,cAAc;iBAAE,IAAI,EAAE,cAAc;;;iBAC9C,IAAI,EAAE,SAAS;iBAAE,IAAI,EAAE,aAAa;;;iBACjC,IAAI,EAAE,aAAa;iBAAE,IAAI,EAAE,cAAc;;;iBAC3C,IAAI,EAAE,UAAU;iBAAE,IAAI,EAAE,YAAY;;;iBACjC,IAAI,EAAE,cAAc;iBAAE,IAAI,EAAE,aAAa;;;iBAGhD,IAAI,EAAE,MAAM;iBAAE,IAAI,EAAE,QAAQ;;;iBACzB,IAAI,EAAE,UAAU;iBAAE,IAAI,EAAE,SAAS;;CACoB,CAAC;AAEpE,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,eAAe,CAAC;AAGzD,eAAO,MAAM,gBAAgB,QAAS,aAAa,KAAG,MAA+D,CAAC;AAGtH,eAAO,MAAM,iBAAiB,QAAS,aAAa,KAAG,MAA+D,CAAC;AAIvH,eAAO,MAAM,WAAW,OAAO,CAAC;AAChC,eAAO,MAAM,YAAY,OAAO,CAAC;AAGjC,eAAO,MAAM,UAAU,OAAO,CAAC;AAG/B,eAAO,MAAM,eAAe,OAAO,CAAC;AAGpC,eAAO,MAAM,gBAAgB,6EAA6E,CAAC;AAG3G,eAAO,MAAM,wBAAwB,0FAAqC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./provider-logos.js";
|
|
2
2
|
export * from "./profile.js";
|
|
3
3
|
export * from "./hosted-tiers.js";
|
|
4
|
+
export * from "./turn-preamble.js";
|
|
4
5
|
export const WORKSPACE_ROOT = "/work";
|
|
5
6
|
export const HISTORY_ROOT = "/history";
|
|
6
7
|
export const STATE_DIR = ".intentic";
|
|
@@ -9,7 +10,7 @@ export const PUBLIC_DIR = "public";
|
|
|
9
10
|
export const MEMORY_FILE = "AGENTS.md";
|
|
10
11
|
export const FIELD_NOTES_FILE = ".intentic/config/field-notes.toon";
|
|
11
12
|
export const HOST_STATE_ROOT = "/opt/intentic";
|
|
12
|
-
export const LEGAL_VERSION = "2026-09-
|
|
13
|
+
export const LEGAL_VERSION = "2026-09-29";
|
|
13
14
|
export const LEGAL_CONTACT_EMAIL = "contact@intentic.dev";
|
|
14
15
|
export const LEGAL_ENTITY_NAME = "Artur Kurowski, trading as radarsu";
|
|
15
16
|
export const LEGAL_ENTITY_COUNTRY = "Poland";
|
|
@@ -35,6 +36,8 @@ export const INSTALL_SCRIPTS = {
|
|
|
35
36
|
updatePs1: { path: "/update.ps1", file: "recreate.ps1" },
|
|
36
37
|
cleanup: { path: "/cleanup", file: "cleanup.sh" },
|
|
37
38
|
cleanupPs1: { path: "/cleanup.ps1", file: "cleanup.ps1" },
|
|
39
|
+
fix: { path: "/fix", file: "fix.sh" },
|
|
40
|
+
fixPs1: { path: "/fix.ps1", file: "fix.ps1" },
|
|
38
41
|
};
|
|
39
42
|
export const installScriptUrl = (key) => `${PLATFORM_SITE_ORIGIN}${INSTALL_SCRIPTS[key].path}`;
|
|
40
43
|
export const installScriptPath = (key) => `${INSTALL_SCRIPTS_DIR}/${INSTALL_SCRIPTS[key].file}`;
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AAOnC,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAC;AAGtC,MAAM,CAAC,MAAM,YAAY,GAAG,UAAU,CAAC;AAGvC,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,C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MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,CAAC;AAG/B,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC;AAGpC,MAAM,CAAC,MAAM,gBAAgB,GAAG,0EAA0E,CAAC;AAG3G,MAAM,CAAC,MAAM,wBAAwB,GAAG,gBAAgB,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const TURN_PREAMBLE_SEPARATOR = "\n\n---\n\n";
|
|
2
|
+
export declare const SETUP_NOTICE_HEADER = "Dependencies are NOT installed for the following projects, so their type-checks, linters and tests cannot work yet";
|
|
3
|
+
export declare const STALE_NOTICE_HEADER = "Some dependencies declared under /work are not installed";
|
|
4
|
+
export declare const opensWithInjectedNote: (text: string) => boolean;
|
|
5
|
+
export declare const stripInjectedPreamble: (text: string) => string;
|
|
6
|
+
//# sourceMappingURL=turn-preamble.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"turn-preamble.d.ts","sourceRoot":"","sources":["../src/turn-preamble.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,uBAAuB,gBAAgB,CAAC;AAGrD,eAAO,MAAM,mBAAmB,uHACwF,CAAC;AACzH,eAAO,MAAM,mBAAmB,6DAA6D,CAAC;AAI9F,eAAO,MAAM,qBAAqB,SAAU,MAAM,KAAG,OACqD,CAAC;AAK3G,eAAO,MAAM,qBAAqB,SAAU,MAAM,KAAG,MAMpD,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export const TURN_PREAMBLE_SEPARATOR = "\n\n---\n\n";
|
|
2
|
+
export const SETUP_NOTICE_HEADER = "Dependencies are NOT installed for the following projects, so their type-checks, linters and tests cannot work yet";
|
|
3
|
+
export const STALE_NOTICE_HEADER = "Some dependencies declared under /work are not installed";
|
|
4
|
+
export const opensWithInjectedNote = (text) => text.startsWith("## ") || text.startsWith(SETUP_NOTICE_HEADER) || text.startsWith(STALE_NOTICE_HEADER);
|
|
5
|
+
export const stripInjectedPreamble = (text) => {
|
|
6
|
+
if (!opensWithInjectedNote(text)) {
|
|
7
|
+
return text;
|
|
8
|
+
}
|
|
9
|
+
const separator = text.indexOf(TURN_PREAMBLE_SEPARATOR);
|
|
10
|
+
return separator === -1 ? text : text.slice(separator + TURN_PREAMBLE_SEPARATOR.length);
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=turn-preamble.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"turn-preamble.js","sourceRoot":"","sources":["../src/turn-preamble.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,uBAAuB,GAAG,aAAa,CAAC;AAGrD,MAAM,CAAC,MAAM,mBAAmB,GAC5B,oHAAoH,CAAC;AACzH,MAAM,CAAC,MAAM,mBAAmB,GAAG,0DAA0D,CAAC;AAI9F,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,IAAY,EAAW,EAAE,CAC3D,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC;AAK3G,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,IAAY,EAAU,EAAE;IAC1D,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,EAAE,CAAC;QAC/B,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAAC;IACxD,OAAO,SAAS,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,uBAAuB,CAAC,MAAM,CAAC,CAAC;AAC5F,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Three numbers per test file (exact matchers, loose matchers, asserted-text characters) that flag a weaker second
|
|
2
|
-
// version, which the push check reads through assertion-ratchet.mjs. Regex over source,
|
|
3
|
-
//
|
|
2
|
+
// version, which the push check (CI's and `pnpm verify:push`) reads through assertion-ratchet.mjs. Regex over source,
|
|
3
|
+
// not an AST, since the ratchet needs no install.
|
|
4
4
|
|
|
5
5
|
// Asserted text that shrinks past this fraction of what it was, with no test removed, is a narrowing.
|
|
6
6
|
export const NARROWING = 0.75;
|
|
@@ -46,6 +46,17 @@ const SHIPPED_HEAVY_COMMANDS = Object.freeze({
|
|
|
46
46
|
// not even after the wait: a verification that did not run costs one more run later, and two at once cost the
|
|
47
47
|
// sandbox its memory.
|
|
48
48
|
{ id: "repo-verify", pattern: "\\b(pnpm|npm|yarn|bun)\\s+(run\\s+)?verify(:\\S+)?\\b", limit: 1, onDeadline: "skip" },
|
|
49
|
+
// A project-dependency install, in a lane of its own, one at a time: the daemon's own installs take it too
|
|
50
|
+
// (workspace/deps/reconcile-deps.ts), so an agent installing in the main tree never rewrites node_modules under
|
|
51
|
+
// another install, and a fleet of isolated conversations installing at once does not pin the sandbox's memory
|
|
52
|
+
// and disk. Before `vitest` and `typechecker`, which `pnpm add -D vitest` would otherwise fall under. The verb is
|
|
53
|
+
// the first word that is not a flag or a flag's value (`pnpm --filter web add zod`, `npm --prefix app ci`).
|
|
54
|
+
{
|
|
55
|
+
id: "dependency-install",
|
|
56
|
+
pattern: "^(pnpm|npm|yarn|bun)(\\s+-\\S+(\\s+[^-\\s]\\S*)?)*\\s+(i|install|add|ci|update|up|upgrade|remove|rm|uninstall|prune|dedupe)(?![-.\\w])",
|
|
57
|
+
pool: "install",
|
|
58
|
+
limit: 1,
|
|
59
|
+
},
|
|
49
60
|
// A program's name joined to `.` or `-` is another word (`check-tsc`), not the program.
|
|
50
61
|
{ id: "vitest", pattern: "(?<![-.])\\b(vitest|jest)\\b(?![-.])" },
|
|
51
62
|
{ id: "typechecker", pattern: "(?<![-.])\\b(tsc|tsgo|vue-tsc)\\b(?![-.])" },
|