{"id":"host.storage--hostStorageContext","name":"hostStorageContext","owner":"yeho","package":"host.storage","kind":"thing","signature":"external thing hostStorageContext","description":"A host storage context record carrying schema, schemaVersion, hostFamily, applicationDataRoot, source, and related state.","context":"Read and write bounded application storage through the host contract.","parameters":[],"returns":"void","members":[{"name":"schema","kind":"field","type":"text","description":"Stores schema as text.","signature":"text schema","tags":["thing","field","host.storage"],"updated":"2026-09-09"},{"name":"schemaVersion","kind":"field","type":"int","description":"Stores schema version as int.","signature":"int schemaVersion","tags":["thing","field","host.storage"],"updated":"2026-09-09"},{"name":"hostFamily","kind":"field","type":"text","description":"Stores host family as text.","signature":"text hostFamily","tags":["thing","field","host.storage"],"updated":"2026-09-09"},{"name":"applicationDataRoot","kind":"field","type":"text","description":"Stores application data root as text.","signature":"text applicationDataRoot","tags":["thing","field","host.storage"],"updated":"2026-09-09"},{"name":"source","kind":"field","type":"text","description":"Stores source as text.","signature":"text source","tags":["thing","field","host.storage"],"updated":"2026-09-09"},{"name":"available","kind":"field","type":"bool","description":"Stores available as bool.","signature":"bool available","tags":["thing","field","host.storage"],"updated":"2026-09-09"},{"name":"hostStorageContext","kind":"constructor","parameters":[{"name":"hostFamily","type":"text","description":"Host family."},{"name":"applicationDataRoot","type":"text","description":"Application data root."},{"name":"source","type":"text","description":"Source."}],"returns":"void","signature":"hostStorageContext(text hostFamily, text applicationDataRoot, text source)","description":"Host storage context.","tags":["thing","constructor","host.storage"],"updated":"2026-09-09"},{"name":"ApplicationDataPath","kind":"method","parameters":[{"name":"vendor","type":"text","description":"Vendor."},{"name":"application","type":"text","description":"Application."}],"returns":"text","signature":"ApplicationDataPath(text vendor, text application) returns text","description":"Application data path.","tags":["thing","method","host.storage"],"exampleId":"method-ApplicationDataPath-7","updated":"2026-09-09"},{"name":"Describe","kind":"method","parameters":[],"returns":"text","signature":"Describe() returns text","description":"Describe.","tags":["thing","method","host.storage"],"exampleId":"method-Describe-8","updated":"2026-09-09"}],"tags":["cpu","host","host.storage","method","source-example","storage","thing","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/host/storage/storage.yh","line":4,"sha256":"3e3700536c764b1a475e76cef4245a94d6c188717b14a72d41a2a0464c122bdb"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use hostStorageContext","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using host.storage\n\n// Read and write bounded application storage through the host contract.\nhostStorageContext sample = hostStorageContext(\"host Family\", \"application Data Root\", \"example\")\nConsole.Log(Text.From(sample.schema))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.host_storage__hoststoragecontext\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"host.storage\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/host/storage\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"ea596e1c8157332cdef9c77d10ec64b737788278f79d41a43f91060e4619800d","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-ApplicationDataPath-7","title":"hostStorageContext.ApplicationDataPath","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using host.storage\n\n// Application data path.\nhostStorageContext instance = hostStorageContext(\"host Family\", \"application Data Root\", \"example\")\ntext argument_vendor = \"argument vendor\"\ntext argument_application = \"argument application\"\ntext result = instance.ApplicationDataPath(argument_vendor, argument_application)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.host_storage__hoststoragecontext\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"host.storage\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/host/storage\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"ba3f4f076bc8d95a84da41036053e7d27838a86527578ccf99b5d3745bd572ca","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-8","title":"hostStorageContext.Describe","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using host.storage\n\n// Describe.\nhostStorageContext instance = hostStorageContext(\"host Family\", \"application Data Root\", \"example\")\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.host_storage__hoststoragecontext\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"host.storage\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/host/storage\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"cdb6da7be32635334459310f98c1d55eaba23b6f5d2411e722bf66cec8e097d8","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["schema","schemaVersion","hostFamily","applicationDataRoot","source","available","hostStorageContext","ApplicationDataPath","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=host.storage--hostStorageContext","json":"https://demonhunterlabs.com/reference/items/host.storage--hostStorageContext.json","markdown":"https://demonhunterlabs.com/reference/text/host.storage--hostStorageContext.md"}
