Skip to content

Commit f7cf430

Browse files
committed
mcpplibs.cmdline 0.1.0: flags before actions, module-based Agent Skills
Add 0.1.0 to the three platform tables (plain upstream url: no CN mirror yet) and switch the descriptor from Form B to the upstream mcpp.toml, which carries the agent-skills feature and the mcpp/cmdline build-package re-export. 0.0.1 is dropped (the only version without an upstream manifest). The consumer example moves to 0.1.0.
1 parent 47e3094 commit f7cf430

2 files changed

Lines changed: 23 additions & 41 deletions

File tree

‎pkgs/c/cmdline.lua‎

Lines changed: 22 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
-- Form B (inline mcpp = { ... }) carries the build info for ALL listed versions.
2-
-- 0.0.2+ ships an upstream `mcpp.toml`, but `mcpp` is a package-level field
3-
-- (not per-version) in xpkg.lua, so to keep 0.0.1 installable we keep the
4-
-- workaround table here. The src/**/*.cppm layout is the same across 0.0.1,
5-
-- 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6 and 0.0.7 (0.0.3 adds src/completions*.cppm, which the glob takes in;
6-
-- 0.0.6 replaces src/completions/ with src/complete.cppm; 0.0.7 changes src/cmdline.cppm only),
7-
-- so a single Form B block describes every version correctly.
8-
-- When 0.0.1 is dropped, this can be replaced with `mcpp = "*/mcpp.toml"`.
1+
-- Form A: the upstream `mcpp.toml` carries every version from 0.0.2 on. The
2+
-- 0.1.0 manifest also carries the agent-skills feature and the
3+
-- `[build-dependencies]` path re-export of the mcpp/cmdline build package,
4+
-- which a Form B table cannot state. 0.0.1 (the only version without a
5+
-- manifest) is dropped.
96
--
10-
-- M6.x: Form B paths are globs relative to the verdir (the untouched
11-
-- xlings extract dir). The leading `*/` absorbs the GitHub tarball's
7+
-- The leading `*/` in the manifest glob absorbs the GitHub tarball's
128
-- `cmdline-<tag>/` wrap layer.
139
package = {
1410
spec = "1",
@@ -21,13 +17,6 @@ package = {
2117

2218
xpm = {
2319
linux = {
24-
["0.0.1"] = {
25-
url = {
26-
GLOBAL = "https://github.com/mcpplibs/cmdline/archive/refs/tags/0.0.1.tar.gz",
27-
CN = "https://gitcode.com/mcpp-res/cmdline/releases/download/0.0.1/cmdline-0.0.1.tar.gz",
28-
},
29-
sha256 = "3fb2f5495c1a144485b3cbb2e43e27059151633460f702af0f3851cbff387ef0",
30-
},
3120
["0.0.2"] = {
3221
url = {
3322
GLOBAL = "https://github.com/mcpplibs/cmdline/archive/refs/tags/v0.0.2.tar.gz",
@@ -70,15 +59,13 @@ package = {
7059
},
7160
sha256 = "2e998d70953c0da856dc2131902414ab25bc9faafd0bae255290d833ad0e9b49",
7261
},
62+
["0.1.0"] = {
63+
-- No CN mirror yet: a plain-string url (see docs/cn-mirror.md).
64+
url = "https://github.com/mcpplibs/cmdline/archive/refs/tags/v0.1.0.tar.gz",
65+
sha256 = "2167b41288d7bdfcd8a22c33fb3bbfa2a9df2d5900bb00b282a4260ad615971d",
66+
},
7367
},
7468
macosx = {
75-
["0.0.1"] = {
76-
url = {
77-
GLOBAL = "https://github.com/mcpplibs/cmdline/archive/refs/tags/0.0.1.tar.gz",
78-
CN = "https://gitcode.com/mcpp-res/cmdline/releases/download/0.0.1/cmdline-0.0.1.tar.gz",
79-
},
80-
sha256 = "3fb2f5495c1a144485b3cbb2e43e27059151633460f702af0f3851cbff387ef0",
81-
},
8269
["0.0.2"] = {
8370
url = {
8471
GLOBAL = "https://github.com/mcpplibs/cmdline/archive/refs/tags/v0.0.2.tar.gz",
@@ -121,15 +108,13 @@ package = {
121108
},
122109
sha256 = "2e998d70953c0da856dc2131902414ab25bc9faafd0bae255290d833ad0e9b49",
123110
},
111+
["0.1.0"] = {
112+
-- No CN mirror yet: a plain-string url (see docs/cn-mirror.md).
113+
url = "https://github.com/mcpplibs/cmdline/archive/refs/tags/v0.1.0.tar.gz",
114+
sha256 = "2167b41288d7bdfcd8a22c33fb3bbfa2a9df2d5900bb00b282a4260ad615971d",
115+
},
124116
},
125117
windows = {
126-
["0.0.1"] = {
127-
url = {
128-
GLOBAL = "https://github.com/mcpplibs/cmdline/archive/refs/tags/0.0.1.tar.gz",
129-
CN = "https://gitcode.com/mcpp-res/cmdline/releases/download/0.0.1/cmdline-0.0.1.tar.gz",
130-
},
131-
sha256 = "3fb2f5495c1a144485b3cbb2e43e27059151633460f702af0f3851cbff387ef0",
132-
},
133118
["0.0.2"] = {
134119
url = {
135120
GLOBAL = "https://github.com/mcpplibs/cmdline/archive/refs/tags/v0.0.2.tar.gz",
@@ -172,16 +157,13 @@ package = {
172157
},
173158
sha256 = "2e998d70953c0da856dc2131902414ab25bc9faafd0bae255290d833ad0e9b49",
174159
},
160+
["0.1.0"] = {
161+
-- No CN mirror yet: a plain-string url (see docs/cn-mirror.md).
162+
url = "https://github.com/mcpplibs/cmdline/archive/refs/tags/v0.1.0.tar.gz",
163+
sha256 = "2167b41288d7bdfcd8a22c33fb3bbfa2a9df2d5900bb00b282a4260ad615971d",
164+
},
175165
},
176166
},
177167

178-
mcpp = {
179-
schema = "0.1",
180-
language = "c++23",
181-
import_std = true,
182-
modules = { "mcpplibs.cmdline" },
183-
sources = { "*/src/**/*.cppm" },
184-
targets = { ["cmdline"] = { kind = "lib" } },
185-
deps = { },
186-
},
168+
mcpp = "*/mcpp.toml",
187169
}

‎tests/examples/cmdline/mcpp.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ name = "cmdline-tests"
1010
version = "0.1.0"
1111

1212
[dependencies]
13-
mcpplibs.cmdline = "0.0.7"
13+
mcpplibs.cmdline = "0.1.0"

0 commit comments

Comments
 (0)