glugent 0.4.0 → 0.4.1

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.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +55 -0
  3. package/package.json +13 -2
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Antonín Báleš
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,55 @@
1
+ <!-- Generated from .glugent by `npm run docs:build`. Edit the sections in .glugent/sections, not this file. -->
2
+
3
+ # glugent
4
+
5
+ The command-line tool of [Glugent](https://github.com/anweba/glugent). It glues Markdown **sections** into **targets**: agents, docs, or anything else you build from Markdown.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm i -D glugent # in your project
11
+ npx glugent --help # or run it without installing
12
+ ```
13
+
14
+ ## Quick start
15
+
16
+ Three files make a project:
17
+
18
+ ```
19
+ glugent.config.json { "props": { "PROJECT": "Acme Shop" } }
20
+ hello.ggen.md # Hello
21
+ You are a helpful assistant working on {PROJECT}.
22
+ hello.agent.ggen.json { "name": "hello", "sections": ["hello"] }
23
+ ```
24
+
25
+ `npx glugent build` writes `dist/agents/hello.md`, with `{PROJECT}` replaced by `Acme Shop`.
26
+
27
+ ## CLI
28
+
29
+ ```bash
30
+ glugent build [target...] [--set KEY=VALUE]... [--config <path>] [--dry-run | --check]
31
+ glugent validate [--set KEY=VALUE]... [--config <path>]
32
+ glugent list [--config <path>]
33
+ glugent convert <file.md>... [--force] [--dry-run]
34
+ ```
35
+
36
+ `convert` turns plain Markdown into a section: it writes `<file>.ggen.md` next to each file, with every `{` escaped as `{{` and every `}` as `}}` (frontmatter is left alone). It needs no project and refuses to overwrite an existing file unless `--force` is given.
37
+
38
+ With no target names, `build` builds every target. The config is found by searching upward from the current directory.
39
+
40
+ `build --check` writes nothing: it compiles the targets and compares each result with the file on disk, then exits with 1 if any file is missing or out of date, listing them. Use it to check committed or generated output, locally or in CI; it takes the same target names and `--set` as `build`. Example:
41
+
42
+ ```bash
43
+ glugent build --set ADDITIONAL_INSTRUCTIONS="Be terse."
44
+ ```
45
+
46
+ ## More
47
+
48
+ - [Glugent on GitHub](https://github.com/anweba/glugent): the full documentation, including the template syntax
49
+ - [Examples](https://github.com/anweba/glugent/tree/main/examples), from a first agent to a team setup
50
+ - [Changelog](https://github.com/anweba/glugent/blob/main/packages/cli/CHANGELOG.md) and [issues](https://github.com/anweba/glugent/issues)
51
+ - The packages: [`glugent`](https://www.npmjs.com/package/glugent) (the CLI), [`@anweba/glugent-core`](https://www.npmjs.com/package/@anweba/glugent-core) (the library) and [`@anweba/glugent-schemas`](https://www.npmjs.com/package/@anweba/glugent-schemas) (JSON Schemas)
52
+
53
+ ## License
54
+
55
+ [MIT](https://github.com/anweba/glugent/blob/main/packages/cli/LICENSE) © Antonín Báleš
package/package.json CHANGED
@@ -1,6 +1,17 @@
1
1
  {
2
2
  "name": "glugent",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
+ "description": "Glue Markdown sections into AI agents, docs and other targets: the Glugent command line.",
5
+ "keywords": [
6
+ "glugent",
7
+ "markdown",
8
+ "templates",
9
+ "ai-agents",
10
+ "prompts",
11
+ "agent-instructions",
12
+ "cli"
13
+ ],
14
+ "license": "MIT",
4
15
  "repository": {
5
16
  "type": "git",
6
17
  "url": "git+https://github.com/anweba/glugent.git",
@@ -27,6 +38,6 @@
27
38
  "test": "node --test dist/test/*.test.js"
28
39
  },
29
40
  "dependencies": {
30
- "@anweba/glugent-core": "0.4.0"
41
+ "@anweba/glugent-core": "0.4.1"
31
42
  }
32
43
  }