@aiaiai-pt/frankctl 0.7.0 → 0.7.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.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
All notable changes to `@aiaiai-pt/frankctl` are documented here. This project
|
|
4
4
|
adheres to [Semantic Versioning](https://semver.org/).
|
|
5
5
|
|
|
6
|
+
## 0.7.1
|
|
7
|
+
|
|
8
|
+
- Promote the current-box-proven CIRA air-quality station and observation
|
|
9
|
+
declarations into the default template render. The default now contains 35
|
|
10
|
+
documents; the complete `--all` inventory remains 49.
|
|
11
|
+
- Pin the air-observation epoch projection to the persisted timestamp precision
|
|
12
|
+
so a value-identical reapply preserves its Silver snapshot and skips ontology
|
|
13
|
+
replay.
|
|
14
|
+
|
|
6
15
|
## 0.7.0
|
|
7
16
|
|
|
8
17
|
- Add discoverable, parameterized CIRA source-to-ontology template packs through
|
package/dist/index.js
CHANGED
|
@@ -361,7 +361,7 @@ Parameters:
|
|
|
361
361
|
Components:
|
|
362
362
|
`),q(Object.entries(a.components).map(([c,l])=>({component:c,status:l.status,manifests:l.manifests.join(","),required_sources:l.required_sources.join(",")})),[{key:"component",header:"COMPONENT"},{key:"status",header:"STATUS"},{key:"manifests",header:"MANIFESTS"},{key:"required_sources",header:"REQUIRED SOURCES"}])}),e.command("render <name>").description("Render a template pack to apply-ready frank.platform/v1 YAML").option("-c, --component <name>","render one component; repeat for an explicit subset",D$,[]).option("--all","render live-proven and declared-pending components").option("--set <key=value>","override a declared template parameter; repeat as needed",D$,[]).option("-o, --output <file>","write rendered YAML to a file").action((r,i)=>{let n=aa(r),o=N$(n,{all:!!i.all,components:i.component,parameters:wA(i.set)}),s=C$(o.documents);if(o.pendingComponents.length>0&&process.stderr.write(`warning: rendering declared_pending components: ${o.pendingComponents.join(", ")}
|
|
363
363
|
`),i.output){$A.writeFileSync(i.output,s,{encoding:"utf8",mode:384}),process.stderr.write(`wrote ${i.output}
|
|
364
|
-
`);return}process.stdout.write(s)})}var SA="0.7.
|
|
364
|
+
`);return}process.stdout.write(s)})}var SA="0.7.1";function xA(){let t=new Mm;return t.name("frankctl").description("Frank CLI \u2014 scriptable access to the Frank API").version(SA).option("-p, --profile <name>","config profile to use").option("--json","emit machine-readable JSON output").option("-v, --verbose","verbose logging").option("-q, --quiet","suppress non-error output").option("--no-color","disable ANSI colors").option("--api-url <url>","override the API base URL").showHelpAfterError(),Db(t),Rb(t),Lb(t),Wb(t),Hb(t),g$(t),y$(t),v$(t),_$(t),b$(t),$$(t),k$(t),x$(t),O$(t),j$(t),t}function EU(t){return t.optsWithGlobals()}function NU(t){return new Hn({verbose:t.verbose??!1,quiet:t.quiet??!1,color:t.color!==!1})}async function IA(t){let e=xA();e.exitOverride();try{return await e.parseAsync(t),0}catch(r){if(r instanceof w)return process.stderr.write(`error: ${r.message}
|
|
365
365
|
`),r.exitCode;let i=r;return i.code==="commander.helpDisplayed"||i.code==="commander.version"?0:i.code?.startsWith("commander.")?(i.message&&process.stderr.write(`${i.message}
|
|
366
366
|
`),2):(process.stderr.write(`error: ${i.message??String(r)}
|
|
367
367
|
`),1)}}function OA(){try{let t=kA(process.argv[1]??""),e=new URL(import.meta.url).pathname;return t===e}catch{return!1}}OA()&&IA(process.argv).then(t=>process.exit(t));export{xA as buildProgram,IA as main,NU as makeLogger,EU as resolveGlobalOptions};
|
|
@@ -26,7 +26,7 @@ spec:
|
|
|
26
26
|
params:
|
|
27
27
|
sql: |-
|
|
28
28
|
SELECT concat('kunak:0425100035:',cast(ts AS varchar)) observation_key,
|
|
29
|
-
from_unixtime(cast(ts AS double)/1000.0) date_observed,
|
|
29
|
+
CAST(from_unixtime(cast(ts AS double)/1000.0) AS timestamp(6) with time zone) date_observed,
|
|
30
30
|
'Kunak' data_provider,
|
|
31
31
|
'kunak_cloud_ubiwhere' source,
|
|
32
32
|
'kunak:0425100035' station_name,
|