@dot-agent/compiler 0.1.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/core.cjs ADDED
@@ -0,0 +1,224 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/core.ts
31
+ var core_exports = {};
32
+ __export(core_exports, {
33
+ aboutmeToJson: () => aboutmeToJson,
34
+ buildAboutme: () => buildAboutme,
35
+ buildId: () => buildId,
36
+ createZip: () => createZip,
37
+ extractDigest: () => extractDigest,
38
+ extractFiles: () => extractFiles,
39
+ extractName: () => extractName,
40
+ parseAboutme: () => parseAboutme,
41
+ parseId: () => parseId
42
+ });
43
+ module.exports = __toCommonJS(core_exports);
44
+
45
+ // src/manifest.ts
46
+ function parseAboutme(json) {
47
+ if (!json.schemaVersion) throw new Error("Missing schemaVersion in aboutme.json");
48
+ if (!json.id) throw new Error("Missing id in aboutme.json");
49
+ if (!json.name) throw new Error("Missing name in aboutme.json");
50
+ if (!json.description) throw new Error("Missing description in aboutme.json");
51
+ if (!json.version) throw new Error("Missing version in aboutme.json");
52
+ if (!json.domain) throw new Error("Missing domain in aboutme.json");
53
+ if (!json.persona) throw new Error("Missing persona in aboutme.json");
54
+ if (!json.compiler) throw new Error("Missing compiler in aboutme.json");
55
+ if (!Array.isArray(json.capabilities)) throw new Error("Missing capabilities array in aboutme.json");
56
+ if (!Array.isArray(json.requires)) throw new Error("Missing requires array in aboutme.json");
57
+ if (!json.integrity) throw new Error("Missing integrity in aboutme.json");
58
+ return {
59
+ schemaVersion: json.schemaVersion,
60
+ id: json.id,
61
+ name: json.name,
62
+ description: json.description,
63
+ version: json.version,
64
+ domain: json.domain,
65
+ license: json.license ?? "",
66
+ persona: json.persona,
67
+ purpose: json.purpose ?? "unknown",
68
+ compiler: json.compiler,
69
+ commit: json.commit,
70
+ capabilities: json.capabilities,
71
+ requires: json.requires,
72
+ integrity: json.integrity
73
+ };
74
+ }
75
+ function buildAboutme(opts) {
76
+ return {
77
+ schemaVersion: "dot-agent/1.0",
78
+ id: opts.id,
79
+ name: opts.name,
80
+ description: opts.description,
81
+ version: opts.version,
82
+ domain: opts.domain,
83
+ license: opts.license ?? "",
84
+ persona: opts.persona,
85
+ purpose: opts.purpose ?? "unknown",
86
+ compiler: opts.compiler,
87
+ commit: opts.commit,
88
+ capabilities: opts.capabilities ?? [],
89
+ requires: opts.requires ?? [],
90
+ integrity: opts.integrity
91
+ };
92
+ }
93
+ function aboutmeToJson(aboutme) {
94
+ return JSON.stringify(aboutme, null, 2);
95
+ }
96
+
97
+ // src/id.ts
98
+ var KNOWN_PLATFORMS = ["github.com", "gitlab.com", "codeberg.org", "sr.ht"];
99
+ function parseNamespaceName(identifier) {
100
+ const atIdx = identifier.indexOf("@");
101
+ if (atIdx !== -1 && (identifier.indexOf("/") === -1 || atIdx < identifier.indexOf("/"))) {
102
+ const slashIdx = identifier.indexOf("/");
103
+ if (slashIdx === -1) {
104
+ throw new Error(`Invalid agent ID: email namespace requires a name after '/' (got '${identifier}')`);
105
+ }
106
+ return {
107
+ namespace: identifier.slice(0, slashIdx),
108
+ name: identifier.slice(slashIdx + 1)
109
+ };
110
+ }
111
+ for (const platform of KNOWN_PLATFORMS) {
112
+ if (identifier.startsWith(platform + "/")) {
113
+ const afterPlatform = identifier.slice(platform.length + 1);
114
+ const slashIdx = afterPlatform.indexOf("/");
115
+ if (slashIdx === -1) {
116
+ throw new Error(
117
+ `Invalid agent ID: '${platform}' namespace requires a user segment and a name (got '${identifier}')`
118
+ );
119
+ }
120
+ return {
121
+ namespace: platform + "/" + afterPlatform.slice(0, slashIdx),
122
+ name: afterPlatform.slice(slashIdx + 1)
123
+ };
124
+ }
125
+ }
126
+ const lastSlash = identifier.lastIndexOf("/");
127
+ if (lastSlash === -1) {
128
+ throw new Error(`Invalid agent ID: missing '/' separator in '${identifier}'`);
129
+ }
130
+ return {
131
+ namespace: identifier.slice(0, lastSlash),
132
+ name: identifier.slice(lastSlash + 1)
133
+ };
134
+ }
135
+ function parseId(id) {
136
+ if (!id) throw new Error("Invalid agent ID: empty string");
137
+ const colonIdx = id.indexOf(":");
138
+ let identifier;
139
+ let version;
140
+ let digest;
141
+ if (colonIdx === -1) {
142
+ identifier = id;
143
+ } else {
144
+ identifier = id.slice(0, colonIdx);
145
+ const rest = id.slice(colonIdx + 1);
146
+ if (!rest) throw new Error(`Invalid agent ID: empty version after ':' in '${id}'`);
147
+ const tildeIdx = rest.indexOf("~");
148
+ if (tildeIdx === -1) {
149
+ version = rest;
150
+ } else {
151
+ version = rest.slice(0, tildeIdx);
152
+ digest = rest.slice(tildeIdx + 1);
153
+ if (!version) throw new Error(`Invalid agent ID: empty version before '~' in '${id}'`);
154
+ if (!digest) throw new Error(`Invalid agent ID: empty digest after '~' in '${id}'`);
155
+ }
156
+ }
157
+ const { namespace, name } = parseNamespaceName(identifier);
158
+ if (!namespace) throw new Error(`Invalid agent ID: empty namespace in '${id}'`);
159
+ if (!name) throw new Error(`Invalid agent ID: empty name in '${id}'`);
160
+ return { namespace, name, version, digest };
161
+ }
162
+ function buildId(parts) {
163
+ const { namespace, name, version, digest } = parts;
164
+ if (!namespace || !name) {
165
+ throw new Error("Missing required ID parts: namespace and name");
166
+ }
167
+ if (digest && !version) {
168
+ throw new Error("Invalid ID parts: digest requires version");
169
+ }
170
+ let result = `${namespace}/${name}`;
171
+ if (version) {
172
+ result += `:${version}`;
173
+ if (digest) result += `~${digest}`;
174
+ }
175
+ return result;
176
+ }
177
+ function extractDigest(id) {
178
+ try {
179
+ return parseId(id).digest ?? "";
180
+ } catch {
181
+ return "";
182
+ }
183
+ }
184
+ function extractName(id) {
185
+ try {
186
+ return parseId(id).name;
187
+ } catch {
188
+ return "";
189
+ }
190
+ }
191
+
192
+ // src/zip-core.ts
193
+ var import_jszip = __toESM(require("jszip"), 1);
194
+ function createZip() {
195
+ return new import_jszip.default();
196
+ }
197
+ async function extractFiles(zip, filter) {
198
+ const files = /* @__PURE__ */ new Map();
199
+ const promises = [];
200
+ zip.forEach((relativePath, file) => {
201
+ if (file.dir) return;
202
+ if (filter && !filter.some((f) => relativePath.startsWith(f))) return;
203
+ promises.push(
204
+ file.async("text").then((content) => {
205
+ files.set(relativePath, content);
206
+ })
207
+ );
208
+ });
209
+ await Promise.all(promises);
210
+ return files;
211
+ }
212
+ // Annotate the CommonJS export names for ESM import in node:
213
+ 0 && (module.exports = {
214
+ aboutmeToJson,
215
+ buildAboutme,
216
+ buildId,
217
+ createZip,
218
+ extractDigest,
219
+ extractFiles,
220
+ extractName,
221
+ parseAboutme,
222
+ parseId
223
+ });
224
+ //# sourceMappingURL=core.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/core.ts","../src/manifest.ts","../src/id.ts","../src/zip-core.ts"],"sourcesContent":["// Copyright 2026 Danilo Borges\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n// Browser-safe sub-path export — no Node.js dependencies.\n// Import via: import { ... } from '@dot-agent/compiler/core'\n\nexport { parseAboutme, buildAboutme, aboutmeToJson } from './manifest.js'\nexport { parseId, buildId, extractDigest, extractName } from './id.js'\nexport { createZip, extractFiles } from './zip-core.js'\n\nexport type {\n AboutMe,\n Capability,\n AnnotatedRef,\n DescriptionFile,\n Integrity,\n BuildAboutmeOptions,\n IdParts,\n LintMessage,\n} from './types.js'\n","// Copyright 2026 Danilo Borges\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n\nimport type { AboutMe, BuildAboutmeOptions } from './types.js'\n\nexport function parseAboutme(json: any): AboutMe {\n if (!json.schemaVersion) throw new Error('Missing schemaVersion in aboutme.json')\n if (!json.id) throw new Error('Missing id in aboutme.json')\n if (!json.name) throw new Error('Missing name in aboutme.json')\n if (!json.description) throw new Error('Missing description in aboutme.json')\n if (!json.version) throw new Error('Missing version in aboutme.json')\n if (!json.domain) throw new Error('Missing domain in aboutme.json')\n if (!json.persona) throw new Error('Missing persona in aboutme.json')\n if (!json.compiler) throw new Error('Missing compiler in aboutme.json')\n if (!Array.isArray(json.capabilities)) throw new Error('Missing capabilities array in aboutme.json')\n if (!Array.isArray(json.requires)) throw new Error('Missing requires array in aboutme.json')\n if (!json.integrity) throw new Error('Missing integrity in aboutme.json')\n\n return {\n schemaVersion: json.schemaVersion,\n id: json.id,\n name: json.name,\n description: json.description,\n version: json.version,\n domain: json.domain,\n license: json.license ?? '',\n persona: json.persona,\n purpose: json.purpose ?? 'unknown',\n compiler: json.compiler,\n commit: json.commit,\n capabilities: json.capabilities,\n requires: json.requires,\n integrity: json.integrity,\n }\n}\n\nexport function buildAboutme(opts: BuildAboutmeOptions): AboutMe {\n return {\n schemaVersion: 'dot-agent/1.0',\n id: opts.id,\n name: opts.name,\n description: opts.description,\n version: opts.version,\n domain: opts.domain,\n license: opts.license ?? '',\n persona: opts.persona,\n purpose: opts.purpose ?? 'unknown',\n compiler: opts.compiler,\n commit: opts.commit,\n capabilities: opts.capabilities ?? [],\n requires: opts.requires ?? [],\n integrity: opts.integrity,\n }\n}\n\nexport function aboutmeToJson(aboutme: AboutMe): string {\n return JSON.stringify(aboutme, null, 2)\n}\n","// Copyright 2026 Danilo Borges\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport type { IdParts } from './types.js'\n\n// Code hosting platforms whose namespace format is platform/user rather than plain domain.\n// The list is maintained by the compiler and updated via CLI releases.\nexport const KNOWN_PLATFORMS = ['github.com', 'gitlab.com', 'codeberg.org', 'sr.ht'] as const\n\nfunction parseNamespaceName(identifier: string): { namespace: string; name: string } {\n // Email namespace: @ appears before any /\n const atIdx = identifier.indexOf('@')\n if (atIdx !== -1 && (identifier.indexOf('/') === -1 || atIdx < identifier.indexOf('/'))) {\n const slashIdx = identifier.indexOf('/')\n if (slashIdx === -1) {\n throw new Error(`Invalid agent ID: email namespace requires a name after '/' (got '${identifier}')`)\n }\n return {\n namespace: identifier.slice(0, slashIdx),\n name: identifier.slice(slashIdx + 1),\n }\n }\n\n // Known code-hosting platforms: namespace is platform/user, name is the next segment.\n for (const platform of KNOWN_PLATFORMS) {\n if (identifier.startsWith(platform + '/')) {\n const afterPlatform = identifier.slice(platform.length + 1)\n const slashIdx = afterPlatform.indexOf('/')\n if (slashIdx === -1) {\n throw new Error(\n `Invalid agent ID: '${platform}' namespace requires a user segment and a name (got '${identifier}')`,\n )\n }\n return {\n namespace: platform + '/' + afterPlatform.slice(0, slashIdx),\n name: afterPlatform.slice(slashIdx + 1),\n }\n }\n }\n\n // Domain or reserved keyword (e.g. 'unknown'): last '/' separates namespace from name.\n const lastSlash = identifier.lastIndexOf('/')\n if (lastSlash === -1) {\n throw new Error(`Invalid agent ID: missing '/' separator in '${identifier}'`)\n }\n return {\n namespace: identifier.slice(0, lastSlash),\n name: identifier.slice(lastSlash + 1),\n }\n}\n\nexport function parseId(id: string): IdParts {\n if (!id) throw new Error('Invalid agent ID: empty string')\n\n // Phase 1: split on the first ':' to isolate the identifier from version~digest.\n const colonIdx = id.indexOf(':')\n\n let identifier: string\n let version: string | undefined\n let digest: string | undefined\n\n if (colonIdx === -1) {\n // Form A: namespace/name\n identifier = id\n } else {\n identifier = id.slice(0, colonIdx)\n const rest = id.slice(colonIdx + 1)\n if (!rest) throw new Error(`Invalid agent ID: empty version after ':' in '${id}'`)\n\n // Phase 2: split version~digest\n const tildeIdx = rest.indexOf('~')\n if (tildeIdx === -1) {\n // Form B: namespace/name:version\n version = rest\n } else {\n // Form D: namespace/name:version~digest\n version = rest.slice(0, tildeIdx)\n digest = rest.slice(tildeIdx + 1)\n if (!version) throw new Error(`Invalid agent ID: empty version before '~' in '${id}'`)\n if (!digest) throw new Error(`Invalid agent ID: empty digest after '~' in '${id}'`)\n }\n }\n\n // Phase 3: extract namespace and name from the identifier\n const { namespace, name } = parseNamespaceName(identifier)\n\n if (!namespace) throw new Error(`Invalid agent ID: empty namespace in '${id}'`)\n if (!name) throw new Error(`Invalid agent ID: empty name in '${id}'`)\n\n return { namespace, name, version, digest }\n}\n\nexport function buildId(parts: IdParts): string {\n const { namespace, name, version, digest } = parts\n if (!namespace || !name) {\n throw new Error('Missing required ID parts: namespace and name')\n }\n if (digest && !version) {\n throw new Error('Invalid ID parts: digest requires version')\n }\n let result = `${namespace}/${name}`\n if (version) {\n result += `:${version}`\n if (digest) result += `~${digest}`\n }\n return result\n}\n\nexport function extractDigest(id: string): string {\n try {\n return parseId(id).digest ?? ''\n } catch {\n return ''\n }\n}\n\nexport function extractName(id: string): string {\n try {\n return parseId(id).name\n } catch {\n return ''\n }\n}\n","// Copyright 2026 Danilo Borges\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport JSZip from 'jszip'\n\nexport function createZip(): JSZip {\n return new JSZip()\n}\n\nexport async function extractFiles(zip: JSZip, filter?: string[]): Promise<Map<string, string>> {\n const files = new Map<string, string>()\n const promises: Promise<void>[] = []\n\n zip.forEach((relativePath, file) => {\n if (file.dir) return\n if (filter && !filter.some(f => relativePath.startsWith(f))) return\n promises.push(\n file.async('text').then(content => {\n files.set(relativePath, content)\n })\n )\n })\n\n await Promise.all(promises)\n return files\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACUO,SAAS,aAAa,MAAoB;AAC/C,MAAI,CAAC,KAAK,cAAe,OAAM,IAAI,MAAM,uCAAuC;AAChF,MAAI,CAAC,KAAK,GAAI,OAAM,IAAI,MAAM,4BAA4B;AAC1D,M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AI,OAAO;AACrB,QAAI,OAAQ,WAAU,IAAI,MAAM;AAAA,EAClC;AACA,SAAO;AACT;AAEO,SAAS,cAAc,IAAoB;AAChD,MAAI;AACF,WAAO,QAAQ,EAAE,EAAE,UAAU;AAAA,EAC/B,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAEO,SAAS,YAAY,IAAoB;AAC9C,MAAI;AACF,WAAO,QAAQ,EAAE,EAAE;AAAA,EACrB,QAAQ;AACN,WAAO;AAAA,EACT;AACF;;;ACvHA,mBAAkB;AAEX,SAAS,YAAmB;AACjC,SAAO,IAAI,aAAAA,QAAM;AACnB;AAEA,eAAsB,aAAa,KAAY,QAAiD;AAC9F,QAAM,QAAQ,oBAAI,IAAoB;AACtC,QAAM,WAA4B,CAAC;AAEnC,MAAI,QAAQ,CAAC,cAAc,SAAS;AAClC,QAAI,KAAK,IAAK;AACd,QAAI,UAAU,CAAC,OAAO,KAAK,OAAK,aAAa,WAAW,CAAC,CAAC,EAAG;AAC7D,aAAS;AAAA,MACP,KAAK,MAAM,MAAM,EAAE,KAAK,aAAW;AACjC,cAAM,IAAI,cAAc,OAAO;AAAA,MACjC,CAAC;AAAA,IACH;AAAA,EACF,CAAC;AAED,QAAM,QAAQ,IAAI,QAAQ;AAC1B,SAAO;AACT;","names":["JSZip"]}
@@ -0,0 +1,2 @@
1
+ export { A as AboutMe, e as AnnotatedRef, g as BuildAboutmeOptions, C as Capability, D as DescriptionFile, I as IdParts, h as Integrity, a as LintMessage, l as aboutmeToJson, m as buildAboutme, n as buildId, o as createZip, p as extractDigest, q as extractFiles, r as extractName, s as parseAboutme, t as parseId } from './core-DLZGpzev.cjs';
2
+ import 'jszip';
package/dist/core.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { A as AboutMe, e as AnnotatedRef, g as BuildAboutmeOptions, C as Capability, D as DescriptionFile, I as IdParts, h as Integrity, a as LintMessage, l as aboutmeToJson, m as buildAboutme, n as buildId, o as createZip, p as extractDigest, q as extractFiles, r as extractName, s as parseAboutme, t as parseId } from './core-DLZGpzev.js';
2
+ import 'jszip';
package/dist/core.js ADDED
@@ -0,0 +1,23 @@
1
+ import {
2
+ aboutmeToJson,
3
+ buildAboutme,
4
+ buildId,
5
+ createZip,
6
+ extractDigest,
7
+ extractFiles,
8
+ extractName,
9
+ parseAboutme,
10
+ parseId
11
+ } from "./chunk-IT25ILTQ.js";
12
+ export {
13
+ aboutmeToJson,
14
+ buildAboutme,
15
+ buildId,
16
+ createZip,
17
+ extractDigest,
18
+ extractFiles,
19
+ extractName,
20
+ parseAboutme,
21
+ parseId
22
+ };
23
+ //# sourceMappingURL=core.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}