Prepare Sandwich Hime v1 release candidate source
This commit is contained in:
@@ -0,0 +1,94 @@
|
||||
# SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
HIM1001
|
||||
HIM1002
|
||||
HIM1101
|
||||
HIM1102
|
||||
HIM1103
|
||||
HIM1104
|
||||
HIM1105
|
||||
HIM1110
|
||||
HIM1111
|
||||
HIM1112
|
||||
HIM1113
|
||||
HIM1114
|
||||
HIM1115
|
||||
HIM1116
|
||||
HIM1117
|
||||
HIM1118
|
||||
HIM1119
|
||||
HIM1120
|
||||
HIM1121
|
||||
HIM1122
|
||||
HIM1123
|
||||
HIM1201
|
||||
HIM1202
|
||||
HIM1203
|
||||
HIM1210
|
||||
HIM1301
|
||||
HIM1302
|
||||
HIM1303
|
||||
HIM1310
|
||||
HIM1311
|
||||
HIM1320
|
||||
HIM1321
|
||||
HIM1322
|
||||
HIM1323
|
||||
HIM1324
|
||||
HIM1325
|
||||
HIM1326
|
||||
HIM1327
|
||||
HIM1328
|
||||
HIM1329
|
||||
HIM1330
|
||||
HIM1331
|
||||
HIM1332
|
||||
HIM1333
|
||||
HIM1340
|
||||
HIM1341
|
||||
HIM1342
|
||||
HIM1343
|
||||
HIM1344
|
||||
HIM1345
|
||||
HIM1346
|
||||
HIM1347
|
||||
HIM1350
|
||||
HIM1351
|
||||
HIM1352
|
||||
HIM1353
|
||||
HIM1354
|
||||
HIM1355
|
||||
HIM1356
|
||||
HIM1357
|
||||
HIM1401
|
||||
HIM1410
|
||||
HIM1500
|
||||
HIM1501
|
||||
HIM1901
|
||||
HIM1902
|
||||
HIM1903
|
||||
HIM2001
|
||||
HIM2002
|
||||
HIM2003
|
||||
HIM2004
|
||||
HIM2005
|
||||
HIM2006
|
||||
HIM2007
|
||||
HIM2008
|
||||
HIM2009
|
||||
HIM2010
|
||||
HIM2011
|
||||
HIM2012
|
||||
HIM2013
|
||||
HIM2014
|
||||
HIM2101
|
||||
HIM2102
|
||||
HIM2103
|
||||
HIM2104
|
||||
HIM2110
|
||||
HIM2201
|
||||
HIM2202
|
||||
HIM2203
|
||||
HIM2204
|
||||
HIM2205
|
||||
HIM2901
|
||||
@@ -0,0 +1,8 @@
|
||||
# SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
// Code generated by himesan; DO NOT EDIT.
|
||||
// himesan:compiler <compiler-version>
|
||||
// himesan:runtime-abi <runtime-abi>
|
||||
// himesan:source-sha256 <lowercase-sha256>
|
||||
var _ = <sando-import>.ABISandoV1
|
||||
//line <source-path>:<line>:<column>
|
||||
@@ -0,0 +1,14 @@
|
||||
# SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
Sandwich Hime / Hime-san — HTML-first typed components for Go
|
||||
|
||||
Usage:
|
||||
himesan generate [--json] [paths...] generate adjacent .sando.go files
|
||||
himesan gen [--json] [paths...] alias for generate
|
||||
himesan check [--json] [paths...] validate sources and committed output without writes
|
||||
himesan bless [--json] [paths...] friendly read-only alias for check
|
||||
himesan dev [flags] [package] [-- app-args...] run the loopback last-good supervisor
|
||||
himesan lsp --stdio run the read-only language server
|
||||
himesan version [--json] print compiler and runtime ABI versions
|
||||
|
||||
Templates use .sando; .san remains exclusively San language source.
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://sandwichhime.com/schema/himesan-config-v1.schema.json",
|
||||
"title": "Hime-san local development configuration v1",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["version"],
|
||||
"properties": {
|
||||
"version": {"const": 1},
|
||||
"sourceRoots": {
|
||||
"type": "array",
|
||||
"items": {"type": "string", "minLength": 1, "pattern": "^[^\\u0000]+$"},
|
||||
"minItems": 1,
|
||||
"default": ["."]
|
||||
},
|
||||
"goPackage": {"type": "string", "minLength": 1, "pattern": "^[^\\u0000\\r\\n]+$", "default": "."},
|
||||
"appArgs": {"type": "array", "items": {"type": "string", "pattern": "^[^\\u0000]*$"}, "default": []},
|
||||
"listenAddressEnv": {
|
||||
"type": "string",
|
||||
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
|
||||
"default": "HIMESAN_LISTEN_ADDR"
|
||||
},
|
||||
"healthPath": {"type": "string", "pattern": "^/(?!/)[^?#\\u0000\\r\\n]*$", "default": "/"},
|
||||
"proxyAddress": {
|
||||
"type": "string",
|
||||
"anyOf": [
|
||||
{"pattern": "^127(?:\\.[0-9]{1,3}){3}:[0-9]{1,5}$"},
|
||||
{"pattern": "^\\[::1\\]:[0-9]{1,5}$"}
|
||||
],
|
||||
"default": "127.0.0.1:7331"
|
||||
},
|
||||
"additionalWatchRoots": {
|
||||
"type": "array",
|
||||
"items": {"type": "string", "minLength": 1, "pattern": "^[^\\u0000]+$"},
|
||||
"default": []
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://sandwichhime.com/schema/himesan-operation-output-v1.schema.json",
|
||||
"title": "Hime-san generate/check JSON result v1",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["command", "ok", "result"],
|
||||
"properties": {
|
||||
"command": {"enum": ["generate", "check", "bless"]},
|
||||
"ok": {"type": "boolean"},
|
||||
"result": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["files", "discovered", "changed", "unchanged", "stale", "missing"],
|
||||
"properties": {
|
||||
"files": {
|
||||
"type": ["array", "null"],
|
||||
"items": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["source_path", "output_path", "changed", "stale", "missing"],
|
||||
"properties": {
|
||||
"source_path": {"type": "string"},
|
||||
"output_path": {"type": "string"},
|
||||
"changed": {"type": "boolean"},
|
||||
"stale": {"type": "boolean"},
|
||||
"missing": {"type": "boolean"}
|
||||
}
|
||||
}
|
||||
},
|
||||
"diagnostics": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["path", "line", "column", "code", "severity", "message"],
|
||||
"properties": {
|
||||
"path": {"type": "string"},
|
||||
"line": {"type": "integer", "minimum": 1},
|
||||
"column": {"type": "integer", "minimum": 1},
|
||||
"code": {"type": "string", "pattern": "^HIM[0-9]{4}$"},
|
||||
"severity": {"enum": ["error", "warning"]},
|
||||
"message": {"type": "string"}
|
||||
}
|
||||
}
|
||||
},
|
||||
"discovered": {"type": "integer", "minimum": 0},
|
||||
"changed": {"type": "integer", "minimum": 0},
|
||||
"unchanged": {"type": "integer", "minimum": 0},
|
||||
"stale": {"type": "integer", "minimum": 0},
|
||||
"missing": {"type": "integer", "minimum": 0}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://sandwichhime.com/schema/himesan-version-output-v1.schema.json",
|
||||
"title": "Hime-san version JSON result v1",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["compiler", "runtime_abi", "go", "features"],
|
||||
"properties": {
|
||||
"compiler": {"type": "string", "minLength": 1},
|
||||
"runtime_abi": {"const": "sando.v1"},
|
||||
"go": {"type": "string", "minLength": 1},
|
||||
"features": {
|
||||
"type": "array",
|
||||
"prefixItems": [{"const": "lsp-stdio"}],
|
||||
"minItems": 1,
|
||||
"maxItems": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user